@soma-vertical-web/multi-lib 0.0.44 → 0.0.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/contexts/contexts/plp/FilterContext.d.ts +6 -0
  2. package/contexts/index.d.ts +4 -0
  3. package/index.js +19 -19
  4. package/index.mjs +6070 -5548
  5. package/layout/index.d.ts +70 -0
  6. package/layout/team-component/Filter/Composite/Content.d.ts +7 -0
  7. package/layout/team-component/Filter/Composite/Empty.d.ts +7 -0
  8. package/layout/team-component/Filter/Composite/Item/Colors.d.ts +7 -0
  9. package/layout/team-component/Filter/Composite/Item/Price/Label.d.ts +7 -0
  10. package/layout/team-component/Filter/Composite/Item/Price/Price.d.ts +7 -0
  11. package/layout/team-component/Filter/Composite/Item/Price/index.d.ts +1 -0
  12. package/layout/team-component/Filter/Composite/Item/Sizes.d.ts +7 -0
  13. package/layout/team-component/Filter/Composite/Item/Toggle.d.ts +7 -0
  14. package/layout/team-component/Filter/Composite/Item/index.d.ts +7 -0
  15. package/layout/team-component/Filter/Composite/Loading.d.ts +7 -0
  16. package/layout/team-component/Filter/Composite/Modal.d.ts +7 -0
  17. package/layout/team-component/Filter/Composite/Root.d.ts +7 -0
  18. package/layout/team-component/Filter/Composite/Selected.d.ts +7 -0
  19. package/layout/team-component/Filter/Filter.d.ts +47 -0
  20. package/layout/team-component/Filter/helpers.d.ts +8 -0
  21. package/layout/team-component/Filter/index.d.ts +2 -0
  22. package/layout/team-component/ProductVariationList/Composite/List.d.ts +7 -0
  23. package/layout/team-component/ProductVariationList/Composite/Option.d.ts +7 -0
  24. package/layout/team-component/ProductVariationList/Composite/Root.d.ts +7 -0
  25. package/layout/team-component/ProductVariationList/Composite/Title.d.ts +7 -0
  26. package/layout/team-component/ProductVariationList/ProductVariationList.d.ts +19 -0
  27. package/layout/team-component/ProductVariationList/index.d.ts +1 -0
  28. package/layout/team-component/Sort/Composite/Button.d.ts +4 -0
  29. package/layout/team-component/Sort/Composite/Item.d.ts +4 -0
  30. package/layout/team-component/Sort/Composite/List.d.ts +4 -0
  31. package/layout/team-component/Sort/Composite/ListWrapper.d.ts +4 -0
  32. package/layout/team-component/Sort/Composite/Root.d.ts +4 -0
  33. package/layout/team-component/Sort/Sort.d.ts +7 -0
  34. package/layout/team-component/Sort/index.d.ts +1 -0
  35. package/package.json +1 -1
  36. package/style.css +1 -1
  37. package/types/constants.d.ts +7 -0
  38. package/types/layout/team-components/Filter/Item/index.d.ts +12 -0
  39. package/types/layout/team-components/Filter/index.d.ts +57 -3
  40. package/types/layout/team-components/ProductVariationList/index.d.ts +15 -0
  41. package/types/layout/team-components/Sort/index.d.ts +9 -1
package/index.js CHANGED
@@ -1,44 +1,44 @@
1
- "use strict";var au=Object.defineProperty;var cu=(e,t,r)=>t in e?au(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var or=(e,t,r)=>cu(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),C=require("react"),Ye=require("idb-keyval"),nt=require("zustand"),Gn=require("js-cookie"),v=require("@soma-vertical-web/core-components"),Te=require("./__vite-browser-external-B8mGO3z6.js"),lu=require("jose"),et=require("@soma-vertical-web/foundations"),Ho=require("axios"),ta=require("react-dom"),De=require("draft-js"),Fo=require("@date-fns/tz"),lo=C.createContext({}),uu=({data:e,children:t})=>s.jsx(lo.Provider,{value:{tags:e==null?void 0:e.config},children:t}),uo=()=>{const{tags:e}=C.useContext(lo),t=C.useCallback(r=>{var a,c,l,u;const n=(c=(a=e==null?void 0:e.commercial)==null?void 0:a.items)==null?void 0:c.find(f=>{var p;return(p=r??[])==null?void 0:p.find(d=>d.id===f.key)}),o=(u=(l=e==null?void 0:e.institucional)==null?void 0:l.items)==null?void 0:u.find(f=>{var p;return(p=r??[])==null?void 0:p.find(d=>d.id===f.key)}),i=e==null?void 0:e.flagPdp;return{commercial:n,institucional:o,flagPdp:i}},[e]);return{tags:e,getAvailableProductTag:t}},ra=({gridScrollBack:e})=>{C.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},na=C.createContext({}),du=({children:e,gridScrollBack:t})=>{const r=C.useRef(null);return ra({gridScrollBack:t}),s.jsx(na.Provider,{value:{sizesContainerRef:r},children:e})},fu=()=>{const e=C.useContext(na);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},Me=(e,t=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:t?2:0}).format(e),fo=({valueInCents:e,hasFree:t,freeTaxMessage:r})=>e===0?t?r:Me(0):Me(e/100),po=(e,t)=>{const[r,n]=e.split(t);return{name:r.trim(),size:n?n.trim():""}},Vt=(e,t)=>{if(!e)return{};const[r,n]=e.split(t);return{color:r==null?void 0:r.trim(),size:n==null?void 0:n.trim()}},mo=(e,t="tamanho")=>{if(e.additionalProperty){const[r]=e.additionalProperty;return r!=null&&r.name?r.name.toLocaleLowerCase()===t?r.value:e.name:""}return e.name},pu=(e,t)=>e.replace(t,"").trim(),mu=e=>e.replace(/\//g,""),oa=({items:e,NAME_SPLIT_SYMBOL:t})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(a,c)=>{var d;c&&(c.sellerId=a.sellerId,c.sellerName=a.sellerName,c.available=!0,c.isSellerDefault=a.sellerDefault);const{Price:l,ListPrice:u,PaymentOptions:{installmentOptions:f}}=a.commertialOffer;r.price=l,r.listPrice=u;const p=(d=f==null?void 0:f[0])==null?void 0:d.installments;if(p){const{count:h,value:m}=p[p.length-1];r.installments={count:h,value:m/100}}};let o=!0;const i=e.reduce((a,c)=>{var f;const l={name:c.name,sku:c.itemId,value:((f=c.Tamanho)==null?void 0:f[0])??po(c.nameComplete??c.name,t).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},u=c.sellers.filter(p=>(p.sellerDefault&&p.commertialOffer.IsAvailable&&(l.available=!0,n(p,l)),p.commertialOffer.IsAvailable));return!l.isSellerDefault&&u.length>0&&(l.available=!0,n(u[0],{...l,sellerId:u[0].sellerId,sellerName:u[0].sellerName})),l.available===!1&&(o=!1),a.push(l),a},[]);return{...r,sizes:i,allSizesAvailable:o}},ho=e=>e?!e.offers.offers.find(({quantity:t=0})=>t>0):!1,go=(e,t)=>{const r=e.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0&&n.seller.identifier===t);return r||e.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0)},ia=e=>e.find(t=>t.imageLabel==="10"),sa=(e,t)=>{const r=/\/ids\/(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},aa=(e,t)=>{const r=/\/ids\/(\d+)-(\d+)-(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}-${n[2]}-${n[3]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},ca=({images:e,label:t})=>{const r=e.filter(n=>n.keywords===t.first||n.keywords===t.second||n.alternateName===t.first||n.alternateName===t.second);return r.length===0?[e[0]]:r},hu=e=>{const[t,r]=e.split("/").map(Number);if(Number.isNaN(t)||Number.isNaN(r))throw new Error("[ERROR ASPECT RATIO IMAGE]: Invalid aspect ratio format");return r/t},la=(e,t,r)=>{t&&(e?(t.getAttribute("src")||(t.src=r??""),t.play()):t.pause())},gu=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:ho,formatPriceToCurrency:Me,freightParsePrice:fo,getAspectRatio:hu,getColorAndSizeFromSkuName:Vt,getFirstImages:ca,getProductNameWithoutSku:pu,getSKUName:mo,getSkuInfos:oa,getThumbImage:ia,getValidOffer:go,removeSlashes:mu,resizingImg:sa,setVideoPlay:la,splitNameAndSizeFromFullName:po,updatedResizedImg:aa},Symbol.toStringTag,{value:"Module"})),He=({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})},xe={configs:{PLP_FILTERS:[{key:"",label:"",eventLabel:"",order:0}],currency:"BRL",categoryOff:"bazar",storeUrl:"https://www.example.com",MAIN_IMAGE:"1",NAME_SPLIT_SYMBOL:"-"},productEvents:(e,t)=>{const{event:r,commonData:n,customData:o,promotionInfo:i,itemList:a,outsideEcommerceData:c}=e,{availableSizes:l,sizes:u,price:f}=n,p={...r==="view_item"?{currency:xe.configs.currency,value:f,grade_disponivel:l??(u?ua(u):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:f,currency:xe.configs.currency}:{}},d=St({data:n,customData:{...o,...a,...i},configs:xe.configs});He({event:r,data:{...c,ecommerce:{...a,...p,items:[d]}}}),typeof t=="function"&&t(d,p)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:r,itemList:n,outsideEcommerceData:o,customData:i}=e;if(t.length===0)return;const a=t.map(({node:c},l)=>St({data:{...c},customData:{...r,index:l,...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:n},configs:xe.configs}));He({event:"view_item_list",data:{...o,ecommerce:{...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:n,items:a}}})},skuEvents:e=>{const{event:t,commonData:{products:r},customData:n,supportData:{selectedSkus:o,price:i},promotionInfo:a,itemList:c,outsideEcommerceData:l}=e;let u=0;const f=r.map(p=>{var y,g,b,A,_,E,S,P,x;const d=o==null?void 0:o.find(I=>(p.productId??p.id)===I.productId);let h={...a,...c};if(d){const I=fa(),B=pa(I,d);B&&(h={...h,...B}),t==="add_to_cart"&&(a||c)&&Wn({persistedData:I,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:a,itemList:c}}),t==="remove_from_cart"&&Wn({persistedData:I,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}u+=p.price??((b=(g=(y=d==null?void 0:d.offers)==null?void 0:y.offers)==null?void 0:g[0])==null?void 0:b.price)??0;const m=(d==null?void 0:d.size)??Vt((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((A=p.itemOffered)==null?void 0:A.skuName),xe.configs.NAME_SPLIT_SYMBOL).size;return St({data:p,customData:{...n,...h??{...a,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((_=p.itemOffered)==null?void 0:_.sku),quantity:(n==null?void 0:n.quantity)??p.quantity??1,item_variant2:m,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((x=(P=(S=(E=d==null?void 0:d.offers)==null?void 0:E.offers)==null?void 0:S[0])==null?void 0:P.seller)==null?void 0:x.identifier)??p.seller},configs:xe.configs})});He({event:t,data:{...l,ecommerce:{value:i??u,currency:xe.configs.currency,items:f}}})},filterEvent:e=>{var a;const{commonData:t,customData:r,outsideEcommerceData:n}=e,o={},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 p;const u=((p=xe.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:p.eventLabel)??c,f=(o==null?void 0:o[u])||[];u==="price_range"&&l.replace(":","-"),o[u]=[...f,l]}),Object.keys(o).forEach(c=>i[c]=o[c].join(", "))),He({event:"filter",data:{...n,...i,...r}})},viewCartEvent:e=>{var f,p,d,h,m,y,g,b,A,_;const{commonData:t,outsideEcommerceData:r}=e,{cartStore:n}=t;if(!n)return;const o=window.localStorage.getItem("persistedCartEventsData"),i=o?JSON.parse(o):{},a=n.items.map(E=>{const{promotionInfo:S,itemList:P}=i[E.id]??{};return St({data:{...E,price:E.price/100,listPrice:E.listPrice/100},customData:{...S,...P,item_sku:E.id??E.itemOffered.sku,quantity:E.quantity??1},configs:xe.configs})}),c=(((f=n.totalizers.find(E=>E.name==="Total dos Itens"))==null?void 0:f.value)??0)/100,l=(((p=n.totalizers.find(E=>E.name==="Total dos Descontos"))==null?void 0:p.value)??0)/100,u=((d=n.marketingData)==null?void 0:d.utmiCampaign)==="codigodavendedora"?(h=n.marketingData)==null?void 0:h.utmCampaign:(y=String((m=n.openTextField)==null?void 0:m.value))==null?void 0:y.split(" - ")[0];He({event:"view_cart",data:{...r,ecommerce:{currency:xe.configs.currency,value:c+l,total_discount:Math.abs(l),cep_preenchido:!!((b=(g=n.shippingData)==null?void 0:g.address)!=null&&b.postalCode),...u?{seller_coupon_name:u}:{},...((A=n.marketingData)==null?void 0:A.coupon)&&{sale_coupon_name:(_=n.marketingData)==null?void 0:_.coupon},subtotal:c,items:a}}})},readyEvents:e=>{const{event:t,readyData:r}=e;He({event:t,data:{...r}})}},ua=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),yu=e=>{const t=e.length;return{...e&&e.length>0?{item_category:e[0].includes(xe.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},St=({data:e,customData:t,configs:r})=>({..._u(e,r==null?void 0:r.MAIN_IMAGE),...vu(e),...bu(e),...xu(e),...t}),da=()=>{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("_"))??[]:[]},fa=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},pa=(e,t)=>e==null?void 0:e[t],Wn=({persistedData:e,type:t,sku:r,newData:n})=>{if(!e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({[r]:n}));return}if(e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({...e,[r]:n}));return}e&&t==="remove"&&(delete e[r],window.localStorage.setItem("persistedCartEventsData",JSON.stringify(e)))},_u=(e,t="1")=>{var i,a,c,l,u,f,p,d,h,m,y;const r=e.productReference??e.gtin??e.productRefId,n=e.image??((a=(i=e.items)==null?void 0:i[0])==null?void 0:a.images)??((c=e.itemOffered)==null?void 0:c.image),o=n==null?void 0:n.find(g=>g.alternateName===t||g.imageLabel===t||g.keywords===t);return{item_id:e.productId??((l=e.isVariantOf)==null?void 0:l.productGroupID)??((u=e.isVariationOf)==null?void 0:u.productGroupID)??((p=(f=e.itemOffered)==null?void 0:f.isVariationOf)==null?void 0:p.productGroupID),item_ref:/_\d$/.test(r)?r.slice(0,-2):r,item_name:e.productTitle??e.productName??e.name??po((d=e.itemOffered)==null?void 0:d.name,xe.configs.NAME_SPLIT_SYMBOL).name,item_brand:((h=e.brand)==null?void 0:h.brandName)??((m=e.brand)==null?void 0:m.name)??e.brand??((y=e.itemOffered)==null?void 0:y.brand.name),item_url:`${xe.configs.storeUrl}${e.linkText}/p`,item_image:(o==null?void 0:o.url)??(o==null?void 0:o.imageUrl)}},zo=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,vu=e=>{var u,f;const{categories:t,categoriesIds:r}=e,n=t??((u=e.itemOffered)==null?void 0:u.categories),o=r??((f=e.itemOffered)==null?void 0:f.categoriesIds),i=zo(n),a=zo(o),c=i.slice(1,-1).split("/"),l=a.slice(1,-1).split("/");return{item_category:c[0].toLowerCase().includes(xe.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]}}},bu=e=>{var o,i,a,c,l,u;const t=((o=e.itemOffered)==null?void 0:o.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:n}=Vt(t,xe.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:n}}},xu=e=>{var l,u;const{price:t,listPrice:r,installments:n}=e,o=t??((l=e.offers)==null?void 0:l.lowPrice)??0,i=r??((u=e.offers)==null?void 0:u.highPrice)??0,a=i?i-o:0,c=a%1===0?a:Number(a.toFixed(2));return{...t&&{price:o??i},...i&&{list_price:i,discount:c},...n&&{installments:n==null?void 0:n.count,installment_value:n==null?void 0:n.value},item_currency:xe.configs.currency}},ma=()=>{const[e,t]=da(),[r,n]=e.split("-"),o=r.includes("shop")||r.includes("sale")?r:"";return{page_category:o&&n?n:"",page_departament:o,id:t,name:e}},Cu=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:xe,findDataInPersistedData:pa,getAvailablesSizes:ua,getCategories:yu,getPageCategoryAndDepartmentFromSlug:ma,getPersistedData:fa,getProductListInfoFromHead:da,pushDatalayer:He,updatePersistedData:Wn},Symbol.toStringTag,{value:"Module"})),ha=C.createContext({}),Su=({children:e,evtFunctionsConfigs:t})=>{const r=C.useRef({}),n=C.useRef(null),o=C.useRef(null),i=C.useRef({}),a=C.useRef({trigger:!1,index:0}),c=({functionKey:f,data:p,callBack:d,timeout:h=100})=>{window.dataLayer||(window.dataLayer=[]),xe.configs=t;try{typeof xe[f]=="function"&&setTimeout(()=>{var m;p.promotionInfo=r.current,(m=o.current)!=null&&m.item_list_name&&(p.itemList=o.current),xe[f](p,d)},h)}catch(m){He({event:"error_event",data:{error_message:(m==null?void 0:m.message)??m}})}},l=({content:f})=>{c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:f.replace("::",":")}}})},u=({updatePromotionRef:f,promotion:p,index:d})=>{f&&(r.current={...p}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...p,...d!==void 0&&{index:d}}}}})};return s.jsx(ha.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:a,promotionEventRef:r,currentLocalRef:n,itemListRef:o,cartProductsFullDataRef:i,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},ge=()=>C.useContext(ha),ga=C.createContext({}),Au=({children:e,productData:t,isKit:r,PDP_INFO:n,NAME_SPLIT_SYMBOL:o})=>{var $,w;const{sendDataLayerEvent:i,triggerSelectItemEventRef:a}=ge(),{productId:c,productName:l,items:u,items:[{images:f,Videos:p}],description:d,["Composição"]:h="",productReference:m,categories:[y]}=t,{getAvailableProductTag:g}=uo(),b=g(Object.entries(t.clusterHighlights).map(q=>({id:q[0],name:q[1]}))),A=y.slice(1,-1).split("/"),{installments:_,price:E,listPrice:S,sizes:P,allSizesAvailable:x}=oa({items:u,NAME_SPLIT_SYMBOL:o}),I=ia(f),B=[{label:`${n.product.description}`,value:"description",content:d},{label:`${n.product.materiais}`,value:"composition",content:h}],R=((w=Vt(($=t.items)==null?void 0:$[0].name,o))==null?void 0:w.color)??t["Cores Filtráveis"][0]??"",O=()=>({commonData:{...t,sizes:P,price:E,listPrice:S,installments:_},customData:{installments:_==null?void 0:_.count,installment_value:Number(_==null?void 0:_.value).toFixed(2)}}),N=({sku:q,size:z})=>{const{commonData:U,customData:K}=O();i({functionKey:"productEvents",data:{event:"view_item",commonData:U,customData:{...K,...q&&{item_sku:q},...z&&{item_variant2:z}}}})};return C.useEffect(()=>{if(a.current.trigger){const{commonData:q,customData:z}=O();i({functionKey:"productEvents",data:{event:"select_item",commonData:q,customData:{...z,index:a.current.index}}}),a.current.trigger=!1}N({})},[]),s.jsx(ga.Provider,{value:{productData:t,productId:c,productName:l,productReference:m,tag:b,items:u,sizes:P,allSizesAvailable:x,installments:_,price:E,listPrice:S,thumbImage:I,images:f,video:p[0],descriptionContent:B,breadcrumbList:A,isKit:r,colorName:R,handleViewItemEvent:N},children:e})},yo=()=>{const e=C.useContext(ga);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},Eu={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},Oe=Promise.resolve(!1),Vn={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>Oe,addItem:()=>Oe,addSellerCode:()=>Oe,addMarketingData:()=>Oe,emptyCart:()=>{},removeItem:()=>Oe,setIsOpen:()=>{},shipping:()=>Oe,shippingUpdate:()=>Oe,toggleServiceToProduct:()=>Oe,updateItemQuantity:()=>Oe,insertProfileEmail:()=>Oe,setRecentlyAddedProducts:()=>{}},_o=e=>e===0,ya=(e,t)=>{if(!e||e.length===0)return[];let r="";const n=[],o=e.match(/\d+/g)??[];for(const i of o){const a=t[Number(i)];a&&(r+=(r?"/":"")+a,n.push(r))}return n},_a=(e,t)=>{const{availability:r,additionalInfo:{brandName:n},bundleItems:o,id:i,uniqueId:a,detailUrl:c,ean:l,imageUrl:u,name:f,listPrice:p,quantity:d,price:h,priceDefinition:m,productCategories:y,productCategoryIds:g,productId:b,refId:A,seller:_,referenceId:E,offerings:S,productRefId:P,skuName:x,sellingPrice:I}=e;return{availability:r,bundleItems:o,referenceId:E,productRefId:P,id:i,ean:l,uniqueId:a,itemOffered:{additionalProperty:[],brand:{name:n},categories:ya(g,y),categoriesIds:g,gtin:A,image:[{alternateName:(t==null?void 0:t.MAIN_IMAGE)??"1",url:u}],name:f,isVariationOf:{name:f,productGroupID:b},sku:i,slug:c,skuName:x},listPrice:p,quantity:d,offerings:S,price:h,priceDefinition:m,sellingPrice:I,seller:_}},va=(e,t)=>{const r=e.map(n=>({id:n.id,quantity:n.quantity,seller:n.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},ba=(e,t)=>{const r=e.find(n=>n.id===t);if(r){const n=e.map((o,i)=>{var a,c;return{id:((a=o.itemOffered)==null?void 0:a.sku)??"",index:i,quantity:(r==null?void 0:r.id)===((c=o.itemOffered)==null?void 0:c.sku)?0:o.quantity,seller:o.seller??""}});return{updateItems:n,filterItems:n.filter(o=>o.id!==t)}}return{updateItems:[],filterItems:[]}},xa=(e,t,r)=>e.filter(n=>n.availability!=="withoutStock"&&n.availability!=="https://schema.org/OutOfStock").map((n,o)=>{var i,a;return n.id===t?{id:n.id,index:o,quantity:r,seller:n.seller,sku:((i=n.itemOffered)==null?void 0:i.sku)??""}:{id:n.id,index:o,quantity:n.quantity,seller:n.seller,sku:((a=n.itemOffered)==null?void 0:a.sku)??""}}),Kn=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),Ru=(e,t)=>{var r;return Array.isArray(e)?(((r=e==null?void 0:e.find(n=>{var o;return((o=n==null?void 0:n.id)==null?void 0:o.toLowerCase())===t}))==null?void 0:r.value)??0)/100:0},wu=e=>{const t=e.reduce((o,i)=>{const a=_o(i.price)?0:i.quantity;return o+a},0),r=e.reduce((o,i)=>o+i.price*i.quantity,0),n=e.reduce((o,i)=>o+i.listPrice*i.quantity,0);return{totalItems:t,total:r,subTotal:n}},ju=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(_o(r==null?void 0:r.price)?0:r.quantity),0):0,Ca=(e,t)=>{const{items:r,itemMetadata:n,marketingData:o,messages:i,orderFormId:a,openTextField:c,paymentData:l,shippingData:u,totalizers:f}=e;return{id:a,itemMetadata:n,items:Array.isArray(r)?r.map(p=>_a(p,t)):[],marketingData:o,messages:i,openTextField:c,paymentData:l,shippingData:u,totalizers:f}},Sa=(e,t)=>{const r=e.find(n=>n.id===t);return r?r.availability==="unavailableItemFulfillment":!1},Pu=(e,t)=>{const r=e.sku,n=e.isVariantOf.hasVariant.find(o=>o.sku===r);return n?n.name.split(t)[1]:"--"},Je=(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},Iu=(e,t)=>{const r=new Set;return[e,...t].filter(n=>!r.has(n)&&r.add(n),r)},Aa=(e,t)=>t&&Array.isArray(t)&&t.find(n=>n.id===e)?Promise.resolve(e):Promise.resolve(!1),Ea=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),Ra=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},wa=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},ja=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(n=>n.id===r.id)):[],Pa=async(e,t)=>e.then(r=>[...r??[],...t??[]]),we=async(e,t,r,n)=>{const{priority:o="auto",body:i}=t;return fetch(e,{headers:{"Content-Type":"application/json"},priority:o,method:"POST",body:JSON.stringify(i)}).then(async a=>{const c=await a.json();return r?c:Ca(c,n)})},Ia=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),Nu=e=>[...Array.isArray(e)?e:[e],"faststore"],Na=e=>{const t=e.get("utm_source")||Ge("utm_source"),r=e.get("utm_campaign")||Ge("utm_campaign"),n=e.get("utm_medium")||Ge("utm_medium"),o=e.get("utmi_cp")||Ge("utmi_cp"),i=e.get("utmi_pc")||Ge("utmi_pc"),a=e.get("utmi_p")||Ge("utmi_p");return{...t&&{utmSource:t},...n&&{utmMedium:n},...r&&{utmCampaign:r},...o&&{utmiCampaign:o},...i&&{utmiPart:i},...a&&{utmipage:a}}},Ge=e=>{if(!e||typeof window>"u")return;const t=window.location.href;e=e.replace(/[[\]]/g,"\\$&");const r=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),n=r.exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},Ou=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:Eu,addItemOrder:va,addNotification:Ia,createItemOrder:_a,fetchCartAPI:we,findItemIndex:Kn,findOptions:ja,findTotalizerValue:Ru,getCategories:ya,getCode:Je,getQuantity:wa,getRemoveId:Aa,getSize:Pu,getTotalItems:ju,getTotalizer:wu,getUrlParameter:Ge,getValue:Ea,initialState:Vn,isGift:_o,marketingTagsBuilder:Nu,mergeOptionsPromise:Pa,mountMarketingData:Na,orderFormValues:Ca,promiseDefault:Oe,removeQuantity:ba,updateItemSellerExternal:Sa,updateOrderFormPromise:Ra,updateQuantity:xa,wishlistArray:Iu},Symbol.toStringTag,{value:"Module"})),Tu=()=>{const e=async(h,m)=>we("/api/checkout/order-form/coupon",{body:{orderFormId:h,coupon:m}}),t=async(h,m)=>{if(m){const y=m.includes(" - ")?m.split(" - ")[0]:m,g=await we("/api/checkout/order-form/seller-code",{body:{orderFormId:h,sellerCode:y}},!0);return we("/api/checkout/order-form/attachments",{body:{orderFormId:h,sellerCode:y,sellerName:g instanceof Object&&"name"in g?g==null?void 0:g.name:""}}).then(b=>({...b,openTextField:{...(b==null?void 0:b.openTextField)??{},statusOk:(g==null?void 0:g.ativo)??!1}}))}else return we("/api/checkout/order-form/attachments",{body:{orderFormId:h,sellerCode:"",sellerName:""}})},r=async(h,m)=>we("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:h,marketingData:m}}),n=async(h,m,y)=>we("/api/checkout/order-form/items",{body:{orderFormId:h,orderItems:va(m,y)}}),o=async(h,m,y,g)=>we("/api/checkout/order-form/offerings",{body:{id:m,itemIndex:y,orderFormId:h,remove:g}}),i=async h=>we("/api/checkout/order-form/items/remove-all",{body:{orderFormId:h}}),a=async(h,m="low")=>we("/api/checkout/order-form",{priority:m,body:{orderFormId:h??""}}),c=async(h,m)=>we("/api/checkout/order-form/profile",{body:{orderFormId:h,email:m}}),l=async(h,m,y)=>{const g=ba(m,y);return we("/api/checkout/order-form/items/update",{body:{orderItems:g.updateItems,orderFormId:h}})},u=async(h,m,y)=>we("/api/checkout/order-form/shipping",{body:{orderFormId:h,country:y,postalCode:m}}),f=async(h,m,y)=>we("/api/checkout/order-form/shipping/update",{body:{orderFormId:h,options:m,selectedAddresses:y}}),p=async(h,m,y,g)=>{const b=xa(m,y,g);return we("/api/checkout/order-form/items/update",{body:{orderFormId:h,orderItems:b}})};return{addCoupon:e,addItem:n,addSellerCode:t,addMarketingData:r,giftItem:o,emptyCart:i,getOrderForm:a,insertProfileEmail:c,removeItem:l,shipping:u,shippingUpdate:f,updateItemQuantity:async(h,m,y,g,b)=>p(h,m,y,g).then(A=>A&&Array.isArray(A.items)?Sa(A.items,y)?p(h,m,y,b):A:!1)}},Xn="soma::cart",at="soma::options",tt=nt.create((e,t)=>{const r=Tu(),n=async(o,i,a)=>{e({loading:!0});const c=await Ra(o);if(typeof c!="boolean"){e({...c});const l=await Pa(Ye.get(at),a);return Ye.set(at,l),Ea(c,i).finally(()=>e({loading:!1,options:l}))}return Oe};if(typeof window<"u"){const o=async i=>{if(i){const a=await Ye.get(at).then(u=>ja(u,i.items));Ye.set(Xn,i),Ye.set(at,a),e({...i,options:a});const c=new URLSearchParams(window.location.search),l=c.get("utm_campaign")||c.get("utmi_campaign")||"";l&&n(()=>r.addSellerCode(t().id,l.toUpperCase()),"openTextField")}};return Ye.get(Xn).then(i=>r.getOrderForm(i?i.id:"").then(o)),{...Vn,addCoupon:async i=>n(()=>r.addCoupon(t().id,i),"marketingData"),addItem:(i,a)=>{n(()=>r.addItem(t().id,t().items,i),"items",a)},addSellerCode:async i=>n(()=>r.addSellerCode(t().id,i),"openTextField"),addMarketingData:async i=>n(()=>r.addMarketingData(t().id,i),"marketingData"),emptyCart:()=>{n(()=>r.emptyCart(t().id))},removeItem:async i=>{const a=await n(()=>r.removeItem(t().id,t().items,i),"items");return Aa(i,a)},shipping:async(i,a="BR")=>n(()=>r.shipping(t().id,i??"",a),"shippingData"),shippingUpdate:async i=>n(()=>{var a;return r.shippingUpdate(t().id,i,(a=t().shippingData)==null?void 0:a.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(i,a,c)=>n(()=>r.giftItem(t().id,i,a,c),"items"),updateItemQuantity:async(i,a,c)=>{const{id:l,items:u}=t();return n(()=>{var f;return r.updateItemQuantity(l,u,i,a,((f=u.find(p=>p.id===i))==null?void 0:f.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async i=>n(()=>r.insertProfileEmail(t().id,i),"clientProfileData"),setIsOpen:i=>e({isOpen:i})}}return Vn}),Mu=()=>tt(e=>e),Oa=nt.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(n=>Ia(n,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(n=>n.id!==t)}))}})),Ta=()=>Oa(e=>e.notifications),Ma=()=>Oa(e=>e.actions),ku=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:at,KEY_INDEXED_STORE:Xn,useCartStore:tt,useGetCartStoreState:Mu,useGetNotificationActions:Ma,useGetNotificationsStore:Ta},Symbol.toStringTag,{value:"Module"})),Lu=6e3,ka=C.createContext({}),La=({children:e,...t})=>{const{items:r}=tt(),[n,o]=C.useState([]),i=C.useRef(null),a=C.useMemo(()=>Array.isArray(n)&&n.length>0?n.map(c=>r.find(l=>l.id===c.id)).filter(c=>c!==void 0):[],[r,n]);return C.useEffect(()=>{n.length&&(clearTimeout(i.current??0),i.current=setTimeout(()=>{o([])},Lu))},[n]),s.jsx(ka.Provider,{value:C.useMemo(()=>({...t,setRecentlyAdded:o,recentlyAddedProducts:a}),[t,o,a]),children:e})},ft=()=>{const e=C.useContext(ka);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class Da{constructor(){or(this,"events",{});or(this,"prevData",{})}subscribe(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),()=>{this.events[t]=this.events[t].filter(n=>n!==r)}}publish(t,r){this.events[t]&&this.events[t].forEach(n=>{this.prevData[t]=r,n(r)})}}const $a=C.createContext({}),Du=({children:e,headerConfigs:t,pathname:r,...n})=>{const[o,i]=C.useState(!0),a=r==="/",c=C.useRef(new Da),l=p=>p?{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),f=C.useRef(u);return C.useEffect(()=>{var h;const p=((h=new URLSearchParams(window.location.search))==null?void 0:h.toString())??"";(p.includes("utm_")||p.includes("gclid"))&&(Gn.get("lastMedias")||Gn.set("lastMedias",`${p}`,{expires:1/24}));const d=()=>{const m=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,y=window.innerWidth<1024||!!m.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);o!==y&&i(y)};return d(),window.addEventListener("resize",d,{passive:!0}),()=>window.removeEventListener("resize",d)},[o]),C.useEffect(()=>{const p=l(a);c.current.publish("header:change_variant",p.headerVariant),c.current.publish("header:change_position",p.position),f.current=p},[a]),s.jsx($a.Provider,{value:{isMobile:o,mediatorRef:c,currentHeaderConfigsRef:f,...n},children:s.jsx(La,{children:e})})},Se=()=>C.useContext($a),Ba=C.createContext({}),$u=({children:e,...t})=>s.jsx(Ba.Provider,{value:{...t},children:e}),Pe=()=>C.useContext(Ba),Ke=(e,t)=>nt.create(r=>{const n=()=>r({value:e});return t&&t instanceof Set&&t.add(n),{value:e,actions:{setValue:o=>r({value:o}),reset:n}}}),dt={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},pt=new Set,Bu=()=>{pt.forEach(e=>{e()})},qa=nt.create((e,t)=>{const r=()=>e({value:dt.category});return pt.add(r),{value:dt.category,actions:{reset:r,setValue:n=>e(()=>({value:n})),updateValue:n=>{t().value!==n&&e({value:n})}}}}),Kt=()=>qa(e=>e.value),Ue=()=>qa(e=>e.actions),Ha=Ke(dt.menuMobileIsOpen,pt),vo=()=>Ha(e=>e.value),Xe=()=>Ha(e=>e.actions),Fa=Ke(dt.searchModalIsOpen,pt),qu=()=>Fa(e=>e.value),bo=()=>Fa(e=>e.actions),za=Ke(dt.userMenuIsOpen,pt),Ua=()=>za(e=>e.value),mt=()=>za(e=>e.actions),Hu=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:Bu,useActionsHeaderCategory:Ue,useActionsMenuMobileIsOpen:Xe,useActionsSearchModalIsOpen:bo,useActionsUserMenuIsOpen:mt,useGetHeaderCategoryStore:Kt,useGetMenuMobileIsOpen:vo,useGetSearchModalIsOpen:qu,useGetUserMenuIsOpen:Ua},Symbol.toStringTag,{value:"Module"})),rt={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},ot=new Set,Fu=()=>{ot.forEach(e=>{e()})},Ga=nt.create(e=>{const t=()=>e({value:rt.selectedSkuInfo});return ot.add(t),{value:rt.selectedSkuInfo,actions:{setValue:r=>e(n=>({value:{...n,...r}})),reset:t}}}),zu=()=>Ga(e=>e.value),Uu=()=>Ga(e=>e.actions),Wa=Ke(rt.openLetMeKnow,ot),Gu=()=>Wa(e=>e.value),Wu=()=>Wa(e=>e.actions),Va=Ke(rt.showNotify,ot),Vu=()=>Va(e=>e.value),Ku=()=>Va(e=>e.actions),Ka=Ke(rt.showBottomNavigation,ot),Xu=()=>Ka(e=>e.value),Qu=()=>Ka(e=>e.actions),Xa=Ke(rt.openMeasurements,ot),Yu=()=>Xa(e=>e.value),Zu=()=>Xa(e=>e.actions),Ju=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:Fu,useActionsPDPOpenLetMeKnow:Wu,useActionsPDPOpenMeasurements:Zu,useActionsPDPSelectedSkuInfo:Uu,useActionsPDPShowBottomNavigation:Qu,useActionsPDPShowNotify:Ku,useGetPDPOpenLetMeKnow:Gu,useGetPDPOpenMeasurements:Yu,useGetPDPSelectedSkuInfo:zu,useGetPDPShowBottomNavigation:Xu,useGetPDPShowNotify:Vu},Symbol.toStringTag,{value:"Module"})),Qa=C.createContext({}),ed=({children:e,headerData:t,...r})=>{var f,p;const n=C.useRef(null),o=C.useRef(null),i=C.useRef(null),a=C.useRef(null),c=C.useRef(null),{mediatorRef:l,currentHeaderConfigsRef:u}=Se();return(f=l.current)==null||f.subscribe("header:change_variant",d=>{var b,A,_;if(d&&u.current&&(u.current.bannerVariant=d),!n.current)return;const m=document.body.scrollTop>0,y=n.current.getAttribute("data-interactiveVariant"),g=m?y:d??((b=u.current)==null?void 0:b.bannerVariant)??"default";g!==((A=u.current)==null?void 0:A.headerVariant)&&(n.current.setAttribute("data-bottomdivider",String(m)),n.current.setAttribute("data-variant",String(g)),(_=l.current)==null||_.publish("herobanner:change_controllers_variant",g),u.current&&(u.current.headerVariant=g))}),(p=l.current)==null||p.subscribe("header:change_position",d=>{n.current&&(n.current.style.position=d)}),C.useEffect(()=>{const d=new AbortController,h=v.helpers.throttle(()=>{var y;return(y=l.current)==null?void 0:y.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",h,{passive:!0,signal:d.signal});const m=y=>{var b;(b=y.target.closest("a"))==null||b.blur()};return n.current&&(n.current.addEventListener("click",m,{signal:d.signal}),n.current.addEventListener("touchend",m,{signal:d.signal})),()=>{d.abort()}},[]),s.jsx(Qa.Provider,{value:{headerData:t,structureRef:o,rootRef:n,tipbarRef:i,userMenuMobileRef:a,userMenuDesktopRef:c,...r},children:e})},be=()=>C.useContext(Qa),Ya=C.createContext({}),Za=({children:e})=>{const t=C.useRef(null),r=C.useRef(null),n=vo(),o=C.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 C.useEffect(()=>{var i;if(n)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"}}},[n]),C.useEffect(()=>{r.current=document.body},[]),s.jsx(Ya.Provider,{value:{bodyRef:t,handleCloseSubMenu:o,documentBodyRef:r},children:e})},ht=()=>C.useContext(Ya),td=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},rd=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const n=t.getBoundingClientRect(),o=e.getBoundingClientRect(),i=e!=null&&e.parentElement?td(e==null?void 0:e.parentElement):0;return{left:n.left+n.width/2-(o.width+i),top:n.top+n.height+r}},Ja=C.createContext({}),ec=({children:e,delay:t=600,gap:r=20,...n})=>{const[o,i]=C.useState(!1),a=C.useRef(null),[c,l]=C.useState(!1),[u,f]=C.useState({left:0,top:0}),p=C.useCallback(()=>{l(!0),typeof window<"u"&&(a.current=window.setTimeout(()=>{i(!1),l(!1)},t))},[l,i,t]);return C.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),h=window.document.querySelector("#add-to-cart--tooltip");if(d&&h){const{left:m,top:y}=rd(h,d,r??0);f({left:m,top:y}),l(!1)}},[r,o]),s.jsx(Ja.Provider,{value:C.useMemo(()=>({...n,...u,handleClose:p,isLeaving:c,isOpen:o,setIsOpen:i,setIsLeaving:l}),[n,u,p,c,o,i,l]),children:e})},Qe=()=>{const e=C.useContext(Ja);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},tc=C.createContext({}),nd=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const n=tt(),{setRecentlyAdded:o}=ft(),i=C.useRef(""),a=Ta(),{addNotification:c,removeNotification:l}=Ma(),{addCoupon:u,addItem:f,addSellerCode:p,addMarketingData:d,emptyCart:h,isOpen:m,removeItem:y,shipping:g,shippingUpdate:b,toggleServiceToProduct:A,updateItemQuantity:_}=n;C.useEffect(()=>{const w=Gn.get("lastMedias");if(n.id&&w&&i.current!==w){i.current=w;const q=new URLSearchParams(w),z=Na(q);d(z)}},[n,d]);const E=C.useCallback(async(w,q)=>(q==="coupon"?u(w):p(w)).then(U=>{if(typeof U!="boolean"&&U instanceof Object){if(q==="seller"&&"value"in U){const{statusOk:K,value:W}=U,F=String(W??"").split(" - ");return Je((F==null?void 0:F[0])??"",w,!!K)}return Je(String(U.coupon),w,!0)}return Je("","")}).catch(()=>Promise.resolve({code:400})),[u,p]),S=C.useCallback((w,q,z)=>{const{id:U}=w;_(U,q,z)},[_]),P=C.useCallback((w,q,z=!1)=>{if(!w)return;const{id:U}=w,K=Kn(n.items,U);if(K!==-1&&!z){const W=Number(n.items[K].quantity),F=n.items[K]?W+1:1;S(w,F,q)}else f({id:U,quantity:(w==null?void 0:w.quantity)??1,seller:w.seller});m||o(W=>[...W,w])},[f,S,n.items,m,o]),x=C.useCallback((w,q)=>{if(!w||!Array.isArray(w))return;o(U=>[...U,...w]);const z=w.map(U=>{const{id:K,quantity:W,seller:F}=U,ne=Kn(n.items,K),j=wa(W??1,ne);return{id:K,quantity:j,seller:F}});f(z,q)},[f,n.items,o]),I=C.useCallback(async(w,q,z)=>w?y(w).then(()=>(c(q??`${t}`,z),Je(w,w))):Promise.resolve(Je("","Product id required")),[c,y]),B=C.useCallback(()=>{n.items.length>0&&h()},[h,n.items]),R=C.useCallback((w,q="BRA")=>g(w,q),[g]),O=C.useCallback(w=>{w&&b(w)},[b]),N=C.useCallback(async(w,q,z)=>{const U=n.items.findIndex(W=>W.id===w);return n.items[U]&&U>=0?A(q,U,z??!1):!1},[n.items,A]),$=C.useCallback(async(w,q)=>_(w,q).then(z=>{if(Array.isArray(z)){const U=z.find(K=>K.id===w);if(U&&(U==null?void 0:U.quantity)<q)return String(U.quantity)}return!1}),[_]);return s.jsx(tc.Provider,{value:C.useMemo(()=>({...r,addCouponSeller:E,addToCart:P,addItemsToCart:x,cartStore:n,notifications:a,clearCart:B,addNotification:c,isOpen:n.isOpen,removeNotification:l,removeToCart:I,setIsOpen:n.setIsOpen,shipping:R,shippingUpdateOption:O,toggleGiftItemCart:N,updateItemQuantity:$}),[r,E,P,x,a,B,c,n,l,I,R,O,N,$]),children:e})},Be=()=>{const e=C.useContext(tc);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},rc=C.createContext({}),xo=({children:e,fetch:t})=>{const r=C.useRef(!0),[n,o]=C.useState(null),[i,a]=C.useState(!1);return C.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();o(u.data),r.current=!1}catch{r.current=!0,a(!0)}})()},[t]),s.jsx(rc.Provider,{value:C.useMemo(()=>({data:n,isLoading:r.current??!1,isError:i}),[n,i,r]),children:e})},Co=()=>{const e=C.useContext(rc);if(e===void 0)throw new Error("useProductsContext must be used within a useRootContext");return e},nc=C.createContext({}),oc=({children:e,sort:t,state:r,count:n,collectionId:o,CONSTANTS:i})=>{const a=C.useMemo(()=>{var c;return o?[{key:"productclusterids",value:o.toString()}]:(c=r.base)!=null&&c.length?r.base.slice(1).split("/").map((l,u)=>({key:`category-${u+1}`,value:l})):[]},[r.base,o]);return s.jsx(nc.Provider,{value:C.useMemo(()=>({state:{...r,facets:[...a,...r.facets??[]]},sort:t,count:n??i.ITEMS_PER_PAGE}),[a,n,t,r]),children:e})},So=()=>{const e=C.useContext(nc);if(e===void 0)throw new Error("useSearchContext must be used within a SearchProvider");return e},ic={default_option:"score:desc"},od={nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"0",count:0,total:0},id="Imagem do produto",Uo=1,sd="Sair",ad=e=>e.exit,cd=({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"}],ld=(e,t)=>{const r=(t??"").split("@")[0];return e?`Olá${r.length?", ":" "}${r}!`:"Olá!"},ud=e=>"Seja bem vindo!",sc=C.createContext({}),dd=({children:e,searchParams:t,selectedFacets:r})=>{const{data:n,...o}=Co(),{router:i}=Pe(),a=C.useCallback((p,d)=>{if(d){if(p.key.toLocaleLowerCase()==="price"){const h=d.getAll("facets");d.delete("facets"),h.forEach(m=>{const[y]=m.split("/");y!==p.key&&d.append("facets",m)})}d.set("page","1"),d.append("facets",`${p.key}/${p.value}`),i.push(`?${d.toString()}`)}},[i]),c=C.useCallback(()=>{const p=new URLSearchParams;p.set("sort",ic.default_option),p.set("page","1"),i.push(`?${p.toString()}`)},[i]),l=C.useCallback((p,d)=>{if(!d||!d.has&&!d.has("facets"))return;const h=d.getAll("facets");d.delete("facets"),d.set("page","1"),h.forEach(m=>{const[y,g]=m.split("/");(y!==p.key||g!==p.value)&&d.append("facets",m)}),i.push(`?${d.toString()}`)},[i]),u=C.useCallback(p=>{const d=new URLSearchParams(Te.convertSearchParams(t));for(const[,h]of d.entries()){const[m,y]=h.split("/");if(m===p.key&&y===p.value)return l(p,d)}return a(p,d)},[a,l,t]),f=C.useCallback(p=>{const d=new URLSearchParams(Te.convertSearchParams(t));d.set("sort",p.replace("_",":")),i.push(`?${d.toString()}`)},[i,t]);return s.jsx(sc.Provider,{value:C.useMemo(()=>({...o,breadcrumb:n&&"breadcrumb"in n?n==null?void 0:n.breadcrumb:[],deleteAllFacets:c,facets:n&&"facets"in n?n==null?void 0:n.facets:[],selectedFacets:r,onToggleFacet:u,onSort:f,searchParams:t}),[n,c,f,u,o,r,t]),children:e})},fd=({children:e,searchParams:t,forceUpdate:r})=>{const{state:n}=So();return s.jsx(xo,{fetch:()=>fetch("/api/search/facets",{method:"POST",body:JSON.stringify({...n,forceUpdate:r}),priority:"low"}),children:s.jsx(dd,{selectedFacets:(n==null?void 0:n.facets)??[],searchParams:t,children:e})})},pd=()=>{const e=C.useContext(sc);if(e===void 0)throw new Error("useFacetsContext must be used within a FacetsProvider");return e},ac=C.createContext({}),md=({children:e})=>{const{data:t,...r}=Co(),[n,o]=C.useState(0),{sendDataLayerEvent:i}=ge();return C.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)&&o(a)}},[t,i,o]),s.jsx(ac.Provider,{value:C.useMemo(()=>({...r,products:t&&"products"in t?t==null?void 0:t.products:[],pagination:t&&"pagination"in t?t==null?void 0:t.pagination:od,total:n}),[t,r,n]),children:e})},hd=({children:e,query:t,state:r,selectedFacets:n,forceUpdate:o})=>s.jsx(xo,{fetch:()=>fetch("/api/search/product",{method:"POST",body:JSON.stringify({...r,query:t,forceUpdate:o,facets:n??[]})}),children:s.jsx(md,{state:r,children:e})}),gd=()=>{const e=C.useContext(ac);if(e===void 0)throw new Error("useProductsContext must be used within a ProductsProvider");return e},cc=C.createContext({}),yd=({children:e,term:t})=>{const[r,n]=C.useState([]),[o,i]=C.useState(!1);return C.useEffect(()=>{if(!t){n([]);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();n((l==null?void 0:l.searches)||[])}catch(c){console.error("Erro ao buscar sugestões:",c)}})()},[t]),s.jsx(cc.Provider,{value:C.useMemo(()=>({suggestedTerms:r,loading:o,setLoading:i}),[r,o]),children:e})},_d=({children:e,...t})=>s.jsx(yd,{...t,children:e}),vd=()=>{const e=C.useContext(cc);if(!e)throw new Error("useSuggestedTermsContext must be used within a SuggestedTermsProvider");return e},lc=C.createContext({searches:[],isLoading:!1,error:null}),bd=({children:e})=>{const[t,r]=C.useState([]),[n,o]=C.useState(!0),[i,a]=C.useState(null);return C.useEffect(()=>{(async()=>{try{o(!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{o(!1)}})()},[]),s.jsx(lc.Provider,{value:C.useMemo(()=>({searches:t,isLoading:n,error:i}),[t,n,i]),children:e})},xd=()=>{const e=C.useContext(lc);if(!e)throw new Error("useTopSearches must be used within a TopSearchesProvider");return e},uc=C.createContext({}),Cd=({children:e,slug:t,searchParams:r,collectionId:n,itemsPerPage:o=24})=>{const{pathname:i}=Pe(),[a,c]=C.useState(!1),l=C.useMemo(()=>{const f=new URL(i,"http://localhost"),p=Array.isArray(r==null?void 0:r.facets)?r.facets:[(r==null?void 0:r.facets)??""],d=(r==null?void 0:r.page)??"1",h=(r==null?void 0:r.sort)??(n?"":ic.default_option);return f.searchParams.set("page",String(d)),f.searchParams.set("sort",String(h)),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",p.join(",")),f)},[n,i,r,t]),u=C.useMemo(()=>{if(Array.isArray(r==null?void 0:r.facets))return Te.parseSearchState(l,r.facets);const f=r!=null&&r.facets?[r==null?void 0:r.facets]:[];return Te.parseSearchState(l,f)},[l,r]);return s.jsx(uc.Provider,{value:C.useMemo(()=>({openFilters:a,setOpenFilters:c}),[a,c]),children:s.jsx(oc,{CONSTANTS:{ITEMS_PER_PAGE:o},state:C.useMemo(()=>({...u}),[u]),collectionId:n,children:e})})},Sd=()=>{const e=C.useContext(uc);if(e===void 0)throw new Error("usePLPContext must be used within a PLPProvider");return e},Ut=(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((o,i)=>Ut(o,t[i]));if(Array.isArray(t))return!1;const r=Object.keys(e),n=Object.keys(t);return r.length!==n.length?!1:r.every(o=>Object.prototype.hasOwnProperty.call(t,o)&&Ut(e[o],t[o]))},dc=(e,t,r="page")=>Object.keys(t).some(n=>n===r?!1:!Ut(t[n],e[n])),Qn=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},fc=()=>({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}}}),pc=(e,t,r,n=24)=>{const o=new Set,i=[];if(!Array.isArray(e)||e.length===0)return{taken:o,placedBanners:i};const a=t*n*r;for(const c of e){let l=Number(c.position_grid),u=!1;for(;l<a;){const f=l%r;if(f+c.columns>r){l+=r-f;continue}if(!Array.from({length:c.columns}).some((h,m)=>o.has(l+m))){for(let h=0;h<c.columns;h++)o.add(l+h);i.push(l),u=!0;break}l++}u||console.info(`[PLP INFINITE FAILED BANNER POSITION]: pos=${c.position_grid}, cols=${c.columns}`)}return{taken:o,placedBanners:i}},Yn=(e,t,r,n=24)=>{const{placedBanners:o,taken:i}=pc(e??[],t,r),a=[];let c=0;try{for(;a.length<t*n;)i.has(c)||a.push(c),c++;return{banners:o,products:a}}catch(l){console.info(`[PLP INFINITE FAILED TO GEN POSITIONS]: page=${t}`,l)}return{banners:[],products:a}},Ft=(e,t,r=24)=>Array.from({length:e},(n,o)=>{const i=o+1;return{loading:e===i,page:i,pagination:t!=null&&t.products.length&&e===i?t==null?void 0:t.pagination:Ao(),products:t!=null&&t.products.length&&e===i?t==null?void 0:t.products:Array.from({length:r},()=>fc())}}),mc=(e,t)=>[...e,{loading:!1,page:t,pagination:Ao(),products:[]}],Ao=()=>({nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"1",count:1,total:1}),Ad=(e,t,r,n,o)=>{const i=e[e.length-1],a=(i==null?void 0:i.products.length)??o,c=(e.length-1)*o+a-1,l=r[c];return t.filter((u,f)=>{const p=n[f];return p<=l||o>a&&p>l})},hc=(e,t)=>{const r=new Map;for(const o of e){const i=Math.floor(o/t);r.has(i)||r.set(i,[]),r.get(i).push(o)}const n=[];for(const[,o]of r){const i=o[Math.floor(Math.random()*o.length)];n.push(i)}return n},Ed=(e,t)=>{if(!e)return[];const r=e.map((n,o)=>n.video&&n.video!==""?o:null).filter(n=>n);return hc(r,t)},Rd=Object.freeze(Object.defineProperty({__proto__:null,createPage:mc,createPages:Ft,createPagination:Ao,createProduct:fc,deepEqual:Ut,fetchPage:Qn,getBanners:pc,getPositions:Yn,getProductsWithVideo:Ed,getRandomVideoPerRow:hc,getVisibleBanners:Ad,hasStateChangedExceptPage:dc},Symbol.toStringTag,{value:"Module"})),wd=50,jd=nt.create((e,t)=>{const r=a=>Math.min(a,wd),n=async(a,c)=>{const l=r(a.page);try{const u=await Qn({...a,page:l});o(l,f=>c?c(f,u):{...f,...u})}catch(u){console.error(`[PDC - SCROLL INFINITE FAILED TO FETCH PAGE ${l}]: ${u}`),o(l,f=>({...f,loading:!1}))}},o=(a,c)=>{e({load:!0,pages:t().pages.map(l=>l.page===a?c(l):l)})},i=async(a,c)=>{await n(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 p,d,h;const f=r(Number(a==null?void 0:a.page));e({...c,pages:Ft(f,void 0,u)});try{const m=await Qn({...a,page:f});if(m){if(!m.products.length&&((p=m==null?void 0:m.pagination)==null?void 0:p.total)<f){i({...a,page:(d=m==null?void 0:m.pagination)==null?void 0:d.total},l),e({pages:Ft((h=m==null?void 0:m.pagination)==null?void 0:h.total)});return}typeof l=="function"&&l(m),e({load:!0,pages:Ft(f,m),total:Number(m.pagination.count)})}}catch(m){console.error(`[PDC - SCROLL INFINITE TO CREATE PAGES]: page ${f} ${m}`)}},addPage:(a,c,l)=>{const{pages:u}=t(),f=r(a==null?void 0:a.page);u.some(p=>p.page===f)||(e({...c,pages:mc(u,f)}),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)}}}),Pd=(e,t,r,n=0)=>{if(!e.length)return[];let o=0;const i=[];for(let a=0;a<e.length;a+=r){const c=e.slice(a,a+r),l=c.findIndex(u=>{var f;return(f=u.node)==null?void 0:f.video});for(let u=0;u<c.length;u++){const f=a+u,p=n+f,d=t.find(m=>m.position_grid===p+1),h=p+o+1;d&&(o+=d.columns),i.push({position:h,canPlayVideo:u===l})}}return i},Id=(e,t,r)=>{const n=(t-1)*r,o=t*r;return e>=n&&e<=o},gc=e=>{var t;return(t=e==null?void 0:e.map(r=>({disable:ho(r),size:mo(r),skuID:"sku"in r&&r.sku})))==null?void 0:t.filter(r=>r.disable)},Nd=Object.freeze(Object.defineProperty({__proto__:null,createGridPosAndVideo:Pd,getSkusNotify:gc,isPositionInCurrentPage:Id},Symbol.toStringTag,{value:"Module"})),yc=C.createContext({}),Od=({banners:e,children:t,itemsPerPage:r=24,searchParams:n,Notification:o})=>{const{router:i}=Pe(),{sendDataLayerEvent:a}=ge(),{isMobile:c}=Se(),{state:l}=So(),{addPage:u,createPages:f,updateProducts:p,...d}=jd(),h=c?8:16,m=c?2:4,y=C.useRef(!1),g=C.useRef(l),[b,A]=C.useState(!1),[_,E]=C.useState(null),[S,P]=C.useState([]),x=C.useCallback(N=>{N&&"pagination"in N&&a({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:N.products}}})},[a]),I=C.useCallback(N=>{if(N.pagination.nextPage===!0){const $=N.page+1,w=Yn(e,$,m,r);u({...l,page:$},w,x)}},[u,e,x,m,r,l]),B=C.useCallback(N=>{N.loading===!1&&p({...l,page:N.page},x)},[x,p,l]),R=C.useCallback(N=>{const $=new URLSearchParams(n);N.page!==Number($.get("page")??1)&&($.set("page",String(N.page)),i.replace(`?${$.toString()}`,{scroll:!1}))},[i,n]),O=C.useCallback((N,$)=>{const w=$?gc([$]):null;P(N),E(w!=null&&w.length?w[0]:null),A(!0)},[]);return C.useEffect(()=>{const N=!y.current,$=dc(g.current,l),w=Yn(e,l.page,m);N?f(l,w,x,r):$&&(f(l,w,x,r),g.current=l),y.current=!0},[e,f,x,m,r,l]),s.jsxs(yc.Provider,{value:C.useMemo(()=>({...d,addPage:u,addNewPage:I,createPages:f,gap:h,columns:m,handleNotify:O,updatePage:B,updateProducts:p,updateParamPage:R}),[u,I,f,O,h,m,d,B,p,R]),children:[t,s.jsx(o,{notify:b,sku:_,skus:S,setSku:E,setNotify:A})]})},Td=()=>{const e=C.useContext(yc);if(e===void 0)throw new Error("PLPInfiniteScrollContext must be used within a ScrollInfiniteProvider");return e};function _c(e){const r=decodeURIComponent(window.document.cookie).split(";");for(const n of r){const[o,i]=n.trim().split("=");if(o===e)return i}}function Eo(e,t,r={}){const o={...{path:"/",expires:new Date(Date.now()+36e5)},...r};let i=`${encodeURIComponent(e)}=${encodeURIComponent(t??"")}`;for(const a in o)o[a]!==void 0&&(i+=`; ${a}`,a==="expires"?i+=`=${o[a].toUTCString()}`:typeof o[a]=="boolean"?i+=`; ${o[a]?"true":"false"}`:i+=`=${o[a]}`);window.document.cookie=i}const Md=()=>{const{sendDataLayerEvent:e}=ge(),{user:t}=Ro(),{cartStore:r}=Be();return C.useEffect(()=>{if(!t)return;(async()=>{const{userId:o,email:i,firstName:a,lastName:c,phone:l,homePhone:u,postalCode:f,street:p,number:d,city:h,gender:m}=t,y=new TextEncoder().encode(o),g=await crypto.subtle.digest("SHA-256",y),A=Array.from(new Uint8Array(g)).map(_=>_.toString(16).padStart(2,"0")).join("");e({functionKey:"readyEvents",data:{readyData:{user_id:A,email:i,first_name:a,last_name:c,phone:l||u,zip:f,street:p,street_number:d,city:h,gender:m,orderform_id:r==null?void 0:r.id}}})})()},[t,r.id]),null},vc=C.createContext({amount:null,boxes:null,toExpire:null,loading:!0,logout:()=>null,getCurrentCredits:()=>({credits:0,cashback:0})}),kd=({children:e,AUTH_TOKEN_COOKIE:t})=>{const[r,n]=C.useState({amount:null,boxes:null,toExpire:null,loading:!0}),o=C.useCallback(async()=>{try{await fetch("/api/user",{priority:"low"}).then(c=>c.json()).then(c=>{const{userCredits:l,...u}=c;n({amount:l==null?void 0:l.amount,boxes:l==null?void 0:l.boxes,toExpire:l==null?void 0:l.toExpire,user:u,loading:!1})})}catch(c){console.error("my credits request",c),n({...r,loading:!1})}},[n]),i=C.useCallback(()=>{Eo(t),o()},[o]),a=C.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 C.useEffect(()=>{o()},[o]),s.jsxs(vc.Provider,{value:C.useMemo(()=>({...r,getCurrentCredits:a,logout:i}),[r,a,i]),children:[s.jsx(Md,{}),e]})},Ro=()=>{const e=C.useContext(vc);if(e===void 0)throw new Error("useContext(SessionContext) must be used within a SessionProvider");return e},bc=C.createContext({gridBanners:void 0,banners:[]}),Ld=({children:e,data:t,device:r,SectionZone:n,COMMON_PAGE_COLUMN_GAP_PDC:o})=>{const{isMobile:i}=Se(),a=(t==null?void 0:t.sections.filter(p=>p.name!=="List Product Banners"))??[],c=a.slice(0,Uo),l=a.slice(Uo,a.length),u=t==null?void 0:t.sections.find(p=>p.name==="List Product Banners"),f=C.useMemo(()=>{var p,d;return((d=(p=u==null?void 0:u.data)==null?void 0:p.banners)==null?void 0:d.map(h=>({...h.banner,columns:h.bannerWidth,position_grid:h.bannerPosition})))??[]},[u]);return i&&r==="mobile"||!i&&r==="desktop"?s.jsxs(bc.Provider,{value:{gridBanners:u,banners:f},children:[s.jsx(n,{data:c??[]}),s.jsxs(v.Utils.Column,{gap:o,className:v.helpers.classNameConcat("utils-column-modifier"),children:[e,s.jsx(n,{data:l??[]})]})]}):s.jsx(s.Fragment,{})},Dd=()=>{const e=C.useContext(bc);return e===void 0&&console.error("Needs PLPContentContext on parent component"),e},$d={contexts:{addToCart:{hook:Qe,provider:ec},cart:{hook:Be,provider:nd},cms:{FlagsAndTags:{context:lo,hook:uo,provider:uu}},events:{hook:ge,provider:Su},global:{hook:Se,provider:Du,mediator:Da},header:{hook:be,provider:ed},menuMobile:{hook:ht,provider:Za},next:{hook:Pe,provider:$u},pdp:{provider:du,hook:fu},plp:{provider:Cd,hook:Sd},PLPContent:{provider:Ld,hook:Dd},plpInfinite:{provider:Od,hook:Td},pdpdata:{hook:yo,provider:Au},searchFacets:{hook:pd,provider:fd},searchProducts:{hook:gd,provider:hd},searchRoot:{hook:Co,provider:xo},searchSearch:{hook:So,provider:oc},searchSuggestedTerms:{hook:vd,provider:_d},searchTopSearchs:{hook:xd,provider:bd},session:{hook:Ro,provider:kd},ui:{hook:ft,provider:La}},hooks:{useBackPDC:ra},stores:{cart:ku,header:Hu,pdp:Ju}},Bd=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function qd(e,t=1e3){let r=!1;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>{r=!1},t))}}function Hd(e,t=1e3){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}const xc=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,ct=(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),Fd=e=>{const t=lu.decodeJwt(e??"");return{email:t.sub,userId:t.userId}},zd=["name","email","phone","date","cpf","cep"],Go={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}$/},Ud=({type:e,input:t,required:r=!1})=>{if(typeof t!="string"||!r&&t===""||!Go[e])return!0;const n=t.trim();return Go[e].test(n)},Gd=e=>{const t=/\/(\d+)-\d+-\d+\/(.+?)\./,r=typeof e=="string"?e.match(t):null;return r?r[2].replace(/-/g," "):id},Wd=Object.freeze(Object.defineProperty({__proto__:null,FieldTypes:zd,debounce:Hd,getAltTextFromUrl:Gd,getAuthenticatedUser:Fd,getCookie:_c,getDaysHoursMinutesSeconds:ct,getMilliSeconds:xc,removeAccentsAndReplaceSpaces:Bd,setCookie:Eo,throttle:qd,validateInput:Ud},Symbol.toStringTag,{value:"Module"})),Vd={cart:Ou,events:Cu,plp:Rd,product:gu,utils:Wd},wo={helpers:Vd},Ie={"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"},Cc=({brand:e,className:t,name:r,...n})=>s.jsxs("div",{...n,className:v.helpers.classNameConcat(Ie["add-to-cart--card--name"],t),children:[s.jsx(v.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),s.jsx(v.TextStructure.Root,{children:s.jsx(v.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:s.jsx("p",{className:"typography-style-body-md",children:r})})})]});Cc.displayName="AddToCart.Card.Name";const Sc=({className:e,listPrice:t,price:r,quantity:n,productId:o,...i})=>{const a=Me(r/100),c=Me(t/100);return s.jsx("div",{...i,className:v.helpers.classNameConcat(Ie["add-to-cart--card--price-quantity"],e),children:s.jsx(v.ProductInfo.Root,{size:"small",layout:"vertical",children:s.jsx(v.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:s.jsx(v.ProductInfo.ValuesWrapper,{children:r!==t?s.jsxs(s.Fragment,{children:[s.jsx(v.ProductInfo.Price,{label:"originalPrice",value:a,size:"small"},"price-list"),s.jsx(v.ProductInfo.Price,{label:"discountPrice",value:c,size:"small"},"price-low")]}):s.jsx(v.ProductInfo.Price,{label:"defaultPrice",value:c,size:"small"},"price-low")})})})})};Sc.displayName="AddToCart.Card.PriceQuantity";const Kd="_skeleton_12b79_1",Xd={skeleton:Kd},Qd=({style:e})=>s.jsx("div",{style:e,className:Xd.skeleton}),Yd="_image_lypfr_1",Zd={image:Yd},Jd=({alt:e,className:t,objectFit:r,...n})=>{const{nextimage:o}=Pe();return s.jsx(o,{quality:90,...n,alt:e??"",className:v.helpers.classNameConcat(Zd.image,t),"data-object-fit":r??"cover"})},ef=({videoRef:e,...t})=>s.jsx("video",{...t,ref:e,children:s.jsx("track",{kind:"captions"})}),$e={Image:Jd,Video:ef},Ac=({className:e,productGroupID:t,size:r,texture:n,...o})=>{const{CONSTANTS:{TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a}}=Qe(),[c,l]=C.useState(n??"");return C.useEffect(()=>{c||fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[t]})}).then(u=>u.json()).then(u=>{const f=u.data[0].items[0];if(f){const p=f.images.find(d=>i.includes(d.imageLabel));p!=null&&p.imageUrl?l(p.imageUrl):l(f.images[0].imageUrl)}}).catch(u=>{console.error(u)})},[c,t]),s.jsxs("div",{...o,className:v.helpers.classNameConcat(Ie["add-to-cart--card--style-size"],e),children:[s.jsx(v.ToggleStyle.Wrapper,{size:"x-small",style:a,children:s.jsx(v.ToggleStyle.Texture,{children:c?s.jsx($e.Image,{alt:"",src:c??"",width:164,height:164,style:a}):s.jsx(Qd,{})})}),s.jsx(v.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),r&&s.jsxs(v.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[s.jsx(v.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),s.jsx(v.ToggleSize.Text,{children:r})]})]})};Ac.displayName="AddToCart.Card.StyleSize";const{helpers:tf}=wo,Ec=({className:e,item:t,texture:r,...n})=>{const{itemOffered:{name:o,brand:i,skuName:a,isVariationOf:{productGroupID:c}},quantity:l,price:u,sellingPrice:f}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:p}}=Qe(),{size:d}=tf.product.getColorAndSizeFromSkuName(a??o,p);return s.jsxs("div",{...n,className:v.helpers.classNameConcat(Ie["add-to-cart--card--content"],e),children:[s.jsx(Cc,{brand:i.name,name:o}),s.jsx(Sc,{price:u,listPrice:f,quantity:l,productId:t.id}),s.jsx(Ac,{size:d,texture:r,productGroupID:c})]})};Ec.displayName="AddToCart.Card.Content";const Rc=({image:e,thumbnail:t=!1})=>s.jsx($e.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});Rc.displayName="AddToCart.Card";const wc=({className:e,item:t,texture:r,thumbnail:n,...o})=>{const{itemOffered:{image:[i]}}=t,a=aa(i.url,{width:200,height:300});return s.jsxs("div",{...o,className:v.helpers.classNameConcat(Ie["add-to-cart--card"],e),children:[s.jsx(Rc,{image:{alternateName:i.alternateName||"Produto",url:a||""},thumbnail:n}),!n&&s.jsx(Ec,{item:t,texture:r})]})};wc.displayName="AddToCart.Card";const jc=({className:e,children:t,title:r,...n})=>s.jsxs("div",{...n,className:v.helpers.classNameConcat(Ie["add-to-cart--content"],e),children:[s.jsx("div",{className:Ie["add-to-cart--content--title"],children:r&&s.jsx("h2",{children:r})}),t,s.jsx(Ve.Footer,{})]});jc.displayName="AddToCart.Layout.Content";const Pc=({className:e,...t})=>{var h,m;const{isMobile:r,handleClose:n,CONSTANTS:{ADD_TO_CART:o}}=Qe(),{cartStore:{totalizers:i},setIsOpen:a}=Be(),c=(h=i.find(y=>y.id==="Discounts"))==null?void 0:h.value,l=((m=i.find(y=>y.id==="Items"))==null?void 0:m.value)??0,u=i.find(y=>y.id==="Shipping"),p=(l-Math.abs(c??0)+((u==null?void 0:u.value)??0))/100,d=Me(p??0);return s.jsxs("div",{...t,className:v.helpers.classNameConcat(Ie["add-to-cart--footer"],e),children:[s.jsxs("div",{className:Ie["add-to-cart--footer--total"],children:[s.jsx("span",{children:"Subtotal:"}),s.jsx("span",{children:d})]}),s.jsx(v.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>a(!0),children:o.footer.bag}),r?s.jsx(v.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:o.footer.keep_buying}):s.jsx(v.Button,{onClick:()=>n(),size:"medium",variant:"tertiary",children:o.footer.keep_buying})]})};Pc.displayName="AddToCart.Layout.Footer";const Ic=({children:e,className:t,thumbnail:r=!1,...n})=>{const{cartStore:{options:o}}=Be(),{recentlyAddedProducts:i}=ft(),a=i.length>3?4:i.length;return s.jsxs("div",{...n,className:Ie["add-to-cart--items"],"data-thumbnail":r,children:[Array.isArray(i)&&i.filter((c,l)=>l<a).map(c=>{var u;const l=(u=o==null?void 0:o.find(f=>f.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:u.texture;return s.jsx(Ve.Card,{item:c,thumbnail:r,texture:l},c.itemOffered.sku)}),e]})};Ic.displayName="AddToCart.Layout.Items";const Nc=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:n}=Qe(),{isMobile:o}=Se();return s.jsxs(v.Modal.Root,{"data-modal":"add-to-cart--modal",className:Ie["add-to-cart__modal"],isMobile:o??!1,isOpen:r,setIsOpen:n,variant:"sideBottom",style:{zIndex:t.modal},children:[s.jsx(v.Modal.Header,{navigation:"top",children:s.jsx(v.Modal.Controls,{navigation:"top",isMobile:!0})}),s.jsx(v.Modal.Body,{children:e})]})};Nc.displayName="AddToCart.Modal";const rf=({children:e})=>{const{count:t,handleClose:r,setIsOpen:n}=Qe(),o=C.useRef(t);return C.useEffect(()=>{t>o.current&&n(!0),t<o.current&&o.current>=1&&r(),o.current=t},[t,r,n]),s.jsx(s.Fragment,{children:e})},Oc=({children:e,component:t,CONSTANTS:r,...n})=>{const{recentlyAddedProducts:o}=ft(),{isMobile:i}=Se(),a=o.length>3?4:o.length;return s.jsx(ec,{...n,count:a,isMobile:i,CONSTANTS:r,children:s.jsx(rf,{children:i?s.jsxs(s.Fragment,{children:[s.jsx(Ve.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):s.jsx(Ve.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};Oc.displayName="AddToCart.Root";const Tc=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:o,left:i,isLeaving:a,target:c,isOpen:l,top:u}=Qe();return s.jsx(v.Tooltip.Root,{arrow:"top-right",component:s.jsx("div",{...n,ref:o,children:t}),id:"add-to-cart--tooltip",className:Ie["add-to-cart--tooltip"],style:{zIndex:r.modal},isLeaving:a,isOpen:l,left:i,size:"medium",position:"top",top:u,children:s.jsx("div",{className:Ie["add-to-cart--tooltip"],ref:c,children:e})})};Tc.displayName="AddToCart.Tooltip";const Ve={Card:wc,Content:jc,Footer:Pc,Items:Ic,Modal:Nc,Root:Oc,Tooltip:Tc},jo=({title:e,...t})=>{const{recentlyAddedProducts:r}=ft(),{isMobile:n}=Se(),o=r.length>3?4:r.length,i=r.length>(o??1),a=r.length>1;return s.jsx(Ve.Root,{isMobile:n,count:r.length,component:s.jsx(Ve.Content,{title:e,children:s.jsx(Ve.Items,{thumbnail:a,children:i&&s.jsx(v.Badge.Count,{count:r.length-o,size:"medium",variant:"secondary"})})}),...t})};jo.displayName="AddToCart";const Wo={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},nf=({children:e,className:t,adornment:r,iconPosition:n,scrollToOptions:o,style:i,...a})=>{const c={top:(o==null?void 0:o.top)??0,left:(o==null?void 0:o.left)??0,behavior:(o==null?void 0:o.behavior)??"smooth"},u=n&&r?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[n]}:{},f=()=>{window&&window.document.body.scrollTo({...c})};return s.jsx(v.Card,{...a,shadow:!0,padding:"small",className:v.helpers.classNameConcat(Wo["card-modifier"],t),style:{...i,padding:0},children:s.jsxs("button",{className:Wo["backtotop-btn"],onClick:f,style:{...u},"data-orientation":n,children:[r,e]})})};var Mc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function of(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?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(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Zn={exports:{}},je={};je._=je._interop_require_default=sf;function sf(e){return e&&e.__esModule?e:{default:e}}var At={exports:{}},ir={},Vo;function kc(){return Vo||(Vo=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 o},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 n(a){return typeof a=="string"||typeof a=="number"&&!isNaN(a)||typeof a=="boolean"?String(a):""}function o(a){const c=new URLSearchParams;return Object.entries(a).forEach(l=>{let[u,f]=l;Array.isArray(f)?f.forEach(p=>c.append(u,n(p))):c.set(u,n(f))}),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(f=>{Array.from(f.keys()).forEach(p=>a.delete(p)),f.forEach((p,d)=>a.append(d,p))}),a}}(ir)),ir}var sr={},Et={},Ko;function Qt(){if(Ko)return Et;Ko=1;function e(r){if(typeof WeakMap!="function")return null;var n=new WeakMap,o=new WeakMap;return(e=function(i){return i?o:n})(r)}Et._=Et._interop_require_wildcard=t;function t(r,n){if(!n&&r&&r.__esModule)return r;if(r===null||typeof r!="object"&&typeof r!="function")return{default:r};var o=e(n);if(o&&o.has(r))return o.get(r);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in r)if(c!=="default"&&Object.prototype.hasOwnProperty.call(r,c)){var l=a?Object.getOwnPropertyDescriptor(r,c):null;l&&(l.get||l.set)?Object.defineProperty(i,c,l):i[c]=r[c]}return i.default=r,o&&o.set(r,i),i}return Et}var Xo;function Lc(){return Xo||(Xo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,u){for(var f in u)Object.defineProperty(l,f,{enumerable:!0,get:u[f]})}t(e,{formatUrl:function(){return i},urlObjectKeys:function(){return a},formatWithValidation:function(){return c}});const n=Qt()._(kc()),o=/https?|ftp|gopher|file/;function i(l){let{auth:u,hostname:f}=l,p=l.protocol||"",d=l.pathname||"",h=l.hash||"",m=l.query||"",y=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?y=u+l.host:f&&(y=u+(~f.indexOf(":")?"["+f+"]":f),l.port&&(y+=":"+l.port)),m&&typeof m=="object"&&(m=String(n.urlQueryToSearchParams(m)));let g=l.search||m&&"?"+m||"";return p&&!p.endsWith(":")&&(p+=":"),l.slashes||(!p||o.test(p))&&y!==!1?(y="//"+(y||""),d&&d[0]!=="/"&&(d="/"+d)):y||(y=""),h&&h[0]!=="#"&&(h="#"+h),g&&g[0]!=="?"&&(g="?"+g),d=d.replace(/[?#]/g,encodeURIComponent),g=g.replace("#","%23"),""+p+y+d+g+h}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)}}(sr)),sr}var ar={},Qo;function af(){return Qo||(Qo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(r,n){const o={};return Object.keys(r).forEach(i=>{n.includes(i)||(o[i]=r[i])}),o}}(ar)),ar}var cr={},Yo;function Yt(){return Yo||(Yo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(E,S){for(var P in S)Object.defineProperty(E,P,{enumerable:!0,get:S[P]})}t(e,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return i},getLocationOrigin:function(){return a},getURL:function(){return c},getDisplayName:function(){return l},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return f},loadGetInitialProps:function(){return p},SP:function(){return d},ST:function(){return h},DecodeError:function(){return m},NormalizeError:function(){return y},PageNotFoundError:function(){return g},MissingStaticPage:function(){return b},MiddlewareNotFoundError:function(){return A},stringifyError:function(){return _}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(E){let S=!1,P;return function(){for(var x=arguments.length,I=new Array(x),B=0;B<x;B++)I[B]=arguments[B];return S||(S=!0,P=E(...I)),P}}const o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=E=>o.test(E);function a(){const{protocol:E,hostname:S,port:P}=window.location;return E+"//"+S+(P?":"+P:"")}function c(){const{href:E}=window.location,S=a();return E.substring(S.length)}function l(E){return typeof E=="string"?E:E.displayName||E.name||"Unknown"}function u(E){return E.finished||E.headersSent}function f(E){const S=E.split("?");return S[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(S[1]?"?"+S.slice(1).join("?"):"")}async function p(E,S){if(process.env.NODE_ENV!=="production"){var P;if((P=E.prototype)!=null&&P.getInitialProps){const B='"'+l(E)+'.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(B)}}const x=S.res||S.ctx&&S.ctx.res;if(!E.getInitialProps)return S.ctx&&S.Component?{pageProps:await p(S.Component,S.ctx)}:{};const I=await E.getInitialProps(S);if(x&&u(x))return I;if(!I){const B='"'+l(E)+'.getInitialProps()" should resolve to an object. But found "'+I+'" instead.';throw new Error(B)}return process.env.NODE_ENV!=="production"&&Object.keys(I).length===0&&!S.ctx&&console.warn(""+l(E)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),I}const d=typeof performance<"u",h=d&&["mark","measure","getEntriesByName"].every(E=>typeof performance[E]=="function");class m extends Error{}class y extends Error{}class g extends Error{constructor(S){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+S}}class b extends Error{constructor(S,P){super(),this.message="Failed to load static file for page: "+S+" "+P}}class A extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function _(E){return JSON.stringify({message:E.message,stack:E.stack})}}(cr)),cr}var Rt={exports:{}},lr={},Zo;function Dc(){return Zo||(Zo=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(/\/$/,"")||"/"}}(lr)),lr}var ur={},Jo;function Po(){return Jo||(Jo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(r){const n=r.indexOf("#"),o=r.indexOf("?"),i=o>-1&&(n<0||o<n);return i||n>-1?{pathname:r.substring(0,i?o:n),query:i?r.substring(o,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}}(ur)),ur}var ei;function Zt(){return ei||(ei=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const r=Dc(),n=Po(),o=i=>{if(!i.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return i;const{pathname:a,query:c,hash:l}=(0,n.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)}(Rt,Rt.exports)),Rt.exports}var dr={},wt={exports:{}},fr={},ti;function $c(){return ti||(ti=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=Po();function r(n,o){if(typeof n!="string")return!1;const{pathname:i}=(0,t.parsePath)(n);return i===o||i.startsWith(o+"/")}}(fr)),fr}var ri;function cf(){return ri||(ri=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});const r=$c(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i){return(0,r.pathHasPrefix)(i,n)}(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 ni;function Bc(){return ni||(ni=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=Yt(),r=cf();function n(o){if(!(0,t.isAbsoluteUrl)(o))return!0;try{const i=(0,t.getLocationOrigin)(),a=new URL(o,i);return a.origin===i&&(0,r.hasBasePath)(a.pathname)}catch{return!1}}}(dr)),dr}var pr={},mr={},oi;function lf(){return oi||(oi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class t{insert(o){this._insert(o.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(o){o===void 0&&(o="/");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(""+o+c+"/")).reduce((c,l)=>[...c,...l],[]);if(this.slugName!==null&&a.push(...this.children.get("[]")._smoosh(o+"["+this.slugName+"]/")),!this.placeholder){const c=o==="/"?"/":o.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(o+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&a.push(...this.children.get("[[...]]")._smoosh(o+"[[..."+this.optionalRestSlugName+"]]/")),a}_insert(o,i,a){if(o.length===0){this.placeholder=!1;return}if(a)throw new Error("Catch-all must be the last part of the URL.");let c=o[0];if(c.startsWith("[")&&c.endsWith("]")){let f=function(p,d){if(p!==null&&p!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+p+"' !== '"+d+"').");i.forEach(h=>{if(h===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(h.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+h+'" 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 "'+o[0]+'" ).');f(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 "'+o[0]+'").');f(this.restSlugName,l),this.restSlugName=l,c="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+o[0]+'").');f(this.slugName,l),this.slugName=l,c="[]"}}this.children.has(c)||this.children.set(c,new t),this.children.get(c)._insert(o.slice(1),i,a)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(n){const o=new t;return n.forEach(i=>o.insert(i)),o.smoosh()}}(mr)),mr}var hr={},ii;function uf(){return ii||(ii=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return r}});const t=/\/\[[^/]+?\](?=\/|$)/;function r(n){return t.test(n)}}(hr)),hr}var si;function df(){return si||(si=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,i){for(var a in i)Object.defineProperty(o,a,{enumerable:!0,get:i[a]})}t(e,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=lf(),n=uf()}(pr)),pr}var gr={},yr={},ai;function ff(){return ai||(ai=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=Yt();function r(n){let{re:o,groups:i}=n;return a=>{const c=o.exec(a);if(!c)return!1;const l=f=>{try{return decodeURIComponent(f)}catch{throw new t.DecodeError("failed to decode param")}},u={};return Object.keys(i).forEach(f=>{const p=i[f],d=c[p.pos];d!==void 0&&(u[f]=~d.indexOf("/")?d.split("/").map(h=>l(h)):p.repeat?[l(d)]:l(d))}),u}}}(yr)),yr}var _r={},vr={},br={},xr={},ci;function pf(){return ci||(ci=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}}(xr)),xr}var Cr={},li;function mf(){return li||(li=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(")")}}(Cr)),Cr}var ui;function hf(){return ui||(ui=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 o},normalizeRscPath:function(){return i}});const r=pf(),n=mf();function o(a){return(0,r.ensureLeadingSlash)(a.split("/").reduce((c,l,u,f)=>!l||(0,n.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&u===f.length-1?c:c+"/"+l,""))}function i(a,c){return c?a.replace(/\.rsc($|\?)/,"$1"):a}}(br)),br}var di;function gf(){return di||(di=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 n},isInterceptionRouteAppPath:function(){return o},extractInterceptionRouteInformation:function(){return i}});const r=hf(),n=["(..)(..)","(.)","(..)","(...)"];function o(a){return a.split("/").find(c=>n.find(l=>c.startsWith(l)))!==void 0}function i(a){let c,l,u;for(const f of a.split("/"))if(l=n.find(p=>f.startsWith(p)),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 f=c.split("/");if(f.length<=2)throw new Error(`Invalid interception route: ${a}. Cannot use (..)(..) marker at the root level or one level up.`);u=f.slice(0,-2).concat(u).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:c,interceptedRoute:u}}}(vr)),vr}var Sr={},fi;function yf(){return fi||(fi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return n}});const t=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function n(o){return t.test(o)?o.replace(r,"\\$&"):o}}(Sr)),Sr}var pi;function _f(){return pi||(pi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,g){for(var b in g)Object.defineProperty(y,b,{enumerable:!0,get:g[b]})}t(e,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return h},getNamedMiddlewareRegex:function(){return m}});const r=gf(),n=yf(),o=Dc(),i="nxtP",a="nxtI";function c(y){const g=y.startsWith("[")&&y.endsWith("]");g&&(y=y.slice(1,-1));const b=y.startsWith("...");return b&&(y=y.slice(3)),{key:y,repeat:b,optional:g}}function l(y){const g=(0,o.removeTrailingSlash)(y).slice(1).split("/"),b={};let A=1;return{parameterizedRoute:g.map(_=>{const E=r.INTERCEPTION_ROUTE_MARKERS.find(P=>_.startsWith(P)),S=_.match(/\[((?:\[.*\])|.+)\]/);if(E&&S){const{key:P,optional:x,repeat:I}=c(S[1]);return b[P]={pos:A++,repeat:I,optional:x},"/"+(0,n.escapeStringRegexp)(E)+"([^/]+?)"}else if(S){const{key:P,repeat:x,optional:I}=c(S[1]);return b[P]={pos:A++,repeat:x,optional:I},x?I?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,n.escapeStringRegexp)(_)}).join(""),groups:b}}function u(y){const{parameterizedRoute:g,groups:b}=l(y);return{re:new RegExp("^"+g+"(?:/)?$"),groups:b}}function f(){let y=0;return()=>{let g="",b=++y;for(;b>0;)g+=String.fromCharCode(97+(b-1)%26),b=Math.floor((b-1)/26);return g}}function p(y){let{getSafeRouteKey:g,segment:b,routeKeys:A,keyPrefix:_}=y;const{key:E,optional:S,repeat:P}=c(b);let x=E.replace(/\W/g,"");_&&(x=""+_+x);let I=!1;return(x.length===0||x.length>30)&&(I=!0),isNaN(parseInt(x.slice(0,1)))||(I=!0),I&&(x=g()),_?A[x]=""+_+E:A[x]=""+E,P?S?"(?:/(?<"+x+">.+?))?":"/(?<"+x+">.+?)":"/(?<"+x+">[^/]+?)"}function d(y,g){const b=(0,o.removeTrailingSlash)(y).slice(1).split("/"),A=f(),_={};return{namedParameterizedRoute:b.map(E=>{const S=r.INTERCEPTION_ROUTE_MARKERS.some(x=>E.startsWith(x)),P=E.match(/\[((?:\[.*\])|.+)\]/);return S&&P?p({getSafeRouteKey:A,segment:P[1],routeKeys:_,keyPrefix:g?a:void 0}):P?p({getSafeRouteKey:A,segment:P[1],routeKeys:_,keyPrefix:g?i:void 0}):"/"+(0,n.escapeStringRegexp)(E)}).join(""),routeKeys:_}}function h(y,g){const b=d(y,g);return{...u(y),namedRegex:"^"+b.namedParameterizedRoute+"(?:/)?$",routeKeys:b.routeKeys}}function m(y,g){const{parameterizedRoute:b}=l(y),{catchAll:A=!0}=g;if(b==="/")return{namedRegex:"^/"+(A?".*":"")+"$"};const{namedParameterizedRoute:_}=d(y,!1);let E=A?"(?:(/.*)?)":"";return{namedRegex:"^"+_+E+"$"}}}(_r)),_r}var mi;function vf(){return mi||(mi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=ff(),r=_f();function n(o,i,a){let c="";const l=(0,r.getRouteRegex)(o),u=l.groups,f=(i!==o?(0,t.getRouteMatcher)(l)(i):"")||a;c=o;const p=Object.keys(u);return p.every(d=>{let h=f[d]||"";const{repeat:m,optional:y}=u[d];let g="["+(m?"...":"")+d+"]";return y&&(g=(h?"":"/")+"["+g+"]"),m&&!Array.isArray(h)&&(h=[h]),(y||d in f)&&(c=c.replace(g,m?h.map(b=>encodeURIComponent(b)).join("/"):encodeURIComponent(h))||"/")})||(c=""),{params:p,result:c}}}(gr)),gr}var hi;function bf(){return hi||(hi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});const r=kc(),n=Lc(),o=af(),i=Yt(),a=Zt(),c=Bc(),l=df(),u=vf();function f(p,d,h){let m,y=typeof d=="string"?d:(0,n.formatWithValidation)(d);const g=y.match(/^[a-zA-Z]{1,}:\/\//),b=g?y.slice(g[0].length):y;if((b.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+y+"' passed to next/router in page: '"+p.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const _=(0,i.normalizeRepeatedSlashes)(b);y=(g?g[0]:"")+_}if(!(0,c.isLocalURL)(y))return h?[y]:y;try{m=new URL(y.startsWith("#")?p.asPath:p.pathname,"http://n")}catch{m=new URL("/","http://n")}try{const _=new URL(y,m);_.pathname=(0,a.normalizePathTrailingSlash)(_.pathname);let E="";if((0,l.isDynamicRoute)(_.pathname)&&_.searchParams&&h){const P=(0,r.searchParamsToUrlQuery)(_.searchParams),{result:x,params:I}=(0,u.interpolateAs)(_.pathname,_.pathname,P);x&&(E=(0,n.formatWithValidation)({pathname:x,hash:_.hash,query:(0,o.omit)(P,I)}))}const S=_.origin===m.origin?_.href.slice(_.origin.length):_.href;return h?[S,E||S]:S}catch{return h?[y]: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)}(At,At.exports)),At.exports}var jt={exports:{}},Ar={},Er={},gi;function qc(){return gi||(gi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=Po();function r(n,o){if(!n.startsWith("/")||!o)return n;const{pathname:i,query:a,hash:c}=(0,t.parsePath)(n);return""+o+i+a+c}}(Er)),Er}var yi;function xf(){return yi||(yi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=qc(),r=$c();function n(o,i,a,c){if(!i||i===a)return o;const l=o.toLowerCase();return!c&&((0,r.pathHasPrefix)(l,"/api")||(0,r.pathHasPrefix)(l,"/"+i.toLowerCase()))?o:(0,t.addPathPrefix)(o,"/"+i)}}(Ar)),Ar}var _i;function Cf(){return _i||(_i=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=Zt(),n=function(o){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)(xf().addLocale(o,...a)):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)}(jt,jt.exports)),jt.exports}var Rr={},vi;function Hc(){return vi||(vi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=je._(C).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(Rr)),Rr}var wr={},bi;function Sf(){return bi||(bi=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var p in f)Object.defineProperty(u,p,{enumerable:!0,get:f[p]})}t(e,{CacheStates:function(){return o},AppRouterContext:function(){return i},LayoutRouterContext:function(){return a},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return l}});const n=je._(C);var o;(function(u){u.LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY"})(o||(o={}));const i=n.default.createContext(null),a=n.default.createContext(null),c=n.default.createContext(null),l=n.default.createContext(null);process.env.NODE_ENV!=="production"&&(i.displayName="AppRouterContext",a.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",l.displayName="TemplateContext")}(wr)),wr}var Pt={exports:{}},It={exports:{}},xi;function Fc(){return xi||(xi=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 n},cancelIdleCallback:function(){return o}});const n=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)},o=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)}(It,It.exports)),It.exports}var Ci;function Af(){return Ci||(Ci=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const r=C,n=Fc(),o=typeof IntersectionObserver=="function",i=new Map,a=[];function c(f){const p={root:f.root||null,margin:f.rootMargin||""},d=a.find(g=>g.root===p.root&&g.margin===p.margin);let h;if(d&&(h=i.get(d),h))return h;const m=new Map,y=new IntersectionObserver(g=>{g.forEach(b=>{const A=m.get(b.target),_=b.isIntersecting||b.intersectionRatio>0;A&&_&&A(_)})},f);return h={id:p,observer:y,elements:m},a.push(p),i.set(p,h),h}function l(f,p,d){const{id:h,observer:m,elements:y}=c(d);return y.set(f,p),m.observe(f),function(){if(y.delete(f),m.unobserve(f),y.size===0){m.disconnect(),i.delete(h);const b=a.findIndex(A=>A.root===h.root&&A.margin===h.margin);b>-1&&a.splice(b,1)}}}function u(f){let{rootRef:p,rootMargin:d,disabled:h}=f;const m=h||!o,[y,g]=(0,r.useState)(!1),b=(0,r.useRef)(null),A=(0,r.useCallback)(E=>{b.current=E},[]);(0,r.useEffect)(()=>{if(o){if(m||y)return;const E=b.current;if(E&&E.tagName)return l(E,P=>P&&g(P),{root:p==null?void 0:p.current,rootMargin:d})}else if(!y){const E=(0,n.requestIdleCallback)(()=>g(!0));return()=>(0,n.cancelIdleCallback)(E)}},[m,d,p,y,b.current]);const _=(0,r.useCallback)(()=>{g(!1)},[]);return[A,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)}(Pt,Pt.exports)),Pt.exports}var Nt={exports:{}},Ot={exports:{}},jr={},Si;function Ef(){return Si||(Si=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(r,n){let o;const i=r.split("/");return(n||[]).some(a=>i[1]&&i[1].toLowerCase()===a.toLowerCase()?(o=a,i.splice(1,1),r=i.join("/")||"/",!0):!1),{pathname:r,detectedLocale:o}}}(jr)),jr}var Ai;function Rf(){return Ai||(Ai=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(n,o)=>process.env.__NEXT_I18N_SUPPORT?Ef().normalizeLocalePath(n,o):{pathname:n,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)}(Ot,Ot.exports)),Ot.exports}var Tt={exports:{}},Pr={},Ei;function wf(){return Ei||(Ei=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,n,o){if(r){o&&(o=o.toLowerCase());for(const c of r){var i,a;const l=(i=c.domain)==null?void 0:i.split(":")[0].toLowerCase();if(n===l||o===c.defaultLocale.toLowerCase()||(a=c.locales)!=null&&a.some(u=>u.toLowerCase()===o))return c}}}}(Pr)),Pr}var Ri;function jf(){return Ri||(Ri=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 n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];if(process.env.__NEXT_I18N_SUPPORT)return wf().detectDomainLocale(...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)}(Tt,Tt.exports)),Tt.exports}var wi;function Pf(){return wi||(wi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}});const r=Zt(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i,a,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=Rf().normalizeLocalePath,f=jf().detectDomainLocale,p=a||u(i,c).detectedLocale,d=f(l,void 0,p);if(d){const h="http"+(d.http?"":"s")+"://",m=p===d.defaultLocale?"":"/"+p;return""+h+d.domain+(0,r.normalizePathTrailingSlash)(""+n+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)}(Nt,Nt.exports)),Nt.exports}var Mt={exports:{}},ji;function If(){return ji||(ji=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return i}});const r=qc(),n=Zt(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function i(a,c){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?a:(0,r.addPathPrefix)(a,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)}(Mt,Mt.exports)),Mt.exports}var kt={exports:{}},Pi;function Nf(){return Pi||(Pi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(p,d){for(var h in d)Object.defineProperty(p,h,{enumerable:!0,get:d[h]})}r(t,{PrefetchKind:function(){return f},ACTION_REFRESH:function(){return n},ACTION_NAVIGATE:function(){return o},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 n="refresh",o="navigate",i="restore",a="server-patch",c="prefetch",l="fast-refresh",u="server-action";var f;(function(p){p.AUTO="auto",p.FULL="full",p.TEMPORARY="temporary"})(f||(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)}(kt,kt.exports)),kt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return S}});const n=je._(C),o=bf(),i=Bc(),a=Lc(),c=Yt(),l=Cf(),u=Hc(),f=Sf(),p=Af(),d=Pf(),h=If(),m=Nf(),y=new Set;function g(P,x,I,B,R,O){if(typeof window>"u"||!O&&!(0,i.isLocalURL)(x))return;if(!B.bypassPrefetchedCheck){const $=typeof B.locale<"u"?B.locale:"locale"in P?P.locale:void 0,w=x+"%"+I+"%"+$;if(y.has(w))return;y.add(w)}const N=O?P.prefetch(x,R):P.prefetch(x,I,B);Promise.resolve(N).catch($=>{if(process.env.NODE_ENV!=="production")throw $})}function b(P){const I=P.currentTarget.getAttribute("target");return I&&I!=="_self"||P.metaKey||P.ctrlKey||P.shiftKey||P.altKey||P.nativeEvent&&P.nativeEvent.which===2}function A(P,x,I,B,R,O,N,$,w,q){const{nodeName:z}=P.currentTarget;if(z.toUpperCase()==="A"&&(b(P)||!w&&!(0,i.isLocalURL)(I)))return;P.preventDefault();const K=()=>{const W=N??!0;"beforePopState"in x?x[R?"replace":"push"](I,B,{shallow:O,locale:$,scroll:W}):x[R?"replace":"push"](B||I,{forceOptimisticNavigation:!q,scroll:W})};w?n.default.startTransition(K):K()}function _(P){return typeof P=="string"?P:(0,a.formatUrl)(P)}const S=n.default.forwardRef(function(x,I){let B;const{href:R,as:O,children:N,prefetch:$=null,passHref:w,replace:q,shallow:z,scroll:U,locale:K,onClick:W,onMouseEnter:F,onTouchStart:ne,legacyBehavior:j=!1,...M}=x;B=N,j&&(typeof B=="string"||typeof B=="number")&&(B=n.default.createElement("a",null,B));const D=n.default.useContext(u.RouterContext),X=n.default.useContext(f.AppRouterContext),te=D??X,Z=!D,k=$!==!1,J=$===null?m.PrefetchKind.AUTO:m.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let ie=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
- Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(oe=>{if(oe==="href"&&(x[oe]==null||typeof x[oe]!="string"&&typeof x[oe]!="object"))throw ie({key:oe,expected:"`string` or `object`",actual:x[oe]===null?"null":typeof x[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 V=typeof x[oe];if(oe==="as"){if(x[oe]&&V!=="string"&&V!=="object")throw ie({key:oe,expected:"`string` or `object`",actual:V})}else if(oe==="locale"){if(x[oe]&&V!=="string")throw ie({key:oe,expected:"`string`",actual:V})}else if(oe==="onClick"||oe==="onMouseEnter"||oe==="onTouchStart"){if(x[oe]&&V!=="function")throw ie({key:oe,expected:"`function`",actual:V})}else if((oe==="replace"||oe==="scroll"||oe==="shallow"||oe==="passHref"||oe==="prefetch"||oe==="legacyBehavior")&&x[oe]!=null&&V!=="boolean")throw ie({key:oe,expected:"`boolean`",actual:V})});const Q=n.default.useRef(!1);x.prefetch&&!Q.current&&!Z&&(Q.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"&&Z&&!O){let ie;if(typeof R=="string"?ie=R:typeof R=="object"&&typeof R.pathname=="string"&&(ie=R.pathname),ie&&ie.split("/").some(G=>G.startsWith("[")&&G.endsWith("]")))throw new Error("Dynamic href `"+ie+"` 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:Y,as:ee}=n.default.useMemo(()=>{if(!D){const G=_(R);return{href:G,as:O?_(O):G}}const[ie,me]=(0,o.resolveHref)(D,R,!0);return{href:ie,as:O?(0,o.resolveHref)(D,O):me||ie}},[D,R,O]),L=n.default.useRef(Y),T=n.default.useRef(ee);let re;if(j)if(process.env.NODE_ENV==="development"){W&&console.warn('"onClick" was passed to <Link> with `href` of `'+R+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),F&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+R+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{re=n.default.Children.only(B)}catch{throw B?new Error("Multiple children were passed to <Link> with `href` of `"+R+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
3
- Open your browser's console to view the Component stack trace.`:"")):new Error("No children were passed to <Link> with `href` of `"+R+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else re=n.default.Children.only(B);else if(process.env.NODE_ENV==="development"&&(B==null?void 0:B.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 se=j?re&&typeof re=="object"&&re.ref:I,[ce,le,ae]=(0,p.useIntersection)({rootMargin:"200px"}),H=n.default.useCallback(ie=>{(T.current!==ee||L.current!==Y)&&(ae(),T.current=ee,L.current=Y),ce(ie),se&&(typeof se=="function"?se(ie):typeof se=="object"&&(se.current=ie))},[ee,se,Y,ae,ce]);n.default.useEffect(()=>{process.env.NODE_ENV==="production"&&te&&(!le||!k||g(te,Y,ee,{locale:K},{kind:J},Z))},[ee,Y,le,K,k,D==null?void 0:D.locale,te,Z,J]);const he={ref:H,onClick(ie){if(process.env.NODE_ENV!=="production"&&!ie)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!j&&typeof W=="function"&&W(ie),j&&re.props&&typeof re.props.onClick=="function"&&re.props.onClick(ie),te&&(ie.defaultPrevented||A(ie,te,Y,ee,q,z,U,K,Z,k))},onMouseEnter(ie){!j&&typeof F=="function"&&F(ie),j&&re.props&&typeof re.props.onMouseEnter=="function"&&re.props.onMouseEnter(ie),te&&((!k||process.env.NODE_ENV==="development")&&Z||g(te,Y,ee,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))},onTouchStart(ie){!j&&typeof ne=="function"&&ne(ie),j&&re.props&&typeof re.props.onTouchStart=="function"&&re.props.onTouchStart(ie),te&&(!k&&Z||g(te,Y,ee,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))}};if((0,c.isAbsoluteUrl)(ee))he.href=ee;else if(!j||w||re.type==="a"&&!("href"in re.props)){const ie=typeof K<"u"?K:D==null?void 0:D.locale,me=(D==null?void 0:D.isLocaleDomain)&&(0,d.getDomainLocale)(ee,ie,D==null?void 0:D.locales,D==null?void 0:D.domainLocales);he.href=me||(0,h.addBasePath)((0,l.addLocale)(ee,ie,D==null?void 0:D.defaultLocale))}return j?n.default.cloneElement(re,he):n.default.createElement("a",{...M,...he},B)});(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)})(Zn,Zn.exports);var Of=Zn.exports,Tf=Of;const Ne=Xt(Tf),Io={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},No=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=Be(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=be(),i=r.reduce((a,c)=>a+(c.quantity??0),0);return s.jsx(v.Header.SupportItem,{onClick:()=>{t(!0),n({content:"header:minicart"})},id:e,children:s.jsxs(v.Badge.AutoPositioner,{children:[s.jsx(v.Badge.Count,{count:i,size:"medium",variant:"primary",style:{backgroundColor:"black",display:i>0?"flex":"none"}}),s.jsx(v.Icon,{name:o.header.ICONS.bag,size:"medium"})]})})};No.displayName="Header.Bag";const gt=({children:e,href:t,...r})=>t&&t!=="#"?s.jsx(Ne,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,zc=()=>{const{headerData:e}=be(),{handleSelectContent:t}=ge(),{reset:r,updateValue:n}=Ue(),o=i=>{i?n(i):r()};return s.jsx(v.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((i,a)=>s.jsx(gt,{href:i.link,onMouseEnter:()=>o(i.submenuId),onFocus:()=>o(i.submenuId),children:s.jsx(v.Header.CategoryItem,{className:Io["btn-header"],value:i.submenuId??null,adornment:{start:s.jsx(v.Icon,{name:i.iconStart}),end:s.jsx(v.Icon,{name:i.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${i.label}`})},children:i.label})},`category-${i.label}-${a}`))})};zc.displayName="Header.Categories";function Mf({SearchModal:e}){const{handleSelectContent:t}=ge(),{CONSTANTS:r}=be(),{setValue:n}=bo();return s.jsxs(s.Fragment,{children:[s.jsx(v.Header.SupportItem,{onClick:()=>{n(!0),t({content:"header:search"})},children:s.jsx(v.Icon,{name:r.header.ICONS.search,size:"medium"})}),s.jsx(e,{recommendations:!1,trends:!0})]})}const kf={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},Lf={"observer-wrapper":"_observer-wrapper_r43gk_1"};function Df(e,t,r){const[n,o]=C.useState(!1),{threshold:i}=r||{};return C.useEffect(()=>{if(!e.current)return()=>null;let a=null;const c=new IntersectionObserver(([l])=>{if(r!=null&&r.delay){a&&clearTimeout(a),a=setTimeout(()=>{o(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},r.delay);return}o(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},{threshold:i||1});return c.observe(e.current),()=>{c.disconnect()}},[e]),n}const Jt=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:n,stopOnIntersection:o=!0,className:i,...a})=>{const c=C.useRef(null),l=Df(c,o,r),{sendDataLayerEvent:u}=ge();return C.useEffect(()=>{l&&(typeof n=="function"&&n(),t&&u({...t}))},[l]),s.jsx("div",{...a,ref:c,className:v.helpers.classNameConcat(Lf["observer-wrapper"],i),children:e})},Oo=({thumbnails:e,category:t,isMobile:r=!0,callBack:n})=>{const{handleSelectPromotionEvent:o}=ge(),i=50/e.length;return s.jsx("div",{className:kf["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 s.jsx(Jt,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...u}}}},observerOptions:{delay:1e3},children:s.jsxs(Ne,{href:a.link??"#",onClick:()=>{typeof n=="function"&&n(),o({updatePromotionRef:!0,promotion:u})},children:[s.jsx($e.Image,{src:l,alt:a.label??l,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${i}vw`}),a.label&&s.jsx("p",{children:a.label})]})},`thumb-${a.label}-${c}`)})})};Oo.displayName="Menu.Thumbnail";const Jn={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},$f="_link_w24h0_1",Bf="_wrapper_w24h0_98",qf="_text_w24h0_106",Ir={link:$f,wrapper:Bf,text:qf},ze=({children:e,adornments:t,className:r,disableUnderline:n,href:o,mode:i,size:a,title:c,onClick:l,disablePadding:u,...f})=>{const p=v.helpers.ValidateProp({fieldTypes:et.SizesSmallExtended,property:a,fallback:"medium"}),d=v.helpers.ValidateProp({fieldTypes:et.Mode,property:i,fallback:"default"});return s.jsx(Ne,{...f,className:v.helpers.classNameConcat(Ir.link,r),href:o&&o.length>0?o:"#","data-size":p,"data-variant":d,title:c||"NextLink","data-disable-underline":n??!1,"data-disable-padding":u??!0,children:s.jsxs("div",{className:Ir.wrapper,onClick:l,children:[t==null?void 0:t.start,s.jsx("p",{className:Ir.text,"data-size":p,children:e}),t==null?void 0:t.end]})})},Uc=({children:e,dividerOnRight:t=!0,subMenu:r,...n})=>{var l;const{router:o}=Pe(),{reset:i}=Ue(),{handleSelectContent:a}=ge(),{CONSTANTS:c}=be();return s.jsxs("div",{...n,className:Jn["menu-categories"],children:[(l=r==null?void 0:r.subCategories)==null?void 0:l.map((u,f)=>{var h,m,y;const p=u.listCollapseDesk&&!((h=u.see_all)!=null&&h.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:s.jsx(v.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return s.jsxs(v.ComponentList.Structure,{children:[s.jsx(gt,{href:u.linkLabel,title:u.label,onClick:()=>{u.linkLabel&&(i(),a({content:`menu:${u.label??""}:${r.label??""}`}))},children:s.jsx(v.TextStructure.Root,{children:s.jsx(v.TextStructure.DivWrapper,{children:s.jsx("h2",{children:u.label})})})}),s.jsx(v.ComponentList.List,{columns:1,...p,className:Jn["submenu-categories"],children:u.items.map((g,b)=>s.jsx(v.ComponentList.ListItem,{id:`list-item-${g.label}-${b}`,children:s.jsx(ze,{href:g.link??"#",size:"x-small",title:g.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{i(),a({content:`menu:${u.label??""}:${g.label??""}:${r.label??""}`})},children:g.label})},`list-item-${g.label}-${b}`))}),((y=u.see_all)==null?void 0:y.link)&&s.jsx(v.ComponentList.Support,{...d,size:"small",onClick:()=>{var g;(g=u.see_all)!=null&&g.link&&(i(),a({content:`menu:${u.label??""}:${r.label}`}),o.push(u.see_all.link))},children:u.see_all.link&&u.see_all.label})]},`list-${u.label}-${f}`)}),t&&s.jsx(v.Utils.Divider,{size:"small",direction:"vertical"})]})};Uc.displayName="Menu.Categories";const Gc=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:n}=be();return s.jsxs(s.Fragment,{children:[s.jsx("div",{...r,className:Jn["menu-desktop"],style:{...r.style,justifyContent:n.header.ALIGNMENT_MENU},children:e}),t&&s.jsx(v.Utils.Divider,{size:"small"})]})};Gc.displayName="Menu.MenuRoot";const Nr={Root:Gc,Categories:Uc,Thumbnail:Oo},Wc=()=>{const{headerData:e,CONSTANTS:t}=be(),r=Kt(),{reset:n}=Ue();return s.jsx(v.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((o,i)=>{const{thumbnails:a,label:c,id:l}=o,u=l===r,f=a==null?void 0:a.some(p=>!!p.srcDesk);return s.jsxs(Nr.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[s.jsx(Nr.Categories,{dividerOnRight:!!f,subMenu:o}),Array.isArray(a)&&s.jsx(Nr.Thumbnail,{thumbnails:a,isMobile:!1,category:c,callBack:n})]},`submenu-${l}-${i}`)})})};Wc.displayName="Header.SubMenu";const Vc=()=>{const{handleSelectContent:e}=ge(),{CONSTANTS:t}=be();return s.jsx(Ne,{href:"/favoritos",children:s.jsx(v.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:s.jsx(v.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};Vc.displayName="Header.WishList";const Kc=({SearchModal:e})=>{const{CONSTANTS:t,userMenuDesktopRef:r}=be(),{handleSelectContent:n}=ge(),{reset:o}=Ue(),{setValue:i}=mt();return s.jsxs(s.Fragment,{children:[s.jsxs(v.Header.Wrapper,{children:[s.jsx(v.Header.Logo,{style:{width:"100%"},children:s.jsx(Ne,{href:"/",onMouseEnter:o,children:s.jsx(v.Icon,{name:t.header.ICONS.logo,size:"x-large",onClick:()=>{n({content:"header:logo"})}})})}),s.jsx(zc,{}),s.jsxs(v.Header.Support,{onMouseEnter:o,style:{justifyContent:"flex-end"},children:[s.jsx(Mf,{SearchModal:e}),s.jsx(v.Header.SupportItem,{onClick:()=>{i(!0),n({content:"header:user_menu"})},className:Io["btn-login"],innerRef:r,children:s.jsx(v.Icon,{name:t.header.ICONS.person,size:"medium"})}),s.jsx(Vc,{}),s.jsx(No,{id:"cart-button"})]})]}),s.jsx(Wc,{})]})};Kc.displayName="Header.HeaderDesktopWrapper";const Hf="_divider_1lexj_199",ve={"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:Hf,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},Xc=({children:e,mobileBannerAlt:t,mobileBannerSrc:r,onClick:n,textColor:o,...i})=>s.jsx("button",{onClick:n,className:ve["menu-categories-btn"],children:r?s.jsxs(v.Banner.Container,{...i,className:ve["menu-body-banner-container-modifier"],children:[s.jsx(v.Banner.ImageWrapper,{style:{width:"100%"},children:s.jsx($e.Image,{src:r,alt:t??r,className:ve["menu-categories__banner"],width:343,height:128,unoptimized:!0})}),s.jsx(v.Banner.Slot,{verticalAlignment:"center",horizontalAlignment:"start",children:s.jsx(v.TextStructure.Root,{children:s.jsx(v.TextStructure.DivWrapper,{className:ve["menu-categories-textstructure-modifier"],children:s.jsx("h2",{className:"typography-style-body-xs",style:o?{color:o}:{},children:e})})})})]}):s.jsx("h2",{...i,children:e})});Xc.displayName="Menu.MenuCategories";const Qc=({children:e,link:t})=>{const{reset:r}=Xe();return t?s.jsx(Ne,{href:t??"#",onClick:r,children:e}):e};Qc.displayName="Menu.MenuCategoriesWrapper";const Yc=({subcategory:e,submenuLabel:t})=>{var l,u,f;const{router:r}=Pe(),{reset:n}=Xe(),{handleSelectContent:o}=ge(),{CONSTANTS:i}=be(),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:s.jsx(v.Icon,{name:i.header.ICONS.arrow_right,size:"small"})}};return s.jsxs(v.ComponentList.Structure,{className:ve["menu-submenu--component-list-modifier"],children:[s.jsx(gt,{href:e.linkLabel,title:e.label,onClick:()=>{n(),o({content:`menu:${e.label??""}:${t}`})},children:s.jsx(v.TextStructure.Root,{children:s.jsx(v.TextStructure.DivWrapper,{children:s.jsx("h2",{className:"typography-style-body-sm-strong",children:e.label})})})}),s.jsx(v.ComponentList.List,{columns:1,...a,className:ve["submenu-categories"],children:e.items.map((p,d)=>s.jsx(v.ComponentList.ListItem,{id:`list-item-${p.label}-${d}`,divider:!0,children:s.jsx(ze,{href:p.link??"#",size:"x-small",title:p.label??"",disableUnderline:!0,onClick:()=>{n(),o({content:`menu:${e.label??""}:${p.label}:${t}`})},children:p.label})},`list-item-${p.label}-${d}`))}),((f=e.see_all)==null?void 0:f.link)&&s.jsx(v.ComponentList.Support,{...c,size:"small",onClick:()=>{var p;n(),o({content:`menu:${e.label??""}:${t}`}),(p=e.see_all)!=null&&p.link&&r.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};Yc.displayName="Menu.SubMenuSubCategory";const Zc=({submenu:e})=>{var i;const t=Kt(),{handleCloseSubMenu:r}=ht(),{reset:n}=Ue(),{CONSTANTS:o}=be();return s.jsxs("div",{className:ve["menu-submenu--item"],style:{display:t===e.id?"flex":"none"},children:[s.jsx(v.TextStructure.Root,{adornment:{start:s.jsx(v.Icon,{name:o.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&&s.jsx(v.TextStructure.DivWrapper,{style:{position:"absolute",left:"50%",transform:"translate(-50%)"},children:s.jsx("h2",{className:"typography-style-body-md-strong",children:e.label})})}),s.jsx("div",{className:ve["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&s.jsx(Oo,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:n})}),(i=e==null?void 0:e.subCategories)==null?void 0:i.map((a,c)=>s.jsx(Yc,{subcategory:a,submenuLabel:e.label},`list-${a.label}-${c}`))]})};Zc.displayName="Menu.SubMenuItem";const Jc=()=>{const{headerData:e}=be(),t=Kt(),{reset:r}=Ue(),{bodyRef:n}=ht();return s.jsx(v.Modal.RootWithoutPortal,{isOpen:!!t,setIsOpen:r,parent:n.current,variant:"sideLeft",style:{position:"absolute",width:"100%"},className:ve["menu-submenu-modal-modifiier"],children:s.jsx("div",{className:ve["menu-submenu"],children:e.subMenus.map((o,i)=>s.jsx(Zc,{submenu:o},`submenu-${o.id}-${i}`))})})};Jc.displayName="Menu.SubMenu";const el=({className:e,...t})=>{const{headerData:r}=be(),{setValue:n}=Ue(),{bodyRef:o}=ht(),{handleSelectContent:i}=ge();return s.jsxs("div",{...t,ref:o,id:"menu-body",className:ve["menu-body"],children:[s.jsx("div",{className:ve["menu-categories-container"],children:r.categories.map((a,c)=>{const l=a.submenuId?{}:{"data-close":!0};return s.jsx(Qc,{link:a.submenuId?null:a.link,children:s.jsx(Xc,{onClick:()=>{n(a.submenuId??null),i({content:`menu:${a.label}`})},mobileBannerSrc:a.mobileBannerSrc,mobileBannerAlt:a.mobileBannerAlt,textColor:a.textColor,...l,children:a.mobileBannerAlt})},`menu-categories-${c}`)})}),s.jsx(Jc,{})]})};el.displayName="Menu.MenuBody";const tl=({title:e,subtitle:t})=>{const{CONSTANTS:r}=be();return s.jsxs("div",{className:ve["menu-header-wrapper"],style:t?{alignItems:"start"}:{alignItems:"center"},children:[(e||t)&&s.jsx(v.TextStructure.Root,{children:s.jsxs(v.TextStructure.DivWrapper,{children:[e&&s.jsx("h2",{className:"typography-style-body-md",children:e}),t&&s.jsx("h3",{children:t})]})}),s.jsx(v.Button,{adornment:{end:s.jsx(v.Icon,{name:r.header.ICONS.close})},variant:"tertiary",className:ve["menu-close"],"data-close":!0})]})};tl.displayName="Menu.MenuHeaderWrapper";const rl=({navigationLinks:e})=>{const{reset:t}=Xe(),{handleSelectContent:r}=ge();return e?s.jsx("nav",{className:ve["menu-header-navlinks"],children:e.map((n,o)=>s.jsx(ze,{href:n.link??"#",adornments:{start:n.iconStart&&s.jsx(v.Icon,{name:n.iconStart}),end:n.iconEnd&&s.jsx(v.Icon,{name:n.iconEnd})},onClick:()=>{t(),r({content:`menu:navigationlinks-${n.label}`})},children:n.label},o))}):null};rl.displayName="Menu.MenuHeaderNavLinks";const nl=()=>{const{headerData:e}=be();return s.jsxs("div",{className:ve["menu-header-container"],children:[s.jsx(tl,{title:e.title,subtitle:e.subtitle}),s.jsx(rl,{navigationLinks:e.navigationLinks})]})};nl.displayName="Menu.MenuHeaderContainer";const ol=({children:e})=>{const{documentBodyRef:t}=ht(),{CONSTANTS:r}=be(),n=vo(),{setValue:o}=Xe();return s.jsx(v.Modal.RootWithoutPortal,{isOpen:n,setIsOpen:o,parent:t.current,variant:"sideLeft",style:{position:"fixed",zIndex:r.header.Z_INDEX_WAR.menu_mobile,bottom:"unset",top:0,overflowY:"hidden"},className:ve["modal-modifier"],children:s.jsx("div",{className:ve["menu-mobile"],children:e})})};ol.displayName="Menu.MenuRoot";const zt=({children:e,...t})=>s.jsxs(s.Fragment,{children:[s.jsx(v.Button,{...t,className:ve["menu-navigationbar-item"],children:e}),s.jsx(v.Utils.Divider,{direction:"vertical",size:"small",className:ve.divider})]});zt.displayName="Menu.NavigationBarItem";const il=()=>{const{setIsOpen:e}=Be(),{reset:t}=Xe(),{setValue:r}=mt(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=be(),{router:i}=Pe();return s.jsxs(v.Card,{id:"menu-navigationbar",shadow:!0,className:ve["menu-navigationbar"],style:{zIndex:o.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:[s.jsx(zt,{size:"small",variant:"tertiary",iconNameStart:o.header.MENU_INFO.login.button_icon,onClick:()=>{t(),r(!0),n({content:"menu:user_menu"})},children:o.header.MENU_INFO.login.button_text}),s.jsx(zt,{size:"small",variant:"tertiary",iconNameStart:o.header.MENU_INFO.bag.button_icon,onClick:()=>{t(),e(!0),n({content:"menu:minicart"})},children:o.header.MENU_INFO.bag.button_text}),s.jsx(zt,{size:"small",variant:"tertiary",iconNameStart:o.header.MENU_INFO.store.button_icon,onClick:()=>{i.push("/institucional/lojas"),t(),n({content:"menu:store"})},children:o.header.MENU_INFO.store.button_text})]})};il.displayName="Menu.NavigationBar";const Lt={Root:ol,NavigationBar:il,Header:nl,Body:el},sl=({SearchModal:e})=>{const t=C.useRef(null),{CONSTANTS:r,userMenuMobileRef:n}=be(),{MENU_NAVIGATION_BAR_ALLOWED:o,ICONS:i,MENU_MOB_BTN_SIDE:a="right"}=r.header,{handleSelectContent:c}=ge(),{setValue:l}=bo(),{setValue:u}=Xe(),{setValue:f}=mt();return s.jsxs(s.Fragment,{children:[s.jsxs(v.Header.Wrapper,{children:[a==="left"&&s.jsx(v.Header.SupportItem,{onClick:()=>u(!0),innerRef:t,children:s.jsx(v.Icon,{name:i.menu,size:"medium"})}),s.jsx(v.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:s.jsx(Ne,{href:"/",children:s.jsx(v.Icon,{name:i.logo,size:"x-large",onClick:()=>{c({content:"header:logo"})}})})}),s.jsxs(v.Header.Support,{children:[s.jsx(v.Header.SupportItem,{onClick:()=>{l(!0),c({content:"header:search"})},children:s.jsx(v.Icon,{name:i.search,size:"medium"})}),s.jsx(v.Header.SupportItem,{onClick:()=>{f(!0),c({content:"header:user_menu"})},innerRef:n,children:s.jsx(v.Icon,{name:i.person,size:"medium"})}),s.jsx(No,{}),a==="right"&&s.jsx(v.Header.SupportItem,{onClick:()=>u(!0),innerRef:t,children:s.jsx(v.Icon,{name:i.menu,size:"medium"})})]})]}),s.jsx(e,{recommendations:!1,trends:!0}),s.jsx(Za,{children:s.jsxs(Lt.Root,{children:[s.jsx(Lt.Header,{}),s.jsx(Lt.Body,{}),o?s.jsx(Lt.NavigationBar,{}):s.jsx(s.Fragment,{})]})})]})};sl.displayName="Header.HeaderMobileWrapper";const Ff="_root_wvekm_126",ke={"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:Ff},al=({className:e,children:t,...r})=>s.jsx("div",{...r,className:v.helpers.classNameConcat(ke["user-menu--content"],e),children:t});al.displayName="UserMenu.Content";var cl=(e=>(e.Account="account",e))(cl||{});const ll=({className:e,cashBack:t,credits:r,link:n,total:o,...i})=>{const a=t?Me(t):void 0,c=r?Me(r):void 0,l=o?Me(o):void 0;return s.jsx(v.Credits.Account,{...i,className:v.helpers.classNameConcat(ke["user-menu--credits"],e),icon:"wallet",showIcon:!0,cashBackValue:a,creditsValue:c,linkMore:n,totalValue:l,type:cl.Account})};ll.displayName="UserMenu.Credits";const ul=({className:e,children:t,description:r,text:n,...o})=>{const{isMobile:i}=Se();return s.jsx("div",{...o,className:v.helpers.classNameConcat(ke["user-menu--login"],e),"data-mobile":i,children:s.jsxs("div",{className:ke["user-menu--login--content"],children:[s.jsx(v.TextStructure.Root,{children:s.jsxs(v.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:[s.jsx("h3",{className:"typography-style-body-lg-strong",children:n}),s.jsx("p",{children:r})]})}),t]})})};ul.displayName="UserMenu.Login";const dl=({className:e,isLogged:t,onLogoutClick:r,ICONS:n,storeConfig:o})=>{const{isMobile:i}=Se(),a=cd({ICONS:n,storeConfig:o}).filter(c=>c.deviceShown==="both"||c.deviceShown===(i?"mobile":"desktop"));return s.jsxs("ul",{className:v.helpers.classNameConcat(ke["user-menu--menu"],e),children:[Array.isArray(a)&&a.map((c,l)=>s.jsx("li",{children:s.jsx(ze,{href:c.href??"#",size:"small",disableUnderline:!0,adornments:{start:s.jsx(v.Icon,{name:c.icon??"delete"})},children:c.label})},l)),t?s.jsx("li",{children:s.jsx(ze,{href:`${o.secureSubdomain}/api/vtexid/pub/logout?scope=mariafilo&returnUrl=${encodeURIComponent(`${o.storeUrl}`)}`,size:"small",disableUnderline:!0,onClick:r,adornments:{start:s.jsx(v.Icon,{name:ad(n)})},children:sd})}):s.jsx(s.Fragment,{})]})};dl.displayName="UserMenu.Menu";const zf=e=>{const t=C.useRef(null),r=C.useCallback(i=>{t.current&&!t.current.contains(i.target)&&e()},[e]),n=C.useCallback(i=>{t.current&&!t.current.contains(i.target)&&e()},[e]),o=C.useCallback(i=>{i.key==="Escape"&&e()},[e]);return C.useEffect(()=>(document.addEventListener("mousedown",r),document.addEventListener("keydown",o),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",o),document.removeEventListener("touchstart",n)}),[r,o,n]),{ref:t}},Uf=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Gf=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const{height:n,left:o,top:i,width:a}=t.getBoundingClientRect(),c=e.getBoundingClientRect(),l=e!=null&&e.parentElement?Uf(e==null?void 0:e.parentElement):0;return{left:o+a/2-(c.width+l*2),top:i+n+r}},fl=C.createContext({}),Wf=({children:e,delay:t=600,gap:r=20,isOpen:n,setIsOpen:o,target:i,...a})=>{const c=C.useRef(null),[l,u]=C.useState(!1),[f,p]=C.useState({left:0,top:0}),{ref:d}=zf(()=>{u(!0),typeof window<"u"&&(c.current=window.setTimeout(()=>{o(!1),u(!1)},t))});return C.useEffect(()=>{if(i&&(d!=null&&d.current)){const{left:h,top:m}=Gf(d.current,i,r??0);p({left:h,top:m}),u(!1)}},[r,n,i,d]),s.jsx(fl.Provider,{value:C.useMemo(()=>({...a,...f,contentRef:d,isLeaving:l,isOpen:n,setIsOpen:o,setIsLeaving:u,target:i}),[a,f,d,l,n,o,u,i]),children:e})},pl=()=>{const e=C.useContext(fl);if(e===void 0)throw new Error("useUserMenuContext must be used within a UserMenuProvider");return e},ml=({children:e,isMobile:t=!1,Z_INDEX_WAR:r})=>{const{isOpen:n,setIsOpen:o}=pl();return s.jsxs(v.Modal.Root,{"data-user":"user-menu--modal",isMobile:t??!1,isOpen:n,setIsOpen:o,variant:"sideBottom",className:ke["modal-root-modifier"],style:{zIndex:r.user_menu_mobile},children:[s.jsx(v.Modal.Header,{navigation:"top",className:ke["modal-header-modifier"],children:s.jsx(v.Modal.Controls,{navigation:"top",isMobile:!0,className:ke["modal-controls-modifier"]})}),s.jsx(v.Modal.Body,{children:e})]})};ml.displayName="UserMenu.Modal";const hl=({children:e,component:t,Z_INDEX_WAR:r,isMobile:n,...o})=>s.jsx(Wf,{...o,className:ke.root,children:n?s.jsxs(s.Fragment,{children:[s.jsx(We.Modal,{Z_INDEX_WAR:r,children:t}),e]}):s.jsx(We.Tooltip,{component:t,style:{width:304,zIndex:r.user_menu},Z_INDEX_WAR:r,children:e})});hl.displayName="UserMenu.Root";const gl=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:o,left:i,isLeaving:a,isOpen:c,top:l}=pl();return s.jsx(v.Tooltip.Root,{arrow:"top-right",component:s.jsx("div",{...n,ref:o,children:t}),className:v.helpers.classNameConcat(ke["user-menu--tooltip"],ke["tooltip-modifier"]),isLeaving:a,isOpen:c,left:i,size:"medium",position:"top",top:l,style:{zIndex:r.user_menu},children:s.jsx("div",{className:ke["user-menu--tooltip"],children:e})})};gl.displayName="UserMenu.Tooltip";const We={Credits:ll,Content:al,Login:ul,Menu:dl,Modal:ml,Root:hl,Tooltip:gl},To=()=>{var y,g,b;const e=Ro(),{isMobile:t}=Se(),{userMenuMobileRef:r,userMenuDesktopRef:n,CONSTANTS:{header:o},storeConfig:i}=be(),{ICONS:a,Z_INDEX_WAR:c,MENU_INFO:l}=o,u=Ua(),{setValue:f}=mt(),p=()=>{window.location.href=`${i.secureSubdomain}/api/io/login?returnUrl=${encodeURIComponent(`${i.storeUrl}`)}`},d=!!((y=e.user)!=null&&y.userId),{cashback:h,credits:m}=C.useMemo(()=>{var A,_;return{credits:((A=e==null?void 0:e.getCurrentCredits())==null?void 0:A.credits)??0,cashback:((_=e==null?void 0:e.getCurrentCredits())==null?void 0:_.cashback)??0}},[e]);return s.jsx(We.Root,{component:s.jsxs(We.Content,{children:[s.jsx(We.Login,{description:ud(d),text:ld(d,((g=e==null?void 0:e.user)==null?void 0:g.firstName)??((b=e==null?void 0:e.user)==null?void 0:b.email)),children:!d&&s.jsx(v.Button,{size:"medium",variant:"quaternary",onClick:()=>p(),children:l.login.button_text})}),m+h&&d?s.jsx(We.Credits,{credits:m,cashBack:h,link:`${i.secureSubdomain}/account#/meus-creditos`,total:m+h}):s.jsx(s.Fragment,{}),s.jsx(v.Utils.Divider,{}),s.jsx(We.Menu,{isLogged:d,onLogoutClick:()=>e.logout(),ICONS:a,storeConfig:i})]}),target:t?r.current:n.current,isOpen:u,isMobile:t,setIsOpen:f,Z_INDEX_WAR:c})};To.displayName="UserMenu";const yl=({tipBar:e,miniCart:t,SearchModal:r})=>{const{structureRef:n,rootRef:o,CONSTANTS:i}=be(),{header:{HEADER_CONFIGS:a,Z_INDEX_WAR:c}}=i;return s.jsx(v.Header.Structure,{innerRef:n,adornment:{start:e},style:{position:"sticky",top:0,zIndex:c.header},className:Io["header-animation"],children:s.jsxs(v.Header.Root,{innerRef:o,style:{zIndex:c.header},variant:a.default_variant,interactiveVariant:a.interactive_variant,children:[s.jsx("div",{className:Te.responsive["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:c.header_mobile},children:s.jsx(sl,{SearchModal:r})}),s.jsx("div",{className:Te.responsive["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:c.header_desktop},children:s.jsx(Kc,{SearchModal:r})}),t,s.jsx(jo,{title:"Produto adicionado à sua sacola!",CONSTANTS:i.addToCart}),s.jsx(To,{})]})})};yl.displayName="Header";const Vf="_shippingFreight_6z8rf_6",Kf="_shippingFreight__postalCodeGrid_6z8rf_10",Xf="_shippingFreight__grid_6z8rf_14",Qf="_shippingFreight__grid__title_6z8rf_18",Yf="_shippingFreight__grid__remember_6z8rf_29",Zf="_postalCodeContainer_6z8rf_44",Jf="_deliveryStatusBar__tag_6z8rf_49",ep="_deliveryStatusBarError__tag_6z8rf_66",tp="_deliveryInfo_6z8rf_74",rp="_deliveryInfo__content_6z8rf_78",np="_deliveryInfo__text_6z8rf_84",op="_deliveryInfo__title_6z8rf_89",ip="_deliveryInfo__subtitle_6z8rf_99",sp="_deliveryInfo__tooltipIcon_6z8rf_109",ap="_deliveryInfo__tooltip_6z8rf_109",cp="_freightGrid_6z8rf_148",lp="_freightContainer_6z8rf_155",up="_freightOption__content_6z8rf_160",dp="_freightOption__value_6z8rf_166",fp="_freightOption__title_6z8rf_177",pp="_freightOption__title_item_6z8rf_181",mp="_freightOption__paragraph_6z8rf_192",fe={shippingFreight:Vf,shippingFreight__postalCodeGrid:Kf,shippingFreight__grid:Xf,shippingFreight__grid__title:Qf,shippingFreight__grid__remember:Yf,postalCodeContainer:Zf,deliveryStatusBar__tag:Jf,deliveryStatusBarError__tag:ep,deliveryInfo:tp,deliveryInfo__content:rp,deliveryInfo__text:np,deliveryInfo__title:op,deliveryInfo__subtitle:ip,deliveryInfo__tooltipIcon:sp,deliveryInfo__tooltip:ap,freightGrid:cp,freightContainer:lp,freightOption__content:up,freightOption__value:dp,freightOption__title:fp,freightOption__title_item:pp,freightOption__paragraph:mp,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},hp=({icon:e,title:t,subtitle:r,packageCount:n,packageUnit:o="",labelDescription:i,freightConfig:a,toolTipZIndex:c})=>{const[l,u]=C.useState(!1),f=C.useRef(null),p=()=>u(d=>!d);return s.jsxs("div",{className:fe.deliveryInfo,ref:f,children:[s.jsx(v.Tooltip.Root,{arrow:"bottom",component:s.jsx("div",{children:s.jsx("p",{children:a.messages.select_size_tag})}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:f.current}),s.jsxs("div",{className:fe.deliveryInfo__content,children:[s.jsx("div",{className:fe.deliveryInfo__icon,children:s.jsx(v.Icon,{name:e,size:"medium"})}),s.jsxs("div",{className:fe.deliveryInfo__text,children:[s.jsxs("span",{className:fe.deliveryInfo__title,children:[t," ",n," ",o]}),r&&s.jsx("span",{className:fe.deliveryInfo__subtitle,children:r})]}),i&&s.jsxs("div",{className:fe.deliveryInfo__tooltipIcon,onMouseEnter:p,onMouseLeave:p,"aria-label":"Mostrar descrição",children:[s.jsx("span",{children:s.jsx(v.Icon,{name:a.icons.feedback_help,size:"small"})}),l&&s.jsx("div",{className:fe.deliveryInfo__tooltip,children:i})]})]})]})},gp=({value:e,title:t,paragraph:r})=>s.jsx("div",{className:fe.freightOption,children:s.jsxs("div",{className:fe.freightOption__content,children:[s.jsx("span",{className:fe.freightOption__value,children:e}),s.jsx("span",{className:fe.freightOption__title,children:s.jsx(v.TextStructure.Root,{children:s.jsxs(v.TextStructure.DivWrapper,{className:fe.footer__item,children:[s.jsx("span",{className:fe.freightOption__title_item,children:t}),r&&s.jsx("span",{className:fe.freightOption__paragraph,children:r})]})})})]})}),yp=({children:e})=>s.jsx("div",{className:fe.freightContainer,children:e}),_p=({children:e})=>s.jsx("div",{className:fe.freightGrid,children:e}),vp=({children:e})=>s.jsx("div",{className:fe.postalCodeContainer,children:e}),Ii=({message:e,seller:t="",size:r="small",setError:n})=>s.jsx("div",{className:n?fe.deliveryStatusBarError:fe.deliveryStatusBar,children:s.jsxs(v.Tag,{title:e,className:n?fe.deliveryStatusBarError__tag:fe.deliveryStatusBar__tag,size:r,children:[e," ",!n&&t]})}),bp=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},xp=e=>{var r,n,o;const t=[];return(o=(n=(r=e==null?void 0:e.logisticsInfo)==null?void 0:r[0])==null?void 0:n.slas)==null||o.forEach(i=>{t.push({id:i.id,name:i.name,price:i.price,shippingEstimate:i.shippingEstimate})}),t},Cp=({component:e,parent:t,top:r,left:n,target:o,contentRef:i,freightConfig:a,toolTipZIndex:c=999,...l})=>{const{isMobile:u}=Se();return s.jsx(s.Fragment,{children:u?s.jsx(v.Tooltip.Root,{arrow:"bottom",component:s.jsxs("div",{...l,ref:i,children:[e,s.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:t}):s.jsx(v.Tooltip.Root,{arrow:"bottom",component:s.jsxs("div",{...l,ref:i,children:[e,s.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:t})})},Sp=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:n,quantity:o,setError:i,setIsButtonClicked:a,component:c,freightConfig:l,toolTipZIndex:u})=>{var O,N,$,w;const f=tt(),p=tt(q=>q.shipping),[d,h]=C.useState(),[m,y]=C.useState(!1),[g,b]=C.useState(!1),[A,_]=C.useState(!1),E=(N=(O=f.shippingData)==null?void 0:O.address)==null?void 0:N.postalCode,S=!(d!=null&&d.length)&&E?E:d,P=C.useRef(null),x=async q=>{const U=q.target.value.replace(/\D/g,"").slice(0,8);U.length>5?h(U.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):h(U)},I=async q=>{const z=q.target.value.replace(/\D/g,"");try{if((await Ho.get(`https://viacep.com.br/ws/${z}/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.")}},B=async()=>{y(!0);try{const q=await Ho.post("/api/checkout/simulation",{items:[{id:n,quantity:o,seller:t}],country:"BRA",postalCode:S});e(xp(q.data))}catch(q){console.error("Erro ao atualizar o documento:",q)}finally{y(!1),p(S,"BRA")}},R=async()=>{if(!n){_(!0),setTimeout(()=>_(!1),1500);return}await I({target:{value:S}}),m||(B(),a(!0))};return s.jsxs("div",{ref:P,style:{position:"relative"},children:[!n&&A?s.jsx(Cp,{component:c,isOpen:A,parent:P.current,toolTipZIndex:u,freightConfig:l}):s.jsx(s.Fragment,{}),s.jsx("div",{style:{position:"relative"},children:s.jsx(v.TextField.Structure,{title:"structure",style:{width:"100%"},input:s.jsx(v.TextField.Input,{defaultValue:(w=($=f.shippingData)==null?void 0:$.address)==null?void 0:w.postalCode,label:l.messages.text_input_label,title:"textfield",value:d,sizeVariant:r,onMouseOver:()=>n?null:_(!0),onMouseOut:()=>n?null:_(!1),mode:"simple",onChange:x,onKeyDown:q=>{q.key==="Enter"&&R()},className:fe["input-modifier"],feedback:g?"error":"none"}),right:s.jsx(v.Button,{onClick:R,size:r,title:"button",children:m?s.jsx(v.Spinner,{size:"small",indicatorColor:"#ffffff"}):l.messages.text_input_btn})})})]})},Ap=({children:e,freightConfig:t})=>s.jsxs("div",{className:fe.shippingFreight,children:[s.jsxs("div",{className:fe.shippingFreight__grid,children:[s.jsx("span",{className:fe.shippingFreight__grid__title,children:t.messages.title}),s.jsx("span",{className:fe.shippingFreight__grid__remember,children:s.jsx(ze,{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})})]}),s.jsx("div",{className:fe.shippingFreight__postalCodeGrid,children:e})]}),Ep=({children:e})=>s.jsx("div",{className:fe.freightContainer,children:e}),Rp=({className:e,sellerId:t,skuId:r,quantity:n,size:o,seller:i,local:a,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:l}=ge(),[u,f]=C.useState(""),[p,d]=C.useState([]),[h,m]=C.useState(""),[y,g]=C.useState(!1),b=_=>f(_),A=_=>{d(_),l({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:{shippings:_.map(E=>({shipping_tier:E.id,delivery_time:E.shippingEstimate.replace("bd",""),flag_pickup:E.name.toLowerCase().includes("retirada")?"true":"false",shipping:E.price,currency:c.currency||"BRL"}))}}})};return s.jsxs(Ep,{className:e,children:[s.jsxs(Ap,{freightConfig:c.freightConfig,children:[s.jsx(vp,{children:s.jsx(Sp,{onUpdateFreightItems:A,skuId:r,quantity:n,size:o,sellerId:t,local:a,setError:m,setIsButtonClicked:g,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),h?s.jsx(Ii,{size:o,message:h,setError:m}):p.length>0&&s.jsx(Ii,{size:o,message:c.freightConfig.messages.delivered_by,seller:i})]}),y&&!h?p.length>0&&s.jsxs(yp,{children:[s.jsx(_p,{children:p.filter(({id:_})=>!_.includes("Retirada")).map(_=>s.jsx(gp,{id:_.id,value:fo({valueInCents:_.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:_.name,paragraph:`${c.freightConfig.messages.prefix_days}${bp(_.shippingEstimate)}`,radioValue:u,changeValue:b},_.id))}),c.deliveryInfoBoxesAllowed?s.jsx(hp,{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}):s.jsx(s.Fragment,{})]}):null]})},_l=C.createContext({}),wp=({children:e,item:t,index:r,shelfTitle:n,...o})=>{const[i,a]=C.useState(null),c=C.useRef(null),l=C.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:u,itemListRef:f}=ge(),p=y=>{u({functionKey:"productEvents",data:{commonData:{...t,availableSizes:l.current.availableSkus,...l.current.priceInfo},customData:{index:r+1},event:y}})},d=()=>{p("add_to_wishlist")},h=()=>{u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...l.current.priceInfo}]},supportData:{selectedSku:i,selectedSkus:[i]},customData:{index:r}}})},m=()=>{n&&(f.current={item_list_name:n}),p("select_item")};return s.jsx(_l.Provider,{value:C.useMemo(()=>({...o,index:r,item:t,element:c,selectedSku:i,setSelectedSku:a,eventDataRef:l,sendAddToWishlistEvent:d,sendSelectItemEvent:m,sendAddToCartEvent:h}),[o,t,c,i]),children:e})},Le=()=>{const e=C.useContext(_l);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},Ee={"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"},vl=({callback:e,children:t,className:r,data:n,isKit:o,...i})=>{const{item:{availability:{status:a},image:c}}=Le();return a?s.jsxs("div",{...i,className:v.helpers.classNameConcat(Ee["product-card--actions"],r),children:[s.jsxs(ye.Wrapper,{type:"actions--group",children:[s.jsx(ye.Price,{}),s.jsx("div",{className:Ee["product-card--actions--selectors"],children:!o&&s.jsx(ye.StyleSelector,{data:n,images:c,callback:e})})]}),t]}):null};vl.displayName="ProductCard.Actions";const bl=({className:e,isKit:t,...r})=>{const{addToCart:n}=Be(),{isMobile:o=!1,selectedSku:i,outStock:a,item:c,sendAddToCartEvent:l,CONSTANTS:u}=Le(),f=()=>{var h;if(!i)return;const d=go(i.offers.offers,u.StoreConfig_MainSellerId);d&&n({id:i==null?void 0:i.sku,quantity:1,seller:d.seller.identifier},{id:c.id,texture:(h=c==null?void 0:c.image.find(m=>u.TEXTURE_IMAGE.includes(m.alternateName)))==null?void 0:h.url}),l()},p=i?u.BUY_BUTTON_LABELS.add_to_cart:u.BUY_BUTTON_LABELS.select_size;return s.jsx(v.Button,{...r,className:v.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!i&&!a,size:o?"medium":"large",variant:a?"secondary":"primary",onClick:a?r.onClick:f,children:a?"Avise-me quando chegar":p})};bl.displayName="ProductCard.Actions.BuyButton";const xl=({product:e,tag:t,size:r="small"})=>{const n=e.offers.offers[0],{CONSTANTS:o,WishListToggle:i}=Le();return s.jsxs(ye.Wrapper,{type:"header",style:{zIndex:o.Z_INDEX_WAR.product_card_header},children:[t?s.jsx(v.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?s.jsx(v.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,o.PRODUCT_CARD_TOP_WISHLIST_TOGGLE&&s.jsx(i,{product:e,priceInfo:{price:n.price,listPrice:n.listPrice},variant:"card"})]})};xl.displayName="ProductCard.Actions.Header";const Cl=({className:e,children:t,hasPriority:r=!1,showVideo:n=!1,...o})=>{const{element:i,index:a,item:{image:c,slug:l,video:u},sendSelectItemEvent:f,order:p,CONSTANTS:d}=Le(),h=ca({images:c,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return s.jsxs("div",{...o,className:v.helpers.classNameConcat(Ee["product-card--image"],e),ref:i,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[s.jsx(Ne,{href:`/${l}/p`,onClick:f,onMouseUp:m=>{m.button===1&&f(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(p))},children:s.jsx("div",{className:Ee["product-card--image--container"],children:Array.isArray(h)&&h.map(({url:m,alternateName:y},g)=>C.createElement($e.Image,{...d.PRODUCT_IMAGE_DIMENSIONS.product_card,style:d.PRODUCT_IMAGE_DIMENSIONS.product_card,alt:y??"product image",key:g,...r&&{priority:g===0&&a<4},objectFit:"cover",src:m}))})}),d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&n&&u&&s.jsx(ye.Video,{url:u,poster:h[0].url}),t]})};Cl.displayName="ProductCard.Media.Media";const Sl=({className:e,callback:t,children:r,...n})=>{const{isMobile:o,item:i,CONSTANTS:{PRODUCT_CARD_TEXTS:a}}=Le(),{availability:{status:c}}=i;return c?null:s.jsxs("div",{...n,className:v.helpers.classNameConcat(Ee["product-card--outstock"],e),children:[s.jsx(v.Tag,{size:"small",variant:"secondary",title:a.disabled,children:a.disabled}),s.jsx(v.Button,{className:v.helpers.classNameConcat(e,"buy-button"),size:o?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(i)},children:a.notify})]})};Sl.displayName="ProductCard.OutStock";const Al=({children:e,className:t="",index:r,isMobile:n=!1,item:o,size:i,order:a,outStock:c,shelfTitle:l,CONSTANTS:u,WishListToggle:f,...p})=>s.jsx(wp,{item:o,isMobile:n,outStock:c,order:a,size:i,index:r,shelfTitle:l,CONSTANTS:u,WishListToggle:f,children:s.jsx("div",{...p,className:v.helpers.classNameConcat(Ee["product-card--wrapper"],t),"data-size":i,children:e})});Al.displayName="ProductCard.Root";const El=({disabled:e,label:t,size:r,value:n,onClick:o,...i})=>s.jsxs(v.ToggleSize.Wrapper,{...i,disabled:!1,outOfStock:e,size:r,onClick:o,children:[s.jsx(v.ToggleSize.DisabledAdornment,{}),s.jsx(v.ToggleSize.Text,{children:t})]});El.displayName="ProductCard.SizeSelector.Item";const Rl=({active:e=!1,callback:t,selectedSku:r=null,item:n,setNotify:o})=>{const{item:i,isMobile:a,setSelectedSku:c,eventDataRef:l}=Le();n.productId=i.id;const u=ho(n),f=mo(n,"tamanho");!u&&!l.current.availableSkus.includes(f)&&l.current.availableSkus.push(f);const p=C.useCallback(h=>{const m=r===h?null:h;typeof c=="function"&&c(m),typeof t=="function"&&t(m)},[t,c,r]),d=C.useCallback(()=>{if(u&&typeof o=="function"){o(i,n);return}p(n)},[n,o,p,u,i]);return s.jsx(El,{active:e,disabled:u,label:f,onClick:()=>d(),size:a?"x-small":"small",value:n})};Rl.displayName="ProductCard.SizeSelector.SkuItem";const wl=({callback:e,className:t="",children:r,setNotify:n,...o})=>{const{isMobile:i,item:{isVariantOf:{hasVariant:a}},selectedSku:c}=Le();return s.jsxs("div",{...o,className:v.helpers.classNameConcat(Ee["product-card--selectors--size"],t),"data-mobile":i,children:[s.jsx("div",{className:Ee["product-card--selectors--size--skus"],children:Array.isArray(a)&&a.map((l,u)=>s.jsx(Rl,{active:c===l,callback:e,item:l,selectedSku:c,setNotify:n},`size--${u}--${l.sku}`))}),s.jsx("div",{className:Ee["product-card--selectors--size--button"],children:r})]})};wl.displayName="ProductCard.SizeSelector";const eo=({alt:e="",callback:t,more:r,total:n=4,src:o,url:i,...a})=>s.jsxs(v.ToggleStyle.Wrapper,{...a,onClick:()=>{typeof t=="function"&&t(i)},children:[s.jsx(v.ToggleStyle.DisabledAdornment,{}),s.jsxs(v.ToggleStyle.Texture,{children:[o&&s.jsx($e.Image,{alt:e??o,src:o,height:34,width:34}),r&&s.jsx(v.TextStructure.DivWrapper,{className:Ee["product-card--selectors--style--more"],children:s.jsxs("p",{children:["+ ",n]})})]})]}),jp=({children:e,callback:t,data:r,total:n=4,size:o,...i})=>{const{index:a}=Le(),{triggerSelectItemEventRef:c}=ge();return s.jsxs("div",{...i,children:[e,Array.isArray(r)&&r.slice(0,n).map((l,u)=>s.jsx(eo,{callback:f=>{c.current.trigger=!0,c.current.index=a,typeof t=="function"&&t(f)},src:(l==null?void 0:l.textureImage)??"",alt:l==null?void 0:l.textureAlt,url:l==null?void 0:l.slug,size:o},u)),Array.isArray(r)&&(r==null?void 0:r.length)>n&&s.jsx(eo,{size:o,total:r.length-n,more:!0})]})},jl=({callback:e,className:t,data:r,images:n=[],findTexture:o,...i})=>{const{CONSTANTS:a}=Le(),c=o||a.TEXTURE_IMAGE,l=n==null?void 0:n.find(u=>c.includes(u.alternateName));return s.jsx(jp,{...i,callback:e,className:v.helpers.classNameConcat(Ee["product-card--selectors--style"],t),data:r,size:"x-small",children:l&&s.jsx(eo,{active:!0,size:"x-small",src:l.url})})};jl.displayName="ProductCard.StyleSelector";const Pl=({className:e,hasDecimal:t,...r})=>{const{isMobile:n,item:{offers:{lowPrice:o,highPrice:i},installments:{count:a,value:c}},eventDataRef:l}=Le();l.current.priceInfo={price:o,listPrice:i};const u=Me(i,t),f=Me(o,t),p=Me(c??0),d=n?"horizontal":"stacked";return s.jsx("div",{...r,className:v.helpers.classNameConcat(Ee["product-card--price"],e),"data-mobile":n,children:s.jsx(v.ProductInfo.Root,{size:"small",layout:d,children:s.jsxs(v.ProductInfo.Wrapper,{size:"small",layout:d,children:[s.jsx(v.ProductInfo.ValuesWrapper,{children:f!==u?s.jsxs(s.Fragment,{children:[s.jsx(v.ProductInfo.Price,{label:"originalPrice",value:u,size:"small"}),s.jsx(v.ProductInfo.Price,{label:"discountPrice",value:f,size:"small"})]}):s.jsx(v.ProductInfo.Price,{label:"defaultPrice",value:f,size:"small"})}),a&&a>1&&c?s.jsx(v.ProductInfo.Price,{label:"installment",value:`${a}x ${p}`,size:"small"}):null]})})})};Pl.displayName="ProductCard.Price";const Il=({tag:e,className:t})=>{const{item:{name:r}}=Le();return s.jsxs("div",{className:v.helpers.classNameConcat(Ee["product-card--title"],t),children:[s.jsx("div",{className:Ee["product-card--title--tag"],children:e?s.jsx(v.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?s.jsx(v.Icon,{name:e.icon,style:{color:e.iconColor}}):null},style:{background:e.tagColor,color:e.textColor},children:e.value}):s.jsx("div",{})}),s.jsx("div",{className:Ee["product-card--title--content"],children:r&&s.jsx(v.TextStructure.Root,{children:s.jsx(v.TextStructure.DivWrapper,{children:s.jsx("h3",{children:r})})})})]})};Il.displayName="ProductCard.Title";const Nl=({className:e,url:t,poster:r,...n})=>{const{element:o}=Le();return C.useEffect(()=>{if(!(o!=null&&o.current))return;const i=o.current,a=i.querySelector("video");if(a){const c=new IntersectionObserver(f=>{f.forEach(p=>{la(p.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,o]),s.jsx("div",{...n,className:v.helpers.classNameConcat(Ee["product-card--video"],e),children:t&&s.jsx($e.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};Nl.displayName="ProductCard.Media.Video";const Ol=({children:e,className:t,type:r,...n})=>s.jsx("div",{...n,className:v.helpers.classNameConcat(Ee[`product-card--${r}`],t),children:e});Ol.displayName="ProductCard.Wrapper";const ye={Actions:vl,BuyButton:bl,Header:xl,Media:Cl,Root:Al,OutStock:Sl,Price:Pl,SizeSelector:wl,StyleSelector:jl,Title:Il,Video:Nl,Wrapper:Ol},Pp="_footer__bottom_1o9af_2",Ip="_footer__wrapper_1o9af_10",Np="_footer__main_1o9af_39",Op="_footer__legalInformation_1o9af_55",Tp="_footer__column_1o9af_77",Mp="_footer__columnContent_1o9af_87",kp="_footer__item_1o9af_91",Lp="_footer__itemLink_1o9af_107",Dp="_footer__columnTitle_1o9af_122",$p="_footer__columnTitleIcon_1o9af_134",Bp="_footer__iconList_1o9af_147",qp="_footer__itemSmallText_1o9af_157",Hp="_payment_1o9af_168",Fp="_footer__iconContainer_1o9af_173",zp="_footer__iconListSubHeader_1o9af_178",Up="_accordionWrapper_1o9af_200",Gp="_accordionHeader_1o9af_204",Wp="_accordionTextWrapper_1o9af_208",pe={footer__bottom:Pp,footer__wrapper:Ip,footer__main:Np,footer__legalInformation:Op,footer__column:Tp,footer__columnContent:Mp,footer__item:kp,footer__itemLink:Lp,footer__columnTitle:Dp,footer__columnTitleIcon:$p,footer__iconList:Bp,footer__itemSmallText:qp,payment:Hp,footer__iconContainer:Fp,footer__iconListSubHeader:zp,accordionWrapper:Up,accordionHeader:Gp,accordionTextWrapper:Wp,"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 Tl={},Mo={},yt={};(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=n=>{r.has(n)||console.warn(n),r.add(n)}}})(yt);var Ml={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return t}});function t(r){let{widthInt:n,heightInt:o,blurWidth:i,blurHeight:a,blurDataURL:c,objectFit:l}=r;const u=20,f=i?i*40:n,p=a?a*40:o,d=f&&p?"viewBox='0 0 "+f+" "+p+"'":"",h=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='"+h+"' style='filter: url(%23b);' href='"+c+"'/%3E%3C/svg%3E"}})(Ml);var er={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,i){for(var a in i)Object.defineProperty(o,a,{enumerable:!0,get:i[a]})}t(e,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});const r=["default","imgix","cloudinary","akamai","custom"],n={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}})(er);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return h}});const t=yt,r=Ml,n=er,o=["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 f(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 p(m,y,g){let{deviceSizes:b,allSizes:A}=m;if(g){const E=/(^|\s)(1?\d?\d)vw/g,S=[];for(let P;P=E.exec(g);P)S.push(parseInt(P[2]));if(S.length){const P=Math.min(...S)*.01;return{widths:A.filter(x=>x>=b[0]*P),kind:"w"}}return{widths:A,kind:"w"}}return typeof y!="number"?{widths:b,kind:"w"}:{widths:[...new Set([y,y*2].map(E=>A.find(S=>S>=E)||A[A.length-1]))],kind:"x"}}function d(m){let{config:y,src:g,unoptimized:b,width:A,quality:_,sizes:E,loader:S}=m;if(b)return{src:g,srcSet:void 0,sizes:void 0};const{widths:P,kind:x}=p(y,A,E),I=P.length-1;return{sizes:!E&&x==="w"?"100vw":E,srcSet:P.map((B,R)=>S({config:y,src:g,quality:_,width:B})+" "+(x==="w"?B:R+1)+x).join(", "),src:S({config:y,src:g,quality:_,width:P[I]})}}function h(m,y){let{src:g,sizes:b,unoptimized:A=!1,priority:_=!1,loading:E,className:S,quality:P,width:x,height:I,fill:B=!1,style:R,onLoad:O,onLoadingComplete:N,placeholder:$="empty",blurDataURL:w,fetchPriority:q,layout:z,objectFit:U,objectPosition:K,lazyBoundary:W,lazyRoot:F,...ne}=m;const{imgConf:j,showAltText:M,blurComplete:D,defaultLoader:X}=y;let te,Z=j||n.imageConfigDefault;if("allSizes"in Z)te=Z;else{const G=[...Z.deviceSizes,...Z.imageSizes].sort((Ae,Q)=>Ae-Q),ue=Z.deviceSizes.sort((Ae,Q)=>Ae-Q);te={...Z,allSizes:G,deviceSizes:ue}}let k=ne.loader||X;delete ne.loader,delete ne.srcSet;const J="__next_img_default"in k;if(J){if(te.loader==="custom")throw new Error('Image with src "'+g+`" is missing "loader" prop.
5
- Read more: https://nextjs.org/docs/messages/next-image-missing-loader`)}else{const G=k;k=ue=>{const{config:Ae,...Q}=ue;return G(Q)}}if(z){z==="fill"&&(B=!0);const G={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},ue={responsive:"100vw",fill:"100vw"},Ae=G[z];Ae&&(R={...R,...Ae});const Q=ue[z];Q&&!b&&(b=Q)}let Y="",ee=f(x),L=f(I),T,re;if(c(g)){const G=i(g)?g.default:g;if(!G.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(G));if(!G.height||!G.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(G));if(T=G.blurWidth,re=G.blurHeight,w=w||G.blurDataURL,Y=G.src,!B){if(!ee&&!L)ee=G.width,L=G.height;else if(ee&&!L){const ue=ee/G.width;L=Math.round(G.height*ue)}else if(!ee&&L){const ue=L/G.height;ee=Math.round(G.width*ue)}}}g=typeof g=="string"?g:Y;let se=!_&&(E==="lazy"||typeof E>"u");(!g||g.startsWith("data:")||g.startsWith("blob:"))&&(A=!0,se=!1),te.unoptimized&&(A=!0),J&&g.endsWith(".svg")&&!te.dangerouslyAllowSVG&&(A=!0),_&&(q="high");const ce=f(P);if(process.env.NODE_ENV!=="production"){if(te.output==="export"&&J&&!A)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(!g)A=!0;else if(B){if(x)throw new Error('Image with src "'+g+'" has both "width" and "fill" properties. Only one should be used.');if(I)throw new Error('Image with src "'+g+'" has both "height" and "fill" properties. Only one should be used.');if(R!=null&&R.position&&R.position!=="absolute")throw new Error('Image with src "'+g+'" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.');if(R!=null&&R.width&&R.width!=="100%")throw new Error('Image with src "'+g+'" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.');if(R!=null&&R.height&&R.height!=="100%")throw new Error('Image with src "'+g+'" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.')}else{if(typeof ee>"u")throw new Error('Image with src "'+g+'" is missing required "width" property.');if(isNaN(ee))throw new Error('Image with src "'+g+'" has invalid "width" property. Expected a numeric value in pixels but received "'+x+'".');if(typeof L>"u")throw new Error('Image with src "'+g+'" is missing required "height" property.');if(isNaN(L))throw new Error('Image with src "'+g+'" has invalid "height" property. Expected a numeric value in pixels but received "'+I+'".')}if(!o.includes(E))throw new Error('Image with src "'+g+'" has invalid "loading" property. Provided "'+E+'" should be one of '+o.map(String).join(",")+".");if(_&&E==="lazy")throw new Error('Image with src "'+g+`" has both "priority" and "loading='lazy'" properties. Only one should be used.`);if($!=="empty"&&$!=="blur"&&!$.startsWith("data:image/"))throw new Error('Image with src "'+g+'" has invalid "placeholder" property "'+$+'".');if($!=="empty"&&ee&&L&&ee*L<1600&&(0,t.warnOnce)('Image with src "'+g+'" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'),$==="blur"&&!w){const G=["jpeg","png","webp","avif"];throw new Error('Image with src "'+g+`" has "placeholder='blur'" property but is missing the "blurDataURL" property.
1
+ "use strict";var Du=Object.defineProperty;var $u=(e,t,r)=>t in e?Du(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var lr=(e,t,r)=>$u(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),C=require("react"),tt=require("idb-keyval"),ct=require("zustand"),Qn=require("js-cookie"),_=require("@soma-vertical-web/core-components"),Me=require("./__vite-browser-external-B8mGO3z6.js"),Bu=require("jose"),ot=require("@soma-vertical-web/foundations"),Qo=require("axios"),la=require("react-dom"),$e=require("draft-js"),Yo=require("@date-fns/tz"),go=C.createContext({}),Fu=({data:e,children:t})=>o.jsx(go.Provider,{value:{tags:e==null?void 0:e.config},children:t}),yo=()=>{const{tags:e}=C.useContext(go),t=C.useCallback(r=>{var a,c,l,u;const n=(c=(a=e==null?void 0:e.commercial)==null?void 0:a.items)==null?void 0:c.find(f=>{var p;return(p=r??[])==null?void 0:p.find(d=>d.id===f.key)}),i=(u=(l=e==null?void 0:e.institucional)==null?void 0:l.items)==null?void 0:u.find(f=>{var p;return(p=r??[])==null?void 0:p.find(d=>d.id===f.key)}),s=e==null?void 0:e.flagPdp;return{commercial:n,institucional:i,flagPdp:s}},[e]);return{tags:e,getAvailableProductTag:t}},ua=({gridScrollBack:e})=>{C.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},da=C.createContext({}),qu=({children:e,gridScrollBack:t})=>{const r=C.useRef(null);return ua({gridScrollBack:t}),o.jsx(da.Provider,{value:{sizesContainerRef:r},children:e})},zu=()=>{const e=C.useContext(da);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},Ie=(e,t=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:t?2:0}).format(e),_o=({valueInCents:e,hasFree:t,freeTaxMessage:r})=>e===0?t?r:Ie(0):Ie(e/100),vo=(e,t)=>{const[r,n]=e.split(t);return{name:r.trim(),size:n?n.trim():""}},Zt=(e,t)=>{if(!e)return{};const[r,n]=e.split(t);return{color:r==null?void 0:r.trim(),size:n==null?void 0:n.trim()}},bo=(e,t="tamanho")=>{if(e.additionalProperty){const[r]=e.additionalProperty;return r!=null&&r.name?r.name.toLocaleLowerCase()===t?r.value:e.name:""}return e.name},Hu=(e,t)=>e.replace(t,"").trim(),Uu=e=>e.replace(/\//g,""),fa=({items:e,NAME_SPLIT_SYMBOL:t})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(a,c)=>{var d;c&&(c.sellerId=a.sellerId,c.sellerName=a.sellerName,c.available=!0,c.isSellerDefault=a.sellerDefault);const{Price:l,ListPrice:u,PaymentOptions:{installmentOptions:f}}=a.commertialOffer;r.price=l,r.listPrice=u;const p=(d=f==null?void 0:f[0])==null?void 0:d.installments;if(p){const{count:m,value:h}=p[p.length-1];r.installments={count:m,value:h/100}}};let i=!0;const s=e.reduce((a,c)=>{var f;const l={name:c.name,sku:c.itemId,value:((f=c.Tamanho)==null?void 0:f[0])??vo(c.nameComplete??c.name,t).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},u=c.sellers.filter(p=>(p.sellerDefault&&p.commertialOffer.IsAvailable&&(l.available=!0,n(p,l)),p.commertialOffer.IsAvailable));return!l.isSellerDefault&&u.length>0&&(l.available=!0,n(u[0],{...l,sellerId:u[0].sellerId,sellerName:u[0].sellerName})),l.available===!1&&(i=!1),a.push(l),a},[]);return{...r,sizes:s,allSizesAvailable:i}},xo=e=>e?!e.offers.offers.find(({quantity:t=0})=>t>0):!1,Co=(e,t)=>{const r=e.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0&&n.seller.identifier===t);return r||e.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0)},pa=e=>e.find(t=>t.imageLabel==="10"),ma=(e,t)=>{const r=/\/ids\/(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},ha=(e,t)=>{const r=/\/ids\/(\d+)-(\d+)-(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}-${n[2]}-${n[3]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},ga=({images:e,label:t})=>{const r=e.filter(n=>n.keywords===t.first||n.keywords===t.second||n.alternateName===t.first||n.alternateName===t.second);return r.length===0?[e[0]]:r},Gu=e=>{const[t,r]=e.split("/").map(Number);if(Number.isNaN(t)||Number.isNaN(r))throw new Error("[ERROR ASPECT RATIO IMAGE]: Invalid aspect ratio format");return r/t},ya=(e,t,r)=>{t&&(e?(t.getAttribute("src")||(t.src=r??""),t.play()):t.pause())},Wu=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:xo,formatPriceToCurrency:Ie,freightParsePrice:_o,getAspectRatio:Gu,getColorAndSizeFromSkuName:Zt,getFirstImages:ga,getProductNameWithoutSku:Hu,getSKUName:bo,getSkuInfos:fa,getThumbImage:pa,getValidOffer:Co,removeSlashes:Uu,resizingImg:ma,setVideoPlay:ya,splitNameAndSizeFromFullName:vo,updatedResizedImg:ha},Symbol.toStringTag,{value:"Module"})),He=({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})},xe={configs:{PLP_FILTERS:[{key:"",label:"",eventLabel:"",order:0}],currency:"BRL",categoryOff:"bazar",storeUrl:"https://www.example.com",MAIN_IMAGE:"1",NAME_SPLIT_SYMBOL:"-"},productEvents:(e,t)=>{const{event:r,commonData:n,customData:i,promotionInfo:s,itemList:a,outsideEcommerceData:c}=e,{availableSizes:l,sizes:u,price:f}=n,p={...r==="view_item"?{currency:xe.configs.currency,value:f,grade_disponivel:l??(u?_a(u):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:f,currency:xe.configs.currency}:{}},d=Pt({data:n,customData:{...i,...a,...s},configs:xe.configs});He({event:r,data:{...c,ecommerce:{...a,...p,items:[d]}}}),typeof t=="function"&&t(d,p)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:r,itemList:n,outsideEcommerceData:i,customData:s}=e;if(t.length===0)return;const a=t.map(({node:c},l)=>Pt({data:{...c},customData:{...r,index:l,...s!=null&&s.item_list_name?{item_list_name:s==null?void 0:s.item_list_name}:n},configs:xe.configs}));He({event:"view_item_list",data:{...i,ecommerce:{...s!=null&&s.item_list_name?{item_list_name:s==null?void 0:s.item_list_name}:n,items:a}}})},skuEvents:e=>{const{event:t,commonData:{products:r},customData:n,supportData:{selectedSkus:i,price:s},promotionInfo:a,itemList:c,outsideEcommerceData:l}=e;let u=0;const f=r.map(p=>{var y,g,b,j,v,A,S,P,x;const d=i==null?void 0:i.find(I=>(p.productId??p.id)===I.productId);let m={...a,...c};if(d){const I=ba(),B=xa(I,d);B&&(m={...m,...B}),t==="add_to_cart"&&(a||c)&&Yn({persistedData:I,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:a,itemList:c}}),t==="remove_from_cart"&&Yn({persistedData:I,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}u+=p.price??((b=(g=(y=d==null?void 0:d.offers)==null?void 0:y.offers)==null?void 0:g[0])==null?void 0:b.price)??0;const h=(d==null?void 0:d.size)??Zt((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((j=p.itemOffered)==null?void 0:j.skuName),xe.configs.NAME_SPLIT_SYMBOL).size;return Pt({data:p,customData:{...n,...m??{...a,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((v=p.itemOffered)==null?void 0:v.sku),quantity:(n==null?void 0:n.quantity)??p.quantity??1,item_variant2:h,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((x=(P=(S=(A=d==null?void 0:d.offers)==null?void 0:A.offers)==null?void 0:S[0])==null?void 0:P.seller)==null?void 0:x.identifier)??p.seller},configs:xe.configs})});He({event:t,data:{...l,ecommerce:{value:s??u,currency:xe.configs.currency,items:f}}})},filterEvent:e=>{var a;const{commonData:t,customData:r,outsideEcommerceData:n}=e,i={},s={};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 p;const u=((p=xe.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:p.eventLabel)??c,f=(i==null?void 0:i[u])||[];u==="price_range"&&l.replace(":","-"),i[u]=[...f,l]}),Object.keys(i).forEach(c=>s[c]=i[c].join(", "))),He({event:"filter",data:{...n,...s,...r}})},viewCartEvent:e=>{var f,p,d,m,h,y,g,b,j,v;const{commonData:t,outsideEcommerceData:r}=e,{cartStore:n}=t;if(!n)return;const i=window.localStorage.getItem("persistedCartEventsData"),s=i?JSON.parse(i):{},a=n.items.map(A=>{const{promotionInfo:S,itemList:P}=s[A.id]??{};return Pt({data:{...A,price:A.price/100,listPrice:A.listPrice/100},customData:{...S,...P,item_sku:A.id??A.itemOffered.sku,quantity:A.quantity??1},configs:xe.configs})}),c=(((f=n.totalizers.find(A=>A.name==="Total dos Itens"))==null?void 0:f.value)??0)/100,l=(((p=n.totalizers.find(A=>A.name==="Total dos Descontos"))==null?void 0:p.value)??0)/100,u=((d=n.marketingData)==null?void 0:d.utmiCampaign)==="codigodavendedora"?(m=n.marketingData)==null?void 0:m.utmCampaign:(y=String((h=n.openTextField)==null?void 0:h.value))==null?void 0:y.split(" - ")[0];He({event:"view_cart",data:{...r,ecommerce:{currency:xe.configs.currency,value:c+l,total_discount:Math.abs(l),cep_preenchido:!!((b=(g=n.shippingData)==null?void 0:g.address)!=null&&b.postalCode),...u?{seller_coupon_name:u}:{},...((j=n.marketingData)==null?void 0:j.coupon)&&{sale_coupon_name:(v=n.marketingData)==null?void 0:v.coupon},subtotal:c,items:a}}})},readyEvents:e=>{const{event:t,readyData:r}=e;He({event:t,data:{...r}})}},_a=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),Vu=e=>{const t=e.length;return{...e&&e.length>0?{item_category:e[0].includes(xe.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},Pt=({data:e,customData:t,configs:r})=>({...Ku(e,r==null?void 0:r.MAIN_IMAGE),...Xu(e),...Qu(e),...Yu(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],Yn=({persistedData:e,type:t,sku:r,newData:n})=>{if(!e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({[r]:n}));return}if(e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({...e,[r]:n}));return}e&&t==="remove"&&(delete e[r],window.localStorage.setItem("persistedCartEventsData",JSON.stringify(e)))},Ku=(e,t="1")=>{var s,a,c,l,u,f,p,d,m,h,y;const r=e.productReference??e.gtin??e.productRefId,n=e.image??((a=(s=e.items)==null?void 0:s[0])==null?void 0:a.images)??((c=e.itemOffered)==null?void 0:c.image),i=n==null?void 0:n.find(g=>g.alternateName===t||g.imageLabel===t||g.keywords===t);return{item_id:e.productId??((l=e.isVariantOf)==null?void 0:l.productGroupID)??((u=e.isVariationOf)==null?void 0:u.productGroupID)??((p=(f=e.itemOffered)==null?void 0:f.isVariationOf)==null?void 0:p.productGroupID),item_ref:/_\d$/.test(r)?r.slice(0,-2):r,item_name:e.productTitle??e.productName??e.name??vo((d=e.itemOffered)==null?void 0:d.name,xe.configs.NAME_SPLIT_SYMBOL).name,item_brand:((m=e.brand)==null?void 0:m.brandName)??((h=e.brand)==null?void 0:h.name)??e.brand??((y=e.itemOffered)==null?void 0:y.brand.name),item_url:`${xe.configs.storeUrl}${e.linkText}/p`,item_image:(i==null?void 0:i.url)??(i==null?void 0:i.imageUrl)}},Zo=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,Xu=e=>{var u,f;const{categories:t,categoriesIds:r}=e,n=t??((u=e.itemOffered)==null?void 0:u.categories),i=r??((f=e.itemOffered)==null?void 0:f.categoriesIds),s=Zo(n),a=Zo(i),c=s.slice(1,-1).split("/"),l=a.slice(1,-1).split("/");return{item_category:c[0].toLowerCase().includes(xe.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]}}},Qu=e=>{var i,s,a,c,l,u;const t=((i=e.itemOffered)==null?void 0:i.skuName)??((c=(a=(s=e.isVariantOf)==null?void 0:s.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:n}=Zt(t,xe.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:n}}},Yu=e=>{var l,u;const{price:t,listPrice:r,installments:n}=e,i=t??((l=e.offers)==null?void 0:l.lowPrice)??0,s=r??((u=e.offers)==null?void 0:u.highPrice)??0,a=s?s-i:0,c=a%1===0?a:Number(a.toFixed(2));return{...t&&{price:i??s},...s&&{list_price:s,discount:c},...n&&{installments:n==null?void 0:n.count,installment_value:n==null?void 0:n.value},item_currency:xe.configs.currency}},Ca=()=>{const[e,t]=va(),[r,n]=e.split("-"),i=r.includes("shop")||r.includes("sale")?r:"";return{page_category:i&&n?n:"",page_departament:i,id:t,name:e}},Zu=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:xe,findDataInPersistedData:xa,getAvailablesSizes:_a,getCategories:Vu,getPageCategoryAndDepartmentFromSlug:Ca,getPersistedData:ba,getProductListInfoFromHead:va,pushDatalayer:He,updatePersistedData:Yn},Symbol.toStringTag,{value:"Module"})),Sa=C.createContext({}),Ju=({children:e,evtFunctionsConfigs:t})=>{const r=C.useRef({}),n=C.useRef(null),i=C.useRef(null),s=C.useRef({}),a=C.useRef({trigger:!1,index:0}),c=({functionKey:f,data:p,callBack:d,timeout:m=100})=>{window.dataLayer||(window.dataLayer=[]),xe.configs=t;try{typeof xe[f]=="function"&&setTimeout(()=>{var h;p.promotionInfo=r.current,(h=i.current)!=null&&h.item_list_name&&(p.itemList=i.current),xe[f](p,d)},m)}catch(h){He({event:"error_event",data:{error_message:(h==null?void 0:h.message)??h}})}},l=({content:f})=>{c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:f.replace("::",":")}}})},u=({updatePromotionRef:f,promotion:p,index:d})=>{f&&(r.current={...p}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...p,...d!==void 0&&{index:d}}}}})};return o.jsx(Sa.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:a,promotionEventRef:r,currentLocalRef:n,itemListRef:i,cartProductsFullDataRef:s,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},ge=()=>C.useContext(Sa),ja=C.createContext({}),ed=({children:e,productData:t,isKit:r,PDP_INFO:n,NAME_SPLIT_SYMBOL:i})=>{var $,R;const{sendDataLayerEvent:s,triggerSelectItemEventRef:a}=ge(),{productId:c,productName:l,items:u,items:[{images:f,Videos:p}],description:d,["Composição"]:m="",productReference:h,categories:[y]}=t,{getAvailableProductTag:g}=yo(),b=g(Object.entries(t.clusterHighlights).map(F=>({id:F[0],name:F[1]}))),j=y.slice(1,-1).split("/"),{installments:v,price:A,listPrice:S,sizes:P,allSizesAvailable:x}=fa({items:u,NAME_SPLIT_SYMBOL:i}),I=pa(f),B=[{label:`${n.product.description}`,value:"description",content:d},{label:`${n.product.materiais}`,value:"composition",content:m}],E=((R=Zt(($=t.items)==null?void 0:$[0].name,i))==null?void 0:R.color)??t["Cores Filtráveis"][0]??"",O=()=>({commonData:{...t,sizes:P,price:A,listPrice:S,installments:v},customData:{installments:v==null?void 0:v.count,installment_value:Number(v==null?void 0:v.value).toFixed(2)}}),N=({sku:F,size:H})=>{const{commonData:U,customData:K}=O();s({functionKey:"productEvents",data:{event:"view_item",commonData:U,customData:{...K,...F&&{item_sku:F},...H&&{item_variant2:H}}}})};return C.useEffect(()=>{if(a.current.trigger){const{commonData:F,customData:H}=O();s({functionKey:"productEvents",data:{event:"select_item",commonData:F,customData:{...H,index:a.current.index}}}),a.current.trigger=!1}N({})},[]),o.jsx(ja.Provider,{value:{productData:t,productId:c,productName:l,productReference:h,tag:b,items:u,sizes:P,allSizesAvailable:x,installments:v,price:A,listPrice:S,thumbImage:I,images:f,video:p[0],descriptionContent:B,breadcrumbList:j,isKit:r,colorName:E,handleViewItemEvent:N},children:e})},So=()=>{const e=C.useContext(ja);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},td={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},Te=Promise.resolve(!1),Zn={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>Te,addItem:()=>Te,addSellerCode:()=>Te,addMarketingData:()=>Te,emptyCart:()=>{},removeItem:()=>Te,setIsOpen:()=>{},shipping:()=>Te,shippingUpdate:()=>Te,toggleServiceToProduct:()=>Te,updateItemQuantity:()=>Te,insertProfileEmail:()=>Te,setRecentlyAddedProducts:()=>{}},jo=e=>e===0,Aa=(e,t)=>{if(!e||e.length===0)return[];let r="";const n=[],i=e.match(/\d+/g)??[];for(const s of i){const a=t[Number(s)];a&&(r+=(r?"/":"")+a,n.push(r))}return n},Ea=(e,t)=>{const{availability:r,additionalInfo:{brandName:n},bundleItems:i,id:s,uniqueId:a,detailUrl:c,ean:l,imageUrl:u,name:f,listPrice:p,quantity:d,price:m,priceDefinition:h,productCategories:y,productCategoryIds:g,productId:b,refId:j,seller:v,referenceId:A,offerings:S,productRefId:P,skuName:x,sellingPrice:I}=e;return{availability:r,bundleItems:i,referenceId:A,productRefId:P,id:s,ean:l,uniqueId:a,itemOffered:{additionalProperty:[],brand:{name:n},categories:Aa(g,y),categoriesIds:g,gtin:j,image:[{alternateName:(t==null?void 0:t.MAIN_IMAGE)??"1",url:u}],name:f,isVariationOf:{name:f,productGroupID:b},sku:s,slug:c,skuName:x},listPrice:p,quantity:d,offerings:S,price:m,priceDefinition:h,sellingPrice:I,seller:v}},Ra=(e,t)=>{const r=e.map(n=>({id:n.id,quantity:n.quantity,seller:n.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},wa=(e,t)=>{const r=e.find(n=>n.id===t);if(r){const n=e.map((i,s)=>{var a,c;return{id:((a=i.itemOffered)==null?void 0:a.sku)??"",index:s,quantity:(r==null?void 0:r.id)===((c=i.itemOffered)==null?void 0:c.sku)?0:i.quantity,seller:i.seller??""}});return{updateItems:n,filterItems:n.filter(i=>i.id!==t)}}return{updateItems:[],filterItems:[]}},Pa=(e,t,r)=>e.filter(n=>n.availability!=="withoutStock"&&n.availability!=="https://schema.org/OutOfStock").map((n,i)=>{var s,a;return n.id===t?{id:n.id,index:i,quantity:r,seller:n.seller,sku:((s=n.itemOffered)==null?void 0:s.sku)??""}:{id:n.id,index:i,quantity:n.quantity,seller:n.seller,sku:((a=n.itemOffered)==null?void 0:a.sku)??""}}),Jn=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),rd=(e,t)=>{var r;return Array.isArray(e)?(((r=e==null?void 0:e.find(n=>{var i;return((i=n==null?void 0:n.id)==null?void 0:i.toLowerCase())===t}))==null?void 0:r.value)??0)/100:0},nd=e=>{const t=e.reduce((i,s)=>{const a=jo(s.price)?0:s.quantity;return i+a},0),r=e.reduce((i,s)=>i+s.price*s.quantity,0),n=e.reduce((i,s)=>i+s.listPrice*s.quantity,0);return{totalItems:t,total:r,subTotal:n}},od=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(jo(r==null?void 0:r.price)?0:r.quantity),0):0,Ia=(e,t)=>{const{items:r,itemMetadata:n,marketingData:i,messages:s,orderFormId:a,openTextField:c,paymentData:l,shippingData:u,totalizers:f}=e;return{id:a,itemMetadata:n,items:Array.isArray(r)?r.map(p=>Ea(p,t)):[],marketingData:i,messages:s,openTextField:c,paymentData:l,shippingData:u,totalizers:f}},Na=(e,t)=>{const r=e.find(n=>n.id===t);return r?r.availability==="unavailableItemFulfillment":!1},id=(e,t)=>{const r=e.sku,n=e.isVariantOf.hasVariant.find(i=>i.sku===r);return n?n.name.split(t)[1]:"--"},nt=(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},sd=(e,t)=>{const r=new Set;return[e,...t].filter(n=>!r.has(n)&&r.add(n),r)},Oa=(e,t)=>t&&Array.isArray(t)&&t.find(n=>n.id===e)?Promise.resolve(e):Promise.resolve(!1),Ta=(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},ka=(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(n=>n.id===r.id)):[],Da=async(e,t)=>e.then(r=>[...r??[],...t??[]]),we=async(e,t,r,n)=>{const{priority:i="auto",body:s}=t;return fetch(e,{headers:{"Content-Type":"application/json"},priority:i,method:"POST",body:JSON.stringify(s)}).then(async a=>{const c=await a.json();return r?c:Ia(c,n)})},$a=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),ad=e=>[...Array.isArray(e)?e:[e],"faststore"],Ba=e=>{const t=e.get("utm_source")||Ve("utm_source"),r=e.get("utm_campaign")||Ve("utm_campaign"),n=e.get("utm_medium")||Ve("utm_medium"),i=e.get("utmi_cp")||Ve("utmi_cp"),s=e.get("utmi_pc")||Ve("utmi_pc"),a=e.get("utmi_p")||Ve("utmi_p");return{...t&&{utmSource:t},...n&&{utmMedium:n},...r&&{utmCampaign:r},...i&&{utmiCampaign:i},...s&&{utmiPart:s},...a&&{utmipage:a}}},Ve=e=>{if(!e||typeof window>"u")return;const t=window.location.href;e=e.replace(/[[\]]/g,"\\$&");const r=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),n=r.exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},cd=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:td,addItemOrder:Ra,addNotification:$a,createItemOrder:Ea,fetchCartAPI:we,findItemIndex:Jn,findOptions:La,findTotalizerValue:rd,getCategories:Aa,getCode:nt,getQuantity:ka,getRemoveId:Oa,getSize:id,getTotalItems:od,getTotalizer:nd,getUrlParameter:Ve,getValue:Ta,initialState:Zn,isGift:jo,marketingTagsBuilder:ad,mergeOptionsPromise:Da,mountMarketingData:Ba,orderFormValues:Ia,promiseDefault:Te,removeQuantity:wa,updateItemSellerExternal:Na,updateOrderFormPromise:Ma,updateQuantity:Pa,wishlistArray:sd},Symbol.toStringTag,{value:"Module"})),ld=()=>{const e=async(m,h)=>we("/api/checkout/order-form/coupon",{body:{orderFormId:m,coupon:h}}),t=async(m,h)=>{if(h){const y=h.includes(" - ")?h.split(" - ")[0]:h,g=await we("/api/checkout/order-form/seller-code",{body:{orderFormId:m,sellerCode:y}},!0);return we("/api/checkout/order-form/attachments",{body:{orderFormId:m,sellerCode:y,sellerName:g instanceof Object&&"name"in g?g==null?void 0:g.name:""}}).then(b=>({...b,openTextField:{...(b==null?void 0:b.openTextField)??{},statusOk:(g==null?void 0:g.ativo)??!1}}))}else return we("/api/checkout/order-form/attachments",{body:{orderFormId:m,sellerCode:"",sellerName:""}})},r=async(m,h)=>we("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:m,marketingData:h}}),n=async(m,h,y)=>we("/api/checkout/order-form/items",{body:{orderFormId:m,orderItems:Ra(h,y)}}),i=async(m,h,y,g)=>we("/api/checkout/order-form/offerings",{body:{id:h,itemIndex:y,orderFormId:m,remove:g}}),s=async m=>we("/api/checkout/order-form/items/remove-all",{body:{orderFormId:m}}),a=async(m,h="low")=>we("/api/checkout/order-form",{priority:h,body:{orderFormId:m??""}}),c=async(m,h)=>we("/api/checkout/order-form/profile",{body:{orderFormId:m,email:h}}),l=async(m,h,y)=>{const g=wa(h,y);return we("/api/checkout/order-form/items/update",{body:{orderItems:g.updateItems,orderFormId:m}})},u=async(m,h,y)=>we("/api/checkout/order-form/shipping",{body:{orderFormId:m,country:y,postalCode:h}}),f=async(m,h,y)=>we("/api/checkout/order-form/shipping/update",{body:{orderFormId:m,options:h,selectedAddresses:y}}),p=async(m,h,y,g)=>{const b=Pa(h,y,g);return we("/api/checkout/order-form/items/update",{body:{orderFormId:m,orderItems:b}})};return{addCoupon:e,addItem:n,addSellerCode:t,addMarketingData:r,giftItem:i,emptyCart:s,getOrderForm:a,insertProfileEmail:c,removeItem:l,shipping:u,shippingUpdate:f,updateItemQuantity:async(m,h,y,g,b)=>p(m,h,y,g).then(j=>j&&Array.isArray(j.items)?Na(j.items,y)?p(m,h,y,b):j:!1)}},eo="soma::cart",pt="soma::options",it=ct.create((e,t)=>{const r=ld(),n=async(i,s,a)=>{e({loading:!0});const c=await Ma(i);if(typeof c!="boolean"){e({...c});const l=await Da(tt.get(pt),a);return tt.set(pt,l),Ta(c,s).finally(()=>e({loading:!1,options:l}))}return Te};if(typeof window<"u"){const i=async s=>{if(s){const a=await tt.get(pt).then(u=>La(u,s.items));tt.set(eo,s),tt.set(pt,a),e({...s,options:a});const c=new URLSearchParams(window.location.search),l=c.get("utm_campaign")||c.get("utmi_campaign")||"";l&&n(()=>r.addSellerCode(t().id,l.toUpperCase()),"openTextField")}};return tt.get(eo).then(s=>r.getOrderForm(s?s.id:"").then(i)),{...Zn,addCoupon:async s=>n(()=>r.addCoupon(t().id,s),"marketingData"),addItem:(s,a)=>{n(()=>r.addItem(t().id,t().items,s),"items",a)},addSellerCode:async s=>n(()=>r.addSellerCode(t().id,s),"openTextField"),addMarketingData:async s=>n(()=>r.addMarketingData(t().id,s),"marketingData"),emptyCart:()=>{n(()=>r.emptyCart(t().id))},removeItem:async s=>{const a=await n(()=>r.removeItem(t().id,t().items,s),"items");return Oa(s,a)},shipping:async(s,a="BR")=>n(()=>r.shipping(t().id,s??"",a),"shippingData"),shippingUpdate:async s=>n(()=>{var a;return r.shippingUpdate(t().id,s,(a=t().shippingData)==null?void 0:a.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(s,a,c)=>n(()=>r.giftItem(t().id,s,a,c),"items"),updateItemQuantity:async(s,a,c)=>{const{id:l,items:u}=t();return n(()=>{var f;return r.updateItemQuantity(l,u,s,a,((f=u.find(p=>p.id===s))==null?void 0:f.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async s=>n(()=>r.insertProfileEmail(t().id,s),"clientProfileData"),setIsOpen:s=>e({isOpen:s})}}return Zn}),ud=()=>it(e=>e),Fa=ct.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(n=>$a(n,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(n=>n.id!==t)}))}})),qa=()=>Fa(e=>e.notifications),za=()=>Fa(e=>e.actions),dd=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:pt,KEY_INDEXED_STORE:eo,useCartStore:it,useGetCartStoreState:ud,useGetNotificationActions:za,useGetNotificationsStore:qa},Symbol.toStringTag,{value:"Module"})),fd=6e3,Ha=C.createContext({}),Ua=({children:e,...t})=>{const{items:r}=it(),[n,i]=C.useState([]),s=C.useRef(null),a=C.useMemo(()=>Array.isArray(n)&&n.length>0?n.map(c=>r.find(l=>l.id===c.id)).filter(c=>c!==void 0):[],[r,n]);return C.useEffect(()=>{n.length&&(clearTimeout(s.current??0),s.current=setTimeout(()=>{i([])},fd))},[n]),o.jsx(Ha.Provider,{value:C.useMemo(()=>({...t,setRecentlyAdded:i,recentlyAddedProducts:a}),[t,i,a]),children:e})},_t=()=>{const e=C.useContext(Ha);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class Ga{constructor(){lr(this,"events",{});lr(this,"prevData",{})}subscribe(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),()=>{this.events[t]=this.events[t].filter(n=>n!==r)}}publish(t,r){this.events[t]&&this.events[t].forEach(n=>{this.prevData[t]=r,n(r)})}}const Wa=C.createContext({}),pd=({children:e,headerConfigs:t,pathname:r,...n})=>{const[i,s]=C.useState(!0),a=r==="/",c=C.useRef(new Ga),l=p=>p?{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),f=C.useRef(u);return C.useEffect(()=>{var m;const p=((m=new URLSearchParams(window.location.search))==null?void 0:m.toString())??"";(p.includes("utm_")||p.includes("gclid"))&&(Qn.get("lastMedias")||Qn.set("lastMedias",`${p}`,{expires:1/24}));const d=()=>{const h=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,y=window.innerWidth<1024||!!h.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);i!==y&&s(y)};return d(),window.addEventListener("resize",d,{passive:!0}),()=>window.removeEventListener("resize",d)},[i]),C.useEffect(()=>{const p=l(a);c.current.publish("header:change_variant",p.headerVariant),c.current.publish("header:change_position",p.position),f.current=p},[a]),o.jsx(Wa.Provider,{value:{isMobile:i,mediatorRef:c,currentHeaderConfigsRef:f,...n},children:o.jsx(Ua,{children:e})})},Se=()=>C.useContext(Wa),Va=C.createContext({}),md=({children:e,...t})=>o.jsx(Va.Provider,{value:{...t},children:e}),Ee=()=>C.useContext(Va),Ze=(e,t)=>ct.create(r=>{const n=()=>r({value:e});return t&&t instanceof Set&&t.add(n),{value:e,actions:{setValue:i=>r({value:i}),reset:n}}}),yt={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},vt=new Set,hd=()=>{vt.forEach(e=>{e()})},Ka=ct.create((e,t)=>{const r=()=>e({value:yt.category});return vt.add(r),{value:yt.category,actions:{reset:r,setValue:n=>e(()=>({value:n})),updateValue:n=>{t().value!==n&&e({value:n})}}}}),Jt=()=>Ka(e=>e.value),We=()=>Ka(e=>e.actions),Xa=Ze(yt.menuMobileIsOpen,vt),Ao=()=>Xa(e=>e.value),Je=()=>Xa(e=>e.actions),Qa=Ze(yt.searchModalIsOpen,vt),gd=()=>Qa(e=>e.value),Eo=()=>Qa(e=>e.actions),Ya=Ze(yt.userMenuIsOpen,vt),Za=()=>Ya(e=>e.value),bt=()=>Ya(e=>e.actions),yd=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:hd,useActionsHeaderCategory:We,useActionsMenuMobileIsOpen:Je,useActionsSearchModalIsOpen:Eo,useActionsUserMenuIsOpen:bt,useGetHeaderCategoryStore:Jt,useGetMenuMobileIsOpen:Ao,useGetSearchModalIsOpen:gd,useGetUserMenuIsOpen:Za},Symbol.toStringTag,{value:"Module"})),st={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},lt=new Set,_d=()=>{lt.forEach(e=>{e()})},Ja=ct.create(e=>{const t=()=>e({value:st.selectedSkuInfo});return lt.add(t),{value:st.selectedSkuInfo,actions:{setValue:r=>e(n=>({value:{...n,...r}})),reset:t}}}),vd=()=>Ja(e=>e.value),bd=()=>Ja(e=>e.actions),ec=Ze(st.openLetMeKnow,lt),xd=()=>ec(e=>e.value),Cd=()=>ec(e=>e.actions),tc=Ze(st.showNotify,lt),Sd=()=>tc(e=>e.value),jd=()=>tc(e=>e.actions),rc=Ze(st.showBottomNavigation,lt),Ad=()=>rc(e=>e.value),Ed=()=>rc(e=>e.actions),nc=Ze(st.openMeasurements,lt),Rd=()=>nc(e=>e.value),wd=()=>nc(e=>e.actions),Pd=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:_d,useActionsPDPOpenLetMeKnow:Cd,useActionsPDPOpenMeasurements:wd,useActionsPDPSelectedSkuInfo:bd,useActionsPDPShowBottomNavigation:Ed,useActionsPDPShowNotify:jd,useGetPDPOpenLetMeKnow:xd,useGetPDPOpenMeasurements:Rd,useGetPDPSelectedSkuInfo:vd,useGetPDPShowBottomNavigation:Ad,useGetPDPShowNotify:Sd},Symbol.toStringTag,{value:"Module"})),oc=C.createContext({}),Id=({children:e,headerData:t,...r})=>{var f,p;const n=C.useRef(null),i=C.useRef(null),s=C.useRef(null),a=C.useRef(null),c=C.useRef(null),{mediatorRef:l,currentHeaderConfigsRef:u}=Se();return(f=l.current)==null||f.subscribe("header:change_variant",d=>{var b,j,v;if(d&&u.current&&(u.current.bannerVariant=d),!n.current)return;const h=document.body.scrollTop>0,y=n.current.getAttribute("data-interactiveVariant"),g=h?y:d??((b=u.current)==null?void 0:b.bannerVariant)??"default";g!==((j=u.current)==null?void 0:j.headerVariant)&&(n.current.setAttribute("data-bottomdivider",String(h)),n.current.setAttribute("data-variant",String(g)),(v=l.current)==null||v.publish("herobanner:change_controllers_variant",g),u.current&&(u.current.headerVariant=g))}),(p=l.current)==null||p.subscribe("header:change_position",d=>{n.current&&(n.current.style.position=d)}),C.useEffect(()=>{const d=new AbortController,m=_.helpers.throttle(()=>{var y;return(y=l.current)==null?void 0:y.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",m,{passive:!0,signal:d.signal});const h=y=>{var b;(b=y.target.closest("a"))==null||b.blur()};return n.current&&(n.current.addEventListener("click",h,{signal:d.signal}),n.current.addEventListener("touchend",h,{signal:d.signal})),()=>{d.abort()}},[]),o.jsx(oc.Provider,{value:{headerData:t,structureRef:i,rootRef:n,tipbarRef:s,userMenuMobileRef:a,userMenuDesktopRef:c,...r},children:e})},be=()=>C.useContext(oc),ic=C.createContext({}),sc=({children:e})=>{const t=C.useRef(null),r=C.useRef(null),n=Ao(),i=C.useCallback(()=>{var s;{const a=(s=t.current)==null?void 0:s.querySelector("dialog");if(a){a.dataset.animation="out";const c=a.children[0];c.dataset.animation="out"}}},[]);return C.useEffect(()=>{var s;if(n)document.body.dataset.modalopen="true";else{document.body.dataset.modalopen="false";const a=(s=r.current)==null?void 0:s.querySelector("dialog");if(a){a.dataset.animation="out";const c=a.children[0];c.dataset.animation="out"}}},[n]),C.useEffect(()=>{r.current=document.body},[]),o.jsx(ic.Provider,{value:{bodyRef:t,handleCloseSubMenu:i,documentBodyRef:r},children:e})},xt=()=>C.useContext(ic),Nd=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Od=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const n=t.getBoundingClientRect(),i=e.getBoundingClientRect(),s=e!=null&&e.parentElement?Nd(e==null?void 0:e.parentElement):0;return{left:n.left+n.width/2-(i.width+s),top:n.top+n.height+r}},ac=C.createContext({}),cc=({children:e,delay:t=600,gap:r=20,...n})=>{const[i,s]=C.useState(!1),a=C.useRef(null),[c,l]=C.useState(!1),[u,f]=C.useState({left:0,top:0}),p=C.useCallback(()=>{l(!0),typeof window<"u"&&(a.current=window.setTimeout(()=>{s(!1),l(!1)},t))},[l,s,t]);return C.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),m=window.document.querySelector("#add-to-cart--tooltip");if(d&&m){const{left:h,top:y}=Od(m,d,r??0);f({left:h,top:y}),l(!1)}},[r,i]),o.jsx(ac.Provider,{value:C.useMemo(()=>({...n,...u,handleClose:p,isLeaving:c,isOpen:i,setIsOpen:s,setIsLeaving:l}),[n,u,p,c,i,s,l]),children:e})},et=()=>{const e=C.useContext(ac);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},lc=C.createContext({}),Td=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const n=it(),{setRecentlyAdded:i}=_t(),s=C.useRef(""),a=qa(),{addNotification:c,removeNotification:l}=za(),{addCoupon:u,addItem:f,addSellerCode:p,addMarketingData:d,emptyCart:m,isOpen:h,removeItem:y,shipping:g,shippingUpdate:b,toggleServiceToProduct:j,updateItemQuantity:v}=n;C.useEffect(()=>{const R=Qn.get("lastMedias");if(n.id&&R&&s.current!==R){s.current=R;const F=new URLSearchParams(R),H=Ba(F);d(H)}},[n,d]);const A=C.useCallback(async(R,F)=>(F==="coupon"?u(R):p(R)).then(U=>{if(typeof U!="boolean"&&U instanceof Object){if(F==="seller"&&"value"in U){const{statusOk:K,value:W}=U,z=String(W??"").split(" - ");return nt((z==null?void 0:z[0])??"",R,!!K)}return nt(String(U.coupon),R,!0)}return nt("","")}).catch(()=>Promise.resolve({code:400})),[u,p]),S=C.useCallback((R,F,H)=>{const{id:U}=R;v(U,F,H)},[v]),P=C.useCallback((R,F,H=!1)=>{if(!R)return;const{id:U}=R,K=Jn(n.items,U);if(K!==-1&&!H){const W=Number(n.items[K].quantity),z=n.items[K]?W+1:1;S(R,z,F)}else f({id:U,quantity:(R==null?void 0:R.quantity)??1,seller:R.seller});h||i(W=>[...W,R])},[f,S,n.items,h,i]),x=C.useCallback((R,F)=>{if(!R||!Array.isArray(R))return;i(U=>[...U,...R]);const H=R.map(U=>{const{id:K,quantity:W,seller:z}=U,ne=Jn(n.items,K),w=ka(W??1,ne);return{id:K,quantity:w,seller:z}});f(H,F)},[f,n.items,i]),I=C.useCallback(async(R,F,H)=>R?y(R).then(()=>(c(F??`${t}`,H),nt(R,R))):Promise.resolve(nt("","Product id required")),[c,y]),B=C.useCallback(()=>{n.items.length>0&&m()},[m,n.items]),E=C.useCallback((R,F="BRA")=>g(R,F),[g]),O=C.useCallback(R=>{R&&b(R)},[b]),N=C.useCallback(async(R,F,H)=>{const U=n.items.findIndex(W=>W.id===R);return n.items[U]&&U>=0?j(F,U,H??!1):!1},[n.items,j]),$=C.useCallback(async(R,F)=>v(R,F).then(H=>{if(Array.isArray(H)){const U=H.find(K=>K.id===R);if(U&&(U==null?void 0:U.quantity)<F)return String(U.quantity)}return!1}),[v]);return o.jsx(lc.Provider,{value:C.useMemo(()=>({...r,addCouponSeller:A,addToCart:P,addItemsToCart:x,cartStore:n,notifications:a,clearCart:B,addNotification:c,isOpen:n.isOpen,removeNotification:l,removeToCart:I,setIsOpen:n.setIsOpen,shipping:E,shippingUpdateOption:O,toggleGiftItemCart:N,updateItemQuantity:$}),[r,A,P,x,a,B,c,n,l,I,E,O,N,$]),children:e})},qe=()=>{const e=C.useContext(lc);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},uc=C.createContext({}),Ro=({children:e,fetch:t})=>{const r=C.useRef(!0),[n,i]=C.useState(null),[s,a]=C.useState(!1);return C.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();i(u.data),r.current=!1}catch{r.current=!0,a(!0)}})()},[t]),o.jsx(uc.Provider,{value:C.useMemo(()=>({data:n,isLoading:r.current??!1,isError:s}),[n,s,r]),children:e})},wo=()=>{const e=C.useContext(uc);if(e===void 0)throw new Error("useProductsContext must be used within a useRootContext");return e},dc=C.createContext({}),fc=({children:e,sort:t,state:r,count:n,collectionId:i,CONSTANTS:s})=>{const a=C.useMemo(()=>{var c;return i?[{key:"productclusterids",value:i.toString()}]:(c=r.base)!=null&&c.length?r.base.slice(1).split("/").map((l,u)=>({key:`category-${u+1}`,value:l})):[]},[r.base,i]);return o.jsx(dc.Provider,{value:C.useMemo(()=>({state:{...r,facets:[...a,...r.facets??[]]},sort:t,count:n??s.ITEMS_PER_PAGE}),[a,n,t,r]),children:e})},Po=()=>{const e=C.useContext(dc);if(e===void 0)throw new Error("useSearchContext must be used within a SearchProvider");return e},Ke={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"},default_option:"score:desc"},Md={nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"0",count:0,total:0},kd="Imagem do produto",Jo=1,Ld="Sair",Dd=e=>e.exit,$d=({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"}],Bd=(e,t)=>{const r=(t??"").split("@")[0];return e?`Olá${r.length?", ":" "}${r}!`:"Olá!"},Fd=e=>"Seja bem vindo!",pc=C.createContext({}),qd=({children:e,searchParams:t,selectedFacets:r})=>{const{data:n,...i}=wo(),{router:s}=Ee(),a=C.useCallback((p,d)=>{if(d){if(p.key.toLocaleLowerCase()==="price"){const m=d.getAll("facets");d.delete("facets"),m.forEach(h=>{const[y]=h.split("/");y!==p.key&&d.append("facets",h)})}d.set("page","1"),d.append("facets",`${p.key}/${p.value}`),s.push(`?${d.toString()}`)}},[s]),c=C.useCallback(()=>{const p=new URLSearchParams;p.set("sort",Ke.default_option),p.set("page","1"),s.push(`?${p.toString()}`)},[s]),l=C.useCallback((p,d)=>{if(!d||!d.has&&!d.has("facets"))return;const m=d.getAll("facets");d.delete("facets"),d.set("page","1"),m.forEach(h=>{const[y,g]=h.split("/");(y!==p.key||g!==p.value)&&d.append("facets",h)}),s.push(`?${d.toString()}`)},[s]),u=C.useCallback(p=>{const d=new URLSearchParams(Me.convertSearchParams(t));for(const[,m]of d.entries()){const[h,y]=m.split("/");if(h===p.key&&y===p.value)return l(p,d)}return a(p,d)},[a,l,t]),f=C.useCallback(p=>{const d=new URLSearchParams(Me.convertSearchParams(t));d.set("sort",p.replace("_",":")),s.push(`?${d.toString()}`)},[s,t]);return o.jsx(pc.Provider,{value:C.useMemo(()=>({...i,breadcrumb:n&&"breadcrumb"in n?n==null?void 0:n.breadcrumb:[],deleteAllFacets:c,facets:n&&"facets"in n?n==null?void 0:n.facets:[],selectedFacets:r,onToggleFacet:u,onSort:f,searchParams:t}),[n,c,f,u,i,r,t]),children:e})},zd=({children:e,searchParams:t,forceUpdate:r})=>{const{state:n}=Po();return o.jsx(Ro,{fetch:()=>fetch("/api/search/facets",{method:"POST",body:JSON.stringify({...n,forceUpdate:r}),priority:"low"}),children:o.jsx(qd,{selectedFacets:(n==null?void 0:n.facets)??[],searchParams:t,children:e})})},Hd=()=>{const e=C.useContext(pc);if(e===void 0)throw new Error("useFacetsContext must be used within a FacetsProvider");return e},mc=C.createContext({}),Ud=({children:e})=>{const{data:t,...r}=wo(),[n,i]=C.useState(0),{sendDataLayerEvent:s}=ge();return C.useEffect(()=>{if(t&&"pagination"in t&&t.products.length>0){s({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:t.products}}});const a=t.pagination.count;a&&Number.isInteger(a)&&i(a)}},[t,s,i]),o.jsx(mc.Provider,{value:C.useMemo(()=>({...r,products:t&&"products"in t?t==null?void 0:t.products:[],pagination:t&&"pagination"in t?t==null?void 0:t.pagination:Md,total:n}),[t,r,n]),children:e})},Gd=({children:e,query:t,state:r,selectedFacets:n,forceUpdate:i})=>o.jsx(Ro,{fetch:()=>fetch("/api/search/product",{method:"POST",body:JSON.stringify({...r,query:t,forceUpdate:i,facets:n??[]})}),children:o.jsx(Ud,{state:r,children:e})}),Wd=()=>{const e=C.useContext(mc);if(e===void 0)throw new Error("useProductsContext must be used within a ProductsProvider");return e},hc=C.createContext({}),Vd=({children:e,term:t})=>{const[r,n]=C.useState([]),[i,s]=C.useState(!1);return C.useEffect(()=>{if(!t){n([]);return}(async()=>{s(!0);try{const c=await fetch("/api/search/suggestedTerms",{method:"POST",body:JSON.stringify({query:t,locale:"pt-BR"})}),{data:l}=await c.json();n((l==null?void 0:l.searches)||[])}catch(c){console.error("Erro ao buscar sugestões:",c)}})()},[t]),o.jsx(hc.Provider,{value:C.useMemo(()=>({suggestedTerms:r,loading:i,setLoading:s}),[r,i]),children:e})},Kd=({children:e,...t})=>o.jsx(Vd,{...t,children:e}),Xd=()=>{const e=C.useContext(hc);if(!e)throw new Error("useSuggestedTermsContext must be used within a SuggestedTermsProvider");return e},gc=C.createContext({searches:[],isLoading:!1,error:null}),Qd=({children:e})=>{const[t,r]=C.useState([]),[n,i]=C.useState(!0),[s,a]=C.useState(null);return C.useEffect(()=>{(async()=>{try{i(!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{i(!1)}})()},[]),o.jsx(gc.Provider,{value:C.useMemo(()=>({searches:t,isLoading:n,error:s}),[t,n,s]),children:e})},Yd=()=>{const e=C.useContext(gc);if(!e)throw new Error("useTopSearches must be used within a TopSearchesProvider");return e},yc=C.createContext({}),Zd=({children:e,slug:t,searchParams:r,collectionId:n,itemsPerPage:i=24})=>{const{pathname:s}=Ee(),[a,c]=C.useState(!1),l=C.useMemo(()=>{const f=new URL(s,"http://localhost"),p=Array.isArray(r==null?void 0:r.facets)?r.facets:[(r==null?void 0:r.facets)??""],d=(r==null?void 0:r.page)??"1",m=(r==null?void 0:r.sort)??(n?"":Ke.default_option);return f.searchParams.set("page",String(d)),f.searchParams.set("sort",String(m)),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",p.join(",")),f)},[n,s,r,t]),u=C.useMemo(()=>{if(Array.isArray(r==null?void 0:r.facets))return Me.parseSearchState(l,r.facets);const f=r!=null&&r.facets?[r==null?void 0:r.facets]:[];return Me.parseSearchState(l,f)},[l,r]);return o.jsx(yc.Provider,{value:C.useMemo(()=>({openFilters:a,setOpenFilters:c}),[a,c]),children:o.jsx(fc,{CONSTANTS:{ITEMS_PER_PAGE:i},state:C.useMemo(()=>({...u}),[u]),collectionId:n,children:e})})},Jd=()=>{const e=C.useContext(yc);if(e===void 0)throw new Error("usePLPContext must be used within a PLPProvider");return e},Xt=(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((i,s)=>Xt(i,t[s]));if(Array.isArray(t))return!1;const r=Object.keys(e),n=Object.keys(t);return r.length!==n.length?!1:r.every(i=>Object.prototype.hasOwnProperty.call(t,i)&&Xt(e[i],t[i]))},_c=(e,t,r="page")=>Object.keys(t).some(n=>n===r?!1:!Xt(t[n],e[n])),to=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},vc=()=>({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}}}),bc=(e,t,r,n=24)=>{const i=new Set,s=[];if(!Array.isArray(e)||e.length===0)return{taken:i,placedBanners:s};const a=t*n*r;for(const c of e){let l=Number(c.position_grid),u=!1;for(;l<a;){const f=l%r;if(f+c.columns>r){l+=r-f;continue}if(!Array.from({length:c.columns}).some((m,h)=>i.has(l+h))){for(let m=0;m<c.columns;m++)i.add(l+m);s.push(l),u=!0;break}l++}u||console.info(`[PLP INFINITE FAILED BANNER POSITION]: pos=${c.position_grid}, cols=${c.columns}`)}return{taken:i,placedBanners:s}},ro=(e,t,r,n=24)=>{const{placedBanners:i,taken:s}=bc(e??[],t,r),a=[];let c=0;try{for(;a.length<t*n;)s.has(c)||a.push(c),c++;return{banners:i,products:a}}catch(l){console.info(`[PLP INFINITE FAILED TO GEN POSITIONS]: page=${t}`,l)}return{banners:[],products:a}},Vt=(e,t,r=24)=>Array.from({length:e},(n,i)=>{const s=i+1;return{loading:e===s,page:s,pagination:t!=null&&t.products.length&&e===s?t==null?void 0:t.pagination:Io(),products:t!=null&&t.products.length&&e===s?t==null?void 0:t.products:Array.from({length:r},()=>vc())}}),xc=(e,t)=>[...e,{loading:!1,page:t,pagination:Io(),products:[]}],Io=()=>({nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"1",count:1,total:1}),ef=(e,t,r,n,i)=>{const s=e[e.length-1],a=(s==null?void 0:s.products.length)??i,c=(e.length-1)*i+a-1,l=r[c];return t.filter((u,f)=>{const p=n[f];return p<=l||i>a&&p>l})},Cc=(e,t)=>{const r=new Map;for(const i of e){const s=Math.floor(i/t);r.has(s)||r.set(s,[]),r.get(s).push(i)}const n=[];for(const[,i]of r){const s=i[Math.floor(Math.random()*i.length)];n.push(s)}return n},tf=(e,t)=>{if(!e)return[];const r=e.map((n,i)=>n.video&&n.video!==""?i:null).filter(n=>n);return Cc(r,t)},rf=Object.freeze(Object.defineProperty({__proto__:null,createPage:xc,createPages:Vt,createPagination:Io,createProduct:vc,deepEqual:Xt,fetchPage:to,getBanners:bc,getPositions:ro,getProductsWithVideo:tf,getRandomVideoPerRow:Cc,getVisibleBanners:ef,hasStateChangedExceptPage:_c},Symbol.toStringTag,{value:"Module"})),nf=50,of=ct.create((e,t)=>{const r=a=>Math.min(a,nf),n=async(a,c)=>{const l=r(a.page);try{const u=await to({...a,page:l});i(l,f=>c?c(f,u):{...f,...u})}catch(u){console.error(`[PDC - SCROLL INFINITE FAILED TO FETCH PAGE ${l}]: ${u}`),i(l,f=>({...f,loading:!1}))}},i=(a,c)=>{e({load:!0,pages:t().pages.map(l=>l.page===a?c(l):l)})},s=async(a,c)=>{await n(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 p,d,m;const f=r(Number(a==null?void 0:a.page));e({...c,pages:Vt(f,void 0,u)});try{const h=await to({...a,page:f});if(h){if(!h.products.length&&((p=h==null?void 0:h.pagination)==null?void 0:p.total)<f){s({...a,page:(d=h==null?void 0:h.pagination)==null?void 0:d.total},l),e({pages:Vt((m=h==null?void 0:h.pagination)==null?void 0:m.total)});return}typeof l=="function"&&l(h),e({load:!0,pages:Vt(f,h),total:Number(h.pagination.count)})}}catch(h){console.error(`[PDC - SCROLL INFINITE TO CREATE PAGES]: page ${f} ${h}`)}},addPage:(a,c,l)=>{const{pages:u}=t(),f=r(a==null?void 0:a.page);u.some(p=>p.page===f)||(e({...c,pages:xc(u,f)}),s(a,l))},updateProducts:(a,c)=>{const l=t().pages.find(u=>u.page===r(a==null?void 0:a.page));l!=null&&l.loading||s(a,c)}}}),sf=(e,t,r,n=0)=>{if(!e.length)return[];let i=0;const s=[];for(let a=0;a<e.length;a+=r){const c=e.slice(a,a+r),l=c.findIndex(u=>{var f;return(f=u.node)==null?void 0:f.video});for(let u=0;u<c.length;u++){const f=a+u,p=n+f,d=t.find(h=>h.position_grid===p+1),m=p+i+1;d&&(i+=d.columns),s.push({position:m,canPlayVideo:u===l})}}return s},af=(e,t,r)=>{const n=(t-1)*r,i=t*r;return e>=n&&e<=i},Sc=e=>{var t;return(t=e==null?void 0:e.map(r=>({disable:xo(r),size:bo(r),skuID:"sku"in r&&r.sku})))==null?void 0:t.filter(r=>r.disable)},cf=Object.freeze(Object.defineProperty({__proto__:null,createGridPosAndVideo:sf,getSkusNotify:Sc,isPositionInCurrentPage:af},Symbol.toStringTag,{value:"Module"})),jc=C.createContext({}),lf=({banners:e,children:t,itemsPerPage:r=24,searchParams:n,Notification:i})=>{const{router:s}=Ee(),{sendDataLayerEvent:a}=ge(),{isMobile:c}=Se(),{state:l}=Po(),{addPage:u,createPages:f,updateProducts:p,...d}=of(),m=c?8:16,h=c?2:4,y=C.useRef(!1),g=C.useRef(l),[b,j]=C.useState(!1),[v,A]=C.useState(null),[S,P]=C.useState([]),x=C.useCallback(N=>{N&&"pagination"in N&&a({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:N.products}}})},[a]),I=C.useCallback(N=>{if(N.pagination.nextPage===!0){const $=N.page+1,R=ro(e,$,h,r);u({...l,page:$},R,x)}},[u,e,x,h,r,l]),B=C.useCallback(N=>{N.loading===!1&&p({...l,page:N.page},x)},[x,p,l]),E=C.useCallback(N=>{const $=new URLSearchParams(n);N.page!==Number($.get("page")??1)&&($.set("page",String(N.page)),s.replace(`?${$.toString()}`,{scroll:!1}))},[s,n]),O=C.useCallback((N,$)=>{const R=$?Sc([$]):null;P(N),A(R!=null&&R.length?R[0]:null),j(!0)},[]);return C.useEffect(()=>{const N=!y.current,$=_c(g.current,l),R=ro(e,l.page,h);N?f(l,R,x,r):$&&(f(l,R,x,r),g.current=l),y.current=!0},[e,f,x,h,r,l]),o.jsxs(jc.Provider,{value:C.useMemo(()=>({...d,addPage:u,addNewPage:I,createPages:f,gap:m,columns:h,handleNotify:O,updatePage:B,updateProducts:p,updateParamPage:E}),[u,I,f,O,m,h,d,B,p,E]),children:[t,o.jsx(i,{notify:b,sku:v,skus:S,setSku:A,setNotify:j})]})},uf=()=>{const e=C.useContext(jc);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 n of r){const[i,s]=n.trim().split("=");if(i===e)return s}}function No(e,t,r={}){const i={...{path:"/",expires:new Date(Date.now()+36e5)},...r};let s=`${encodeURIComponent(e)}=${encodeURIComponent(t??"")}`;for(const a in i)i[a]!==void 0&&(s+=`; ${a}`,a==="expires"?s+=`=${i[a].toUTCString()}`:typeof i[a]=="boolean"?s+=`; ${i[a]?"true":"false"}`:s+=`=${i[a]}`);window.document.cookie=s}const df=()=>{const{sendDataLayerEvent:e}=ge(),{user:t}=Oo(),{cartStore:r}=qe();return C.useEffect(()=>{if(!t)return;(async()=>{const{userId:i,email:s,firstName:a,lastName:c,phone:l,homePhone:u,postalCode:f,street:p,number:d,city:m,gender:h}=t,y=new TextEncoder().encode(i),g=await crypto.subtle.digest("SHA-256",y),j=Array.from(new Uint8Array(g)).map(v=>v.toString(16).padStart(2,"0")).join("");e({functionKey:"readyEvents",data:{readyData:{user_id:j,email:s,first_name:a,last_name:c,phone:l||u,zip:f,street:p,street_number:d,city:m,gender:h,orderform_id:r==null?void 0:r.id}}})})()},[t,r.id]),null},Ec=C.createContext({amount:null,boxes:null,toExpire:null,loading:!0,logout:()=>null,getCurrentCredits:()=>({credits:0,cashback:0})}),ff=({children:e,AUTH_TOKEN_COOKIE:t})=>{const[r,n]=C.useState({amount:null,boxes:null,toExpire:null,loading:!0}),i=C.useCallback(async()=>{try{await fetch("/api/user",{priority:"low"}).then(c=>c.json()).then(c=>{const{userCredits:l,...u}=c;n({amount:l==null?void 0:l.amount,boxes:l==null?void 0:l.boxes,toExpire:l==null?void 0:l.toExpire,user:u,loading:!1})})}catch(c){console.error("my credits request",c),n({...r,loading:!1})}},[n]),s=C.useCallback(()=>{No(t),i()},[i]),a=C.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 C.useEffect(()=>{i()},[i]),o.jsxs(Ec.Provider,{value:C.useMemo(()=>({...r,getCurrentCredits:a,logout:s}),[r,a,s]),children:[o.jsx(df,{}),e]})},Oo=()=>{const e=C.useContext(Ec);if(e===void 0)throw new Error("useContext(SessionContext) must be used within a SessionProvider");return e},Rc=C.createContext({gridBanners:void 0,banners:[]}),pf=({children:e,data:t,device:r,SectionZone:n,COMMON_PAGE_COLUMN_GAP_PDC:i})=>{const{isMobile:s}=Se(),a=(t==null?void 0:t.sections.filter(p=>p.name!=="List Product Banners"))??[],c=a.slice(0,Jo),l=a.slice(Jo,a.length),u=t==null?void 0:t.sections.find(p=>p.name==="List Product Banners"),f=C.useMemo(()=>{var p,d;return((d=(p=u==null?void 0:u.data)==null?void 0:p.banners)==null?void 0:d.map(m=>({...m.banner,columns:m.bannerWidth,position_grid:m.bannerPosition})))??[]},[u]);return s&&r==="mobile"||!s&&r==="desktop"?o.jsxs(Rc.Provider,{value:{gridBanners:u,banners:f},children:[o.jsx(n,{data:c??[]}),o.jsxs(_.Utils.Column,{gap:i,className:_.helpers.classNameConcat("utils-column-modifier"),children:[e,o.jsx(n,{data:l??[]})]})]}):o.jsx(o.Fragment,{})},mf=()=>{const e=C.useContext(Rc);return e===void 0&&console.error("Needs PLPContentContext on parent component"),e},wc=C.createContext({}),Pc=({children:e,filters:t,PLP_FILTERS:r,...n})=>{var s;const i=(s=t.facets)==null?void 0:s.filter(a=>r.find(c=>c.key===a.key));return o.jsx(wc.Provider,{value:C.useMemo(()=>({...n,filters:{...t,facets:i}}),[t,i,n]),children:e})},ut=()=>{const e=C.useContext(wc);if(e===void 0)throw new Error("useFilterContext must be used within a FilterProvider");return e},hf={contexts:{addToCart:{hook:et,provider:cc},cart:{hook:qe,provider:Td},cms:{FlagsAndTags:{context:go,hook:yo,provider:Fu}},events:{hook:ge,provider:Ju},global:{hook:Se,provider:pd,mediator:Ga},header:{hook:be,provider:Id},menuMobile:{hook:xt,provider:sc},next:{hook:Ee,provider:md},pdp:{provider:qu,hook:zu},plp:{provider:Zd,hook:Jd},plpFilter:{hook:ut,provider:Pc},PLPContent:{provider:pf,hook:mf},plpInfinite:{provider:lf,hook:uf},pdpdata:{hook:So,provider:ed},searchFacets:{hook:Hd,provider:zd},searchProducts:{hook:Wd,provider:Gd},searchRoot:{hook:wo,provider:Ro},searchSearch:{hook:Po,provider:fc},searchSuggestedTerms:{hook:Xd,provider:Kd},searchTopSearchs:{hook:Yd,provider:Qd},session:{hook:Oo,provider:ff},ui:{hook:_t,provider:Ua}},hooks:{useBackPDC:ua},stores:{cart:dd,header:yd,pdp:Pd}},gf=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function yf(e,t=1e3){let r=!1;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>{r=!1},t))}}function _f(e,t=1e3){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}const Ic=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,mt=(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),vf=e=>{const t=Bu.decodeJwt(e??"");return{email:t.sub,userId:t.userId}},bf=["name","email","phone","date","cpf","cep"],ei={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}$/},xf=({type:e,input:t,required:r=!1})=>{if(typeof t!="string"||!r&&t===""||!ei[e])return!0;const n=t.trim();return ei[e].test(n)},Cf=e=>{const t=/\/(\d+)-\d+-\d+\/(.+?)\./,r=typeof e=="string"?e.match(t):null;return r?r[2].replace(/-/g," "):kd},Sf=Object.freeze(Object.defineProperty({__proto__:null,FieldTypes:bf,debounce:_f,getAltTextFromUrl:Cf,getAuthenticatedUser:vf,getCookie:Ac,getDaysHoursMinutesSeconds:mt,getMilliSeconds:Ic,removeAccentsAndReplaceSpaces:gf,setCookie:No,throttle:yf,validateInput:xf},Symbol.toStringTag,{value:"Module"})),jf={cart:cd,events:Zu,plp:rf,product:Wu,utils:Sf},To={helpers:jf},Ne={"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"},Nc=({brand:e,className:t,name:r,...n})=>o.jsxs("div",{...n,className:_.helpers.classNameConcat(Ne["add-to-cart--card--name"],t),children:[o.jsx(_.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:o.jsx("p",{className:"typography-style-body-md",children:r})})})]});Nc.displayName="AddToCart.Card.Name";const Oc=({className:e,listPrice:t,price:r,quantity:n,productId:i,...s})=>{const a=Ie(r/100),c=Ie(t/100);return o.jsx("div",{...s,className:_.helpers.classNameConcat(Ne["add-to-cart--card--price-quantity"],e),children:o.jsx(_.ProductInfo.Root,{size:"small",layout:"vertical",children:o.jsx(_.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:o.jsx(_.ProductInfo.ValuesWrapper,{children:r!==t?o.jsxs(o.Fragment,{children:[o.jsx(_.ProductInfo.Price,{label:"originalPrice",value:a,size:"small"},"price-list"),o.jsx(_.ProductInfo.Price,{label:"discountPrice",value:c,size:"small"},"price-low")]}):o.jsx(_.ProductInfo.Price,{label:"defaultPrice",value:c,size:"small"},"price-low")})})})})};Oc.displayName="AddToCart.Card.PriceQuantity";const Af="_skeleton_12b79_1",Ef={skeleton:Af},Rf=({style:e})=>o.jsx("div",{style:e,className:Ef.skeleton}),wf="_image_lypfr_1",Pf={image:wf},If=({alt:e,className:t,objectFit:r,...n})=>{const{nextimage:i}=Ee();return o.jsx(i,{quality:90,...n,alt:e??"",className:_.helpers.classNameConcat(Pf.image,t),"data-object-fit":r??"cover"})},Nf=({videoRef:e,...t})=>o.jsx("video",{...t,ref:e,children:o.jsx("track",{kind:"captions"})}),Be={Image:If,Video:Nf},Tc=({className:e,productGroupID:t,size:r,texture:n,...i})=>{const{CONSTANTS:{TEXTURE_IMAGE:s,TOGGLE_STYLE_MODIFIER:a}}=et(),[c,l]=C.useState(n??"");return C.useEffect(()=>{c||fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[t]})}).then(u=>u.json()).then(u=>{const f=u.data[0].items[0];if(f){const p=f.images.find(d=>s.includes(d.imageLabel));p!=null&&p.imageUrl?l(p.imageUrl):l(f.images[0].imageUrl)}}).catch(u=>{console.error(u)})},[c,t]),o.jsxs("div",{...i,className:_.helpers.classNameConcat(Ne["add-to-cart--card--style-size"],e),children:[o.jsx(_.ToggleStyle.Wrapper,{size:"x-small",style:a,children:o.jsx(_.ToggleStyle.Texture,{children:c?o.jsx(Be.Image,{alt:"",src:c??"",width:164,height:164,style:a}):o.jsx(Rf,{})})}),o.jsx(_.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),r&&o.jsxs(_.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[o.jsx(_.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),o.jsx(_.ToggleSize.Text,{children:r})]})]})};Tc.displayName="AddToCart.Card.StyleSize";const{helpers:Of}=To,Mc=({className:e,item:t,texture:r,...n})=>{const{itemOffered:{name:i,brand:s,skuName:a,isVariationOf:{productGroupID:c}},quantity:l,price:u,sellingPrice:f}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:p}}=et(),{size:d}=Of.product.getColorAndSizeFromSkuName(a??i,p);return o.jsxs("div",{...n,className:_.helpers.classNameConcat(Ne["add-to-cart--card--content"],e),children:[o.jsx(Nc,{brand:s.name,name:i}),o.jsx(Oc,{price:u,listPrice:f,quantity:l,productId:t.id}),o.jsx(Tc,{size:d,texture:r,productGroupID:c})]})};Mc.displayName="AddToCart.Card.Content";const kc=({image:e,thumbnail:t=!1})=>o.jsx(Be.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});kc.displayName="AddToCart.Card";const Lc=({className:e,item:t,texture:r,thumbnail:n,...i})=>{const{itemOffered:{image:[s]}}=t,a=ha(s.url,{width:200,height:300});return o.jsxs("div",{...i,className:_.helpers.classNameConcat(Ne["add-to-cart--card"],e),children:[o.jsx(kc,{image:{alternateName:s.alternateName||"Produto",url:a||""},thumbnail:n}),!n&&o.jsx(Mc,{item:t,texture:r})]})};Lc.displayName="AddToCart.Card";const Dc=({className:e,children:t,title:r,...n})=>o.jsxs("div",{...n,className:_.helpers.classNameConcat(Ne["add-to-cart--content"],e),children:[o.jsx("div",{className:Ne["add-to-cart--content--title"],children:r&&o.jsx("h2",{children:r})}),t,o.jsx(Qe.Footer,{})]});Dc.displayName="AddToCart.Layout.Content";const $c=({className:e,...t})=>{var m,h;const{isMobile:r,handleClose:n,CONSTANTS:{ADD_TO_CART:i}}=et(),{cartStore:{totalizers:s},setIsOpen:a}=qe(),c=(m=s.find(y=>y.id==="Discounts"))==null?void 0:m.value,l=((h=s.find(y=>y.id==="Items"))==null?void 0:h.value)??0,u=s.find(y=>y.id==="Shipping"),p=(l-Math.abs(c??0)+((u==null?void 0:u.value)??0))/100,d=Ie(p??0);return o.jsxs("div",{...t,className:_.helpers.classNameConcat(Ne["add-to-cart--footer"],e),children:[o.jsxs("div",{className:Ne["add-to-cart--footer--total"],children:[o.jsx("span",{children:"Subtotal:"}),o.jsx("span",{children:d})]}),o.jsx(_.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>a(!0),children:i.footer.bag}),r?o.jsx(_.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:i.footer.keep_buying}):o.jsx(_.Button,{onClick:()=>n(),size:"medium",variant:"tertiary",children:i.footer.keep_buying})]})};$c.displayName="AddToCart.Layout.Footer";const Bc=({children:e,className:t,thumbnail:r=!1,...n})=>{const{cartStore:{options:i}}=qe(),{recentlyAddedProducts:s}=_t(),a=s.length>3?4:s.length;return o.jsxs("div",{...n,className:Ne["add-to-cart--items"],"data-thumbnail":r,children:[Array.isArray(s)&&s.filter((c,l)=>l<a).map(c=>{var u;const l=(u=i==null?void 0:i.find(f=>f.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:u.texture;return o.jsx(Qe.Card,{item:c,thumbnail:r,texture:l},c.itemOffered.sku)}),e]})};Bc.displayName="AddToCart.Layout.Items";const Fc=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:n}=et(),{isMobile:i}=Se();return o.jsxs(_.Modal.Root,{"data-modal":"add-to-cart--modal",className:Ne["add-to-cart__modal"],isMobile:i??!1,isOpen:r,setIsOpen:n,variant:"sideBottom",style:{zIndex:t.modal},children:[o.jsx(_.Modal.Header,{navigation:"top",children:o.jsx(_.Modal.Controls,{navigation:"top",isMobile:!0})}),o.jsx(_.Modal.Body,{children:e})]})};Fc.displayName="AddToCart.Modal";const Tf=({children:e})=>{const{count:t,handleClose:r,setIsOpen:n}=et(),i=C.useRef(t);return C.useEffect(()=>{t>i.current&&n(!0),t<i.current&&i.current>=1&&r(),i.current=t},[t,r,n]),o.jsx(o.Fragment,{children:e})},qc=({children:e,component:t,CONSTANTS:r,...n})=>{const{recentlyAddedProducts:i}=_t(),{isMobile:s}=Se(),a=i.length>3?4:i.length;return o.jsx(cc,{...n,count:a,isMobile:s,CONSTANTS:r,children:o.jsx(Tf,{children:s?o.jsxs(o.Fragment,{children:[o.jsx(Qe.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):o.jsx(Qe.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};qc.displayName="AddToCart.Root";const zc=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:i,left:s,isLeaving:a,target:c,isOpen:l,top:u}=et();return o.jsx(_.Tooltip.Root,{arrow:"top-right",component:o.jsx("div",{...n,ref:i,children:t}),id:"add-to-cart--tooltip",className:Ne["add-to-cart--tooltip"],style:{zIndex:r.modal},isLeaving:a,isOpen:l,left:s,size:"medium",position:"top",top:u,children:o.jsx("div",{className:Ne["add-to-cart--tooltip"],ref:c,children:e})})};zc.displayName="AddToCart.Tooltip";const Qe={Card:Lc,Content:Dc,Footer:$c,Items:Bc,Modal:Fc,Root:qc,Tooltip:zc},Mo=({title:e,...t})=>{const{recentlyAddedProducts:r}=_t(),{isMobile:n}=Se(),i=r.length>3?4:r.length,s=r.length>(i??1),a=r.length>1;return o.jsx(Qe.Root,{isMobile:n,count:r.length,component:o.jsx(Qe.Content,{title:e,children:o.jsx(Qe.Items,{thumbnail:a,children:s&&o.jsx(_.Badge.Count,{count:r.length-i,size:"medium",variant:"secondary"})})}),...t})};Mo.displayName="AddToCart";const ti={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},Mf=({children:e,className:t,adornment:r,iconPosition:n,scrollToOptions:i,style:s,...a})=>{const c={top:(i==null?void 0:i.top)??0,left:(i==null?void 0:i.left)??0,behavior:(i==null?void 0:i.behavior)??"smooth"},u=n&&r?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[n]}:{},f=()=>{window&&window.document.body.scrollTo({...c})};return o.jsx(_.Card,{...a,shadow:!0,padding:"small",className:_.helpers.classNameConcat(ti["card-modifier"],t),style:{...s,padding:0},children:o.jsxs("button",{className:ti["backtotop-btn"],onClick:f,style:{...u},"data-orientation":n,children:[r,e]})})},kf="_container_1sy8s_16",Ue={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:kf,"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"},Lf=({selectedProducts:e,handleAddAllToCart:t,CONSTANTS:r})=>{const n=Object.values(e.products).length;return o.jsxs("div",{className:Ue["add-itens-to-cart-container"],children:[o.jsxs("div",{className:Ue["add-itens-to-cart-container-values"],children:[o.jsx("div",{className:Ue["add-itens-to-cart-qty-products"],children:o.jsx("span",{children:n===0?r.BUY_PACKAGE.group_cart.select_all_product:`${n} ${n===1?r.BUY_PACKAGE.group_cart.select_product:r.BUY_PACKAGE.group_cart.select_product+"s"}`})}),o.jsx("div",{className:Ue["add-itens-to-cart-total"],children:o.jsx("span",{children:_o({valueInCents:e.totalPrice*100,hasFree:!1,freeTaxMessage:r.FREIGHT_CALCULATION.messages.free_tax})})})]}),o.jsx(_.Button,{onClick:t,className:Ue["add-button"],size:"large",disabled:n===0,variant:"primary",children:r.BUY_BUTTON_LABELS.add_to_cart})]})},Df=e=>e.reduce((t,r)=>{var i;const n=t.find(s=>s.node.id===r.node.id);if(!n)return[...t,r];if((i=n==null?void 0:n.node.isVariantOf)!=null&&i.hasVariant){const s=n.node.isVariantOf.hasVariant,a=r.node.isVariantOf.hasVariant;s&&a&&(n.node.isVariantOf.hasVariant=[...s,...a])}return t},[]),$f=({selectedProduct:e,productId:t,prevState:r,mainSellerId:n})=>{const{products:i,totalPrice:s}=r;try{if(!e){const{[t]:u,...f}=i;return{...r,totalPrice:s-u.price,products:f}}const a=Co(e.offers.offers,n);if(!a)return r;const c=a.seller.identifier,l=a.price;if(i[t]){const{price:u}=i[t];return i[t]={...i[t],price:l,id:e.sku,seller:c},{totalPrice:s+l-u,products:{...i}}}return{totalPrice:s+l,products:{...i,[t]:{id:e.sku,price:l,seller:c,productId:t}}}}catch(a){return console.error("Error handling SKU selection:",a),r}},Hc=C.createContext({}),Bf=({children:e,item:t,index:r,shelfTitle:n,...i})=>{const[s,a]=C.useState(null),c=C.useRef(null),l=C.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:u,itemListRef:f}=ge(),p=y=>{u({functionKey:"productEvents",data:{commonData:{...t,availableSizes:l.current.availableSkus,...l.current.priceInfo},customData:{index:r+1},event:y}})},d=()=>{p("add_to_wishlist")},m=()=>{u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...l.current.priceInfo}]},supportData:{selectedSku:s,selectedSkus:[s]},customData:{index:r}}})},h=()=>{n&&(f.current={item_list_name:n}),p("select_item")};return o.jsx(Hc.Provider,{value:C.useMemo(()=>({...i,index:r,item:t,element:c,selectedSku:s,setSelectedSku:a,eventDataRef:l,sendAddToWishlistEvent:d,sendSelectItemEvent:h,sendAddToCartEvent:m}),[i,t,c,s]),children:e})},De=()=>{const e=C.useContext(Hc);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},Ae={"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"},Uc=({callback:e,children:t,className:r,data:n,isKit:i,...s})=>{const{item:{availability:{status:a},image:c}}=De();return a?o.jsxs("div",{...s,className:_.helpers.classNameConcat(Ae["product-card--actions"],r),children:[o.jsxs(ye.Wrapper,{type:"actions--group",children:[o.jsx(ye.Price,{}),o.jsx("div",{className:Ae["product-card--actions--selectors"],children:!i&&o.jsx(ye.StyleSelector,{data:n,images:c,callback:e})})]}),t]}):null};Uc.displayName="ProductCard.Actions";const Gc=({className:e,isKit:t,...r})=>{const{addToCart:n}=qe(),{isMobile:i=!1,selectedSku:s,outStock:a,item:c,sendAddToCartEvent:l,CONSTANTS:u}=De(),f=()=>{var m;if(!s)return;const d=Co(s.offers.offers,u.StoreConfig_MainSellerId);d&&n({id:s==null?void 0:s.sku,quantity:1,seller:d.seller.identifier},{id:c.id,texture:(m=c==null?void 0:c.image.find(h=>u.TEXTURE_IMAGE.includes(h.alternateName)))==null?void 0:m.url}),l()},p=s?u.BUY_BUTTON_LABELS.add_to_cart:u.BUY_BUTTON_LABELS.select_size;return o.jsx(_.Button,{...r,className:_.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!s&&!a,size:i?"medium":"large",variant:a?"secondary":"primary",onClick:a?r.onClick:f,children:a?"Avise-me quando chegar":p})};Gc.displayName="ProductCard.Actions.BuyButton";const Wc=({product:e,tag:t,size:r="small"})=>{const n=e.offers.offers[0],{CONSTANTS:i,WishListToggle:s}=De();return o.jsxs(ye.Wrapper,{type:"header",style:{zIndex:i.Z_INDEX_WAR.product_card_header},children:[t?o.jsx(_.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?o.jsx(_.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,i.PRODUCT_CARD_TOP_WISHLIST_TOGGLE&&o.jsx(s,{product:e,priceInfo:{price:n.price,listPrice:n.listPrice},variant:"card"})]})};Wc.displayName="ProductCard.Actions.Header";var Vc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function er(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ff(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?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(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var no={exports:{}},Pe={};Pe._=Pe._interop_require_default=qf;function qf(e){return e&&e.__esModule?e:{default:e}}var It={exports:{}},ur={},ri;function Kc(){return ri||(ri=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 i},assign:function(){return s}});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 n(a){return typeof a=="string"||typeof a=="number"&&!isNaN(a)||typeof a=="boolean"?String(a):""}function i(a){const c=new URLSearchParams;return Object.entries(a).forEach(l=>{let[u,f]=l;Array.isArray(f)?f.forEach(p=>c.append(u,n(p))):c.set(u,n(f))}),c}function s(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(f=>{Array.from(f.keys()).forEach(p=>a.delete(p)),f.forEach((p,d)=>a.append(d,p))}),a}}(ur)),ur}var dr={},at={};function Xc(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Xc=function(n){return n?r:t})(e)}at._=at._interop_require_wildcard=zf;function zf(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Xc(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}var ni;function Qc(){return ni||(ni=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,u){for(var f in u)Object.defineProperty(l,f,{enumerable:!0,get:u[f]})}t(e,{formatUrl:function(){return s},urlObjectKeys:function(){return a},formatWithValidation:function(){return c}});const n=at._(Kc()),i=/https?|ftp|gopher|file/;function s(l){let{auth:u,hostname:f}=l,p=l.protocol||"",d=l.pathname||"",m=l.hash||"",h=l.query||"",y=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?y=u+l.host:f&&(y=u+(~f.indexOf(":")?"["+f+"]":f),l.port&&(y+=":"+l.port)),h&&typeof h=="object"&&(h=String(n.urlQueryToSearchParams(h)));let g=l.search||h&&"?"+h||"";return p&&!p.endsWith(":")&&(p+=":"),l.slashes||(!p||i.test(p))&&y!==!1?(y="//"+(y||""),d&&d[0]!=="/"&&(d="/"+d)):y||(y=""),m&&m[0]!=="#"&&(m="#"+m),g&&g[0]!=="?"&&(g="?"+g),d=d.replace(/[?#]/g,encodeURIComponent),g=g.replace("#","%23"),""+p+y+d+g+m}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)}),s(l)}}(dr)),dr}var fr={},oi;function Hf(){return oi||(oi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(r,n){const i={};return Object.keys(r).forEach(s=>{n.includes(s)||(i[s]=r[s])}),i}}(fr)),fr}var pr={},ii;function tr(){return ii||(ii=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(A,S){for(var P in S)Object.defineProperty(A,P,{enumerable:!0,get:S[P]})}t(e,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return s},getLocationOrigin:function(){return a},getURL:function(){return c},getDisplayName:function(){return l},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return f},loadGetInitialProps:function(){return p},SP:function(){return d},ST:function(){return m},DecodeError:function(){return h},NormalizeError:function(){return y},PageNotFoundError:function(){return g},MissingStaticPage:function(){return b},MiddlewareNotFoundError:function(){return j},stringifyError:function(){return v}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(A){let S=!1,P;return function(){for(var x=arguments.length,I=new Array(x),B=0;B<x;B++)I[B]=arguments[B];return S||(S=!0,P=A(...I)),P}}const i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=A=>i.test(A);function a(){const{protocol:A,hostname:S,port:P}=window.location;return A+"//"+S+(P?":"+P:"")}function c(){const{href:A}=window.location,S=a();return A.substring(S.length)}function l(A){return typeof A=="string"?A:A.displayName||A.name||"Unknown"}function u(A){return A.finished||A.headersSent}function f(A){const S=A.split("?");return S[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(S[1]?"?"+S.slice(1).join("?"):"")}async function p(A,S){if(process.env.NODE_ENV!=="production"){var P;if((P=A.prototype)!=null&&P.getInitialProps){const B='"'+l(A)+'.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(B)}}const x=S.res||S.ctx&&S.ctx.res;if(!A.getInitialProps)return S.ctx&&S.Component?{pageProps:await p(S.Component,S.ctx)}:{};const I=await A.getInitialProps(S);if(x&&u(x))return I;if(!I){const B='"'+l(A)+'.getInitialProps()" should resolve to an object. But found "'+I+'" instead.';throw new Error(B)}return process.env.NODE_ENV!=="production"&&Object.keys(I).length===0&&!S.ctx&&console.warn(""+l(A)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),I}const d=typeof performance<"u",m=d&&["mark","measure","getEntriesByName"].every(A=>typeof performance[A]=="function");class h extends Error{}class y extends Error{}class g extends Error{constructor(S){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+S}}class b extends Error{constructor(S,P){super(),this.message="Failed to load static file for page: "+S+" "+P}}class j extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(A){return JSON.stringify({message:A.message,stack:A.stack})}}(pr)),pr}var Nt={exports:{}},mr={},si;function Yc(){return si||(si=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(/\/$/,"")||"/"}}(mr)),mr}var hr={},ai;function ko(){return ai||(ai=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(r){const n=r.indexOf("#"),i=r.indexOf("?"),s=i>-1&&(n<0||i<n);return s||n>-1?{pathname:r.substring(0,s?i:n),query:s?r.substring(i,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}}(hr)),hr}var ci;function rr(){return ci||(ci=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return i}});const r=Yc(),n=ko(),i=s=>{if(!s.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return s;const{pathname:a,query:c,hash:l}=(0,n.parsePath)(s);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)}(Nt,Nt.exports)),Nt.exports}var gr={},Ot={exports:{}},yr={},li;function Zc(){return li||(li=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=ko();function r(n,i){if(typeof n!="string")return!1;const{pathname:s}=(0,t.parsePath)(n);return s===i||s.startsWith(i+"/")}}(yr)),yr}var ui;function Uf(){return ui||(ui=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return i}});const r=Zc(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function i(s){return(0,r.pathHasPrefix)(s,n)}(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)}(Ot,Ot.exports)),Ot.exports}var di;function Jc(){return di||(di=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=tr(),r=Uf();function n(i){if(!(0,t.isAbsoluteUrl)(i))return!0;try{const s=(0,t.getLocationOrigin)(),a=new URL(i,s);return a.origin===s&&(0,r.hasBasePath)(a.pathname)}catch{return!1}}}(gr)),gr}var _r={},vr={},fi;function Gf(){return fi||(fi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class t{insert(i){this._insert(i.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(i){i===void 0&&(i="/");const s=[...this.children.keys()].sort();this.slugName!==null&&s.splice(s.indexOf("[]"),1),this.restSlugName!==null&&s.splice(s.indexOf("[...]"),1),this.optionalRestSlugName!==null&&s.splice(s.indexOf("[[...]]"),1);const a=s.map(c=>this.children.get(c)._smoosh(""+i+c+"/")).reduce((c,l)=>[...c,...l],[]);if(this.slugName!==null&&a.push(...this.children.get("[]")._smoosh(i+"["+this.slugName+"]/")),!this.placeholder){const c=i==="/"?"/":i.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(i+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&a.push(...this.children.get("[[...]]")._smoosh(i+"[[..."+this.optionalRestSlugName+"]]/")),a}_insert(i,s,a){if(i.length===0){this.placeholder=!1;return}if(a)throw new Error("Catch-all must be the last part of the URL.");let c=i[0];if(c.startsWith("[")&&c.endsWith("]")){let f=function(p,d){if(p!==null&&p!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+p+"' !== '"+d+"').");s.forEach(m=>{if(m===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(m.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+m+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),s.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 "'+i[0]+'" ).');f(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 "'+i[0]+'").');f(this.restSlugName,l),this.restSlugName=l,c="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+i[0]+'").');f(this.slugName,l),this.slugName=l,c="[]"}}this.children.has(c)||this.children.set(c,new t),this.children.get(c)._insert(i.slice(1),s,a)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(n){const i=new t;return n.forEach(s=>i.insert(s)),i.smoosh()}}(vr)),vr}var br={},pi;function Wf(){return pi||(pi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return r}});const t=/\/\[[^/]+?\](?=\/|$)/;function r(n){return t.test(n)}}(br)),br}var mi;function Vf(){return mi||(mi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var a in s)Object.defineProperty(i,a,{enumerable:!0,get:s[a]})}t(e,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=Gf(),n=Wf()}(_r)),_r}var xr={},Cr={},hi;function Kf(){return hi||(hi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=tr();function r(n){let{re:i,groups:s}=n;return a=>{const c=i.exec(a);if(!c)return!1;const l=f=>{try{return decodeURIComponent(f)}catch{throw new t.DecodeError("failed to decode param")}},u={};return Object.keys(s).forEach(f=>{const p=s[f],d=c[p.pos];d!==void 0&&(u[f]=~d.indexOf("/")?d.split("/").map(m=>l(m)):p.repeat?[l(d)]:l(d))}),u}}}(Cr)),Cr}var Sr={},jr={},Ar={},Er={},gi;function Xf(){return gi||(gi=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}}(Er)),Er}var Rr={},yi;function Qf(){return yi||(yi=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(")")}}(Rr)),Rr}var _i;function Yf(){return _i||(_i=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 i},normalizeRscPath:function(){return s}});const r=Xf(),n=Qf();function i(a){return(0,r.ensureLeadingSlash)(a.split("/").reduce((c,l,u,f)=>!l||(0,n.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&u===f.length-1?c:c+"/"+l,""))}function s(a,c){return c?a.replace(/\.rsc($|\?)/,"$1"):a}}(Ar)),Ar}var vi;function Zf(){return vi||(vi=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 n},isInterceptionRouteAppPath:function(){return i},extractInterceptionRouteInformation:function(){return s}});const r=Yf(),n=["(..)(..)","(.)","(..)","(...)"];function i(a){return a.split("/").find(c=>n.find(l=>c.startsWith(l)))!==void 0}function s(a){let c,l,u;for(const f of a.split("/"))if(l=n.find(p=>f.startsWith(p)),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 f=c.split("/");if(f.length<=2)throw new Error(`Invalid interception route: ${a}. Cannot use (..)(..) marker at the root level or one level up.`);u=f.slice(0,-2).concat(u).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:c,interceptedRoute:u}}}(jr)),jr}var wr={},bi;function Jf(){return bi||(bi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return n}});const t=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function n(i){return t.test(i)?i.replace(r,"\\$&"):i}}(wr)),wr}var xi;function ep(){return xi||(xi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,g){for(var b in g)Object.defineProperty(y,b,{enumerable:!0,get:g[b]})}t(e,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return m},getNamedMiddlewareRegex:function(){return h}});const r=Zf(),n=Jf(),i=Yc(),s="nxtP",a="nxtI";function c(y){const g=y.startsWith("[")&&y.endsWith("]");g&&(y=y.slice(1,-1));const b=y.startsWith("...");return b&&(y=y.slice(3)),{key:y,repeat:b,optional:g}}function l(y){const g=(0,i.removeTrailingSlash)(y).slice(1).split("/"),b={};let j=1;return{parameterizedRoute:g.map(v=>{const A=r.INTERCEPTION_ROUTE_MARKERS.find(P=>v.startsWith(P)),S=v.match(/\[((?:\[.*\])|.+)\]/);if(A&&S){const{key:P,optional:x,repeat:I}=c(S[1]);return b[P]={pos:j++,repeat:I,optional:x},"/"+(0,n.escapeStringRegexp)(A)+"([^/]+?)"}else if(S){const{key:P,repeat:x,optional:I}=c(S[1]);return b[P]={pos:j++,repeat:x,optional:I},x?I?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,n.escapeStringRegexp)(v)}).join(""),groups:b}}function u(y){const{parameterizedRoute:g,groups:b}=l(y);return{re:new RegExp("^"+g+"(?:/)?$"),groups:b}}function f(){let y=0;return()=>{let g="",b=++y;for(;b>0;)g+=String.fromCharCode(97+(b-1)%26),b=Math.floor((b-1)/26);return g}}function p(y){let{getSafeRouteKey:g,segment:b,routeKeys:j,keyPrefix:v}=y;const{key:A,optional:S,repeat:P}=c(b);let x=A.replace(/\W/g,"");v&&(x=""+v+x);let I=!1;return(x.length===0||x.length>30)&&(I=!0),isNaN(parseInt(x.slice(0,1)))||(I=!0),I&&(x=g()),v?j[x]=""+v+A:j[x]=""+A,P?S?"(?:/(?<"+x+">.+?))?":"/(?<"+x+">.+?)":"/(?<"+x+">[^/]+?)"}function d(y,g){const b=(0,i.removeTrailingSlash)(y).slice(1).split("/"),j=f(),v={};return{namedParameterizedRoute:b.map(A=>{const S=r.INTERCEPTION_ROUTE_MARKERS.some(x=>A.startsWith(x)),P=A.match(/\[((?:\[.*\])|.+)\]/);return S&&P?p({getSafeRouteKey:j,segment:P[1],routeKeys:v,keyPrefix:g?a:void 0}):P?p({getSafeRouteKey:j,segment:P[1],routeKeys:v,keyPrefix:g?s:void 0}):"/"+(0,n.escapeStringRegexp)(A)}).join(""),routeKeys:v}}function m(y,g){const b=d(y,g);return{...u(y),namedRegex:"^"+b.namedParameterizedRoute+"(?:/)?$",routeKeys:b.routeKeys}}function h(y,g){const{parameterizedRoute:b}=l(y),{catchAll:j=!0}=g;if(b==="/")return{namedRegex:"^/"+(j?".*":"")+"$"};const{namedParameterizedRoute:v}=d(y,!1);let A=j?"(?:(/.*)?)":"";return{namedRegex:"^"+v+A+"$"}}}(Sr)),Sr}var Ci;function tp(){return Ci||(Ci=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=Kf(),r=ep();function n(i,s,a){let c="";const l=(0,r.getRouteRegex)(i),u=l.groups,f=(s!==i?(0,t.getRouteMatcher)(l)(s):"")||a;c=i;const p=Object.keys(u);return p.every(d=>{let m=f[d]||"";const{repeat:h,optional:y}=u[d];let g="["+(h?"...":"")+d+"]";return y&&(g=(m?"":"/")+"["+g+"]"),h&&!Array.isArray(m)&&(m=[m]),(y||d in f)&&(c=c.replace(g,h?m.map(b=>encodeURIComponent(b)).join("/"):encodeURIComponent(m))||"/")})||(c=""),{params:p,result:c}}}(xr)),xr}var Si;function rp(){return Si||(Si=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});const r=Kc(),n=Qc(),i=Hf(),s=tr(),a=rr(),c=Jc(),l=Vf(),u=tp();function f(p,d,m){let h,y=typeof d=="string"?d:(0,n.formatWithValidation)(d);const g=y.match(/^[a-zA-Z]{1,}:\/\//),b=g?y.slice(g[0].length):y;if((b.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+y+"' passed to next/router in page: '"+p.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const v=(0,s.normalizeRepeatedSlashes)(b);y=(g?g[0]:"")+v}if(!(0,c.isLocalURL)(y))return m?[y]:y;try{h=new URL(y.startsWith("#")?p.asPath:p.pathname,"http://n")}catch{h=new URL("/","http://n")}try{const v=new URL(y,h);v.pathname=(0,a.normalizePathTrailingSlash)(v.pathname);let A="";if((0,l.isDynamicRoute)(v.pathname)&&v.searchParams&&m){const P=(0,r.searchParamsToUrlQuery)(v.searchParams),{result:x,params:I}=(0,u.interpolateAs)(v.pathname,v.pathname,P);x&&(A=(0,n.formatWithValidation)({pathname:x,hash:v.hash,query:(0,i.omit)(P,I)}))}const S=v.origin===h.origin?v.href.slice(v.origin.length):v.href;return m?[S,A||S]:S}catch{return m?[y]: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)}(It,It.exports)),It.exports}var Tt={exports:{}},Pr={},Ir={},ji;function el(){return ji||(ji=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=ko();function r(n,i){if(!n.startsWith("/")||!i)return n;const{pathname:s,query:a,hash:c}=(0,t.parsePath)(n);return""+i+s+a+c}}(Ir)),Ir}var Ai;function np(){return Ai||(Ai=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=el(),r=Zc();function n(i,s,a,c){if(!s||s===a)return i;const l=i.toLowerCase();return!c&&((0,r.pathHasPrefix)(l,"/api")||(0,r.pathHasPrefix)(l,"/"+s.toLowerCase()))?i:(0,t.addPathPrefix)(i,"/"+s)}}(Pr)),Pr}var Ei;function op(){return Ei||(Ei=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=rr(),n=function(i){for(var s=arguments.length,a=new Array(s>1?s-1:0),c=1;c<s;c++)a[c-1]=arguments[c];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(np().addLocale(i,...a)):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)}(Tt,Tt.exports)),Tt.exports}var Nr={},Ri;function tl(){return Ri||(Ri=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=Pe._(C).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(Nr)),Nr}var Or={},wi;function ip(){return wi||(wi=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var p in f)Object.defineProperty(u,p,{enumerable:!0,get:f[p]})}t(e,{CacheStates:function(){return i},AppRouterContext:function(){return s},LayoutRouterContext:function(){return a},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return l}});const n=Pe._(C);var i;(function(u){u.LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY"})(i||(i={}));const s=n.default.createContext(null),a=n.default.createContext(null),c=n.default.createContext(null),l=n.default.createContext(null);process.env.NODE_ENV!=="production"&&(s.displayName="AppRouterContext",a.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",l.displayName="TemplateContext")}(Or)),Or}var Mt={exports:{}},kt={exports:{}},Pi;function rl(){return Pi||(Pi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(s,a){for(var c in a)Object.defineProperty(s,c,{enumerable:!0,get:a[c]})}r(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return i}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(s){let a=Date.now();return self.setTimeout(function(){s({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-a))}})},1)},i=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(s){return clearTimeout(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)}(kt,kt.exports)),kt.exports}var Ii;function sp(){return Ii||(Ii=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const r=C,n=rl(),i=typeof IntersectionObserver=="function",s=new Map,a=[];function c(f){const p={root:f.root||null,margin:f.rootMargin||""},d=a.find(g=>g.root===p.root&&g.margin===p.margin);let m;if(d&&(m=s.get(d),m))return m;const h=new Map,y=new IntersectionObserver(g=>{g.forEach(b=>{const j=h.get(b.target),v=b.isIntersecting||b.intersectionRatio>0;j&&v&&j(v)})},f);return m={id:p,observer:y,elements:h},a.push(p),s.set(p,m),m}function l(f,p,d){const{id:m,observer:h,elements:y}=c(d);return y.set(f,p),h.observe(f),function(){if(y.delete(f),h.unobserve(f),y.size===0){h.disconnect(),s.delete(m);const b=a.findIndex(j=>j.root===m.root&&j.margin===m.margin);b>-1&&a.splice(b,1)}}}function u(f){let{rootRef:p,rootMargin:d,disabled:m}=f;const h=m||!i,[y,g]=(0,r.useState)(!1),b=(0,r.useRef)(null),j=(0,r.useCallback)(A=>{b.current=A},[]);(0,r.useEffect)(()=>{if(i){if(h||y)return;const A=b.current;if(A&&A.tagName)return l(A,P=>P&&g(P),{root:p==null?void 0:p.current,rootMargin:d})}else if(!y){const A=(0,n.requestIdleCallback)(()=>g(!0));return()=>(0,n.cancelIdleCallback)(A)}},[h,d,p,y,b.current]);const v=(0,r.useCallback)(()=>{g(!1)},[]);return[j,y,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)}(Mt,Mt.exports)),Mt.exports}var Lt={exports:{}},Dt={exports:{}},Tr={},Ni;function ap(){return Ni||(Ni=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(r,n){let i;const s=r.split("/");return(n||[]).some(a=>s[1]&&s[1].toLowerCase()===a.toLowerCase()?(i=a,s.splice(1,1),r=s.join("/")||"/",!0):!1),{pathname:r,detectedLocale:i}}}(Tr)),Tr}var Oi;function cp(){return Oi||(Oi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(n,i)=>process.env.__NEXT_I18N_SUPPORT?ap().normalizeLocalePath(n,i):{pathname:n,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)}(Dt,Dt.exports)),Dt.exports}var $t={exports:{}},Mr={},Ti;function lp(){return Ti||(Ti=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,n,i){if(r){i&&(i=i.toLowerCase());for(const c of r){var s,a;const l=(s=c.domain)==null?void 0:s.split(":")[0].toLowerCase();if(n===l||i===c.defaultLocale.toLowerCase()||(a=c.locales)!=null&&a.some(u=>u.toLowerCase()===i))return c}}}}(Mr)),Mr}var Mi;function up(){return Mi||(Mi=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 n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];if(process.env.__NEXT_I18N_SUPPORT)return lp().detectDomainLocale(...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)}($t,$t.exports)),$t.exports}var ki;function dp(){return ki||(ki=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return i}});const r=rr(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function i(s,a,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=cp().normalizeLocalePath,f=up().detectDomainLocale,p=a||u(s,c).detectedLocale,d=f(l,void 0,p);if(d){const m="http"+(d.http?"":"s")+"://",h=p===d.defaultLocale?"":"/"+p;return""+m+d.domain+(0,r.normalizePathTrailingSlash)(""+n+h+s)}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)}(Lt,Lt.exports)),Lt.exports}var Bt={exports:{}},Li;function fp(){return Li||(Li=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return s}});const r=el(),n=rr(),i=process.env.__NEXT_ROUTER_BASEPATH||"";function s(a,c){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?a:(0,r.addPathPrefix)(a,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)}(Bt,Bt.exports)),Bt.exports}var Ft={exports:{}},Di;function pp(){return Di||(Di=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(p,d){for(var m in d)Object.defineProperty(p,m,{enumerable:!0,get:d[m]})}r(t,{PrefetchKind:function(){return f},ACTION_REFRESH:function(){return n},ACTION_NAVIGATE:function(){return i},ACTION_RESTORE:function(){return s},ACTION_SERVER_PATCH:function(){return a},ACTION_PREFETCH:function(){return c},ACTION_FAST_REFRESH:function(){return l},ACTION_SERVER_ACTION:function(){return u}});const n="refresh",i="navigate",s="restore",a="server-patch",c="prefetch",l="fast-refresh",u="server-action";var f;(function(p){p.AUTO="auto",p.FULL="full",p.TEMPORARY="temporary"})(f||(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)}(Ft,Ft.exports)),Ft.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return S}});const n=Pe._(C),i=rp(),s=Jc(),a=Qc(),c=tr(),l=op(),u=tl(),f=ip(),p=sp(),d=dp(),m=fp(),h=pp(),y=new Set;function g(P,x,I,B,E,O){if(typeof window>"u"||!O&&!(0,s.isLocalURL)(x))return;if(!B.bypassPrefetchedCheck){const $=typeof B.locale<"u"?B.locale:"locale"in P?P.locale:void 0,R=x+"%"+I+"%"+$;if(y.has(R))return;y.add(R)}const N=O?P.prefetch(x,E):P.prefetch(x,I,B);Promise.resolve(N).catch($=>{if(process.env.NODE_ENV!=="production")throw $})}function b(P){const I=P.currentTarget.getAttribute("target");return I&&I!=="_self"||P.metaKey||P.ctrlKey||P.shiftKey||P.altKey||P.nativeEvent&&P.nativeEvent.which===2}function j(P,x,I,B,E,O,N,$,R,F){const{nodeName:H}=P.currentTarget;if(H.toUpperCase()==="A"&&(b(P)||!R&&!(0,s.isLocalURL)(I)))return;P.preventDefault();const K=()=>{const W=N??!0;"beforePopState"in x?x[E?"replace":"push"](I,B,{shallow:O,locale:$,scroll:W}):x[E?"replace":"push"](B||I,{forceOptimisticNavigation:!F,scroll:W})};R?n.default.startTransition(K):K()}function v(P){return typeof P=="string"?P:(0,a.formatUrl)(P)}const S=n.default.forwardRef(function(x,I){let B;const{href:E,as:O,children:N,prefetch:$=null,passHref:R,replace:F,shallow:H,scroll:U,locale:K,onClick:W,onMouseEnter:z,onTouchStart:ne,legacyBehavior:w=!1,...M}=x;B=N,w&&(typeof B=="string"||typeof B=="number")&&(B=n.default.createElement("a",null,B));const D=n.default.useContext(u.RouterContext),X=n.default.useContext(f.AppRouterContext),te=D??X,Z=!D,k=$!==!1,J=$===null?h.PrefetchKind.AUTO:h.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let ie=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
+ Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(oe=>{if(oe==="href"&&(x[oe]==null||typeof x[oe]!="string"&&typeof x[oe]!="object"))throw ie({key:oe,expected:"`string` or `object`",actual:x[oe]===null?"null":typeof x[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 V=typeof x[oe];if(oe==="as"){if(x[oe]&&V!=="string"&&V!=="object")throw ie({key:oe,expected:"`string` or `object`",actual:V})}else if(oe==="locale"){if(x[oe]&&V!=="string")throw ie({key:oe,expected:"`string`",actual:V})}else if(oe==="onClick"||oe==="onMouseEnter"||oe==="onTouchStart"){if(x[oe]&&V!=="function")throw ie({key:oe,expected:"`function`",actual:V})}else if((oe==="replace"||oe==="scroll"||oe==="shallow"||oe==="passHref"||oe==="prefetch"||oe==="legacyBehavior")&&x[oe]!=null&&V!=="boolean")throw ie({key:oe,expected:"`boolean`",actual:V})});const Q=n.default.useRef(!1);x.prefetch&&!Q.current&&!Z&&(Q.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"&&Z&&!O){let ie;if(typeof E=="string"?ie=E:typeof E=="object"&&typeof E.pathname=="string"&&(ie=E.pathname),ie&&ie.split("/").some(G=>G.startsWith("[")&&G.endsWith("]")))throw new Error("Dynamic href `"+ie+"` 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:Y,as:ee}=n.default.useMemo(()=>{if(!D){const G=v(E);return{href:G,as:O?v(O):G}}const[ie,me]=(0,i.resolveHref)(D,E,!0);return{href:ie,as:O?(0,i.resolveHref)(D,O):me||ie}},[D,E,O]),L=n.default.useRef(Y),T=n.default.useRef(ee);let re;if(w)if(process.env.NODE_ENV==="development"){W&&console.warn('"onClick" was passed to <Link> with `href` of `'+E+'` 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 `'+E+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{re=n.default.Children.only(B)}catch{throw B?new Error("Multiple children were passed to <Link> with `href` of `"+E+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
3
+ Open your browser's console to view the Component stack trace.`:"")):new Error("No children were passed to <Link> with `href` of `"+E+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else re=n.default.Children.only(B);else if(process.env.NODE_ENV==="development"&&(B==null?void 0:B.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 se=w?re&&typeof re=="object"&&re.ref:I,[ce,le,ae]=(0,p.useIntersection)({rootMargin:"200px"}),q=n.default.useCallback(ie=>{(T.current!==ee||L.current!==Y)&&(ae(),T.current=ee,L.current=Y),ce(ie),se&&(typeof se=="function"?se(ie):typeof se=="object"&&(se.current=ie))},[ee,se,Y,ae,ce]);n.default.useEffect(()=>{process.env.NODE_ENV==="production"&&te&&(!le||!k||g(te,Y,ee,{locale:K},{kind:J},Z))},[ee,Y,le,K,k,D==null?void 0:D.locale,te,Z,J]);const he={ref:q,onClick(ie){if(process.env.NODE_ENV!=="production"&&!ie)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!w&&typeof W=="function"&&W(ie),w&&re.props&&typeof re.props.onClick=="function"&&re.props.onClick(ie),te&&(ie.defaultPrevented||j(ie,te,Y,ee,F,H,U,K,Z,k))},onMouseEnter(ie){!w&&typeof z=="function"&&z(ie),w&&re.props&&typeof re.props.onMouseEnter=="function"&&re.props.onMouseEnter(ie),te&&((!k||process.env.NODE_ENV==="development")&&Z||g(te,Y,ee,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))},onTouchStart(ie){!w&&typeof ne=="function"&&ne(ie),w&&re.props&&typeof re.props.onTouchStart=="function"&&re.props.onTouchStart(ie),te&&(!k&&Z||g(te,Y,ee,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))}};if((0,c.isAbsoluteUrl)(ee))he.href=ee;else if(!w||R||re.type==="a"&&!("href"in re.props)){const ie=typeof K<"u"?K:D==null?void 0:D.locale,me=(D==null?void 0:D.isLocaleDomain)&&(0,d.getDomainLocale)(ee,ie,D==null?void 0:D.locales,D==null?void 0:D.domainLocales);he.href=me||(0,m.addBasePath)((0,l.addLocale)(ee,ie,D==null?void 0:D.defaultLocale))}return w?n.default.cloneElement(re,he):n.default.createElement("a",{...M,...he},B)});(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)})(no,no.exports);var mp=no.exports,hp=mp;const Oe=er(hp),nl=({className:e,children:t,hasPriority:r=!1,showVideo:n=!1,...i})=>{const{element:s,index:a,item:{image:c,slug:l,video:u},sendSelectItemEvent:f,order:p,CONSTANTS:d}=De(),m=ga({images:c,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return o.jsxs("div",{...i,className:_.helpers.classNameConcat(Ae["product-card--image"],e),ref:s,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[o.jsx(Oe,{href:`/${l}/p`,onClick:f,onMouseUp:h=>{h.button===1&&f(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(p))},children:o.jsx("div",{className:Ae["product-card--image--container"],children:Array.isArray(m)&&m.map(({url:h,alternateName:y},g)=>C.createElement(Be.Image,{...d.PRODUCT_IMAGE_DIMENSIONS.product_card,style:d.PRODUCT_IMAGE_DIMENSIONS.product_card,alt:y??"product image",key:g,...r&&{priority:g===0&&a<4},objectFit:"cover",src:h}))})}),d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&n&&u&&o.jsx(ye.Video,{url:u,poster:m[0].url}),t]})};nl.displayName="ProductCard.Media.Media";const ol=({className:e,callback:t,children:r,...n})=>{const{isMobile:i,item:s,CONSTANTS:{PRODUCT_CARD_TEXTS:a}}=De(),{availability:{status:c}}=s;return c?null:o.jsxs("div",{...n,className:_.helpers.classNameConcat(Ae["product-card--outstock"],e),children:[o.jsx(_.Tag,{size:"small",variant:"secondary",title:a.disabled,children:a.disabled}),o.jsx(_.Button,{className:_.helpers.classNameConcat(e,"buy-button"),size:i?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(s)},children:a.notify})]})};ol.displayName="ProductCard.OutStock";const il=({children:e,className:t="",index:r,isMobile:n=!1,item:i,size:s,order:a,outStock:c,shelfTitle:l,CONSTANTS:u,WishListToggle:f,...p})=>o.jsx(Bf,{item:i,isMobile:n,outStock:c,order:a,size:s,index:r,shelfTitle:l,CONSTANTS:u,WishListToggle:f,children:o.jsx("div",{...p,className:_.helpers.classNameConcat(Ae["product-card--wrapper"],t),"data-size":s,children:e})});il.displayName="ProductCard.Root";const sl=({disabled:e,label:t,size:r,value:n,onClick:i,...s})=>o.jsxs(_.ToggleSize.Wrapper,{...s,disabled:!1,outOfStock:e,size:r,onClick:i,children:[o.jsx(_.ToggleSize.DisabledAdornment,{}),o.jsx(_.ToggleSize.Text,{children:t})]});sl.displayName="ProductCard.SizeSelector.Item";const al=({active:e=!1,callback:t,selectedSku:r=null,item:n,setNotify:i})=>{const{item:s,isMobile:a,setSelectedSku:c,eventDataRef:l}=De();n.productId=s.id;const u=xo(n),f=bo(n,"tamanho");!u&&!l.current.availableSkus.includes(f)&&l.current.availableSkus.push(f);const p=C.useCallback(m=>{const h=r===m?null:m;typeof c=="function"&&c(h),typeof t=="function"&&t(h)},[t,c,r]),d=C.useCallback(()=>{if(u&&typeof i=="function"){i(s,n);return}p(n)},[n,i,p,u,s]);return o.jsx(sl,{active:e,disabled:u,label:f,onClick:()=>d(),size:a?"x-small":"small",value:n})};al.displayName="ProductCard.SizeSelector.SkuItem";const cl=({callback:e,className:t="",children:r,setNotify:n,...i})=>{const{isMobile:s,item:{isVariantOf:{hasVariant:a}},selectedSku:c}=De();return o.jsxs("div",{...i,className:_.helpers.classNameConcat(Ae["product-card--selectors--size"],t),"data-mobile":s,children:[o.jsx("div",{className:Ae["product-card--selectors--size--skus"],children:Array.isArray(a)&&a.map((l,u)=>o.jsx(al,{active:c===l,callback:e,item:l,selectedSku:c,setNotify:n},`size--${u}--${l.sku}`))}),o.jsx("div",{className:Ae["product-card--selectors--size--button"],children:r})]})};cl.displayName="ProductCard.SizeSelector";const oo=({alt:e="",callback:t,more:r,total:n=4,src:i,url:s,...a})=>o.jsxs(_.ToggleStyle.Wrapper,{...a,onClick:()=>{typeof t=="function"&&t(s)},children:[o.jsx(_.ToggleStyle.DisabledAdornment,{}),o.jsxs(_.ToggleStyle.Texture,{children:[i&&o.jsx(Be.Image,{alt:e??i,src:i,height:34,width:34}),r&&o.jsx(_.TextStructure.DivWrapper,{className:Ae["product-card--selectors--style--more"],children:o.jsxs("p",{children:["+ ",n]})})]})]}),gp=({children:e,callback:t,data:r,total:n=4,size:i,...s})=>{const{index:a}=De(),{triggerSelectItemEventRef:c}=ge();return o.jsxs("div",{...s,children:[e,Array.isArray(r)&&r.slice(0,n).map((l,u)=>o.jsx(oo,{callback:f=>{c.current.trigger=!0,c.current.index=a,typeof t=="function"&&t(f)},src:(l==null?void 0:l.textureImage)??"",alt:l==null?void 0:l.textureAlt,url:l==null?void 0:l.slug,size:i},u)),Array.isArray(r)&&(r==null?void 0:r.length)>n&&o.jsx(oo,{size:i,total:r.length-n,more:!0})]})},ll=({callback:e,className:t,data:r,images:n=[],findTexture:i,...s})=>{const{CONSTANTS:a}=De(),c=i||a.TEXTURE_IMAGE,l=n==null?void 0:n.find(u=>c.includes(u.alternateName));return o.jsx(gp,{...s,callback:e,className:_.helpers.classNameConcat(Ae["product-card--selectors--style"],t),data:r,size:"x-small",children:l&&o.jsx(oo,{active:!0,size:"x-small",src:l.url})})};ll.displayName="ProductCard.StyleSelector";const ul=({className:e,hasDecimal:t,...r})=>{const{isMobile:n,item:{offers:{lowPrice:i,highPrice:s},installments:{count:a,value:c}},eventDataRef:l}=De();l.current.priceInfo={price:i,listPrice:s};const u=Ie(s,t),f=Ie(i,t),p=Ie(c??0),d=n?"horizontal":"stacked";return o.jsx("div",{...r,className:_.helpers.classNameConcat(Ae["product-card--price"],e),"data-mobile":n,children:o.jsx(_.ProductInfo.Root,{size:"small",layout:d,children:o.jsxs(_.ProductInfo.Wrapper,{size:"small",layout:d,children:[o.jsx(_.ProductInfo.ValuesWrapper,{children:f!==u?o.jsxs(o.Fragment,{children:[o.jsx(_.ProductInfo.Price,{label:"originalPrice",value:u,size:"small"}),o.jsx(_.ProductInfo.Price,{label:"discountPrice",value:f,size:"small"})]}):o.jsx(_.ProductInfo.Price,{label:"defaultPrice",value:f,size:"small"})}),a&&a>1&&c?o.jsx(_.ProductInfo.Price,{label:"installment",value:`${a}x ${p}`,size:"small"}):null]})})})};ul.displayName="ProductCard.Price";const dl=({tag:e,className:t})=>{const{item:{name:r}}=De();return o.jsxs("div",{className:_.helpers.classNameConcat(Ae["product-card--title"],t),children:[o.jsx("div",{className:Ae["product-card--title--tag"],children:e?o.jsx(_.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?o.jsx(_.Icon,{name:e.icon,style:{color:e.iconColor}}):null},style:{background:e.tagColor,color:e.textColor},children:e.value}):o.jsx("div",{})}),o.jsx("div",{className:Ae["product-card--title--content"],children:r&&o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{children:o.jsx("h3",{children:r})})})})]})};dl.displayName="ProductCard.Title";const fl=({className:e,url:t,poster:r,...n})=>{const{element:i}=De();return C.useEffect(()=>{if(!(i!=null&&i.current))return;const s=i.current,a=s.querySelector("video");if(a){const c=new IntersectionObserver(f=>{f.forEach(p=>{ya(p.isIntersecting,a,t)})},{root:null,rootMargin:"0px",threshold:.5}),l=()=>{a.setAttribute("data-loaded","true")},u=()=>{s&&(c.observe(s),a.addEventListener("loadeddata",l))};return document.readyState==="complete"?u():window.addEventListener("load",u),()=>{c.disconnect(),window.removeEventListener("load",u)}}return()=>null},[t,i]),o.jsx("div",{...n,className:_.helpers.classNameConcat(Ae["product-card--video"],e),children:t&&o.jsx(Be.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};fl.displayName="ProductCard.Media.Video";const pl=({children:e,className:t,type:r,...n})=>o.jsx("div",{...n,className:_.helpers.classNameConcat(Ae[`product-card--${r}`],t),children:e});pl.displayName="ProductCard.Wrapper";const ye={Actions:Uc,BuyButton:Gc,Header:Wc,Media:nl,Root:il,OutStock:ol,Price:ul,SizeSelector:cl,StyleSelector:ll,Title:dl,Video:fl,Wrapper:pl},yp="_carousel_245ib_1",_p="_shelf__container_245ib_14",vp="_shelf_without_carousel_245ib_34",ht={carousel:yp,"custom-controllers":"_custom-controllers_245ib_5",shelf__container:_p,"controllers-arrows-bullets":"_controllers-arrows-bullets_245ib_23",shelf_without_carousel:vp},$i=({title:e})=>o.jsx("div",{className:ht.shelf__container,children:e&&o.jsx(_.TextStructure.Root,{children:o.jsxs(_.TextStructure.DivWrapper,{children:[o.jsx("h2",{className:_.helpers.classNameConcat("typography-style-body-md",Me.responsive["responsive-mobile-flex"]),children:e}),o.jsx("h2",{className:_.helpers.classNameConcat("typography-style-heading-md",Me.responsive["responsive-desktop-flex"]),children:e})]})})}),bp=({children:e,ICONS:t,itemsPerPage:r,title:n})=>{const{isMobile:i}=Se(),s=r[i?"mobile":"desktop"],{initialize:a,controller:c,itemsStyles:l,pagination:u}=_.Carousel.useCarousel({itemsPerPage:s,gap:10,loop:!0,direction:"row"}),f=C.Children.toArray(e).length;return i||f>=4?o.jsxs(_.Carousel.Root,{innerRef:d=>{a(d)},className:ht.carousel,children:[o.jsxs("div",{className:ht["custom-controllers"],children:[n&&o.jsx($i,{title:n}),s<f&&o.jsxs(_.Carousel.Controller,{className:ht["controllers-arrows-bullets"],children:[o.jsxs(_.Carousel.Arrows,{children:[o.jsx(_.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:o.jsx(_.Icon,{name:t.arrow_left})}}),o.jsx(_.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:o.jsx(_.Icon,{name:t.arrow_right})}})]}),!i&&s>2&&o.jsx(_.Carousel.Bullets,{page:u.currentPage,total:u.totalPages,onBulletClick:d=>c==null?void 0:c.navigateTo(d)})]})]}),o.jsx(_.Carousel.Body,{children:C.Children.map(e,(d,m)=>o.jsx(_.Carousel.Item,{style:{...l,overflow:"hidden"},children:d},`${n}_${m}`))})]}):o.jsxs(o.Fragment,{children:[n&&o.jsx($i,{title:n}),o.jsx("div",{className:ht.shelf_without_carousel,children:e})]})},xp={Shelf:bp},Cp=({CONSTANTS:e,inView:t,products:r,innerRef:n,WishListToggle:i})=>{const s=C.useMemo(()=>Df(r),[r]),{isMobile:a}=Se(),{addItemsToCart:c}=qe(),{sendDataLayerEvent:l}=ge(),{getAvailableProductTag:u}=yo(),[f,p]=C.useState({totalPrice:0,products:{}}),d=()=>{const h=Object.values(f.products);c(h),l({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:h.map(y=>{const g=s.find(b=>b.node.id===y.productId);return g==null?void 0:g.node})},supportData:{selectedSkus:h,price:f.totalPrice}}})},m=({selectedProduct:h,productId:y})=>{const g=$f({selectedProduct:h,productId:y,prevState:f,mainSellerId:e.StoreConfig_MainSellerId});p(g)};return C.useEffect(()=>{if(!t||s.length===0)return;const h=e.BUY_PACKAGE.header.title;l({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:s},customData:{item_list_name:h},outsideEcommerceData:{item_list_name:h}}})},[t]),o.jsxs("div",{className:Ue.container,ref:n,children:[o.jsx("div",{className:Ue["carousel-container"],style:{width:s.length<=3?"max-content":"75%"},children:o.jsx(xp.Shelf,{title:e.BUY_PACKAGE.header.title,itemsPerPage:{desktop:3,mobile:s.length>=3?2.2:s.length},ICONS:e.ICONS,children:Array.isArray(s)&&s.map(({node:h},y)=>{var j,v,A;const g=u(h.cluster.highlights),{availability:{status:b}}=h;return b?o.jsxs(ye.Root,{item:{...h,image:To.helpers.product.getFirstImages({images:h.image,label:{first:e.MAIN_IMAGE,second:e.SECOND_IMAGE}})},isMobile:a,size:"medium",index:y,shelfTitle:e.BUY_PACKAGE.header.title,CONSTANTS:e,WishListToggle:i,children:[o.jsx(ye.Header,{product:h,tag:g.commercial}),o.jsx(ye.Media,{}),o.jsxs(ye.Wrapper,{type:"body",children:[o.jsx(ye.Title,{tag:{value:(j=g.institucional)==null?void 0:j.value,enableIcon:(v=g.institucional)==null?void 0:v.enableIcon,icon:(A=g.institucional)==null?void 0:A.icon}}),o.jsx(ye.Actions,{children:o.jsx(ye.SizeSelector,{callback:S=>m({selectedProduct:S,productId:h.id})})})]})]},h.id):null})})}),o.jsx("div",{className:Ue["add-cart-container"],children:o.jsx(Lf,{handleAddAllToCart:d,selectedProducts:f,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},Lo={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},Do=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=qe(),{handleSelectContent:n}=ge(),{CONSTANTS:i}=be(),s=r.reduce((a,c)=>a+(c.quantity??0),0);return o.jsx(_.Header.SupportItem,{onClick:()=>{t(!0),n({content:"header:minicart"})},id:e,children:o.jsxs(_.Badge.AutoPositioner,{children:[o.jsx(_.Badge.Count,{count:s,size:"medium",variant:"primary",style:{backgroundColor:"black",display:s>0?"flex":"none"}}),o.jsx(_.Icon,{name:i.header.ICONS.bag,size:"medium"})]})})};Do.displayName="Header.Bag";const Ct=({children:e,href:t,...r})=>t&&t!=="#"?o.jsx(Oe,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,ml=()=>{const{headerData:e}=be(),{handleSelectContent:t}=ge(),{reset:r,updateValue:n}=We(),i=s=>{s?n(s):r()};return o.jsx(_.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((s,a)=>o.jsx(Ct,{href:s.link,onMouseEnter:()=>i(s.submenuId),onFocus:()=>i(s.submenuId),children:o.jsx(_.Header.CategoryItem,{className:Lo["btn-header"],value:s.submenuId??null,adornment:{start:o.jsx(_.Icon,{name:s.iconStart}),end:o.jsx(_.Icon,{name:s.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${s.label}`})},children:s.label})},`category-${s.label}-${a}`))})};ml.displayName="Header.Categories";function Sp({SearchModal:e}){const{handleSelectContent:t}=ge(),{CONSTANTS:r}=be(),{setValue:n}=Eo();return o.jsxs(o.Fragment,{children:[o.jsx(_.Header.SupportItem,{onClick:()=>{n(!0),t({content:"header:search"})},children:o.jsx(_.Icon,{name:r.header.ICONS.search,size:"medium"})}),o.jsx(e,{recommendations:!1,trends:!0})]})}const jp={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},Ap={"observer-wrapper":"_observer-wrapper_r43gk_1"};function Ep(e,t,r){const[n,i]=C.useState(!1),{threshold:s}=r||{};return C.useEffect(()=>{if(!e.current)return()=>null;let a=null;const c=new IntersectionObserver(([l])=>{if(r!=null&&r.delay){a&&clearTimeout(a),a=setTimeout(()=>{i(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},r.delay);return}i(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},{threshold:s||1});return c.observe(e.current),()=>{c.disconnect()}},[e]),n}const nr=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:n,stopOnIntersection:i=!0,className:s,...a})=>{const c=C.useRef(null),l=Ep(c,i,r),{sendDataLayerEvent:u}=ge();return C.useEffect(()=>{l&&(typeof n=="function"&&n(),t&&u({...t}))},[l]),o.jsx("div",{...a,ref:c,className:_.helpers.classNameConcat(Ap["observer-wrapper"],s),children:e})},$o=({thumbnails:e,category:t,isMobile:r=!0,callBack:n})=>{const{handleSelectPromotionEvent:i}=ge(),s=50/e.length;return o.jsx("div",{className:jp["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 o.jsx(nr,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...u}}}},observerOptions:{delay:1e3},children:o.jsxs(Oe,{href:a.link??"#",onClick:()=>{typeof n=="function"&&n(),i({updatePromotionRef:!0,promotion:u})},children:[o.jsx(Be.Image,{src:l,alt:a.label??l,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${s}vw`}),a.label&&o.jsx("p",{children:a.label})]})},`thumb-${a.label}-${c}`)})})};$o.displayName="Menu.Thumbnail";const io={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},Rp="_link_w24h0_1",wp="_wrapper_w24h0_98",Pp="_text_w24h0_106",kr={link:Rp,wrapper:wp,text:Pp},Ge=({children:e,adornments:t,className:r,disableUnderline:n,href:i,mode:s,size:a,title:c,onClick:l,disablePadding:u,...f})=>{const p=_.helpers.ValidateProp({fieldTypes:ot.SizesSmallExtended,property:a,fallback:"medium"}),d=_.helpers.ValidateProp({fieldTypes:ot.Mode,property:s,fallback:"default"});return o.jsx(Oe,{...f,className:_.helpers.classNameConcat(kr.link,r),href:i&&i.length>0?i:"#","data-size":p,"data-variant":d,title:c||"NextLink","data-disable-underline":n??!1,"data-disable-padding":u??!0,children:o.jsxs("div",{className:kr.wrapper,onClick:l,children:[t==null?void 0:t.start,o.jsx("p",{className:kr.text,"data-size":p,children:e}),t==null?void 0:t.end]})})},hl=({children:e,dividerOnRight:t=!0,subMenu:r,...n})=>{var l;const{router:i}=Ee(),{reset:s}=We(),{handleSelectContent:a}=ge(),{CONSTANTS:c}=be();return o.jsxs("div",{...n,className:io["menu-categories"],children:[(l=r==null?void 0:r.subCategories)==null?void 0:l.map((u,f)=>{var m,h,y;const p=u.listCollapseDesk&&!((m=u.see_all)!=null&&m.link)?{expandAfterRowsQty:u.rowsToShowDesk}:{},d=u.listCollapseDesk&&!((h=u.see_all)!=null&&h.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:o.jsx(_.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return o.jsxs(_.ComponentList.Structure,{children:[o.jsx(Ct,{href:u.linkLabel,title:u.label,onClick:()=>{u.linkLabel&&(s(),a({content:`menu:${u.label??""}:${r.label??""}`}))},children:o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{children:o.jsx("h2",{children:u.label})})})}),o.jsx(_.ComponentList.List,{columns:1,...p,className:io["submenu-categories"],children:u.items.map((g,b)=>o.jsx(_.ComponentList.ListItem,{id:`list-item-${g.label}-${b}`,children:o.jsx(Ge,{href:g.link??"#",size:"x-small",title:g.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{s(),a({content:`menu:${u.label??""}:${g.label??""}:${r.label??""}`})},children:g.label})},`list-item-${g.label}-${b}`))}),((y=u.see_all)==null?void 0:y.link)&&o.jsx(_.ComponentList.Support,{...d,size:"small",onClick:()=>{var g;(g=u.see_all)!=null&&g.link&&(s(),a({content:`menu:${u.label??""}:${r.label}`}),i.push(u.see_all.link))},children:u.see_all.link&&u.see_all.label})]},`list-${u.label}-${f}`)}),t&&o.jsx(_.Utils.Divider,{size:"small",direction:"vertical"})]})};hl.displayName="Menu.Categories";const gl=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:n}=be();return o.jsxs(o.Fragment,{children:[o.jsx("div",{...r,className:io["menu-desktop"],style:{...r.style,justifyContent:n.header.ALIGNMENT_MENU},children:e}),t&&o.jsx(_.Utils.Divider,{size:"small"})]})};gl.displayName="Menu.MenuRoot";const Lr={Root:gl,Categories:hl,Thumbnail:$o},yl=()=>{const{headerData:e,CONSTANTS:t}=be(),r=Jt(),{reset:n}=We();return o.jsx(_.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((i,s)=>{const{thumbnails:a,label:c,id:l}=i,u=l===r,f=a==null?void 0:a.some(p=>!!p.srcDesk);return o.jsxs(Lr.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[o.jsx(Lr.Categories,{dividerOnRight:!!f,subMenu:i}),Array.isArray(a)&&o.jsx(Lr.Thumbnail,{thumbnails:a,isMobile:!1,category:c,callBack:n})]},`submenu-${l}-${s}`)})})};yl.displayName="Header.SubMenu";const _l=()=>{const{handleSelectContent:e}=ge(),{CONSTANTS:t}=be();return o.jsx(Oe,{href:"/favoritos",children:o.jsx(_.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:o.jsx(_.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};_l.displayName="Header.WishList";const vl=({SearchModal:e})=>{const{CONSTANTS:t,userMenuDesktopRef:r}=be(),{handleSelectContent:n}=ge(),{reset:i}=We(),{setValue:s}=bt();return o.jsxs(o.Fragment,{children:[o.jsxs(_.Header.Wrapper,{children:[o.jsx(_.Header.Logo,{style:{width:"100%"},children:o.jsx(Oe,{href:"/",onMouseEnter:i,children:o.jsx(_.Icon,{name:t.header.ICONS.logo,size:"x-large",onClick:()=>{n({content:"header:logo"})}})})}),o.jsx(ml,{}),o.jsxs(_.Header.Support,{onMouseEnter:i,style:{justifyContent:"flex-end"},children:[o.jsx(Sp,{SearchModal:e}),o.jsx(_.Header.SupportItem,{onClick:()=>{s(!0),n({content:"header:user_menu"})},className:Lo["btn-login"],innerRef:r,children:o.jsx(_.Icon,{name:t.header.ICONS.person,size:"medium"})}),o.jsx(_l,{}),o.jsx(Do,{id:"cart-button"})]})]}),o.jsx(yl,{})]})};vl.displayName="Header.HeaderDesktopWrapper";const Ip="_divider_1lexj_199",ve={"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:Ip,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},bl=({children:e,mobileBannerAlt:t,mobileBannerSrc:r,onClick:n,textColor:i,...s})=>o.jsx("button",{onClick:n,className:ve["menu-categories-btn"],children:r?o.jsxs(_.Banner.Container,{...s,className:ve["menu-body-banner-container-modifier"],children:[o.jsx(_.Banner.ImageWrapper,{style:{width:"100%"},children:o.jsx(Be.Image,{src:r,alt:t??r,className:ve["menu-categories__banner"],width:343,height:128,unoptimized:!0})}),o.jsx(_.Banner.Slot,{verticalAlignment:"center",horizontalAlignment:"start",children:o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{className:ve["menu-categories-textstructure-modifier"],children:o.jsx("h2",{className:"typography-style-body-xs",style:i?{color:i}:{},children:e})})})})]}):o.jsx("h2",{...s,children:e})});bl.displayName="Menu.MenuCategories";const xl=({children:e,link:t})=>{const{reset:r}=Je();return t?o.jsx(Oe,{href:t??"#",onClick:r,children:e}):e};xl.displayName="Menu.MenuCategoriesWrapper";const Cl=({subcategory:e,submenuLabel:t})=>{var l,u,f;const{router:r}=Ee(),{reset:n}=Je(),{handleSelectContent:i}=ge(),{CONSTANTS:s}=be(),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:s.header.ICONS.add,close:s.header.ICONS.minus},expansivesLabels:{open:s.header.COMPONENT_LIST.listExpandLabel,close:s.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:o.jsx(_.Icon,{name:s.header.ICONS.arrow_right,size:"small"})}};return o.jsxs(_.ComponentList.Structure,{className:ve["menu-submenu--component-list-modifier"],children:[o.jsx(Ct,{href:e.linkLabel,title:e.label,onClick:()=>{n(),i({content:`menu:${e.label??""}:${t}`})},children:o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{children:o.jsx("h2",{className:"typography-style-body-sm-strong",children:e.label})})})}),o.jsx(_.ComponentList.List,{columns:1,...a,className:ve["submenu-categories"],children:e.items.map((p,d)=>o.jsx(_.ComponentList.ListItem,{id:`list-item-${p.label}-${d}`,divider:!0,children:o.jsx(Ge,{href:p.link??"#",size:"x-small",title:p.label??"",disableUnderline:!0,onClick:()=>{n(),i({content:`menu:${e.label??""}:${p.label}:${t}`})},children:p.label})},`list-item-${p.label}-${d}`))}),((f=e.see_all)==null?void 0:f.link)&&o.jsx(_.ComponentList.Support,{...c,size:"small",onClick:()=>{var p;n(),i({content:`menu:${e.label??""}:${t}`}),(p=e.see_all)!=null&&p.link&&r.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};Cl.displayName="Menu.SubMenuSubCategory";const Sl=({submenu:e})=>{var s;const t=Jt(),{handleCloseSubMenu:r}=xt(),{reset:n}=We(),{CONSTANTS:i}=be();return o.jsxs("div",{className:ve["menu-submenu--item"],style:{display:t===e.id?"flex":"none"},children:[o.jsx(_.TextStructure.Root,{adornment:{start:o.jsx(_.Icon,{name:i.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&&o.jsx(_.TextStructure.DivWrapper,{style:{position:"absolute",left:"50%",transform:"translate(-50%)"},children:o.jsx("h2",{className:"typography-style-body-md-strong",children:e.label})})}),o.jsx("div",{className:ve["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&o.jsx($o,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:n})}),(s=e==null?void 0:e.subCategories)==null?void 0:s.map((a,c)=>o.jsx(Cl,{subcategory:a,submenuLabel:e.label},`list-${a.label}-${c}`))]})};Sl.displayName="Menu.SubMenuItem";const jl=()=>{const{headerData:e}=be(),t=Jt(),{reset:r}=We(),{bodyRef:n}=xt();return o.jsx(_.Modal.RootWithoutPortal,{isOpen:!!t,setIsOpen:r,parent:n.current,variant:"sideLeft",style:{position:"absolute",width:"100%"},className:ve["menu-submenu-modal-modifiier"],children:o.jsx("div",{className:ve["menu-submenu"],children:e.subMenus.map((i,s)=>o.jsx(Sl,{submenu:i},`submenu-${i.id}-${s}`))})})};jl.displayName="Menu.SubMenu";const Al=({className:e,...t})=>{const{headerData:r}=be(),{setValue:n}=We(),{bodyRef:i}=xt(),{handleSelectContent:s}=ge();return o.jsxs("div",{...t,ref:i,id:"menu-body",className:ve["menu-body"],children:[o.jsx("div",{className:ve["menu-categories-container"],children:r.categories.map((a,c)=>{const l=a.submenuId?{}:{"data-close":!0};return o.jsx(xl,{link:a.submenuId?null:a.link,children:o.jsx(bl,{onClick:()=>{n(a.submenuId??null),s({content:`menu:${a.label}`})},mobileBannerSrc:a.mobileBannerSrc,mobileBannerAlt:a.mobileBannerAlt,textColor:a.textColor,...l,children:a.mobileBannerAlt})},`menu-categories-${c}`)})}),o.jsx(jl,{})]})};Al.displayName="Menu.MenuBody";const El=({title:e,subtitle:t})=>{const{CONSTANTS:r}=be();return o.jsxs("div",{className:ve["menu-header-wrapper"],style:t?{alignItems:"start"}:{alignItems:"center"},children:[(e||t)&&o.jsx(_.TextStructure.Root,{children:o.jsxs(_.TextStructure.DivWrapper,{children:[e&&o.jsx("h2",{className:"typography-style-body-md",children:e}),t&&o.jsx("h3",{children:t})]})}),o.jsx(_.Button,{adornment:{end:o.jsx(_.Icon,{name:r.header.ICONS.close})},variant:"tertiary",className:ve["menu-close"],"data-close":!0})]})};El.displayName="Menu.MenuHeaderWrapper";const Rl=({navigationLinks:e})=>{const{reset:t}=Je(),{handleSelectContent:r}=ge();return e?o.jsx("nav",{className:ve["menu-header-navlinks"],children:e.map((n,i)=>o.jsx(Ge,{href:n.link??"#",adornments:{start:n.iconStart&&o.jsx(_.Icon,{name:n.iconStart}),end:n.iconEnd&&o.jsx(_.Icon,{name:n.iconEnd})},onClick:()=>{t(),r({content:`menu:navigationlinks-${n.label}`})},children:n.label},i))}):null};Rl.displayName="Menu.MenuHeaderNavLinks";const wl=()=>{const{headerData:e}=be();return o.jsxs("div",{className:ve["menu-header-container"],children:[o.jsx(El,{title:e.title,subtitle:e.subtitle}),o.jsx(Rl,{navigationLinks:e.navigationLinks})]})};wl.displayName="Menu.MenuHeaderContainer";const Pl=({children:e})=>{const{documentBodyRef:t}=xt(),{CONSTANTS:r}=be(),n=Ao(),{setValue:i}=Je();return o.jsx(_.Modal.RootWithoutPortal,{isOpen:n,setIsOpen:i,parent:t.current,variant:"sideLeft",style:{position:"fixed",zIndex:r.header.Z_INDEX_WAR.menu_mobile,bottom:"unset",top:0,overflowY:"hidden"},className:ve["modal-modifier"],children:o.jsx("div",{className:ve["menu-mobile"],children:e})})};Pl.displayName="Menu.MenuRoot";const Kt=({children:e,...t})=>o.jsxs(o.Fragment,{children:[o.jsx(_.Button,{...t,className:ve["menu-navigationbar-item"],children:e}),o.jsx(_.Utils.Divider,{direction:"vertical",size:"small",className:ve.divider})]});Kt.displayName="Menu.NavigationBarItem";const Il=()=>{const{setIsOpen:e}=qe(),{reset:t}=Je(),{setValue:r}=bt(),{handleSelectContent:n}=ge(),{CONSTANTS:i}=be(),{router:s}=Ee();return o.jsxs(_.Card,{id:"menu-navigationbar",shadow:!0,className:ve["menu-navigationbar"],style:{zIndex:i.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:[o.jsx(Kt,{size:"small",variant:"tertiary",iconNameStart:i.header.MENU_INFO.login.button_icon,onClick:()=>{t(),r(!0),n({content:"menu:user_menu"})},children:i.header.MENU_INFO.login.button_text}),o.jsx(Kt,{size:"small",variant:"tertiary",iconNameStart:i.header.MENU_INFO.bag.button_icon,onClick:()=>{t(),e(!0),n({content:"menu:minicart"})},children:i.header.MENU_INFO.bag.button_text}),o.jsx(Kt,{size:"small",variant:"tertiary",iconNameStart:i.header.MENU_INFO.store.button_icon,onClick:()=>{s.push("/institucional/lojas"),t(),n({content:"menu:store"})},children:i.header.MENU_INFO.store.button_text})]})};Il.displayName="Menu.NavigationBar";const qt={Root:Pl,NavigationBar:Il,Header:wl,Body:Al},Nl=({SearchModal:e})=>{const t=C.useRef(null),{CONSTANTS:r,userMenuMobileRef:n}=be(),{MENU_NAVIGATION_BAR_ALLOWED:i,ICONS:s,MENU_MOB_BTN_SIDE:a="right"}=r.header,{handleSelectContent:c}=ge(),{setValue:l}=Eo(),{setValue:u}=Je(),{setValue:f}=bt();return o.jsxs(o.Fragment,{children:[o.jsxs(_.Header.Wrapper,{children:[a==="left"&&o.jsx(_.Header.SupportItem,{onClick:()=>u(!0),innerRef:t,children:o.jsx(_.Icon,{name:s.menu,size:"medium"})}),o.jsx(_.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:o.jsx(Oe,{href:"/",children:o.jsx(_.Icon,{name:s.logo,size:"x-large",onClick:()=>{c({content:"header:logo"})}})})}),o.jsxs(_.Header.Support,{children:[o.jsx(_.Header.SupportItem,{onClick:()=>{l(!0),c({content:"header:search"})},children:o.jsx(_.Icon,{name:s.search,size:"medium"})}),o.jsx(_.Header.SupportItem,{onClick:()=>{f(!0),c({content:"header:user_menu"})},innerRef:n,children:o.jsx(_.Icon,{name:s.person,size:"medium"})}),o.jsx(Do,{}),a==="right"&&o.jsx(_.Header.SupportItem,{onClick:()=>u(!0),innerRef:t,children:o.jsx(_.Icon,{name:s.menu,size:"medium"})})]})]}),o.jsx(e,{recommendations:!1,trends:!0}),o.jsx(sc,{children:o.jsxs(qt.Root,{children:[o.jsx(qt.Header,{}),o.jsx(qt.Body,{}),i?o.jsx(qt.NavigationBar,{}):o.jsx(o.Fragment,{})]})})]})};Nl.displayName="Header.HeaderMobileWrapper";const Np="_root_wvekm_126",ke={"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:Np},Ol=({className:e,children:t,...r})=>o.jsx("div",{...r,className:_.helpers.classNameConcat(ke["user-menu--content"],e),children:t});Ol.displayName="UserMenu.Content";var Tl=(e=>(e.Account="account",e))(Tl||{});const Ml=({className:e,cashBack:t,credits:r,link:n,total:i,...s})=>{const a=t?Ie(t):void 0,c=r?Ie(r):void 0,l=i?Ie(i):void 0;return o.jsx(_.Credits.Account,{...s,className:_.helpers.classNameConcat(ke["user-menu--credits"],e),icon:"wallet",showIcon:!0,cashBackValue:a,creditsValue:c,linkMore:n,totalValue:l,type:Tl.Account})};Ml.displayName="UserMenu.Credits";const kl=({className:e,children:t,description:r,text:n,...i})=>{const{isMobile:s}=Se();return o.jsx("div",{...i,className:_.helpers.classNameConcat(ke["user-menu--login"],e),"data-mobile":s,children:o.jsxs("div",{className:ke["user-menu--login--content"],children:[o.jsx(_.TextStructure.Root,{children:o.jsxs(_.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:[o.jsx("h3",{className:"typography-style-body-lg-strong",children:n}),o.jsx("p",{children:r})]})}),t]})})};kl.displayName="UserMenu.Login";const Ll=({className:e,isLogged:t,onLogoutClick:r,ICONS:n,storeConfig:i})=>{const{isMobile:s}=Se(),a=$d({ICONS:n,storeConfig:i}).filter(c=>c.deviceShown==="both"||c.deviceShown===(s?"mobile":"desktop"));return o.jsxs("ul",{className:_.helpers.classNameConcat(ke["user-menu--menu"],e),children:[Array.isArray(a)&&a.map((c,l)=>o.jsx("li",{children:o.jsx(Ge,{href:c.href??"#",size:"small",disableUnderline:!0,adornments:{start:o.jsx(_.Icon,{name:c.icon??"delete"})},children:c.label})},l)),t?o.jsx("li",{children:o.jsx(Ge,{href:`${i.secureSubdomain}/api/vtexid/pub/logout?scope=mariafilo&returnUrl=${encodeURIComponent(`${i.storeUrl}`)}`,size:"small",disableUnderline:!0,onClick:r,adornments:{start:o.jsx(_.Icon,{name:Dd(n)})},children:Ld})}):o.jsx(o.Fragment,{})]})};Ll.displayName="UserMenu.Menu";const Dl=e=>{const t=C.useRef(null),r=C.useCallback(s=>{t.current&&!t.current.contains(s.target)&&e()},[e]),n=C.useCallback(s=>{t.current&&!t.current.contains(s.target)&&e()},[e]),i=C.useCallback(s=>{s.key==="Escape"&&e()},[e]);return C.useEffect(()=>(document.addEventListener("mousedown",r),document.addEventListener("keydown",i),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",i),document.removeEventListener("touchstart",n)}),[r,i,n]),{ref:t}},Op=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Tp=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const{height:n,left:i,top:s,width:a}=t.getBoundingClientRect(),c=e.getBoundingClientRect(),l=e!=null&&e.parentElement?Op(e==null?void 0:e.parentElement):0;return{left:i+a/2-(c.width+l*2),top:s+n+r}},$l=C.createContext({}),Mp=({children:e,delay:t=600,gap:r=20,isOpen:n,setIsOpen:i,target:s,...a})=>{const c=C.useRef(null),[l,u]=C.useState(!1),[f,p]=C.useState({left:0,top:0}),{ref:d}=Dl(()=>{u(!0),typeof window<"u"&&(c.current=window.setTimeout(()=>{i(!1),u(!1)},t))});return C.useEffect(()=>{if(s&&(d!=null&&d.current)){const{left:m,top:h}=Tp(d.current,s,r??0);p({left:m,top:h}),u(!1)}},[r,n,s,d]),o.jsx($l.Provider,{value:C.useMemo(()=>({...a,...f,contentRef:d,isLeaving:l,isOpen:n,setIsOpen:i,setIsLeaving:u,target:s}),[a,f,d,l,n,i,u,s]),children:e})},Bl=()=>{const e=C.useContext($l);if(e===void 0)throw new Error("useUserMenuContext must be used within a UserMenuProvider");return e},Fl=({children:e,isMobile:t=!1,Z_INDEX_WAR:r})=>{const{isOpen:n,setIsOpen:i}=Bl();return o.jsxs(_.Modal.Root,{"data-user":"user-menu--modal",isMobile:t??!1,isOpen:n,setIsOpen:i,variant:"sideBottom",className:ke["modal-root-modifier"],style:{zIndex:r.user_menu_mobile},children:[o.jsx(_.Modal.Header,{navigation:"top",className:ke["modal-header-modifier"],children:o.jsx(_.Modal.Controls,{navigation:"top",isMobile:!0,className:ke["modal-controls-modifier"]})}),o.jsx(_.Modal.Body,{children:e})]})};Fl.displayName="UserMenu.Modal";const ql=({children:e,component:t,Z_INDEX_WAR:r,isMobile:n,...i})=>o.jsx(Mp,{...i,className:ke.root,children:n?o.jsxs(o.Fragment,{children:[o.jsx(Xe.Modal,{Z_INDEX_WAR:r,children:t}),e]}):o.jsx(Xe.Tooltip,{component:t,style:{width:304,zIndex:r.user_menu},Z_INDEX_WAR:r,children:e})});ql.displayName="UserMenu.Root";const zl=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:i,left:s,isLeaving:a,isOpen:c,top:l}=Bl();return o.jsx(_.Tooltip.Root,{arrow:"top-right",component:o.jsx("div",{...n,ref:i,children:t}),className:_.helpers.classNameConcat(ke["user-menu--tooltip"],ke["tooltip-modifier"]),isLeaving:a,isOpen:c,left:s,size:"medium",position:"top",top:l,style:{zIndex:r.user_menu},children:o.jsx("div",{className:ke["user-menu--tooltip"],children:e})})};zl.displayName="UserMenu.Tooltip";const Xe={Credits:Ml,Content:Ol,Login:kl,Menu:Ll,Modal:Fl,Root:ql,Tooltip:zl},Bo=()=>{var y,g,b;const e=Oo(),{isMobile:t}=Se(),{userMenuMobileRef:r,userMenuDesktopRef:n,CONSTANTS:{header:i},storeConfig:s}=be(),{ICONS:a,Z_INDEX_WAR:c,MENU_INFO:l}=i,u=Za(),{setValue:f}=bt(),p=()=>{window.location.href=`${s.secureSubdomain}/api/io/login?returnUrl=${encodeURIComponent(`${s.storeUrl}`)}`},d=!!((y=e.user)!=null&&y.userId),{cashback:m,credits:h}=C.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 o.jsx(Xe.Root,{component:o.jsxs(Xe.Content,{children:[o.jsx(Xe.Login,{description:Fd(d),text:Bd(d,((g=e==null?void 0:e.user)==null?void 0:g.firstName)??((b=e==null?void 0:e.user)==null?void 0:b.email)),children:!d&&o.jsx(_.Button,{size:"medium",variant:"quaternary",onClick:()=>p(),children:l.login.button_text})}),h+m&&d?o.jsx(Xe.Credits,{credits:h,cashBack:m,link:`${s.secureSubdomain}/account#/meus-creditos`,total:h+m}):o.jsx(o.Fragment,{}),o.jsx(_.Utils.Divider,{}),o.jsx(Xe.Menu,{isLogged:d,onLogoutClick:()=>e.logout(),ICONS:a,storeConfig:s})]}),target:t?r.current:n.current,isOpen:u,isMobile:t,setIsOpen:f,Z_INDEX_WAR:c})};Bo.displayName="UserMenu";const Hl=({tipBar:e,miniCart:t,SearchModal:r})=>{const{structureRef:n,rootRef:i,CONSTANTS:s}=be(),{header:{HEADER_CONFIGS:a,Z_INDEX_WAR:c}}=s;return o.jsx(_.Header.Structure,{innerRef:n,adornment:{start:e},style:{position:"sticky",top:0,zIndex:c.header},className:Lo["header-animation"],children:o.jsxs(_.Header.Root,{innerRef:i,style:{zIndex:c.header},variant:a.default_variant,interactiveVariant:a.interactive_variant,children:[o.jsx("div",{className:Me.responsive["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:c.header_mobile},children:o.jsx(Nl,{SearchModal:r})}),o.jsx("div",{className:Me.responsive["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:c.header_desktop},children:o.jsx(vl,{SearchModal:r})}),t,o.jsx(Mo,{title:"Produto adicionado à sua sacola!",CONSTANTS:s.addToCart}),o.jsx(Bo,{})]})})};Hl.displayName="Header";const kp="_shippingFreight_6z8rf_6",Lp="_shippingFreight__postalCodeGrid_6z8rf_10",Dp="_shippingFreight__grid_6z8rf_14",$p="_shippingFreight__grid__title_6z8rf_18",Bp="_shippingFreight__grid__remember_6z8rf_29",Fp="_postalCodeContainer_6z8rf_44",qp="_deliveryStatusBar__tag_6z8rf_49",zp="_deliveryStatusBarError__tag_6z8rf_66",Hp="_deliveryInfo_6z8rf_74",Up="_deliveryInfo__content_6z8rf_78",Gp="_deliveryInfo__text_6z8rf_84",Wp="_deliveryInfo__title_6z8rf_89",Vp="_deliveryInfo__subtitle_6z8rf_99",Kp="_deliveryInfo__tooltipIcon_6z8rf_109",Xp="_deliveryInfo__tooltip_6z8rf_109",Qp="_freightGrid_6z8rf_148",Yp="_freightContainer_6z8rf_155",Zp="_freightOption__content_6z8rf_160",Jp="_freightOption__value_6z8rf_166",em="_freightOption__title_6z8rf_177",tm="_freightOption__title_item_6z8rf_181",rm="_freightOption__paragraph_6z8rf_192",fe={shippingFreight:kp,shippingFreight__postalCodeGrid:Lp,shippingFreight__grid:Dp,shippingFreight__grid__title:$p,shippingFreight__grid__remember:Bp,postalCodeContainer:Fp,deliveryStatusBar__tag:qp,deliveryStatusBarError__tag:zp,deliveryInfo:Hp,deliveryInfo__content:Up,deliveryInfo__text:Gp,deliveryInfo__title:Wp,deliveryInfo__subtitle:Vp,deliveryInfo__tooltipIcon:Kp,deliveryInfo__tooltip:Xp,freightGrid:Qp,freightContainer:Yp,freightOption__content:Zp,freightOption__value:Jp,freightOption__title:em,freightOption__title_item:tm,freightOption__paragraph:rm,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},nm=({icon:e,title:t,subtitle:r,packageCount:n,packageUnit:i="",labelDescription:s,freightConfig:a,toolTipZIndex:c})=>{const[l,u]=C.useState(!1),f=C.useRef(null),p=()=>u(d=>!d);return o.jsxs("div",{className:fe.deliveryInfo,ref:f,children:[o.jsx(_.Tooltip.Root,{arrow:"bottom",component:o.jsx("div",{children:o.jsx("p",{children:a.messages.select_size_tag})}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:f.current}),o.jsxs("div",{className:fe.deliveryInfo__content,children:[o.jsx("div",{className:fe.deliveryInfo__icon,children:o.jsx(_.Icon,{name:e,size:"medium"})}),o.jsxs("div",{className:fe.deliveryInfo__text,children:[o.jsxs("span",{className:fe.deliveryInfo__title,children:[t," ",n," ",i]}),r&&o.jsx("span",{className:fe.deliveryInfo__subtitle,children:r})]}),s&&o.jsxs("div",{className:fe.deliveryInfo__tooltipIcon,onMouseEnter:p,onMouseLeave:p,"aria-label":"Mostrar descrição",children:[o.jsx("span",{children:o.jsx(_.Icon,{name:a.icons.feedback_help,size:"small"})}),l&&o.jsx("div",{className:fe.deliveryInfo__tooltip,children:s})]})]})]})},om=({value:e,title:t,paragraph:r})=>o.jsx("div",{className:fe.freightOption,children:o.jsxs("div",{className:fe.freightOption__content,children:[o.jsx("span",{className:fe.freightOption__value,children:e}),o.jsx("span",{className:fe.freightOption__title,children:o.jsx(_.TextStructure.Root,{children:o.jsxs(_.TextStructure.DivWrapper,{className:fe.footer__item,children:[o.jsx("span",{className:fe.freightOption__title_item,children:t}),r&&o.jsx("span",{className:fe.freightOption__paragraph,children:r})]})})})]})}),im=({children:e})=>o.jsx("div",{className:fe.freightContainer,children:e}),sm=({children:e})=>o.jsx("div",{className:fe.freightGrid,children:e}),am=({children:e})=>o.jsx("div",{className:fe.postalCodeContainer,children:e}),Bi=({message:e,seller:t="",size:r="small",setError:n})=>o.jsx("div",{className:n?fe.deliveryStatusBarError:fe.deliveryStatusBar,children:o.jsxs(_.Tag,{title:e,className:n?fe.deliveryStatusBarError__tag:fe.deliveryStatusBar__tag,size:r,children:[e," ",!n&&t]})}),cm=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},lm=e=>{var r,n,i;const t=[];return(i=(n=(r=e==null?void 0:e.logisticsInfo)==null?void 0:r[0])==null?void 0:n.slas)==null||i.forEach(s=>{t.push({id:s.id,name:s.name,price:s.price,shippingEstimate:s.shippingEstimate})}),t},um=({component:e,parent:t,top:r,left:n,target:i,contentRef:s,freightConfig:a,toolTipZIndex:c=999,...l})=>{const{isMobile:u}=Se();return o.jsx(o.Fragment,{children:u?o.jsx(_.Tooltip.Root,{arrow:"bottom",component:o.jsxs("div",{...l,ref:s,children:[e,o.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:t}):o.jsx(_.Tooltip.Root,{arrow:"bottom",component:o.jsxs("div",{...l,ref:s,children:[e,o.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:t})})},dm=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:n,quantity:i,setError:s,setIsButtonClicked:a,component:c,freightConfig:l,toolTipZIndex:u})=>{var O,N,$,R;const f=it(),p=it(F=>F.shipping),[d,m]=C.useState(),[h,y]=C.useState(!1),[g,b]=C.useState(!1),[j,v]=C.useState(!1),A=(N=(O=f.shippingData)==null?void 0:O.address)==null?void 0:N.postalCode,S=!(d!=null&&d.length)&&A?A:d,P=C.useRef(null),x=async F=>{const U=F.target.value.replace(/\D/g,"").slice(0,8);U.length>5?m(U.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):m(U)},I=async F=>{const H=F.target.value.replace(/\D/g,"");try{if((await Qo.get(`https://viacep.com.br/ws/${H}/json/`)).data.erro){s&&s(l.messages.cep_not_found),a(!1),b(!0);return}s&&s(""),b(!1)}catch{console.log("Erro ao validar o CEP. Tente novamente mais tarde.")}},B=async()=>{y(!0);try{const F=await Qo.post("/api/checkout/simulation",{items:[{id:n,quantity:i,seller:t}],country:"BRA",postalCode:S});e(lm(F.data))}catch(F){console.error("Erro ao atualizar o documento:",F)}finally{y(!1),p(S,"BRA")}},E=async()=>{if(!n){v(!0),setTimeout(()=>v(!1),1500);return}await I({target:{value:S}}),h||(B(),a(!0))};return o.jsxs("div",{ref:P,style:{position:"relative"},children:[!n&&j?o.jsx(um,{component:c,isOpen:j,parent:P.current,toolTipZIndex:u,freightConfig:l}):o.jsx(o.Fragment,{}),o.jsx("div",{style:{position:"relative"},children:o.jsx(_.TextField.Structure,{title:"structure",style:{width:"100%"},input:o.jsx(_.TextField.Input,{defaultValue:(R=($=f.shippingData)==null?void 0:$.address)==null?void 0:R.postalCode,label:l.messages.text_input_label,title:"textfield",value:d,sizeVariant:r,onMouseOver:()=>n?null:v(!0),onMouseOut:()=>n?null:v(!1),mode:"simple",onChange:x,onKeyDown:F=>{F.key==="Enter"&&E()},className:fe["input-modifier"],feedback:g?"error":"none"}),right:o.jsx(_.Button,{onClick:E,size:r,title:"button",children:h?o.jsx(_.Spinner,{size:"small",indicatorColor:"#ffffff"}):l.messages.text_input_btn})})})]})},fm=({children:e,freightConfig:t})=>o.jsxs("div",{className:fe.shippingFreight,children:[o.jsxs("div",{className:fe.shippingFreight__grid,children:[o.jsx("span",{className:fe.shippingFreight__grid__title,children:t.messages.title}),o.jsx("span",{className:fe.shippingFreight__grid__remember,children:o.jsx(Ge,{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})})]}),o.jsx("div",{className:fe.shippingFreight__postalCodeGrid,children:e})]}),pm=({children:e})=>o.jsx("div",{className:fe.freightContainer,children:e}),mm=({className:e,sellerId:t,skuId:r,quantity:n,size:i,seller:s,local:a,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:l}=ge(),[u,f]=C.useState(""),[p,d]=C.useState([]),[m,h]=C.useState(""),[y,g]=C.useState(!1),b=v=>f(v),j=v=>{d(v),l({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:{shippings:v.map(A=>({shipping_tier:A.id,delivery_time:A.shippingEstimate.replace("bd",""),flag_pickup:A.name.toLowerCase().includes("retirada")?"true":"false",shipping:A.price,currency:c.currency||"BRL"}))}}})};return o.jsxs(pm,{className:e,children:[o.jsxs(fm,{freightConfig:c.freightConfig,children:[o.jsx(am,{children:o.jsx(dm,{onUpdateFreightItems:j,skuId:r,quantity:n,size:i,sellerId:t,local:a,setError:h,setIsButtonClicked:g,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),m?o.jsx(Bi,{size:i,message:m,setError:h}):p.length>0&&o.jsx(Bi,{size:i,message:c.freightConfig.messages.delivered_by,seller:s})]}),y&&!m?p.length>0&&o.jsxs(im,{children:[o.jsx(sm,{children:p.filter(({id:v})=>!v.includes("Retirada")).map(v=>o.jsx(om,{id:v.id,value:_o({valueInCents:v.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:v.name,paragraph:`${c.freightConfig.messages.prefix_days}${cm(v.shippingEstimate)}`,radioValue:u,changeValue:b},v.id))}),c.deliveryInfoBoxesAllowed?o.jsx(nm,{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}):o.jsx(o.Fragment,{})]}):null]})},Fo={"product-list--banner":"_product-list--banner_sfibj_1","product-list--card":"_product-list--card_sfibj_30","product-list":"_product-list_sfibj_1"},Ul=({className:e,children:t,columns:r=1,isMobile:n=!1,gap:i=8,position_grid:s,totalColumns:a=4,PRODUCT_CARD_IMAGE_ASPECT_RATIO:c,...l})=>{const u=C.useMemo(()=>r%a===0?"initial":n||r<2?c:c.split("/").reverse().join("/"),[r,a,n]);return o.jsx("div",{...l,className:_.helpers.classNameConcat(Fo["product-list--banner"],e),style:{aspectRatio:u,maxWidth:`${r/a*100}%`,order:s,padding:i/2},children:t})};Ul.displayName="ProductList.Banner";const Gl=({isKit:e,parent:t,productId:r,setNotify:n,CONSTANTS:i})=>{const{router:s}=Ee(),a=C.useRef(!1),c=C.useRef(null),[l,u]=C.useState([]),f=h=>s.push(h??""),p=async h=>{try{const y=await fetch("/api/catalog/product/similars",{method:"POST",body:JSON.stringify({productId:h,filterTexture:i.TEXTURE_IMAGE}),priority:"low"});if(!y.ok)throw new Error("Erro ao buscar similares.");const g=await y.json();u(g)}catch(y){console.error(y)}},d=C.useCallback(h=>{!r||!h||(typeof p=="function"&&p(r),a.current=!0)},[r]),m=C.useCallback((h,y)=>{if(!h.isIntersecting){i.PLP_INFINITE_SCROLL&&c.current&&(clearTimeout(c.current),c.current=null);return}if(h.intersectionRatio>=y.threshold&&!a.current){if(i.PLP_INFINITE_SCROLL){c.current=setTimeout(()=>{d(!0)},i.PLP_PRODUCT_SIMILAR_DELAY);return}d(!0)}},[d]);return C.useEffect(()=>{if(e||!t.current)return;const h={root:null,threshold:.1},y=new IntersectionObserver(([g])=>{m(g,h)},h);return y.observe(t.current),()=>{c.current&&clearTimeout(c.current),y.disconnect()}},[m,t,e]),o.jsx(ye.Actions,{...l,callback:f,isKit:e,children:!e&&o.jsx(ye.SizeSelector,{setNotify:n})})};Gl.displayName="ProductList.Card.Actions";const Wl=({className:e,children:t,gap:r=32,item:n,isMobile:i,order:s,tag:a,hasMaxWidth:c=!0,index:l,setSkuSelected:u,showVideo:f,CONSTANTS:p,WishListToggle:d,...m})=>{const h=C.useRef(null),{availability:{status:y}}=n,g=C.useCallback((j,v)=>{var A;typeof u=="function"&&u((A=j.isVariantOf)==null?void 0:A.hasVariant,v)},[u]),b=n.name.substring(0,4).toLowerCase()==="kit ";return o.jsxs("div",{...m,className:_.helpers.classNameConcat(Fo["product-list--card"],e),"data-mobile":i,"data-order":s,ref:h,style:{...c&&{maxWidth:i?"50%":"25%"},order:s,padding:r/2},children:[o.jsxs(ye.Root,{item:n,isMobile:i,index:l,size:i?"small":"medium",order:s,outStock:!y,CONSTANTS:p,WishListToggle:d,children:[o.jsx(ye.Header,{product:n,tag:a==null?void 0:a.commercial}),o.jsx(ye.Media,{showVideo:f,hasPriority:!0}),o.jsxs(ye.Wrapper,{type:"body",children:[o.jsx(ye.Title,{tag:a==null?void 0:a.institucional}),o.jsx(Gl,{productId:n.isVariantOf.productGroupID,parent:h,setNotify:g,isKit:b,CONSTANTS:p}),!b&&o.jsx(ye.OutStock,{callback:g})]}),o.jsx(ye.Wrapper,{type:"footer",children:y&&o.jsx(ye.BuyButton,{isKit:b})})]}),t]})};Wl.displayName="ProductList.Card";const Vl=({children:e,className:t,...r})=>o.jsx("div",{...r,className:_.helpers.classNameConcat(Fo["product-list"],t),children:e});Vl.displayName="ProductList.Grid";const hm={Banner:Ul,Card:Wl,Root:Vl,helpers:cf},qo={"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"},Kl=({children:e,...t})=>o.jsx("div",{...t,className:qo["product-variation-list--list"],children:e});Kl.displayName="ProductVariationList.List";const Xl=({fill:e="#1352C7",src:t="",type:r="size",text:n,...i})=>{const{nextimage:s}=Ee();return r==="size"?o.jsxs(_.ToggleSize.Wrapper,{...i,size:"large",variation:"ghost",children:[o.jsx(_.ToggleSize.DisabledAdornment,{title:"disabled-adornment-size"}),o.jsx(_.ToggleSize.Text,{children:n})]}):o.jsxs(_.ToggleStyle.Wrapper,{...i,size:"small",title:"wrapper-texture",children:[o.jsx(_.ToggleStyle.DisabledAdornment,{title:"disabled-adornment-texture"}),r==="color"?o.jsx(_.ToggleStyle.Color,{background:e,title:"color"}):o.jsx(_.ToggleStyle.Texture,{title:"texture",children:o.jsx(s,{alt:n??"image",height:40,src:t,width:40})})]})};Xl.displayName="ProductVariationList.Option";const Ql=({children:e,...t})=>o.jsx("div",{className:qo["product-variation-list"],...t,children:e});Ql.displayName="ProductVariationList.Root";const Yl=({children:e,title:t,...r})=>o.jsxs("div",{...r,className:qo["product-variation-list--title"],children:[t?o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.SectionWrapper,{children:o.jsx("p",{children:t})})}):o.jsx(o.Fragment,{}),e]});Yl.displayName="ProductVariationList.Title";const Ye={List:Kl,Option:Xl,Title:Yl,Root:Ql},gm="_sort_35wro_1",or={sort:gm,"sort-list-wrapper":"_sort-list-wrapper_35wro_8","sort-list":"_sort-list_35wro_8","sort-button":"_sort-button_35wro_25"},ym=({children:e,sortListOpen:t,btnAdornment:r,style:n,...i})=>o.jsx(_.Button,{...i,adornment:{end:t?r==null?void 0:r.listOpen:r==null?void 0:r.listClosed},size:"small",variant:"tertiary",style:{...n,textDecoration:"none"},className:or["sort-button"],children:e}),_m=e=>o.jsx(_.RadioButton.Radio,{...e}),vm=({children:e,className:t,name:r,...n})=>o.jsx(_.RadioButton.Group,{...n,name:r||"sort-group",className:_.helpers.classNameConcat(or["sort-list"],t),children:e}),bm=({children:e,className:t,shadow:r=!0,padding:n="small",height:i="fit-content",...s})=>o.jsx(_.Card,{...s,shadow:r,className:_.helpers.classNameConcat(or["sort-list-wrapper"],t),padding:n,height:i,children:e}),Zl=C.forwardRef(({children:e,className:t,...r},n)=>o.jsx("div",{...r,ref:n,className:_.helpers.classNameConcat(or.sort,t),children:e}));Zl.displayName="SortRoot";const Jl=({handleSelectValue:e,sortListOpen:t,setSortListOpen:r,searchParams:n,CONSTANTS:i,...s})=>{var d;const a=(d=n==null?void 0:n.get("sort"))==null?void 0:d.replace(":","_"),[c,l]=C.useState(a),{sendDataLayerEvent:u}=ge();C.useEffect(()=>{l(a||void 0)},[a]);const{ref:f}=Dl(()=>r(!1)),p=m=>{const h=m.target.value;l(h),typeof e=="function"&&e(h),u({functionKey:"filterEvent",data:{customData:{ordering:Ke.options[h]}}}),r(!1)};return o.jsxs(Zl,{...s,ref:f,children:[o.jsx(ym,{btnAdornment:{listOpen:o.jsx(_.Icon,{name:i.ICONS.arrow_up,size:"small"}),listClosed:o.jsx(_.Icon,{name:i.ICONS.arrow_down,size:"small"})},sortListOpen:t,onClick:()=>r(!t),children:c?Ke.options[c]:Ke.placeholder},"sort-button"),t&&o.jsx(bm,{children:o.jsx(vm,{name:"sort-group",value:c??"",onChange:p,children:Object.keys(Ke.options).map(m=>o.jsx(_m,{label:Ke.options[m],value:m},m))})})]})};Jl.displayName="Sort";const xm="_footer__bottom_1o9af_2",Cm="_footer__wrapper_1o9af_10",Sm="_footer__main_1o9af_39",jm="_footer__legalInformation_1o9af_55",Am="_footer__column_1o9af_77",Em="_footer__columnContent_1o9af_87",Rm="_footer__item_1o9af_91",wm="_footer__itemLink_1o9af_107",Pm="_footer__columnTitle_1o9af_122",Im="_footer__columnTitleIcon_1o9af_134",Nm="_footer__iconList_1o9af_147",Om="_footer__itemSmallText_1o9af_157",Tm="_payment_1o9af_168",Mm="_footer__iconContainer_1o9af_173",km="_footer__iconListSubHeader_1o9af_178",Lm="_accordionWrapper_1o9af_200",Dm="_accordionHeader_1o9af_204",$m="_accordionTextWrapper_1o9af_208",pe={footer__bottom:xm,footer__wrapper:Cm,footer__main:Sm,footer__legalInformation:jm,footer__column:Am,footer__columnContent:Em,footer__item:Rm,footer__itemLink:wm,footer__columnTitle:Pm,footer__columnTitleIcon:Im,footer__iconList:Nm,footer__itemSmallText:Om,payment:Tm,footer__iconContainer:Mm,footer__iconListSubHeader:km,accordionWrapper:Lm,accordionHeader:Dm,accordionTextWrapper:$m,"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 eu={},zo={},St={};(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=n=>{r.has(n)||console.warn(n),r.add(n)}}})(St);var tu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return t}});function t(r){let{widthInt:n,heightInt:i,blurWidth:s,blurHeight:a,blurDataURL:c,objectFit:l}=r;const u=20,f=s?s*40:n,p=a?a*40:i,d=f&&p?"viewBox='0 0 "+f+" "+p+"'":"",m=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='"+m+"' style='filter: url(%23b);' href='"+c+"'/%3E%3C/svg%3E"}})(tu);var ir={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var a in s)Object.defineProperty(i,a,{enumerable:!0,get:s[a]})}t(e,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});const r=["default","imgix","cloudinary","akamai","custom"],n={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}})(ir);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return m}});const t=St,r=tu,n=ir,i=["lazy","eager",void 0];function s(h){return h.default!==void 0}function a(h){return h.src!==void 0}function c(h){return typeof h=="object"&&(s(h)||a(h))}const l=new Map;let u;function f(h){return typeof h>"u"?h:typeof h=="number"?Number.isFinite(h)?h:NaN:typeof h=="string"&&/^[0-9]+$/.test(h)?parseInt(h,10):NaN}function p(h,y,g){let{deviceSizes:b,allSizes:j}=h;if(g){const A=/(^|\s)(1?\d?\d)vw/g,S=[];for(let P;P=A.exec(g);P)S.push(parseInt(P[2]));if(S.length){const P=Math.min(...S)*.01;return{widths:j.filter(x=>x>=b[0]*P),kind:"w"}}return{widths:j,kind:"w"}}return typeof y!="number"?{widths:b,kind:"w"}:{widths:[...new Set([y,y*2].map(A=>j.find(S=>S>=A)||j[j.length-1]))],kind:"x"}}function d(h){let{config:y,src:g,unoptimized:b,width:j,quality:v,sizes:A,loader:S}=h;if(b)return{src:g,srcSet:void 0,sizes:void 0};const{widths:P,kind:x}=p(y,j,A),I=P.length-1;return{sizes:!A&&x==="w"?"100vw":A,srcSet:P.map((B,E)=>S({config:y,src:g,quality:v,width:B})+" "+(x==="w"?B:E+1)+x).join(", "),src:S({config:y,src:g,quality:v,width:P[I]})}}function m(h,y){let{src:g,sizes:b,unoptimized:j=!1,priority:v=!1,loading:A,className:S,quality:P,width:x,height:I,fill:B=!1,style:E,onLoad:O,onLoadingComplete:N,placeholder:$="empty",blurDataURL:R,fetchPriority:F,layout:H,objectFit:U,objectPosition:K,lazyBoundary:W,lazyRoot:z,...ne}=h;const{imgConf:w,showAltText:M,blurComplete:D,defaultLoader:X}=y;let te,Z=w||n.imageConfigDefault;if("allSizes"in Z)te=Z;else{const G=[...Z.deviceSizes,...Z.imageSizes].sort((je,Q)=>je-Q),ue=Z.deviceSizes.sort((je,Q)=>je-Q);te={...Z,allSizes:G,deviceSizes:ue}}let k=ne.loader||X;delete ne.loader,delete ne.srcSet;const J="__next_img_default"in k;if(J){if(te.loader==="custom")throw new Error('Image with src "'+g+`" is missing "loader" prop.
5
+ Read more: https://nextjs.org/docs/messages/next-image-missing-loader`)}else{const G=k;k=ue=>{const{config:je,...Q}=ue;return G(Q)}}if(H){H==="fill"&&(B=!0);const G={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},ue={responsive:"100vw",fill:"100vw"},je=G[H];je&&(E={...E,...je});const Q=ue[H];Q&&!b&&(b=Q)}let Y="",ee=f(x),L=f(I),T,re;if(c(g)){const G=s(g)?g.default:g;if(!G.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(G));if(!G.height||!G.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(G));if(T=G.blurWidth,re=G.blurHeight,R=R||G.blurDataURL,Y=G.src,!B){if(!ee&&!L)ee=G.width,L=G.height;else if(ee&&!L){const ue=ee/G.width;L=Math.round(G.height*ue)}else if(!ee&&L){const ue=L/G.height;ee=Math.round(G.width*ue)}}}g=typeof g=="string"?g:Y;let se=!v&&(A==="lazy"||typeof A>"u");(!g||g.startsWith("data:")||g.startsWith("blob:"))&&(j=!0,se=!1),te.unoptimized&&(j=!0),J&&g.endsWith(".svg")&&!te.dangerouslyAllowSVG&&(j=!0),v&&(F="high");const ce=f(P);if(process.env.NODE_ENV!=="production"){if(te.output==="export"&&J&&!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(!g)j=!0;else if(B){if(x)throw new Error('Image with src "'+g+'" has both "width" and "fill" properties. Only one should be used.');if(I)throw new Error('Image with src "'+g+'" has both "height" and "fill" properties. Only one should be used.');if(E!=null&&E.position&&E.position!=="absolute")throw new Error('Image with src "'+g+'" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.');if(E!=null&&E.width&&E.width!=="100%")throw new Error('Image with src "'+g+'" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.');if(E!=null&&E.height&&E.height!=="100%")throw new Error('Image with src "'+g+'" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.')}else{if(typeof ee>"u")throw new Error('Image with src "'+g+'" is missing required "width" property.');if(isNaN(ee))throw new Error('Image with src "'+g+'" has invalid "width" property. Expected a numeric value in pixels but received "'+x+'".');if(typeof L>"u")throw new Error('Image with src "'+g+'" is missing required "height" property.');if(isNaN(L))throw new Error('Image with src "'+g+'" has invalid "height" property. Expected a numeric value in pixels but received "'+I+'".')}if(!i.includes(A))throw new Error('Image with src "'+g+'" has invalid "loading" property. Provided "'+A+'" should be one of '+i.map(String).join(",")+".");if(v&&A==="lazy")throw new Error('Image with src "'+g+`" has both "priority" and "loading='lazy'" properties. Only one should be used.`);if($!=="empty"&&$!=="blur"&&!$.startsWith("data:image/"))throw new Error('Image with src "'+g+'" has invalid "placeholder" property "'+$+'".');if($!=="empty"&&ee&&L&&ee*L<1600&&(0,t.warnOnce)('Image with src "'+g+'" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'),$==="blur"&&!R){const G=["jpeg","png","webp","avif"];throw new Error('Image with src "'+g+`" 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
8
8
  - Change the "src" property to a static import with one of the supported file types: `+G.join(",")+` (animated images not supported)
9
9
  - Remove the "placeholder" property, effectively no blur effect
10
- Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`)}if("ref"in ne&&(0,t.warnOnce)('Image with src "'+g+'" is using unsupported "ref" property. Consider using the "onLoadingComplete" property instead.'),!A&&!J){const G=k({config:te,src:g,width:ee||400,quality:ce||75});let ue;try{ue=new URL(G)}catch{}(G===g||ue&&ue.pathname===g&&!ue.search)&&(0,t.warnOnce)('Image with src "'+g+`" has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead.
11
- Read more: https://nextjs.org/docs/messages/next-image-missing-loader-width`)}for(const[G,ue]of Object.entries({layout:z,objectFit:U,objectPosition:K,lazyBoundary:W,lazyRoot:F}))ue&&(0,t.warnOnce)('Image with src "'+g+'" has legacy prop "'+G+`". Did you forget to run the codemod?
12
- Read more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);if(typeof window<"u"&&!u&&window.PerformanceObserver){u=new PerformanceObserver(G=>{for(const Ae of G.getEntries()){var ue;const Q=(Ae==null||(ue=Ae.element)==null?void 0:ue.src)||"",oe=l.get(Q);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(G){console.error(G)}}}const le=Object.assign(B?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:U,objectPosition:K}:{},M?{}:{color:"transparent"},R),ae=!D&&$!=="empty"?$==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:ee,heightInt:L,blurWidth:T,blurHeight:re,blurDataURL:w||"",objectFit:le.objectFit})+'")':'url("'+$+'")':null;let H=ae?{backgroundSize:le.objectFit||"cover",backgroundPosition:le.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:ae}:{};process.env.NODE_ENV==="development"&&H.backgroundImage&&$==="blur"&&w!=null&&w.startsWith("/")&&(H.backgroundImage='url("'+w+'")');const he=d({config:te,src:g,unoptimized:A,width:ee,quality:ce,sizes:b,loader:k});if(process.env.NODE_ENV!=="production"&&typeof window<"u"){let G;try{G=new URL(he.src)}catch{G=new URL(he.src,window.location.href)}l.set(G.href,{src:g,priority:_,placeholder:$})}return{props:{...ne,loading:se?"lazy":E,fetchPriority:q,width:ee,height:L,decoding:"async",className:S,style:{...le,...H},sizes:he.sizes,srcSet:he.srcSet,src:he.src},meta:{unoptimized:A,priority:_,placeholder:$,fill:B}}}})(Mo);var to={exports:{}},Dt={exports:{}},Or={},Ni;function Vp(){return Ni||(Ni=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});const t=C,r=typeof window>"u",n=r?()=>{}:t.useLayoutEffect,o=r?()=>{}:t.useEffect;function i(a){const{headManager:c,reduceComponentsToState:l}=a;function u(){if(c&&c.mountedInstances){const p=t.Children.toArray(Array.from(c.mountedInstances).filter(Boolean));c.updateHead(l(p,a))}}if(r){var f;c==null||(f=c.mountedInstances)==null||f.add(a.children),u()}return n(()=>{var p;return c==null||(p=c.mountedInstances)==null||p.add(a.children),()=>{var d;c==null||(d=c.mountedInstances)==null||d.delete(a.children)}}),n(()=>(c&&(c._pendingUpdate=u),()=>{c&&(c._pendingUpdate=u)})),o(()=>(c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null),()=>{c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null)})),null}}(Or)),Or}var Tr={},Oi;function Kp(){return Oi||(Oi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return n}});const n=je._(C).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="AmpStateContext")}(Tr)),Tr}var Mr={},Ti;function kl(){return Ti||(Ti=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=je._(C).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="HeadManagerContext")}(Mr)),Mr}var kr={},Mi;function Xp(){return Mi||(Mi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isInAmpMode",{enumerable:!0,get:function(){return t}});function t(r){let{ampFirst:n=!1,hybrid:o=!1,hasQuery:i=!1}=r===void 0?{}:r;return n||o&&i}}(kr)),kr}var ki;function Qp(){return ki||(ki=1,function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(A,_){for(var E in _)Object.defineProperty(A,E,{enumerable:!0,get:_[E]})}r(t,{defaultHead:function(){return p},default:function(){return b}});const n=je,i=Qt()._(C),a=n._(Vp()),c=Kp(),l=kl(),u=Xp(),f=yt;function p(A){A===void 0&&(A=!1);const _=[i.default.createElement("meta",{charSet:"utf-8"})];return A||_.push(i.default.createElement("meta",{name:"viewport",content:"width=device-width"})),_}function d(A,_){return typeof _=="string"||typeof _=="number"?A:_.type===i.default.Fragment?A.concat(i.default.Children.toArray(_.props.children).reduce((E,S)=>typeof S=="string"||typeof S=="number"?E:E.concat(S),[])):A.concat(_)}const h=["name","httpEquiv","charSet","itemProp"];function m(){const A=new Set,_=new Set,E=new Set,S={};return P=>{let x=!0,I=!1;if(P.key&&typeof P.key!="number"&&P.key.indexOf("$")>0){I=!0;const B=P.key.slice(P.key.indexOf("$")+1);A.has(B)?x=!1:A.add(B)}switch(P.type){case"title":case"base":_.has(P.type)?x=!1:_.add(P.type);break;case"meta":for(let B=0,R=h.length;B<R;B++){const O=h[B];if(P.props.hasOwnProperty(O))if(O==="charSet")E.has(O)?x=!1:E.add(O);else{const N=P.props[O],$=S[O]||new Set;(O!=="name"||!I)&&$.has(N)?x=!1:($.add(N),S[O]=$)}}break}return x}}function y(A,_){const{inAmpMode:E}=_;return A.reduce(d,[]).reverse().concat(p(E).reverse()).filter(m()).reverse().map((S,P)=>{const x=S.key||P;if(process.env.NODE_ENV!=="development"&&process.env.__NEXT_OPTIMIZE_FONTS&&!E&&S.type==="link"&&S.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(I=>S.props.href.startsWith(I))){const I={...S.props||{}};return I["data-href"]=I.href,I.href=void 0,I["data-optimized-fonts"]=!0,i.default.cloneElement(S,I)}if(process.env.NODE_ENV==="development")if(S.type==="script"&&S.props.type!=="application/ld+json"){const I=S.props.src?'<script> tag with src="'+S.props.src+'"':"inline <script>";(0,f.warnOnce)("Do not add <script> tags using next/head (see "+I+`). Use next/script instead.
10
+ Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`)}if("ref"in ne&&(0,t.warnOnce)('Image with src "'+g+'" is using unsupported "ref" property. Consider using the "onLoadingComplete" property instead.'),!j&&!J){const G=k({config:te,src:g,width:ee||400,quality:ce||75});let ue;try{ue=new URL(G)}catch{}(G===g||ue&&ue.pathname===g&&!ue.search)&&(0,t.warnOnce)('Image with src "'+g+`" has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead.
11
+ Read more: https://nextjs.org/docs/messages/next-image-missing-loader-width`)}for(const[G,ue]of Object.entries({layout:H,objectFit:U,objectPosition:K,lazyBoundary:W,lazyRoot:z}))ue&&(0,t.warnOnce)('Image with src "'+g+'" has legacy prop "'+G+`". Did you forget to run the codemod?
12
+ Read more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);if(typeof window<"u"&&!u&&window.PerformanceObserver){u=new PerformanceObserver(G=>{for(const je of G.getEntries()){var ue;const Q=(je==null||(ue=je.element)==null?void 0:ue.src)||"",oe=l.get(Q);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(G){console.error(G)}}}const le=Object.assign(B?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:U,objectPosition:K}:{},M?{}:{color:"transparent"},E),ae=!D&&$!=="empty"?$==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:ee,heightInt:L,blurWidth:T,blurHeight:re,blurDataURL:R||"",objectFit:le.objectFit})+'")':'url("'+$+'")':null;let q=ae?{backgroundSize:le.objectFit||"cover",backgroundPosition:le.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:ae}:{};process.env.NODE_ENV==="development"&&q.backgroundImage&&$==="blur"&&R!=null&&R.startsWith("/")&&(q.backgroundImage='url("'+R+'")');const he=d({config:te,src:g,unoptimized:j,width:ee,quality:ce,sizes:b,loader:k});if(process.env.NODE_ENV!=="production"&&typeof window<"u"){let G;try{G=new URL(he.src)}catch{G=new URL(he.src,window.location.href)}l.set(G.href,{src:g,priority:v,placeholder:$})}return{props:{...ne,loading:se?"lazy":A,fetchPriority:F,width:ee,height:L,decoding:"async",className:S,style:{...le,...q},sizes:he.sizes,srcSet:he.srcSet,src:he.src},meta:{unoptimized:j,priority:v,placeholder:$,fill:B}}}})(zo);var so={exports:{}},zt={exports:{}},Dr={},Fi;function Bm(){return Fi||(Fi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return s}});const t=C,r=typeof window>"u",n=r?()=>{}:t.useLayoutEffect,i=r?()=>{}:t.useEffect;function s(a){const{headManager:c,reduceComponentsToState:l}=a;function u(){if(c&&c.mountedInstances){const p=t.Children.toArray(Array.from(c.mountedInstances).filter(Boolean));c.updateHead(l(p,a))}}if(r){var f;c==null||(f=c.mountedInstances)==null||f.add(a.children),u()}return n(()=>{var p;return c==null||(p=c.mountedInstances)==null||p.add(a.children),()=>{var d;c==null||(d=c.mountedInstances)==null||d.delete(a.children)}}),n(()=>(c&&(c._pendingUpdate=u),()=>{c&&(c._pendingUpdate=u)})),i(()=>(c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null),()=>{c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null)})),null}}(Dr)),Dr}var $r={},qi;function Fm(){return qi||(qi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return n}});const n=Pe._(C).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="AmpStateContext")}($r)),$r}var Br={},zi;function ru(){return zi||(zi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=Pe._(C).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="HeadManagerContext")}(Br)),Br}var Fr={},Hi;function qm(){return Hi||(Hi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isInAmpMode",{enumerable:!0,get:function(){return t}});function t(r){let{ampFirst:n=!1,hybrid:i=!1,hasQuery:s=!1}=r===void 0?{}:r;return n||i&&s}}(Fr)),Fr}var Ui;function zm(){return Ui||(Ui=1,function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(j,v){for(var A in v)Object.defineProperty(j,A,{enumerable:!0,get:v[A]})}r(t,{defaultHead:function(){return p},default:function(){return b}});const n=Pe,s=at._(C),a=n._(Bm()),c=Fm(),l=ru(),u=qm(),f=St;function p(j){j===void 0&&(j=!1);const v=[s.default.createElement("meta",{charSet:"utf-8"})];return j||v.push(s.default.createElement("meta",{name:"viewport",content:"width=device-width"})),v}function d(j,v){return typeof v=="string"||typeof v=="number"?j:v.type===s.default.Fragment?j.concat(s.default.Children.toArray(v.props.children).reduce((A,S)=>typeof S=="string"||typeof S=="number"?A:A.concat(S),[])):j.concat(v)}const m=["name","httpEquiv","charSet","itemProp"];function h(){const j=new Set,v=new Set,A=new Set,S={};return P=>{let x=!0,I=!1;if(P.key&&typeof P.key!="number"&&P.key.indexOf("$")>0){I=!0;const B=P.key.slice(P.key.indexOf("$")+1);j.has(B)?x=!1:j.add(B)}switch(P.type){case"title":case"base":v.has(P.type)?x=!1:v.add(P.type);break;case"meta":for(let B=0,E=m.length;B<E;B++){const O=m[B];if(P.props.hasOwnProperty(O))if(O==="charSet")A.has(O)?x=!1:A.add(O);else{const N=P.props[O],$=S[O]||new Set;(O!=="name"||!I)&&$.has(N)?x=!1:($.add(N),S[O]=$)}}break}return x}}function y(j,v){const{inAmpMode:A}=v;return j.reduce(d,[]).reverse().concat(p(A).reverse()).filter(h()).reverse().map((S,P)=>{const x=S.key||P;if(process.env.NODE_ENV!=="development"&&process.env.__NEXT_OPTIMIZE_FONTS&&!A&&S.type==="link"&&S.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(I=>S.props.href.startsWith(I))){const I={...S.props||{}};return I["data-href"]=I.href,I.href=void 0,I["data-optimized-fonts"]=!0,s.default.cloneElement(S,I)}if(process.env.NODE_ENV==="development")if(S.type==="script"&&S.props.type!=="application/ld+json"){const I=S.props.src?'<script> tag with src="'+S.props.src+'"':"inline <script>";(0,f.warnOnce)("Do not add <script> tags using next/head (see "+I+`). Use next/script instead.
14
14
  See more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`)}else S.type==="link"&&S.props.rel==="stylesheet"&&(0,f.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="'+S.props.href+`"). Use Document instead.
15
- See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);return i.default.cloneElement(S,{key:x})})}function g(A){let{children:_}=A;const E=(0,i.useContext)(c.AmpStateContext),S=(0,i.useContext)(l.HeadManagerContext);return i.default.createElement(a.default,{reduceComponentsToState:y,headManager:S,inAmpMode:(0,u.isInAmpMode)(E)},_)}const b=g;(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 Lr={},Li;function Yp(){return Li||(Li=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return o}});const r=je._(C),n=er,o=r.default.createContext(n.imageConfigDefault);process.env.NODE_ENV!=="production"&&(o.displayName="ImageConfigContext")}(Lr)),Lr}var Dr={},$r={},Br={exports:{}};const Zp=of(Te.__viteBrowserExternal);var qr={},Hr={},Fr,Di;function Ll(){return Di||(Di=1,Fr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;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!==o||c.enumerable!==!0)return!1}return!0}),Fr}var zr,$i;function tr(){if($i)return zr;$i=1;var e=Ll();return zr=function(){return e()&&!!Symbol.toStringTag},zr}var Ur,Bi;function Dl(){return Bi||(Bi=1,Ur=Object),Ur}var Gr,qi;function Jp(){return qi||(qi=1,Gr=Error),Gr}var Wr,Hi;function em(){return Hi||(Hi=1,Wr=EvalError),Wr}var Vr,Fi;function tm(){return Fi||(Fi=1,Vr=RangeError),Vr}var Kr,zi;function rm(){return zi||(zi=1,Kr=ReferenceError),Kr}var Xr,Ui;function $l(){return Ui||(Ui=1,Xr=SyntaxError),Xr}var Qr,Gi;function _t(){return Gi||(Gi=1,Qr=TypeError),Qr}var Yr,Wi;function nm(){return Wi||(Wi=1,Yr=URIError),Yr}var Zr,Vi;function om(){return Vi||(Vi=1,Zr=Math.abs),Zr}var Jr,Ki;function im(){return Ki||(Ki=1,Jr=Math.floor),Jr}var en,Xi;function sm(){return Xi||(Xi=1,en=Math.max),en}var tn,Qi;function am(){return Qi||(Qi=1,tn=Math.min),tn}var rn,Yi;function cm(){return Yi||(Yi=1,rn=Math.pow),rn}var nn,Zi;function lm(){return Zi||(Zi=1,nn=Math.round),nn}var on,Ji;function um(){return Ji||(Ji=1,on=Number.isNaN||function(t){return t!==t}),on}var sn,es;function dm(){if(es)return sn;es=1;var e=um();return sn=function(r){return e(r)||r===0?r:r<0?-1:1},sn}var an,ts;function fm(){return ts||(ts=1,an=Object.getOwnPropertyDescriptor),an}var cn,rs;function it(){if(rs)return cn;rs=1;var e=fm();if(e)try{e([],"length")}catch{e=null}return cn=e,cn}var ln,ns;function rr(){if(ns)return ln;ns=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return ln=e,ln}var un,os;function pm(){if(os)return un;os=1;var e=typeof Symbol<"u"&&Symbol,t=Ll();return un=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},un}var dn,is;function Bl(){return is||(is=1,dn=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),dn}var fn,ss;function ql(){if(ss)return fn;ss=1;var e=Dl();return fn=e.getPrototypeOf||null,fn}var pn,as;function mm(){if(as)return pn;as=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(l,u){for(var f=[],p=0;p<l.length;p+=1)f[p]=l[p];for(var d=0;d<u.length;d+=1)f[d+l.length]=u[d];return f},i=function(l,u){for(var f=[],p=u,d=0;p<l.length;p+=1,d+=1)f[d]=l[p];return f},a=function(c,l){for(var u="",f=0;f<c.length;f+=1)u+=c[f],f+1<c.length&&(u+=l);return u};return pn=function(l){var u=this;if(typeof u!="function"||t.apply(u)!==n)throw new TypeError(e+u);for(var f=i(arguments,1),p,d=function(){if(this instanceof p){var b=u.apply(this,o(f,arguments));return Object(b)===b?b:this}return u.apply(l,o(f,arguments))},h=r(0,u.length-f.length),m=[],y=0;y<h;y++)m[y]="$"+y;if(p=Function("binder","return function ("+a(m,",")+"){ return binder.apply(this,arguments); }")(d),u.prototype){var g=function(){};g.prototype=u.prototype,p.prototype=new g,g.prototype=null}return p},pn}var mn,cs;function vt(){if(cs)return mn;cs=1;var e=mm();return mn=Function.prototype.bind||e,mn}var hn,ls;function ko(){return ls||(ls=1,hn=Function.prototype.call),hn}var gn,us;function Lo(){return us||(us=1,gn=Function.prototype.apply),gn}var yn,ds;function hm(){return ds||(ds=1,yn=typeof Reflect<"u"&&Reflect&&Reflect.apply),yn}var _n,fs;function Hl(){if(fs)return _n;fs=1;var e=vt(),t=Lo(),r=ko(),n=hm();return _n=n||e.call(r,t),_n}var vn,ps;function Do(){if(ps)return vn;ps=1;var e=vt(),t=_t(),r=ko(),n=Hl();return vn=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},vn}var bn,ms;function gm(){if(ms)return bn;ms=1;var e=Do(),t=it(),r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!r&&t&&t(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return bn=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(c){return i(c==null?c:o(c))}:!1,bn}var xn,hs;function $o(){if(hs)return xn;hs=1;var e=Bl(),t=ql(),r=gm();return xn=e?function(o){return e(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:r?function(o){return r(o)}:null,xn}var Cn,gs;function Fl(){if(gs)return Cn;gs=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=vt();return Cn=r.call(e,t),Cn}var Sn,ys;function zl(){if(ys)return Sn;ys=1;var e,t=Dl(),r=Jp(),n=em(),o=tm(),i=rm(),a=$l(),c=_t(),l=nm(),u=om(),f=im(),p=sm(),d=am(),h=cm(),m=lm(),y=dm(),g=Function,b=function(J){try{return g('"use strict"; return ('+J+").constructor;")()}catch{}},A=it(),_=rr(),E=function(){throw new c},S=A?function(){try{return arguments.callee,E}catch{try{return A(arguments,"callee").get}catch{return E}}}():E,P=pm()(),x=$o(),I=ql(),B=Bl(),R=Lo(),O=ko(),N={},$=typeof Uint8Array>"u"||!x?e:x(Uint8Array),w={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":P&&x?x([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":N,"%AsyncGenerator%":N,"%AsyncGeneratorFunction%":N,"%AsyncIteratorPrototype%":N,"%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%":n,"%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%":g,"%GeneratorFunction%":N,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&x?x(x([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!P||!x?e:x(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":A,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!P||!x?e:x(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&x?x(""[Symbol.iterator]()):e,"%Symbol%":P?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":S,"%TypedArray%":$,"%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%":O,"%Function.prototype.apply%":R,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":I,"%Math.abs%":u,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":d,"%Math.pow%":h,"%Math.round%":m,"%Math.sign%":y,"%Reflect.getPrototypeOf%":B};if(x)try{null.error}catch(J){var q=x(x(J));w["%Error.prototype%"]=q}var z=function J(Y){var ee;if(Y==="%AsyncFunction%")ee=b("async function () {}");else if(Y==="%GeneratorFunction%")ee=b("function* () {}");else if(Y==="%AsyncGeneratorFunction%")ee=b("async function* () {}");else if(Y==="%AsyncGenerator%"){var L=J("%AsyncGeneratorFunction%");L&&(ee=L.prototype)}else if(Y==="%AsyncIteratorPrototype%"){var T=J("%AsyncGenerator%");T&&x&&(ee=x(T.prototype))}return w[Y]=ee,ee},U={__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"]},K=vt(),W=Fl(),F=K.call(O,Array.prototype.concat),ne=K.call(R,Array.prototype.splice),j=K.call(O,String.prototype.replace),M=K.call(O,String.prototype.slice),D=K.call(O,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,te=/\\(\\)?/g,Z=function(Y){var ee=M(Y,0,1),L=M(Y,-1);if(ee==="%"&&L!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(L==="%"&&ee!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var T=[];return j(Y,X,function(re,se,ce,le){T[T.length]=ce?j(le,te,"$1"):se||re}),T},k=function(Y,ee){var L=Y,T;if(W(U,L)&&(T=U[L],L="%"+T[0]+"%"),W(w,L)){var re=w[L];if(re===N&&(re=z(L)),typeof re>"u"&&!ee)throw new c("intrinsic "+Y+" exists, but is not available. Please file an issue!");return{alias:T,name:L,value:re}}throw new a("intrinsic "+Y+" does not exist!")};return Sn=function(Y,ee){if(typeof Y!="string"||Y.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ee!="boolean")throw new c('"allowMissing" argument must be a boolean');if(D(/^%?[^%]*%?$/,Y)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var L=Z(Y),T=L.length>0?L[0]:"",re=k("%"+T+"%",ee),se=re.name,ce=re.value,le=!1,ae=re.alias;ae&&(T=ae[0],ne(L,F([0,1],ae)));for(var H=1,he=!0;H<L.length;H+=1){var ie=L[H],me=M(ie,0,1),G=M(ie,-1);if((me==='"'||me==="'"||me==="`"||G==='"'||G==="'"||G==="`")&&me!==G)throw new a("property names with quotes must have matching quotes");if((ie==="constructor"||!he)&&(le=!0),T+="."+ie,se="%"+T+"%",W(w,se))ce=w[se];else if(ce!=null){if(!(ie in ce)){if(!ee)throw new c("base intrinsic for "+Y+" exists, but the property is not available.");return}if(A&&H+1>=L.length){var ue=A(ce,ie);he=!!ue,he&&"get"in ue&&!("originalValue"in ue.get)?ce=ue.get:ce=ce[ie]}else he=W(ce,ie),ce=ce[ie];he&&!le&&(w[se]=ce)}}return ce},Sn}var An,_s;function bt(){if(_s)return An;_s=1;var e=zl(),t=Do(),r=t([e("%String.prototype.indexOf%")]);return An=function(o,i){var a=e(o,!!i);return typeof a=="function"&&r(o,".prototype.")>-1?t([a]):a},An}var En,vs;function ym(){if(vs)return En;vs=1;var e=tr()(),t=bt(),r=t("Object.prototype.toString"),n=function(c){return e&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:r(c)==="[object Arguments]"},o=function(c){return n(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 n(arguments)}();return n.isLegacyArguments=o,En=i?n:o,En}var Rn,bs;function _m(){if(bs)return Rn;bs=1;var e=bt(),t=tr()(),r=Fl(),n=it(),o;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),o=function(d){if(!d||typeof d!="object")return!1;var h=n(d,"lastIndex"),m=h&&r(h,"value");if(!m)return!1;try{i(d,l)}catch(y){return y===a}}}else{var u=e("Object.prototype.toString"),f="[object RegExp]";o=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:u(d)===f}}return Rn=o,Rn}var wn,xs;function vm(){if(xs)return wn;xs=1;var e=bt(),t=_m(),r=e("RegExp.prototype.exec"),n=_t();return wn=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(c){return r(i,c)!==null}},wn}var jn,Cs;function bm(){if(Cs)return jn;Cs=1;var e=bt(),t=vm(),r=t(/^\s*(?:function)?\*/),n=tr()(),o=$o(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),c=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},l;return jn=function(f){if(typeof f!="function")return!1;if(r(a(f)))return!0;if(!n){var p=i(f);return p==="[object GeneratorFunction]"}if(!o)return!1;if(typeof l>"u"){var d=c();l=d?o(d):!1}return o(f)===l},jn}var Pn,Ss;function xm(){if(Ss)return Pn;Ss=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(A){A!==n&&(t=null)}else t=null;var o=/^\s*class\b/,i=function(_){try{var E=e.call(_);return o.test(E)}catch{return!1}},a=function(_){try{return i(_)?!1:(e.call(_),!0)}catch{return!1}},c=Object.prototype.toString,l="[object Object]",u="[object Function]",f="[object GeneratorFunction]",p="[object HTMLAllCollection]",d="[object HTML document.all class]",h="[object HTMLCollection]",m=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),g=function(){return!1};if(typeof document=="object"){var b=document.all;c.call(b)===c.call(document.all)&&(g=function(_){if((y||!_)&&(typeof _>"u"||typeof _=="object"))try{var E=c.call(_);return(E===p||E===d||E===h||E===l)&&_("")==null}catch{}return!1})}return Pn=t?function(_){if(g(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;try{t(_,null,r)}catch(E){if(E!==n)return!1}return!i(_)&&a(_)}:function(_){if(g(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;if(m)return a(_);if(i(_))return!1;var E=c.call(_);return E!==u&&E!==f&&!/^\[object HTML/.test(E)?!1:a(_)},Pn}var In,As;function Cm(){if(As)return In;As=1;var e=xm(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(l,u,f){for(var p=0,d=l.length;p<d;p++)r.call(l,p)&&(f==null?u(l[p],p,l):u.call(f,l[p],p,l))},o=function(l,u,f){for(var p=0,d=l.length;p<d;p++)f==null?u(l.charAt(p),p,l):u.call(f,l.charAt(p),p,l)},i=function(l,u,f){for(var p in l)r.call(l,p)&&(f==null?u(l[p],p,l):u.call(f,l[p],p,l))};function a(c){return t.call(c)==="[object Array]"}return In=function(l,u,f){if(!e(u))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=f),a(l)?n(l,u,p):typeof l=="string"?o(l,u,p):i(l,u,p)},In}var Nn,Es;function Sm(){return Es||(Es=1,Nn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Nn}var On,Rs;function Am(){if(Rs)return On;Rs=1;var e=Sm(),t=typeof globalThis>"u"?Mc:globalThis;return On=function(){for(var n=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(n[n.length]=e[o]);return n},On}var Tn={exports:{}},Mn,ws;function Em(){if(ws)return Mn;ws=1;var e=rr(),t=$l(),r=_t(),n=it();return Mn=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,f=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,d=!!n&&n(i,a);if(e)e(i,a,{configurable:f===null&&d?d.configurable:!f,enumerable:l===null&&d?d.enumerable:!l,value:c,writable:u===null&&d?d.writable:!u});else if(p||!l&&!u&&!f)i[a]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Mn}var kn,js;function Rm(){if(js)return kn;js=1;var e=rr(),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 Ln,Ps;function wm(){if(Ps)return Ln;Ps=1;var e=zl(),t=Em(),r=Rm()(),n=it(),o=_t(),i=e("%Math.floor%");return Ln=function(c,l){if(typeof c!="function")throw new o("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||i(l)!==l)throw new o("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],f=!0,p=!0;if("length"in c&&n){var d=n(c,"length");d&&!d.configurable&&(f=!1),d&&!d.writable&&(p=!1)}return(f||p||!u)&&(r?t(c,"length",l,!0,!0):t(c,"length",l)),c},Ln}var Dn,Is;function jm(){if(Is)return Dn;Is=1;var e=vt(),t=Lo(),r=Hl();return Dn=function(){return r(e,t,arguments)},Dn}var Ns;function Pm(){return Ns||(Ns=1,function(e){var t=wm(),r=rr(),n=Do(),o=jm();e.exports=function(a){var c=n(arguments),l=a.length-(arguments.length-1);return t(c,1+(l>0?l:0),!0)},r?r(e.exports,"apply",{value:o}):e.exports.apply=o}(Tn)),Tn.exports}var $n,Os;function Ul(){if(Os)return $n;Os=1;var e=Cm(),t=Am(),r=Pm(),n=bt(),o=it(),i=$o(),a=n("Object.prototype.toString"),c=tr()(),l=typeof globalThis>"u"?Mc:globalThis,u=t(),f=n("String.prototype.slice"),p=n("Array.prototype.indexOf",!0)||function(g,b){for(var A=0;A<g.length;A+=1)if(g[A]===b)return A;return-1},d={__proto__:null};c&&o&&i?e(u,function(y){var g=new l[y];if(Symbol.toStringTag in g&&i){var b=i(g),A=o(b,Symbol.toStringTag);if(!A&&b){var _=i(b);A=o(_,Symbol.toStringTag)}d["$"+y]=r(A.get)}}):e(u,function(y){var g=new l[y],b=g.slice||g.set;b&&(d["$"+y]=r(b))});var h=function(g){var b=!1;return e(d,function(A,_){if(!b)try{"$"+A(g)===_&&(b=f(_,1))}catch{}}),b},m=function(g){var b=!1;return e(d,function(A,_){if(!b)try{A(g),b=f(_,1)}catch{}}),b};return $n=function(g){if(!g||typeof g!="object")return!1;if(!c){var b=f(a(g),8,-1);return p(u,b)>-1?b:b!=="Object"?!1:m(g)}return o?h(g):null},$n}var Bn,Ts;function Im(){if(Ts)return Bn;Ts=1;var e=Ul();return Bn=function(r){return!!e(r)},Bn}var Ms;function Nm(){return Ms||(Ms=1,function(e){var t=ym(),r=bm(),n=Ul(),o=Im();function i(H){return H.call.bind(H)}var a=typeof BigInt<"u",c=typeof Symbol<"u",l=i(Object.prototype.toString),u=i(Number.prototype.valueOf),f=i(String.prototype.valueOf),p=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(c)var h=i(Symbol.prototype.valueOf);function m(H,he){if(typeof H!="object")return!1;try{return he(H),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=o;function y(H){return typeof Promise<"u"&&H instanceof Promise||H!==null&&typeof H=="object"&&typeof H.then=="function"&&typeof H.catch=="function"}e.isPromise=y;function g(H){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(H):o(H)||M(H)}e.isArrayBufferView=g;function b(H){return n(H)==="Uint8Array"}e.isUint8Array=b;function A(H){return n(H)==="Uint8ClampedArray"}e.isUint8ClampedArray=A;function _(H){return n(H)==="Uint16Array"}e.isUint16Array=_;function E(H){return n(H)==="Uint32Array"}e.isUint32Array=E;function S(H){return n(H)==="Int8Array"}e.isInt8Array=S;function P(H){return n(H)==="Int16Array"}e.isInt16Array=P;function x(H){return n(H)==="Int32Array"}e.isInt32Array=x;function I(H){return n(H)==="Float32Array"}e.isFloat32Array=I;function B(H){return n(H)==="Float64Array"}e.isFloat64Array=B;function R(H){return n(H)==="BigInt64Array"}e.isBigInt64Array=R;function O(H){return n(H)==="BigUint64Array"}e.isBigUint64Array=O;function N(H){return l(H)==="[object Map]"}N.working=typeof Map<"u"&&N(new Map);function $(H){return typeof Map>"u"?!1:N.working?N(H):H instanceof Map}e.isMap=$;function w(H){return l(H)==="[object Set]"}w.working=typeof Set<"u"&&w(new Set);function q(H){return typeof Set>"u"?!1:w.working?w(H):H instanceof Set}e.isSet=q;function z(H){return l(H)==="[object WeakMap]"}z.working=typeof WeakMap<"u"&&z(new WeakMap);function U(H){return typeof WeakMap>"u"?!1:z.working?z(H):H instanceof WeakMap}e.isWeakMap=U;function K(H){return l(H)==="[object WeakSet]"}K.working=typeof WeakSet<"u"&&K(new WeakSet);function W(H){return K(H)}e.isWeakSet=W;function F(H){return l(H)==="[object ArrayBuffer]"}F.working=typeof ArrayBuffer<"u"&&F(new ArrayBuffer);function ne(H){return typeof ArrayBuffer>"u"?!1:F.working?F(H):H instanceof ArrayBuffer}e.isArrayBuffer=ne;function j(H){return l(H)==="[object DataView]"}j.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&j(new DataView(new ArrayBuffer(1),0,1));function M(H){return typeof DataView>"u"?!1:j.working?j(H):H instanceof DataView}e.isDataView=M;var D=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function X(H){return l(H)==="[object SharedArrayBuffer]"}function te(H){return typeof D>"u"?!1:(typeof X.working>"u"&&(X.working=X(new D)),X.working?X(H):H instanceof D)}e.isSharedArrayBuffer=te;function Z(H){return l(H)==="[object AsyncFunction]"}e.isAsyncFunction=Z;function k(H){return l(H)==="[object Map Iterator]"}e.isMapIterator=k;function J(H){return l(H)==="[object Set Iterator]"}e.isSetIterator=J;function Y(H){return l(H)==="[object Generator]"}e.isGeneratorObject=Y;function ee(H){return l(H)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=ee;function L(H){return m(H,u)}e.isNumberObject=L;function T(H){return m(H,f)}e.isStringObject=T;function re(H){return m(H,p)}e.isBooleanObject=re;function se(H){return a&&m(H,d)}e.isBigIntObject=se;function ce(H){return c&&m(H,h)}e.isSymbolObject=ce;function le(H){return L(H)||T(H)||re(H)||se(H)||ce(H)}e.isBoxedPrimitive=le;function ae(H){return typeof Uint8Array<"u"&&(ne(H)||te(H))}e.isAnyArrayBuffer=ae,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(H){Object.defineProperty(e,H,{enumerable:!1,value:function(){throw new Error(H+" is not supported in userland")}})})}(Hr)),Hr}var qn,ks;function Om(){return ks||(ks=1,qn=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),qn}var $t={exports:{}},Ls;function Tm(){return Ls||(Ls=1,typeof Object.create=="function"?$t.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:$t.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),$t.exports}var Ds;function Mm(){return Ds||(Ds=1,function(e){var t=Object.getOwnPropertyDescriptors||function(M){for(var D=Object.keys(M),X={},te=0;te<D.length;te++)X[D[te]]=Object.getOwnPropertyDescriptor(M,D[te]);return X},r=/%[sdj%]/g;e.format=function(j){if(!S(j)){for(var M=[],D=0;D<arguments.length;D++)M.push(a(arguments[D]));return M.join(" ")}for(var D=1,X=arguments,te=X.length,Z=String(j).replace(r,function(J){if(J==="%%")return"%";if(D>=te)return J;switch(J){case"%s":return String(X[D++]);case"%d":return Number(X[D++]);case"%j":try{return JSON.stringify(X[D++])}catch{return"[Circular]"}default:return J}}),k=X[D];D<te;k=X[++D])A(k)||!B(k)?Z+=" "+k:Z+=" "+a(k);return Z},e.deprecate=function(j,M){if(typeof process<"u"&&process.noDeprecation===!0)return j;if(typeof process>"u")return function(){return e.deprecate(j,M).apply(this,arguments)};var D=!1;function X(){if(!D){if(process.throwDeprecation)throw new Error(M);process.traceDeprecation?console.trace(M):console.error(M),D=!0}return j.apply(this,arguments)}return X};var n={},o=/^$/;if(process.env.NODE_DEBUG){var i=process.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+i+"$","i")}e.debuglog=function(j){if(j=j.toUpperCase(),!n[j])if(o.test(j)){var M=process.pid;n[j]=function(){var D=e.format.apply(e,arguments);console.error("%s %d: %s",j,M,D)}}else n[j]=function(){};return n[j]};function a(j,M){var D={seen:[],stylize:l};return arguments.length>=3&&(D.depth=arguments[2]),arguments.length>=4&&(D.colors=arguments[3]),b(M)?D.showHidden=M:M&&e._extend(D,M),x(D.showHidden)&&(D.showHidden=!1),x(D.depth)&&(D.depth=2),x(D.colors)&&(D.colors=!1),x(D.customInspect)&&(D.customInspect=!0),D.colors&&(D.stylize=c),f(D,j,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(j,M){var D=a.styles[M];return D?"\x1B["+a.colors[D][0]+"m"+j+"\x1B["+a.colors[D][1]+"m":j}function l(j,M){return j}function u(j){var M={};return j.forEach(function(D,X){M[D]=!0}),M}function f(j,M,D){if(j.customInspect&&M&&N(M.inspect)&&M.inspect!==e.inspect&&!(M.constructor&&M.constructor.prototype===M)){var X=M.inspect(D,j);return S(X)||(X=f(j,X,D)),X}var te=p(j,M);if(te)return te;var Z=Object.keys(M),k=u(Z);if(j.showHidden&&(Z=Object.getOwnPropertyNames(M)),O(M)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return d(M);if(Z.length===0){if(N(M)){var J=M.name?": "+M.name:"";return j.stylize("[Function"+J+"]","special")}if(I(M))return j.stylize(RegExp.prototype.toString.call(M),"regexp");if(R(M))return j.stylize(Date.prototype.toString.call(M),"date");if(O(M))return d(M)}var Y="",ee=!1,L=["{","}"];if(g(M)&&(ee=!0,L=["[","]"]),N(M)){var T=M.name?": "+M.name:"";Y=" [Function"+T+"]"}if(I(M)&&(Y=" "+RegExp.prototype.toString.call(M)),R(M)&&(Y=" "+Date.prototype.toUTCString.call(M)),O(M)&&(Y=" "+d(M)),Z.length===0&&(!ee||M.length==0))return L[0]+Y+L[1];if(D<0)return I(M)?j.stylize(RegExp.prototype.toString.call(M),"regexp"):j.stylize("[Object]","special");j.seen.push(M);var re;return ee?re=h(j,M,D,k,Z):re=Z.map(function(se){return m(j,M,D,k,se,ee)}),j.seen.pop(),y(re,Y,L)}function p(j,M){if(x(M))return j.stylize("undefined","undefined");if(S(M)){var D="'"+JSON.stringify(M).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return j.stylize(D,"string")}if(E(M))return j.stylize(""+M,"number");if(b(M))return j.stylize(""+M,"boolean");if(A(M))return j.stylize("null","null")}function d(j){return"["+Error.prototype.toString.call(j)+"]"}function h(j,M,D,X,te){for(var Z=[],k=0,J=M.length;k<J;++k)K(M,String(k))?Z.push(m(j,M,D,X,String(k),!0)):Z.push("");return te.forEach(function(Y){Y.match(/^\d+$/)||Z.push(m(j,M,D,X,Y,!0))}),Z}function m(j,M,D,X,te,Z){var k,J,Y;if(Y=Object.getOwnPropertyDescriptor(M,te)||{value:M[te]},Y.get?Y.set?J=j.stylize("[Getter/Setter]","special"):J=j.stylize("[Getter]","special"):Y.set&&(J=j.stylize("[Setter]","special")),K(X,te)||(k="["+te+"]"),J||(j.seen.indexOf(Y.value)<0?(A(D)?J=f(j,Y.value,null):J=f(j,Y.value,D-1),J.indexOf(`
15
+ See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);return s.default.cloneElement(S,{key:x})})}function g(j){let{children:v}=j;const A=(0,s.useContext)(c.AmpStateContext),S=(0,s.useContext)(l.HeadManagerContext);return s.default.createElement(a.default,{reduceComponentsToState:y,headManager:S,inAmpMode:(0,u.isInAmpMode)(A)},v)}const b=g;(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 qr={},Gi;function Hm(){return Gi||(Gi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return i}});const r=Pe._(C),n=ir,i=r.default.createContext(n.imageConfigDefault);process.env.NODE_ENV!=="production"&&(i.displayName="ImageConfigContext")}(qr)),qr}var zr={},Hr={},Ur={exports:{}};const Um=Ff(Me.__viteBrowserExternal);var Gr={},Wr={},Vr,Wi;function nu(){return Wi||(Wi=1,Vr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var s 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!==i||c.enumerable!==!0)return!1}return!0}),Vr}var Kr,Vi;function sr(){if(Vi)return Kr;Vi=1;var e=nu();return Kr=function(){return e()&&!!Symbol.toStringTag},Kr}var Xr,Ki;function ou(){return Ki||(Ki=1,Xr=Object),Xr}var Qr,Xi;function Gm(){return Xi||(Xi=1,Qr=Error),Qr}var Yr,Qi;function Wm(){return Qi||(Qi=1,Yr=EvalError),Yr}var Zr,Yi;function Vm(){return Yi||(Yi=1,Zr=RangeError),Zr}var Jr,Zi;function Km(){return Zi||(Zi=1,Jr=ReferenceError),Jr}var en,Ji;function iu(){return Ji||(Ji=1,en=SyntaxError),en}var tn,es;function jt(){return es||(es=1,tn=TypeError),tn}var rn,ts;function Xm(){return ts||(ts=1,rn=URIError),rn}var nn,rs;function Qm(){return rs||(rs=1,nn=Math.abs),nn}var on,ns;function Ym(){return ns||(ns=1,on=Math.floor),on}var sn,os;function Zm(){return os||(os=1,sn=Math.max),sn}var an,is;function Jm(){return is||(is=1,an=Math.min),an}var cn,ss;function eh(){return ss||(ss=1,cn=Math.pow),cn}var ln,as;function th(){return as||(as=1,ln=Math.round),ln}var un,cs;function rh(){return cs||(cs=1,un=Number.isNaN||function(t){return t!==t}),un}var dn,ls;function nh(){if(ls)return dn;ls=1;var e=rh();return dn=function(r){return e(r)||r===0?r:r<0?-1:1},dn}var fn,us;function oh(){return us||(us=1,fn=Object.getOwnPropertyDescriptor),fn}var pn,ds;function dt(){if(ds)return pn;ds=1;var e=oh();if(e)try{e([],"length")}catch{e=null}return pn=e,pn}var mn,fs;function ar(){if(fs)return mn;fs=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return mn=e,mn}var hn,ps;function ih(){if(ps)return hn;ps=1;var e=typeof Symbol<"u"&&Symbol,t=nu();return hn=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},hn}var gn,ms;function su(){return ms||(ms=1,gn=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),gn}var yn,hs;function au(){if(hs)return yn;hs=1;var e=ou();return yn=e.getPrototypeOf||null,yn}var _n,gs;function sh(){if(gs)return _n;gs=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",i=function(l,u){for(var f=[],p=0;p<l.length;p+=1)f[p]=l[p];for(var d=0;d<u.length;d+=1)f[d+l.length]=u[d];return f},s=function(l,u){for(var f=[],p=u,d=0;p<l.length;p+=1,d+=1)f[d]=l[p];return f},a=function(c,l){for(var u="",f=0;f<c.length;f+=1)u+=c[f],f+1<c.length&&(u+=l);return u};return _n=function(l){var u=this;if(typeof u!="function"||t.apply(u)!==n)throw new TypeError(e+u);for(var f=s(arguments,1),p,d=function(){if(this instanceof p){var b=u.apply(this,i(f,arguments));return Object(b)===b?b:this}return u.apply(l,i(f,arguments))},m=r(0,u.length-f.length),h=[],y=0;y<m;y++)h[y]="$"+y;if(p=Function("binder","return function ("+a(h,",")+"){ return binder.apply(this,arguments); }")(d),u.prototype){var g=function(){};g.prototype=u.prototype,p.prototype=new g,g.prototype=null}return p},_n}var vn,ys;function At(){if(ys)return vn;ys=1;var e=sh();return vn=Function.prototype.bind||e,vn}var bn,_s;function Ho(){return _s||(_s=1,bn=Function.prototype.call),bn}var xn,vs;function Uo(){return vs||(vs=1,xn=Function.prototype.apply),xn}var Cn,bs;function ah(){return bs||(bs=1,Cn=typeof Reflect<"u"&&Reflect&&Reflect.apply),Cn}var Sn,xs;function cu(){if(xs)return Sn;xs=1;var e=At(),t=Uo(),r=Ho(),n=ah();return Sn=n||e.call(r,t),Sn}var jn,Cs;function Go(){if(Cs)return jn;Cs=1;var e=At(),t=jt(),r=Ho(),n=cu();return jn=function(s){if(s.length<1||typeof s[0]!="function")throw new t("a function is required");return n(e,r,s)},jn}var An,Ss;function ch(){if(Ss)return An;Ss=1;var e=Go(),t=dt(),r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!r&&t&&t(Object.prototype,"__proto__"),i=Object,s=i.getPrototypeOf;return An=n&&typeof n.get=="function"?e([n.get]):typeof s=="function"?function(c){return s(c==null?c:i(c))}:!1,An}var En,js;function Wo(){if(js)return En;js=1;var e=su(),t=au(),r=ch();return En=e?function(i){return e(i)}:t?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return t(i)}:r?function(i){return r(i)}:null,En}var Rn,As;function lu(){if(As)return Rn;As=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=At();return Rn=r.call(e,t),Rn}var wn,Es;function uu(){if(Es)return wn;Es=1;var e,t=ou(),r=Gm(),n=Wm(),i=Vm(),s=Km(),a=iu(),c=jt(),l=Xm(),u=Qm(),f=Ym(),p=Zm(),d=Jm(),m=eh(),h=th(),y=nh(),g=Function,b=function(J){try{return g('"use strict"; return ('+J+").constructor;")()}catch{}},j=dt(),v=ar(),A=function(){throw new c},S=j?function(){try{return arguments.callee,A}catch{try{return j(arguments,"callee").get}catch{return A}}}():A,P=ih()(),x=Wo(),I=au(),B=su(),E=Uo(),O=Ho(),N={},$=typeof Uint8Array>"u"||!x?e:x(Uint8Array),R={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":P&&x?x([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":N,"%AsyncGenerator%":N,"%AsyncGeneratorFunction%":N,"%AsyncIteratorPrototype%":N,"%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%":n,"%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%":g,"%GeneratorFunction%":N,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&x?x(x([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!P||!x?e:x(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%":i,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!P||!x?e:x(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&x?x(""[Symbol.iterator]()):e,"%Symbol%":P?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":S,"%TypedArray%":$,"%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%":O,"%Function.prototype.apply%":E,"%Object.defineProperty%":v,"%Object.getPrototypeOf%":I,"%Math.abs%":u,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":d,"%Math.pow%":m,"%Math.round%":h,"%Math.sign%":y,"%Reflect.getPrototypeOf%":B};if(x)try{null.error}catch(J){var F=x(x(J));R["%Error.prototype%"]=F}var H=function J(Y){var ee;if(Y==="%AsyncFunction%")ee=b("async function () {}");else if(Y==="%GeneratorFunction%")ee=b("function* () {}");else if(Y==="%AsyncGeneratorFunction%")ee=b("async function* () {}");else if(Y==="%AsyncGenerator%"){var L=J("%AsyncGeneratorFunction%");L&&(ee=L.prototype)}else if(Y==="%AsyncIteratorPrototype%"){var T=J("%AsyncGenerator%");T&&x&&(ee=x(T.prototype))}return R[Y]=ee,ee},U={__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"]},K=At(),W=lu(),z=K.call(O,Array.prototype.concat),ne=K.call(E,Array.prototype.splice),w=K.call(O,String.prototype.replace),M=K.call(O,String.prototype.slice),D=K.call(O,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,te=/\\(\\)?/g,Z=function(Y){var ee=M(Y,0,1),L=M(Y,-1);if(ee==="%"&&L!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(L==="%"&&ee!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var T=[];return w(Y,X,function(re,se,ce,le){T[T.length]=ce?w(le,te,"$1"):se||re}),T},k=function(Y,ee){var L=Y,T;if(W(U,L)&&(T=U[L],L="%"+T[0]+"%"),W(R,L)){var re=R[L];if(re===N&&(re=H(L)),typeof re>"u"&&!ee)throw new c("intrinsic "+Y+" exists, but is not available. Please file an issue!");return{alias:T,name:L,value:re}}throw new a("intrinsic "+Y+" does not exist!")};return wn=function(Y,ee){if(typeof Y!="string"||Y.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ee!="boolean")throw new c('"allowMissing" argument must be a boolean');if(D(/^%?[^%]*%?$/,Y)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var L=Z(Y),T=L.length>0?L[0]:"",re=k("%"+T+"%",ee),se=re.name,ce=re.value,le=!1,ae=re.alias;ae&&(T=ae[0],ne(L,z([0,1],ae)));for(var q=1,he=!0;q<L.length;q+=1){var ie=L[q],me=M(ie,0,1),G=M(ie,-1);if((me==='"'||me==="'"||me==="`"||G==='"'||G==="'"||G==="`")&&me!==G)throw new a("property names with quotes must have matching quotes");if((ie==="constructor"||!he)&&(le=!0),T+="."+ie,se="%"+T+"%",W(R,se))ce=R[se];else if(ce!=null){if(!(ie in ce)){if(!ee)throw new c("base intrinsic for "+Y+" exists, but the property is not available.");return}if(j&&q+1>=L.length){var ue=j(ce,ie);he=!!ue,he&&"get"in ue&&!("originalValue"in ue.get)?ce=ue.get:ce=ce[ie]}else he=W(ce,ie),ce=ce[ie];he&&!le&&(R[se]=ce)}}return ce},wn}var Pn,Rs;function Et(){if(Rs)return Pn;Rs=1;var e=uu(),t=Go(),r=t([e("%String.prototype.indexOf%")]);return Pn=function(i,s){var a=e(i,!!s);return typeof a=="function"&&r(i,".prototype.")>-1?t([a]):a},Pn}var In,ws;function lh(){if(ws)return In;ws=1;var e=sr()(),t=Et(),r=t("Object.prototype.toString"),n=function(c){return e&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:r(c)==="[object Arguments]"},i=function(c){return n(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]"},s=function(){return n(arguments)}();return n.isLegacyArguments=i,In=s?n:i,In}var Nn,Ps;function uh(){if(Ps)return Nn;Ps=1;var e=Et(),t=sr()(),r=lu(),n=dt(),i;if(t){var s=e("RegExp.prototype.exec"),a={},c=function(){throw a},l={toString:c,valueOf:c};typeof Symbol.toPrimitive=="symbol"&&(l[Symbol.toPrimitive]=c),i=function(d){if(!d||typeof d!="object")return!1;var m=n(d,"lastIndex"),h=m&&r(m,"value");if(!h)return!1;try{s(d,l)}catch(y){return y===a}}}else{var u=e("Object.prototype.toString"),f="[object RegExp]";i=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:u(d)===f}}return Nn=i,Nn}var On,Is;function dh(){if(Is)return On;Is=1;var e=Et(),t=uh(),r=e("RegExp.prototype.exec"),n=jt();return On=function(s){if(!t(s))throw new n("`regex` must be a RegExp");return function(c){return r(s,c)!==null}},On}var Tn,Ns;function fh(){if(Ns)return Tn;Ns=1;var e=Et(),t=dh(),r=t(/^\s*(?:function)?\*/),n=sr()(),i=Wo(),s=e("Object.prototype.toString"),a=e("Function.prototype.toString"),c=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},l;return Tn=function(f){if(typeof f!="function")return!1;if(r(a(f)))return!0;if(!n){var p=s(f);return p==="[object GeneratorFunction]"}if(!i)return!1;if(typeof l>"u"){var d=c();l=d?i(d):!1}return i(f)===l},Tn}var Mn,Os;function ph(){if(Os)return Mn;Os=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(j){j!==n&&(t=null)}else t=null;var i=/^\s*class\b/,s=function(v){try{var A=e.call(v);return i.test(A)}catch{return!1}},a=function(v){try{return s(v)?!1:(e.call(v),!0)}catch{return!1}},c=Object.prototype.toString,l="[object Object]",u="[object Function]",f="[object GeneratorFunction]",p="[object HTMLAllCollection]",d="[object HTML document.all class]",m="[object HTMLCollection]",h=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),g=function(){return!1};if(typeof document=="object"){var b=document.all;c.call(b)===c.call(document.all)&&(g=function(v){if((y||!v)&&(typeof v>"u"||typeof v=="object"))try{var A=c.call(v);return(A===p||A===d||A===m||A===l)&&v("")==null}catch{}return!1})}return Mn=t?function(v){if(g(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;try{t(v,null,r)}catch(A){if(A!==n)return!1}return!s(v)&&a(v)}:function(v){if(g(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;if(h)return a(v);if(s(v))return!1;var A=c.call(v);return A!==u&&A!==f&&!/^\[object HTML/.test(A)?!1:a(v)},Mn}var kn,Ts;function mh(){if(Ts)return kn;Ts=1;var e=ph(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(l,u,f){for(var p=0,d=l.length;p<d;p++)r.call(l,p)&&(f==null?u(l[p],p,l):u.call(f,l[p],p,l))},i=function(l,u,f){for(var p=0,d=l.length;p<d;p++)f==null?u(l.charAt(p),p,l):u.call(f,l.charAt(p),p,l)},s=function(l,u,f){for(var p in l)r.call(l,p)&&(f==null?u(l[p],p,l):u.call(f,l[p],p,l))};function a(c){return t.call(c)==="[object Array]"}return kn=function(l,u,f){if(!e(u))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=f),a(l)?n(l,u,p):typeof l=="string"?i(l,u,p):s(l,u,p)},kn}var Ln,Ms;function hh(){return Ms||(Ms=1,Ln=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Ln}var Dn,ks;function gh(){if(ks)return Dn;ks=1;var e=hh(),t=typeof globalThis>"u"?Vc:globalThis;return Dn=function(){for(var n=[],i=0;i<e.length;i++)typeof t[e[i]]=="function"&&(n[n.length]=e[i]);return n},Dn}var $n={exports:{}},Bn,Ls;function yh(){if(Ls)return Bn;Ls=1;var e=ar(),t=iu(),r=jt(),n=dt();return Bn=function(s,a,c){if(!s||typeof s!="object"&&typeof s!="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,f=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,d=!!n&&n(s,a);if(e)e(s,a,{configurable:f===null&&d?d.configurable:!f,enumerable:l===null&&d?d.enumerable:!l,value:c,writable:u===null&&d?d.writable:!u});else if(p||!l&&!u&&!f)s[a]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Bn}var Fn,Ds;function _h(){if(Ds)return Fn;Ds=1;var e=ar(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Fn=t,Fn}var qn,$s;function vh(){if($s)return qn;$s=1;var e=uu(),t=yh(),r=_h()(),n=dt(),i=jt(),s=e("%Math.floor%");return qn=function(c,l){if(typeof c!="function")throw new i("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||s(l)!==l)throw new i("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],f=!0,p=!0;if("length"in c&&n){var d=n(c,"length");d&&!d.configurable&&(f=!1),d&&!d.writable&&(p=!1)}return(f||p||!u)&&(r?t(c,"length",l,!0,!0):t(c,"length",l)),c},qn}var zn,Bs;function bh(){if(Bs)return zn;Bs=1;var e=At(),t=Uo(),r=cu();return zn=function(){return r(e,t,arguments)},zn}var Fs;function xh(){return Fs||(Fs=1,function(e){var t=vh(),r=ar(),n=Go(),i=bh();e.exports=function(a){var c=n(arguments),l=a.length-(arguments.length-1);return t(c,1+(l>0?l:0),!0)},r?r(e.exports,"apply",{value:i}):e.exports.apply=i}($n)),$n.exports}var Hn,qs;function du(){if(qs)return Hn;qs=1;var e=mh(),t=gh(),r=xh(),n=Et(),i=dt(),s=Wo(),a=n("Object.prototype.toString"),c=sr()(),l=typeof globalThis>"u"?Vc:globalThis,u=t(),f=n("String.prototype.slice"),p=n("Array.prototype.indexOf",!0)||function(g,b){for(var j=0;j<g.length;j+=1)if(g[j]===b)return j;return-1},d={__proto__:null};c&&i&&s?e(u,function(y){var g=new l[y];if(Symbol.toStringTag in g&&s){var b=s(g),j=i(b,Symbol.toStringTag);if(!j&&b){var v=s(b);j=i(v,Symbol.toStringTag)}d["$"+y]=r(j.get)}}):e(u,function(y){var g=new l[y],b=g.slice||g.set;b&&(d["$"+y]=r(b))});var m=function(g){var b=!1;return e(d,function(j,v){if(!b)try{"$"+j(g)===v&&(b=f(v,1))}catch{}}),b},h=function(g){var b=!1;return e(d,function(j,v){if(!b)try{j(g),b=f(v,1)}catch{}}),b};return Hn=function(g){if(!g||typeof g!="object")return!1;if(!c){var b=f(a(g),8,-1);return p(u,b)>-1?b:b!=="Object"?!1:h(g)}return i?m(g):null},Hn}var Un,zs;function Ch(){if(zs)return Un;zs=1;var e=du();return Un=function(r){return!!e(r)},Un}var Hs;function Sh(){return Hs||(Hs=1,function(e){var t=lh(),r=fh(),n=du(),i=Ch();function s(q){return q.call.bind(q)}var a=typeof BigInt<"u",c=typeof Symbol<"u",l=s(Object.prototype.toString),u=s(Number.prototype.valueOf),f=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(a)var d=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function h(q,he){if(typeof q!="object")return!1;try{return he(q),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=i;function y(q){return typeof Promise<"u"&&q instanceof Promise||q!==null&&typeof q=="object"&&typeof q.then=="function"&&typeof q.catch=="function"}e.isPromise=y;function g(q){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(q):i(q)||M(q)}e.isArrayBufferView=g;function b(q){return n(q)==="Uint8Array"}e.isUint8Array=b;function j(q){return n(q)==="Uint8ClampedArray"}e.isUint8ClampedArray=j;function v(q){return n(q)==="Uint16Array"}e.isUint16Array=v;function A(q){return n(q)==="Uint32Array"}e.isUint32Array=A;function S(q){return n(q)==="Int8Array"}e.isInt8Array=S;function P(q){return n(q)==="Int16Array"}e.isInt16Array=P;function x(q){return n(q)==="Int32Array"}e.isInt32Array=x;function I(q){return n(q)==="Float32Array"}e.isFloat32Array=I;function B(q){return n(q)==="Float64Array"}e.isFloat64Array=B;function E(q){return n(q)==="BigInt64Array"}e.isBigInt64Array=E;function O(q){return n(q)==="BigUint64Array"}e.isBigUint64Array=O;function N(q){return l(q)==="[object Map]"}N.working=typeof Map<"u"&&N(new Map);function $(q){return typeof Map>"u"?!1:N.working?N(q):q instanceof Map}e.isMap=$;function R(q){return l(q)==="[object Set]"}R.working=typeof Set<"u"&&R(new Set);function F(q){return typeof Set>"u"?!1:R.working?R(q):q instanceof Set}e.isSet=F;function H(q){return l(q)==="[object WeakMap]"}H.working=typeof WeakMap<"u"&&H(new WeakMap);function U(q){return typeof WeakMap>"u"?!1:H.working?H(q):q instanceof WeakMap}e.isWeakMap=U;function K(q){return l(q)==="[object WeakSet]"}K.working=typeof WeakSet<"u"&&K(new WeakSet);function W(q){return K(q)}e.isWeakSet=W;function z(q){return l(q)==="[object ArrayBuffer]"}z.working=typeof ArrayBuffer<"u"&&z(new ArrayBuffer);function ne(q){return typeof ArrayBuffer>"u"?!1:z.working?z(q):q instanceof ArrayBuffer}e.isArrayBuffer=ne;function w(q){return l(q)==="[object DataView]"}w.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&w(new DataView(new ArrayBuffer(1),0,1));function M(q){return typeof DataView>"u"?!1:w.working?w(q):q instanceof DataView}e.isDataView=M;var D=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function X(q){return l(q)==="[object SharedArrayBuffer]"}function te(q){return typeof D>"u"?!1:(typeof X.working>"u"&&(X.working=X(new D)),X.working?X(q):q instanceof D)}e.isSharedArrayBuffer=te;function Z(q){return l(q)==="[object AsyncFunction]"}e.isAsyncFunction=Z;function k(q){return l(q)==="[object Map Iterator]"}e.isMapIterator=k;function J(q){return l(q)==="[object Set Iterator]"}e.isSetIterator=J;function Y(q){return l(q)==="[object Generator]"}e.isGeneratorObject=Y;function ee(q){return l(q)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=ee;function L(q){return h(q,u)}e.isNumberObject=L;function T(q){return h(q,f)}e.isStringObject=T;function re(q){return h(q,p)}e.isBooleanObject=re;function se(q){return a&&h(q,d)}e.isBigIntObject=se;function ce(q){return c&&h(q,m)}e.isSymbolObject=ce;function le(q){return L(q)||T(q)||re(q)||se(q)||ce(q)}e.isBoxedPrimitive=le;function ae(q){return typeof Uint8Array<"u"&&(ne(q)||te(q))}e.isAnyArrayBuffer=ae,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(q){Object.defineProperty(e,q,{enumerable:!1,value:function(){throw new Error(q+" is not supported in userland")}})})}(Wr)),Wr}var Gn,Us;function jh(){return Us||(Us=1,Gn=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Gn}var Ht={exports:{}},Gs;function Ah(){return Gs||(Gs=1,typeof Object.create=="function"?Ht.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Ht.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),Ht.exports}var Ws;function Eh(){return Ws||(Ws=1,function(e){var t=Object.getOwnPropertyDescriptors||function(M){for(var D=Object.keys(M),X={},te=0;te<D.length;te++)X[D[te]]=Object.getOwnPropertyDescriptor(M,D[te]);return X},r=/%[sdj%]/g;e.format=function(w){if(!S(w)){for(var M=[],D=0;D<arguments.length;D++)M.push(a(arguments[D]));return M.join(" ")}for(var D=1,X=arguments,te=X.length,Z=String(w).replace(r,function(J){if(J==="%%")return"%";if(D>=te)return J;switch(J){case"%s":return String(X[D++]);case"%d":return Number(X[D++]);case"%j":try{return JSON.stringify(X[D++])}catch{return"[Circular]"}default:return J}}),k=X[D];D<te;k=X[++D])j(k)||!B(k)?Z+=" "+k:Z+=" "+a(k);return Z},e.deprecate=function(w,M){if(typeof process<"u"&&process.noDeprecation===!0)return w;if(typeof process>"u")return function(){return e.deprecate(w,M).apply(this,arguments)};var D=!1;function X(){if(!D){if(process.throwDeprecation)throw new Error(M);process.traceDeprecation?console.trace(M):console.error(M),D=!0}return w.apply(this,arguments)}return X};var n={},i=/^$/;if(process.env.NODE_DEBUG){var s=process.env.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),i=new RegExp("^"+s+"$","i")}e.debuglog=function(w){if(w=w.toUpperCase(),!n[w])if(i.test(w)){var M=process.pid;n[w]=function(){var D=e.format.apply(e,arguments);console.error("%s %d: %s",w,M,D)}}else n[w]=function(){};return n[w]};function a(w,M){var D={seen:[],stylize:l};return arguments.length>=3&&(D.depth=arguments[2]),arguments.length>=4&&(D.colors=arguments[3]),b(M)?D.showHidden=M:M&&e._extend(D,M),x(D.showHidden)&&(D.showHidden=!1),x(D.depth)&&(D.depth=2),x(D.colors)&&(D.colors=!1),x(D.customInspect)&&(D.customInspect=!0),D.colors&&(D.stylize=c),f(D,w,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(w,M){var D=a.styles[M];return D?"\x1B["+a.colors[D][0]+"m"+w+"\x1B["+a.colors[D][1]+"m":w}function l(w,M){return w}function u(w){var M={};return w.forEach(function(D,X){M[D]=!0}),M}function f(w,M,D){if(w.customInspect&&M&&N(M.inspect)&&M.inspect!==e.inspect&&!(M.constructor&&M.constructor.prototype===M)){var X=M.inspect(D,w);return S(X)||(X=f(w,X,D)),X}var te=p(w,M);if(te)return te;var Z=Object.keys(M),k=u(Z);if(w.showHidden&&(Z=Object.getOwnPropertyNames(M)),O(M)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return d(M);if(Z.length===0){if(N(M)){var J=M.name?": "+M.name:"";return w.stylize("[Function"+J+"]","special")}if(I(M))return w.stylize(RegExp.prototype.toString.call(M),"regexp");if(E(M))return w.stylize(Date.prototype.toString.call(M),"date");if(O(M))return d(M)}var Y="",ee=!1,L=["{","}"];if(g(M)&&(ee=!0,L=["[","]"]),N(M)){var T=M.name?": "+M.name:"";Y=" [Function"+T+"]"}if(I(M)&&(Y=" "+RegExp.prototype.toString.call(M)),E(M)&&(Y=" "+Date.prototype.toUTCString.call(M)),O(M)&&(Y=" "+d(M)),Z.length===0&&(!ee||M.length==0))return L[0]+Y+L[1];if(D<0)return I(M)?w.stylize(RegExp.prototype.toString.call(M),"regexp"):w.stylize("[Object]","special");w.seen.push(M);var re;return ee?re=m(w,M,D,k,Z):re=Z.map(function(se){return h(w,M,D,k,se,ee)}),w.seen.pop(),y(re,Y,L)}function p(w,M){if(x(M))return w.stylize("undefined","undefined");if(S(M)){var D="'"+JSON.stringify(M).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return w.stylize(D,"string")}if(A(M))return w.stylize(""+M,"number");if(b(M))return w.stylize(""+M,"boolean");if(j(M))return w.stylize("null","null")}function d(w){return"["+Error.prototype.toString.call(w)+"]"}function m(w,M,D,X,te){for(var Z=[],k=0,J=M.length;k<J;++k)K(M,String(k))?Z.push(h(w,M,D,X,String(k),!0)):Z.push("");return te.forEach(function(Y){Y.match(/^\d+$/)||Z.push(h(w,M,D,X,Y,!0))}),Z}function h(w,M,D,X,te,Z){var k,J,Y;if(Y=Object.getOwnPropertyDescriptor(M,te)||{value:M[te]},Y.get?Y.set?J=w.stylize("[Getter/Setter]","special"):J=w.stylize("[Getter]","special"):Y.set&&(J=w.stylize("[Setter]","special")),K(X,te)||(k="["+te+"]"),J||(w.seen.indexOf(Y.value)<0?(j(D)?J=f(w,Y.value,null):J=f(w,Y.value,D-1),J.indexOf(`
16
16
  `)>-1&&(Z?J=J.split(`
17
17
  `).map(function(ee){return" "+ee}).join(`
18
18
  `).slice(2):J=`
19
19
  `+J.split(`
20
20
  `).map(function(ee){return" "+ee}).join(`
21
- `))):J=j.stylize("[Circular]","special")),x(k)){if(Z&&te.match(/^\d+$/))return J;k=JSON.stringify(""+te),k.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(k=k.slice(1,-1),k=j.stylize(k,"name")):(k=k.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),k=j.stylize(k,"string"))}return k+": "+J}function y(j,M,D){var X=j.reduce(function(te,Z){return Z.indexOf(`
21
+ `))):J=w.stylize("[Circular]","special")),x(k)){if(Z&&te.match(/^\d+$/))return J;k=JSON.stringify(""+te),k.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(k=k.slice(1,-1),k=w.stylize(k,"name")):(k=k.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),k=w.stylize(k,"string"))}return k+": "+J}function y(w,M,D){var X=w.reduce(function(te,Z){return Z.indexOf(`
22
22
  `)>=0,te+Z.replace(/\u001b\[\d\d?m/g,"").length+1},0);return X>60?D[0]+(M===""?"":M+`
23
- `)+" "+j.join(`,
24
- `)+" "+D[1]:D[0]+M+" "+j.join(", ")+" "+D[1]}e.types=Nm();function g(j){return Array.isArray(j)}e.isArray=g;function b(j){return typeof j=="boolean"}e.isBoolean=b;function A(j){return j===null}e.isNull=A;function _(j){return j==null}e.isNullOrUndefined=_;function E(j){return typeof j=="number"}e.isNumber=E;function S(j){return typeof j=="string"}e.isString=S;function P(j){return typeof j=="symbol"}e.isSymbol=P;function x(j){return j===void 0}e.isUndefined=x;function I(j){return B(j)&&w(j)==="[object RegExp]"}e.isRegExp=I,e.types.isRegExp=I;function B(j){return typeof j=="object"&&j!==null}e.isObject=B;function R(j){return B(j)&&w(j)==="[object Date]"}e.isDate=R,e.types.isDate=R;function O(j){return B(j)&&(w(j)==="[object Error]"||j instanceof Error)}e.isError=O,e.types.isNativeError=O;function N(j){return typeof j=="function"}e.isFunction=N;function $(j){return j===null||typeof j=="boolean"||typeof j=="number"||typeof j=="string"||typeof j=="symbol"||typeof j>"u"}e.isPrimitive=$,e.isBuffer=Om();function w(j){return Object.prototype.toString.call(j)}function q(j){return j<10?"0"+j.toString(10):j.toString(10)}var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function U(){var j=new Date,M=[q(j.getHours()),q(j.getMinutes()),q(j.getSeconds())].join(":");return[j.getDate(),z[j.getMonth()],M].join(" ")}e.log=function(){console.log("%s - %s",U(),e.format.apply(e,arguments))},e.inherits=Tm(),e._extend=function(j,M){if(!M||!B(M))return j;for(var D=Object.keys(M),X=D.length;X--;)j[D[X]]=M[D[X]];return j};function K(j,M){return Object.prototype.hasOwnProperty.call(j,M)}var W=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(M){if(typeof M!="function")throw new TypeError('The "original" argument must be of type Function');if(W&&M[W]){var D=M[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 X,te,Z=new Promise(function(Y,ee){X=Y,te=ee}),k=[],J=0;J<arguments.length;J++)k.push(arguments[J]);k.push(function(Y,ee){Y?te(Y):X(ee)});try{M.apply(this,k)}catch(Y){te(Y)}return Z}return Object.setPrototypeOf(D,Object.getPrototypeOf(M)),W&&Object.defineProperty(D,W,{value:D,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(D,t(M))},e.promisify.custom=W;function F(j,M){if(!j){var D=new Error("Promise was rejected with a falsy value");D.reason=j,j=D}return M(j)}function ne(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');function M(){for(var D=[],X=0;X<arguments.length;X++)D.push(arguments[X]);var te=D.pop();if(typeof te!="function")throw new TypeError("The last argument must be of type Function");var Z=this,k=function(){return te.apply(Z,arguments)};j.apply(this,D).then(function(J){process.nextTick(k.bind(null,null,J))},function(J){process.nextTick(F.bind(null,J,k))})}return Object.setPrototypeOf(M,Object.getPrototypeOf(j)),Object.defineProperties(M,t(j)),M}e.callbackify=ne}(qr)),qr}var $s;function km(){return $s||($s=1,(()=>{var e={333:(o,i,a)=>{const c=a(137),l=a(179),u=a(13),f=a(719),p=(d,h={})=>{let m=[];if(Array.isArray(d))for(let y of d){let g=p.create(y,h);Array.isArray(g)?m.push(...g):m.push(g)}else m=[].concat(p.create(d,h));return h&&h.expand===!0&&h.nodupes===!0&&(m=[...new Set(m)]),m};p.parse=(d,h={})=>f(d,h),p.stringify=(d,h={})=>c(typeof d=="string"?p.parse(d,h):d,h),p.compile=(d,h={})=>(typeof d=="string"&&(d=p.parse(d,h)),l(d,h)),p.expand=(d,h={})=>{typeof d=="string"&&(d=p.parse(d,h));let m=u(d,h);return h.noempty===!0&&(m=m.filter(Boolean)),h.nodupes===!0&&(m=[...new Set(m)]),m},p.create=(d,h={})=>d===""||d.length<3?[d]:h.expand!==!0?p.compile(d,h):p.expand(d,h),o.exports=p},179:(o,i,a)=>{const c=a(783),l=a(617),u=(f,p={})=>{let d=(h,m={})=>{let y=l.isInvalidBrace(m),g=h.invalid===!0&&p.escapeInvalid===!0,b=y===!0||g===!0,A=p.escapeInvalid===!0?"\\":"",_="";if(h.isOpen===!0||h.isClose===!0)return A+h.value;if(h.type==="open")return b?A+h.value:"(";if(h.type==="close")return b?A+h.value:")";if(h.type==="comma")return h.prev.type==="comma"?"":b?h.value:"|";if(h.value)return h.value;if(h.nodes&&h.ranges>0){let E=l.reduce(h.nodes),S=c(...E,{...p,wrap:!1,toRegex:!0});if(S.length!==0)return E.length>1&&S.length>1?`(${S})`:S}if(h.nodes)for(let E of h.nodes)_+=d(E,h);return _};return d(f)};o.exports=u},457:o=>{o.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
- `,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:(o,i,a)=>{const c=a(783),l=a(137),u=a(617),f=(d="",h="",m=!1)=>{let y=[];if(d=[].concat(d),h=[].concat(h),!h.length)return d;if(!d.length)return m?u.flatten(h).map(g=>`{${g}}`):h;for(let g of d)if(Array.isArray(g))for(let b of g)y.push(f(b,h,m));else for(let b of h)m===!0&&typeof b=="string"&&(b=`{${b}}`),y.push(Array.isArray(b)?f(g,b,m):g+b);return u.flatten(y)},p=(d,h={})=>{let m=h.rangeLimit===void 0?1e3:h.rangeLimit,y=(g,b={})=>{g.queue=[];let A=b,_=b.queue;for(;A.type!=="brace"&&A.type!=="root"&&A.parent;)A=A.parent,_=A.queue;if(g.invalid||g.dollar){_.push(f(_.pop(),l(g,h)));return}if(g.type==="brace"&&g.invalid!==!0&&g.nodes.length===2){_.push(f(_.pop(),["{}"]));return}if(g.nodes&&g.ranges>0){let x=u.reduce(g.nodes);if(u.exceedsLimit(...x,h.step,m))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let I=c(...x,h);I.length===0&&(I=l(g,h)),_.push(f(_.pop(),I)),g.nodes=[];return}let E=u.encloseBrace(g),S=g.queue,P=g;for(;P.type!=="brace"&&P.type!=="root"&&P.parent;)P=P.parent,S=P.queue;for(let x=0;x<g.nodes.length;x++){let I=g.nodes[x];if(I.type==="comma"&&g.type==="brace"){x===1&&S.push(""),S.push("");continue}if(I.type==="close"){_.push(f(_.pop(),S,E));continue}if(I.value&&I.type!=="open"){S.push(f(S.pop(),I.value));continue}I.nodes&&y(I,g)}return S};return u.flatten(y(d))};o.exports=p},719:(o,i,a)=>{const c=a(137),{MAX_LENGTH:l,CHAR_BACKSLASH:u,CHAR_BACKTICK:f,CHAR_COMMA:p,CHAR_DOT:d,CHAR_LEFT_PARENTHESES:h,CHAR_RIGHT_PARENTHESES:m,CHAR_LEFT_CURLY_BRACE:y,CHAR_RIGHT_CURLY_BRACE:g,CHAR_LEFT_SQUARE_BRACKET:b,CHAR_RIGHT_SQUARE_BRACKET:A,CHAR_DOUBLE_QUOTE:_,CHAR_SINGLE_QUOTE:E,CHAR_NO_BREAK_SPACE:S,CHAR_ZERO_WIDTH_NOBREAK_SPACE:P}=a(457),x=(I,B={})=>{if(typeof I!="string")throw new TypeError("Expected a string");let R=B||{},O=typeof R.maxLength=="number"?Math.min(l,R.maxLength):l;if(I.length>O)throw new SyntaxError(`Input length (${I.length}), exceeds max characters (${O})`);let N={type:"root",input:I,nodes:[]},$=[N],w=N,q=N,z=0,U=I.length,K=0,W=0,F;const ne=()=>I[K++],j=M=>{if(M.type==="text"&&q.type==="dot"&&(q.type="text"),q&&q.type==="text"&&M.type==="text"){q.value+=M.value;return}return w.nodes.push(M),M.parent=w,M.prev=q,q=M,M};for(j({type:"bos"});K<U;)if(w=$[$.length-1],F=ne(),!(F===P||F===S)){if(F===u){j({type:"text",value:(B.keepEscaping?F:"")+ne()});continue}if(F===A){j({type:"text",value:"\\"+F});continue}if(F===b){z++;let M;for(;K<U&&(M=ne());){if(F+=M,M===b){z++;continue}if(M===u){F+=ne();continue}if(M===A&&(z--,z===0))break}j({type:"text",value:F});continue}if(F===h){w=j({type:"paren",nodes:[]}),$.push(w),j({type:"text",value:F});continue}if(F===m){if(w.type!=="paren"){j({type:"text",value:F});continue}w=$.pop(),j({type:"text",value:F}),w=$[$.length-1];continue}if(F===_||F===E||F===f){let M=F,D;for(B.keepQuotes!==!0&&(F="");K<U&&(D=ne());){if(D===u){F+=D+ne();continue}if(D===M){B.keepQuotes===!0&&(F+=D);break}F+=D}j({type:"text",value:F});continue}if(F===y){W++;let D={type:"brace",open:!0,close:!1,dollar:q.value&&q.value.slice(-1)==="$"||w.dollar===!0,depth:W,commas:0,ranges:0,nodes:[]};w=j(D),$.push(w),j({type:"open",value:F});continue}if(F===g){if(w.type!=="brace"){j({type:"text",value:F});continue}let M="close";w=$.pop(),w.close=!0,j({type:M,value:F}),W--,w=$[$.length-1];continue}if(F===p&&W>0){if(w.ranges>0){w.ranges=0;let M=w.nodes.shift();w.nodes=[M,{type:"text",value:c(w)}]}j({type:"comma",value:F}),w.commas++;continue}if(F===d&&W>0&&w.commas===0){let M=w.nodes;if(W===0||M.length===0){j({type:"text",value:F});continue}if(q.type==="dot"){if(w.range=[],q.value+=F,q.type="range",w.nodes.length!==3&&w.nodes.length!==5){w.invalid=!0,w.ranges=0,q.type="text";continue}w.ranges++,w.args=[];continue}if(q.type==="range"){M.pop();let D=M[M.length-1];D.value+=q.value+F,q=D,w.ranges--;continue}j({type:"dot",value:F});continue}j({type:"text",value:F})}do if(w=$.pop(),w.type!=="root"){w.nodes.forEach(X=>{X.nodes||(X.type==="open"&&(X.isOpen=!0),X.type==="close"&&(X.isClose=!0),X.nodes||(X.type="text"),X.invalid=!0)});let M=$[$.length-1],D=M.nodes.indexOf(w);M.nodes.splice(D,1,...w.nodes)}while($.length>0);return j({type:"eos"}),N};o.exports=x},137:(o,i,a)=>{const c=a(617);o.exports=(l,u={})=>{let f=(p,d={})=>{let h=u.escapeInvalid&&c.isInvalidBrace(d),m=p.invalid===!0&&u.escapeInvalid===!0,y="";if(p.value)return(h||m)&&c.isOpenOrClose(p)?"\\"+p.value:p.value;if(p.value)return p.value;if(p.nodes)for(let g of p.nodes)y+=f(g);return y};return f(l)}},617:(o,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 f=0;f<u.length;f++){let p=u[f];Array.isArray(p)?l(p):p!==void 0&&c.push(p)}return c};return l(a),c}},783:(o,i,a)=>{/*!
23
+ `)+" "+w.join(`,
24
+ `)+" "+D[1]:D[0]+M+" "+w.join(", ")+" "+D[1]}e.types=Sh();function g(w){return Array.isArray(w)}e.isArray=g;function b(w){return typeof w=="boolean"}e.isBoolean=b;function j(w){return w===null}e.isNull=j;function v(w){return w==null}e.isNullOrUndefined=v;function A(w){return typeof w=="number"}e.isNumber=A;function S(w){return typeof w=="string"}e.isString=S;function P(w){return typeof w=="symbol"}e.isSymbol=P;function x(w){return w===void 0}e.isUndefined=x;function I(w){return B(w)&&R(w)==="[object RegExp]"}e.isRegExp=I,e.types.isRegExp=I;function B(w){return typeof w=="object"&&w!==null}e.isObject=B;function E(w){return B(w)&&R(w)==="[object Date]"}e.isDate=E,e.types.isDate=E;function O(w){return B(w)&&(R(w)==="[object Error]"||w instanceof Error)}e.isError=O,e.types.isNativeError=O;function N(w){return typeof w=="function"}e.isFunction=N;function $(w){return w===null||typeof w=="boolean"||typeof w=="number"||typeof w=="string"||typeof w=="symbol"||typeof w>"u"}e.isPrimitive=$,e.isBuffer=jh();function R(w){return Object.prototype.toString.call(w)}function F(w){return w<10?"0"+w.toString(10):w.toString(10)}var H=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function U(){var w=new Date,M=[F(w.getHours()),F(w.getMinutes()),F(w.getSeconds())].join(":");return[w.getDate(),H[w.getMonth()],M].join(" ")}e.log=function(){console.log("%s - %s",U(),e.format.apply(e,arguments))},e.inherits=Ah(),e._extend=function(w,M){if(!M||!B(M))return w;for(var D=Object.keys(M),X=D.length;X--;)w[D[X]]=M[D[X]];return w};function K(w,M){return Object.prototype.hasOwnProperty.call(w,M)}var W=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(M){if(typeof M!="function")throw new TypeError('The "original" argument must be of type Function');if(W&&M[W]){var D=M[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 X,te,Z=new Promise(function(Y,ee){X=Y,te=ee}),k=[],J=0;J<arguments.length;J++)k.push(arguments[J]);k.push(function(Y,ee){Y?te(Y):X(ee)});try{M.apply(this,k)}catch(Y){te(Y)}return Z}return Object.setPrototypeOf(D,Object.getPrototypeOf(M)),W&&Object.defineProperty(D,W,{value:D,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(D,t(M))},e.promisify.custom=W;function z(w,M){if(!w){var D=new Error("Promise was rejected with a falsy value");D.reason=w,w=D}return M(w)}function ne(w){if(typeof w!="function")throw new TypeError('The "original" argument must be of type Function');function M(){for(var D=[],X=0;X<arguments.length;X++)D.push(arguments[X]);var te=D.pop();if(typeof te!="function")throw new TypeError("The last argument must be of type Function");var Z=this,k=function(){return te.apply(Z,arguments)};w.apply(this,D).then(function(J){process.nextTick(k.bind(null,null,J))},function(J){process.nextTick(z.bind(null,J,k))})}return Object.setPrototypeOf(M,Object.getPrototypeOf(w)),Object.defineProperties(M,t(w)),M}e.callbackify=ne}(Gr)),Gr}var Vs;function Rh(){return Vs||(Vs=1,(()=>{var e={333:(i,s,a)=>{const c=a(137),l=a(179),u=a(13),f=a(719),p=(d,m={})=>{let h=[];if(Array.isArray(d))for(let y of d){let g=p.create(y,m);Array.isArray(g)?h.push(...g):h.push(g)}else h=[].concat(p.create(d,m));return m&&m.expand===!0&&m.nodupes===!0&&(h=[...new Set(h)]),h};p.parse=(d,m={})=>f(d,m),p.stringify=(d,m={})=>c(typeof d=="string"?p.parse(d,m):d,m),p.compile=(d,m={})=>(typeof d=="string"&&(d=p.parse(d,m)),l(d,m)),p.expand=(d,m={})=>{typeof d=="string"&&(d=p.parse(d,m));let h=u(d,m);return m.noempty===!0&&(h=h.filter(Boolean)),m.nodupes===!0&&(h=[...new Set(h)]),h},p.create=(d,m={})=>d===""||d.length<3?[d]:m.expand!==!0?p.compile(d,m):p.expand(d,m),i.exports=p},179:(i,s,a)=>{const c=a(783),l=a(617),u=(f,p={})=>{let d=(m,h={})=>{let y=l.isInvalidBrace(h),g=m.invalid===!0&&p.escapeInvalid===!0,b=y===!0||g===!0,j=p.escapeInvalid===!0?"\\":"",v="";if(m.isOpen===!0||m.isClose===!0)return j+m.value;if(m.type==="open")return b?j+m.value:"(";if(m.type==="close")return b?j+m.value:")";if(m.type==="comma")return m.prev.type==="comma"?"":b?m.value:"|";if(m.value)return m.value;if(m.nodes&&m.ranges>0){let A=l.reduce(m.nodes),S=c(...A,{...p,wrap:!1,toRegex:!0});if(S.length!==0)return A.length>1&&S.length>1?`(${S})`:S}if(m.nodes)for(let A of m.nodes)v+=d(A,m);return v};return d(f)};i.exports=u},457:i=>{i.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
+ `,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:(i,s,a)=>{const c=a(783),l=a(137),u=a(617),f=(d="",m="",h=!1)=>{let y=[];if(d=[].concat(d),m=[].concat(m),!m.length)return d;if(!d.length)return h?u.flatten(m).map(g=>`{${g}}`):m;for(let g of d)if(Array.isArray(g))for(let b of g)y.push(f(b,m,h));else for(let b of m)h===!0&&typeof b=="string"&&(b=`{${b}}`),y.push(Array.isArray(b)?f(g,b,h):g+b);return u.flatten(y)},p=(d,m={})=>{let h=m.rangeLimit===void 0?1e3:m.rangeLimit,y=(g,b={})=>{g.queue=[];let j=b,v=b.queue;for(;j.type!=="brace"&&j.type!=="root"&&j.parent;)j=j.parent,v=j.queue;if(g.invalid||g.dollar){v.push(f(v.pop(),l(g,m)));return}if(g.type==="brace"&&g.invalid!==!0&&g.nodes.length===2){v.push(f(v.pop(),["{}"]));return}if(g.nodes&&g.ranges>0){let x=u.reduce(g.nodes);if(u.exceedsLimit(...x,m.step,h))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let I=c(...x,m);I.length===0&&(I=l(g,m)),v.push(f(v.pop(),I)),g.nodes=[];return}let A=u.encloseBrace(g),S=g.queue,P=g;for(;P.type!=="brace"&&P.type!=="root"&&P.parent;)P=P.parent,S=P.queue;for(let x=0;x<g.nodes.length;x++){let I=g.nodes[x];if(I.type==="comma"&&g.type==="brace"){x===1&&S.push(""),S.push("");continue}if(I.type==="close"){v.push(f(v.pop(),S,A));continue}if(I.value&&I.type!=="open"){S.push(f(S.pop(),I.value));continue}I.nodes&&y(I,g)}return S};return u.flatten(y(d))};i.exports=p},719:(i,s,a)=>{const c=a(137),{MAX_LENGTH:l,CHAR_BACKSLASH:u,CHAR_BACKTICK:f,CHAR_COMMA:p,CHAR_DOT:d,CHAR_LEFT_PARENTHESES:m,CHAR_RIGHT_PARENTHESES:h,CHAR_LEFT_CURLY_BRACE:y,CHAR_RIGHT_CURLY_BRACE:g,CHAR_LEFT_SQUARE_BRACKET:b,CHAR_RIGHT_SQUARE_BRACKET:j,CHAR_DOUBLE_QUOTE:v,CHAR_SINGLE_QUOTE:A,CHAR_NO_BREAK_SPACE:S,CHAR_ZERO_WIDTH_NOBREAK_SPACE:P}=a(457),x=(I,B={})=>{if(typeof I!="string")throw new TypeError("Expected a string");let E=B||{},O=typeof E.maxLength=="number"?Math.min(l,E.maxLength):l;if(I.length>O)throw new SyntaxError(`Input length (${I.length}), exceeds max characters (${O})`);let N={type:"root",input:I,nodes:[]},$=[N],R=N,F=N,H=0,U=I.length,K=0,W=0,z;const ne=()=>I[K++],w=M=>{if(M.type==="text"&&F.type==="dot"&&(F.type="text"),F&&F.type==="text"&&M.type==="text"){F.value+=M.value;return}return R.nodes.push(M),M.parent=R,M.prev=F,F=M,M};for(w({type:"bos"});K<U;)if(R=$[$.length-1],z=ne(),!(z===P||z===S)){if(z===u){w({type:"text",value:(B.keepEscaping?z:"")+ne()});continue}if(z===j){w({type:"text",value:"\\"+z});continue}if(z===b){H++;let M;for(;K<U&&(M=ne());){if(z+=M,M===b){H++;continue}if(M===u){z+=ne();continue}if(M===j&&(H--,H===0))break}w({type:"text",value:z});continue}if(z===m){R=w({type:"paren",nodes:[]}),$.push(R),w({type:"text",value:z});continue}if(z===h){if(R.type!=="paren"){w({type:"text",value:z});continue}R=$.pop(),w({type:"text",value:z}),R=$[$.length-1];continue}if(z===v||z===A||z===f){let M=z,D;for(B.keepQuotes!==!0&&(z="");K<U&&(D=ne());){if(D===u){z+=D+ne();continue}if(D===M){B.keepQuotes===!0&&(z+=D);break}z+=D}w({type:"text",value:z});continue}if(z===y){W++;let D={type:"brace",open:!0,close:!1,dollar:F.value&&F.value.slice(-1)==="$"||R.dollar===!0,depth:W,commas:0,ranges:0,nodes:[]};R=w(D),$.push(R),w({type:"open",value:z});continue}if(z===g){if(R.type!=="brace"){w({type:"text",value:z});continue}let M="close";R=$.pop(),R.close=!0,w({type:M,value:z}),W--,R=$[$.length-1];continue}if(z===p&&W>0){if(R.ranges>0){R.ranges=0;let M=R.nodes.shift();R.nodes=[M,{type:"text",value:c(R)}]}w({type:"comma",value:z}),R.commas++;continue}if(z===d&&W>0&&R.commas===0){let M=R.nodes;if(W===0||M.length===0){w({type:"text",value:z});continue}if(F.type==="dot"){if(R.range=[],F.value+=z,F.type="range",R.nodes.length!==3&&R.nodes.length!==5){R.invalid=!0,R.ranges=0,F.type="text";continue}R.ranges++,R.args=[];continue}if(F.type==="range"){M.pop();let D=M[M.length-1];D.value+=F.value+z,F=D,R.ranges--;continue}w({type:"dot",value:z});continue}w({type:"text",value:z})}do if(R=$.pop(),R.type!=="root"){R.nodes.forEach(X=>{X.nodes||(X.type==="open"&&(X.isOpen=!0),X.type==="close"&&(X.isClose=!0),X.nodes||(X.type="text"),X.invalid=!0)});let M=$[$.length-1],D=M.nodes.indexOf(R);M.nodes.splice(D,1,...R.nodes)}while($.length>0);return w({type:"eos"}),N};i.exports=x},137:(i,s,a)=>{const c=a(617);i.exports=(l,u={})=>{let f=(p,d={})=>{let m=u.escapeInvalid&&c.isInvalidBrace(d),h=p.invalid===!0&&u.escapeInvalid===!0,y="";if(p.value)return(m||h)&&c.isOpenOrClose(p)?"\\"+p.value:p.value;if(p.value)return p.value;if(p.nodes)for(let g of p.nodes)y+=f(g);return y};return f(l)}},617:(i,s)=>{s.isInteger=a=>typeof a=="number"?Number.isInteger(a):typeof a=="string"&&a.trim()!==""?Number.isInteger(Number(a)):!1,s.find=(a,c)=>a.nodes.find(l=>l.type===c),s.exceedsLimit=(a,c,l=1,u)=>u===!1||!s.isInteger(a)||!s.isInteger(c)?!1:(Number(c)-Number(a))/Number(l)>=u,s.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)},s.encloseBrace=a=>a.type!=="brace"||a.commas>>0+a.ranges>>0?!1:(a.invalid=!0,!0),s.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,s.isOpenOrClose=a=>a.type==="open"||a.type==="close"?!0:a.open===!0||a.close===!0,s.reduce=a=>a.reduce((c,l)=>(l.type==="text"&&c.push(l.value),l.type==="range"&&(l.type="text"),c),[]),s.flatten=(...a)=>{const c=[],l=u=>{for(let f=0;f<u.length;f++){let p=u[f];Array.isArray(p)?l(p):p!==void 0&&c.push(p)}return c};return l(a),c}},783:(i,s,a)=>{/*!
26
26
  * fill-range <https://github.com/jonschlinkert/fill-range>
27
27
  *
28
28
  * Copyright (c) 2014-present, Jon Schlinkert.
29
29
  * Licensed under the MIT License.
30
- */const c=a(837),l=a(492),u=R=>R!==null&&typeof R=="object"&&!Array.isArray(R),f=R=>O=>R===!0?Number(O):String(O),p=R=>typeof R=="number"||typeof R=="string"&&R!=="",d=R=>Number.isInteger(+R),h=R=>{let O=`${R}`,N=-1;if(O[0]==="-"&&(O=O.slice(1)),O==="0")return!1;for(;O[++N]==="0";);return N>0},m=(R,O,N)=>typeof R=="string"||typeof O=="string"?!0:N.stringify===!0,y=(R,O,N)=>{if(O>0){let $=R[0]==="-"?"-":"";$&&(R=R.slice(1)),R=$+R.padStart($?O-1:O,"0")}return N===!1?String(R):R},g=(R,O)=>{let N=R[0]==="-"?"-":"";for(N&&(R=R.slice(1),O--);R.length<O;)R="0"+R;return N?"-"+R:R},b=(R,O)=>{R.negatives.sort((z,U)=>z<U?-1:z>U?1:0),R.positives.sort((z,U)=>z<U?-1:z>U?1:0);let N=O.capture?"":"?:",$="",w="",q;return R.positives.length&&($=R.positives.join("|")),R.negatives.length&&(w=`-(${N}${R.negatives.join("|")})`),$&&w?q=`${$}|${w}`:q=$||w,O.wrap?`(${N}${q})`:q},A=(R,O,N,$)=>{if(N)return l(R,O,{wrap:!1,...$});let w=String.fromCharCode(R);if(R===O)return w;let q=String.fromCharCode(O);return`[${w}-${q}]`},_=(R,O,N)=>{if(Array.isArray(R)){let $=N.wrap===!0,w=N.capture?"":"?:";return $?`(${w}${R.join("|")})`:R.join("|")}return l(R,O,N)},E=(...R)=>new RangeError("Invalid range arguments: "+c.inspect(...R)),S=(R,O,N)=>{if(N.strictRanges===!0)throw E([R,O]);return[]},P=(R,O)=>{if(O.strictRanges===!0)throw new TypeError(`Expected step "${R}" to be a number`);return[]},x=(R,O,N=1,$={})=>{let w=Number(R),q=Number(O);if(!Number.isInteger(w)||!Number.isInteger(q)){if($.strictRanges===!0)throw E([R,O]);return[]}w===0&&(w=0),q===0&&(q=0);let z=w>q,U=String(R),K=String(O),W=String(N);N=Math.max(Math.abs(N),1);let F=h(U)||h(K)||h(W),ne=F?Math.max(U.length,K.length,W.length):0,j=F===!1&&m(R,O,$)===!1,M=$.transform||f(j);if($.toRegex&&N===1)return A(g(R,ne),g(O,ne),!0,$);let D={negatives:[],positives:[]},X=k=>D[k<0?"negatives":"positives"].push(Math.abs(k)),te=[],Z=0;for(;z?w>=q:w<=q;)$.toRegex===!0&&N>1?X(w):te.push(y(M(w,Z),ne,j)),w=z?w-N:w+N,Z++;return $.toRegex===!0?N>1?b(D,$):_(te,null,{wrap:!1,...$}):te},I=(R,O,N=1,$={})=>{if(!d(R)&&R.length>1||!d(O)&&O.length>1)return S(R,O,$);let w=$.transform||(j=>String.fromCharCode(j)),q=`${R}`.charCodeAt(0),z=`${O}`.charCodeAt(0),U=q>z,K=Math.min(q,z),W=Math.max(q,z);if($.toRegex&&N===1)return A(K,W,!1,$);let F=[],ne=0;for(;U?q>=z:q<=z;)F.push(w(q,ne)),q=U?q-N:q+N,ne++;return $.toRegex===!0?_(F,null,{wrap:!1,options:$}):F},B=(R,O,N,$={})=>{if(O==null&&p(R))return[R];if(!p(R)||!p(O))return S(R,O,$);if(typeof N=="function")return B(R,O,1,{transform:N});if(u(N))return B(R,O,0,N);let w={...$};return w.capture===!0&&(w.wrap=!0),N=N||w.step||1,d(N)?d(R)&&d(O)?x(R,O,N,w):I(R,O,Math.max(Math.abs(N),1),w):N!=null&&!u(N)?P(N,w):B(R,O,1,N)};o.exports=B},357:o=>{/*!
30
+ */const c=a(837),l=a(492),u=E=>E!==null&&typeof E=="object"&&!Array.isArray(E),f=E=>O=>E===!0?Number(O):String(O),p=E=>typeof E=="number"||typeof E=="string"&&E!=="",d=E=>Number.isInteger(+E),m=E=>{let O=`${E}`,N=-1;if(O[0]==="-"&&(O=O.slice(1)),O==="0")return!1;for(;O[++N]==="0";);return N>0},h=(E,O,N)=>typeof E=="string"||typeof O=="string"?!0:N.stringify===!0,y=(E,O,N)=>{if(O>0){let $=E[0]==="-"?"-":"";$&&(E=E.slice(1)),E=$+E.padStart($?O-1:O,"0")}return N===!1?String(E):E},g=(E,O)=>{let N=E[0]==="-"?"-":"";for(N&&(E=E.slice(1),O--);E.length<O;)E="0"+E;return N?"-"+E:E},b=(E,O)=>{E.negatives.sort((H,U)=>H<U?-1:H>U?1:0),E.positives.sort((H,U)=>H<U?-1:H>U?1:0);let N=O.capture?"":"?:",$="",R="",F;return E.positives.length&&($=E.positives.join("|")),E.negatives.length&&(R=`-(${N}${E.negatives.join("|")})`),$&&R?F=`${$}|${R}`:F=$||R,O.wrap?`(${N}${F})`:F},j=(E,O,N,$)=>{if(N)return l(E,O,{wrap:!1,...$});let R=String.fromCharCode(E);if(E===O)return R;let F=String.fromCharCode(O);return`[${R}-${F}]`},v=(E,O,N)=>{if(Array.isArray(E)){let $=N.wrap===!0,R=N.capture?"":"?:";return $?`(${R}${E.join("|")})`:E.join("|")}return l(E,O,N)},A=(...E)=>new RangeError("Invalid range arguments: "+c.inspect(...E)),S=(E,O,N)=>{if(N.strictRanges===!0)throw A([E,O]);return[]},P=(E,O)=>{if(O.strictRanges===!0)throw new TypeError(`Expected step "${E}" to be a number`);return[]},x=(E,O,N=1,$={})=>{let R=Number(E),F=Number(O);if(!Number.isInteger(R)||!Number.isInteger(F)){if($.strictRanges===!0)throw A([E,O]);return[]}R===0&&(R=0),F===0&&(F=0);let H=R>F,U=String(E),K=String(O),W=String(N);N=Math.max(Math.abs(N),1);let z=m(U)||m(K)||m(W),ne=z?Math.max(U.length,K.length,W.length):0,w=z===!1&&h(E,O,$)===!1,M=$.transform||f(w);if($.toRegex&&N===1)return j(g(E,ne),g(O,ne),!0,$);let D={negatives:[],positives:[]},X=k=>D[k<0?"negatives":"positives"].push(Math.abs(k)),te=[],Z=0;for(;H?R>=F:R<=F;)$.toRegex===!0&&N>1?X(R):te.push(y(M(R,Z),ne,w)),R=H?R-N:R+N,Z++;return $.toRegex===!0?N>1?b(D,$):v(te,null,{wrap:!1,...$}):te},I=(E,O,N=1,$={})=>{if(!d(E)&&E.length>1||!d(O)&&O.length>1)return S(E,O,$);let R=$.transform||(w=>String.fromCharCode(w)),F=`${E}`.charCodeAt(0),H=`${O}`.charCodeAt(0),U=F>H,K=Math.min(F,H),W=Math.max(F,H);if($.toRegex&&N===1)return j(K,W,!1,$);let z=[],ne=0;for(;U?F>=H:F<=H;)z.push(R(F,ne)),F=U?F-N:F+N,ne++;return $.toRegex===!0?v(z,null,{wrap:!1,options:$}):z},B=(E,O,N,$={})=>{if(O==null&&p(E))return[E];if(!p(E)||!p(O))return S(E,O,$);if(typeof N=="function")return B(E,O,1,{transform:N});if(u(N))return B(E,O,0,N);let R={...$};return R.capture===!0&&(R.wrap=!0),N=N||R.step||1,d(N)?d(E)&&d(O)?x(E,O,N,R):I(E,O,Math.max(Math.abs(N),1),R):N!=null&&!u(N)?P(N,R):B(E,O,1,N)};i.exports=B},357:i=>{/*!
31
31
  * is-number <https://github.com/jonschlinkert/is-number>
32
32
  *
33
33
  * Copyright (c) 2014-present, Jon Schlinkert.
34
34
  * Released under the MIT License.
35
- */o.exports=function(i){return typeof i=="number"?i-i===0:typeof i=="string"&&i.trim()!==""?Number.isFinite?Number.isFinite(+i):isFinite(+i):!1}},971:(o,i,a)=>{const c=a(837),l=a(333),u=a(251),f=a(513),p=h=>h===""||h==="./",d=(h,m,y)=>{m=[].concat(m),h=[].concat(h);let g=new Set,b=new Set,A=new Set,_=0,E=x=>{A.add(x.output),y&&y.onResult&&y.onResult(x)};for(let x=0;x<m.length;x++){let I=u(String(m[x]),{...y,onResult:E},!0),B=I.state.negated||I.state.negatedExtglob;B&&_++;for(let R of h){let O=I(R,!0);(B?!O.isMatch:O.isMatch)&&(B?g.add(O.output):(g.delete(O.output),b.add(O.output)))}}let P=(_===m.length?[...A]:[...b]).filter(x=>!g.has(x));if(y&&P.length===0){if(y.failglob===!0)throw new Error(`No matches found for "${m.join(", ")}"`);if(y.nonull===!0||y.nullglob===!0)return y.unescape?m.map(x=>x.replace(/\\/g,"")):m}return P};d.match=d,d.matcher=(h,m)=>u(h,m),d.isMatch=(h,m,y)=>u(m,y)(h),d.any=d.isMatch,d.not=(h,m,y={})=>{m=[].concat(m).map(String);let g=new Set,b=[],_=d(h,m,{...y,onResult:E=>{y.onResult&&y.onResult(E),b.push(E.output)}});for(let E of b)_.includes(E)||g.add(E);return[...g]},d.contains=(h,m,y)=>{if(typeof h!="string")throw new TypeError(`Expected a string: "${c.inspect(h)}"`);if(Array.isArray(m))return m.some(g=>d.contains(h,g,y));if(typeof m=="string"){if(p(h)||p(m))return!1;if(h.includes(m)||h.startsWith("./")&&h.slice(2).includes(m))return!0}return d.isMatch(h,m,{...y,contains:!0})},d.matchKeys=(h,m,y)=>{if(!f.isObject(h))throw new TypeError("Expected the first argument to be an object");let g=d(Object.keys(h),m,y),b={};for(let A of g)b[A]=h[A];return b},d.some=(h,m,y)=>{let g=[].concat(h);for(let b of[].concat(m)){let A=u(String(b),y);if(g.some(_=>A(_)))return!0}return!1},d.every=(h,m,y)=>{let g=[].concat(h);for(let b of[].concat(m)){let A=u(String(b),y);if(!g.every(_=>A(_)))return!1}return!0},d.all=(h,m,y)=>{if(typeof h!="string")throw new TypeError(`Expected a string: "${c.inspect(h)}"`);return[].concat(m).every(g=>u(g,y)(h))},d.capture=(h,m,y)=>{let g=f.isWindows(y),A=u.makeRe(String(h),{...y,capture:!0}).exec(g?f.toPosixSlashes(m):m);if(A)return A.slice(1).map(_=>_===void 0?"":_)},d.makeRe=(...h)=>u.makeRe(...h),d.scan=(...h)=>u.scan(...h),d.parse=(h,m)=>{let y=[];for(let g of[].concat(h||[]))for(let b of l(String(g),m))y.push(u.parse(b,m));return y},d.braces=(h,m)=>{if(typeof h!="string")throw new TypeError("Expected a string");return m&&m.nobrace===!0||!/\{.*\}/.test(h)?[h]:l(h,m)},d.braceExpand=(h,m)=>{if(typeof h!="string")throw new TypeError("Expected a string");return d.braces(h,{...m,expand:!0})},o.exports=d},251:(o,i,a)=>{o.exports=a(683)},356:(o,i,a)=>{const c=a(17),l="\\\\/",u=`[^${l}]`,f="\\.",p="\\+",d="\\?",h="\\/",m="(?=.)",y="[^/]",g=`(?:${h}|$)`,b=`(?:^|${h})`,A=`${f}{1,2}${g}`,_=`(?!${f})`,E=`(?!${b}${A})`,S=`(?!${f}{0,1}${g})`,P=`(?!${A})`,x=`[^.${h}]`,I=`${y}*?`,B={DOT_LITERAL:f,PLUS_LITERAL:p,QMARK_LITERAL:d,SLASH_LITERAL:h,ONE_CHAR:m,QMARK:y,END_ANCHOR:g,DOTS_SLASH:A,NO_DOT:_,NO_DOTS:E,NO_DOT_SLASH:S,NO_DOTS_SLASH:P,QMARK_NO_DOT:x,STAR:I,START_ANCHOR:b},R={...B,SLASH_LITERAL:`[${l}]`,QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${f}{1,2}(?:[${l}]|$)`,NO_DOT:`(?!${f})`,NO_DOTS:`(?!(?:^|[${l}])${f}{1,2}(?:[${l}]|$))`,NO_DOT_SLASH:`(?!${f}{0,1}(?:[${l}]|$))`,NO_DOTS_SLASH:`(?!${f}{1,2}(?:[${l}]|$))`,QMARK_NO_DOT:`[^.${l}]`,START_ANCHOR:`(?:^|[${l}])`,END_ANCHOR:`(?:[${l}]|$)`},O={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"};o.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:O,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(N){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${N.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(N){return N===!0?R:B}}},754:(o,i,a)=>{const c=a(356),l=a(513),{MAX_LENGTH:u,POSIX_REGEX_SOURCE:f,REGEX_NON_SPECIAL_CHARS:p,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:h}=c,m=(b,A)=>{if(typeof A.expandRange=="function")return A.expandRange(...b,A);b.sort();const _=`[${b.join("-")}]`;try{new RegExp(_)}catch{return b.map(S=>l.escapeRegex(S)).join("..")}return _},y=(b,A)=>`Missing ${b}: "${A}" - use "\\\\${A}" to match literal characters`,g=(b,A)=>{if(typeof b!="string")throw new TypeError("Expected a string");b=h[b]||b;const _={...A},E=typeof _.maxLength=="number"?Math.min(u,_.maxLength):u;let S=b.length;if(S>E)throw new SyntaxError(`Input length: ${S}, exceeds maximum allowed length: ${E}`);const P={type:"bos",value:"",output:_.prepend||""},x=[P],I=_.capture?"":"?:",B=l.isWindows(A),R=c.globChars(B),O=c.extglobChars(R),{DOT_LITERAL:N,PLUS_LITERAL:$,SLASH_LITERAL:w,ONE_CHAR:q,DOTS_SLASH:z,NO_DOT:U,NO_DOT_SLASH:K,NO_DOTS_SLASH:W,QMARK:F,QMARK_NO_DOT:ne,STAR:j,START_ANCHOR:M}=R,D=Q=>`(${I}(?:(?!${M}${Q.dot?z:N}).)*?)`,X=_.dot?"":U,te=_.dot?F:ne;let Z=_.bash===!0?D(_):j;_.capture&&(Z=`(${Z})`),typeof _.noext=="boolean"&&(_.noextglob=_.noext);const k={input:b,index:-1,start:0,dot:_.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:x};b=l.removePrefix(b,k),S=b.length;const J=[],Y=[],ee=[];let L=P,T;const re=()=>k.index===S-1,se=k.peek=(Q=1)=>b[k.index+Q],ce=k.advance=()=>b[++k.index],le=()=>b.slice(k.index+1),ae=(Q="",oe=0)=>{k.consumed+=Q,k.index+=oe},H=Q=>{k.output+=Q.output!=null?Q.output:Q.value,ae(Q.value)},he=()=>{let Q=1;for(;se()==="!"&&(se(2)!=="("||se(3)==="?");)ce(),k.start++,Q++;return Q%2===0?!1:(k.negated=!0,k.start++,!0)},ie=Q=>{k[Q]++,ee.push(Q)},me=Q=>{k[Q]--,ee.pop()},G=Q=>{if(L.type==="globstar"){const oe=k.braces>0&&(Q.type==="comma"||Q.type==="brace"),V=Q.extglob===!0||J.length&&(Q.type==="pipe"||Q.type==="paren");Q.type!=="slash"&&Q.type!=="paren"&&!oe&&!V&&(k.output=k.output.slice(0,-L.output.length),L.type="star",L.value="*",L.output=Z,k.output+=L.output)}if(J.length&&Q.type!=="paren"&&!O[Q.value]&&(J[J.length-1].inner+=Q.value),(Q.value||Q.output)&&H(Q),L&&L.type==="text"&&Q.type==="text"){L.value+=Q.value,L.output=(L.output||"")+Q.value;return}Q.prev=L,x.push(Q),L=Q},ue=(Q,oe)=>{const V={...O[oe],conditions:1,inner:""};V.prev=L,V.parens=k.parens,V.output=k.output;const de=(_.capture?"(":"")+V.open;ie("parens"),G({type:Q,value:oe,output:k.output?"":q}),G({type:"paren",extglob:!0,value:ce(),output:de}),J.push(V)},Ae=Q=>{let oe=Q.close+(_.capture?")":"");if(Q.type==="negate"){let V=Z;Q.inner&&Q.inner.length>1&&Q.inner.includes("/")&&(V=D(_)),(V!==Z||re()||/^\)+$/.test(le()))&&(oe=Q.close=`)$))${V}`),Q.prev.type==="bos"&&(k.negatedExtglob=!0)}G({type:"paren",extglob:!0,value:T,output:oe}),me("parens")};if(_.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(b)){let Q=!1,oe=b.replace(d,(V,de,_e,Re,Ce,nr)=>Re==="\\"?(Q=!0,V):Re==="?"?de?de+Re+(Ce?F.repeat(Ce.length):""):nr===0?te+(Ce?F.repeat(Ce.length):""):F.repeat(_e.length):Re==="."?N.repeat(_e.length):Re==="*"?de?de+Re+(Ce?Z:""):Z:de?V:`\\${V}`);return Q===!0&&(_.unescape===!0?oe=oe.replace(/\\/g,""):oe=oe.replace(/\\+/g,V=>V.length%2===0?"\\\\":V?"\\":"")),oe===b&&_.contains===!0?(k.output=b,k):(k.output=l.wrapOutput(oe,k,A),k)}for(;!re();){if(T=ce(),T==="\0")continue;if(T==="\\"){const V=se();if(V==="/"&&_.bash!==!0||V==="."||V===";")continue;if(!V){T+="\\",G({type:"text",value:T});continue}const de=/^\\+/.exec(le());let _e=0;if(de&&de[0].length>2&&(_e=de[0].length,k.index+=_e,_e%2!==0&&(T+="\\")),_.unescape===!0?T=ce()||"":T+=ce()||"",k.brackets===0){G({type:"text",value:T});continue}}if(k.brackets>0&&(T!=="]"||L.value==="["||L.value==="[^")){if(_.posix!==!1&&T===":"){const V=L.value.slice(1);if(V.includes("[")&&(L.posix=!0,V.includes(":"))){const de=L.value.lastIndexOf("["),_e=L.value.slice(0,de),Re=L.value.slice(de+2),Ce=f[Re];if(Ce){L.value=_e+Ce,k.backtrack=!0,ce(),!P.output&&x.indexOf(L)===1&&(P.output=q);continue}}}(T==="["&&se()!==":"||T==="-"&&se()==="]")&&(T=`\\${T}`),T==="]"&&(L.value==="["||L.value==="[^")&&(T=`\\${T}`),_.posix===!0&&T==="!"&&L.value==="["&&(T="^"),L.value+=T,H({value:T});continue}if(k.quotes===1&&T!=='"'){T=l.escapeRegex(T),L.value+=T,H({value:T});continue}if(T==='"'){k.quotes=k.quotes===1?0:1,_.keepQuotes===!0&&G({type:"text",value:T});continue}if(T==="("){ie("parens"),G({type:"paren",value:T});continue}if(T===")"){if(k.parens===0&&_.strictBrackets===!0)throw new SyntaxError(y("opening","("));const V=J[J.length-1];if(V&&k.parens===V.parens+1){Ae(J.pop());continue}G({type:"paren",value:T,output:k.parens?")":"\\)"}),me("parens");continue}if(T==="["){if(_.nobracket===!0||!le().includes("]")){if(_.nobracket!==!0&&_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));T=`\\${T}`}else ie("brackets");G({type:"bracket",value:T});continue}if(T==="]"){if(_.nobracket===!0||L&&L.type==="bracket"&&L.value.length===1){G({type:"text",value:T,output:`\\${T}`});continue}if(k.brackets===0){if(_.strictBrackets===!0)throw new SyntaxError(y("opening","["));G({type:"text",value:T,output:`\\${T}`});continue}me("brackets");const V=L.value.slice(1);if(L.posix!==!0&&V[0]==="^"&&!V.includes("/")&&(T=`/${T}`),L.value+=T,H({value:T}),_.literalBrackets===!1||l.hasRegexChars(V))continue;const de=l.escapeRegex(L.value);if(k.output=k.output.slice(0,-L.value.length),_.literalBrackets===!0){k.output+=de,L.value=de;continue}L.value=`(${I}${de}|${L.value})`,k.output+=L.value;continue}if(T==="{"&&_.nobrace!==!0){ie("braces");const V={type:"brace",value:T,output:"(",outputIndex:k.output.length,tokensIndex:k.tokens.length};Y.push(V),G(V);continue}if(T==="}"){const V=Y[Y.length-1];if(_.nobrace===!0||!V){G({type:"text",value:T,output:T});continue}let de=")";if(V.dots===!0){const _e=x.slice(),Re=[];for(let Ce=_e.length-1;Ce>=0&&(x.pop(),_e[Ce].type!=="brace");Ce--)_e[Ce].type!=="dots"&&Re.unshift(_e[Ce].value);de=m(Re,_),k.backtrack=!0}if(V.comma!==!0&&V.dots!==!0){const _e=k.output.slice(0,V.outputIndex),Re=k.tokens.slice(V.tokensIndex);V.value=V.output="\\{",T=de="\\}",k.output=_e;for(const Ce of Re)k.output+=Ce.output||Ce.value}G({type:"brace",value:T,output:de}),me("braces"),Y.pop();continue}if(T==="|"){J.length>0&&J[J.length-1].conditions++,G({type:"text",value:T});continue}if(T===","){let V=T;const de=Y[Y.length-1];de&&ee[ee.length-1]==="braces"&&(de.comma=!0,V="|"),G({type:"comma",value:T,output:V});continue}if(T==="/"){if(L.type==="dot"&&k.index===k.start+1){k.start=k.index+1,k.consumed="",k.output="",x.pop(),L=P;continue}G({type:"slash",value:T,output:w});continue}if(T==="."){if(k.braces>0&&L.type==="dot"){L.value==="."&&(L.output=N);const V=Y[Y.length-1];L.type="dots",L.output+=T,L.value+=T,V.dots=!0;continue}if(k.braces+k.parens===0&&L.type!=="bos"&&L.type!=="slash"){G({type:"text",value:T,output:N});continue}G({type:"dot",value:T,output:N});continue}if(T==="?"){if(!(L&&L.value==="(")&&_.noextglob!==!0&&se()==="("&&se(2)!=="?"){ue("qmark",T);continue}if(L&&L.type==="paren"){const de=se();let _e=T;if(de==="<"&&!l.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(L.value==="("&&!/[!=<:]/.test(de)||de==="<"&&!/<([!=]|\w+>)/.test(le()))&&(_e=`\\${T}`),G({type:"text",value:T,output:_e});continue}if(_.dot!==!0&&(L.type==="slash"||L.type==="bos")){G({type:"qmark",value:T,output:ne});continue}G({type:"qmark",value:T,output:F});continue}if(T==="!"){if(_.noextglob!==!0&&se()==="("&&(se(2)!=="?"||!/[!=<:]/.test(se(3)))){ue("negate",T);continue}if(_.nonegate!==!0&&k.index===0){he();continue}}if(T==="+"){if(_.noextglob!==!0&&se()==="("&&se(2)!=="?"){ue("plus",T);continue}if(L&&L.value==="("||_.regex===!1){G({type:"plus",value:T,output:$});continue}if(L&&(L.type==="bracket"||L.type==="paren"||L.type==="brace")||k.parens>0){G({type:"plus",value:T});continue}G({type:"plus",value:$});continue}if(T==="@"){if(_.noextglob!==!0&&se()==="("&&se(2)!=="?"){G({type:"at",extglob:!0,value:T,output:""});continue}G({type:"text",value:T});continue}if(T!=="*"){(T==="$"||T==="^")&&(T=`\\${T}`);const V=p.exec(le());V&&(T+=V[0],k.index+=V[0].length),G({type:"text",value:T});continue}if(L&&(L.type==="globstar"||L.star===!0)){L.type="star",L.star=!0,L.value+=T,L.output=Z,k.backtrack=!0,k.globstar=!0,ae(T);continue}let Q=le();if(_.noextglob!==!0&&/^\([^?]/.test(Q)){ue("star",T);continue}if(L.type==="star"){if(_.noglobstar===!0){ae(T);continue}const V=L.prev,de=V.prev,_e=V.type==="slash"||V.type==="bos",Re=de&&(de.type==="star"||de.type==="globstar");if(_.bash===!0&&(!_e||Q[0]&&Q[0]!=="/")){G({type:"star",value:T,output:""});continue}const Ce=k.braces>0&&(V.type==="comma"||V.type==="brace"),nr=J.length&&(V.type==="pipe"||V.type==="paren");if(!_e&&V.type!=="paren"&&!Ce&&!nr){G({type:"star",value:T,output:""});continue}for(;Q.slice(0,3)==="/**";){const Ct=b[k.index+4];if(Ct&&Ct!=="/")break;Q=Q.slice(3),ae("/**",3)}if(V.type==="bos"&&re()){L.type="globstar",L.value+=T,L.output=D(_),k.output=L.output,k.globstar=!0,ae(T);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&!Re&&re()){k.output=k.output.slice(0,-(V.output+L.output).length),V.output=`(?:${V.output}`,L.type="globstar",L.output=D(_)+(_.strictSlashes?")":"|$)"),L.value+=T,k.globstar=!0,k.output+=V.output+L.output,ae(T);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&Q[0]==="/"){const Ct=Q[1]!==void 0?"|$":"";k.output=k.output.slice(0,-(V.output+L.output).length),V.output=`(?:${V.output}`,L.type="globstar",L.output=`${D(_)}${w}|${w}${Ct})`,L.value+=T,k.output+=V.output+L.output,k.globstar=!0,ae(T+ce()),G({type:"slash",value:"/",output:""});continue}if(V.type==="bos"&&Q[0]==="/"){L.type="globstar",L.value+=T,L.output=`(?:^|${w}|${D(_)}${w})`,k.output=L.output,k.globstar=!0,ae(T+ce()),G({type:"slash",value:"/",output:""});continue}k.output=k.output.slice(0,-L.output.length),L.type="globstar",L.output=D(_),L.value+=T,k.output+=L.output,k.globstar=!0,ae(T);continue}const oe={type:"star",value:T,output:Z};if(_.bash===!0){oe.output=".*?",(L.type==="bos"||L.type==="slash")&&(oe.output=X+oe.output),G(oe);continue}if(L&&(L.type==="bracket"||L.type==="paren")&&_.regex===!0){oe.output=T,G(oe);continue}(k.index===k.start||L.type==="slash"||L.type==="dot")&&(L.type==="dot"?(k.output+=K,L.output+=K):_.dot===!0?(k.output+=W,L.output+=W):(k.output+=X,L.output+=X),se()!=="*"&&(k.output+=q,L.output+=q)),G(oe)}for(;k.brackets>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));k.output=l.escapeLast(k.output,"["),me("brackets")}for(;k.parens>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing",")"));k.output=l.escapeLast(k.output,"("),me("parens")}for(;k.braces>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","}"));k.output=l.escapeLast(k.output,"{"),me("braces")}if(_.strictSlashes!==!0&&(L.type==="star"||L.type==="bracket")&&G({type:"maybe_slash",value:"",output:`${w}?`}),k.backtrack===!0){k.output="";for(const Q of k.tokens)k.output+=Q.output!=null?Q.output:Q.value,Q.suffix&&(k.output+=Q.suffix)}return k};g.fastpaths=(b,A)=>{const _={...A},E=typeof _.maxLength=="number"?Math.min(u,_.maxLength):u,S=b.length;if(S>E)throw new SyntaxError(`Input length: ${S}, exceeds maximum allowed length: ${E}`);b=h[b]||b;const P=l.isWindows(A),{DOT_LITERAL:x,SLASH_LITERAL:I,ONE_CHAR:B,DOTS_SLASH:R,NO_DOT:O,NO_DOTS:N,NO_DOTS_SLASH:$,STAR:w,START_ANCHOR:q}=c.globChars(P),z=_.dot?N:O,U=_.dot?$:O,K=_.capture?"":"?:",W={negated:!1,prefix:""};let F=_.bash===!0?".*?":w;_.capture&&(F=`(${F})`);const ne=X=>X.noglobstar===!0?F:`(${K}(?:(?!${q}${X.dot?R:x}).)*?)`,j=X=>{switch(X){case"*":return`${z}${B}${F}`;case".*":return`${x}${B}${F}`;case"*.*":return`${z}${F}${x}${B}${F}`;case"*/*":return`${z}${F}${I}${B}${U}${F}`;case"**":return z+ne(_);case"**/*":return`(?:${z}${ne(_)}${I})?${U}${B}${F}`;case"**/*.*":return`(?:${z}${ne(_)}${I})?${U}${F}${x}${B}${F}`;case"**/.*":return`(?:${z}${ne(_)}${I})?${x}${B}${F}`;default:{const te=/^(.*?)\.(\w+)$/.exec(X);if(!te)return;const Z=j(te[1]);return Z?Z+x+te[2]:void 0}}},M=l.removePrefix(b,W);let D=j(M);return D&&_.strictSlashes!==!0&&(D+=`${I}?`),D},o.exports=g},683:(o,i,a)=>{const c=a(17),l=a(700),u=a(754),f=a(513),p=a(356),d=m=>m&&typeof m=="object"&&!Array.isArray(m),h=(m,y,g=!1)=>{if(Array.isArray(m)){const I=m.map(R=>h(R,y,g));return R=>{for(const O of I){const N=O(R);if(N)return N}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 A=y||{},_=f.isWindows(y),E=b?h.compileRe(m,y):h.makeRe(m,y,!1,!0),S=E.state;delete E.state;let P=()=>!1;if(A.ignore){const I={...y,ignore:null,onMatch:null,onResult:null};P=h(A.ignore,I,g)}const x=(I,B=!1)=>{const{isMatch:R,match:O,output:N}=h.test(I,E,y,{glob:m,posix:_}),$={glob:m,state:S,regex:E,posix:_,input:I,output:N,match:O,isMatch:R};return typeof A.onResult=="function"&&A.onResult($),R===!1?($.isMatch=!1,B?$:!1):P(I)?(typeof A.onIgnore=="function"&&A.onIgnore($),$.isMatch=!1,B?$:!1):(typeof A.onMatch=="function"&&A.onMatch($),B?$:!0)};return g&&(x.state=S),x};h.test=(m,y,g,{glob:b,posix:A}={})=>{if(typeof m!="string")throw new TypeError("Expected input to be a string");if(m==="")return{isMatch:!1,output:""};const _=g||{},E=_.format||(A?f.toPosixSlashes:null);let S=m===b,P=S&&E?E(m):m;return S===!1&&(P=E?E(m):m,S=P===b),(S===!1||_.capture===!0)&&(_.matchBase===!0||_.basename===!0?S=h.matchBase(m,y,g,A):S=y.exec(P)),{isMatch:!!S,match:S,output:P}},h.matchBase=(m,y,g,b=f.isWindows(g))=>(y instanceof RegExp?y:h.makeRe(y,g)).test(c.basename(m)),h.isMatch=(m,y,g)=>h(y,g)(m),h.parse=(m,y)=>Array.isArray(m)?m.map(g=>h.parse(g,y)):u(m,{...y,fastpaths:!1}),h.scan=(m,y)=>l(m,y),h.compileRe=(m,y,g=!1,b=!1)=>{if(g===!0)return m.output;const A=y||{},_=A.contains?"":"^",E=A.contains?"":"$";let S=`${_}(?:${m.output})${E}`;m&&m.negated===!0&&(S=`^(?!${S}).*$`);const P=h.toRegex(S,y);return b===!0&&(P.state=m),P},h.makeRe=(m,y,g=!1,b=!1)=>{if(!m||typeof m!="string")throw new TypeError("Expected a non-empty string");const A=y||{};let _={negated:!1,fastpaths:!0},E="",S;return m.startsWith("./")&&(m=m.slice(2),E=_.prefix="./"),A.fastpaths!==!1&&(m[0]==="."||m[0]==="*")&&(S=u.fastpaths(m,y)),S===void 0?(_=u(m,y),_.prefix=E+(_.prefix||"")):_.output=S,h.compileRe(_,y,g,b)},h.toRegex=(m,y)=>{try{const g=y||{};return new RegExp(m,g.flags||(g.nocase?"i":""))}catch(g){if(y&&y.debug===!0)throw g;return/$^/}},h.constants=p,o.exports=h},700:(o,i,a)=>{const c=a(513),{CHAR_ASTERISK:l,CHAR_AT:u,CHAR_BACKWARD_SLASH:f,CHAR_COMMA:p,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:h,CHAR_FORWARD_SLASH:m,CHAR_LEFT_CURLY_BRACE:y,CHAR_LEFT_PARENTHESES:g,CHAR_LEFT_SQUARE_BRACKET:b,CHAR_PLUS:A,CHAR_QUESTION_MARK:_,CHAR_RIGHT_CURLY_BRACE:E,CHAR_RIGHT_PARENTHESES:S,CHAR_RIGHT_SQUARE_BRACKET:P}=a(356),x=R=>R===m||R===f,I=R=>{R.isPrefix!==!0&&(R.depth=R.isGlobstar?1/0:1)},B=(R,O)=>{const N=O||{},$=R.length-1,w=N.parts===!0||N.scanToEnd===!0,q=[],z=[],U=[];let K=R,W=-1,F=0,ne=0,j=!1,M=!1,D=!1,X=!1,te=!1,Z=!1,k=!1,J=!1,Y=!1,ee=0,L,T,re={value:"",depth:0,isGlob:!1};const se=()=>W>=$,ce=()=>K.charCodeAt(W+1),le=()=>(L=T,K.charCodeAt(++W));for(;W<$;){T=le();let me;if(T===f){k=re.backslashes=!0,T=le(),T===y&&(Z=!0);continue}if(Z===!0||T===y){for(ee++;se()!==!0&&(T=le());){if(T===f){k=re.backslashes=!0,le();continue}if(T===y){ee++;continue}if(Z!==!0&&T===d&&(T=le())===d){if(j=re.isBrace=!0,D=re.isGlob=!0,Y=!0,w===!0)continue;break}if(Z!==!0&&T===p){if(j=re.isBrace=!0,D=re.isGlob=!0,Y=!0,w===!0)continue;break}if(T===E&&(ee--,ee===0)){Z=!1,j=re.isBrace=!0,Y=!0;break}}if(w===!0)continue;break}if(T===m){if(q.push(W),z.push(re),re={value:"",depth:0,isGlob:!1},Y===!0)continue;if(L===d&&W===F+1){F+=2;continue}ne=W+1;continue}if(N.noext!==!0&&(T===A||T===u||T===l||T===_||T===h)===!0&&ce()===g){if(D=re.isGlob=!0,X=re.isExtglob=!0,Y=!0,w===!0){for(;se()!==!0&&(T=le());){if(T===f){k=re.backslashes=!0,T=le();continue}if(T===S){D=re.isGlob=!0,Y=!0;break}}continue}break}if(T===l){if(L===l&&(te=re.isGlobstar=!0),D=re.isGlob=!0,Y=!0,w===!0)continue;break}if(T===_){if(D=re.isGlob=!0,Y=!0,w===!0)continue;break}if(T===b){for(;se()!==!0&&(me=le());){if(me===f){k=re.backslashes=!0,le();continue}if(me===P){M=re.isBracket=!0,D=re.isGlob=!0,Y=!0;break}}if(w===!0)continue;break}if(N.nonegate!==!0&&T===h&&W===F){J=re.negated=!0,F++;continue}if(N.noparen!==!0&&T===g){if(D=re.isGlob=!0,w===!0){for(;se()!==!0&&(T=le());){if(T===g){k=re.backslashes=!0,T=le();continue}if(T===S){Y=!0;break}}continue}break}if(D===!0){if(Y=!0,w===!0)continue;break}}N.noext===!0&&(X=!1,D=!1);let ae=K,H="",he="";F>0&&(H=K.slice(0,F),K=K.slice(F),ne-=F),ae&&D===!0&&ne>0?(ae=K.slice(0,ne),he=K.slice(ne)):D===!0?(ae="",he=K):ae=K,ae&&ae!==""&&ae!=="/"&&ae!==K&&x(ae.charCodeAt(ae.length-1))&&(ae=ae.slice(0,-1)),N.unescape===!0&&(he&&(he=c.removeBackslashes(he)),ae&&k===!0&&(ae=c.removeBackslashes(ae)));const ie={prefix:H,input:R,start:F,base:ae,glob:he,isBrace:j,isBracket:M,isGlob:D,isExtglob:X,isGlobstar:te,negated:J};if(N.tokens===!0&&(ie.maxDepth=0,x(T)||z.push(re),ie.tokens=z),N.parts===!0||N.tokens===!0){let me;for(let G=0;G<q.length;G++){const ue=me?me+1:F,Ae=q[G],Q=R.slice(ue,Ae);N.tokens&&(G===0&&F!==0?(z[G].isPrefix=!0,z[G].value=H):z[G].value=Q,I(z[G]),ie.maxDepth+=z[G].depth),(G!==0||Q!=="")&&U.push(Q),me=Ae}if(me&&me+1<R.length){const G=R.slice(me+1);U.push(G),N.tokens&&(z[z.length-1].value=G,I(z[z.length-1]),ie.maxDepth+=z[z.length-1].depth)}ie.slashes=q,ie.parts=U}return ie};o.exports=B},513:(o,i,a)=>{const c=a(17),l=process.platform==="win32",{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:f,REGEX_SPECIAL_CHARS:p,REGEX_SPECIAL_CHARS_GLOBAL:d}=a(356);i.isObject=h=>h!==null&&typeof h=="object"&&!Array.isArray(h),i.hasRegexChars=h=>p.test(h),i.isRegexChar=h=>h.length===1&&i.hasRegexChars(h),i.escapeRegex=h=>h.replace(d,"\\$1"),i.toPosixSlashes=h=>h.replace(u,"/"),i.removeBackslashes=h=>h.replace(f,m=>m==="\\"?"":m),i.supportsLookbehinds=()=>{const h=process.version.slice(1).split(".").map(Number);return h.length===3&&h[0]>=9||h[0]===8&&h[1]>=10},i.isWindows=h=>h&&typeof h.windows=="boolean"?h.windows:l===!0||c.sep==="\\",i.escapeLast=(h,m,y)=>{const g=h.lastIndexOf(m,y);return g===-1?h:h[g-1]==="\\"?i.escapeLast(h,m,g-1):`${h.slice(0,g)}\\${h.slice(g)}`},i.removePrefix=(h,m={})=>{let y=h;return y.startsWith("./")&&(y=y.slice(2),m.prefix="./"),y},i.wrapOutput=(h,m={},y={})=>{const g=y.contains?"":"^",b=y.contains?"":"$";let A=`${g}(?:${h})${b}`;return m.negated===!0&&(A=`(?:^(?!${A}).*$)`),A}},492:(o,i,a)=>{/*!
35
+ */i.exports=function(s){return typeof s=="number"?s-s===0:typeof s=="string"&&s.trim()!==""?Number.isFinite?Number.isFinite(+s):isFinite(+s):!1}},971:(i,s,a)=>{const c=a(837),l=a(333),u=a(251),f=a(513),p=m=>m===""||m==="./",d=(m,h,y)=>{h=[].concat(h),m=[].concat(m);let g=new Set,b=new Set,j=new Set,v=0,A=x=>{j.add(x.output),y&&y.onResult&&y.onResult(x)};for(let x=0;x<h.length;x++){let I=u(String(h[x]),{...y,onResult:A},!0),B=I.state.negated||I.state.negatedExtglob;B&&v++;for(let E of m){let O=I(E,!0);(B?!O.isMatch:O.isMatch)&&(B?g.add(O.output):(g.delete(O.output),b.add(O.output)))}}let P=(v===h.length?[...j]:[...b]).filter(x=>!g.has(x));if(y&&P.length===0){if(y.failglob===!0)throw new Error(`No matches found for "${h.join(", ")}"`);if(y.nonull===!0||y.nullglob===!0)return y.unescape?h.map(x=>x.replace(/\\/g,"")):h}return P};d.match=d,d.matcher=(m,h)=>u(m,h),d.isMatch=(m,h,y)=>u(h,y)(m),d.any=d.isMatch,d.not=(m,h,y={})=>{h=[].concat(h).map(String);let g=new Set,b=[],v=d(m,h,{...y,onResult:A=>{y.onResult&&y.onResult(A),b.push(A.output)}});for(let A of b)v.includes(A)||g.add(A);return[...g]},d.contains=(m,h,y)=>{if(typeof m!="string")throw new TypeError(`Expected a string: "${c.inspect(m)}"`);if(Array.isArray(h))return h.some(g=>d.contains(m,g,y));if(typeof h=="string"){if(p(m)||p(h))return!1;if(m.includes(h)||m.startsWith("./")&&m.slice(2).includes(h))return!0}return d.isMatch(m,h,{...y,contains:!0})},d.matchKeys=(m,h,y)=>{if(!f.isObject(m))throw new TypeError("Expected the first argument to be an object");let g=d(Object.keys(m),h,y),b={};for(let j of g)b[j]=m[j];return b},d.some=(m,h,y)=>{let g=[].concat(m);for(let b of[].concat(h)){let j=u(String(b),y);if(g.some(v=>j(v)))return!0}return!1},d.every=(m,h,y)=>{let g=[].concat(m);for(let b of[].concat(h)){let j=u(String(b),y);if(!g.every(v=>j(v)))return!1}return!0},d.all=(m,h,y)=>{if(typeof m!="string")throw new TypeError(`Expected a string: "${c.inspect(m)}"`);return[].concat(h).every(g=>u(g,y)(m))},d.capture=(m,h,y)=>{let g=f.isWindows(y),j=u.makeRe(String(m),{...y,capture:!0}).exec(g?f.toPosixSlashes(h):h);if(j)return j.slice(1).map(v=>v===void 0?"":v)},d.makeRe=(...m)=>u.makeRe(...m),d.scan=(...m)=>u.scan(...m),d.parse=(m,h)=>{let y=[];for(let g of[].concat(m||[]))for(let b of l(String(g),h))y.push(u.parse(b,h));return y},d.braces=(m,h)=>{if(typeof m!="string")throw new TypeError("Expected a string");return h&&h.nobrace===!0||!/\{.*\}/.test(m)?[m]:l(m,h)},d.braceExpand=(m,h)=>{if(typeof m!="string")throw new TypeError("Expected a string");return d.braces(m,{...h,expand:!0})},i.exports=d},251:(i,s,a)=>{i.exports=a(683)},356:(i,s,a)=>{const c=a(17),l="\\\\/",u=`[^${l}]`,f="\\.",p="\\+",d="\\?",m="\\/",h="(?=.)",y="[^/]",g=`(?:${m}|$)`,b=`(?:^|${m})`,j=`${f}{1,2}${g}`,v=`(?!${f})`,A=`(?!${b}${j})`,S=`(?!${f}{0,1}${g})`,P=`(?!${j})`,x=`[^.${m}]`,I=`${y}*?`,B={DOT_LITERAL:f,PLUS_LITERAL:p,QMARK_LITERAL:d,SLASH_LITERAL:m,ONE_CHAR:h,QMARK:y,END_ANCHOR:g,DOTS_SLASH:j,NO_DOT:v,NO_DOTS:A,NO_DOT_SLASH:S,NO_DOTS_SLASH:P,QMARK_NO_DOT:x,STAR:I,START_ANCHOR:b},E={...B,SLASH_LITERAL:`[${l}]`,QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${f}{1,2}(?:[${l}]|$)`,NO_DOT:`(?!${f})`,NO_DOTS:`(?!(?:^|[${l}])${f}{1,2}(?:[${l}]|$))`,NO_DOT_SLASH:`(?!${f}{0,1}(?:[${l}]|$))`,NO_DOTS_SLASH:`(?!${f}{1,2}(?:[${l}]|$))`,QMARK_NO_DOT:`[^.${l}]`,START_ANCHOR:`(?:^|[${l}])`,END_ANCHOR:`(?:[${l}]|$)`},O={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"};i.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:O,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(N){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${N.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(N){return N===!0?E:B}}},754:(i,s,a)=>{const c=a(356),l=a(513),{MAX_LENGTH:u,POSIX_REGEX_SOURCE:f,REGEX_NON_SPECIAL_CHARS:p,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:m}=c,h=(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(S=>l.escapeRegex(S)).join("..")}return v},y=(b,j)=>`Missing ${b}: "${j}" - use "\\\\${j}" to match literal characters`,g=(b,j)=>{if(typeof b!="string")throw new TypeError("Expected a string");b=m[b]||b;const v={...j},A=typeof v.maxLength=="number"?Math.min(u,v.maxLength):u;let S=b.length;if(S>A)throw new SyntaxError(`Input length: ${S}, exceeds maximum allowed length: ${A}`);const P={type:"bos",value:"",output:v.prepend||""},x=[P],I=v.capture?"":"?:",B=l.isWindows(j),E=c.globChars(B),O=c.extglobChars(E),{DOT_LITERAL:N,PLUS_LITERAL:$,SLASH_LITERAL:R,ONE_CHAR:F,DOTS_SLASH:H,NO_DOT:U,NO_DOT_SLASH:K,NO_DOTS_SLASH:W,QMARK:z,QMARK_NO_DOT:ne,STAR:w,START_ANCHOR:M}=E,D=Q=>`(${I}(?:(?!${M}${Q.dot?H:N}).)*?)`,X=v.dot?"":U,te=v.dot?z:ne;let Z=v.bash===!0?D(v):w;v.capture&&(Z=`(${Z})`),typeof v.noext=="boolean"&&(v.noextglob=v.noext);const k={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:x};b=l.removePrefix(b,k),S=b.length;const J=[],Y=[],ee=[];let L=P,T;const re=()=>k.index===S-1,se=k.peek=(Q=1)=>b[k.index+Q],ce=k.advance=()=>b[++k.index],le=()=>b.slice(k.index+1),ae=(Q="",oe=0)=>{k.consumed+=Q,k.index+=oe},q=Q=>{k.output+=Q.output!=null?Q.output:Q.value,ae(Q.value)},he=()=>{let Q=1;for(;se()==="!"&&(se(2)!=="("||se(3)==="?");)ce(),k.start++,Q++;return Q%2===0?!1:(k.negated=!0,k.start++,!0)},ie=Q=>{k[Q]++,ee.push(Q)},me=Q=>{k[Q]--,ee.pop()},G=Q=>{if(L.type==="globstar"){const oe=k.braces>0&&(Q.type==="comma"||Q.type==="brace"),V=Q.extglob===!0||J.length&&(Q.type==="pipe"||Q.type==="paren");Q.type!=="slash"&&Q.type!=="paren"&&!oe&&!V&&(k.output=k.output.slice(0,-L.output.length),L.type="star",L.value="*",L.output=Z,k.output+=L.output)}if(J.length&&Q.type!=="paren"&&!O[Q.value]&&(J[J.length-1].inner+=Q.value),(Q.value||Q.output)&&q(Q),L&&L.type==="text"&&Q.type==="text"){L.value+=Q.value,L.output=(L.output||"")+Q.value;return}Q.prev=L,x.push(Q),L=Q},ue=(Q,oe)=>{const V={...O[oe],conditions:1,inner:""};V.prev=L,V.parens=k.parens,V.output=k.output;const de=(v.capture?"(":"")+V.open;ie("parens"),G({type:Q,value:oe,output:k.output?"":F}),G({type:"paren",extglob:!0,value:ce(),output:de}),J.push(V)},je=Q=>{let oe=Q.close+(v.capture?")":"");if(Q.type==="negate"){let V=Z;Q.inner&&Q.inner.length>1&&Q.inner.includes("/")&&(V=D(v)),(V!==Z||re()||/^\)+$/.test(le()))&&(oe=Q.close=`)$))${V}`),Q.prev.type==="bos"&&(k.negatedExtglob=!0)}G({type:"paren",extglob:!0,value:T,output:oe}),me("parens")};if(v.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(b)){let Q=!1,oe=b.replace(d,(V,de,_e,Re,Ce,cr)=>Re==="\\"?(Q=!0,V):Re==="?"?de?de+Re+(Ce?z.repeat(Ce.length):""):cr===0?te+(Ce?z.repeat(Ce.length):""):z.repeat(_e.length):Re==="."?N.repeat(_e.length):Re==="*"?de?de+Re+(Ce?Z:""):Z:de?V:`\\${V}`);return Q===!0&&(v.unescape===!0?oe=oe.replace(/\\/g,""):oe=oe.replace(/\\+/g,V=>V.length%2===0?"\\\\":V?"\\":"")),oe===b&&v.contains===!0?(k.output=b,k):(k.output=l.wrapOutput(oe,k,j),k)}for(;!re();){if(T=ce(),T==="\0")continue;if(T==="\\"){const V=se();if(V==="/"&&v.bash!==!0||V==="."||V===";")continue;if(!V){T+="\\",G({type:"text",value:T});continue}const de=/^\\+/.exec(le());let _e=0;if(de&&de[0].length>2&&(_e=de[0].length,k.index+=_e,_e%2!==0&&(T+="\\")),v.unescape===!0?T=ce()||"":T+=ce()||"",k.brackets===0){G({type:"text",value:T});continue}}if(k.brackets>0&&(T!=="]"||L.value==="["||L.value==="[^")){if(v.posix!==!1&&T===":"){const V=L.value.slice(1);if(V.includes("[")&&(L.posix=!0,V.includes(":"))){const de=L.value.lastIndexOf("["),_e=L.value.slice(0,de),Re=L.value.slice(de+2),Ce=f[Re];if(Ce){L.value=_e+Ce,k.backtrack=!0,ce(),!P.output&&x.indexOf(L)===1&&(P.output=F);continue}}}(T==="["&&se()!==":"||T==="-"&&se()==="]")&&(T=`\\${T}`),T==="]"&&(L.value==="["||L.value==="[^")&&(T=`\\${T}`),v.posix===!0&&T==="!"&&L.value==="["&&(T="^"),L.value+=T,q({value:T});continue}if(k.quotes===1&&T!=='"'){T=l.escapeRegex(T),L.value+=T,q({value:T});continue}if(T==='"'){k.quotes=k.quotes===1?0:1,v.keepQuotes===!0&&G({type:"text",value:T});continue}if(T==="("){ie("parens"),G({type:"paren",value:T});continue}if(T===")"){if(k.parens===0&&v.strictBrackets===!0)throw new SyntaxError(y("opening","("));const V=J[J.length-1];if(V&&k.parens===V.parens+1){je(J.pop());continue}G({type:"paren",value:T,output:k.parens?")":"\\)"}),me("parens");continue}if(T==="["){if(v.nobracket===!0||!le().includes("]")){if(v.nobracket!==!0&&v.strictBrackets===!0)throw new SyntaxError(y("closing","]"));T=`\\${T}`}else ie("brackets");G({type:"bracket",value:T});continue}if(T==="]"){if(v.nobracket===!0||L&&L.type==="bracket"&&L.value.length===1){G({type:"text",value:T,output:`\\${T}`});continue}if(k.brackets===0){if(v.strictBrackets===!0)throw new SyntaxError(y("opening","["));G({type:"text",value:T,output:`\\${T}`});continue}me("brackets");const V=L.value.slice(1);if(L.posix!==!0&&V[0]==="^"&&!V.includes("/")&&(T=`/${T}`),L.value+=T,q({value:T}),v.literalBrackets===!1||l.hasRegexChars(V))continue;const de=l.escapeRegex(L.value);if(k.output=k.output.slice(0,-L.value.length),v.literalBrackets===!0){k.output+=de,L.value=de;continue}L.value=`(${I}${de}|${L.value})`,k.output+=L.value;continue}if(T==="{"&&v.nobrace!==!0){ie("braces");const V={type:"brace",value:T,output:"(",outputIndex:k.output.length,tokensIndex:k.tokens.length};Y.push(V),G(V);continue}if(T==="}"){const V=Y[Y.length-1];if(v.nobrace===!0||!V){G({type:"text",value:T,output:T});continue}let de=")";if(V.dots===!0){const _e=x.slice(),Re=[];for(let Ce=_e.length-1;Ce>=0&&(x.pop(),_e[Ce].type!=="brace");Ce--)_e[Ce].type!=="dots"&&Re.unshift(_e[Ce].value);de=h(Re,v),k.backtrack=!0}if(V.comma!==!0&&V.dots!==!0){const _e=k.output.slice(0,V.outputIndex),Re=k.tokens.slice(V.tokensIndex);V.value=V.output="\\{",T=de="\\}",k.output=_e;for(const Ce of Re)k.output+=Ce.output||Ce.value}G({type:"brace",value:T,output:de}),me("braces"),Y.pop();continue}if(T==="|"){J.length>0&&J[J.length-1].conditions++,G({type:"text",value:T});continue}if(T===","){let V=T;const de=Y[Y.length-1];de&&ee[ee.length-1]==="braces"&&(de.comma=!0,V="|"),G({type:"comma",value:T,output:V});continue}if(T==="/"){if(L.type==="dot"&&k.index===k.start+1){k.start=k.index+1,k.consumed="",k.output="",x.pop(),L=P;continue}G({type:"slash",value:T,output:R});continue}if(T==="."){if(k.braces>0&&L.type==="dot"){L.value==="."&&(L.output=N);const V=Y[Y.length-1];L.type="dots",L.output+=T,L.value+=T,V.dots=!0;continue}if(k.braces+k.parens===0&&L.type!=="bos"&&L.type!=="slash"){G({type:"text",value:T,output:N});continue}G({type:"dot",value:T,output:N});continue}if(T==="?"){if(!(L&&L.value==="(")&&v.noextglob!==!0&&se()==="("&&se(2)!=="?"){ue("qmark",T);continue}if(L&&L.type==="paren"){const de=se();let _e=T;if(de==="<"&&!l.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(L.value==="("&&!/[!=<:]/.test(de)||de==="<"&&!/<([!=]|\w+>)/.test(le()))&&(_e=`\\${T}`),G({type:"text",value:T,output:_e});continue}if(v.dot!==!0&&(L.type==="slash"||L.type==="bos")){G({type:"qmark",value:T,output:ne});continue}G({type:"qmark",value:T,output:z});continue}if(T==="!"){if(v.noextglob!==!0&&se()==="("&&(se(2)!=="?"||!/[!=<:]/.test(se(3)))){ue("negate",T);continue}if(v.nonegate!==!0&&k.index===0){he();continue}}if(T==="+"){if(v.noextglob!==!0&&se()==="("&&se(2)!=="?"){ue("plus",T);continue}if(L&&L.value==="("||v.regex===!1){G({type:"plus",value:T,output:$});continue}if(L&&(L.type==="bracket"||L.type==="paren"||L.type==="brace")||k.parens>0){G({type:"plus",value:T});continue}G({type:"plus",value:$});continue}if(T==="@"){if(v.noextglob!==!0&&se()==="("&&se(2)!=="?"){G({type:"at",extglob:!0,value:T,output:""});continue}G({type:"text",value:T});continue}if(T!=="*"){(T==="$"||T==="^")&&(T=`\\${T}`);const V=p.exec(le());V&&(T+=V[0],k.index+=V[0].length),G({type:"text",value:T});continue}if(L&&(L.type==="globstar"||L.star===!0)){L.type="star",L.star=!0,L.value+=T,L.output=Z,k.backtrack=!0,k.globstar=!0,ae(T);continue}let Q=le();if(v.noextglob!==!0&&/^\([^?]/.test(Q)){ue("star",T);continue}if(L.type==="star"){if(v.noglobstar===!0){ae(T);continue}const V=L.prev,de=V.prev,_e=V.type==="slash"||V.type==="bos",Re=de&&(de.type==="star"||de.type==="globstar");if(v.bash===!0&&(!_e||Q[0]&&Q[0]!=="/")){G({type:"star",value:T,output:""});continue}const Ce=k.braces>0&&(V.type==="comma"||V.type==="brace"),cr=J.length&&(V.type==="pipe"||V.type==="paren");if(!_e&&V.type!=="paren"&&!Ce&&!cr){G({type:"star",value:T,output:""});continue}for(;Q.slice(0,3)==="/**";){const wt=b[k.index+4];if(wt&&wt!=="/")break;Q=Q.slice(3),ae("/**",3)}if(V.type==="bos"&&re()){L.type="globstar",L.value+=T,L.output=D(v),k.output=L.output,k.globstar=!0,ae(T);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&!Re&&re()){k.output=k.output.slice(0,-(V.output+L.output).length),V.output=`(?:${V.output}`,L.type="globstar",L.output=D(v)+(v.strictSlashes?")":"|$)"),L.value+=T,k.globstar=!0,k.output+=V.output+L.output,ae(T);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&Q[0]==="/"){const wt=Q[1]!==void 0?"|$":"";k.output=k.output.slice(0,-(V.output+L.output).length),V.output=`(?:${V.output}`,L.type="globstar",L.output=`${D(v)}${R}|${R}${wt})`,L.value+=T,k.output+=V.output+L.output,k.globstar=!0,ae(T+ce()),G({type:"slash",value:"/",output:""});continue}if(V.type==="bos"&&Q[0]==="/"){L.type="globstar",L.value+=T,L.output=`(?:^|${R}|${D(v)}${R})`,k.output=L.output,k.globstar=!0,ae(T+ce()),G({type:"slash",value:"/",output:""});continue}k.output=k.output.slice(0,-L.output.length),L.type="globstar",L.output=D(v),L.value+=T,k.output+=L.output,k.globstar=!0,ae(T);continue}const oe={type:"star",value:T,output:Z};if(v.bash===!0){oe.output=".*?",(L.type==="bos"||L.type==="slash")&&(oe.output=X+oe.output),G(oe);continue}if(L&&(L.type==="bracket"||L.type==="paren")&&v.regex===!0){oe.output=T,G(oe);continue}(k.index===k.start||L.type==="slash"||L.type==="dot")&&(L.type==="dot"?(k.output+=K,L.output+=K):v.dot===!0?(k.output+=W,L.output+=W):(k.output+=X,L.output+=X),se()!=="*"&&(k.output+=F,L.output+=F)),G(oe)}for(;k.brackets>0;){if(v.strictBrackets===!0)throw new SyntaxError(y("closing","]"));k.output=l.escapeLast(k.output,"["),me("brackets")}for(;k.parens>0;){if(v.strictBrackets===!0)throw new SyntaxError(y("closing",")"));k.output=l.escapeLast(k.output,"("),me("parens")}for(;k.braces>0;){if(v.strictBrackets===!0)throw new SyntaxError(y("closing","}"));k.output=l.escapeLast(k.output,"{"),me("braces")}if(v.strictSlashes!==!0&&(L.type==="star"||L.type==="bracket")&&G({type:"maybe_slash",value:"",output:`${R}?`}),k.backtrack===!0){k.output="";for(const Q of k.tokens)k.output+=Q.output!=null?Q.output:Q.value,Q.suffix&&(k.output+=Q.suffix)}return k};g.fastpaths=(b,j)=>{const v={...j},A=typeof v.maxLength=="number"?Math.min(u,v.maxLength):u,S=b.length;if(S>A)throw new SyntaxError(`Input length: ${S}, exceeds maximum allowed length: ${A}`);b=m[b]||b;const P=l.isWindows(j),{DOT_LITERAL:x,SLASH_LITERAL:I,ONE_CHAR:B,DOTS_SLASH:E,NO_DOT:O,NO_DOTS:N,NO_DOTS_SLASH:$,STAR:R,START_ANCHOR:F}=c.globChars(P),H=v.dot?N:O,U=v.dot?$:O,K=v.capture?"":"?:",W={negated:!1,prefix:""};let z=v.bash===!0?".*?":R;v.capture&&(z=`(${z})`);const ne=X=>X.noglobstar===!0?z:`(${K}(?:(?!${F}${X.dot?E:x}).)*?)`,w=X=>{switch(X){case"*":return`${H}${B}${z}`;case".*":return`${x}${B}${z}`;case"*.*":return`${H}${z}${x}${B}${z}`;case"*/*":return`${H}${z}${I}${B}${U}${z}`;case"**":return H+ne(v);case"**/*":return`(?:${H}${ne(v)}${I})?${U}${B}${z}`;case"**/*.*":return`(?:${H}${ne(v)}${I})?${U}${z}${x}${B}${z}`;case"**/.*":return`(?:${H}${ne(v)}${I})?${x}${B}${z}`;default:{const te=/^(.*?)\.(\w+)$/.exec(X);if(!te)return;const Z=w(te[1]);return Z?Z+x+te[2]:void 0}}},M=l.removePrefix(b,W);let D=w(M);return D&&v.strictSlashes!==!0&&(D+=`${I}?`),D},i.exports=g},683:(i,s,a)=>{const c=a(17),l=a(700),u=a(754),f=a(513),p=a(356),d=h=>h&&typeof h=="object"&&!Array.isArray(h),m=(h,y,g=!1)=>{if(Array.isArray(h)){const I=h.map(E=>m(E,y,g));return E=>{for(const O of I){const N=O(E);if(N)return N}return!1}}const b=d(h)&&h.tokens&&h.input;if(h===""||typeof h!="string"&&!b)throw new TypeError("Expected pattern to be a non-empty string");const j=y||{},v=f.isWindows(y),A=b?m.compileRe(h,y):m.makeRe(h,y,!1,!0),S=A.state;delete A.state;let P=()=>!1;if(j.ignore){const I={...y,ignore:null,onMatch:null,onResult:null};P=m(j.ignore,I,g)}const x=(I,B=!1)=>{const{isMatch:E,match:O,output:N}=m.test(I,A,y,{glob:h,posix:v}),$={glob:h,state:S,regex:A,posix:v,input:I,output:N,match:O,isMatch:E};return typeof j.onResult=="function"&&j.onResult($),E===!1?($.isMatch=!1,B?$:!1):P(I)?(typeof j.onIgnore=="function"&&j.onIgnore($),$.isMatch=!1,B?$:!1):(typeof j.onMatch=="function"&&j.onMatch($),B?$:!0)};return g&&(x.state=S),x};m.test=(h,y,g,{glob:b,posix:j}={})=>{if(typeof h!="string")throw new TypeError("Expected input to be a string");if(h==="")return{isMatch:!1,output:""};const v=g||{},A=v.format||(j?f.toPosixSlashes:null);let S=h===b,P=S&&A?A(h):h;return S===!1&&(P=A?A(h):h,S=P===b),(S===!1||v.capture===!0)&&(v.matchBase===!0||v.basename===!0?S=m.matchBase(h,y,g,j):S=y.exec(P)),{isMatch:!!S,match:S,output:P}},m.matchBase=(h,y,g,b=f.isWindows(g))=>(y instanceof RegExp?y:m.makeRe(y,g)).test(c.basename(h)),m.isMatch=(h,y,g)=>m(y,g)(h),m.parse=(h,y)=>Array.isArray(h)?h.map(g=>m.parse(g,y)):u(h,{...y,fastpaths:!1}),m.scan=(h,y)=>l(h,y),m.compileRe=(h,y,g=!1,b=!1)=>{if(g===!0)return h.output;const j=y||{},v=j.contains?"":"^",A=j.contains?"":"$";let S=`${v}(?:${h.output})${A}`;h&&h.negated===!0&&(S=`^(?!${S}).*$`);const P=m.toRegex(S,y);return b===!0&&(P.state=h),P},m.makeRe=(h,y,g=!1,b=!1)=>{if(!h||typeof h!="string")throw new TypeError("Expected a non-empty string");const j=y||{};let v={negated:!1,fastpaths:!0},A="",S;return h.startsWith("./")&&(h=h.slice(2),A=v.prefix="./"),j.fastpaths!==!1&&(h[0]==="."||h[0]==="*")&&(S=u.fastpaths(h,y)),S===void 0?(v=u(h,y),v.prefix=A+(v.prefix||"")):v.output=S,m.compileRe(v,y,g,b)},m.toRegex=(h,y)=>{try{const g=y||{};return new RegExp(h,g.flags||(g.nocase?"i":""))}catch(g){if(y&&y.debug===!0)throw g;return/$^/}},m.constants=p,i.exports=m},700:(i,s,a)=>{const c=a(513),{CHAR_ASTERISK:l,CHAR_AT:u,CHAR_BACKWARD_SLASH:f,CHAR_COMMA:p,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:m,CHAR_FORWARD_SLASH:h,CHAR_LEFT_CURLY_BRACE:y,CHAR_LEFT_PARENTHESES:g,CHAR_LEFT_SQUARE_BRACKET:b,CHAR_PLUS:j,CHAR_QUESTION_MARK:v,CHAR_RIGHT_CURLY_BRACE:A,CHAR_RIGHT_PARENTHESES:S,CHAR_RIGHT_SQUARE_BRACKET:P}=a(356),x=E=>E===h||E===f,I=E=>{E.isPrefix!==!0&&(E.depth=E.isGlobstar?1/0:1)},B=(E,O)=>{const N=O||{},$=E.length-1,R=N.parts===!0||N.scanToEnd===!0,F=[],H=[],U=[];let K=E,W=-1,z=0,ne=0,w=!1,M=!1,D=!1,X=!1,te=!1,Z=!1,k=!1,J=!1,Y=!1,ee=0,L,T,re={value:"",depth:0,isGlob:!1};const se=()=>W>=$,ce=()=>K.charCodeAt(W+1),le=()=>(L=T,K.charCodeAt(++W));for(;W<$;){T=le();let me;if(T===f){k=re.backslashes=!0,T=le(),T===y&&(Z=!0);continue}if(Z===!0||T===y){for(ee++;se()!==!0&&(T=le());){if(T===f){k=re.backslashes=!0,le();continue}if(T===y){ee++;continue}if(Z!==!0&&T===d&&(T=le())===d){if(w=re.isBrace=!0,D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(Z!==!0&&T===p){if(w=re.isBrace=!0,D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(T===A&&(ee--,ee===0)){Z=!1,w=re.isBrace=!0,Y=!0;break}}if(R===!0)continue;break}if(T===h){if(F.push(W),H.push(re),re={value:"",depth:0,isGlob:!1},Y===!0)continue;if(L===d&&W===z+1){z+=2;continue}ne=W+1;continue}if(N.noext!==!0&&(T===j||T===u||T===l||T===v||T===m)===!0&&ce()===g){if(D=re.isGlob=!0,X=re.isExtglob=!0,Y=!0,R===!0){for(;se()!==!0&&(T=le());){if(T===f){k=re.backslashes=!0,T=le();continue}if(T===S){D=re.isGlob=!0,Y=!0;break}}continue}break}if(T===l){if(L===l&&(te=re.isGlobstar=!0),D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(T===v){if(D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(T===b){for(;se()!==!0&&(me=le());){if(me===f){k=re.backslashes=!0,le();continue}if(me===P){M=re.isBracket=!0,D=re.isGlob=!0,Y=!0;break}}if(R===!0)continue;break}if(N.nonegate!==!0&&T===m&&W===z){J=re.negated=!0,z++;continue}if(N.noparen!==!0&&T===g){if(D=re.isGlob=!0,R===!0){for(;se()!==!0&&(T=le());){if(T===g){k=re.backslashes=!0,T=le();continue}if(T===S){Y=!0;break}}continue}break}if(D===!0){if(Y=!0,R===!0)continue;break}}N.noext===!0&&(X=!1,D=!1);let ae=K,q="",he="";z>0&&(q=K.slice(0,z),K=K.slice(z),ne-=z),ae&&D===!0&&ne>0?(ae=K.slice(0,ne),he=K.slice(ne)):D===!0?(ae="",he=K):ae=K,ae&&ae!==""&&ae!=="/"&&ae!==K&&x(ae.charCodeAt(ae.length-1))&&(ae=ae.slice(0,-1)),N.unescape===!0&&(he&&(he=c.removeBackslashes(he)),ae&&k===!0&&(ae=c.removeBackslashes(ae)));const ie={prefix:q,input:E,start:z,base:ae,glob:he,isBrace:w,isBracket:M,isGlob:D,isExtglob:X,isGlobstar:te,negated:J};if(N.tokens===!0&&(ie.maxDepth=0,x(T)||H.push(re),ie.tokens=H),N.parts===!0||N.tokens===!0){let me;for(let G=0;G<F.length;G++){const ue=me?me+1:z,je=F[G],Q=E.slice(ue,je);N.tokens&&(G===0&&z!==0?(H[G].isPrefix=!0,H[G].value=q):H[G].value=Q,I(H[G]),ie.maxDepth+=H[G].depth),(G!==0||Q!=="")&&U.push(Q),me=je}if(me&&me+1<E.length){const G=E.slice(me+1);U.push(G),N.tokens&&(H[H.length-1].value=G,I(H[H.length-1]),ie.maxDepth+=H[H.length-1].depth)}ie.slashes=F,ie.parts=U}return ie};i.exports=B},513:(i,s,a)=>{const c=a(17),l=process.platform==="win32",{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:f,REGEX_SPECIAL_CHARS:p,REGEX_SPECIAL_CHARS_GLOBAL:d}=a(356);s.isObject=m=>m!==null&&typeof m=="object"&&!Array.isArray(m),s.hasRegexChars=m=>p.test(m),s.isRegexChar=m=>m.length===1&&s.hasRegexChars(m),s.escapeRegex=m=>m.replace(d,"\\$1"),s.toPosixSlashes=m=>m.replace(u,"/"),s.removeBackslashes=m=>m.replace(f,h=>h==="\\"?"":h),s.supportsLookbehinds=()=>{const m=process.version.slice(1).split(".").map(Number);return m.length===3&&m[0]>=9||m[0]===8&&m[1]>=10},s.isWindows=m=>m&&typeof m.windows=="boolean"?m.windows:l===!0||c.sep==="\\",s.escapeLast=(m,h,y)=>{const g=m.lastIndexOf(h,y);return g===-1?m:m[g-1]==="\\"?s.escapeLast(m,h,g-1):`${m.slice(0,g)}\\${m.slice(g)}`},s.removePrefix=(m,h={})=>{let y=m;return y.startsWith("./")&&(y=y.slice(2),h.prefix="./"),y},s.wrapOutput=(m,h={},y={})=>{const g=y.contains?"":"^",b=y.contains?"":"$";let j=`${g}(?:${m})${b}`;return h.negated===!0&&(j=`(?:^(?!${j}).*$)`),j}},492:(i,s,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=(x,I,B)=>{if(c(x)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(I===void 0||x===I)return String(x);if(c(I)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let R={relaxZeros:!0,...B};typeof R.strictZeros=="boolean"&&(R.relaxZeros=R.strictZeros===!1);let O=String(R.relaxZeros),N=String(R.shorthand),$=String(R.capture),w=String(R.wrap),q=x+":"+I+"="+O+N+$+w;if(l.cache.hasOwnProperty(q))return l.cache[q].result;let z=Math.min(x,I),U=Math.max(x,I);if(Math.abs(z-U)===1){let j=x+"|"+I;return R.capture?`(${j})`:R.wrap===!1?j:`(?:${j})`}let K=S(x)||S(I),W={min:x,max:I,a:z,b:U},F=[],ne=[];if(K&&(W.isPadded=K,W.maxLen=String(W.max).length),z<0){let j=U<0?Math.abs(U):1;ne=d(j,Math.abs(z),W,R),z=W.a=0}return U>=0&&(F=d(z,U,W,R)),W.negatives=ne,W.positives=F,W.result=u(ne,F),R.capture===!0?W.result=`(${W.result})`:R.wrap!==!1&&F.length+ne.length>1&&(W.result=`(?:${W.result})`),l.cache[q]=W,W.result};function u(x,I,B){let R=h(x,I,"-",!1)||[],O=h(I,x,"",!1)||[],N=h(x,I,"-?",!0)||[];return R.concat(N).concat(O).join("|")}function f(x,I){let B=1,R=1,O=b(x,B),N=new Set([I]);for(;x<=O&&O<=I;)N.add(O),B+=1,O=b(x,B);for(O=A(I+1,R)-1;x<O&&O<=I;)N.add(O),R+=1,O=A(I+1,R)-1;return N=[...N],N.sort(y),N}function p(x,I,B){if(x===I)return{pattern:x,count:[],digits:0};let R=m(x,I),O=R.length,N="",$=0;for(let w=0;w<O;w++){let[q,z]=R[w];q===z?N+=q:q!=="0"||z!=="9"?N+=E(q,z):$++}return $&&(N+=B.shorthand===!0?"\\d":"[0-9]"),{pattern:N,count:[$],digits:O}}function d(x,I,B,R){let O=f(x,I),N=[],$=x,w;for(let q=0;q<O.length;q++){let z=O[q],U=p(String($),String(z),R),K="";if(!B.isPadded&&w&&w.pattern===U.pattern){w.count.length>1&&w.count.pop(),w.count.push(U.count[0]),w.string=w.pattern+_(w.count),$=z+1;continue}B.isPadded&&(K=P(z,B,R)),U.string=K+U.pattern+_(U.count),N.push(U),$=z+1,w=U}return N}function h(x,I,B,R,O){let N=[];for(let $ of x){let{string:w}=$;!R&&!g(I,"string",w)&&N.push(B+w),R&&g(I,"string",w)&&N.push(B+w)}return N}function m(x,I){let B=[];for(let R=0;R<x.length;R++)B.push([x[R],I[R]]);return B}function y(x,I){return x>I?1:I>x?-1:0}function g(x,I,B){return x.some(R=>R[I]===B)}function b(x,I){return Number(String(x).slice(0,-I)+"9".repeat(I))}function A(x,I){return x-x%Math.pow(10,I)}function _(x){let[I=0,B=""]=x;return B||I>1?`{${I+(B?","+B:"")}}`:""}function E(x,I,B){return`[${x}${I-x===1?"":"-"}${I}]`}function S(x){return/^-?(0+)\d/.test(x)}function P(x,I,B){if(!I.isPadded)return x;let R=Math.abs(I.maxLen-String(x).length),O=B.relaxZeros!==!1;switch(R){case 0:return"";case 1:return O?"0?":"0";case 2:return O?"0{0,2}":"00";default:return O?`0{0,${R}}`:`0{${R}}`}}l.cache={},l.clearCache=()=>l.cache={},o.exports=l},17:o=>{o.exports=Zp},837:o=>{o.exports=Mm()}},t={};function r(o){var i=t[o];if(i!==void 0)return i.exports;var a=t[o]={exports:{}},c=!0;try{e[o](a,a.exports,r),c=!1}finally{c&&delete t[o]}return a.exports}typeof r<"u"&&(r.ab=__dirname+"/");var n=r(971);Br.exports=n})()),Br.exports}var Bs;function Lm(){return Bs||(Bs=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 n},hasMatch:function(){return o}});const r=km();function n(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 o(i,a,c){return i.some(l=>c.hostname===l)||a.some(l=>n(l,c))}}($r)),$r}var qs;function Gl(){return qs||(qs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n){let{config:o,src:i,width:a,quality:c}=n;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("/")&&(o.domains||o.remotePatterns)){let u;try{u=new URL(i)}catch(f){throw console.error(f),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:f}=Lm();if(!f(o.domains,o.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 o.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}(Dr)),Dr}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return A}});const r=je,o=Qt()._(C),i=r._(ta),a=r._(Qp()),c=Mo,l=er,u=Yp(),f=yt,p=Hc(),d=r._(Gl()),h=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function m(_,E,S,P,x,I){const B=_==null?void 0:_.src;if(!_||_["data-loaded-src"]===B)return;_["data-loaded-src"]=B,("decode"in _?_.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!_.parentElement||!_.isConnected)){if(E!=="empty"&&x(!0),S!=null&&S.current){const O=new Event("load");Object.defineProperty(O,"target",{writable:!1,value:_});let N=!1,$=!1;S.current({...O,nativeEvent:O,currentTarget:_,target:_,isDefaultPrevented:()=>N,isPropagationStopped:()=>$,persist:()=>{},preventDefault:()=>{N=!0,O.preventDefault()},stopPropagation:()=>{$=!0,O.stopPropagation()}})}if(P!=null&&P.current&&P.current(_),process.env.NODE_ENV!=="production"){const O=new URL(B,"http://n").searchParams.get("url")||B;if(_.getAttribute("data-nimg")==="fill"){if(!I&&(!_.getAttribute("sizes")||_.getAttribute("sizes")==="100vw")&&_.getBoundingClientRect().width/window.innerWidth<.6&&(0,f.warnOnce)('Image with src "'+O+'" 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'),_.parentElement){const{position:w}=window.getComputedStyle(_.parentElement),q=["absolute","fixed","relative"];q.includes(w)||(0,f.warnOnce)('Image with src "'+O+'" has "fill" and parent element with invalid "position". Provided "'+w+'" should be one of '+q.map(String).join(",")+".")}_.height===0&&(0,f.warnOnce)('Image with src "'+O+'" 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 N=_.height.toString()!==_.getAttribute("height"),$=_.width.toString()!==_.getAttribute("width");(N&&!$||!N&&$)&&(0,f.warnOnce)('Image with src "'+O+`" 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 y(_){const[E,S]=o.version.split("."),P=parseInt(E,10),x=parseInt(S,10);return P>18||P===18&&x>=3?{fetchPriority:_}:{fetchpriority:_}}const g=(0,o.forwardRef)((_,E)=>{let{src:S,srcSet:P,sizes:x,height:I,width:B,decoding:R,className:O,style:N,fetchPriority:$,placeholder:w,loading:q,unoptimized:z,fill:U,onLoadRef:K,onLoadingCompleteRef:W,setBlurComplete:F,setShowAltText:ne,onLoad:j,onError:M,...D}=_;return o.default.createElement("img",{...D,...y($),loading:q,width:B,height:I,decoding:R,"data-nimg":U?"fill":"1",className:O,style:N,sizes:x,srcSet:P,src:S,ref:(0,o.useCallback)(X=>{E&&(typeof E=="function"?E(X):typeof E=="object"&&(E.current=X)),X&&(M&&(X.src=X.src),process.env.NODE_ENV!=="production"&&(S||console.error('Image is missing required "src" property:',X),X.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.')),X.complete&&m(X,w,K,W,F,z))},[S,w,K,W,F,M,z,E]),onLoad:X=>{const te=X.currentTarget;m(te,w,K,W,F,z)},onError:X=>{ne(!0),w!=="empty"&&F(!0),M&&M(X)}})});function b(_){let{isAppRouter:E,imgAttributes:S}=_;const P={as:"image",imageSrcSet:S.srcSet,imageSizes:S.sizes,crossOrigin:S.crossOrigin,referrerPolicy:S.referrerPolicy,...y(S.fetchPriority)};return E&&i.default.preload?(i.default.preload(S.src,P),null):o.default.createElement(a.default,null,o.default.createElement("link",{key:"__nimg-"+S.src+S.srcSet+S.sizes,rel:"preload",href:S.srcSet?void 0:S.src,...P}))}const A=(0,o.forwardRef)((_,E)=>{const P=!(0,o.useContext)(p.RouterContext),x=(0,o.useContext)(u.ImageConfigContext),I=(0,o.useMemo)(()=>{const W=h||x||l.imageConfigDefault,F=[...W.deviceSizes,...W.imageSizes].sort((j,M)=>j-M),ne=W.deviceSizes.sort((j,M)=>j-M);return{...W,allSizes:F,deviceSizes:ne}},[x]),{onLoad:B,onLoadingComplete:R}=_,O=(0,o.useRef)(B);(0,o.useEffect)(()=>{O.current=B},[B]);const N=(0,o.useRef)(R);(0,o.useEffect)(()=>{N.current=R},[R]);const[$,w]=(0,o.useState)(!1),[q,z]=(0,o.useState)(!1),{props:U,meta:K}=(0,c.getImgProps)(_,{defaultLoader:d.default,imgConf:I,blurComplete:$,showAltText:q});return o.default.createElement(o.default.Fragment,null,o.default.createElement(g,{...U,unoptimized:K.unoptimized,placeholder:K.placeholder,fill:K.fill,onLoadRef:O,onLoadingCompleteRef:N,setBlurComplete:w,setShowAltText:z,ref:E}),K.priority?o.default.createElement(b,{isAppRouter:P,imgAttributes:U}):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)})(to,to.exports);var Dm=to.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var p in f)Object.defineProperty(u,p,{enumerable:!0,get:f[p]})}t(e,{unstable_getImgProps:function(){return c},default:function(){return l}});const r=je,n=Mo,o=yt,i=Dm,a=r._(Gl()),c=u=>{(0,o.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");const{props:f}=(0,n.getImgProps)(u,{defaultLoader:a.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[p,d]of Object.entries(f))d===void 0&&delete f[p];return{props:f}},l=i.Image})(Tl);var $m=Tl;const Hs=Xt($m),Bm=({item:e,CONSTANTS:t})=>{const r=e.icon?t.PAYMENT_FLAGS.includes(e.icon)?"payment":"social":null,n=r==="payment"?t.PAYMENT_FLAGS_DICTIONARY[e.icon]:e.icon;return e.link?s.jsxs(Ne,{href:e.link,target:"_blank",rel:"noopener noreferrer",className:pe["support-item"],children:[e.image&&s.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?s.jsx(Hs,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):s.jsx(v.Icon,{size:"small",name:n})]}):s.jsxs("div",{className:pe["support-item"],children:[e.image&&s.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?s.jsx(Hs,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):s.jsx(v.Icon,{size:"small",name:n})]})},qm=({content:e,CONSTANTS:t})=>s.jsx("div",{className:pe["support-container"],children:e==null?void 0:e.map((r,n)=>s.jsxs("div",{"data-device":r.device,className:pe["support-section"],children:[s.jsxs("div",{className:pe["support-text"],children:[r.title&&s.jsx("h3",{children:r.title}),r.description&&s.jsx("p",{children:r.description})]}),r.items.length&&s.jsx("div",{className:pe["support-items"],"data-gap":r.gap,children:r.items.map((o,i)=>s.jsx(Bm,{item:o,CONSTANTS:t},`footer-support-item-${i}`))})]},`footer-support-${n}`))}),Hm=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:n,columnAlignContent:o,columnAlignItems:i,textAlignContent:a,textAlignItems:c,children:l})=>s.jsx(v.TextStructure.Root,{layoutProps:{textRow:{alignContent:n,alignItems:n},columnWrapper:{alignContent:o,alignItems:i}},children:s.jsxs(v.TextStructure.DivWrapper,{alignContent:a,alignItems:c,className:pe.footer__column,children:[s.jsxs("div",{className:t?pe.footer__columnTitleIcon:pe.footer__columnTitle,children:[s.jsx(v.Icon,{name:`${t}`,size:"small"}),e&&s.jsx("div",{children:e})]}),s.jsx("div",{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:l})]})}),Fm=({name:e,nameIcon:t,maxWidth:r,children:n,ICONS:o,...i})=>s.jsxs(v.Accordion.Wrapper,{className:pe.accordionWrapper,title:"accordion-wrapper",...i,children:[s.jsx(v.Accordion.Header,{id:(i==null?void 0:i.id)??"",className:pe.accordionHeader,closeIndicator:s.jsx(v.Icon,{name:o.arrow_up,size:"medium"}),openIndicator:s.jsx(v.Icon,{name:o.arrow_down,size:"medium"}),title:"accordion-header",children:s.jsx(v.TextStructure.Root,{children:s.jsxs(v.TextStructure.DivWrapper,{className:t?pe.accordionTextWrapper:"",children:[s.jsx(v.Icon,{name:`${t}`,size:"medium"}),s.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),s.jsx(v.Accordion.Body,{title:"accordion-body",children:s.jsx(v.TextStructure.Root,{children:s.jsx(v.TextStructure.DivWrapper,{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:n})})})]}),Hn=e=>{const{isMobile:t}=Se();return t?s.jsx(Fm,{...e}):s.jsx(Hm,{...e})},Bt=({type:e,children:t,className:r,collumnName:n,collumnNameIcon:o,icons:i,iconLink:a,iconSize:c,link:l,paymentDisclaimer:u,paymentTitle:f,rowAlignContent:p,columnAlignContent:d,columnAlignItems:h,textAlignContent:m,textAlignItems:y,...g})=>{let b;const{handleSelectContent:A}=ge(),{nextimage:_}=Pe();switch(e){case"menu":b=s.jsx(Ne,{className:pe.footer__itemLink,href:l??"#",prefetch:!1,children:s.jsx("span",{onClick:()=>{A({content:`footer:${n}:${t}`})},children:t})});break;case"payment":b=s.jsxs("div",{className:v.helpers.classNameConcat(pe.payment,pe.footer__itemSmallText),...g,children:[u,s.jsxs("div",{className:v.helpers.classNameConcat(pe.footer__iconContainer,pe.footer__iconListSubHeader),children:[f,s.jsx("div",{className:pe.footer__iconList,children:i==null?void 0:i.map((E,S)=>s.jsx(_,{alt:E,src:`/assets/${E}.svg`,width:c??20,height:c??20},S))})]})]});break;case"social-media":b=s.jsx("div",{className:pe.footer__iconContainer,...g,children:s.jsx("div",{className:pe.footer__iconList,children:a==null?void 0:a.map((E,S)=>s.jsx(Ne,{prefetch:!1,href:E.link??"#",target:"_blank",children:s.jsx(v.Icon,{size:"medium",name:E.icon,onClick:()=>A({content:`footer:redes-sociais:${E.icon}`})})},S))})});break;default:b=s.jsx("div",{className:r,...g,children:t})}return s.jsx(v.TextStructure.Root,{layoutProps:{textRow:{alignContent:p,alignItems:p},columnWrapper:{alignContent:d,alignItems:h}},...g,children:s.jsx(v.TextStructure.DivWrapper,{alignContent:m,alignItems:y,className:v.helpers.classNameConcat(pe.footer__item,r),children:b})})},zm=({className:e,text:t,...r})=>s.jsx("div",{...r,className:v.helpers.classNameConcat(pe.footer__legalInformation,e),children:s.jsx("span",{children:t})}),Wl=()=>{const{nextimage:e}=Pe();return s.jsx("div",{className:pe["footer--stamps"],children:s.jsx(e,{alt:"Empresa B",className:pe["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};Wl.displayName="Footer.Stamps";const Vl=({children:e,legalTextSlot:t,adornment:r,className:n,...o})=>{const{isMobile:i}=Se(),a=C.Children.toArray(e).filter(Boolean),c=a.length;return s.jsxs("div",{className:pe.footer__main,children:[(r==null?void 0:r.top)&&s.jsx("div",{className:pe.footer__top,children:r==null?void 0:r.top}),c>0&&s.jsx("div",{...o,className:v.helpers.classNameConcat(pe.footer__wrapper,n),children:a.map((l,u)=>s.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${i?1:"fit-content"})`},children:l},u))}),(r==null?void 0:r.bottom)&&s.jsx("div",{className:pe.footer__bottom,children:r.bottom}),t&&s.jsx("div",{className:pe.footer__legalText,children:t})]})};Vl.displayName="Footer.Wrapper";const Kl=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:n,adornment:o,LEGAL_INFORMATION_TEXT:i,ICONS:a})=>{var c;return s.jsxs(Vl,{adornment:o,legalTextSlot:s.jsx(zm,{text:i}),children:[Array.isArray(e.column)&&e.column.map((l,u)=>s.jsx(Hn,{id:`${u}column-menu`,name:l.name,nameIcon:l.nameIcon,ICONS:a,children:l.items.map((f,p)=>s.jsx(Bt,{type:"menu",link:f.link,collumnName:l.name,collumnNameIcon:l.nameIcon,children:f.text},p))},u)),t&&((c=t.acceptedFlags)==null?void 0:c.length)>0&&s.jsx(Hn,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:a,children:s.jsx(Bt,{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})}),s.jsxs(Hn,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:a,children:[r!=null&&r.subTitle?s.jsx(Bt,{children:r==null?void 0:r.subTitle}):null,s.jsx(Bt,{type:"social-media",iconSize:24,iconLink:n}),s.jsx(Wl,{})]})]})};Kl.displayName="Footer";const Um=Object.freeze(Object.defineProperty({__proto__:null,Footer:Kl,FooterSupport:qm},Symbol.toStringTag,{value:"Module"})),Fs=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:n})=>{const o=sa(e.imageUrl,n.pdp),{nextimage:i}=Pe();return s.jsx(i,{src:o,alt:e.imageLabel,objectFit:"contain",...n.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},Gm=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:n}=ge(),o=C.useRef(!1);return s.jsx($e.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{o.current||(o.current=!0,n({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:t}}}))},poster:r})},Wm={"gallery-carousel-modifier":"_gallery-carousel-modifier_1dxfy_92"},Xl=({images:e,video:t,handleZoom:r,productName:n,PRODUCT_IMAGE_DIMENSIONS:o})=>{var u,f;const{initialize:i,pagination:a,controller:c,itemsStyles:l}=v.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return s.jsxs(v.Carousel.Root,{innerRef:p=>{i(p)},className:Wm["gallery-carousel-modifier"],children:[s.jsx(v.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:s.jsx(v.Carousel.Bullets,{page:a.currentPage,total:e.length,onBulletClick:p=>c==null?void 0:c.navigateTo(p)})}),s.jsxs(v.Carousel.Body,{children:[s.jsx(v.Carousel.Item,{style:l,children:s.jsx(Fs,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},"PDP_gallery_0"),t&&s.jsx(v.Carousel.Item,{style:l,children:s.jsx(Gm,{video:t,productName:n,...((u=e[1])==null?void 0:u.imageUrl)&&{poster:(f=e[1])==null?void 0:f.imageUrl}})},"PDP_gallery_video"),e.map((p,d)=>d===0?null:s.jsx(v.Carousel.Item,{style:l,children:s.jsx(Fs,{image:p,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},`PDP_gallery_${d}`))]})]})};Xl.displayName="PDP.Carousel";const Vm=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{video:r,productName:n}=yo(),[o,i]=C.useState({show:!1,initialIndex:0});C.useEffect(()=>(o.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[o]);const a=c=>{i({show:!0,initialIndex:c})};return s.jsx(s.Fragment,{children:s.jsx(Xl,{images:e,video:r,handleZoom:a,productName:n,PRODUCT_IMAGE_DIMENSIONS:t})})},Ql=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{images:r}=yo(),n=C.useMemo(()=>{const o=r.filter(i=>!e.includes(i.imageLabel));return o.length>0?o:r},[]);return s.jsx(Vm,{productImgs:n,PRODUCT_IMAGE_DIMENSIONS:t})};Ql.displayName="PDP.Gallery";const Km=Object.freeze(Object.defineProperty({__proto__:null,Gallery:Ql},Symbol.toStringTag,{value:"Module"})),Xm="_container_1sy8s_16",Fe={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:Xm,"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"},Qm=({selectedProducts:e,handleAddAllToCart:t,CONSTANTS:r})=>{const n=Object.values(e.products).length;return s.jsxs("div",{className:Fe["add-itens-to-cart-container"],children:[s.jsxs("div",{className:Fe["add-itens-to-cart-container-values"],children:[s.jsx("div",{className:Fe["add-itens-to-cart-qty-products"],children:s.jsx("span",{children:n===0?r.BUY_PACKAGE.group_cart.select_all_product:`${n} ${n===1?r.BUY_PACKAGE.group_cart.select_product:r.BUY_PACKAGE.group_cart.select_product+"s"}`})}),s.jsx("div",{className:Fe["add-itens-to-cart-total"],children:s.jsx("span",{children:fo({valueInCents:e.totalPrice*100,hasFree:!1,freeTaxMessage:r.FREIGHT_CALCULATION.messages.free_tax})})})]}),s.jsx(v.Button,{onClick:t,className:Fe["add-button"],size:"large",disabled:n===0,variant:"primary",children:r.BUY_BUTTON_LABELS.add_to_cart})]})},Ym=e=>e.reduce((t,r)=>{var o;const n=t.find(i=>i.node.id===r.node.id);if(!n)return[...t,r];if((o=n==null?void 0:n.node.isVariantOf)!=null&&o.hasVariant){const i=n.node.isVariantOf.hasVariant,a=r.node.isVariantOf.hasVariant;i&&a&&(n.node.isVariantOf.hasVariant=[...i,...a])}return t},[]),Zm=({selectedProduct:e,productId:t,prevState:r,mainSellerId:n})=>{const{products:o,totalPrice:i}=r;try{if(!e){const{[t]:u,...f}=o;return{...r,totalPrice:i-u.price,products:f}}const a=go(e.offers.offers,n);if(!a)return r;const c=a.seller.identifier,l=a.price;if(o[t]){const{price:u}=o[t];return o[t]={...o[t],price:l,id:e.sku,seller:c},{totalPrice:i+l-u,products:{...o}}}return{totalPrice:i+l,products:{...o,[t]:{id:e.sku,price:l,seller:c,productId:t}}}}catch(a){return console.error("Error handling SKU selection:",a),r}},Jm="_carousel_245ib_1",eh="_shelf__container_245ib_14",th="_shelf_without_carousel_245ib_34",lt={carousel:Jm,"custom-controllers":"_custom-controllers_245ib_5",shelf__container:eh,"controllers-arrows-bullets":"_controllers-arrows-bullets_245ib_23",shelf_without_carousel:th},zs=({title:e})=>s.jsx("div",{className:lt.shelf__container,children:e&&s.jsx(v.TextStructure.Root,{children:s.jsxs(v.TextStructure.DivWrapper,{children:[s.jsx("h2",{className:v.helpers.classNameConcat("typography-style-body-md",Te.responsive["responsive-mobile-flex"]),children:e}),s.jsx("h2",{className:v.helpers.classNameConcat("typography-style-heading-md",Te.responsive["responsive-desktop-flex"]),children:e})]})})}),rh=({children:e,ICONS:t,itemsPerPage:r,title:n})=>{const{isMobile:o}=Se(),i=r[o?"mobile":"desktop"],{initialize:a,controller:c,itemsStyles:l,pagination:u}=v.Carousel.useCarousel({itemsPerPage:i,gap:10,loop:!0,direction:"row"}),f=C.Children.toArray(e).length;return o||f>=4?s.jsxs(v.Carousel.Root,{innerRef:d=>{a(d)},className:lt.carousel,children:[s.jsxs("div",{className:lt["custom-controllers"],children:[n&&s.jsx(zs,{title:n}),i<f&&s.jsxs(v.Carousel.Controller,{className:lt["controllers-arrows-bullets"],children:[s.jsxs(v.Carousel.Arrows,{children:[s.jsx(v.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:s.jsx(v.Icon,{name:t.arrow_left})}}),s.jsx(v.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:s.jsx(v.Icon,{name:t.arrow_right})}})]}),!o&&i>2&&s.jsx(v.Carousel.Bullets,{page:u.currentPage,total:u.totalPages,onBulletClick:d=>c==null?void 0:c.navigateTo(d)})]})]}),s.jsx(v.Carousel.Body,{children:C.Children.map(e,(d,h)=>s.jsx(v.Carousel.Item,{style:{...l,overflow:"hidden"},children:d},`${n}_${h}`))})]}):s.jsxs(s.Fragment,{children:[n&&s.jsx(zs,{title:n}),s.jsx("div",{className:lt.shelf_without_carousel,children:e})]})},nh={Shelf:rh},oh=({CONSTANTS:e,inView:t,products:r,innerRef:n,WishListToggle:o})=>{const i=C.useMemo(()=>Ym(r),[r]),{isMobile:a}=Se(),{addItemsToCart:c}=Be(),{sendDataLayerEvent:l}=ge(),{getAvailableProductTag:u}=uo(),[f,p]=C.useState({totalPrice:0,products:{}}),d=()=>{const m=Object.values(f.products);c(m),l({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:m.map(y=>{const g=i.find(b=>b.node.id===y.productId);return g==null?void 0:g.node})},supportData:{selectedSkus:m,price:f.totalPrice}}})},h=({selectedProduct:m,productId:y})=>{const g=Zm({selectedProduct:m,productId:y,prevState:f,mainSellerId:e.StoreConfig_MainSellerId});p(g)};return C.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]),s.jsxs("div",{className:Fe.container,ref:n,children:[s.jsx("div",{className:Fe["carousel-container"],style:{width:i.length<=3?"max-content":"75%"},children:s.jsx(nh.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},y)=>{var A,_,E;const g=u(m.cluster.highlights),{availability:{status:b}}=m;return b?s.jsxs(ye.Root,{item:{...m,image:wo.helpers.product.getFirstImages({images:m.image,label:{first:e.MAIN_IMAGE,second:e.SECOND_IMAGE}})},isMobile:a,size:"medium",index:y,shelfTitle:e.BUY_PACKAGE.header.title,CONSTANTS:e,WishListToggle:o,children:[s.jsx(ye.Header,{product:m,tag:g.commercial}),s.jsx(ye.Media,{}),s.jsxs(ye.Wrapper,{type:"body",children:[s.jsx(ye.Title,{tag:{value:(A=g.institucional)==null?void 0:A.value,enableIcon:(_=g.institucional)==null?void 0:_.enableIcon,icon:(E=g.institucional)==null?void 0:E.icon}}),s.jsx(ye.Actions,{children:s.jsx(ye.SizeSelector,{callback:S=>h({selectedProduct:S,productId:m.id})})})]})]},m.id):null})})}),s.jsx("div",{className:Fe["add-cart-container"],children:s.jsx(Qm,{handleAddAllToCart:d,selectedProducts:f,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},ih=({page:e,data:t})=>{const{pathname:r}=Pe(),n=C.useRef(null),{sendDataLayerEvent:o,currentLocalRef:i,itemListRef:a,promotionEventRef:c}=ge();return C.useEffect(()=>{const l=_c("login_event")||"{}",u=JSON.parse(l);if(u.name||u.method){const f=new Date(0);o({functionKey:"readyEvents",data:{event:u.name,readyData:{method:u.method}}}),Eo("login_event","",{expires:f})}},[]),C.useEffect(()=>{if(n.current===r)return;n.current=r;let l={};switch(e){case"PDP":{const f=t,p={};if(!f){l={page_category:"pdp"};break}f.items.forEach(({itemId:d,sellers:h})=>p[d]=h[0].commertialOffer.AvailableQuantity),l={page_category:"pdp",seller_ids:f.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:p,product_reference_id:f.productReference};break}case"PDC":{const{page_category:f,page_departament:p,id:d,name:h}=ma(),m=h,y=d;l={page_category:"lista_produtos",...p&&{page_departament:p}},a.current={item_list_name:r==="/search"?"busca":m??void 0,item_list_id:r==="/search"?void 0:y??void 0},p&&o({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:f,page_departament:p}}});break}default:l={page_category:e},c.current={},a.current={};break}const u={region:e,...l};i.current=e,o({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...u}},timeout:0})},[r]),null};var ro={exports:{}};function sh(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 Fn={},zn={},Us;function ah(){return Us||(Us=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return n}});const n=je._(C).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="LoadableContext")}(zn)),zn}var Gs;function ch(){return Gs||(Gs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return h}});const r=je._(C),n=ah();function o(m){return m&&m.default?m.default:m}const i=[],a=[];let c=!1;function l(m){let y=m(),g={loading:!0,loaded:null,error:null};return g.promise=y.then(b=>(g.loading=!1,g.loaded=b,b)).catch(b=>{throw g.loading=!1,g.error=b,b}),g}function u(m,y){let g=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},y),b=null;function A(){if(!b){const S=new f(m,g);b={getCurrentValue:S.getCurrentValue.bind(S),subscribe:S.subscribe.bind(S),retry:S.retry.bind(S),promise:S.promise.bind(S)}}return b.promise()}if(typeof window>"u"&&i.push(A),!c&&typeof window<"u"){const S=g.webpack&&typeof sh.resolveWeak=="function"?g.webpack():g.modules;S&&a.push(P=>{for(const x of S)if(P.includes(x))return A()})}function _(){A();const S=r.default.useContext(n.LoadableContext);S&&Array.isArray(g.modules)&&g.modules.forEach(P=>{S(P)})}function E(S,P){_();const x=r.default.useSyncExternalStore(b.subscribe,b.getCurrentValue,b.getCurrentValue);return r.default.useImperativeHandle(P,()=>({retry:b.retry}),[]),r.default.useMemo(()=>x.loading||x.error?r.default.createElement(g.loading,{isLoading:x.loading,pastDelay:x.pastDelay,timedOut:x.timedOut,error:x.error,retry:b.retry}):x.loaded?r.default.createElement(o(x.loaded),S):null,[S,x])}return E.preload=()=>A(),E.displayName="LoadableComponent",r.default.forwardRef(E)}class f{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:y,_opts:g}=this;y.loading&&(typeof g.delay=="number"&&(g.delay===0?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},g.delay)),typeof g.timeout=="number"&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},g.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(b=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(y){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...y},this._callbacks.forEach(g=>g())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(y){return this._callbacks.add(y),()=>{this._callbacks.delete(y)}}constructor(y,g){this._loadFn=y,this._opts=g,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function p(m){return u(l,m)}function d(m,y){let g=[];for(;m.length;){let b=m.pop();g.push(b(y))}return Promise.all(g).then(()=>{if(m.length)return d(m,y)})}p.preloadAll=()=>new Promise((m,y)=>{d(i).then(m,y)}),p.preloadReady=m=>(m===void 0&&(m=[]),new Promise(y=>{const g=()=>(c=!0,y());d(a,m).then(g,g)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=p.preloadReady);const h=p}(Fn)),Fn}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(f,p){for(var d in p)Object.defineProperty(f,d,{enumerable:!0,get:p[d]})}r(t,{noSSR:function(){return l},default:function(){return u}});const n=je,o=n._(C),i=n._(ch()),a=typeof window>"u";function c(f){return{default:(f==null?void 0:f.default)||f}}function l(f,p){if(delete p.webpack,delete p.modules,!a)return f(p);const d=p.loading;return()=>o.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(f,p){let d=i.default,h={loading:g=>{let{error:b,isLoading:A,pastDelay:_}=g;if(!_)return null;if(process.env.NODE_ENV!=="production"){if(A)return null;if(b)return o.default.createElement("p",null,b.message,o.default.createElement("br",null),b.stack)}return null}};f instanceof Promise?h.loader=()=>f:typeof f=="function"?h.loader=f:typeof f=="object"&&(h={...h,...f}),h={...h,...p};const m=h.loader,y=()=>m!=null?m().then(c):Promise.resolve(c(()=>null));return h.loadableGenerated&&(h={...h,...h.loadableGenerated},delete h.loadableGenerated),typeof h.ssr=="boolean"&&!h.ssr?(delete h.webpack,delete h.modules,l(d,h)):d({...h,loader: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)})(ro,ro.exports);var lh=ro.exports,uh=lh;const dh=Xt(uh);var no={exports:{}},qt={exports:{}},Ws;function fh(){return Ws||(Ws=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(l,u){for(var f in u)Object.defineProperty(l,f,{enumerable:!0,get:u[f]})}r(t,{DOMAttributeNames:function(){return n},isEqualNode:function(){return i},default:function(){return c}});const n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function o(l){let{type:u,props:f}=l;const p=document.createElement(u);for(const m in f){if(!f.hasOwnProperty(m)||m==="children"||m==="dangerouslySetInnerHTML"||f[m]===void 0)continue;const y=n[m]||m.toLowerCase();u==="script"&&(y==="async"||y==="defer"||y==="noModule")?p[y]=!!f[m]:p.setAttribute(y,f[m])}const{children:d,dangerouslySetInnerHTML:h}=f;return h?p.innerHTML=h.__html||"":d&&(p.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),p}function i(l,u){if(l instanceof HTMLElement&&u instanceof HTMLElement){const f=u.getAttribute("nonce");if(f&&!l.getAttribute("nonce")){const p=u.cloneNode(!0);return p.setAttribute("nonce",""),p.nonce=f,f===l.nonce&&l.isEqualNode(p)}}return l.isEqualNode(u)}let a;process.env.__NEXT_STRICT_NEXT_HEAD?a=(l,u)=>{const f=document.querySelector("head");if(!f)return;const p=f.querySelectorAll('meta[name="next-head"]')||[],d=[];if(l==="meta"){const y=f.querySelector("meta[charset]");y&&d.push(y)}for(let y=0;y<p.length;y++){var h;const b=p[y].nextSibling;(b==null||(h=b.tagName)==null?void 0:h.toLowerCase())===l&&d.push(b)}const m=u.map(o).filter(y=>{for(let g=0,b=d.length;g<b;g++){const A=d[g];if(i(A,y))return d.splice(g,1),!1}return!0});d.forEach(y=>{var g;const b=y.previousSibling;if(b&&b.getAttribute("name")==="next-head"){var A;(A=y.parentNode)==null||A.removeChild(b)}(g=y.parentNode)==null||g.removeChild(y)}),m.forEach(y=>{var g;const b=document.createElement("meta");b.name="next-head",b.content="1",((g=y.tagName)==null?void 0:g.toLowerCase())==="meta"&&y.getAttribute("charset")||f.appendChild(b),f.appendChild(y)})}:a=(l,u)=>{const f=document.getElementsByTagName("head")[0],p=f.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!p){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(p.content),h=[];for(let g=0,b=p.previousElementSibling;g<d;g++,b=(b==null?void 0:b.previousElementSibling)||null){var m;(b==null||(m=b.tagName)==null?void 0:m.toLowerCase())===l&&h.push(b)}const y=u.map(o).filter(g=>{for(let b=0,A=h.length;b<A;b++){const _=h[b];if(i(_,g))return h.splice(b,1),!1}return!0});h.forEach(g=>{var b;return(b=g.parentNode)==null?void 0:b.removeChild(g)}),y.forEach(g=>f.insertBefore(g,p)),p.content=(d-h.length+y.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 h=u[d.type]||[];h.push(d),u[d.type]=h});const f=u.title?u.title[0]:null;let p="";if(f){const{children:d}=f.props;p=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}p!==document.title&&(document.title=p),["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)}(qt,qt.exports)),qt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(S,P){for(var x in P)Object.defineProperty(S,x,{enumerable:!0,get:P[x]})}r(t,{handleClientScriptLoad:function(){return y},initScriptLoader:function(){return A},default:function(){return E}});const n=je,o=Qt(),i=n._(ta),a=o._(C),c=kl(),l=fh(),u=Fc(),f=new Map,p=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],h=S=>{if(i.default.preinit){S.forEach(P=>{i.default.preinit(P,{as:"style"})});return}if(typeof window<"u"){let P=document.head;S.forEach(x=>{let I=document.createElement("link");I.type="text/css",I.rel="stylesheet",I.href=x,P.appendChild(I)})}},m=S=>{const{src:P,id:x,onLoad:I=()=>{},onReady:B=null,dangerouslySetInnerHTML:R,children:O="",strategy:N="afterInteractive",onError:$,stylesheets:w}=S,q=x||P;if(q&&p.has(q))return;if(f.has(P)){p.add(q),f.get(P).then(I,$);return}const z=()=>{B&&B(),p.add(q)},U=document.createElement("script"),K=new Promise((W,F)=>{U.addEventListener("load",function(ne){W(),I&&I.call(this,ne),z()}),U.addEventListener("error",function(ne){F(ne)})}).catch(function(W){$&&$(W)});R?(U.innerHTML=R.__html||"",z()):O?(U.textContent=typeof O=="string"?O:Array.isArray(O)?O.join(""):"",z()):P&&(U.src=P,f.set(P,K));for(const[W,F]of Object.entries(S)){if(F===void 0||d.includes(W))continue;const ne=l.DOMAttributeNames[W]||W.toLowerCase();U.setAttribute(ne,F)}N==="worker"&&U.setAttribute("type","text/partytown"),U.setAttribute("data-nscript",N),w&&h(w),document.body.appendChild(U)};function y(S){const{strategy:P="afterInteractive"}=S;P==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>m(S))}):m(S)}function g(S){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>m(S)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>m(S))})}function b(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(P=>{const x=P.id||P.getAttribute("src");p.add(x)})}function A(S){S.forEach(y),b()}function _(S){const{id:P,src:x="",onLoad:I=()=>{},onReady:B=null,strategy:R="afterInteractive",onError:O,stylesheets:N,...$}=S,{updateScripts:w,scripts:q,getIsSsr:z,appDir:U,nonce:K}=(0,a.useContext)(c.HeadManagerContext),W=(0,a.useRef)(!1);(0,a.useEffect)(()=>{const ne=P||x;W.current||(B&&ne&&p.has(ne)&&B(),W.current=!0)},[B,P,x]);const F=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{F.current||(R==="afterInteractive"?m(S):R==="lazyOnload"&&g(S),F.current=!0)},[S,R]),(R==="beforeInteractive"||R==="worker")&&(w?(q[R]=(q[R]||[]).concat([{id:P,src:x,onLoad:I,onReady:B,onError:O,...$}]),w(q)):z&&z()?p.add(P||x):z&&!z()&&m(S)),U){if(N&&N.forEach(ne=>{i.default.preinit(ne,{as:"style"})}),R==="beforeInteractive")return x?(i.default.preload(x,$.integrity?{as:"script",integrity:$.integrity}:{as:"script"}),a.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([x])+")"}})):($.dangerouslySetInnerHTML&&($.children=$.dangerouslySetInnerHTML.__html,delete $.dangerouslySetInnerHTML),a.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...$}])+")"}}));R==="afterInteractive"&&x&&i.default.preload(x,$.integrity?{as:"script",integrity:$.integrity}:{as:"script"})}return null}Object.defineProperty(_,"__nextScript",{value:!0});const E=_;(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)})(no,no.exports);var ph=no.exports,mh=ph;const hh=Xt(mh),gh=({children:e,ONE_TRUST:t})=>s.jsxs(s.Fragment,{children:[s.jsx(hh,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),yh=dh(()=>Promise.resolve(gh),{ssr:!1}),_h={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},ut=({size:e,adornment:t,title:r,subtitle:n,supportChildren:o,className:i,Z_INDEX_WAR:a,...c})=>s.jsxs(v.SnackBar.Structure,{...c,size:e,className:v.helpers.classNameConcat(_h["snackbar-modifier"],i),width:360,style:{zIndex:a.snackbar},children:[s.jsx(v.SnackBar.Content,{adornment:t,title:r,subtitle:n}),o&&s.jsx(v.SnackBar.Support,{children:o})]});ut.displayName="SnackBar";const Yl=({children:e,contentState:t,entityKey:r})=>{const{url:n}=t.getEntity(r).getData();return n?s.jsx(Ne,{href:n,children:e}):e},Bo={"product-list--banner":"_product-list--banner_sfibj_1","product-list--card":"_product-list--card_sfibj_30","product-list":"_product-list_sfibj_1"},Zl=({className:e,children:t,columns:r=1,isMobile:n=!1,gap:o=8,position_grid:i,totalColumns:a=4,PRODUCT_CARD_IMAGE_ASPECT_RATIO:c,...l})=>{const u=C.useMemo(()=>r%a===0?"initial":n||r<2?c:c.split("/").reverse().join("/"),[r,a,n]);return s.jsx("div",{...l,className:v.helpers.classNameConcat(Bo["product-list--banner"],e),style:{aspectRatio:u,maxWidth:`${r/a*100}%`,order:i,padding:o/2},children:t})};Zl.displayName="ProductList.Banner";const Jl=({isKit:e,parent:t,productId:r,setNotify:n,CONSTANTS:o})=>{const{router:i}=Pe(),a=C.useRef(!1),c=C.useRef(null),[l,u]=C.useState([]),f=m=>i.push(m??""),p=async m=>{try{const y=await fetch("/api/catalog/product/similars",{method:"POST",body:JSON.stringify({productId:m,filterTexture:o.TEXTURE_IMAGE}),priority:"low"});if(!y.ok)throw new Error("Erro ao buscar similares.");const g=await y.json();u(g)}catch(y){console.error(y)}},d=C.useCallback(m=>{!r||!m||(typeof p=="function"&&p(r),a.current=!0)},[r]),h=C.useCallback((m,y)=>{if(!m.isIntersecting){o.PLP_INFINITE_SCROLL&&c.current&&(clearTimeout(c.current),c.current=null);return}if(m.intersectionRatio>=y.threshold&&!a.current){if(o.PLP_INFINITE_SCROLL){c.current=setTimeout(()=>{d(!0)},o.PLP_PRODUCT_SIMILAR_DELAY);return}d(!0)}},[d]);return C.useEffect(()=>{if(e||!t.current)return;const m={root:null,threshold:.1},y=new IntersectionObserver(([g])=>{h(g,m)},m);return y.observe(t.current),()=>{c.current&&clearTimeout(c.current),y.disconnect()}},[h,t,e]),s.jsx(ye.Actions,{...l,callback:f,isKit:e,children:!e&&s.jsx(ye.SizeSelector,{setNotify:n})})};Jl.displayName="ProductList.Card.Actions";const eu=({className:e,children:t,gap:r=32,item:n,isMobile:o,order:i,tag:a,hasMaxWidth:c=!0,index:l,setSkuSelected:u,showVideo:f,CONSTANTS:p,WishListToggle:d,...h})=>{const m=C.useRef(null),{availability:{status:y}}=n,g=C.useCallback((A,_)=>{var E;typeof u=="function"&&u((E=A.isVariantOf)==null?void 0:E.hasVariant,_)},[u]),b=n.name.substring(0,4).toLowerCase()==="kit ";return s.jsxs("div",{...h,className:v.helpers.classNameConcat(Bo["product-list--card"],e),"data-mobile":o,"data-order":i,ref:m,style:{...c&&{maxWidth:o?"50%":"25%"},order:i,padding:r/2},children:[s.jsxs(ye.Root,{item:n,isMobile:o,index:l,size:o?"small":"medium",order:i,outStock:!y,CONSTANTS:p,WishListToggle:d,children:[s.jsx(ye.Header,{product:n,tag:a==null?void 0:a.commercial}),s.jsx(ye.Media,{showVideo:f,hasPriority:!0}),s.jsxs(ye.Wrapper,{type:"body",children:[s.jsx(ye.Title,{tag:a==null?void 0:a.institucional}),s.jsx(Jl,{productId:n.isVariantOf.productGroupID,parent:m,setNotify:g,isKit:b,CONSTANTS:p}),!b&&s.jsx(ye.OutStock,{callback:g})]}),s.jsx(ye.Wrapper,{type:"footer",children:y&&s.jsx(ye.BuyButton,{isKit:b})})]}),t]})};eu.displayName="ProductList.Card";const tu=({children:e,className:t,...r})=>s.jsx("div",{...r,className:v.helpers.classNameConcat(Bo["product-list"],t),children:e});tu.displayName="ProductList.Grid";const vh={Banner:Zl,Card:eu,Root:tu,helpers:Nd},bh={teamComponents:{AddToCart:jo,BackToTop:nf,BuyPackage:oh,...Um,FreightCalculation:Rp,Header:yl,Link:ze,Media:$e,ProductCard:ye,ProductList:vh,UserMenu:To},template:{pdp:Km},utils:{EventCollector:ih,ExternalScripts:yh,LinkOrNotLink:gt,ObserverWrapper:Jt,SnackBarComponent:ut,DraftJsLinkWrapper:Yl}},xh=(e,t)=>{const r=e.map(o=>`'${o.source}'`).join(`,
40
+ */const c=a(357),l=(x,I,B)=>{if(c(x)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(I===void 0||x===I)return String(x);if(c(I)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let E={relaxZeros:!0,...B};typeof E.strictZeros=="boolean"&&(E.relaxZeros=E.strictZeros===!1);let O=String(E.relaxZeros),N=String(E.shorthand),$=String(E.capture),R=String(E.wrap),F=x+":"+I+"="+O+N+$+R;if(l.cache.hasOwnProperty(F))return l.cache[F].result;let H=Math.min(x,I),U=Math.max(x,I);if(Math.abs(H-U)===1){let w=x+"|"+I;return E.capture?`(${w})`:E.wrap===!1?w:`(?:${w})`}let K=S(x)||S(I),W={min:x,max:I,a:H,b:U},z=[],ne=[];if(K&&(W.isPadded=K,W.maxLen=String(W.max).length),H<0){let w=U<0?Math.abs(U):1;ne=d(w,Math.abs(H),W,E),H=W.a=0}return U>=0&&(z=d(H,U,W,E)),W.negatives=ne,W.positives=z,W.result=u(ne,z),E.capture===!0?W.result=`(${W.result})`:E.wrap!==!1&&z.length+ne.length>1&&(W.result=`(?:${W.result})`),l.cache[F]=W,W.result};function u(x,I,B){let E=m(x,I,"-",!1)||[],O=m(I,x,"",!1)||[],N=m(x,I,"-?",!0)||[];return E.concat(N).concat(O).join("|")}function f(x,I){let B=1,E=1,O=b(x,B),N=new Set([I]);for(;x<=O&&O<=I;)N.add(O),B+=1,O=b(x,B);for(O=j(I+1,E)-1;x<O&&O<=I;)N.add(O),E+=1,O=j(I+1,E)-1;return N=[...N],N.sort(y),N}function p(x,I,B){if(x===I)return{pattern:x,count:[],digits:0};let E=h(x,I),O=E.length,N="",$=0;for(let R=0;R<O;R++){let[F,H]=E[R];F===H?N+=F:F!=="0"||H!=="9"?N+=A(F,H):$++}return $&&(N+=B.shorthand===!0?"\\d":"[0-9]"),{pattern:N,count:[$],digits:O}}function d(x,I,B,E){let O=f(x,I),N=[],$=x,R;for(let F=0;F<O.length;F++){let H=O[F],U=p(String($),String(H),E),K="";if(!B.isPadded&&R&&R.pattern===U.pattern){R.count.length>1&&R.count.pop(),R.count.push(U.count[0]),R.string=R.pattern+v(R.count),$=H+1;continue}B.isPadded&&(K=P(H,B,E)),U.string=K+U.pattern+v(U.count),N.push(U),$=H+1,R=U}return N}function m(x,I,B,E,O){let N=[];for(let $ of x){let{string:R}=$;!E&&!g(I,"string",R)&&N.push(B+R),E&&g(I,"string",R)&&N.push(B+R)}return N}function h(x,I){let B=[];for(let E=0;E<x.length;E++)B.push([x[E],I[E]]);return B}function y(x,I){return x>I?1:I>x?-1:0}function g(x,I,B){return x.some(E=>E[I]===B)}function b(x,I){return Number(String(x).slice(0,-I)+"9".repeat(I))}function j(x,I){return x-x%Math.pow(10,I)}function v(x){let[I=0,B=""]=x;return B||I>1?`{${I+(B?","+B:"")}}`:""}function A(x,I,B){return`[${x}${I-x===1?"":"-"}${I}]`}function S(x){return/^-?(0+)\d/.test(x)}function P(x,I,B){if(!I.isPadded)return x;let E=Math.abs(I.maxLen-String(x).length),O=B.relaxZeros!==!1;switch(E){case 0:return"";case 1:return O?"0?":"0";case 2:return O?"0{0,2}":"00";default:return O?`0{0,${E}}`:`0{${E}}`}}l.cache={},l.clearCache=()=>l.cache={},i.exports=l},17:i=>{i.exports=Um},837:i=>{i.exports=Eh()}},t={};function r(i){var s=t[i];if(s!==void 0)return s.exports;var a=t[i]={exports:{}},c=!0;try{e[i](a,a.exports,r),c=!1}finally{c&&delete t[i]}return a.exports}typeof r<"u"&&(r.ab=__dirname+"/");var n=r(971);Ur.exports=n})()),Ur.exports}var Ks;function wh(){return Ks||(Ks=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,a){for(var c in a)Object.defineProperty(s,c,{enumerable:!0,get:a[c]})}t(e,{matchRemotePattern:function(){return n},hasMatch:function(){return i}});const r=Rh();function n(s,a){if(s.protocol!==void 0){const l=a.protocol.slice(0,-1);if(s.protocol!==l)return!1}if(s.port!==void 0&&s.port!==a.port)return!1;if(s.hostname===void 0)throw new Error(`Pattern should define hostname but found
41
+ `+JSON.stringify(s));if(!(0,r.makeRe)(s.hostname).test(a.hostname))return!1;var c;return!!(0,r.makeRe)((c=s.pathname)!=null?c:"**").test(a.pathname)}function i(s,a,c){return s.some(l=>c.hostname===l)||a.some(l=>n(l,c))}}(Hr)),Hr}var Xs;function fu(){return Xs||(Xs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n){let{config:i,src:s,width:a,quality:c}=n;if(process.env.NODE_ENV!=="production"){const l=[];if(s||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:s,width:a,quality:c}));if(s.startsWith("//"))throw new Error('Failed to parse src "'+s+'" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)');if(!s.startsWith("/")&&(i.domains||i.remotePatterns)){let u;try{u=new URL(s)}catch(f){throw console.error(f),new Error('Failed to parse src "'+s+'" 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:f}=wh();if(!f(i.domains,i.remotePatterns,u))throw new Error("Invalid src prop ("+s+') 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 i.path+"?url="+encodeURIComponent(s)+"&w="+a+"&q="+(c||75)+(process.env.NEXT_DEPLOYMENT_ID?"&dpl="+process.env.NEXT_DEPLOYMENT_ID:"")}t.__next_img_default=!0;const r=t}(zr)),zr}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return j}});const r=Pe,i=at._(C),s=r._(la),a=r._(zm()),c=zo,l=ir,u=Hm(),f=St,p=tl(),d=r._(fu()),m=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function h(v,A,S,P,x,I){const B=v==null?void 0:v.src;if(!v||v["data-loaded-src"]===B)return;v["data-loaded-src"]=B,("decode"in v?v.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!v.parentElement||!v.isConnected)){if(A!=="empty"&&x(!0),S!=null&&S.current){const O=new Event("load");Object.defineProperty(O,"target",{writable:!1,value:v});let N=!1,$=!1;S.current({...O,nativeEvent:O,currentTarget:v,target:v,isDefaultPrevented:()=>N,isPropagationStopped:()=>$,persist:()=>{},preventDefault:()=>{N=!0,O.preventDefault()},stopPropagation:()=>{$=!0,O.stopPropagation()}})}if(P!=null&&P.current&&P.current(v),process.env.NODE_ENV!=="production"){const O=new URL(B,"http://n").searchParams.get("url")||B;if(v.getAttribute("data-nimg")==="fill"){if(!I&&(!v.getAttribute("sizes")||v.getAttribute("sizes")==="100vw")&&v.getBoundingClientRect().width/window.innerWidth<.6&&(0,f.warnOnce)('Image with src "'+O+'" 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:R}=window.getComputedStyle(v.parentElement),F=["absolute","fixed","relative"];F.includes(R)||(0,f.warnOnce)('Image with src "'+O+'" has "fill" and parent element with invalid "position". Provided "'+R+'" should be one of '+F.map(String).join(",")+".")}v.height===0&&(0,f.warnOnce)('Image with src "'+O+'" 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 N=v.height.toString()!==v.getAttribute("height"),$=v.width.toString()!==v.getAttribute("width");(N&&!$||!N&&$)&&(0,f.warnOnce)('Image with src "'+O+`" 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 y(v){const[A,S]=i.version.split("."),P=parseInt(A,10),x=parseInt(S,10);return P>18||P===18&&x>=3?{fetchPriority:v}:{fetchpriority:v}}const g=(0,i.forwardRef)((v,A)=>{let{src:S,srcSet:P,sizes:x,height:I,width:B,decoding:E,className:O,style:N,fetchPriority:$,placeholder:R,loading:F,unoptimized:H,fill:U,onLoadRef:K,onLoadingCompleteRef:W,setBlurComplete:z,setShowAltText:ne,onLoad:w,onError:M,...D}=v;return i.default.createElement("img",{...D,...y($),loading:F,width:B,height:I,decoding:E,"data-nimg":U?"fill":"1",className:O,style:N,sizes:x,srcSet:P,src:S,ref:(0,i.useCallback)(X=>{A&&(typeof A=="function"?A(X):typeof A=="object"&&(A.current=X)),X&&(M&&(X.src=X.src),process.env.NODE_ENV!=="production"&&(S||console.error('Image is missing required "src" property:',X),X.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.')),X.complete&&h(X,R,K,W,z,H))},[S,R,K,W,z,M,H,A]),onLoad:X=>{const te=X.currentTarget;h(te,R,K,W,z,H)},onError:X=>{ne(!0),R!=="empty"&&z(!0),M&&M(X)}})});function b(v){let{isAppRouter:A,imgAttributes:S}=v;const P={as:"image",imageSrcSet:S.srcSet,imageSizes:S.sizes,crossOrigin:S.crossOrigin,referrerPolicy:S.referrerPolicy,...y(S.fetchPriority)};return A&&s.default.preload?(s.default.preload(S.src,P),null):i.default.createElement(a.default,null,i.default.createElement("link",{key:"__nimg-"+S.src+S.srcSet+S.sizes,rel:"preload",href:S.srcSet?void 0:S.src,...P}))}const j=(0,i.forwardRef)((v,A)=>{const P=!(0,i.useContext)(p.RouterContext),x=(0,i.useContext)(u.ImageConfigContext),I=(0,i.useMemo)(()=>{const W=m||x||l.imageConfigDefault,z=[...W.deviceSizes,...W.imageSizes].sort((w,M)=>w-M),ne=W.deviceSizes.sort((w,M)=>w-M);return{...W,allSizes:z,deviceSizes:ne}},[x]),{onLoad:B,onLoadingComplete:E}=v,O=(0,i.useRef)(B);(0,i.useEffect)(()=>{O.current=B},[B]);const N=(0,i.useRef)(E);(0,i.useEffect)(()=>{N.current=E},[E]);const[$,R]=(0,i.useState)(!1),[F,H]=(0,i.useState)(!1),{props:U,meta:K}=(0,c.getImgProps)(v,{defaultLoader:d.default,imgConf:I,blurComplete:$,showAltText:F});return i.default.createElement(i.default.Fragment,null,i.default.createElement(g,{...U,unoptimized:K.unoptimized,placeholder:K.placeholder,fill:K.fill,onLoadRef:O,onLoadingCompleteRef:N,setBlurComplete:R,setShowAltText:H,ref:A}),K.priority?i.default.createElement(b,{isAppRouter:P,imgAttributes:U}):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)})(so,so.exports);var Ph=so.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var p in f)Object.defineProperty(u,p,{enumerable:!0,get:f[p]})}t(e,{unstable_getImgProps:function(){return c},default:function(){return l}});const r=Pe,n=zo,i=St,s=Ph,a=r._(fu()),c=u=>{(0,i.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");const{props:f}=(0,n.getImgProps)(u,{defaultLoader:a.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[p,d]of Object.entries(f))d===void 0&&delete f[p];return{props:f}},l=s.Image})(eu);var Ih=eu;const Qs=er(Ih),Nh=({item:e,CONSTANTS:t})=>{const r=e.icon?t.PAYMENT_FLAGS.includes(e.icon)?"payment":"social":null,n=r==="payment"?t.PAYMENT_FLAGS_DICTIONARY[e.icon]:e.icon;return e.link?o.jsxs(Oe,{href:e.link,target:"_blank",rel:"noopener noreferrer",className:pe["support-item"],children:[e.image&&o.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?o.jsx(Qs,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):o.jsx(_.Icon,{size:"small",name:n})]}):o.jsxs("div",{className:pe["support-item"],children:[e.image&&o.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?o.jsx(Qs,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):o.jsx(_.Icon,{size:"small",name:n})]})},Oh=({content:e,CONSTANTS:t})=>o.jsx("div",{className:pe["support-container"],children:e==null?void 0:e.map((r,n)=>o.jsxs("div",{"data-device":r.device,className:pe["support-section"],children:[o.jsxs("div",{className:pe["support-text"],children:[r.title&&o.jsx("h3",{children:r.title}),r.description&&o.jsx("p",{children:r.description})]}),r.items.length&&o.jsx("div",{className:pe["support-items"],"data-gap":r.gap,children:r.items.map((i,s)=>o.jsx(Nh,{item:i,CONSTANTS:t},`footer-support-item-${s}`))})]},`footer-support-${n}`))}),Th=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:n,columnAlignContent:i,columnAlignItems:s,textAlignContent:a,textAlignItems:c,children:l})=>o.jsx(_.TextStructure.Root,{layoutProps:{textRow:{alignContent:n,alignItems:n},columnWrapper:{alignContent:i,alignItems:s}},children:o.jsxs(_.TextStructure.DivWrapper,{alignContent:a,alignItems:c,className:pe.footer__column,children:[o.jsxs("div",{className:t?pe.footer__columnTitleIcon:pe.footer__columnTitle,children:[o.jsx(_.Icon,{name:`${t}`,size:"small"}),e&&o.jsx("div",{children:e})]}),o.jsx("div",{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:l})]})}),Mh=({name:e,nameIcon:t,maxWidth:r,children:n,ICONS:i,...s})=>o.jsxs(_.Accordion.Wrapper,{className:pe.accordionWrapper,title:"accordion-wrapper",...s,children:[o.jsx(_.Accordion.Header,{id:(s==null?void 0:s.id)??"",className:pe.accordionHeader,closeIndicator:o.jsx(_.Icon,{name:i.arrow_up,size:"medium"}),openIndicator:o.jsx(_.Icon,{name:i.arrow_down,size:"medium"}),title:"accordion-header",children:o.jsx(_.TextStructure.Root,{children:o.jsxs(_.TextStructure.DivWrapper,{className:t?pe.accordionTextWrapper:"",children:[o.jsx(_.Icon,{name:`${t}`,size:"medium"}),o.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),o.jsx(_.Accordion.Body,{title:"accordion-body",children:o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:n})})})]}),Wn=e=>{const{isMobile:t}=Se();return t?o.jsx(Mh,{...e}):o.jsx(Th,{...e})},Ut=({type:e,children:t,className:r,collumnName:n,collumnNameIcon:i,icons:s,iconLink:a,iconSize:c,link:l,paymentDisclaimer:u,paymentTitle:f,rowAlignContent:p,columnAlignContent:d,columnAlignItems:m,textAlignContent:h,textAlignItems:y,...g})=>{let b;const{handleSelectContent:j}=ge(),{nextimage:v}=Ee();switch(e){case"menu":b=o.jsx(Oe,{className:pe.footer__itemLink,href:l??"#",prefetch:!1,children:o.jsx("span",{onClick:()=>{j({content:`footer:${n}:${t}`})},children:t})});break;case"payment":b=o.jsxs("div",{className:_.helpers.classNameConcat(pe.payment,pe.footer__itemSmallText),...g,children:[u,o.jsxs("div",{className:_.helpers.classNameConcat(pe.footer__iconContainer,pe.footer__iconListSubHeader),children:[f,o.jsx("div",{className:pe.footer__iconList,children:s==null?void 0:s.map((A,S)=>o.jsx(v,{alt:A,src:`/assets/${A}.svg`,width:c??20,height:c??20},S))})]})]});break;case"social-media":b=o.jsx("div",{className:pe.footer__iconContainer,...g,children:o.jsx("div",{className:pe.footer__iconList,children:a==null?void 0:a.map((A,S)=>o.jsx(Oe,{prefetch:!1,href:A.link??"#",target:"_blank",children:o.jsx(_.Icon,{size:"medium",name:A.icon,onClick:()=>j({content:`footer:redes-sociais:${A.icon}`})})},S))})});break;default:b=o.jsx("div",{className:r,...g,children:t})}return o.jsx(_.TextStructure.Root,{layoutProps:{textRow:{alignContent:p,alignItems:p},columnWrapper:{alignContent:d,alignItems:m}},...g,children:o.jsx(_.TextStructure.DivWrapper,{alignContent:h,alignItems:y,className:_.helpers.classNameConcat(pe.footer__item,r),children:b})})},kh=({className:e,text:t,...r})=>o.jsx("div",{...r,className:_.helpers.classNameConcat(pe.footer__legalInformation,e),children:o.jsx("span",{children:t})}),pu=()=>{const{nextimage:e}=Ee();return o.jsx("div",{className:pe["footer--stamps"],children:o.jsx(e,{alt:"Empresa B",className:pe["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};pu.displayName="Footer.Stamps";const mu=({children:e,legalTextSlot:t,adornment:r,className:n,...i})=>{const{isMobile:s}=Se(),a=C.Children.toArray(e).filter(Boolean),c=a.length;return o.jsxs("div",{className:pe.footer__main,children:[(r==null?void 0:r.top)&&o.jsx("div",{className:pe.footer__top,children:r==null?void 0:r.top}),c>0&&o.jsx("div",{...i,className:_.helpers.classNameConcat(pe.footer__wrapper,n),children:a.map((l,u)=>o.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${s?1:"fit-content"})`},children:l},u))}),(r==null?void 0:r.bottom)&&o.jsx("div",{className:pe.footer__bottom,children:r.bottom}),t&&o.jsx("div",{className:pe.footer__legalText,children:t})]})};mu.displayName="Footer.Wrapper";const hu=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:n,adornment:i,LEGAL_INFORMATION_TEXT:s,ICONS:a})=>{var c;return o.jsxs(mu,{adornment:i,legalTextSlot:o.jsx(kh,{text:s}),children:[Array.isArray(e.column)&&e.column.map((l,u)=>o.jsx(Wn,{id:`${u}column-menu`,name:l.name,nameIcon:l.nameIcon,ICONS:a,children:l.items.map((f,p)=>o.jsx(Ut,{type:"menu",link:f.link,collumnName:l.name,collumnNameIcon:l.nameIcon,children:f.text},p))},u)),t&&((c=t.acceptedFlags)==null?void 0:c.length)>0&&o.jsx(Wn,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:a,children:o.jsx(Ut,{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})}),o.jsxs(Wn,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:a,children:[r!=null&&r.subTitle?o.jsx(Ut,{children:r==null?void 0:r.subTitle}):null,o.jsx(Ut,{type:"social-media",iconSize:24,iconLink:n}),o.jsx(pu,{})]})]})};hu.displayName="Footer";const Lh=Object.freeze(Object.defineProperty({__proto__:null,Footer:hu,FooterSupport:Oh},Symbol.toStringTag,{value:"Module"})),Ys=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:n})=>{const i=ma(e.imageUrl,n.pdp),{nextimage:s}=Ee();return o.jsx(s,{src:i,alt:e.imageLabel,objectFit:"contain",...n.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},Dh=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:n}=ge(),i=C.useRef(!1);return o.jsx(Be.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{i.current||(i.current=!0,n({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:t}}}))},poster:r})},$h={"gallery-carousel-modifier":"_gallery-carousel-modifier_1dxfy_92"},gu=({images:e,video:t,handleZoom:r,productName:n,PRODUCT_IMAGE_DIMENSIONS:i})=>{var u,f;const{initialize:s,pagination:a,controller:c,itemsStyles:l}=_.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return o.jsxs(_.Carousel.Root,{innerRef:p=>{s(p)},className:$h["gallery-carousel-modifier"],children:[o.jsx(_.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:o.jsx(_.Carousel.Bullets,{page:a.currentPage,total:e.length,onBulletClick:p=>c==null?void 0:c.navigateTo(p)})}),o.jsxs(_.Carousel.Body,{children:[o.jsx(_.Carousel.Item,{style:l,children:o.jsx(Ys,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:i})},"PDP_gallery_0"),t&&o.jsx(_.Carousel.Item,{style:l,children:o.jsx(Dh,{video:t,productName:n,...((u=e[1])==null?void 0:u.imageUrl)&&{poster:(f=e[1])==null?void 0:f.imageUrl}})},"PDP_gallery_video"),e.map((p,d)=>d===0?null:o.jsx(_.Carousel.Item,{style:l,children:o.jsx(Ys,{image:p,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:i})},`PDP_gallery_${d}`))]})]})};gu.displayName="PDP.Carousel";const Bh=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{video:r,productName:n}=So(),[i,s]=C.useState({show:!1,initialIndex:0});C.useEffect(()=>(i.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[i]);const a=c=>{s({show:!0,initialIndex:c})};return o.jsx(o.Fragment,{children:o.jsx(gu,{images:e,video:r,handleZoom:a,productName:n,PRODUCT_IMAGE_DIMENSIONS:t})})},yu=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{images:r}=So(),n=C.useMemo(()=>{const i=r.filter(s=>!e.includes(s.imageLabel));return i.length>0?i:r},[]);return o.jsx(Bh,{productImgs:n,PRODUCT_IMAGE_DIMENSIONS:t})};yu.displayName="PDP.Gallery";const Fh=Object.freeze(Object.defineProperty({__proto__:null,Gallery:yu},Symbol.toStringTag,{value:"Module"})),qh=({page:e,data:t})=>{const{pathname:r}=Ee(),n=C.useRef(null),{sendDataLayerEvent:i,currentLocalRef:s,itemListRef:a,promotionEventRef:c}=ge();return C.useEffect(()=>{const l=Ac("login_event")||"{}",u=JSON.parse(l);if(u.name||u.method){const f=new Date(0);i({functionKey:"readyEvents",data:{event:u.name,readyData:{method:u.method}}}),No("login_event","",{expires:f})}},[]),C.useEffect(()=>{if(n.current===r)return;n.current=r;let l={};switch(e){case"PDP":{const f=t,p={};if(!f){l={page_category:"pdp"};break}f.items.forEach(({itemId:d,sellers:m})=>p[d]=m[0].commertialOffer.AvailableQuantity),l={page_category:"pdp",seller_ids:f.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:p,product_reference_id:f.productReference};break}case"PDC":{const{page_category:f,page_departament:p,id:d,name:m}=Ca(),h=m,y=d;l={page_category:"lista_produtos",...p&&{page_departament:p}},a.current={item_list_name:r==="/search"?"busca":h??void 0,item_list_id:r==="/search"?void 0:y??void 0},p&&i({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:f,page_departament:p}}});break}default:l={page_category:e},c.current={},a.current={};break}const u={region:e,...l};s.current=e,i({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...u}},timeout:0})},[r]),null};var ao={exports:{}};function zh(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 Vn={},Kn={},Zs;function Hh(){return Zs||(Zs=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return n}});const n=Pe._(C).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="LoadableContext")}(Kn)),Kn}var Js;function Uh(){return Js||(Js=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return m}});const r=Pe._(C),n=Hh();function i(h){return h&&h.default?h.default:h}const s=[],a=[];let c=!1;function l(h){let y=h(),g={loading:!0,loaded:null,error:null};return g.promise=y.then(b=>(g.loading=!1,g.loaded=b,b)).catch(b=>{throw g.loading=!1,g.error=b,b}),g}function u(h,y){let g=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},y),b=null;function j(){if(!b){const S=new f(h,g);b={getCurrentValue:S.getCurrentValue.bind(S),subscribe:S.subscribe.bind(S),retry:S.retry.bind(S),promise:S.promise.bind(S)}}return b.promise()}if(typeof window>"u"&&s.push(j),!c&&typeof window<"u"){const S=g.webpack&&typeof zh.resolveWeak=="function"?g.webpack():g.modules;S&&a.push(P=>{for(const x of S)if(P.includes(x))return j()})}function v(){j();const S=r.default.useContext(n.LoadableContext);S&&Array.isArray(g.modules)&&g.modules.forEach(P=>{S(P)})}function A(S,P){v();const x=r.default.useSyncExternalStore(b.subscribe,b.getCurrentValue,b.getCurrentValue);return r.default.useImperativeHandle(P,()=>({retry:b.retry}),[]),r.default.useMemo(()=>x.loading||x.error?r.default.createElement(g.loading,{isLoading:x.loading,pastDelay:x.pastDelay,timedOut:x.timedOut,error:x.error,retry:b.retry}):x.loaded?r.default.createElement(i(x.loaded),S):null,[S,x])}return A.preload=()=>j(),A.displayName="LoadableComponent",r.default.forwardRef(A)}class f{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:y,_opts:g}=this;y.loading&&(typeof g.delay=="number"&&(g.delay===0?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},g.delay)),typeof g.timeout=="number"&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},g.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(b=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(y){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...y},this._callbacks.forEach(g=>g())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(y){return this._callbacks.add(y),()=>{this._callbacks.delete(y)}}constructor(y,g){this._loadFn=y,this._opts=g,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function p(h){return u(l,h)}function d(h,y){let g=[];for(;h.length;){let b=h.pop();g.push(b(y))}return Promise.all(g).then(()=>{if(h.length)return d(h,y)})}p.preloadAll=()=>new Promise((h,y)=>{d(s).then(h,y)}),p.preloadReady=h=>(h===void 0&&(h=[]),new Promise(y=>{const g=()=>(c=!0,y());d(a,h).then(g,g)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=p.preloadReady);const m=p}(Vn)),Vn}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(f,p){for(var d in p)Object.defineProperty(f,d,{enumerable:!0,get:p[d]})}r(t,{noSSR:function(){return l},default:function(){return u}});const n=Pe,i=n._(C),s=n._(Uh()),a=typeof window>"u";function c(f){return{default:(f==null?void 0:f.default)||f}}function l(f,p){if(delete p.webpack,delete p.modules,!a)return f(p);const d=p.loading;return()=>i.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(f,p){let d=s.default,m={loading:g=>{let{error:b,isLoading:j,pastDelay:v}=g;if(!v)return null;if(process.env.NODE_ENV!=="production"){if(j)return null;if(b)return i.default.createElement("p",null,b.message,i.default.createElement("br",null),b.stack)}return null}};f instanceof Promise?m.loader=()=>f:typeof f=="function"?m.loader=f:typeof f=="object"&&(m={...m,...f}),m={...m,...p};const h=m.loader,y=()=>h!=null?h().then(c):Promise.resolve(c(()=>null));return m.loadableGenerated&&(m={...m,...m.loadableGenerated},delete m.loadableGenerated),typeof m.ssr=="boolean"&&!m.ssr?(delete m.webpack,delete m.modules,l(d,m)):d({...m,loader: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)})(ao,ao.exports);var Gh=ao.exports,Wh=Gh;const Vh=er(Wh);var co={exports:{}},Gt={exports:{}},ea;function Kh(){return ea||(ea=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(l,u){for(var f in u)Object.defineProperty(l,f,{enumerable:!0,get:u[f]})}r(t,{DOMAttributeNames:function(){return n},isEqualNode:function(){return s},default:function(){return c}});const n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function i(l){let{type:u,props:f}=l;const p=document.createElement(u);for(const h in f){if(!f.hasOwnProperty(h)||h==="children"||h==="dangerouslySetInnerHTML"||f[h]===void 0)continue;const y=n[h]||h.toLowerCase();u==="script"&&(y==="async"||y==="defer"||y==="noModule")?p[y]=!!f[h]:p.setAttribute(y,f[h])}const{children:d,dangerouslySetInnerHTML:m}=f;return m?p.innerHTML=m.__html||"":d&&(p.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),p}function s(l,u){if(l instanceof HTMLElement&&u instanceof HTMLElement){const f=u.getAttribute("nonce");if(f&&!l.getAttribute("nonce")){const p=u.cloneNode(!0);return p.setAttribute("nonce",""),p.nonce=f,f===l.nonce&&l.isEqualNode(p)}}return l.isEqualNode(u)}let a;process.env.__NEXT_STRICT_NEXT_HEAD?a=(l,u)=>{const f=document.querySelector("head");if(!f)return;const p=f.querySelectorAll('meta[name="next-head"]')||[],d=[];if(l==="meta"){const y=f.querySelector("meta[charset]");y&&d.push(y)}for(let y=0;y<p.length;y++){var m;const b=p[y].nextSibling;(b==null||(m=b.tagName)==null?void 0:m.toLowerCase())===l&&d.push(b)}const h=u.map(i).filter(y=>{for(let g=0,b=d.length;g<b;g++){const j=d[g];if(s(j,y))return d.splice(g,1),!1}return!0});d.forEach(y=>{var g;const b=y.previousSibling;if(b&&b.getAttribute("name")==="next-head"){var j;(j=y.parentNode)==null||j.removeChild(b)}(g=y.parentNode)==null||g.removeChild(y)}),h.forEach(y=>{var g;const b=document.createElement("meta");b.name="next-head",b.content="1",((g=y.tagName)==null?void 0:g.toLowerCase())==="meta"&&y.getAttribute("charset")||f.appendChild(b),f.appendChild(y)})}:a=(l,u)=>{const f=document.getElementsByTagName("head")[0],p=f.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!p){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(p.content),m=[];for(let g=0,b=p.previousElementSibling;g<d;g++,b=(b==null?void 0:b.previousElementSibling)||null){var h;(b==null||(h=b.tagName)==null?void 0:h.toLowerCase())===l&&m.push(b)}const y=u.map(i).filter(g=>{for(let b=0,j=m.length;b<j;b++){const v=m[b];if(s(v,g))return m.splice(b,1),!1}return!0});m.forEach(g=>{var b;return(b=g.parentNode)==null?void 0:b.removeChild(g)}),y.forEach(g=>f.insertBefore(g,p)),p.content=(d-m.length+y.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 m=u[d.type]||[];m.push(d),u[d.type]=m});const f=u.title?u.title[0]:null;let p="";if(f){const{children:d}=f.props;p=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}p!==document.title&&(document.title=p),["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)}(Gt,Gt.exports)),Gt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(S,P){for(var x in P)Object.defineProperty(S,x,{enumerable:!0,get:P[x]})}r(t,{handleClientScriptLoad:function(){return y},initScriptLoader:function(){return j},default:function(){return A}});const n=Pe,i=at,s=n._(la),a=i._(C),c=ru(),l=Kh(),u=rl(),f=new Map,p=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],m=S=>{if(s.default.preinit){S.forEach(P=>{s.default.preinit(P,{as:"style"})});return}if(typeof window<"u"){let P=document.head;S.forEach(x=>{let I=document.createElement("link");I.type="text/css",I.rel="stylesheet",I.href=x,P.appendChild(I)})}},h=S=>{const{src:P,id:x,onLoad:I=()=>{},onReady:B=null,dangerouslySetInnerHTML:E,children:O="",strategy:N="afterInteractive",onError:$,stylesheets:R}=S,F=x||P;if(F&&p.has(F))return;if(f.has(P)){p.add(F),f.get(P).then(I,$);return}const H=()=>{B&&B(),p.add(F)},U=document.createElement("script"),K=new Promise((W,z)=>{U.addEventListener("load",function(ne){W(),I&&I.call(this,ne),H()}),U.addEventListener("error",function(ne){z(ne)})}).catch(function(W){$&&$(W)});E?(U.innerHTML=E.__html||"",H()):O?(U.textContent=typeof O=="string"?O:Array.isArray(O)?O.join(""):"",H()):P&&(U.src=P,f.set(P,K));for(const[W,z]of Object.entries(S)){if(z===void 0||d.includes(W))continue;const ne=l.DOMAttributeNames[W]||W.toLowerCase();U.setAttribute(ne,z)}N==="worker"&&U.setAttribute("type","text/partytown"),U.setAttribute("data-nscript",N),R&&m(R),document.body.appendChild(U)};function y(S){const{strategy:P="afterInteractive"}=S;P==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(S))}):h(S)}function g(S){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>h(S)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(S))})}function b(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(P=>{const x=P.id||P.getAttribute("src");p.add(x)})}function j(S){S.forEach(y),b()}function v(S){const{id:P,src:x="",onLoad:I=()=>{},onReady:B=null,strategy:E="afterInteractive",onError:O,stylesheets:N,...$}=S,{updateScripts:R,scripts:F,getIsSsr:H,appDir:U,nonce:K}=(0,a.useContext)(c.HeadManagerContext),W=(0,a.useRef)(!1);(0,a.useEffect)(()=>{const ne=P||x;W.current||(B&&ne&&p.has(ne)&&B(),W.current=!0)},[B,P,x]);const z=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{z.current||(E==="afterInteractive"?h(S):E==="lazyOnload"&&g(S),z.current=!0)},[S,E]),(E==="beforeInteractive"||E==="worker")&&(R?(F[E]=(F[E]||[]).concat([{id:P,src:x,onLoad:I,onReady:B,onError:O,...$}]),R(F)):H&&H()?p.add(P||x):H&&!H()&&h(S)),U){if(N&&N.forEach(ne=>{s.default.preinit(ne,{as:"style"})}),E==="beforeInteractive")return x?(s.default.preload(x,$.integrity?{as:"script",integrity:$.integrity}:{as:"script"}),a.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([x])+")"}})):($.dangerouslySetInnerHTML&&($.children=$.dangerouslySetInnerHTML.__html,delete $.dangerouslySetInnerHTML),a.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...$}])+")"}}));E==="afterInteractive"&&x&&s.default.preload(x,$.integrity?{as:"script",integrity:$.integrity}:{as:"script"})}return null}Object.defineProperty(v,"__nextScript",{value:!0});const A=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)})(co,co.exports);var Xh=co.exports,Qh=Xh;const Yh=er(Qh),Zh=({children:e,ONE_TRUST:t})=>o.jsxs(o.Fragment,{children:[o.jsx(Yh,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),Jh=Vh(()=>Promise.resolve(Zh),{ssr:!1}),eg={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},gt=({size:e,adornment:t,title:r,subtitle:n,supportChildren:i,className:s,Z_INDEX_WAR:a,...c})=>o.jsxs(_.SnackBar.Structure,{...c,size:e,className:_.helpers.classNameConcat(eg["snackbar-modifier"],s),width:360,style:{zIndex:a.snackbar},children:[o.jsx(_.SnackBar.Content,{adornment:t,title:r,subtitle:n}),i&&o.jsx(_.SnackBar.Support,{children:i})]});gt.displayName="SnackBar";const _u=({children:e,contentState:t,entityKey:r})=>{const{url:n}=t.getEntity(r).getData();return n?o.jsx(Oe,{href:n,children:e}):e},Vo=({key:e,PLP_FILTERS:t})=>t.some(r=>r.key===e)?e==="cores-filtraveis":!1,Ko=({value:e,PLP_FILTERS_COLORS:t})=>{var r;return((r=t.find(n=>n.value===e))==null?void 0:r.color)??"#F2F2F2"},vu=({key:e,PLP_FILTERS:t})=>{var r;return(r=t.find(n=>n.key===e))==null?void 0:r.label},bu=({key:e,PLP_FILTERS:t})=>{var r;return((r=t.find(n=>n.key===e))==null?void 0:r.order)??0},lo=({value:e})=>{const[t,r]=e.split(":").length===2?e.split(":"):[0,0],n=Ie(Number(r));return`${Ie(Number(t))} até ${n}`},tg=({items:e})=>{const t=e.flatMap(i=>[i.range.from,i.range.to]),r=Math.min(...t.map(Math.abs)),n=Math.max(...t.map(Math.abs));return[r,n]},rg=Object.freeze(Object.defineProperty({__proto__:null,checkedColor:Vo,createTagPrice:lo,getAbsoluteMinMax:tg,getColor:Ko,getName:vu,getOrder:bu},Symbol.toStringTag,{value:"Module"})),Le={"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"},xu=({columns:e=2,CONSTANTS:t,...r})=>{var s;const{filters:n,onToggleFacet:i}=ut();return o.jsxs("div",{...r,className:Le["filter--modal--body--content"],children:[Array.isArray(n.facets)&&n.facets.map(a=>o.jsx(Fe.Item,{columns:e,facet:a,onToggleFacet:i,CONSTANTS:t},a.key)),!((s=n.facets)!=null&&s.length)&&o.jsx(Fe.Empty,{PLP_FILTERS_EMPTY:t.PLP_FILTERS_EMPTY})]})};xu.displayName="Filter.Item.Content";const Cu=({PLP_FILTERS_EMPTY:e})=>{const t=()=>{window.history.back()};return o.jsxs("div",{className:Le["filter--empty"],children:[o.jsxs(_.TextStructure.DivWrapper,{children:[o.jsx("h4",{children:e.title}),o.jsx("p",{children:e.subtitle})]}),o.jsx(_.Button,{onClick:()=>t(),variant:"tertiary",children:e.button})]})};Cu.displayName="Filter.Empty";const Su=({columns:e,facet:t,onToggleFacet:r,CONSTANTS:n,...i})=>{const s=bu({key:t.key,PLP_FILTERS:n.PLP_FILTERS}),a=()=>{if(t.__typename==="FacetBoolean"){if(t.key==="cores-filtraveis")return o.jsx(Fe.Colors,{onToggleFacet:r,values:t.values,PLP_FILTERS:n.PLP_FILTERS,PLP_FILTERS_COLORS:n.PLP_FILTERS_COLORS});if(t.key==="tamanho")return o.jsx(Fe.Sizes,{onToggleFacet:r,values:t.values,PLP_SIZE_ORDER:n.PLP_SIZE_ORDER});if(t.key==="category-2")return o.jsx(Fe.Toggle,{columns:e,facetKey:t.key,onToggleFacet:r,values:t.values,ICONS:n.ICONS})}return t.__typename==="FacetRange"?o.jsx(Fe.Price,{facet:t}):o.jsx("p",{children:"Filter not support!!!"})};return o.jsx("div",{...i,className:Le["filter--item"],style:{order:s},children:o.jsxs(_.Accordion.Wrapper,{style:{width:"100%"},children:[o.jsx(_.Accordion.Header,{id:t.key,closeIndicator:o.jsx(_.Icon,{name:n.ICONS.arrow_up}),openIndicator:o.jsx(_.Icon,{name:n.ICONS.arrow_down}),children:o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{children:o.jsx("h4",{className:"typography-style-body-sm",children:vu({key:t.key,PLP_FILTERS:n.PLP_FILTERS})})})})}),o.jsx(_.Accordion.Body,{children:a()})]})})};Su.displayName="Filter.Item";const ju=({onToggleFacet:e,values:t,PLP_FILTERS:r,PLP_FILTERS_COLORS:n,...i})=>o.jsx(Ye.Root,{...i,children:o.jsx(Ye.List,{children:Array.isArray(t)&&t.map(({key:s,selected:a,value:c})=>o.jsx(Ye.Option,{active:a,"data-color":Vo({key:s,PLP_FILTERS:r}),fill:Ko({value:c,PLP_FILTERS_COLORS:n}),onClick:()=>e({key:s,value:c}),type:"color"},`${s}-${c}`))})});ju.displayName="Filter.Item.Color";const Au=({facet:e,...t})=>{var u,f;const{filters:{selected:r},price:n,onToggleFacet:i}=ut(),[s,a]=(n==null?void 0:n.split(":").map(Number))??[0,100],[c,l]=((f=(u=r==null?void 0:r.find(({key:p})=>p==="price"))==null?void 0:u.value)==null?void 0:f.split(":").map(Number))??[s,a];return o.jsx("div",{...t,className:Le["filter--item--price"],children:o.jsxs(_.Slider.SliderDual,{format:"price",initialValue:[c<s?s:c,l>a?a:l],min:s,max:a,type:"dual",step:1,onFinish:p=>{var d,m;p&&i({key:"price",value:`${(d=p.range)==null?void 0:d.min}:${(m=p.range)==null?void 0:m.max}`})},children:[o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{children:o.jsx("p",{"data-min-value":!0})})}),o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{children:o.jsx("p",{"data-max-value":!0})})})]})})};Au.displayName="Filter.Item.Price";const Eu=({onToggleFacet:e,values:t,PLP_SIZE_ORDER:r,...n})=>{const i=[...t].sort((s,a)=>{const c=r.indexOf(s.name),l=r.indexOf(a.name);return c-l});return o.jsx(Ye.Root,{...n,children:o.jsx(Ye.List,{children:Array.isArray(i)&&i.map(({key:s,selected:a,value:c})=>o.jsx(Ye.Option,{active:a,text:c,type:"size",onClick:()=>e({key:s,value:c})},c))})})};Eu.displayName="Filter.Item.Sizes";const Ru=({columns:e,facetKey:t,onToggleFacet:r,values:n,ICONS:i,...s})=>o.jsx("div",{...s,className:Le["filter--item--toggle"],children:o.jsx("div",{className:Le["filter--item--toggle--container"],style:{gridTemplateColumns:`repeat(${e}, 1fr)`},children:Array.isArray(n)&&n.map(a=>o.jsx(_.Checkbox,{label:(a==null?void 0:a.name)??"",adornment:o.jsx(_.Icon,{name:i.check}),checked:a.selected,onChange:()=>r(a)},a.value))})});Ru.displayName="Filter.Item.Toggle";const wu=({...e})=>{const{isLoading:t}=ut();return o.jsx("div",{className:Le["filter--loading"],"data-active":t,...e,children:o.jsx(_.Spinner,{indicatorColor:"#000",background:"#222"})})};wu.displayName="Filter.Loading";const Pu=({children:e,className:t,isMobile:r=!1,CONSTANTS:{PLP_FILTERS_TITLE:n,ICONS:i}})=>{var f;const{deleteAllFacets:s,filters:a,isOpen:c,target:l,setIsOpen:u}=ut();return o.jsxs(_.Modal.Root,{className:_.helpers.classNameConcat(Le["filter--modal"],t),isMobile:r??!1,isOpen:c,parent:l,setIsOpen:u,variant:r?"sideBottom":"sideRight",style:{zIndex:99},children:[o.jsxs(_.Modal.Header,{navigation:"top",children:[o.jsx(_.Modal.Controls,{navigation:"top",isMobile:r,children:o.jsx(_.Button,{"data-close":!0,iconNameStart:i.close,size:"small",variant:"tertiary",style:{marginLeft:"auto"}})}),o.jsx(_.Modal.Title,{navigation:"top",title:n})]}),o.jsxs(_.Modal.Body,{style:{width:500},children:[o.jsx("div",{className:Le["filter--modal--body"],children:e}),o.jsx(Fe.Loading,{})]}),o.jsx(_.Modal.Footer,{children:o.jsxs("div",{className:Le["filter--modal--footer"],children:[o.jsx(_.Button,{"data-close":!0,size:"large",variant:"primary",children:(f=a.facets)!=null&&f.length?"ver resultados":"fechar"}),o.jsx(_.Button,{"data-close":!0,onClick:()=>s(),variant:"tertiary",children:"limpar filtros"})]})})]})};Pu.displayName="Filter.Modal";const Iu=({children:e,className:t,isMobile:r,CONSTANTS:n,...i})=>o.jsx(Pc,{...i,PLP_FILTERS:n.PLP_FILTERS,children:o.jsx(Fe.Modal,{className:t,isMobile:r,CONSTANTS:n,children:e})});Iu.displayName="Filter.Root";const Nu=({ICONS:e,PLP_FILTERS_COLORS:t,PLP_FILTERS:r})=>{const{filters:n,onToggleFacet:i}=ut();return o.jsx("div",{className:Le["filter--selected"],children:o.jsx("div",{className:Le["filter--selected--content"],children:Array.isArray(n.selected)&&n.selected.map(({key:s,value:a})=>s==="productclusterids"?null:o.jsx(_.Tag,{title:s==="price"?lo({value:a}):a,adornment:{end:o.jsx(_.Icon,{name:e.close,size:"x-small"})},colorSquare:Ko({value:a,PLP_FILTERS_COLORS:t}),onClick:()=>i({key:s,value:a}),squareShow:Vo({key:s,PLP_FILTERS:r}),size:"medium",variant:"primary",children:s==="price"?lo({value:a}):a},a))})})};Nu.displayName="Filter.Selected";const Fe={Colors:ju,Content:xu,Empty:Cu,Modal:Pu,Item:Su,Root:Iu,Loading:wu,Selected:Nu,Price:Au,Sizes:Eu,Toggle:Ru},ng={teamComponents:{AddToCart:Mo,BackToTop:Mf,BuyPackage:Cp,Filter:{...Fe,helpers:rg},...Lh,FreightCalculation:mm,Header:Hl,Link:Ge,Media:Be,ProductCard:ye,ProductList:hm,ProductVariationList:Ye,Sort:Jl,UserMenu:Bo},template:{pdp:Fh},utils:{EventCollector:qh,ExternalScripts:Jh,LinkOrNotLink:Ct,ObserverWrapper:nr,SnackBarComponent:gt,DraftJsLinkWrapper:_u}},og=(e,t)=>{const r=e.map(i=>`'${i.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
- `},Ch=Object.freeze(Object.defineProperty({__proto__:null,generateMiddleware:xh},Symbol.toStringTag,{value:"Module"})),Sh={helpers:Ch},Ah=(e,t,r)=>{e.findEntityRanges(n=>{const o=n.getEntity();return o===null?!1:r.getEntity(o).getType()==="LINK"},t)},Gt=e=>{const t=new De.CompositeDecorator([{strategy:Ah,component:Yl}]),r=De.convertFromRaw(e);return De.EditorState.createWithContent(r,t)},Eh=e=>De.convertFromRaw(e),Wt=De.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),Vs="superior-direita",Ht="dentro-inferior-centro",Rh="inferior-direita",Un="dentro-inferior-esquerda",ru=e=>({position:e===Ht||e===Un?"absolute":"default",shouldRender:[Vs,Ht,Un].includes(e)?"top":"bottom",alignItems:[Ht].includes(e)?"center":[Vs,Rh].includes(e)?"flex-end":"flex-start",left:e===Un?"16px":e===Ht?"45%":"unset"}),wh=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:Gt,EXTENDED_BLOCK_RENDER_MAP:Wt,GET_CONTENT_STATE:Eh,controllersPositionsAdapter:ru},Symbol.toStringTag,{value:"Module"})),Ze=e=>({centro:"center",esquerda:"start",direita:"end"})[e],jh=({expanded:e,content:t})=>s.jsxs("details",{open:e,children:[t.textStructureReduced?s.jsx("summary",{onClick:r=>r.preventDefault(),children:s.jsx(De.Editor,{editorKey:"draft-editor-1",blockRenderMap:Wt,editorState:t!=null&&t.textStructureReduced?Gt(JSON.parse(t.textStructureReduced)):De.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):s.jsx(s.Fragment,{}),t.showTextStructureExpander&&t.textStructure?s.jsx(s.Fragment,{children:s.jsx(De.Editor,{editorKey:"draft-editor-1",blockRenderMap:Wt,editorState:t.textStructure?Gt(JSON.parse(t.textStructure)):De.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):s.jsx(s.Fragment,{})]}),oo={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},Ph="_textContentWrapper_1bigo_5",Ih="_textContentSection_1bigo_13",io={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:Ph,textContentSection:Ih},nu=({data:e,ICONS:t})=>{var o;const[r,n]=C.useState(!1);return s.jsx(v.TextStructure.Root,{layoutProps:{textRow:{alignContent:Ze(e.textStructureAlignment),alignItems:Ze(e.textStructureAlignment)},columnWrapper:{alignContent:Ze(e.textStructureAlignment),alignItems:Ze(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?s.jsx(v.Button,{variant:"tertiary",adornment:{end:s.jsx(v.Icon,{name:r?`${t.arrow_up}`:`${t.arrow_down}`})},onClick:()=>n(i=>!i),size:"small",children:r?"Ver Menos":"Ver Mais"}):s.jsx(s.Fragment,{})},children:s.jsxs(v.Utils.Column,{className:io.textContentWrapper,style:{alignItems:Ze(e.textStructureAlignment)},children:[s.jsx(v.TextStructure.DivWrapper,{style:{textAlign:Ze(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:oo["draftjs-text-modifier"],children:e.textStructureReduced?s.jsx(jh,{content:e,expanded:r}):s.jsx(s.Fragment,{})}),e.textStructureButtonLabel?s.jsx(ze,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:io["link-modifier"],adornments:(o=e.textStructureButtonIcon)!=null&&o.length&&e.enableIcon?{end:s.jsx(v.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):s.jsx(s.Fragment,{})]})})},Nh=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],Ks=e=>({centro:"center",esquerda:"start",direita:"end"})[e],so=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...n})=>{const[o,i]=C.useState(xc(new Fo.TZDate(Date.now(),r),new Fo.TZDate(e,r))),[a,c]=C.useState(!1);C.useEffect(()=>{a||c(!0);const u=setInterval(()=>{if(o<=0){clearInterval(u);return}i(o-1e3)},1e3);return()=>{clearInterval(u)}},[o,i,a]);const l=ct(o,"days");return a&&o>0?s.jsxs(v.Timer.Root,{...n,children:[l?s.jsxs(s.Fragment,{children:[s.jsx(v.Timer.Digit,{label:"dias",value:l}),s.jsx(v.Timer.Separator,{})]}):null,s.jsx(v.Timer.Digit,{label:"horas",value:ct(o,"hours")}),s.jsx(v.Timer.Separator,{}),s.jsx(v.Timer.Digit,{label:"min",value:ct(o,"minutes")}),s.jsx(v.Timer.Separator,{}),s.jsx(v.Timer.Digit,{label:"segs",value:ct(o),suppressHydrationWarning:!0})]}):s.jsx(s.Fragment,{})},Xs={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},Qs=({data:e,videoUrl:t,priority:r,videoRef:n,ICONS:o,...i})=>{const{video:a,image:c,imageHref:l,imageOpacity:u,altImage:f,backgroundColor:p,position:d,contentAlignment:h,showTimer:m,contentOrder:y,timerMode:g,timerEnd:b,timerInit:A,textStructure:_,textStructureReduced:E}=e.banner,S=(l==null?void 0:l.trim())||(c==null?void 0:c.trim())||null,{nextimage:P}=Pe();return s.jsxs(v.Banner.Container,{...i,children:[s.jsxs(v.Banner.ImageWrapper,{className:Xs["banner-image-wrapper-modifier"],style:u?{background:p}:void 0,children:[a&&s.jsx($e.Video,{videoRef:n,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),S&&!(a!=null&&a.length)&&s.jsx(P,{src:S,width:"1920",height:"1080",alt:f??c??"",...r?{priority:r}:{},style:u?{opacity:"0"}:void 0}),!c&&!(a!=null&&a.length)&&s.jsx("div",{style:{background:p}})]}),m||E||_?s.jsx(v.Banner.Slot,{...Nh(d??"centro"),className:Xs["content-modifier"],style:{textAlign:Ks(h)},children:s.jsxs(v.Utils.Column,{gap:"16px",alignItems:Ks(h),children:[m&&y==="timer-first"&&s.jsx(so,{mode:g??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:A?new Date(A):new Date}),s.jsx(nu,{data:e.banner,ICONS:o}),m&&y!=="timer-first"&&s.jsx(so,{mode:g??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:A?new Date(A):new Date})]})}):s.jsx(s.Fragment,{})]})},qo=({data:e,className:t,priority:r,creative:n,...o})=>{const{handleSelectPromotionEvent:i,currentLocalRef:a}=ge(),{banner:{promotion_name:c},index:l,componentIndex:u}=e,f=typeof l=="number"?`:${l+1}`:"",p={creative_name:n,creative_slot:`${n}-${a.current}:${u+1}${f}`,promotion_id:e.banner.href,promotion_name:c},d=C.useRef(null),h=C.useMemo(()=>{var y;if((y=e.banner.video)!=null&&y.includes("player.vimeo")){const g=e.banner.video.split("?")[1],b=g==null?void 0:g.split("&"),A=b==null?void 0:b.filter(E=>E.includes("loc")||E.includes("signature")||E.includes("user_id")),_=A==null?void 0:A.join("&");return`${e.banner.video.split("?")[0]}?${_}`}return e.banner.video},[e]),m=()=>{var y;(y=d.current)!=null&&y.paused&&d.current.play()};return s.jsx(Jt,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...p,index:l}}}},observerOptions:{delay:100,...h&&{threshold:.1}},...h&&{callBackWhenVisible:m},children:e.banner.href?s.jsx(Ne,{href:e.banner.href,onClick:()=>{i({updatePromotionRef:!0,promotion:p,index:l})},children:s.jsx(Qs,{data:e,videoUrl:h,priority:r,videoRef:d,...o})}):s.jsx(Qs,{data:e,videoUrl:h,priority:r,videoRef:d,...o})})},ou=e=>s.jsx(qo,{...e}),ao={"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 Oh(e,t){const{mediatorRef:r}=Se();C.useEffect(()=>r.current.subscribe(e,t),[e,t])}const Ys=({prevOnClick:e,nextOnClick:t,onBulletClick:r,currentPage:n,totalPages:o,position:i,hideControllers:a,left:c,isFirst:l,ICONS:u})=>{const[f,p]=C.useState("default");return Oh("herobanner:change_controllers_variant",d=>{l&&p(d.includes("white")?"inverse":"default")}),s.jsxs(v.Carousel.Controller,{className:ao["carousel-controllers-modifier"],position:i??"absolute","data-hide-controllers":a,bottom:"16px",top:"unset",left:c,children:[s.jsxs(v.Carousel.Arrows,{className:ao["carrousel-arrows-display-controller"],children:[s.jsx(v.Button,{variant:"tertiary",onClick:e,adornment:{start:s.jsx(v.Icon,{name:u.arrow_left})},mode:f}),s.jsx(v.Button,{variant:"tertiary",onClick:t,adornment:{start:s.jsx(v.Icon,{name:u.arrow_right})},mode:f})]}),s.jsx(v.Carousel.Bullets,{page:n,total:o,onBulletClick:r,mode:f})]})},Th=({children:e,data:t,banner:r,...n})=>{const{mediatorRef:o}=Se();return t.data.first?s.jsx(Jt,{observerOptions:{threshold:.51},stopOnIntersection:!1,callBackWhenVisible:()=>{o.current.publish("header:change_variant",r.headerVariant)},...n,children:e}):s.jsx(s.Fragment,{children:e})},Mh=({data:e,ICONS:t})=>{var p;const{initialize:r,pagination:n,controller:o,itemsStyles:i}=v.Carousel.useCarousel({gap:e.data.config.gap,itemsPerPage:e.data.config.slidesPerView,direction:"row"}),a=C.useRef(void 0),c=C.useMemo(()=>ru(e.data.config.controllerPosition??"dentro-inferior-centro"),[e]),l=C.useCallback(()=>{e.data.config.slideDuration&&n.totalPages>1&&(a.current=setInterval(()=>{o==null||o.nextPage()},e.data.config.slideDuration*1e3))},[o,e.data.config.slideDuration,n.totalPages]),u=C.useCallback(d=>{clearInterval(a.current),l(),d()},[l]),f=C.useMemo(()=>{var d;return{nextOnClick:()=>u(()=>o==null?void 0:o.nextPage()),prevOnClick:()=>u(()=>o==null?void 0:o.prevPage()),onBulletClick:h=>u(()=>o==null?void 0:o.navigateTo(h)),currentPage:n.currentPage,totalPages:n.totalPages,position:c.position,hideControllers:((d=e.data.config)==null?void 0:d.hideControllers)??!1,left:c.left}},[n.currentPage,n.totalPages,c.position,e.data.config.hideControllers,u,o]);return C.useEffect(()=>(l(),()=>clearInterval(a.current)),[l]),s.jsxs(v.Carousel.Root,{innerRef:d=>{r(d)},className:v.helpers.classNameConcat(ao["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"&&n.totalPages>1?s.jsx(Ys,{ICONS:t,...f,isFirst:e.data.first}):s.jsx(s.Fragment,{}),s.jsx(v.Carousel.Body,{children:(p=e==null?void 0:e.data)==null?void 0:p.banners.map((d,h)=>s.jsx(v.Carousel.Item,{style:i,children:s.jsx(Th,{data:e,banner:d,children:s.jsx(qo,{ICONS:t,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,data:{banner:d,index:h,componentIndex:e.data.componentIndex},creative:"banner-carousel",...e.data.first&&h===0&&{priority:!0}})})},`hero-banner-item-${h}`))}),c.shouldRender==="bottom"&&n.totalPages>1?s.jsx(Ys,{ICONS:t,...f}):s.jsx(s.Fragment,{})]})},kh={Banner:ou},st={"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"},Lh=({data:e,CONSTANTS:t})=>{var u;const{isMobile:r}=Se(),n=e.config.size??"medium",o=e.config.disableCarouselMobile??!1,{initialize:i,pagination:a,controller:c,itemsStyles:l}=v.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&&o?"column":"row"});return s.jsx(v.Utils.Column,{style:{width:n==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:s.jsxs(v.Carousel.Root,{innerRef:f=>{i(f)},className:v.helpers.classNameConcat(st["carousel-modifier"],"common-section"),children:[n==="medium"?s.jsxs(v.TextStructure.Root,{children:[s.jsx(v.TextStructure.DivWrapper,{className:st["carousel-title-modifier"],children:s.jsx("h2",{className:"typography-style-body-lg",children:t.BENNEFITS_BAR_TITLE})}),r&&a.totalPages>1?s.jsx(v.Carousel.Controller,{className:st["row-controller-modifier"],children:s.jsxs(v.Carousel.Arrows,{children:[s.jsx(v.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:s.jsx(v.Icon,{name:t.ICONS.arrow_left})}}),s.jsx(v.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:s.jsx(v.Icon,{name:t.ICONS.arrow_right})}})]})}):s.jsx(s.Fragment,{})]}):s.jsx(s.Fragment,{}),s.jsx(v.Carousel.Body,{children:e.bennefit.map((f,p)=>s.jsx(v.Carousel.Item,{className:st["card-modifier"],style:l,children:s.jsx(v.Card,{stroke:!0,padding:"small",children:s.jsx(v.TextStructure.Root,{layoutProps:{columnWrapper:{alignContent:"start",alignItems:"start",justifyContent:"start"},textRow:{alignContent:"center",alignItems:"center",justifyContent:"center"}},adornment:{[n==="medium"?"top":"start"]:s.jsx(v.Icon,{name:f.icon,size:n==="medium"?"medium":"small"})},children:s.jsxs(v.TextStructure.DivWrapper,{alignItems:"start",children:[s.jsx("h3",{className:"typography-style-body-md",children:f.title}),f.subtitle&&f.subtitle.length?s.jsx("p",{className:"typography-style-body-xs",children:f.subtitle}):s.jsx(s.Fragment,{})]})})})},`bennefit=${p}`))}),!r&&a.totalPages>1?s.jsxs(v.Carousel.Controller,{className:st["row-controller-modifier"],children:[s.jsxs(v.Carousel.Arrows,{children:[s.jsx(v.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:s.jsx(v.Icon,{name:t.ICONS.arrow_left})}}),s.jsx(v.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:s.jsx(v.Icon,{name:t.ICONS.arrow_right})}})]}),s.jsx(v.Carousel.Bullets,{page:a.currentPage,total:a.totalPages,onBulletClick:f=>c==null?void 0:c.navigateTo(f)})]}):s.jsx(s.Fragment,{})]})})},Dh=({data:e,ICONS:t})=>s.jsx("div",{className:v.helpers.classNameConcat(io.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:s.jsx(nu,{data:e,ICONS:t})}),Zs={"accordion-modifier":"_accordion-modifier_1we16_1","accordion-body-modifier":"_accordion-body-modifier_1we16_7"},$h=({data:e,id:t,ICONS:r})=>{var i;const[n,o]=C.useState([]);return s.jsxs(v.Utils.Column,{gap:"var(--gap-vertical-sm)",children:[e.titleAccordion?s.jsx(v.TextStructure.Root,{children:s.jsx(v.TextStructure.DivWrapper,{children:s.jsx("h2",{className:v.helpers.classNameConcat("typography-style-heading-sm","common-section"),style:{fontWeight:500},children:e.titleAccordion})})}):s.jsx(s.Fragment,{}),(i=e.accordions)==null?void 0:i.map((a,c)=>s.jsxs(v.Accordion.Wrapper,{className:Zs["accordion-modifier"],children:[s.jsx(v.Accordion.Header,{id:`${t}-text-accordion-${c}`,openIndicator:s.jsx(v.Icon,{name:r.arrow_down}),closeIndicator:s.jsx(v.Icon,{name:r.arrow_up}),startOpen:n.includes(c),onClick:()=>o(l=>l.includes(c)?l.filter(u=>u!==c):[...l,c]),children:s.jsx(v.TextStructure.Root,{children:s.jsxs(v.TextStructure.DivWrapper,{className:oo["draftjs-text-modifier"],children:[s.jsx("h3",{className:"typography-style-body-md-strong",children:a.title}),a.subtitle&&a.subtitle.length?s.jsx("h2",{children:a.subtitle}):s.jsx(s.Fragment,{})]})})}),s.jsx(v.Accordion.Body,{children:s.jsx(v.TextStructure.Root,{children:s.jsx(v.TextStructure.DivWrapper,{className:v.helpers.classNameConcat(Zs["accordion-body-modifier"],oo["draftjs-text-modifier"]),children:s.jsx(De.Editor,{editorKey:`${t}-editor-${c}`,blockRenderMap:Wt,editorState:a.text?Gt(JSON.parse(a.text)):De.EditorState.createEmpty(),onChange:()=>null})})})})]},`${t}-accordion-${c}-${n.includes(c)}`))]})},iu=C.createContext({}),Bh=({data:e,children:t,...r})=>{var m,y,g,b,A,_,E,S,P,x,I,B,R;const[n,o]=C.useState(!0),{initialize:i,controller:a,itemsStyles:c}=v.Carousel.useCarousel({gap:0,itemsPerPage:1}),l={slideTranstionTimer:(y=(m=e==null?void 0:e.staticConfig)==null?void 0:m.staticConfig)==null?void 0:y.slideTranstionTimer,showCarouselArrows:(b=(g=e==null?void 0:e.staticConfig)==null?void 0:g.staticConfig)==null?void 0:b.showCarouselArrows,hasCloseBtn:(_=(A=e==null?void 0:e.staticConfig)==null?void 0:A.staticConfig)==null?void 0:_.hasCloseBtn,backgroundColor:(S=(E=e==null?void 0:e.staticConfig)==null?void 0:E.staticConfig)==null?void 0:S.backgroundColor,textColorVariant:(x=(P=e==null?void 0:e.staticConfig)==null?void 0:P.staticConfig)==null?void 0:x.textColorVariant,content:((B=(I=e==null?void 0:e.content)==null?void 0:I.content)==null?void 0:B.items)??[]},u=(R=l.content)==null?void 0:R.filter(O=>!O.countDownEndDate||new Date(O.countDownEndDate)>new Date),f=u.length>1,p={...l.backgroundColor?{backgroundColor:l.backgroundColor}:{}},d=()=>{o(!1)},h=v.helpers.ValidateProp({fieldTypes:et.Mode,property:l.textColorVariant,fallback:"default"});return s.jsx(iu.Provider,{value:{isOpen:n,setIsOpen:o,hasCarousel:f,backgroundStyle:p,handleCloseTipbar:d,mode:h,slideTranstionTimer:l.slideTranstionTimer,showCarouselArrows:l.showCarouselArrows,hasCloseBtn:l.hasCloseBtn,slices:u,carouselProps:{initialize:i,controller:a,itemsStyles:c},...r},children:t})},qe=()=>C.useContext(iu),qh=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=qe();return s.jsx(so,{dateEnd:new Date(e),TIME_ZONE:r,...t})},Hh="_tipbar_bt3p0_1",Fh="_tipbar__carousel_bt3p0_15",xt={tipbar:Hh,tipbar__carousel:Fh,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},zh=({coupon:e,feedbackTitle:t,feedbackDescription:r,...n})=>{const{CONSTANTS:o}=qe(),{addCouponSeller:i,cartStore:a}=Be(),[c,l]=C.useState({status:!1,showSnackBar:!1}),[u,f]=C.useState(!1),[p,d]=C.useState(!1),h=async()=>{if(!a.items.length){d(!0);return}(await i(e,"coupon")).code===200?l({status:!0,showSnackBar:!0}):f(!0)};return C.useEffect(()=>{c.showSnackBar&&setTimeout(()=>{l(m=>({...m,showSnackBar:!1}))},o.TIPBAR_CONFIGS.snackbar_timeout)},[c.showSnackBar]),C.useEffect(()=>{u&&setTimeout(()=>{f(!1)},o.TIPBAR_CONFIGS.snackbar_timeout)},[u]),C.useEffect(()=>{p&&setTimeout(()=>{d(!1)},o.TIPBAR_CONFIGS.snackbar_timeout)},[p]),s.jsxs(s.Fragment,{children:[s.jsx(v.Button,{...n,onClick:h,disabled:c.status,className:xt["tipbar-item__coupon"],children:c.status?`${o.TIPBAR_CONFIGS.coupon_applied_message}`:`${o.TIPBAR_CONFIGS.coupon_default_message}`}),c.showSnackBar&&(t||r)&&s.jsx(ut,{title:t,subtitle:r,Z_INDEX_WAR:o.Z_INDEX_WAR},`feedback-coupon-${e}`),u&&s.jsx(ut,{title:o.TIPBAR_CONFIGS.coupon_error_title,subtitle:o.TIPBAR_CONFIGS.coupon_error_message,Z_INDEX_WAR:o.Z_INDEX_WAR},`error-coupon-${e}`),p&&s.jsx(ut,{title:o.TIPBAR_CONFIGS.coupon_cart_empty_title,subtitle:o.TIPBAR_CONFIGS.coupon_cart_empty_message,Z_INDEX_WAR:o.Z_INDEX_WAR},`error-cart-empty-${e}`)]})},Uh=({title:e,description:t,style:r,mode:n,className:o})=>s.jsx(v.TextStructure.Root,{children:s.jsxs(v.TextStructure.DivWrapper,{mode:n,className:o,children:[e&&s.jsx("h3",{className:"typography-style-body-sm",style:r,children:e}),t&&s.jsx("p",{className:"typography-style-caption",style:r,children:t})]})}),Gh=({coupon:e,...t})=>{const{CONSTANTS:r}=qe();return s.jsx(v.Copy,{...t,iconCopy:r.ICONS.copy,iconSuccess:r.ICONS.check,children:e})},Wh=({staticZone:e,type:t,className:r,description:n,title:o})=>{const{mode:i}=qe();if(t==="countdown")return s.jsx(qh,{dateEnd:e.countDownEndDate,size:"x-small",mode:i});if(t==="coupon"){const a=v.helpers.ValidateProp({fieldTypes:et.Mode,property:e.couponButtonMode,fallback:"default"}),c=v.helpers.ValidateProp({fieldTypes:et.VariantsExtended,property:e.couponButtonVariant,fallback:"primary"});return e.coupon?s.jsx(zh,{coupon:e.coupon,mode:a,variant:c,feedbackTitle:e.couponFeedbackTitle,feedbackDescription:e.couponFeedbackDescription}):null}if(t==="copy"){const a=v.helpers.ValidateProp({fieldTypes:et.Mode,property:e.couponButtonMode,fallback:"default"});return e.coupon?s.jsx(Gh,{coupon:e.coupon,mode:a}):null}return s.jsx(Uh,{title:o,description:n,mode:i,className:r})},Js=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=qe();return s.jsx(v.Button,{title:"fechar tipbar",className:xt["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:s.jsx(v.Icon,{name:r.ICONS.close})}})},Vh=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:n})=>{const{carouselProps:o,CONSTANTS:i}=qe(),a=C.useRef(null),c=(u,f)=>{var p,d;u.stopPropagation(),u.preventDefault(),f==="prev"?(p=o.controller)==null||p.prevPage():(d=o.controller)==null||d.nextPage(),a.current&&(clearInterval(a.current),l())},l=C.useCallback(()=>{if(n&&o.controller){const u=setInterval(()=>{var f;(f=o.controller)==null||f.nextPage()},n);a.current=u}},[n,o]);return C.useEffect(()=>(l(),()=>{a.current&&clearInterval(a.current)}),[n,l]),s.jsxs(v.Carousel.Root,{innerRef:u=>{o.initialize(u)},className:xt.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[r&&s.jsx(v.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"prev"),adornment:{start:s.jsx(v.Icon,{name:i.ICONS.arrow_left})}}),s.jsx(v.Carousel.Body,{children:e}),r&&s.jsx(v.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"next"),adornment:{start:s.jsx(v.Icon,{name:i.ICONS.arrow_right})}})]})},Kh=({children:e,className:t})=>{const{hasCarousel:r,mode:n,hasCloseBtn:o,backgroundStyle:i,showCarouselArrows:a,slideTranstionTimer:c,handleCloseTipbar:l}=qe(),u=r&&a;return s.jsx("div",{style:i,"data-hasclosebtn":o,className:v.helpers.classNameConcat(xt.tipbar,t),children:r?s.jsxs(s.Fragment,{children:[s.jsx(Vh,{mode:n,showCarouselArrows:u,slideTranstionTimer:c,children:e}),o&&s.jsx(Js,{handleCloseTipbar:l,showCarouselArrows:u,mode:n})]}):s.jsxs(s.Fragment,{children:[e,o&&s.jsx(Js,{handleCloseTipbar:l,mode:n})]})})},Xh=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:n,carouselProps:o}=qe(),i=s.jsx("div",{...r,className:xt["tipbar-item"],children:e});return n?s.jsx(v.Carousel.Item,{style:o.itemsStyles,children:i}):i},su=({className:e})=>{const{isOpen:t,slices:r}=qe();return r.length&&t?s.jsx(Kh,{children:r.map((n,o)=>{var i;return s.jsx(s.Fragment,{children:s.jsx(gt,{href:n.link,children:s.jsx(Xh,{highlightFirstSection:n.highlightFirstSection,"data-justifyhighlightedsection":n.horizontalAlignHighlightedSection?n.horizontalAlignHighlightedSection:"center",children:n&&((i=n==null?void 0:n.items)!=null&&i.length)?n.items.map((a,c)=>s.jsx(Wh,{staticZone:n,type:a.type,title:a.title,description:a.description,className:e},`tipbar-slice-field-${c}`)):null})})},`tipbar-slice-${o}`)})}):null};su.displayName="TipBar.Root";const co=({className:e,...t})=>s.jsx(Bh,{...t,children:s.jsx(su,{className:e})});co.displayName="TipBar";const Qh=({CONSTANTS:e,data:t})=>{const{tipbarRef:r}=be(),n=t==null?void 0:t.find(i=>{var a,c;return((c=(a=i.staticConfig)==null?void 0:a.staticConfig)==null?void 0:c.deviceType)==="desktop"}),o=t==null?void 0:t.find(i=>{var a,c;return((c=(a=i.staticConfig)==null?void 0:a.staticConfig)==null?void 0:c.deviceType)==="mobile"});return s.jsxs("div",{ref:r,className:Te.responsive["responsive-flex"],children:[o?s.jsx("div",{className:Te.responsive["responsive-mobile-flex"],children:s.jsx(co,{data:o,CONSTANTS:e})}):null,n?s.jsx("div",{className:Te.responsive["responsive-desktop-flex"],children:s.jsx(co,{data:n,CONSTANTS:e})}):null]})},ea={"card-image-wrapper":"_card-image-wrapper_10mul_1","card-image-container":"_card-image-container_10mul_9"},Yh=e=>{const{nextimage:t}=Pe();return s.jsx(s.Fragment,{children:e.data.banners.map((r,n)=>s.jsx("div",{className:ea["card-image-wrapper"],children:s.jsx("div",{className:ea["card-image-container"],children:s.jsx(t,{src:r.image,alt:r.altImage?r.altImage:"Banner Coleção",width:500,height:600})})},n))})},Zh={Banner:kh,BannerSection:qo,BennefitsBarSection:Lh,SingleBannerSection:ou,TextContentSection:Dh,BannerCarousel:Mh,TextAccordionSection:$h,TipbarScreening:Qh,ImageGrid:Yh},Jh={Components:Zh,helpers:wh};exports.cms=Jh;exports.contexts=$d;exports.data=wo;exports.layout=bh;exports.scripts=Sh;
81
+ `},ig=Object.freeze(Object.defineProperty({__proto__:null,generateMiddleware:og},Symbol.toStringTag,{value:"Module"})),sg={helpers:ig},ag=(e,t,r)=>{e.findEntityRanges(n=>{const i=n.getEntity();return i===null?!1:r.getEntity(i).getType()==="LINK"},t)},Qt=e=>{const t=new $e.CompositeDecorator([{strategy:ag,component:_u}]),r=$e.convertFromRaw(e);return $e.EditorState.createWithContent(r,t)},cg=e=>$e.convertFromRaw(e),Yt=$e.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),ta="superior-direita",Wt="dentro-inferior-centro",lg="inferior-direita",Xn="dentro-inferior-esquerda",Ou=e=>({position:e===Wt||e===Xn?"absolute":"default",shouldRender:[ta,Wt,Xn].includes(e)?"top":"bottom",alignItems:[Wt].includes(e)?"center":[ta,lg].includes(e)?"flex-end":"flex-start",left:e===Xn?"16px":e===Wt?"45%":"unset"}),ug=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:Qt,EXTENDED_BLOCK_RENDER_MAP:Yt,GET_CONTENT_STATE:cg,controllersPositionsAdapter:Ou},Symbol.toStringTag,{value:"Module"})),rt=e=>({centro:"center",esquerda:"start",direita:"end"})[e],dg=({expanded:e,content:t})=>o.jsxs("details",{open:e,children:[t.textStructureReduced?o.jsx("summary",{onClick:r=>r.preventDefault(),children:o.jsx($e.Editor,{editorKey:"draft-editor-1",blockRenderMap:Yt,editorState:t!=null&&t.textStructureReduced?Qt(JSON.parse(t.textStructureReduced)):$e.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):o.jsx(o.Fragment,{}),t.showTextStructureExpander&&t.textStructure?o.jsx(o.Fragment,{children:o.jsx($e.Editor,{editorKey:"draft-editor-1",blockRenderMap:Yt,editorState:t.textStructure?Qt(JSON.parse(t.textStructure)):$e.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):o.jsx(o.Fragment,{})]}),uo={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},fg="_textContentWrapper_1bigo_5",pg="_textContentSection_1bigo_13",fo={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:fg,textContentSection:pg},Tu=({data:e,ICONS:t})=>{var i;const[r,n]=C.useState(!1);return o.jsx(_.TextStructure.Root,{layoutProps:{textRow:{alignContent:rt(e.textStructureAlignment),alignItems:rt(e.textStructureAlignment)},columnWrapper:{alignContent:rt(e.textStructureAlignment),alignItems:rt(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?o.jsx(_.Button,{variant:"tertiary",adornment:{end:o.jsx(_.Icon,{name:r?`${t.arrow_up}`:`${t.arrow_down}`})},onClick:()=>n(s=>!s),size:"small",children:r?"Ver Menos":"Ver Mais"}):o.jsx(o.Fragment,{})},children:o.jsxs(_.Utils.Column,{className:fo.textContentWrapper,style:{alignItems:rt(e.textStructureAlignment)},children:[o.jsx(_.TextStructure.DivWrapper,{style:{textAlign:rt(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:uo["draftjs-text-modifier"],children:e.textStructureReduced?o.jsx(dg,{content:e,expanded:r}):o.jsx(o.Fragment,{})}),e.textStructureButtonLabel?o.jsx(Ge,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:fo["link-modifier"],adornments:(i=e.textStructureButtonIcon)!=null&&i.length&&e.enableIcon?{end:o.jsx(_.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):o.jsx(o.Fragment,{})]})})},mg=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],ra=e=>({centro:"center",esquerda:"start",direita:"end"})[e],po=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...n})=>{const[i,s]=C.useState(Ic(new Yo.TZDate(Date.now(),r),new Yo.TZDate(e,r))),[a,c]=C.useState(!1);C.useEffect(()=>{a||c(!0);const u=setInterval(()=>{if(i<=0){clearInterval(u);return}s(i-1e3)},1e3);return()=>{clearInterval(u)}},[i,s,a]);const l=mt(i,"days");return a&&i>0?o.jsxs(_.Timer.Root,{...n,children:[l?o.jsxs(o.Fragment,{children:[o.jsx(_.Timer.Digit,{label:"dias",value:l}),o.jsx(_.Timer.Separator,{})]}):null,o.jsx(_.Timer.Digit,{label:"horas",value:mt(i,"hours")}),o.jsx(_.Timer.Separator,{}),o.jsx(_.Timer.Digit,{label:"min",value:mt(i,"minutes")}),o.jsx(_.Timer.Separator,{}),o.jsx(_.Timer.Digit,{label:"segs",value:mt(i),suppressHydrationWarning:!0})]}):o.jsx(o.Fragment,{})},na={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},oa=({data:e,videoUrl:t,priority:r,videoRef:n,ICONS:i,...s})=>{const{video:a,image:c,imageHref:l,imageOpacity:u,altImage:f,backgroundColor:p,position:d,contentAlignment:m,showTimer:h,contentOrder:y,timerMode:g,timerEnd:b,timerInit:j,textStructure:v,textStructureReduced:A}=e.banner,S=(l==null?void 0:l.trim())||(c==null?void 0:c.trim())||null,{nextimage:P}=Ee();return o.jsxs(_.Banner.Container,{...s,children:[o.jsxs(_.Banner.ImageWrapper,{className:na["banner-image-wrapper-modifier"],style:u?{background:p}:void 0,children:[a&&o.jsx(Be.Video,{videoRef:n,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),S&&!(a!=null&&a.length)&&o.jsx(P,{src:S,width:"1920",height:"1080",alt:f??c??"",...r?{priority:r}:{},style:u?{opacity:"0"}:void 0}),!c&&!(a!=null&&a.length)&&o.jsx("div",{style:{background:p}})]}),h||A||v?o.jsx(_.Banner.Slot,{...mg(d??"centro"),className:na["content-modifier"],style:{textAlign:ra(m)},children:o.jsxs(_.Utils.Column,{gap:"16px",alignItems:ra(m),children:[h&&y==="timer-first"&&o.jsx(po,{mode:g??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:j?new Date(j):new Date}),o.jsx(Tu,{data:e.banner,ICONS:i}),h&&y!=="timer-first"&&o.jsx(po,{mode:g??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:j?new Date(j):new Date})]})}):o.jsx(o.Fragment,{})]})},Xo=({data:e,className:t,priority:r,creative:n,...i})=>{const{handleSelectPromotionEvent:s,currentLocalRef:a}=ge(),{banner:{promotion_name:c},index:l,componentIndex:u}=e,f=typeof l=="number"?`:${l+1}`:"",p={creative_name:n,creative_slot:`${n}-${a.current}:${u+1}${f}`,promotion_id:e.banner.href,promotion_name:c},d=C.useRef(null),m=C.useMemo(()=>{var y;if((y=e.banner.video)!=null&&y.includes("player.vimeo")){const g=e.banner.video.split("?")[1],b=g==null?void 0:g.split("&"),j=b==null?void 0:b.filter(A=>A.includes("loc")||A.includes("signature")||A.includes("user_id")),v=j==null?void 0:j.join("&");return`${e.banner.video.split("?")[0]}?${v}`}return e.banner.video},[e]),h=()=>{var y;(y=d.current)!=null&&y.paused&&d.current.play()};return o.jsx(nr,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...p,index:l}}}},observerOptions:{delay:100,...m&&{threshold:.1}},...m&&{callBackWhenVisible:h},children:e.banner.href?o.jsx(Oe,{href:e.banner.href,onClick:()=>{s({updatePromotionRef:!0,promotion:p,index:l})},children:o.jsx(oa,{data:e,videoUrl:m,priority:r,videoRef:d,...i})}):o.jsx(oa,{data:e,videoUrl:m,priority:r,videoRef:d,...i})})},Mu=e=>o.jsx(Xo,{...e}),mo={"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 hg(e,t){const{mediatorRef:r}=Se();C.useEffect(()=>r.current.subscribe(e,t),[e,t])}const ia=({prevOnClick:e,nextOnClick:t,onBulletClick:r,currentPage:n,totalPages:i,position:s,hideControllers:a,left:c,isFirst:l,ICONS:u})=>{const[f,p]=C.useState("default");return hg("herobanner:change_controllers_variant",d=>{l&&p(d.includes("white")?"inverse":"default")}),o.jsxs(_.Carousel.Controller,{className:mo["carousel-controllers-modifier"],position:s??"absolute","data-hide-controllers":a,bottom:"16px",top:"unset",left:c,children:[o.jsxs(_.Carousel.Arrows,{className:mo["carrousel-arrows-display-controller"],children:[o.jsx(_.Button,{variant:"tertiary",onClick:e,adornment:{start:o.jsx(_.Icon,{name:u.arrow_left})},mode:f}),o.jsx(_.Button,{variant:"tertiary",onClick:t,adornment:{start:o.jsx(_.Icon,{name:u.arrow_right})},mode:f})]}),o.jsx(_.Carousel.Bullets,{page:n,total:i,onBulletClick:r,mode:f})]})},gg=({children:e,data:t,banner:r,...n})=>{const{mediatorRef:i}=Se();return t.data.first?o.jsx(nr,{observerOptions:{threshold:.51},stopOnIntersection:!1,callBackWhenVisible:()=>{i.current.publish("header:change_variant",r.headerVariant)},...n,children:e}):o.jsx(o.Fragment,{children:e})},yg=({data:e,ICONS:t})=>{var p;const{initialize:r,pagination:n,controller:i,itemsStyles:s}=_.Carousel.useCarousel({gap:e.data.config.gap,itemsPerPage:e.data.config.slidesPerView,direction:"row"}),a=C.useRef(void 0),c=C.useMemo(()=>Ou(e.data.config.controllerPosition??"dentro-inferior-centro"),[e]),l=C.useCallback(()=>{e.data.config.slideDuration&&n.totalPages>1&&(a.current=setInterval(()=>{i==null||i.nextPage()},e.data.config.slideDuration*1e3))},[i,e.data.config.slideDuration,n.totalPages]),u=C.useCallback(d=>{clearInterval(a.current),l(),d()},[l]),f=C.useMemo(()=>{var d;return{nextOnClick:()=>u(()=>i==null?void 0:i.nextPage()),prevOnClick:()=>u(()=>i==null?void 0:i.prevPage()),onBulletClick:m=>u(()=>i==null?void 0:i.navigateTo(m)),currentPage:n.currentPage,totalPages:n.totalPages,position:c.position,hideControllers:((d=e.data.config)==null?void 0:d.hideControllers)??!1,left:c.left}},[n.currentPage,n.totalPages,c.position,e.data.config.hideControllers,u,i]);return C.useEffect(()=>(l(),()=>clearInterval(a.current)),[l]),o.jsxs(_.Carousel.Root,{innerRef:d=>{r(d)},className:_.helpers.classNameConcat(mo["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"&&n.totalPages>1?o.jsx(ia,{ICONS:t,...f,isFirst:e.data.first}):o.jsx(o.Fragment,{}),o.jsx(_.Carousel.Body,{children:(p=e==null?void 0:e.data)==null?void 0:p.banners.map((d,m)=>o.jsx(_.Carousel.Item,{style:s,children:o.jsx(gg,{data:e,banner:d,children:o.jsx(Xo,{ICONS:t,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,data:{banner:d,index:m,componentIndex:e.data.componentIndex},creative:"banner-carousel",...e.data.first&&m===0&&{priority:!0}})})},`hero-banner-item-${m}`))}),c.shouldRender==="bottom"&&n.totalPages>1?o.jsx(ia,{ICONS:t,...f}):o.jsx(o.Fragment,{})]})},_g={Banner:Mu},ft={"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"},vg=({data:e,CONSTANTS:t})=>{var u;const{isMobile:r}=Se(),n=e.config.size??"medium",i=e.config.disableCarouselMobile??!1,{initialize:s,pagination:a,controller:c,itemsStyles:l}=_.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&&i?"column":"row"});return o.jsx(_.Utils.Column,{style:{width:n==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:o.jsxs(_.Carousel.Root,{innerRef:f=>{s(f)},className:_.helpers.classNameConcat(ft["carousel-modifier"],"common-section"),children:[n==="medium"?o.jsxs(_.TextStructure.Root,{children:[o.jsx(_.TextStructure.DivWrapper,{className:ft["carousel-title-modifier"],children:o.jsx("h2",{className:"typography-style-body-lg",children:t.BENNEFITS_BAR_TITLE})}),r&&a.totalPages>1?o.jsx(_.Carousel.Controller,{className:ft["row-controller-modifier"],children:o.jsxs(_.Carousel.Arrows,{children:[o.jsx(_.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:o.jsx(_.Icon,{name:t.ICONS.arrow_left})}}),o.jsx(_.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:o.jsx(_.Icon,{name:t.ICONS.arrow_right})}})]})}):o.jsx(o.Fragment,{})]}):o.jsx(o.Fragment,{}),o.jsx(_.Carousel.Body,{children:e.bennefit.map((f,p)=>o.jsx(_.Carousel.Item,{className:ft["card-modifier"],style:l,children:o.jsx(_.Card,{stroke:!0,padding:"small",children:o.jsx(_.TextStructure.Root,{layoutProps:{columnWrapper:{alignContent:"start",alignItems:"start",justifyContent:"start"},textRow:{alignContent:"center",alignItems:"center",justifyContent:"center"}},adornment:{[n==="medium"?"top":"start"]:o.jsx(_.Icon,{name:f.icon,size:n==="medium"?"medium":"small"})},children:o.jsxs(_.TextStructure.DivWrapper,{alignItems:"start",children:[o.jsx("h3",{className:"typography-style-body-md",children:f.title}),f.subtitle&&f.subtitle.length?o.jsx("p",{className:"typography-style-body-xs",children:f.subtitle}):o.jsx(o.Fragment,{})]})})})},`bennefit=${p}`))}),!r&&a.totalPages>1?o.jsxs(_.Carousel.Controller,{className:ft["row-controller-modifier"],children:[o.jsxs(_.Carousel.Arrows,{children:[o.jsx(_.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:o.jsx(_.Icon,{name:t.ICONS.arrow_left})}}),o.jsx(_.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:o.jsx(_.Icon,{name:t.ICONS.arrow_right})}})]}),o.jsx(_.Carousel.Bullets,{page:a.currentPage,total:a.totalPages,onBulletClick:f=>c==null?void 0:c.navigateTo(f)})]}):o.jsx(o.Fragment,{})]})})},bg=({data:e,ICONS:t})=>o.jsx("div",{className:_.helpers.classNameConcat(fo.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:o.jsx(Tu,{data:e,ICONS:t})}),sa={"accordion-modifier":"_accordion-modifier_1we16_1","accordion-body-modifier":"_accordion-body-modifier_1we16_7"},xg=({data:e,id:t,ICONS:r})=>{var s;const[n,i]=C.useState([]);return o.jsxs(_.Utils.Column,{gap:"var(--gap-vertical-sm)",children:[e.titleAccordion?o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{children:o.jsx("h2",{className:_.helpers.classNameConcat("typography-style-heading-sm","common-section"),style:{fontWeight:500},children:e.titleAccordion})})}):o.jsx(o.Fragment,{}),(s=e.accordions)==null?void 0:s.map((a,c)=>o.jsxs(_.Accordion.Wrapper,{className:sa["accordion-modifier"],children:[o.jsx(_.Accordion.Header,{id:`${t}-text-accordion-${c}`,openIndicator:o.jsx(_.Icon,{name:r.arrow_down}),closeIndicator:o.jsx(_.Icon,{name:r.arrow_up}),startOpen:n.includes(c),onClick:()=>i(l=>l.includes(c)?l.filter(u=>u!==c):[...l,c]),children:o.jsx(_.TextStructure.Root,{children:o.jsxs(_.TextStructure.DivWrapper,{className:uo["draftjs-text-modifier"],children:[o.jsx("h3",{className:"typography-style-body-md-strong",children:a.title}),a.subtitle&&a.subtitle.length?o.jsx("h2",{children:a.subtitle}):o.jsx(o.Fragment,{})]})})}),o.jsx(_.Accordion.Body,{children:o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{className:_.helpers.classNameConcat(sa["accordion-body-modifier"],uo["draftjs-text-modifier"]),children:o.jsx($e.Editor,{editorKey:`${t}-editor-${c}`,blockRenderMap:Yt,editorState:a.text?Qt(JSON.parse(a.text)):$e.EditorState.createEmpty(),onChange:()=>null})})})})]},`${t}-accordion-${c}-${n.includes(c)}`))]})},ku=C.createContext({}),Cg=({data:e,children:t,...r})=>{var h,y,g,b,j,v,A,S,P,x,I,B,E;const[n,i]=C.useState(!0),{initialize:s,controller:a,itemsStyles:c}=_.Carousel.useCarousel({gap:0,itemsPerPage:1}),l={slideTranstionTimer:(y=(h=e==null?void 0:e.staticConfig)==null?void 0:h.staticConfig)==null?void 0:y.slideTranstionTimer,showCarouselArrows:(b=(g=e==null?void 0:e.staticConfig)==null?void 0:g.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:(S=(A=e==null?void 0:e.staticConfig)==null?void 0:A.staticConfig)==null?void 0:S.backgroundColor,textColorVariant:(x=(P=e==null?void 0:e.staticConfig)==null?void 0:P.staticConfig)==null?void 0:x.textColorVariant,content:((B=(I=e==null?void 0:e.content)==null?void 0:I.content)==null?void 0:B.items)??[]},u=(E=l.content)==null?void 0:E.filter(O=>!O.countDownEndDate||new Date(O.countDownEndDate)>new Date),f=u.length>1,p={...l.backgroundColor?{backgroundColor:l.backgroundColor}:{}},d=()=>{i(!1)},m=_.helpers.ValidateProp({fieldTypes:ot.Mode,property:l.textColorVariant,fallback:"default"});return o.jsx(ku.Provider,{value:{isOpen:n,setIsOpen:i,hasCarousel:f,backgroundStyle:p,handleCloseTipbar:d,mode:m,slideTranstionTimer:l.slideTranstionTimer,showCarouselArrows:l.showCarouselArrows,hasCloseBtn:l.hasCloseBtn,slices:u,carouselProps:{initialize:s,controller:a,itemsStyles:c},...r},children:t})},ze=()=>C.useContext(ku),Sg=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=ze();return o.jsx(po,{dateEnd:new Date(e),TIME_ZONE:r,...t})},jg="_tipbar_bt3p0_1",Ag="_tipbar__carousel_bt3p0_15",Rt={tipbar:jg,tipbar__carousel:Ag,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},Eg=({coupon:e,feedbackTitle:t,feedbackDescription:r,...n})=>{const{CONSTANTS:i}=ze(),{addCouponSeller:s,cartStore:a}=qe(),[c,l]=C.useState({status:!1,showSnackBar:!1}),[u,f]=C.useState(!1),[p,d]=C.useState(!1),m=async()=>{if(!a.items.length){d(!0);return}(await s(e,"coupon")).code===200?l({status:!0,showSnackBar:!0}):f(!0)};return C.useEffect(()=>{c.showSnackBar&&setTimeout(()=>{l(h=>({...h,showSnackBar:!1}))},i.TIPBAR_CONFIGS.snackbar_timeout)},[c.showSnackBar]),C.useEffect(()=>{u&&setTimeout(()=>{f(!1)},i.TIPBAR_CONFIGS.snackbar_timeout)},[u]),C.useEffect(()=>{p&&setTimeout(()=>{d(!1)},i.TIPBAR_CONFIGS.snackbar_timeout)},[p]),o.jsxs(o.Fragment,{children:[o.jsx(_.Button,{...n,onClick:m,disabled:c.status,className:Rt["tipbar-item__coupon"],children:c.status?`${i.TIPBAR_CONFIGS.coupon_applied_message}`:`${i.TIPBAR_CONFIGS.coupon_default_message}`}),c.showSnackBar&&(t||r)&&o.jsx(gt,{title:t,subtitle:r,Z_INDEX_WAR:i.Z_INDEX_WAR},`feedback-coupon-${e}`),u&&o.jsx(gt,{title:i.TIPBAR_CONFIGS.coupon_error_title,subtitle:i.TIPBAR_CONFIGS.coupon_error_message,Z_INDEX_WAR:i.Z_INDEX_WAR},`error-coupon-${e}`),p&&o.jsx(gt,{title:i.TIPBAR_CONFIGS.coupon_cart_empty_title,subtitle:i.TIPBAR_CONFIGS.coupon_cart_empty_message,Z_INDEX_WAR:i.Z_INDEX_WAR},`error-cart-empty-${e}`)]})},Rg=({title:e,description:t,style:r,mode:n,className:i})=>o.jsx(_.TextStructure.Root,{children:o.jsxs(_.TextStructure.DivWrapper,{mode:n,className:i,children:[e&&o.jsx("h3",{className:"typography-style-body-sm",style:r,children:e}),t&&o.jsx("p",{className:"typography-style-caption",style:r,children:t})]})}),wg=({coupon:e,...t})=>{const{CONSTANTS:r}=ze();return o.jsx(_.Copy,{...t,iconCopy:r.ICONS.copy,iconSuccess:r.ICONS.check,children:e})},Pg=({staticZone:e,type:t,className:r,description:n,title:i})=>{const{mode:s}=ze();if(t==="countdown")return o.jsx(Sg,{dateEnd:e.countDownEndDate,size:"x-small",mode:s});if(t==="coupon"){const a=_.helpers.ValidateProp({fieldTypes:ot.Mode,property:e.couponButtonMode,fallback:"default"}),c=_.helpers.ValidateProp({fieldTypes:ot.VariantsExtended,property:e.couponButtonVariant,fallback:"primary"});return e.coupon?o.jsx(Eg,{coupon:e.coupon,mode:a,variant:c,feedbackTitle:e.couponFeedbackTitle,feedbackDescription:e.couponFeedbackDescription}):null}if(t==="copy"){const a=_.helpers.ValidateProp({fieldTypes:ot.Mode,property:e.couponButtonMode,fallback:"default"});return e.coupon?o.jsx(wg,{coupon:e.coupon,mode:a}):null}return o.jsx(Rg,{title:i,description:n,mode:s,className:r})},aa=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=ze();return o.jsx(_.Button,{title:"fechar tipbar",className:Rt["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:o.jsx(_.Icon,{name:r.ICONS.close})}})},Ig=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:n})=>{const{carouselProps:i,CONSTANTS:s}=ze(),a=C.useRef(null),c=(u,f)=>{var p,d;u.stopPropagation(),u.preventDefault(),f==="prev"?(p=i.controller)==null||p.prevPage():(d=i.controller)==null||d.nextPage(),a.current&&(clearInterval(a.current),l())},l=C.useCallback(()=>{if(n&&i.controller){const u=setInterval(()=>{var f;(f=i.controller)==null||f.nextPage()},n);a.current=u}},[n,i]);return C.useEffect(()=>(l(),()=>{a.current&&clearInterval(a.current)}),[n,l]),o.jsxs(_.Carousel.Root,{innerRef:u=>{i.initialize(u)},className:Rt.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[r&&o.jsx(_.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"prev"),adornment:{start:o.jsx(_.Icon,{name:s.ICONS.arrow_left})}}),o.jsx(_.Carousel.Body,{children:e}),r&&o.jsx(_.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"next"),adornment:{start:o.jsx(_.Icon,{name:s.ICONS.arrow_right})}})]})},Ng=({children:e,className:t})=>{const{hasCarousel:r,mode:n,hasCloseBtn:i,backgroundStyle:s,showCarouselArrows:a,slideTranstionTimer:c,handleCloseTipbar:l}=ze(),u=r&&a;return o.jsx("div",{style:s,"data-hasclosebtn":i,className:_.helpers.classNameConcat(Rt.tipbar,t),children:r?o.jsxs(o.Fragment,{children:[o.jsx(Ig,{mode:n,showCarouselArrows:u,slideTranstionTimer:c,children:e}),i&&o.jsx(aa,{handleCloseTipbar:l,showCarouselArrows:u,mode:n})]}):o.jsxs(o.Fragment,{children:[e,i&&o.jsx(aa,{handleCloseTipbar:l,mode:n})]})})},Og=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:n,carouselProps:i}=ze(),s=o.jsx("div",{...r,className:Rt["tipbar-item"],children:e});return n?o.jsx(_.Carousel.Item,{style:i.itemsStyles,children:s}):s},Lu=({className:e})=>{const{isOpen:t,slices:r}=ze();return r.length&&t?o.jsx(Ng,{children:r.map((n,i)=>{var s;return o.jsx(o.Fragment,{children:o.jsx(Ct,{href:n.link,children:o.jsx(Og,{highlightFirstSection:n.highlightFirstSection,"data-justifyhighlightedsection":n.horizontalAlignHighlightedSection?n.horizontalAlignHighlightedSection:"center",children:n&&((s=n==null?void 0:n.items)!=null&&s.length)?n.items.map((a,c)=>o.jsx(Pg,{staticZone:n,type:a.type,title:a.title,description:a.description,className:e},`tipbar-slice-field-${c}`)):null})})},`tipbar-slice-${i}`)})}):null};Lu.displayName="TipBar.Root";const ho=({className:e,...t})=>o.jsx(Cg,{...t,children:o.jsx(Lu,{className:e})});ho.displayName="TipBar";const Tg=({CONSTANTS:e,data:t})=>{const{tipbarRef:r}=be(),n=t==null?void 0:t.find(s=>{var a,c;return((c=(a=s.staticConfig)==null?void 0:a.staticConfig)==null?void 0:c.deviceType)==="desktop"}),i=t==null?void 0:t.find(s=>{var a,c;return((c=(a=s.staticConfig)==null?void 0:a.staticConfig)==null?void 0:c.deviceType)==="mobile"});return o.jsxs("div",{ref:r,className:Me.responsive["responsive-flex"],children:[i?o.jsx("div",{className:Me.responsive["responsive-mobile-flex"],children:o.jsx(ho,{data:i,CONSTANTS:e})}):null,n?o.jsx("div",{className:Me.responsive["responsive-desktop-flex"],children:o.jsx(ho,{data:n,CONSTANTS:e})}):null]})},ca={"card-image-wrapper":"_card-image-wrapper_10mul_1","card-image-container":"_card-image-container_10mul_9"},Mg=e=>{const{nextimage:t}=Ee();return o.jsx(o.Fragment,{children:e.data.banners.map((r,n)=>o.jsx("div",{className:ca["card-image-wrapper"],children:o.jsx("div",{className:ca["card-image-container"],children:o.jsx(t,{src:r.image,alt:r.altImage?r.altImage:"Banner Coleção",width:500,height:600})})},n))})},kg={Banner:_g,BannerSection:Xo,BennefitsBarSection:vg,SingleBannerSection:Mu,TextContentSection:bg,BannerCarousel:yg,TextAccordionSection:xg,TipbarScreening:Tg,ImageGrid:Mg},Lg={Components:kg,helpers:ug};exports.cms=Lg;exports.contexts=hf;exports.data=To;exports.layout=ng;exports.scripts=sg;