@soma-vertical-web/multi-lib 0.0.24 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cms/Sections/Banner/Composite/Content.d.ts +1 -1
- package/cms/Sections/TextContent/Component.d.ts +1 -1
- package/cms/Sections/TextContent/Composite/ContentWrapper.d.ts +1 -1
- package/cms/index.d.ts +2 -2
- package/contexts/contexts/GlobalContext.d.ts +1 -1
- package/contexts/hooks/useOperations.d.ts +1 -0
- package/contexts/index.d.ts +1 -1
- package/data/helpers/cart/index.d.ts +10 -0
- package/data/helpers/product/generalInfo.d.ts +1 -0
- package/index.js +41 -4
- package/index.mjs +8022 -4169
- package/layout/index.d.ts +11 -10
- package/layout/team-component/Footer/Composite/Devices/Column.Mobile.d.ts +1 -1
- package/layout/team-component/Footer/Composite/Support/index.d.ts +3 -0
- package/layout/team-component/Footer/Composite/Support/item.d.ts +3 -0
- package/layout/team-component/Footer/Footer.d.ts +1 -1
- package/layout/team-component/Footer/index.d.ts +4 -1
- package/layout/team-component/TipBar/Composite/Fields/FieldsScreening.d.ts +1 -1
- package/layout/team-component/TipBar/Composite/Fields/TextContent.d.ts +1 -1
- package/layout/team-component/TipBar/Composite/Root.d.ts +3 -1
- package/layout/team-component/TipBar/index.d.ts +1 -1
- package/layout/utils/DraftJsLinkWrapper/index.d.ts +5 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/cms/ContentTypes/Footer/index.d.ts +30 -0
- package/types/cms/Sections/Banner/index.d.ts +3 -0
- package/types/cms/Sections/TextContent/index.d.ts +7 -2
- package/types/constants.d.ts +3 -1
- package/types/contexts/contexts/cart/index.d.ts +1 -2
- package/types/contexts/contexts/global.d.ts +1 -0
- package/types/contexts/store/cart.d.ts +4 -2
- package/types/data/api/search/product/index.d.ts +1 -1
- package/types/layout/team-components/Footer/index.d.ts +3 -0
- package/types/layout/team-components/Header/index.d.ts +2 -1
- package/types/layout/team-components/TipBar/index.d.ts +6 -1
- package/types/layout/utils/index.d.ts +6 -0
- package/cms/Sections/Banner/Composite/Slot.d.ts +0 -0
- package/cms/Sections/index.d.ts +0 -10
- package/cms/api/index.d.ts +0 -11
- package/cms/ui/ContentTypes/CommonPage/CommonPage.d.ts +0 -3
- package/cms/ui/ContentTypes/CommonPage/DataScreening.d.ts +0 -6
- package/cms/ui/ContentTypes/CommonPage/index.d.ts +0 -2
- package/cms/ui/ContentTypes/FlagsAndTags/index.d.ts +0 -1
- package/cms/ui/ContentTypes/index.d.ts +0 -6
- package/cms/ui/Factories/common.d.ts +0 -7
- package/cms/ui/Factories/contentType.d.ts +0 -9
- package/cms/ui/Factories/index.d.ts +0 -2
- package/cms/ui/Factories/section.d.ts +0 -7
- package/cms/ui/Sections/Banner/Component.d.ts +0 -7
- package/cms/ui/Sections/Banner/Composite/Content.d.ts +0 -4
- package/cms/ui/Sections/Banner/Composite/Slot.d.ts +0 -0
- package/cms/ui/Sections/Banner/adapter.d.ts +0 -32
- package/cms/ui/Sections/Banner/index.d.ts +0 -8
- package/cms/ui/Sections/TextContent/Component.d.ts +0 -4
- package/cms/ui/Sections/TextContent/Composite/Content.d.ts +0 -3
- package/cms/ui/Sections/TextContent/Composite/ContentWrapper.d.ts +0 -3
- package/cms/ui/Sections/TextContent/adapter.d.ts +0 -3
- package/cms/ui/Sections/TextContent/index.d.ts +0 -8
- package/cms/ui/Sections/_common/Accordion.d.ts +0 -2
- package/cms/ui/Sections/_common/BannerItem.d.ts +0 -5
- package/cms/ui/Sections/_common/TextStructure.d.ts +0 -17
- package/cms/ui/Sections/_common/interfaces.d.ts +0 -8
- package/cms/ui/Sections/index.d.ts +0 -4
- package/data/helpers/product/imageResize.d.ts +0 -8
- package/index-B8dtKJc0.mjs +0 -68
- package/index-BArDD1Jh.mjs +0 -68
- package/index-BCZReEF1.js +0 -4
- package/index-BI5_UgNN.mjs +0 -3210
- package/index-BK5yScKK.js +0 -1
- package/index-BaPdEOcD.js +0 -4
- package/index-BcniWgv2.mjs +0 -68
- package/index-C3_oOo51.js +0 -1
- package/index-C7gBx1Sj.js +0 -4
- package/index-CAM8BZOC.mjs +0 -3509
- package/index-CG59Ho-O.mjs +0 -3514
- package/index-CHaVlwnS.js +0 -1
- package/index-CWsS9JhJ.mjs +0 -69
- package/index-CqPFy76Q.mjs +0 -3531
- package/index-DVeRXseR.js +0 -4
- package/index-DXjpbLiy.js +0 -4
- package/index-DmJIk8vB.mjs +0 -3210
- package/index-Dq-m7diJ.mjs +0 -68
- package/index-KIgYoXyH.mjs +0 -3526
- package/index-NWyULgUV.js +0 -4
- package/index-T-_Ys9t7.mjs +0 -3483
- package/index-T1F-4OSy.js +0 -4
- package/index-dgE7GGD0.js +0 -4
- package/index-fnNrOQ41.js +0 -1
- package/index-lWJI65gt.js +0 -1
- package/index-tKMO8iJa.mjs +0 -3215
- package/layout/team-component/ProductCard/helpers.d.ts +0 -18
- package/server-DvV_v1l2.mjs +0 -69
- package/server-b0_Jc3E_.js +0 -1
- package/types/cms/api/index.d.ts +0 -0
package/index.js
CHANGED
|
@@ -1,4 +1,41 @@
|
|
|
1
|
-
"use strict";var Xs=Object.defineProperty;var Qs=(e,t,n)=>t in e?Xs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ht=(e,t,n)=>Qs(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),x=require("react"),Se=require("idb-keyval"),$e=require("zustand"),p=require("@soma-vertical-web/core-components"),fe=require("draft-js"),ze=require("@soma-vertical-web/foundations"),Tn=require("@date-fns/tz"),Ys=require("react-dom"),On=require("axios"),an=x.createContext({}),Zs=({data:e,children:t})=>o.jsx(an.Provider,{value:{tags:e==null?void 0:e.config},children:t}),wr=()=>{const{tags:e}=x.useContext(an),t=x.useCallback(n=>{var i,c,l,u;const r=(c=(i=e==null?void 0:e.commercial)==null?void 0:i.items)==null?void 0:c.find(f=>{var m;return(m=n??[])==null?void 0:m.find(d=>d.id===f.key)}),s=(u=(l=e==null?void 0:e.institucional)==null?void 0:l.items)==null?void 0:u.find(f=>{var m;return(m=n??[])==null?void 0:m.find(d=>d.id===f.key)}),a=e==null?void 0:e.flagPdp;return{commercial:r,institucional:s,flagPdp:a}},[e]);return{tags:e,getAvailableProductTag:t}},Er=({gridScrollBack:e})=>{x.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},Rr=x.createContext({}),Js=({children:e,gridScrollBack:t})=>{const n=x.useRef(null);return Er({gridScrollBack:t}),o.jsx(Rr.Provider,{value:{sizesContainerRef:n},children:e})},ea=()=>{const e=x.useContext(Rr);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),Tr=({valueInCents:e,hasFree:t,freeTaxMessage:n})=>e===0?t?n:me(0):me(e/100),cn=(e,t)=>{const[n,r]=e.split(t);return{name:n.trim(),size:r?r.trim():""}},ln=(e,t)=>{if(!e)return{};const[n,r]=e.split(t);return{color:n==null?void 0:n.trim(),size:r==null?void 0:r.trim()}},Or=(e,t="tamanho")=>{if(e.additionalProperty){const[n]=e.additionalProperty;return n!=null&&n.name?n.name.toLocaleLowerCase()===t?n.value:e.name:""}return e.name},ta=e=>e.replace(/\//g,""),Ar=({items:e,NAME_SPLIT_SYMBOL:t})=>{const n={price:0,listPrice:0,installments:{count:0,value:0}},r=(i,c)=>{var d;c&&(c.sellerId=i.sellerId,c.sellerName=i.sellerName,c.available=!0,c.isSellerDefault=i.sellerDefault);const{Price:l,ListPrice:u,PaymentOptions:{installmentOptions:f}}=i.commertialOffer;n.price=l,n.listPrice=u;const m=(d=f==null?void 0:f[0])==null?void 0:d.installments;if(m){const{count:_,value:g}=m[m.length-1];n.installments={count:_,value:g/100}}};let s=!0;const a=e.reduce((i,c)=>{var f;const l={name:c.name,sku:c.itemId,value:((f=c.Tamanho)==null?void 0:f[0])??cn(c.nameComplete??c.name,t).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},u=c.sellers.filter(m=>(m.sellerDefault&&m.commertialOffer.IsAvailable&&(l.available=!0,r(m,l)),m.commertialOffer.IsAvailable));return!l.isSellerDefault&&u.length>0&&(l.available=!0,r(u[0],{...l,sellerId:u[0].sellerId,sellerName:u[0].sellerName})),l.available===!1&&(s=!1),i.push(l),i},[]);return{...n,sizes:a,allSizesAvailable:s}},Mr=e=>e?!e.offers.offers.find(({quantity:t=0})=>t>0):!1,kr=(e,t)=>{const n=e.find(r=>r.availability.includes("InStock")&&r.quantity&&r.listPrice>0&&r.seller.identifier===t);return n||e.find(r=>r.availability.includes("InStock")&&r.quantity&&r.listPrice>0)},Dr=e=>e.find(t=>t.imageLabel==="10"),Lr=(e,t)=>{const n=/\/ids\/(\d+)\//,r=e.match(n);return r?e.replace(`/${r[1]}/`,`/${r[1]}-${t.width}-${t.height}/`):e},zr=(e,t)=>{const n=/\/ids\/(\d+)-(\d+)-(\d+)\//,r=e.match(n);return r?e.replace(`/${r[1]}-${r[2]}-${r[3]}/`,`/${r[1]}-${t.width}-${t.height}/`):e},qr=({images:e,label:t})=>{const n=e.filter(r=>r.keywords===t.first||r.keywords===t.second||r.alternateName===t.first||r.alternateName===t.second);return n.length===0?[e[0]]:n},na=e=>{const[t,n]=e.split("/").map(Number);if(Number.isNaN(t)||Number.isNaN(n))throw new Error("[ERROR ASPECT RATIO IMAGE]: Invalid aspect ratio format");return n/t},$r=(e,t,n)=>{t&&(e?(t.getAttribute("src")||(t.src=n??""),t.play()):t.pause())},ra=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Mr,formatPriceToCurrency:me,freightParsePrice:Tr,getAspectRatio:na,getColorAndSizeFromSkuName:ln,getFirstImages:qr,getSKUName:Or,getSkuInfos:Ar,getThumbImage:Dr,getValidOffer:kr,removeSlashes:ta,resizingImg:Lr,setVideoPlay:$r,splitNameAndSizeFromFullName:cn,updatedResizedImg:zr},Symbol.toStringTag,{value:"Module"})),he=({event:e,data:t})=>{const n=(window==null?void 0:window.dataLayer)||[];t.ecommerce&&n.push({ecommerce:null}),n.push({...e&&{event:`custom_${e}`},...t})},U={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:n,commonData:r,customData:s,promotionInfo:a,itemList:i,outsideEcommerceData:c}=e,{availableSizes:l,sizes:u,price:f}=r,m={...n==="view_item"?{currency:U.configs.currency,value:f,grade_disponivel:l??(u?Br(u):"")}:{},...n==="add_to_wishlist"||n==="remove_from_wishlist"?{value:f,currency:U.configs.currency}:{}},d=Ke({data:r,customData:{...s,...i,...a},configs:U.configs});he({event:n,data:{...c,ecommerce:{...i,...m,items:[d]}}}),typeof t=="function"&&t(d,m)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:n,itemList:r,outsideEcommerceData:s,customData:a}=e;if(t.length===0)return;const i=t.map(({node:c},l)=>Ke({data:{...c},customData:{...n,index:l,...a!=null&&a.item_list_name?{item_list_name:a==null?void 0:a.item_list_name}:r},configs:U.configs}));he({event:"view_item_list",data:{...s,ecommerce:{...a!=null&&a.item_list_name?{item_list_name:a==null?void 0:a.item_list_name}:r,items:i}}})},skuEvents:e=>{const{event:t,commonData:{products:n},customData:r,supportData:{selectedSkus:s,price:a},promotionInfo:i,itemList:c,outsideEcommerceData:l}=e;let u=0;const f=n.map(m=>{var h,y,v,N,S,b,C,j,I;const d=s==null?void 0:s.find(P=>(m.productId??m.id)===P.productId);let _={...i,...c};if(d){const P=Hr(),R=Ur(P,d);R&&(_={..._,...R}),t==="add_to_cart"&&(i||c)&&Gt({persistedData:P,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:i,itemList:c}}),t==="remove_from_cart"&&Gt({persistedData:P,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}u+=m.price??((v=(y=(h=d==null?void 0:d.offers)==null?void 0:h.offers)==null?void 0:y[0])==null?void 0:v.price)??0;const g=(d==null?void 0:d.size)??ln((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((N=m.itemOffered)==null?void 0:N.skuName),U.configs.NAME_SPLIT_SYMBOL).size;return Ke({data:m,customData:{...r,..._??{...i,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((S=m.itemOffered)==null?void 0:S.sku),quantity:(r==null?void 0:r.quantity)??m.quantity??1,item_variant2:g,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((I=(j=(C=(b=d==null?void 0:d.offers)==null?void 0:b.offers)==null?void 0:C[0])==null?void 0:j.seller)==null?void 0:I.identifier)??m.seller},configs:U.configs})});he({event:t,data:{...l,ecommerce:{value:a??u,currency:U.configs.currency,items:f}}})},filterEvent:e=>{var i;const{commonData:t,customData:n,outsideEcommerceData:r}=e,s={},a={};Array.isArray(t==null?void 0:t.selectedFacets)&&((i=t==null?void 0:t.selectedFacets)!=null&&i.length)&&((t==null?void 0:t.selectedFacets).forEach(({key:c,value:l})=>{var m;const u=((m=U.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:m.eventLabel)??c,f=(s==null?void 0:s[u])||[];u==="price_range"&&l.replace(":","-"),s[u]=[...f,l]}),Object.keys(s).forEach(c=>a[c]=s[c].join(", "))),he({event:"filter",data:{...r,...a,...n}})},viewCartEvent:e=>{var f,m,d,_,g,h,y,v,N,S;const{commonData:t,outsideEcommerceData:n}=e,{cartStore:r}=t;if(!r)return;const s=window.localStorage.getItem("persistedCartEventsData"),a=s?JSON.parse(s):{},i=r.items.map(b=>{const{promotionInfo:C,itemList:j}=a[b.id]??{};return Ke({data:{...b,price:b.price/100,listPrice:b.listPrice/100},customData:{...C,...j,item_sku:b.id??b.itemOffered.sku,quantity:b.quantity??1},configs:U.configs})}),c=(((f=r.totalizers.find(b=>b.name==="Total dos Itens"))==null?void 0:f.value)??0)/100,l=(((m=r.totalizers.find(b=>b.name==="Total dos Descontos"))==null?void 0:m.value)??0)/100,u=((d=r.marketingData)==null?void 0:d.utmiCampaign)==="codigodavendedora"?(_=r.marketingData)==null?void 0:_.utmCampaign:(h=String((g=r.openTextField)==null?void 0:g.value))==null?void 0:h.split(" - ")[0];he({event:"view_cart",data:{...n,ecommerce:{currency:U.configs.currency,value:c+l,total_discount:Math.abs(l),cep_preenchido:!!((v=(y=r.shippingData)==null?void 0:y.address)!=null&&v.postalCode),...u?{seller_coupon_name:u}:{},...((N=r.marketingData)==null?void 0:N.coupon)&&{sale_coupon_name:(S=r.marketingData)==null?void 0:S.coupon},subtotal:c,items:i}}})},readyEvents:e=>{const{event:t,readyData:n}=e;he({event:t,data:{...n}})}},Br=e=>e.reduce((t,n)=>(n.available&&t.push(n.value),t),[]).toString(),oa=e=>{const t=e.length;return{...e&&e.length>0?{item_category:e[0].includes(U.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},Ke=({data:e,customData:t,configs:n})=>({...sa(e,n==null?void 0:n.MAIN_IMAGE),...aa(e),...ia(e),...ca(e),...t}),Fr=()=>{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("_"))??[]:[]},Hr=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},Ur=(e,t)=>e==null?void 0:e[t],Gt=({persistedData:e,type:t,sku:n,newData:r})=>{if(!e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({[n]:r}));return}if(e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({...e,[n]:r}));return}e&&t==="remove"&&(delete e[n],window.localStorage.setItem("persistedCartEventsData",JSON.stringify(e)))},sa=(e,t="1")=>{var a,i,c,l,u,f,m,d,_,g,h;const n=e.productReference??e.gtin??e.productRefId,r=e.image??((i=(a=e.items)==null?void 0:a[0])==null?void 0:i.images)??((c=e.itemOffered)==null?void 0:c.image),s=r==null?void 0:r.find(y=>y.alternateName===t||y.imageLabel===t||y.keywords===t);return{item_id:e.productId??((l=e.isVariantOf)==null?void 0:l.productGroupID)??((u=e.isVariationOf)==null?void 0:u.productGroupID)??((m=(f=e.itemOffered)==null?void 0:f.isVariationOf)==null?void 0:m.productGroupID),item_ref:/_\d$/.test(n)?n.slice(0,-2):n,item_name:e.productTitle??e.productName??e.name??cn((d=e.itemOffered)==null?void 0:d.name,U.configs.NAME_SPLIT_SYMBOL).name,item_brand:((_=e.brand)==null?void 0:_.brandName)??((g=e.brand)==null?void 0:g.name)??e.brand??((h=e.itemOffered)==null?void 0:h.brand.name),item_url:`${U.configs.storeUrl}${e.linkText}/p`,item_image:(s==null?void 0:s.url)??(s==null?void 0:s.imageUrl)}},An=e=>Array.isArray(e)?e.reduce((t,n)=>(n.length>t.length&&(t=n),t),""):e,aa=e=>{var u,f;const{categories:t,categoriesIds:n}=e,r=t??((u=e.itemOffered)==null?void 0:u.categories),s=n??((f=e.itemOffered)==null?void 0:f.categoriesIds),a=An(r),i=An(s),c=a.slice(1,-1).split("/"),l=i.slice(1,-1).split("/");return{item_category:c[0].toLowerCase().includes(U.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]}}},ia=e=>{var s,a,i,c,l,u;const t=((s=e.itemOffered)==null?void 0:s.skuName)??((c=(i=(a=e.isVariantOf)==null?void 0:a.hasVariant)==null?void 0:i[0])==null?void 0:c.name)??((u=(l=e.items)==null?void 0:l[0])==null?void 0:u.name),{color:n,size:r}=ln(t,U.configs.NAME_SPLIT_SYMBOL);return{item_variant:n,...e.itemOffered&&{item_variant2:r}}},ca=e=>{var l,u;const{price:t,listPrice:n,installments:r}=e,s=t??((l=e.offers)==null?void 0:l.lowPrice)??0,a=n??((u=e.offers)==null?void 0:u.highPrice)??0,i=a?a-s:0,c=i%1===0?i:Number(i.toFixed(2));return{...t&&{price:s??a},...a&&{list_price:a,discount:c},...r&&{installments:r==null?void 0:r.count,installment_value:r==null?void 0:r.value},item_currency:U.configs.currency}},Wr=()=>{const[e,t]=Fr(),[n,r]=e.split("-"),s=n.includes("shop")||n.includes("sale")?n:"";return{page_category:s&&r?r:"",page_departament:s,id:t,name:e}},la=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:U,findDataInPersistedData:Ur,getAvailablesSizes:Br,getCategories:oa,getPageCategoryAndDepartmentFromSlug:Wr,getPersistedData:Hr,getProductListInfoFromHead:Fr,pushDatalayer:he,updatePersistedData:Gt},Symbol.toStringTag,{value:"Module"})),Vr=x.createContext({}),ua=({children:e,evtFunctionsConfigs:t})=>{const n=x.useRef({}),r=x.useRef(null),s=x.useRef(null),a=x.useRef({}),i=x.useRef({trigger:!1,index:0}),c=({functionKey:f,data:m,callBack:d,timeout:_=100})=>{window.dataLayer||(window.dataLayer=[]),U.configs=t;try{typeof U[f]=="function"&&setTimeout(()=>{var g;m.promotionInfo=n.current,(g=s.current)!=null&&g.item_list_name&&(m.itemList=s.current),U[f](m,d)},_)}catch(g){he({event:"error_event",data:{error_message:(g==null?void 0:g.message)??g}})}},l=({content:f})=>{c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:f.replace("::",":")}}})},u=({updatePromotionRef:f,promotion:m,index:d})=>{f&&(n.current={...m}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...m,...d!==void 0&&{index:d}}}}})};return o.jsx(Vr.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:i,promotionEventRef:n,currentLocalRef:r,itemListRef:s,cartProductsFullDataRef:a,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},F=()=>x.useContext(Vr),Gr=x.createContext({}),da=({children:e,productData:t,isKit:n,PDP_INFO:r,NAME_SPLIT_SYMBOL:s})=>{var T,M;const{sendDataLayerEvent:a,triggerSelectItemEventRef:i}=F(),{productId:c,productName:l,items:u,items:[{images:f,Videos:m}],description:d,["Composição"]:_="",productReference:g,categories:[h]}=t,{getAvailableProductTag:y}=wr(),v=y(Object.entries(t.clusterHighlights).map(w=>({id:w[0],name:w[1]}))),N=h.slice(1,-1).split("/"),{installments:S,price:b,listPrice:C,sizes:j,allSizesAvailable:I}=Ar({items:u,NAME_SPLIT_SYMBOL:s}),P=Dr(f),R=[{label:`${r.product.description}`,value:"description",content:d},{label:`${r.product.materiais}`,value:"composition",content:_}],O=((M=(T=t.items)==null?void 0:T[0].name.split("-"))==null?void 0:M[0].trim())??t["Cores Filtráveis"]??[],z=()=>({commonData:{...t,sizes:j,price:b,listPrice:C,installments:S},customData:{installments:S==null?void 0:S.count,installment_value:Number(S==null?void 0:S.value).toFixed(2)}}),E=({sku:w,size:k})=>{const{commonData:q,customData:$}=z();a({functionKey:"productEvents",data:{event:"view_item",commonData:q,customData:{...$,...w&&{item_sku:w},...k&&{item_variant2:k}}}})};return x.useEffect(()=>{if(i.current.trigger){const{commonData:w,customData:k}=z();a({functionKey:"productEvents",data:{event:"select_item",commonData:w,customData:{...k,index:i.current.index}}}),i.current.trigger=!1}E({})},[]),o.jsx(Gr.Provider,{value:{productData:t,productId:c,productName:l,productReference:g,tag:v,items:u,sizes:j,allSizesAvailable:I,installments:S,price:b,listPrice:C,thumbImage:P,images:f,video:m[0],descriptionContent:R,breadcrumbList:N,isKit:n,colorName:O,handleViewItemEvent:E},children:e})},un=()=>{const e=x.useContext(Gr);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},fa={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},oe=Promise.resolve(!1),Kt={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>oe,addItem:()=>oe,addSellerCode:()=>oe,emptyCart:()=>{},removeItem:()=>oe,setIsOpen:()=>{},shipping:()=>oe,shippingUpdate:()=>oe,toggleServiceToProduct:()=>oe,updateItemQuantity:()=>oe,insertProfileEmail:()=>oe,setRecentlyAddedProducts:()=>{}},dn=e=>e===0,Kr=(e,t)=>{if(!e||e.length===0)return[];let n="";const r=[],s=e.match(/\d+/g)??[];for(const a of s){const i=t[Number(a)];i&&(n+=(n?"/":"")+i,r.push(n))}return r},Xr=e=>{const{availability:t,additionalInfo:{brandName:n},bundleItems:r,id:s,detailUrl:a,ean:i,imageUrl:c,name:l,listPrice:u,quantity:f,price:m,priceDefinition:d,productCategories:_,productCategoryIds:g,productId:h,refId:y,seller:v,referenceId:N,offerings:S,productRefId:b,skuName:C,sellingPrice:j}=e;return{availability:t,bundleItems:r,referenceId:N,productRefId:b,id:s,ean:i,itemOffered:{additionalProperty:[],brand:{name:n},categories:Kr(g,_),categoriesIds:g,gtin:y,image:[{alternateName:"1",url:c}],name:l,isVariationOf:{name:l,productGroupID:h},sku:s,slug:a,skuName:C},listPrice:u,quantity:f,offerings:S,price:m,priceDefinition:d,sellingPrice:j,seller:v}},Qr=(e,t)=>{const n=e.map(r=>({id:r.id,quantity:r.quantity,seller:r.seller}));return Array.isArray(t)?[...n,...t]:[...n,t]},Yr=(e,t)=>{const n=e.find(r=>r.id===t);if(n){const r=e.map((s,a)=>{var i,c;return{id:((i=s.itemOffered)==null?void 0:i.sku)??"",index:a,quantity:(n==null?void 0:n.id)===((c=s.itemOffered)==null?void 0:c.sku)?0:s.quantity,seller:s.seller??""}});return{updateItems:r,filterItems:r.filter(s=>s.id!==t)}}return{updateItems:[],filterItems:[]}},Zr=(e,t,n)=>e.filter(r=>r.availability!=="withoutStock"&&r.availability!=="https://schema.org/OutOfStock").map((r,s)=>{var a,i;return r.id===t?{id:r.id,index:s,quantity:n,seller:r.seller,sku:((a=r.itemOffered)==null?void 0:a.sku)??""}:{id:r.id,index:s,quantity:r.quantity,seller:r.seller,sku:((i=r.itemOffered)==null?void 0:i.sku)??""}}),Xt=(e,t)=>e.filter(n=>n.availability!=="withoutStock").findIndex(({id:n})=>n===t),ma=(e,t)=>{var n;return Array.isArray(e)?(((n=e==null?void 0:e.find(r=>{var s;return((s=r==null?void 0:r.id)==null?void 0:s.toLowerCase())===t}))==null?void 0:n.value)??0)/100:0},pa=e=>{const t=e.reduce((s,a)=>{const i=dn(a.price)?0:a.quantity;return s+i},0),n=e.reduce((s,a)=>s+a.price*a.quantity,0),r=e.reduce((s,a)=>s+a.listPrice*a.quantity,0);return{totalItems:t,total:n,subTotal:r}},ha=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,n)=>t+(dn(n==null?void 0:n.price)?0:n.quantity),0):0,Jr=e=>{const{items:t,itemMetadata:n,marketingData:r,messages:s,orderFormId:a,openTextField:i,paymentData:c,shippingData:l,totalizers:u}=e;return{id:a,itemMetadata:n,items:Array.isArray(t)?t.map(Xr):[],marketingData:r,messages:s,openTextField:i,paymentData:c,shippingData:l,totalizers:u}},eo=(e,t)=>{const n=e.find(r=>r.id===t);return n?n.availability==="unavailableItemFulfillment":!1},_a=(e,t)=>{const n=e.sku,r=e.isVariantOf.hasVariant.find(s=>s.sku===n);return r?r.name.split(t)[1]:"--"},Ne=(e,t,n=!1)=>!e&&t!==""?{code:300,value:t,statusOk:n}:e===t?{code:200,value:t,statusOk:n}:{code:400,value:t,statusOk:n},ga=(e,t)=>{const n=new Set;return[e,...t].filter(r=>!n.has(r)&&n.add(r),n)},to=(e,t)=>t&&Array.isArray(t)&&t.find(r=>r.id===e)?Promise.resolve(e):Promise.resolve(!1),no=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),ro=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},oo=(e,t)=>{if(t!==-1){const n=Number(e);return n?n+1:1}return e??1},so=(e,t)=>Array.isArray(e)?e.filter(n=>t==null?void 0:t.some(r=>r.id===n.id)):[],ao=async(e,t)=>e.then(n=>[...n??[],...t??[]]),Q=async(e,t,n)=>{const{priority:r="auto",body:s}=t;return fetch(e,{headers:{"Content-Type":"application/json"},priority:r,method:"POST",body:JSON.stringify(s)}).then(async a=>{const i=await a.json();return n?i:Jr(i)})},io=(e,t,n)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:n}]}),ya=e=>[...Array.isArray(e)?e:[e],"faststore"],va=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:fa,addItemOrder:Qr,addNotification:io,createItemOrder:Xr,fetchCartAPI:Q,findItemIndex:Xt,findOptions:so,findTotalizerValue:ma,getCategories:Kr,getCode:Ne,getQuantity:oo,getRemoveId:to,getSize:_a,getTotalItems:ha,getTotalizer:pa,getValue:no,initialState:Kt,isGift:dn,marketingTagsBuilder:ya,mergeOptionsPromise:ao,orderFormValues:Jr,promiseDefault:oe,removeQuantity:Yr,updateItemSellerExternal:eo,updateOrderFormPromise:ro,updateQuantity:Zr,wishlistArray:ga},Symbol.toStringTag,{value:"Module"})),xa=()=>{const e=async(d,_)=>Q("/api/checkout/order-form/coupon",{body:{orderFormId:d,coupon:_}}),t=async(d,_)=>{if(_){const g=_.includes(" - ")?_.split(" - ")[0]:_,h=await Q("/api/checkout/order-form/seller-code",{body:{orderFormId:d,sellerCode:g}},!0);return Q("/api/checkout/order-form/attachments",{body:{orderFormId:d,sellerCode:g,sellerName:h instanceof Object&&"nome"in h?h==null?void 0:h.nome:""}}).then(y=>({...y,openTextField:{...(y==null?void 0:y.openTextField)??{},statusOk:(h==null?void 0:h.status)??!1}}))}else return Q("/api/checkout/order-form/attachments",{body:{orderFormId:d,sellerCode:"",sellerName:""}})},n=async(d,_,g)=>Q("/api/checkout/order-form/items",{body:{orderFormId:d,orderItems:Qr(_,g)}}),r=async(d,_,g,h)=>Q("/api/checkout/order-form/offerings",{body:{id:_,itemIndex:g,orderFormId:d,remove:h}}),s=async d=>Q("/api/checkout/order-form/items/remove-all",{body:{orderFormId:d}}),a=async(d,_="low")=>Q("/api/checkout/order-form",{priority:_,body:{orderFormId:d??""}}),i=async(d,_)=>Q("/api/checkout/order-form/profile",{body:{orderFormId:d,email:_}}),c=async(d,_,g)=>{const h=Yr(_,g);return Q("/api/checkout/order-form/items/update",{body:{orderItems:h.updateItems,orderFormId:d}})},l=async(d,_,g)=>Q("/api/checkout/order-form/shipping",{body:{orderFormId:d,country:g,postalCode:_}}),u=async(d,_,g)=>Q("/api/checkout/order-form/shipping/update",{body:{orderFormId:d,options:_,selectedAddresses:g}}),f=async(d,_,g,h)=>{const y=Zr(_,g,h);return Q("/api/checkout/order-form/items/update",{body:{orderFormId:d,orderItems:y}})};return{addCoupon:e,addItem:n,addSellerCode:t,giftItem:r,emptyCart:s,getOrderForm:a,insertProfileEmail:i,removeItem:c,shipping:l,shippingUpdate:u,updateItemQuantity:async(d,_,g,h,y)=>f(d,_,g,h).then(v=>v&&Array.isArray(v.items)?eo(v.items,g)?f(d,_,g,y):v:!1)}},Qt="soma::cart",De="soma::options",we=$e.create((e,t)=>{const n=xa(),r=async(s,a,i)=>{e({loading:!0});const c=await ro(s);if(typeof c!="boolean"){e({...c});const l=await ao(Se.get(De),i);return Se.set(De,l),no(c,a).finally(()=>e({loading:!1,options:l}))}return oe};if(typeof window<"u"){const s=async a=>{if(a){const i=await Se.get(De).then(u=>so(u,a.items));Se.set(Qt,a),Se.set(De,i),e({...a,options:i});const c=new URLSearchParams(window.location.search),l=c.get("utm_campaign")||c.get("utmi_campaign")||"";l&&r(()=>n.addSellerCode(t().id,l.toUpperCase()),"openTextField")}};return Se.get(Qt).then(a=>n.getOrderForm(a?a.id:"").then(s)),{...Kt,addCoupon:async a=>r(()=>n.addCoupon(t().id,a),"marketingData"),addItem:(a,i)=>{r(()=>n.addItem(t().id,t().items,a),"items",i)},addSellerCode:async a=>r(()=>n.addSellerCode(t().id,a),"openTextField"),emptyCart:()=>{r(()=>n.emptyCart(t().id))},removeItem:async a=>{const i=await r(()=>n.removeItem(t().id,t().items,a),"items");return to(a,i)},shipping:async(a,i="BR")=>r(()=>n.shipping(t().id,a,i),"shippingData"),shippingUpdate:async a=>r(()=>{var i;return n.shippingUpdate(t().id,a,(i=t().shippingData)==null?void 0:i.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(a,i,c)=>r(()=>n.giftItem(t().id,a,i,c),"items"),updateItemQuantity:async(a,i,c)=>{const{id:l,items:u}=t();return r(()=>{var f;return n.updateItemQuantity(l,u,a,i,((f=u.find(m=>m.id===a))==null?void 0:f.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async a=>r(()=>n.insertProfileEmail(t().id,a),"clientProfileData"),setIsOpen:a=>e({isOpen:a})}}return Kt}),ba=()=>we(e=>e),co=$e.create(e=>({notifications:[],actions:{addNotification:(t,n)=>e(r=>io(r,t,n)),removeNotification:t=>e(n=>({notifications:n.notifications.filter(r=>r.id!==t)}))}})),lo=()=>co(e=>e.notifications),uo=()=>co(e=>e.actions),Ca=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:De,KEY_INDEXED_STORE:Qt,useCartStore:we,useGetCartStoreState:ba,useGetNotificationActions:uo,useGetNotificationsStore:lo},Symbol.toStringTag,{value:"Module"})),ja=6e3,fo=x.createContext({}),mo=({children:e,...t})=>{const{items:n}=we(),[r,s]=x.useState([]),a=x.useRef(null),i=x.useMemo(()=>Array.isArray(r)&&r.length>0?r.map(c=>n.find(l=>l.id===c.id)).filter(c=>c!==void 0):[],[n,r]);return x.useEffect(()=>{r.length&&(clearTimeout(a.current??0),a.current=setTimeout(()=>{s([])},ja))},[r]),o.jsx(fo.Provider,{value:x.useMemo(()=>({...t,setRecentlyAdded:s,recentlyAddedProducts:i}),[t,s,i]),children:e})},Be=()=>{const e=x.useContext(fo);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class po{constructor(){ht(this,"events",{});ht(this,"prevData",{})}subscribe(t,n){return this.events[t]||(this.events[t]=[]),this.events[t].push(n),()=>{this.events[t]=this.events[t].filter(r=>r!==n)}}publish(t,n){this.events[t]&&this.events[t].forEach(r=>{this.prevData[t]=n,r(n)})}}const ho=x.createContext({}),Sa=({children:e,headerConfigs:t,pathname:n,...r})=>{const[s,a]=x.useState(!0),i=n==="/",c=x.useRef(new po),l=m=>m?{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(i),f=x.useRef(u);return x.useEffect(()=>{const m=()=>{const d=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,_=window.innerWidth<1024||!!d.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);s!==_&&a(_)};return m(),window.addEventListener("resize",m,{passive:!0}),()=>window.removeEventListener("resize",m)},[s]),x.useEffect(()=>{const m=l(i);c.current.publish("header:change_variant",m.headerVariant),c.current.publish("header:change_position",m.position),f.current=m},[i]),o.jsx(ho.Provider,{value:{isMobile:s,mediatorRef:c,currentHeaderConfigsRef:f,...r},children:o.jsx(mo,{children:e})})},pe=()=>x.useContext(ho),_o=x.createContext({}),Ia=({children:e,...t})=>o.jsx(_o.Provider,{value:{...t},children:e}),ae=()=>x.useContext(_o),ve=(e,t)=>$e.create(n=>{const r=()=>n({value:e});return t&&t instanceof Set&&t.add(r),{value:e,actions:{setValue:s=>n({value:s}),reset:r}}}),qe={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},Fe=new Set,Na=()=>{Fe.forEach(e=>{e()})},go=$e.create((e,t)=>{const n=()=>e({value:qe.category});return Fe.add(n),{value:qe.category,actions:{reset:n,setValue:r=>e(()=>({value:r})),updateValue:r=>{t().value!==r&&e({value:r})}}}}),ft=()=>go(e=>e.value),_e=()=>go(e=>e.actions),yo=ve(qe.menuMobileIsOpen,Fe),fn=()=>yo(e=>e.value),xe=()=>yo(e=>e.actions),vo=ve(qe.searchModalIsOpen,Fe),Pa=()=>vo(e=>e.value),mn=()=>vo(e=>e.actions),xo=ve(qe.userMenuIsOpen,Fe),wa=()=>xo(e=>e.value),pn=()=>xo(e=>e.actions),Ea=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:Na,useActionsHeaderCategory:_e,useActionsMenuMobileIsOpen:xe,useActionsSearchModalIsOpen:mn,useActionsUserMenuIsOpen:pn,useGetHeaderCategoryStore:ft,useGetMenuMobileIsOpen:fn,useGetSearchModalIsOpen:Pa,useGetUserMenuIsOpen:wa},Symbol.toStringTag,{value:"Module"})),Ee={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},Re=new Set,Ra=()=>{Re.forEach(e=>{e()})},bo=$e.create(e=>{const t=()=>e({value:Ee.selectedSkuInfo});return Re.add(t),{value:Ee.selectedSkuInfo,actions:{setValue:n=>e(r=>({value:{...r,...n}})),reset:t}}}),Ta=()=>bo(e=>e.value),Oa=()=>bo(e=>e.actions),Co=ve(Ee.openLetMeKnow,Re),Aa=()=>Co(e=>e.value),Ma=()=>Co(e=>e.actions),jo=ve(Ee.showNotify,Re),ka=()=>jo(e=>e.value),Da=()=>jo(e=>e.actions),So=ve(Ee.showBottomNavigation,Re),La=()=>So(e=>e.value),za=()=>So(e=>e.actions),Io=ve(Ee.openMeasurements,Re),qa=()=>Io(e=>e.value),$a=()=>Io(e=>e.actions),Ba=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:Ra,useActionsPDPOpenLetMeKnow:Ma,useActionsPDPOpenMeasurements:$a,useActionsPDPSelectedSkuInfo:Oa,useActionsPDPShowBottomNavigation:za,useActionsPDPShowNotify:Da,useGetPDPOpenLetMeKnow:Aa,useGetPDPOpenMeasurements:qa,useGetPDPSelectedSkuInfo:Ta,useGetPDPShowBottomNavigation:La,useGetPDPShowNotify:ka},Symbol.toStringTag,{value:"Module"})),No=x.createContext({}),Fa=({children:e,headerData:t,...n})=>{var l,u;const r=x.useRef(null),s=x.useRef(null),a=x.useRef(null),{mediatorRef:i,currentHeaderConfigsRef:c}=pe();return(l=i.current)==null||l.subscribe("header:change_variant",f=>{var h,y,v;if(f&&c.current&&(c.current.bannerVariant=f),!r.current)return;const d=document.body.scrollTop>0,_=r.current.getAttribute("data-interactiveVariant"),g=d?_:f??((h=c.current)==null?void 0:h.bannerVariant)??"default";g!==((y=c.current)==null?void 0:y.headerVariant)&&(r.current.setAttribute("data-bottomdivider",String(d)),r.current.setAttribute("data-variant",String(g)),(v=i.current)==null||v.publish("herobanner:change_controllers_variant",g),c.current&&(c.current.headerVariant=g))}),(u=i.current)==null||u.subscribe("header:change_position",f=>{r.current&&(r.current.style.position=f)}),x.useEffect(()=>{const f=new AbortController,m=p.helpers.throttle(()=>{var _;return(_=i.current)==null?void 0:_.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",m,{passive:!0,signal:f.signal});const d=_=>{var h;(h=_.target.closest("a"))==null||h.blur()};return r.current&&(r.current.addEventListener("click",d,{signal:f.signal}),r.current.addEventListener("touchend",d,{signal:f.signal})),()=>{f.abort()}},[]),o.jsx(No.Provider,{value:{headerData:t,structureRef:s,rootRef:r,tipbarRef:a,...n},children:e})},G=()=>x.useContext(No),Po=x.createContext({}),wo=({children:e})=>{const t=x.useRef(null),n=x.useRef(null),r=fn(),s=x.useCallback(()=>{var a;{const i=(a=t.current)==null?void 0:a.querySelector("dialog");if(i){i.dataset.animation="out";const c=i.children[0];c.dataset.animation="out"}}},[]);return x.useEffect(()=>{var a;if(r)document.body.dataset.modalopen="true";else{document.body.dataset.modalopen="false";const i=(a=n.current)==null?void 0:a.querySelector("dialog");if(i){i.dataset.animation="out";const c=i.children[0];c.dataset.animation="out"}}},[r]),x.useEffect(()=>{n.current=document.body},[]),o.jsx(Po.Provider,{value:{bodyRef:t,handleCloseSubMenu:s,documentBodyRef:n},children:e})},He=()=>x.useContext(Po),Ha=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Ua=(e,t,n)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const r=t.getBoundingClientRect(),s=e.getBoundingClientRect(),a=e!=null&&e.parentElement?Ha(e==null?void 0:e.parentElement):0;return{left:r.left+r.width/2-(s.width+a),top:r.top+r.height+n}},Eo=x.createContext({}),Ro=({children:e,delay:t=600,gap:n=20,...r})=>{const[s,a]=x.useState(!1),i=x.useRef(null),[c,l]=x.useState(!1),[u,f]=x.useState({left:0,top:0}),m=x.useCallback(()=>{l(!0),typeof window<"u"&&(i.current=window.setTimeout(()=>{a(!1),l(!1)},t))},[l,a,t]);return x.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),_=window.document.querySelector("#add-to-cart--tooltip");if(d&&_){const{left:g,top:h}=Ua(_,d,n??0);f({left:g,top:h}),l(!1)}},[n,s]),o.jsx(Eo.Provider,{value:x.useMemo(()=>({...r,...u,handleClose:m,isLeaving:c,isOpen:s,setIsOpen:a,setIsLeaving:l}),[r,u,m,c,s,a,l]),children:e})},be=()=>{const e=x.useContext(Eo);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},To=x.createContext({}),Wa=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...n})=>{const r=we(),{setRecentlyAdded:s}=Be(),a=lo(),{addNotification:i,removeNotification:c}=uo(),{addCoupon:l,addItem:u,addSellerCode:f,emptyCart:m,isOpen:d,removeItem:_,shipping:g,shippingUpdate:h,toggleServiceToProduct:y,updateItemQuantity:v}=r,N=x.useCallback(async(E,T)=>(T==="coupon"?l(E):f(E)).then(w=>{if(typeof w!="boolean"&&w instanceof Object){if(T==="seller"&&"value"in w){const{statusOk:k,value:q}=w,$=String(q??"").split(" - ");return Ne(($==null?void 0:$[0])??"",E,!!k)}return Ne(String(w.coupon),E,!0)}return Ne("","")}).catch(()=>Promise.resolve({code:400})),[l,f]),S=x.useCallback((E,T,M)=>{const{id:w}=E;v(w,T,M)},[v]),b=x.useCallback((E,T,M=!1)=>{if(!E)return;const{id:w}=E,k=Xt(r.items,w);if(k!==-1&&!M){const q=Number(r.items[k].quantity),$=r.items[k]?q+1:1;S(E,$,T)}else u({id:w,quantity:(E==null?void 0:E.quantity)??1,seller:E.seller});d||s(q=>[...q,E])},[u,S,r.items,d,s]),C=x.useCallback((E,T)=>{if(!E||!Array.isArray(E))return;s(w=>[...w,...E]);const M=E.map(w=>{const{id:k,quantity:q,seller:$}=w,W=Xt(r.items,k),Y=oo(q??1,W);return{id:k,quantity:Y,seller:$}});u(M,T)},[u,r.items,s]),j=x.useCallback(async(E,T,M)=>E?_(E).then(()=>(i(T??`${t}`,M),Ne(E,E))):Promise.resolve(Ne("","Product id required")),[i,_]),I=x.useCallback(()=>{r.items.length>0&&m()},[m,r.items]),P=x.useCallback((E,T="BRA")=>g(E,T),[g]),R=x.useCallback(E=>{E&&h(E)},[h]),O=x.useCallback(async(E,T,M)=>{const w=r.items.findIndex(q=>q.id===E);return r.items[w]&&w>=0?y(T,w,M??!1):!1},[r.items,y]),z=x.useCallback(async(E,T)=>v(E,T).then(M=>{if(Array.isArray(M)){const w=M.find(k=>k.id===E);if(w&&(w==null?void 0:w.quantity)<T)return String(w.quantity)}return!1}),[v]);return o.jsx(To.Provider,{value:x.useMemo(()=>({...n,addCouponSeller:N,addToCart:b,addItemsToCart:C,cartStore:r,notifications:a,clearCart:I,addNotification:i,isOpen:r.isOpen,removeNotification:c,removeToCart:j,setIsOpen:r.setIsOpen,shipping:P,shippingUpdateOption:R,toggleGiftItemCart:O,updateItemQuantity:z}),[n,N,b,C,a,I,i,r,c,j,P,R,O,z]),children:e})},Te=()=>{const e=x.useContext(To);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},Va={contexts:{addToCart:{hook:be,provider:Ro},cart:{hook:Te,provider:Wa},cms:{FlagsAndTags:{context:an,hook:wr,provider:Zs}},events:{hook:F,provider:ua},global:{hook:pe,provider:Sa,mediator:po},header:{hook:G,provider:Fa},menuMobile:{hook:He,provider:wo},next:{hook:ae,provider:Ia},pdp:{provider:Js,hook:ea},pdpdata:{hook:un,provider:da},ui:{hook:Be,provider:mo}},hooks:{useBackPDC:Er},stores:{cart:Ca,header:Ea,pdp:Ba}};function Oo(e){const n=decodeURIComponent(window.document.cookie).split(";");for(const r of n){const[s,a]=r.trim().split("=");if(s===e)return a}}function Ao(e,t,n={}){const s={...{path:"/",expires:new Date(Date.now()+36e5)},...n};let a=`${encodeURIComponent(e)}=${encodeURIComponent(t??"")}`;for(const i in s)s[i]!==void 0&&(a+=`; ${i}`,i==="expires"?a+=`=${s[i].toUTCString()}`:typeof s[i]=="boolean"?a+=`; ${s[i]?"true":"false"}`:a+=`=${s[i]}`);window.document.cookie=a}const Ga=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function Ka(e,t=1e3){let n=!1;return(...r)=>{n||(e(...r),n=!0,setTimeout(()=>{n=!1},t))}}function Xa(e,t=1e3){let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}const Mo=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,Le=(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),Qa=Object.freeze(Object.defineProperty({__proto__:null,debounce:Xa,getCookie:Oo,getDaysHoursMinutesSeconds:Le,getMilliSeconds:Mo,removeAccentsAndReplaceSpaces:Ga,setCookie:Ao,throttle:Ka},Symbol.toStringTag,{value:"Module"})),Ya={cart:va,events:la,product:ra,utils:Qa},ko={helpers:Ya};function hn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yt={exports:{}},se={};se._=se._interop_require_default=Za;function Za(e){return e&&e.__esModule?e:{default:e}}var Xe={exports:{}},_t={},Mn;function Do(){return Mn||(Mn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,c){for(var l in c)Object.defineProperty(i,l,{enumerable:!0,get:c[l]})}t(e,{searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return s},assign:function(){return a}});function n(i){const c={};return i.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 r(i){return typeof i=="string"||typeof i=="number"&&!isNaN(i)||typeof i=="boolean"?String(i):""}function s(i){const c=new URLSearchParams;return Object.entries(i).forEach(l=>{let[u,f]=l;Array.isArray(f)?f.forEach(m=>c.append(u,r(m))):c.set(u,r(f))}),c}function a(i){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(m=>i.delete(m)),f.forEach((m,d)=>i.append(d,m))}),i}}(_t)),_t}var gt={},Qe={},kn;function Lo(){if(kn)return Qe;kn=1;function e(n){if(typeof WeakMap!="function")return null;var r=new WeakMap,s=new WeakMap;return(e=function(a){return a?s:r})(n)}Qe._=Qe._interop_require_wildcard=t;function t(n,r){if(!r&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var s=e(r);if(s&&s.has(n))return s.get(n);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if(c!=="default"&&Object.prototype.hasOwnProperty.call(n,c)){var l=i?Object.getOwnPropertyDescriptor(n,c):null;l&&(l.get||l.set)?Object.defineProperty(a,c,l):a[c]=n[c]}return a.default=n,s&&s.set(n,a),a}return Qe}var Dn;function zo(){return Dn||(Dn=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 a},urlObjectKeys:function(){return i},formatWithValidation:function(){return c}});const r=Lo()._(Do()),s=/https?|ftp|gopher|file/;function a(l){let{auth:u,hostname:f}=l,m=l.protocol||"",d=l.pathname||"",_=l.hash||"",g=l.query||"",h=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?h=u+l.host:f&&(h=u+(~f.indexOf(":")?"["+f+"]":f),l.port&&(h+=":"+l.port)),g&&typeof g=="object"&&(g=String(r.urlQueryToSearchParams(g)));let y=l.search||g&&"?"+g||"";return m&&!m.endsWith(":")&&(m+=":"),l.slashes||(!m||s.test(m))&&h!==!1?(h="//"+(h||""),d&&d[0]!=="/"&&(d="/"+d)):h||(h=""),_&&_[0]!=="#"&&(_="#"+_),y&&y[0]!=="?"&&(y="?"+y),d=d.replace(/[?#]/g,encodeURIComponent),y=y.replace("#","%23"),""+m+h+d+y+_}const i=["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=>{i.includes(u)||console.warn("Unknown key passed via urlObject into url.format: "+u)}),a(l)}}(gt)),gt}var yt={},Ln;function Ja(){return Ln||(Ln=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(n,r){const s={};return Object.keys(n).forEach(a=>{r.includes(a)||(s[a]=n[a])}),s}}(yt)),yt}var vt={},zn;function mt(){return zn||(zn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,C){for(var j in C)Object.defineProperty(b,j,{enumerable:!0,get:C[j]})}t(e,{WEB_VITALS:function(){return n},execOnce:function(){return r},isAbsoluteUrl:function(){return a},getLocationOrigin:function(){return i},getURL:function(){return c},getDisplayName:function(){return l},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return f},loadGetInitialProps:function(){return m},SP:function(){return d},ST:function(){return _},DecodeError:function(){return g},NormalizeError:function(){return h},PageNotFoundError:function(){return y},MissingStaticPage:function(){return v},MiddlewareNotFoundError:function(){return N},stringifyError:function(){return S}});const n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(b){let C=!1,j;return function(){for(var I=arguments.length,P=new Array(I),R=0;R<I;R++)P[R]=arguments[R];return C||(C=!0,j=b(...P)),j}}const s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=b=>s.test(b);function i(){const{protocol:b,hostname:C,port:j}=window.location;return b+"//"+C+(j?":"+j:"")}function c(){const{href:b}=window.location,C=i();return b.substring(C.length)}function l(b){return typeof b=="string"?b:b.displayName||b.name||"Unknown"}function u(b){return b.finished||b.headersSent}function f(b){const C=b.split("?");return C[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(C[1]?"?"+C.slice(1).join("?"):"")}async function m(b,C){if(process.env.NODE_ENV!=="production"){var j;if((j=b.prototype)!=null&&j.getInitialProps){const R='"'+l(b)+'.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(R)}}const I=C.res||C.ctx&&C.ctx.res;if(!b.getInitialProps)return C.ctx&&C.Component?{pageProps:await m(C.Component,C.ctx)}:{};const P=await b.getInitialProps(C);if(I&&u(I))return P;if(!P){const R='"'+l(b)+'.getInitialProps()" should resolve to an object. But found "'+P+'" instead.';throw new Error(R)}return process.env.NODE_ENV!=="production"&&Object.keys(P).length===0&&!C.ctx&&console.warn(""+l(b)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),P}const d=typeof performance<"u",_=d&&["mark","measure","getEntriesByName"].every(b=>typeof performance[b]=="function");class g extends Error{}class h extends Error{}class y extends Error{constructor(C){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+C}}class v extends Error{constructor(C,j){super(),this.message="Failed to load static file for page: "+C+" "+j}}class N extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function S(b){return JSON.stringify({message:b.message,stack:b.stack})}}(vt)),vt}var Ye={exports:{}},xt={},qn;function qo(){return qn||(qn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}});function t(n){return n.replace(/\/$/,"")||"/"}}(xt)),xt}var bt={},$n;function _n(){return $n||($n=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(n){const r=n.indexOf("#"),s=n.indexOf("?"),a=s>-1&&(r<0||s<r);return a||r>-1?{pathname:n.substring(0,a?s:r),query:a?n.substring(s,r>-1?r:void 0):"",hash:r>-1?n.slice(r):""}:{pathname:n,query:"",hash:""}}}(bt)),bt}var Bn;function pt(){return Bn||(Bn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return s}});const n=qo(),r=_n(),s=a=>{if(!a.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return a;const{pathname:i,query:c,hash:l}=(0,r.parsePath)(a);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(i)?""+(0,n.removeTrailingSlash)(i)+c+l:i.endsWith("/")?""+i+c+l:i+"/"+c+l:""+(0,n.removeTrailingSlash)(i)+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)}(Ye,Ye.exports)),Ye.exports}var Ct={},Ze={exports:{}},jt={},Fn;function $o(){return Fn||(Fn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return n}});const t=_n();function n(r,s){if(typeof r!="string")return!1;const{pathname:a}=(0,t.parsePath)(r);return a===s||a.startsWith(s+"/")}}(jt)),jt}var Hn;function ei(){return Hn||(Hn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return s}});const n=$o(),r=process.env.__NEXT_ROUTER_BASEPATH||"";function s(a){return(0,n.pathHasPrefix)(a,r)}(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)}(Ze,Ze.exports)),Ze.exports}var Un;function Bo(){return Un||(Un=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return r}});const t=mt(),n=ei();function r(s){if(!(0,t.isAbsoluteUrl)(s))return!0;try{const a=(0,t.getLocationOrigin)(),i=new URL(s,a);return i.origin===a&&(0,n.hasBasePath)(i.pathname)}catch{return!1}}}(Ct)),Ct}var St={},It={},Wn;function ti(){return Wn||(Wn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return n}});class t{insert(s){this._insert(s.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(s){s===void 0&&(s="/");const a=[...this.children.keys()].sort();this.slugName!==null&&a.splice(a.indexOf("[]"),1),this.restSlugName!==null&&a.splice(a.indexOf("[...]"),1),this.optionalRestSlugName!==null&&a.splice(a.indexOf("[[...]]"),1);const i=a.map(c=>this.children.get(c)._smoosh(""+s+c+"/")).reduce((c,l)=>[...c,...l],[]);if(this.slugName!==null&&i.push(...this.children.get("[]")._smoosh(s+"["+this.slugName+"]/")),!this.placeholder){const c=s==="/"?"/":s.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+c+'" and "'+c+"[[..."+this.optionalRestSlugName+']]").');i.unshift(c)}return this.restSlugName!==null&&i.push(...this.children.get("[...]")._smoosh(s+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&i.push(...this.children.get("[[...]]")._smoosh(s+"[[..."+this.optionalRestSlugName+"]]/")),i}_insert(s,a,i){if(s.length===0){this.placeholder=!1;return}if(i)throw new Error("Catch-all must be the last part of the URL.");let c=s[0];if(c.startsWith("[")&&c.endsWith("]")){let f=function(m,d){if(m!==null&&m!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+m+"' !== '"+d+"').");a.forEach(_=>{if(_===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(_.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+_+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),a.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),i=!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(i)if(u){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+s[0]+'" ).');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 "'+s[0]+'").');f(this.restSlugName,l),this.restSlugName=l,c="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+s[0]+'").');f(this.slugName,l),this.slugName=l,c="[]"}}this.children.has(c)||this.children.set(c,new t),this.children.get(c)._insert(s.slice(1),a,i)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(r){const s=new t;return r.forEach(a=>s.insert(a)),s.smoosh()}}(It)),It}var Nt={},Vn;function ni(){return Vn||(Vn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return n}});const t=/\/\[[^/]+?\](?=\/|$)/;function n(r){return t.test(r)}}(Nt)),Nt}var Gn;function ri(){return Gn||(Gn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,a){for(var i in a)Object.defineProperty(s,i,{enumerable:!0,get:a[i]})}t(e,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return r.isDynamicRoute}});const n=ti(),r=ni()}(St)),St}var Pt={},wt={},Kn;function oi(){return Kn||(Kn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return n}});const t=mt();function n(r){let{re:s,groups:a}=r;return i=>{const c=s.exec(i);if(!c)return!1;const l=f=>{try{return decodeURIComponent(f)}catch{throw new t.DecodeError("failed to decode param")}},u={};return Object.keys(a).forEach(f=>{const m=a[f],d=c[m.pos];d!==void 0&&(u[f]=~d.indexOf("/")?d.split("/").map(_=>l(_)):m.repeat?[l(d)]:l(d))}),u}}}(wt)),wt}var Et={},Rt={},Tt={},Ot={},Xn;function si(){return Xn||(Xn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureLeadingSlash",{enumerable:!0,get:function(){return t}});function t(n){return n.startsWith("/")?n:"/"+n}}(Ot)),Ot}var At={},Qn;function ai(){return Qn||(Qn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isGroupSegment",{enumerable:!0,get:function(){return t}});function t(n){return n[0]==="("&&n.endsWith(")")}}(At)),At}var Yn;function ii(){return Yn||(Yn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,c){for(var l in c)Object.defineProperty(i,l,{enumerable:!0,get:c[l]})}t(e,{normalizeAppPath:function(){return s},normalizeRscPath:function(){return a}});const n=si(),r=ai();function s(i){return(0,n.ensureLeadingSlash)(i.split("/").reduce((c,l,u,f)=>!l||(0,r.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&u===f.length-1?c:c+"/"+l,""))}function a(i,c){return c?i.replace(/\.rsc($|\?)/,"$1"):i}}(Tt)),Tt}var Zn;function ci(){return Zn||(Zn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,c){for(var l in c)Object.defineProperty(i,l,{enumerable:!0,get:c[l]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return r},isInterceptionRouteAppPath:function(){return s},extractInterceptionRouteInformation:function(){return a}});const n=ii(),r=["(..)(..)","(.)","(..)","(...)"];function s(i){return i.split("/").find(c=>r.find(l=>c.startsWith(l)))!==void 0}function a(i){let c,l,u;for(const f of i.split("/"))if(l=r.find(m=>f.startsWith(m)),l){[c,u]=i.split(l,2);break}if(!c||!l||!u)throw new Error(`Invalid interception route: ${i}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(c=(0,n.normalizeAppPath)(c),l){case"(.)":c==="/"?u=`/${u}`:u=c+"/"+u;break;case"(..)":if(c==="/")throw new Error(`Invalid interception route: ${i}. 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: ${i}. 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}}}(Rt)),Rt}var Mt={},Jn;function li(){return Jn||(Jn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return r}});const t=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function r(s){return t.test(s)?s.replace(n,"\\$&"):s}}(Mt)),Mt}var er;function ui(){return er||(er=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,y){for(var v in y)Object.defineProperty(h,v,{enumerable:!0,get:y[v]})}t(e,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return _},getNamedMiddlewareRegex:function(){return g}});const n=ci(),r=li(),s=qo(),a="nxtP",i="nxtI";function c(h){const y=h.startsWith("[")&&h.endsWith("]");y&&(h=h.slice(1,-1));const v=h.startsWith("...");return v&&(h=h.slice(3)),{key:h,repeat:v,optional:y}}function l(h){const y=(0,s.removeTrailingSlash)(h).slice(1).split("/"),v={};let N=1;return{parameterizedRoute:y.map(S=>{const b=n.INTERCEPTION_ROUTE_MARKERS.find(j=>S.startsWith(j)),C=S.match(/\[((?:\[.*\])|.+)\]/);if(b&&C){const{key:j,optional:I,repeat:P}=c(C[1]);return v[j]={pos:N++,repeat:P,optional:I},"/"+(0,r.escapeStringRegexp)(b)+"([^/]+?)"}else if(C){const{key:j,repeat:I,optional:P}=c(C[1]);return v[j]={pos:N++,repeat:I,optional:P},I?P?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,r.escapeStringRegexp)(S)}).join(""),groups:v}}function u(h){const{parameterizedRoute:y,groups:v}=l(h);return{re:new RegExp("^"+y+"(?:/)?$"),groups:v}}function f(){let h=0;return()=>{let y="",v=++h;for(;v>0;)y+=String.fromCharCode(97+(v-1)%26),v=Math.floor((v-1)/26);return y}}function m(h){let{getSafeRouteKey:y,segment:v,routeKeys:N,keyPrefix:S}=h;const{key:b,optional:C,repeat:j}=c(v);let I=b.replace(/\W/g,"");S&&(I=""+S+I);let P=!1;return(I.length===0||I.length>30)&&(P=!0),isNaN(parseInt(I.slice(0,1)))||(P=!0),P&&(I=y()),S?N[I]=""+S+b:N[I]=""+b,j?C?"(?:/(?<"+I+">.+?))?":"/(?<"+I+">.+?)":"/(?<"+I+">[^/]+?)"}function d(h,y){const v=(0,s.removeTrailingSlash)(h).slice(1).split("/"),N=f(),S={};return{namedParameterizedRoute:v.map(b=>{const C=n.INTERCEPTION_ROUTE_MARKERS.some(I=>b.startsWith(I)),j=b.match(/\[((?:\[.*\])|.+)\]/);return C&&j?m({getSafeRouteKey:N,segment:j[1],routeKeys:S,keyPrefix:y?i:void 0}):j?m({getSafeRouteKey:N,segment:j[1],routeKeys:S,keyPrefix:y?a:void 0}):"/"+(0,r.escapeStringRegexp)(b)}).join(""),routeKeys:S}}function _(h,y){const v=d(h,y);return{...u(h),namedRegex:"^"+v.namedParameterizedRoute+"(?:/)?$",routeKeys:v.routeKeys}}function g(h,y){const{parameterizedRoute:v}=l(h),{catchAll:N=!0}=y;if(v==="/")return{namedRegex:"^/"+(N?".*":"")+"$"};const{namedParameterizedRoute:S}=d(h,!1);let b=N?"(?:(/.*)?)":"";return{namedRegex:"^"+S+b+"$"}}}(Et)),Et}var tr;function di(){return tr||(tr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return r}});const t=oi(),n=ui();function r(s,a,i){let c="";const l=(0,n.getRouteRegex)(s),u=l.groups,f=(a!==s?(0,t.getRouteMatcher)(l)(a):"")||i;c=s;const m=Object.keys(u);return m.every(d=>{let _=f[d]||"";const{repeat:g,optional:h}=u[d];let y="["+(g?"...":"")+d+"]";return h&&(y=(_?"":"/")+"["+y+"]"),g&&!Array.isArray(_)&&(_=[_]),(h||d in f)&&(c=c.replace(y,g?_.map(v=>encodeURIComponent(v)).join("/"):encodeURIComponent(_))||"/")})||(c=""),{params:m,result:c}}}(Pt)),Pt}var nr;function fi(){return nr||(nr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});const n=Do(),r=zo(),s=Ja(),a=mt(),i=pt(),c=Bo(),l=ri(),u=di();function f(m,d,_){let g,h=typeof d=="string"?d:(0,r.formatWithValidation)(d);const y=h.match(/^[a-zA-Z]{1,}:\/\//),v=y?h.slice(y[0].length):h;if((v.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+h+"' passed to next/router in page: '"+m.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const S=(0,a.normalizeRepeatedSlashes)(v);h=(y?y[0]:"")+S}if(!(0,c.isLocalURL)(h))return _?[h]:h;try{g=new URL(h.startsWith("#")?m.asPath:m.pathname,"http://n")}catch{g=new URL("/","http://n")}try{const S=new URL(h,g);S.pathname=(0,i.normalizePathTrailingSlash)(S.pathname);let b="";if((0,l.isDynamicRoute)(S.pathname)&&S.searchParams&&_){const j=(0,n.searchParamsToUrlQuery)(S.searchParams),{result:I,params:P}=(0,u.interpolateAs)(S.pathname,S.pathname,j);I&&(b=(0,r.formatWithValidation)({pathname:I,hash:S.hash,query:(0,s.omit)(j,P)}))}const C=S.origin===g.origin?S.href.slice(S.origin.length):S.href;return _?[C,b||C]:C}catch{return _?[h]:h}}(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)}(Xe,Xe.exports)),Xe.exports}var Je={exports:{}},kt={},Dt={},rr;function Fo(){return rr||(rr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return n}});const t=_n();function n(r,s){if(!r.startsWith("/")||!s)return r;const{pathname:a,query:i,hash:c}=(0,t.parsePath)(r);return""+s+a+i+c}}(Dt)),Dt}var or;function mi(){return or||(or=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return r}});const t=Fo(),n=$o();function r(s,a,i,c){if(!a||a===i)return s;const l=s.toLowerCase();return!c&&((0,n.pathHasPrefix)(l,"/api")||(0,n.pathHasPrefix)(l,"/"+a.toLowerCase()))?s:(0,t.addPathPrefix)(s,"/"+a)}}(kt)),kt}var sr;function pi(){return sr||(sr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}});const n=pt(),r=function(s){for(var a=arguments.length,i=new Array(a>1?a-1:0),c=1;c<a;c++)i[c-1]=arguments[c];return process.env.__NEXT_I18N_SUPPORT?(0,n.normalizePathTrailingSlash)(mi().addLocale(s,...i)):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)}(Je,Je.exports)),Je.exports}var Lt={},ar;function hi(){return ar||(ar=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return r}});const r=se._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(r.displayName="RouterContext")}(Lt)),Lt}var zt={},ir;function _i(){return ir||(ir=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var m in f)Object.defineProperty(u,m,{enumerable:!0,get:f[m]})}t(e,{CacheStates:function(){return s},AppRouterContext:function(){return a},LayoutRouterContext:function(){return i},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return l}});const r=se._(x);var s;(function(u){u.LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY"})(s||(s={}));const a=r.default.createContext(null),i=r.default.createContext(null),c=r.default.createContext(null),l=r.default.createContext(null);process.env.NODE_ENV!=="production"&&(a.displayName="AppRouterContext",i.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",l.displayName="TemplateContext")}(zt)),zt}var et={exports:{}},tt={exports:{}},cr;function Ho(){return cr||(cr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(a,i){for(var c in i)Object.defineProperty(a,c,{enumerable:!0,get:i[c]})}n(t,{requestIdleCallback:function(){return r},cancelIdleCallback:function(){return s}});const r=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(a){let i=Date.now();return self.setTimeout(function(){a({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-i))}})},1)},s=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(a){return clearTimeout(a)};(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 lr;function gi(){return lr||(lr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const n=x,r=Ho(),s=typeof IntersectionObserver=="function",a=new Map,i=[];function c(f){const m={root:f.root||null,margin:f.rootMargin||""},d=i.find(y=>y.root===m.root&&y.margin===m.margin);let _;if(d&&(_=a.get(d),_))return _;const g=new Map,h=new IntersectionObserver(y=>{y.forEach(v=>{const N=g.get(v.target),S=v.isIntersecting||v.intersectionRatio>0;N&&S&&N(S)})},f);return _={id:m,observer:h,elements:g},i.push(m),a.set(m,_),_}function l(f,m,d){const{id:_,observer:g,elements:h}=c(d);return h.set(f,m),g.observe(f),function(){if(h.delete(f),g.unobserve(f),h.size===0){g.disconnect(),a.delete(_);const v=i.findIndex(N=>N.root===_.root&&N.margin===_.margin);v>-1&&i.splice(v,1)}}}function u(f){let{rootRef:m,rootMargin:d,disabled:_}=f;const g=_||!s,[h,y]=(0,n.useState)(!1),v=(0,n.useRef)(null),N=(0,n.useCallback)(b=>{v.current=b},[]);(0,n.useEffect)(()=>{if(s){if(g||h)return;const b=v.current;if(b&&b.tagName)return l(b,j=>j&&y(j),{root:m==null?void 0:m.current,rootMargin:d})}else if(!h){const b=(0,r.requestIdleCallback)(()=>y(!0));return()=>(0,r.cancelIdleCallback)(b)}},[g,d,m,h,v.current]);const S=(0,n.useCallback)(()=>{y(!1)},[]);return[N,h,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)}(et,et.exports)),et.exports}var nt={exports:{}},rt={exports:{}},qt={},ur;function yi(){return ur||(ur=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(n,r){let s;const a=n.split("/");return(r||[]).some(i=>a[1]&&a[1].toLowerCase()===i.toLowerCase()?(s=i,a.splice(1,1),n=a.join("/")||"/",!0):!1),{pathname:n,detectedLocale:s}}}(qt)),qt}var dr;function vi(){return dr||(dr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});const n=(r,s)=>process.env.__NEXT_I18N_SUPPORT?yi().normalizeLocalePath(r,s):{pathname:r,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)}(rt,rt.exports)),rt.exports}var ot={exports:{}},$t={},fr;function xi(){return fr||(fr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(n,r,s){if(n){s&&(s=s.toLowerCase());for(const c of n){var a,i;const l=(a=c.domain)==null?void 0:a.split(":")[0].toLowerCase();if(r===l||s===c.defaultLocale.toLowerCase()||(i=c.locales)!=null&&i.some(u=>u.toLowerCase()===s))return c}}}}($t)),$t}var mr;function bi(){return mr||(mr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return n}});const n=function(){for(var r=arguments.length,s=new Array(r),a=0;a<r;a++)s[a]=arguments[a];if(process.env.__NEXT_I18N_SUPPORT)return xi().detectDomainLocale(...s)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ot,ot.exports)),ot.exports}var pr;function Ci(){return pr||(pr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return s}});const n=pt(),r=process.env.__NEXT_ROUTER_BASEPATH||"";function s(a,i,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=vi().normalizeLocalePath,f=bi().detectDomainLocale,m=i||u(a,c).detectedLocale,d=f(l,void 0,m);if(d){const _="http"+(d.http?"":"s")+"://",g=m===d.defaultLocale?"":"/"+m;return""+_+d.domain+(0,n.normalizePathTrailingSlash)(""+r+g+a)}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 st={exports:{}},hr;function ji(){return hr||(hr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});const n=Fo(),r=pt(),s=process.env.__NEXT_ROUTER_BASEPATH||"";function a(i,c){return(0,r.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?i:(0,n.addPathPrefix)(i,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)}(st,st.exports)),st.exports}var at={exports:{}},_r;function Si(){return _r||(_r=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(m,d){for(var _ in d)Object.defineProperty(m,_,{enumerable:!0,get:d[_]})}n(t,{PrefetchKind:function(){return f},ACTION_REFRESH:function(){return r},ACTION_NAVIGATE:function(){return s},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return i},ACTION_PREFETCH:function(){return c},ACTION_FAST_REFRESH:function(){return l},ACTION_SERVER_ACTION:function(){return u}});const r="refresh",s="navigate",a="restore",i="server-patch",c="prefetch",l="fast-refresh",u="server-action";var f;(function(m){m.AUTO="auto",m.FULL="full",m.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)}(at,at.exports)),at.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return C}});const r=se._(x),s=fi(),a=Bo(),i=zo(),c=mt(),l=pi(),u=hi(),f=_i(),m=gi(),d=Ci(),_=ji(),g=Si(),h=new Set;function y(j,I,P,R,O,z){if(typeof window>"u"||!z&&!(0,a.isLocalURL)(I))return;if(!R.bypassPrefetchedCheck){const T=typeof R.locale<"u"?R.locale:"locale"in j?j.locale:void 0,M=I+"%"+P+"%"+T;if(h.has(M))return;h.add(M)}const E=z?j.prefetch(I,O):j.prefetch(I,P,R);Promise.resolve(E).catch(T=>{if(process.env.NODE_ENV!=="production")throw T})}function v(j){const P=j.currentTarget.getAttribute("target");return P&&P!=="_self"||j.metaKey||j.ctrlKey||j.shiftKey||j.altKey||j.nativeEvent&&j.nativeEvent.which===2}function N(j,I,P,R,O,z,E,T,M,w){const{nodeName:k}=j.currentTarget;if(k.toUpperCase()==="A"&&(v(j)||!M&&!(0,a.isLocalURL)(P)))return;j.preventDefault();const $=()=>{const W=E??!0;"beforePopState"in I?I[O?"replace":"push"](P,R,{shallow:z,locale:T,scroll:W}):I[O?"replace":"push"](R||P,{forceOptimisticNavigation:!w,scroll:W})};M?r.default.startTransition($):$()}function S(j){return typeof j=="string"?j:(0,i.formatUrl)(j)}const C=r.default.forwardRef(function(I,P){let R;const{href:O,as:z,children:E,prefetch:T=null,passHref:M,replace:w,shallow:k,scroll:q,locale:$,onClick:W,onMouseEnter:Y,onTouchStart:Z,legacyBehavior:re=!1,...Vs}=I;R=E,re&&(typeof R=="string"||typeof R=="number")&&(R=r.default.createElement("a",null,R));const V=r.default.useContext(u.RouterContext),Gs=r.default.useContext(f.AppRouterContext),ce=V??Gs,le=!V,Ae=T!==!1,Ve=T===null?g.PrefetchKind.AUTO:g.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let A=function(D){return new Error("Failed prop type: The prop `"+D.key+"` expects a "+D.expected+" in `<Link>`, but got `"+D.actual+"` instead."+(typeof window<"u"?`
|
|
2
|
-
Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(
|
|
3
|
-
Open your browser's console to view the Component stack trace.`:"")):new Error("No children were passed to <Link> with `href` of `"+
|
|
4
|
-
Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);const Ce=re?K&&typeof K=="object"&&K.ref:P,[Pn,wn,En]=(0,m.useIntersection)({rootMargin:"200px"}),Ks=r.default.useCallback(A=>{(Nn.current!==J||In.current!==ue)&&(En(),Nn.current=J,In.current=ue),Pn(A),Ce&&(typeof Ce=="function"?Ce(A):typeof Ce=="object"&&(Ce.current=A))},[J,Ce,ue,En,Pn]);r.default.useEffect(()=>{process.env.NODE_ENV==="production"&&ce&&(!wn||!Ae||y(ce,ue,J,{locale:$},{kind:Ve},le))},[J,ue,wn,$,Ae,V==null?void 0:V.locale,ce,le,Ve]);const Ge={ref:Ks,onClick(A){if(process.env.NODE_ENV!=="production"&&!A)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!re&&typeof W=="function"&&W(A),re&&K.props&&typeof K.props.onClick=="function"&&K.props.onClick(A),ce&&(A.defaultPrevented||N(A,ce,ue,J,w,k,q,$,le,Ae))},onMouseEnter(A){!re&&typeof Y=="function"&&Y(A),re&&K.props&&typeof K.props.onMouseEnter=="function"&&K.props.onMouseEnter(A),ce&&((!Ae||process.env.NODE_ENV==="development")&&le||y(ce,ue,J,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:Ve},le))},onTouchStart(A){!re&&typeof Z=="function"&&Z(A),re&&K.props&&typeof K.props.onTouchStart=="function"&&K.props.onTouchStart(A),ce&&(!Ae&&le||y(ce,ue,J,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:Ve},le))}};if((0,c.isAbsoluteUrl)(J))Ge.href=J;else if(!re||M||K.type==="a"&&!("href"in K.props)){const A=typeof $<"u"?$:V==null?void 0:V.locale,Me=(V==null?void 0:V.isLocaleDomain)&&(0,d.getDomainLocale)(J,A,V==null?void 0:V.locales,V==null?void 0:V.domainLocales);Ge.href=Me||(0,_.addBasePath)((0,l.addLocale)(J,A,V==null?void 0:V.defaultLocale))}return re?r.default.cloneElement(K,Ge):r.default.createElement("a",{...Vs,...Ge},R)});(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)})(Yt,Yt.exports);var Ii=Yt.exports,Ni=Ii;const te=hn(Ni),Pi=e=>{const t=e.getBlocksAsArray(),n=[];return t.forEach(r=>{const s=r.getType(),a=r.getText();let i;const c=r.getInlineStyleAt(0).toArray();c.length>0&&(i=c.map(u=>{switch(u){case"BOLD":return"font-weight: bold;";case"ITALIC":return"font-style: italic;";case"UNDERLINE":return"text-decoration: underline;";default:return""}}).join(" "));const l={type:"p",text:a,...i&&{styleText:i}};switch(s){case"header-one":l.type="h1";break;case"header-two":l.type="h2";break;case"header-three":l.type="h3";break;case"unordered-list-item":l.type="li";break;case"ordered-list-item":l.type="li";break;case"blockquote":l.type="blockquote";break;case"code-block":l.type="pre";break;default:l.type="p"}n.push(l)}),n},wi=(e,t,n)=>{e.findEntityRanges(r=>{const s=r.getEntity();return s===null?!1:n.getEntity(s).getType()==="LINK"},t)},Zt=e=>{const t=new fe.CompositeDecorator([{strategy:wi,component:te}]),n=fe.convertFromRaw(e);return fe.EditorState.createWithContent(n,t)},Ei=e=>fe.convertFromRaw(e),Jt=fe.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),Ri=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:Zt,EXTENDED_BLOCK_RENDER_MAP:Jt,GET_CONTENT_STATE:Ei,convertDraftToHTML:Pi},Symbol.toStringTag,{value:"Module"})),dt={"responsive-mobile-flex":"_responsive-mobile-flex_t5bry_2","responsive-desktop-flex":"_responsive-desktop-flex_t5bry_13","responsive-mobile-block":"_responsive-mobile-block_t5bry_24","responsive-desktop-block":"_responsive-desktop-block_t5bry_35"},Ti=({slug:e,data:t,SectionZone:n,COMMON_PAGE_COLUMN_GAP:r})=>{const s=t==null?void 0:t.find(f=>{var m,d,_,g;return((d=(m=f.config)==null?void 0:m.responsive)==null?void 0:d.deviceType)==="desktop"&&((g=(_=f.config)==null?void 0:_.seo)==null?void 0:g.slug)===e}),a=s==null?void 0:s.config.responsive.gapCustom,i=s==null?void 0:s.config.responsive.gapSections,c=t==null?void 0:t.find(f=>{var m,d,_,g;return((d=(m=f.config)==null?void 0:m.responsive)==null?void 0:d.deviceType)==="mobile"&&((g=(_=f.config)==null?void 0:_.seo)==null?void 0:g.slug)===e}),l=c==null?void 0:c.config.responsive.gapCustom,u=c==null?void 0:c.config.responsive.gapSections;return o.jsxs(o.Fragment,{children:[o.jsx(p.Utils.Column,{gap:a&&i?i:r,className:p.helpers.classNameConcat(dt["responsive-desktop-flex"],"utils-column-modifier"),children:o.jsx(n,{data:(s==null?void 0:s.sections)??[]})}),o.jsx(p.Utils.Column,{gap:l&&u?u:r,className:p.helpers.classNameConcat(dt["responsive-mobile-flex"],"utils-column-modifier"),children:o.jsx(n,{data:(c==null?void 0:c.sections)??[]})})]})},Ie=e=>({centro:"center",esquerda:"start",direita:"end"})[e],Oi=({expanded:e,content:t})=>o.jsxs("details",{open:e,children:[t.textStructureReduced?o.jsx("summary",{onClick:n=>n.preventDefault(),children:o.jsx(fe.Editor,{editorKey:"draft-editor-1",blockRenderMap:Jt,editorState:t!=null&&t.textStructureReduced?Zt(JSON.parse(t.textStructureReduced)):fe.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):o.jsx(o.Fragment,{}),t.showTextStructureExpander&&t.textStructure?o.jsx(o.Fragment,{children:o.jsx(fe.Editor,{editorKey:"draft-editor-1",blockRenderMap:Jt,editorState:t.textStructure?Zt(JSON.parse(t.textStructure)):fe.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):o.jsx(o.Fragment,{})]}),Ai={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},Mi="_textContentWrapper_1bigo_5",ki="_textContentSection_1bigo_13",en={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:Mi,textContentSection:ki},Di="_link_w24h0_1",Li="_wrapper_w24h0_98",zi="_text_w24h0_106",Bt={link:Di,wrapper:Li,text:zi},Oe=({children:e,adornments:t,className:n,disableUnderline:r,href:s,mode:a,size:i,title:c,onClick:l,disablePadding:u,...f})=>{const m=p.helpers.ValidateProp({fieldTypes:ze.SizesSmallExtended,property:i,fallback:"medium"}),d=p.helpers.ValidateProp({fieldTypes:ze.Mode,property:a,fallback:"default"});return o.jsx(te,{...f,className:p.helpers.classNameConcat(Bt.link,n),href:s&&s.length>0?s:"#","data-size":m,"data-variant":d,title:c||"NextLink","data-disable-underline":r??!1,"data-disable-padding":u??!0,children:o.jsxs("div",{className:Bt.wrapper,onClick:l,children:[t==null?void 0:t.start,o.jsx("p",{className:Bt.text,"data-size":m,children:e}),t==null?void 0:t.end]})})},gn=({data:e})=>{var r;const[t,n]=x.useState(!1);return o.jsx(p.TextStructure.Root,{layoutProps:{textRow:{alignContent:Ie(e.textStructureAlignment),alignItems:Ie(e.textStructureAlignment)},columnWrapper:{alignContent:Ie(e.textStructureAlignment),alignItems:Ie(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?o.jsx(p.Button,{variant:"tertiary",adornment:{end:o.jsx(p.Icon,{name:t?"arrow-up":"arrow-down"})},onClick:()=>n(s=>!s),size:"small",children:t?"Ver Menos":"Ver Mais"}):o.jsx(o.Fragment,{})},children:o.jsxs(p.Utils.Column,{className:en.textContentWrapper,style:{alignItems:Ie(e.textStructureAlignment)},children:[o.jsx(p.TextStructure.DivWrapper,{style:{textAlign:Ie(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:Ai["draftjs-text-modifier"],children:e.textStructureReduced?o.jsx(Oi,{content:e,expanded:t}):o.jsx(o.Fragment,{})}),e.textStructureButtonLabel?o.jsx(Oe,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:en["link-modifier"],adornments:(r=e.textStructureButtonIcon)!=null&&r.length&&e.enableIcon?{end:o.jsx(p.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):o.jsx(o.Fragment,{})]})})},qi=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],gr=e=>({centro:"center",esquerda:"start",direita:"end"})[e],$i="_image_lypfr_1",Bi={image:$i},Fi=({alt:e,className:t,objectFit:n,...r})=>{const{nextimage:s}=ae();return o.jsx(s,{quality:90,...r,alt:e??"",className:p.helpers.classNameConcat(Bi.image,t),"data-object-fit":n??"cover"})},Hi=({videoRef:e,...t})=>o.jsx("video",{...t,ref:e,children:o.jsx("track",{kind:"captions"})}),ie={Image:Fi,Video:Hi},tn=({dateEnd:e,dateInit:t,TIME_ZONE:n="America/Sao_Paulo",...r})=>{const[s,a]=x.useState(Mo(new Tn.TZDate(Date.now(),n),new Tn.TZDate(e,n))),[i,c]=x.useState(!1);x.useEffect(()=>{i||c(!0);const u=setInterval(()=>{if(s<=0){clearInterval(u);return}a(s-1e3)},1e3);return()=>{clearInterval(u)}},[s,a,i]);const l=Le(s,"days");return i&&s>0?o.jsxs(p.Timer.Root,{...r,children:[l?o.jsxs(o.Fragment,{children:[o.jsx(p.Timer.Digit,{label:"dias",value:l}),o.jsx(p.Timer.Separator,{})]}):null,o.jsx(p.Timer.Digit,{label:"horas",value:Le(s,"hours")}),o.jsx(p.Timer.Separator,{}),o.jsx(p.Timer.Digit,{label:"min",value:Le(s,"minutes")}),o.jsx(p.Timer.Separator,{}),o.jsx(p.Timer.Digit,{label:"segs",value:Le(s),suppressHydrationWarning:!0})]}):o.jsx(o.Fragment,{})},yr={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},vr=({data:e,videoUrl:t,priority:n,videoRef:r,...s})=>{const{video:a,image:i,imageHref:c,imageOpacity:l,altImage:u,backgroundColor:f,position:m,contentAlignment:d,showTimer:_,contentOrder:g,timerMode:h,timerEnd:y,timerInit:v,textStructure:N,textStructureReduced:S}=e.banner,b=(c==null?void 0:c.trim())||(i==null?void 0:i.trim())||null,{nextimage:C}=ae();return o.jsxs(p.Banner.Container,{...s,children:[o.jsxs(p.Banner.ImageWrapper,{className:yr["banner-image-wrapper-modifier"],style:l?{background:f}:void 0,children:[a&&o.jsx(ie.Video,{videoRef:r,src:t,autoPlay:n,loop:!0,playsInline:!0,muted:!0}),b&&!(a!=null&&a.length)&&o.jsx(C,{src:b,width:"1920",height:"1080",alt:u??i??"",...n?{priority:n}:{},style:l?{opacity:"0"}:void 0}),!i&&!(a!=null&&a.length)&&o.jsx("div",{style:{background:f}})]}),_||S||N?o.jsx(p.Banner.Slot,{...qi(m??"centro"),className:yr["content-modifier"],style:{textAlign:gr(d)},children:o.jsxs(p.Utils.Column,{gap:"16px",alignItems:gr(d),children:[_&&g==="timer-first"&&o.jsx(tn,{mode:h??"default",size:"small",dateEnd:y?new Date(y):new Date,dateInit:v?new Date(v):new Date}),o.jsx(gn,{data:e.banner}),_&&g!=="timer-first"&&o.jsx(tn,{mode:h??"default",size:"small",dateEnd:y?new Date(y):new Date,dateInit:v?new Date(v):new Date})]})}):o.jsx(o.Fragment,{})]})},Ui={"observer-wrapper":"_observer-wrapper_r43gk_1"};function Wi(e,t,n){const[r,s]=x.useState(!1),{threshold:a}=n||{};return x.useEffect(()=>{if(!e.current)return()=>{};let i=null;const c=new IntersectionObserver(([l])=>{if(n!=null&&n.delay){i&&clearTimeout(i),i=setTimeout(()=>{s(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},n.delay);return}s(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},{threshold:a||1});return c.observe(e.current),()=>{c.disconnect()}},[e]),r}const yn=({children:e,eventData:t,observerOptions:n,callBackWhenVisible:r,stopOnIntersection:s=!0,className:a,...i})=>{const c=x.useRef(null),l=Wi(c,s,n),{sendDataLayerEvent:u}=F();return x.useEffect(()=>{l&&(typeof r=="function"&&r(),t&&u({...t}))},[l]),o.jsx("div",{...i,ref:c,className:p.helpers.classNameConcat(Ui["observer-wrapper"],a),children:e})},Uo=({data:e,className:t,priority:n,creative:r,...s})=>{const{handleSelectPromotionEvent:a,currentLocalRef:i}=F(),{banner:{promotion_name:c},index:l,componentIndex:u}=e,f=typeof l=="number"?`:${l+1}`:"",m={creative_name:r,creative_slot:`${r}-${i.current}:${u+1}${f}`,promotion_id:e.banner.href,promotion_name:c},d=x.useRef(null),_=x.useMemo(()=>{var h;if((h=e.banner.video)!=null&&h.includes("player.vimeo")){const y=e.banner.video.split("?")[1],v=y==null?void 0:y.split("&"),N=v==null?void 0:v.filter(b=>b.includes("loc")||b.includes("signature")||b.includes("user_id")),S=N==null?void 0:N.join("&");return`${e.banner.video.split("?")[0]}?${S}`}return e.banner.video},[e]),g=()=>{var h;(h=d.current)!=null&&h.paused&&d.current.play()};return o.jsx(yn,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...m,index:l}}}},observerOptions:{delay:100,..._&&{threshold:.1}},..._&&{callBackWhenVisible:g},children:e.banner.href?o.jsx(te,{href:e.banner.href,onClick:()=>{a({updatePromotionRef:!0,promotion:m,index:l})},children:o.jsx(vr,{data:e,videoUrl:_,priority:n,videoRef:d,...s})}):o.jsx(vr,{data:e,videoUrl:_,priority:n,videoRef:d,...s})})},Wo=e=>o.jsx(Uo,{...e}),Vi={Banner:Wo},ke={"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"},Gi=({data:e,CONSTANTS:t})=>{var u;const{isMobile:n}=pe(),r=e.config.size??"medium",s=e.config.disableCarouselMobile??!1,{initialize:a,pagination:i,controller:c,itemsStyles:l}=p.Carousel.useCarousel({itemsPerPage:n?e==null?void 0:e.config.slidesPerViewMobile:(u=e==null?void 0:e.config)==null?void 0:u.slidesPerView,gap:n?e.config.gapMobile:e.config.gap,direction:n&&s?"column":"row"});return o.jsx(p.Utils.Column,{style:{width:r==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:o.jsxs(p.Carousel.Root,{innerRef:f=>{a(f)},className:p.helpers.classNameConcat(ke["carousel-modifier"],"common-section"),children:[r==="medium"?o.jsxs(p.TextStructure.Root,{children:[o.jsx(p.TextStructure.DivWrapper,{className:ke["carousel-title-modifier"],children:o.jsx("h2",{className:"typography-style-body-lg",children:t.BENNEFITS_BAR_TITLE})}),n&&i.totalPages>1?o.jsx(p.Carousel.Controller,{className:ke["row-controller-modifier"],children:o.jsxs(p.Carousel.Arrows,{children:[o.jsx(p.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:o.jsx(p.Icon,{name:t.ICONS.arrow_left})}}),o.jsx(p.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:o.jsx(p.Icon,{name:t.ICONS.arrow_right})}})]})}):o.jsx(o.Fragment,{})]}):o.jsx(o.Fragment,{}),o.jsx(p.Carousel.Body,{children:e.bennefit.map((f,m)=>o.jsx(p.Carousel.Item,{className:ke["card-modifier"],style:l,children:o.jsx(p.Card,{stroke:!0,padding:"small",children:o.jsx(p.TextStructure.Root,{layoutProps:{columnWrapper:{alignContent:"start",alignItems:"start",justifyContent:"start"},textRow:{alignContent:"center",alignItems:"center",justifyContent:"center"}},adornment:{[r==="medium"?"top":"start"]:o.jsx(p.Icon,{name:f.icon,size:r==="medium"?"medium":"small"})},children:o.jsxs(p.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=${m}`))}),!n&&i.totalPages>1?o.jsxs(p.Carousel.Controller,{className:ke["row-controller-modifier"],children:[o.jsxs(p.Carousel.Arrows,{children:[o.jsx(p.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:o.jsx(p.Icon,{name:t.ICONS.arrow_left})}}),o.jsx(p.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:o.jsx(p.Icon,{name:t.ICONS.arrow_right})}})]}),o.jsx(p.Carousel.Bullets,{page:i.currentPage,total:i.totalPages,onBulletClick:f=>c==null?void 0:c.navigateTo(f)})]}):o.jsx(o.Fragment,{})]})})},Ki=({data:e})=>o.jsx("div",{className:p.helpers.classNameConcat(en.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:o.jsx(gn,{data:e})}),Xi={Banner:Vi,BannerSection:Uo,BennefitsBarSection:Gi,DataScreening:Ti,SingleBannerSection:Wo,TextContentSection:Ki,TextContent:gn},Qi={Components:Xi,helpers:Ri},ee={"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"},Vo=({brand:e,className:t,name:n,...r})=>o.jsxs("div",{...r,className:p.helpers.classNameConcat(ee["add-to-cart--card--name"],t),children:[o.jsx(p.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),o.jsx(p.TextStructure.Root,{children:o.jsx(p.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:o.jsx("p",{className:"typography-style-body-md",children:n})})})]});Vo.displayName="AddToCart.Card.Name";const Go=({className:e,listPrice:t,price:n,quantity:r,productId:s,...a})=>{const i=me(n/100),c=me(t/100);return o.jsx("div",{...a,className:p.helpers.classNameConcat(ee["add-to-cart--card--price-quantity"],e),children:o.jsx(p.ProductInfo.Root,{size:"small",layout:"vertical",children:o.jsx(p.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:o.jsx(p.ProductInfo.ValuesWrapper,{children:n!==t?o.jsxs(o.Fragment,{children:[o.jsx(p.ProductInfo.Price,{label:"originalPrice",value:i,size:"small"},"price-list"),o.jsx(p.ProductInfo.Price,{label:"discountPrice",value:c,size:"small"},"price-low")]}):o.jsx(p.ProductInfo.Price,{label:"defaultPrice",value:c,size:"small"},"price-low")})})})})};Go.displayName="AddToCart.Card.PriceQuantity";const Yi="_skeleton_12b79_1",Zi={skeleton:Yi},Ji=({style:e})=>o.jsx("div",{style:e,className:Zi.skeleton}),Ko=({className:e,productGroupID:t,size:n,texture:r,...s})=>{const{CONSTANTS:{TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:i}}=be(),[c,l]=x.useState(r??"");return x.useEffect(()=>{c||fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[t]})}).then(u=>u.json()).then(u=>{const f=u.data[0].items[0];if(f){const m=f.images.find(d=>a.includes(d.imageLabel));m!=null&&m.imageUrl?l(m.imageUrl):l(f.images[0].imageUrl)}}).catch(u=>{console.error(u)})},[c,t]),o.jsxs("div",{...s,className:p.helpers.classNameConcat(ee["add-to-cart--card--style-size"],e),children:[o.jsx(p.ToggleStyle.Wrapper,{size:"x-small",style:i,children:o.jsx(p.ToggleStyle.Texture,{children:c?o.jsx(ie.Image,{alt:"",src:c??"",width:164,height:164,style:i}):o.jsx(Ji,{})})}),o.jsx(p.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),n&&o.jsxs(p.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[o.jsx(p.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),o.jsx(p.ToggleSize.Text,{children:n})]})]})};Ko.displayName="AddToCart.Card.StyleSize";const{helpers:ec}=ko,Xo=({className:e,item:t,texture:n,...r})=>{const{itemOffered:{name:s,brand:a,skuName:i,isVariationOf:{productGroupID:c}},quantity:l,price:u,sellingPrice:f}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:m}}=be(),{size:d}=ec.product.getColorAndSizeFromSkuName(i??s,m);return console.log("value size, skuName",{size:d,skuName:i,name:s}),o.jsxs("div",{...r,className:p.helpers.classNameConcat(ee["add-to-cart--card--content"],e),children:[o.jsx(Vo,{brand:a.name,name:s}),o.jsx(Go,{price:u,listPrice:f,quantity:l,productId:t.id}),o.jsx(Ko,{size:d,texture:n,productGroupID:c})]})};Xo.displayName="AddToCart.Card.Content";const Qo=({image:e,thumbnail:t=!1})=>o.jsx(ie.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});Qo.displayName="AddToCart.Card";const Yo=({className:e,item:t,texture:n,thumbnail:r,...s})=>{const{itemOffered:{image:[a]}}=t,i=zr(a.url,{width:200,height:300});return o.jsxs("div",{...s,className:p.helpers.classNameConcat(ee["add-to-cart--card"],e),children:[o.jsx(Qo,{image:{alternateName:a.alternateName||"Produto",url:i||""},thumbnail:r}),!r&&o.jsx(Xo,{item:t,texture:n})]})};Yo.displayName="AddToCart.Card";const Zo=({className:e,children:t,title:n,...r})=>o.jsxs("div",{...r,className:p.helpers.classNameConcat(ee["add-to-cart--content"],e),children:[o.jsx("div",{className:ee["add-to-cart--content--title"],children:n&&o.jsx("h2",{children:n})}),t,o.jsx(ye.Footer,{})]});Zo.displayName="AddToCart.Layout.Content";const Jo=({className:e,...t})=>{var _,g;const{isMobile:n,handleClose:r,CONSTANTS:{ADD_TO_CART:s}}=be(),{cartStore:{totalizers:a},setIsOpen:i}=Te(),c=(_=a.find(h=>h.id==="Discounts"))==null?void 0:_.value,l=((g=a.find(h=>h.id==="Items"))==null?void 0:g.value)??0,u=a.find(h=>h.id==="Shipping"),m=(l-Math.abs(c??0)+((u==null?void 0:u.value)??0))/100,d=me(m??0);return o.jsxs("div",{...t,className:p.helpers.classNameConcat(ee["add-to-cart--footer"],e),children:[o.jsxs("div",{className:ee["add-to-cart--footer--total"],children:[o.jsx("span",{children:"Subtotal:"}),o.jsx("span",{children:d})]}),o.jsx(p.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>i(!0),children:s.footer.bag}),n?o.jsx(p.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:s.footer.keep_buying}):o.jsx(p.Button,{onClick:()=>r(),size:"medium",variant:"tertiary",children:s.footer.keep_buying})]})};Jo.displayName="AddToCart.Layout.Footer";const es=({children:e,className:t,thumbnail:n=!1,...r})=>{const{cartStore:{options:s}}=Te(),{recentlyAddedProducts:a}=Be(),i=a.length>3?4:a.length;return o.jsxs("div",{...r,className:ee["add-to-cart--items"],"data-thumbnail":n,children:[Array.isArray(a)&&a.filter((c,l)=>l<i).map(c=>{var u;const l=(u=s==null?void 0:s.find(f=>f.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:u.texture;return o.jsx(ye.Card,{item:c,thumbnail:n,texture:l},c.itemOffered.sku)}),e]})};es.displayName="AddToCart.Layout.Items";const ts=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:n,setIsOpen:r}=be(),{isMobile:s}=pe();return o.jsxs(p.Modal.Root,{"data-modal":"add-to-cart--modal",className:ee["add-to-cart__modal"],isMobile:s??!1,isOpen:n,setIsOpen:r,variant:"sideBottom",style:{zIndex:t.modal},children:[o.jsx(p.Modal.Header,{navigation:"top",children:o.jsx(p.Modal.Controls,{navigation:"top",isMobile:!0})}),o.jsx(p.Modal.Body,{children:e})]})};ts.displayName="AddToCart.Modal";const tc=({children:e})=>{const{count:t,handleClose:n,setIsOpen:r}=be(),s=x.useRef(t);return x.useEffect(()=>{t>s.current&&r(!0),t<s.current&&s.current>=1&&n(),s.current=t},[t,n,r]),o.jsx(o.Fragment,{children:e})},ns=({children:e,component:t,CONSTANTS:n,...r})=>{const{recentlyAddedProducts:s}=Be(),{isMobile:a}=pe(),i=s.length>3?4:s.length;return o.jsx(Ro,{...r,count:i,isMobile:a,CONSTANTS:n,children:o.jsx(tc,{children:a?o.jsxs(o.Fragment,{children:[o.jsx(ye.Modal,{Z_INDEX_WAR:n.Z_INDEX_WAR,children:t}),e]}):o.jsx(ye.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:n.Z_INDEX_WAR,children:e})})})};ns.displayName="AddToCart.Root";const rs=({children:e,component:t,Z_INDEX_WAR:n,...r})=>{const{contentRef:s,left:a,isLeaving:i,target:c,isOpen:l,top:u}=be();return o.jsx(p.Tooltip.Root,{arrow:"top-right",component:o.jsx("div",{...r,ref:s,children:t}),id:"add-to-cart--tooltip",className:ee["add-to-cart--tooltip"],style:{zIndex:n.modal},isLeaving:i,isOpen:l,left:a,size:"medium",position:"top",top:u,children:o.jsx("div",{className:ee["add-to-cart--tooltip"],ref:c,children:e})})};rs.displayName="AddToCart.Tooltip";const ye={Card:Yo,Content:Zo,Footer:Jo,Items:es,Modal:ts,Root:ns,Tooltip:rs},vn=({title:e,...t})=>{const{recentlyAddedProducts:n}=Be(),{isMobile:r}=pe(),s=n.length>3?4:n.length,a=n.length>(s??1),i=n.length>1;return o.jsx(ye.Root,{isMobile:r,count:n.length,component:o.jsx(ye.Content,{title:e,children:o.jsx(ye.Items,{thumbnail:i,children:a&&o.jsx(p.Badge.Count,{count:n.length-s,size:"medium",variant:"secondary"})})}),...t})};vn.displayName="AddToCart";const xr={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},nc=({children:e,className:t,adornment:n,iconPosition:r,scrollToOptions:s,style:a,...i})=>{const c={top:(s==null?void 0:s.top)??0,left:(s==null?void 0:s.left)??0,behavior:(s==null?void 0:s.behavior)??"smooth"},u=r&&n?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[r]}:{},f=()=>{window&&window.document.body.scrollTo({...c})};return o.jsx(p.Card,{...i,shadow:!0,padding:"small",className:p.helpers.classNameConcat(xr["card-modifier"],t),style:{...a,padding:0},children:o.jsxs("button",{className:xr["backtotop-btn"],onClick:f,style:{...u},"data-orientation":r,children:[n,e]})})},rc=({page:e,data:t})=>{const{pathname:n}=ae(),r=x.useRef(null),{sendDataLayerEvent:s,currentLocalRef:a,itemListRef:i,promotionEventRef:c}=F();return x.useEffect(()=>{const l=Oo("login_event")||"{}",u=JSON.parse(l);if(u.name||u.method){const f=new Date(0);s({functionKey:"readyEvents",data:{event:u.name,readyData:{method:u.method}}}),Ao("login_event","",{expires:f})}},[]),x.useEffect(()=>{if(r.current===n)return;r.current=n;let l={};switch(e){case"PDP":{const f=t,m={};if(!f){l={page_category:"pdp"};break}f.items.forEach(({itemId:d,sellers:_})=>m[d]=_[0].commertialOffer.AvailableQuantity),l={page_category:"pdp",seller_ids:f.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:m,product_reference_id:f.productReference};break}case"PDC":{const{page_category:f,page_departament:m,id:d,name:_}=Wr(),g=_,h=d;l={page_category:"lista_produtos",...m&&{page_departament:m}},i.current={item_list_name:n==="/search"?"busca":g??void 0,item_list_id:n==="/search"?void 0:h??void 0},m&&s({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:f,page_departament:m}}});break}default:l={page_category:e},c.current={},i.current={};break}const u={region:e,...l};a.current=e,s({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...u}},timeout:0})},[n]),null};var nn={exports:{}};function oc(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 Ft={},Ht={},br;function sc(){return br||(br=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return r}});const r=se._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(r.displayName="LoadableContext")}(Ht)),Ht}var Cr;function ac(){return Cr||(Cr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return _}});const n=se._(x),r=sc();function s(g){return g&&g.default?g.default:g}const a=[],i=[];let c=!1;function l(g){let h=g(),y={loading:!0,loaded:null,error:null};return y.promise=h.then(v=>(y.loading=!1,y.loaded=v,v)).catch(v=>{throw y.loading=!1,y.error=v,v}),y}function u(g,h){let y=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},h),v=null;function N(){if(!v){const C=new f(g,y);v={getCurrentValue:C.getCurrentValue.bind(C),subscribe:C.subscribe.bind(C),retry:C.retry.bind(C),promise:C.promise.bind(C)}}return v.promise()}if(typeof window>"u"&&a.push(N),!c&&typeof window<"u"){const C=y.webpack&&typeof oc.resolveWeak=="function"?y.webpack():y.modules;C&&i.push(j=>{for(const I of C)if(j.includes(I))return N()})}function S(){N();const C=n.default.useContext(r.LoadableContext);C&&Array.isArray(y.modules)&&y.modules.forEach(j=>{C(j)})}function b(C,j){S();const I=n.default.useSyncExternalStore(v.subscribe,v.getCurrentValue,v.getCurrentValue);return n.default.useImperativeHandle(j,()=>({retry:v.retry}),[]),n.default.useMemo(()=>I.loading||I.error?n.default.createElement(y.loading,{isLoading:I.loading,pastDelay:I.pastDelay,timedOut:I.timedOut,error:I.error,retry:v.retry}):I.loaded?n.default.createElement(s(I.loaded),C):null,[C,I])}return b.preload=()=>N(),b.displayName="LoadableComponent",n.default.forwardRef(b)}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:h,_opts:y}=this;h.loading&&(typeof y.delay=="number"&&(y.delay===0?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},y.delay)),typeof y.timeout=="number"&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},y.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(v=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(h){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...h},this._callbacks.forEach(y=>y())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(h){return this._callbacks.add(h),()=>{this._callbacks.delete(h)}}constructor(h,y){this._loadFn=h,this._opts=y,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function m(g){return u(l,g)}function d(g,h){let y=[];for(;g.length;){let v=g.pop();y.push(v(h))}return Promise.all(y).then(()=>{if(g.length)return d(g,h)})}m.preloadAll=()=>new Promise((g,h)=>{d(a).then(g,h)}),m.preloadReady=g=>(g===void 0&&(g=[]),new Promise(h=>{const y=()=>(c=!0,h());d(i,g).then(y,y)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=m.preloadReady);const _=m}(Ft)),Ft}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(f,m){for(var d in m)Object.defineProperty(f,d,{enumerable:!0,get:m[d]})}n(t,{noSSR:function(){return l},default:function(){return u}});const r=se,s=r._(x),a=r._(ac()),i=typeof window>"u";function c(f){return{default:(f==null?void 0:f.default)||f}}function l(f,m){if(delete m.webpack,delete m.modules,!i)return f(m);const d=m.loading;return()=>s.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(f,m){let d=a.default,_={loading:y=>{let{error:v,isLoading:N,pastDelay:S}=y;if(!S)return null;if(process.env.NODE_ENV!=="production"){if(N)return null;if(v)return s.default.createElement("p",null,v.message,s.default.createElement("br",null),v.stack)}return null}};f instanceof Promise?_.loader=()=>f:typeof f=="function"?_.loader=f:typeof f=="object"&&(_={..._,...f}),_={..._,...m};const g=_.loader,h=()=>g!=null?g().then(c):Promise.resolve(c(()=>null));return _.loadableGenerated&&(_={..._,..._.loadableGenerated},delete _.loadableGenerated),typeof _.ssr=="boolean"&&!_.ssr?(delete _.webpack,delete _.modules,l(d,_)):d({..._,loader:h})}(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)})(nn,nn.exports);var ic=nn.exports,cc=ic;const xn=hn(cc);var rn={exports:{}},Ut={},jr;function lc(){return jr||(jr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return r}});const r=se._(x).default.createContext({});process.env.NODE_ENV!=="production"&&(r.displayName="HeadManagerContext")}(Ut)),Ut}var it={exports:{}},Sr;function uc(){return Sr||(Sr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(l,u){for(var f in u)Object.defineProperty(l,f,{enumerable:!0,get:u[f]})}n(t,{DOMAttributeNames:function(){return r},isEqualNode:function(){return a},default:function(){return c}});const r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function s(l){let{type:u,props:f}=l;const m=document.createElement(u);for(const g in f){if(!f.hasOwnProperty(g)||g==="children"||g==="dangerouslySetInnerHTML"||f[g]===void 0)continue;const h=r[g]||g.toLowerCase();u==="script"&&(h==="async"||h==="defer"||h==="noModule")?m[h]=!!f[g]:m.setAttribute(h,f[g])}const{children:d,dangerouslySetInnerHTML:_}=f;return _?m.innerHTML=_.__html||"":d&&(m.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),m}function a(l,u){if(l instanceof HTMLElement&&u instanceof HTMLElement){const f=u.getAttribute("nonce");if(f&&!l.getAttribute("nonce")){const m=u.cloneNode(!0);return m.setAttribute("nonce",""),m.nonce=f,f===l.nonce&&l.isEqualNode(m)}}return l.isEqualNode(u)}let i;process.env.__NEXT_STRICT_NEXT_HEAD?i=(l,u)=>{const f=document.querySelector("head");if(!f)return;const m=f.querySelectorAll('meta[name="next-head"]')||[],d=[];if(l==="meta"){const h=f.querySelector("meta[charset]");h&&d.push(h)}for(let h=0;h<m.length;h++){var _;const v=m[h].nextSibling;(v==null||(_=v.tagName)==null?void 0:_.toLowerCase())===l&&d.push(v)}const g=u.map(s).filter(h=>{for(let y=0,v=d.length;y<v;y++){const N=d[y];if(a(N,h))return d.splice(y,1),!1}return!0});d.forEach(h=>{var y;const v=h.previousSibling;if(v&&v.getAttribute("name")==="next-head"){var N;(N=h.parentNode)==null||N.removeChild(v)}(y=h.parentNode)==null||y.removeChild(h)}),g.forEach(h=>{var y;const v=document.createElement("meta");v.name="next-head",v.content="1",((y=h.tagName)==null?void 0:y.toLowerCase())==="meta"&&h.getAttribute("charset")||f.appendChild(v),f.appendChild(h)})}:i=(l,u)=>{const f=document.getElementsByTagName("head")[0],m=f.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!m){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(m.content),_=[];for(let y=0,v=m.previousElementSibling;y<d;y++,v=(v==null?void 0:v.previousElementSibling)||null){var g;(v==null||(g=v.tagName)==null?void 0:g.toLowerCase())===l&&_.push(v)}const h=u.map(s).filter(y=>{for(let v=0,N=_.length;v<N;v++){const S=_[v];if(a(S,y))return _.splice(v,1),!1}return!0});_.forEach(y=>{var v;return(v=y.parentNode)==null?void 0:v.removeChild(y)}),h.forEach(y=>f.insertBefore(y,m)),m.content=(d-_.length+h.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 _=u[d.type]||[];_.push(d),u[d.type]=_});const f=u.title?u.title[0]:null;let m="";if(f){const{children:d}=f.props;m=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}m!==document.title&&(document.title=m),["meta","base","link","style","script"].forEach(d=>{i(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)}(it,it.exports)),it.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function n(C,j){for(var I in j)Object.defineProperty(C,I,{enumerable:!0,get:j[I]})}n(t,{handleClientScriptLoad:function(){return h},initScriptLoader:function(){return N},default:function(){return b}});const r=se,s=Lo(),a=r._(Ys),i=s._(x),c=lc(),l=uc(),u=Ho(),f=new Map,m=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],_=C=>{if(a.default.preinit){C.forEach(j=>{a.default.preinit(j,{as:"style"})});return}if(typeof window<"u"){let j=document.head;C.forEach(I=>{let P=document.createElement("link");P.type="text/css",P.rel="stylesheet",P.href=I,j.appendChild(P)})}},g=C=>{const{src:j,id:I,onLoad:P=()=>{},onReady:R=null,dangerouslySetInnerHTML:O,children:z="",strategy:E="afterInteractive",onError:T,stylesheets:M}=C,w=I||j;if(w&&m.has(w))return;if(f.has(j)){m.add(w),f.get(j).then(P,T);return}const k=()=>{R&&R(),m.add(w)},q=document.createElement("script"),$=new Promise((W,Y)=>{q.addEventListener("load",function(Z){W(),P&&P.call(this,Z),k()}),q.addEventListener("error",function(Z){Y(Z)})}).catch(function(W){T&&T(W)});O?(q.innerHTML=O.__html||"",k()):z?(q.textContent=typeof z=="string"?z:Array.isArray(z)?z.join(""):"",k()):j&&(q.src=j,f.set(j,$));for(const[W,Y]of Object.entries(C)){if(Y===void 0||d.includes(W))continue;const Z=l.DOMAttributeNames[W]||W.toLowerCase();q.setAttribute(Z,Y)}E==="worker"&&q.setAttribute("type","text/partytown"),q.setAttribute("data-nscript",E),M&&_(M),document.body.appendChild(q)};function h(C){const{strategy:j="afterInteractive"}=C;j==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>g(C))}):g(C)}function y(C){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>g(C)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>g(C))})}function v(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(j=>{const I=j.id||j.getAttribute("src");m.add(I)})}function N(C){C.forEach(h),v()}function S(C){const{id:j,src:I="",onLoad:P=()=>{},onReady:R=null,strategy:O="afterInteractive",onError:z,stylesheets:E,...T}=C,{updateScripts:M,scripts:w,getIsSsr:k,appDir:q,nonce:$}=(0,i.useContext)(c.HeadManagerContext),W=(0,i.useRef)(!1);(0,i.useEffect)(()=>{const Z=j||I;W.current||(R&&Z&&m.has(Z)&&R(),W.current=!0)},[R,j,I]);const Y=(0,i.useRef)(!1);if((0,i.useEffect)(()=>{Y.current||(O==="afterInteractive"?g(C):O==="lazyOnload"&&y(C),Y.current=!0)},[C,O]),(O==="beforeInteractive"||O==="worker")&&(M?(w[O]=(w[O]||[]).concat([{id:j,src:I,onLoad:P,onReady:R,onError:z,...T}]),M(w)):k&&k()?m.add(j||I):k&&!k()&&g(C)),q){if(E&&E.forEach(Z=>{a.default.preinit(Z,{as:"style"})}),O==="beforeInteractive")return I?(a.default.preload(I,T.integrity?{as:"script",integrity:T.integrity}:{as:"script"}),i.default.createElement("script",{nonce:$,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([I])+")"}})):(T.dangerouslySetInnerHTML&&(T.children=T.dangerouslySetInnerHTML.__html,delete T.dangerouslySetInnerHTML),i.default.createElement("script",{nonce:$,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...T}])+")"}}));O==="afterInteractive"&&I&&a.default.preload(I,T.integrity?{as:"script",integrity:T.integrity}:{as:"script"})}return null}Object.defineProperty(S,"__nextScript",{value:!0});const b=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)})(rn,rn.exports);var dc=rn.exports,fc=dc;const mc=hn(fc),pc=({children:e,ONE_TRUST:t})=>o.jsxs(o.Fragment,{children:[o.jsx(mc,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),hc=xn(()=>Promise.resolve(pc),{ssr:!1}),_c="_footer__bottom_1otu7_1",gc="_footer__wrapper_1otu7_9",yc="_footer__main_1otu7_41",vc="_footer__legalInformation_1otu7_48",xc="_footer__column_1otu7_70",bc="_footer__columnContent_1otu7_80",Cc="_footer__item_1otu7_84",jc="_footer__itemLink_1otu7_100",Sc="_footer__columnTitle_1otu7_115",Ic="_footer__columnTitleIcon_1otu7_127",Nc="_footer__iconList_1otu7_140",Pc="_footer__itemSmallText_1otu7_150",wc="_payment_1otu7_161",Ec="_footer__iconContainer_1otu7_166",Rc="_footer__iconListSubHeader_1otu7_171",Tc="_accordionWrapper_1otu7_193",Oc="_accordionHeader_1otu7_197",Ac="_accordionTextWrapper_1otu7_201",B={footer__bottom:_c,footer__wrapper:gc,footer__main:yc,footer__legalInformation:vc,footer__column:xc,footer__columnContent:bc,footer__item:Cc,footer__itemLink:jc,footer__columnTitle:Sc,footer__columnTitleIcon:Ic,footer__iconList:Nc,footer__itemSmallText:Pc,payment:wc,footer__iconContainer:Ec,footer__iconListSubHeader:Rc,accordionWrapper:Tc,accordionHeader:Oc,accordionTextWrapper:Ac,"footer--stamps":"_footer--stamps_1otu7_240","footer--stamps--company":"_footer--stamps--company_1otu7_247"},Mc=({name:e,nameIcon:t,maxWidth:n,rowAlignContent:r,columnAlignContent:s,columnAlignItems:a,textAlignContent:i,textAlignItems:c,children:l})=>o.jsx(p.TextStructure.Root,{layoutProps:{textRow:{alignContent:r,alignItems:r},columnWrapper:{alignContent:s,alignItems:a}},children:o.jsxs(p.TextStructure.DivWrapper,{alignContent:i,alignItems:c,className:B.footer__column,children:[o.jsxs("div",{className:t?B.footer__columnTitleIcon:B.footer__columnTitle,children:[o.jsx(p.Icon,{name:`${t}`,size:"small"}),e&&o.jsx("div",{children:e})]}),o.jsx("div",{className:B.footer__columnContent,style:{maxWidth:`${n}px`},children:l})]})}),kc=({name:e,nameIcon:t,maxWidth:n,children:r,...s})=>o.jsxs(p.Accordion.Wrapper,{className:B.accordionWrapper,title:"accordion-wrapper",...s,children:[o.jsx(p.Accordion.Header,{id:(s==null?void 0:s.id)??"",className:B.accordionHeader,closeIndicator:o.jsx(p.Icon,{name:"arrow-up",size:"medium"}),openIndicator:o.jsx(p.Icon,{name:"arrow-down",size:"medium"}),title:"accordion-header",children:o.jsx(p.TextStructure.Root,{children:o.jsxs(p.TextStructure.DivWrapper,{className:t?B.accordionTextWrapper:"",children:[o.jsx(p.Icon,{name:`${t}`,size:"medium"}),o.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),o.jsx(p.Accordion.Body,{title:"accordion-body",children:o.jsx(p.TextStructure.Root,{children:o.jsx(p.TextStructure.DivWrapper,{className:B.footer__columnContent,style:{maxWidth:`${n}px`},children:r})})})]}),Wt=e=>{const{isMobile:t}=pe();return t?o.jsx(kc,{...e}):o.jsx(Mc,{...e})},ct=({type:e,children:t,className:n,collumnName:r,collumnNameIcon:s,icons:a,iconLink:i,iconSize:c,link:l,paymentDisclaimer:u,paymentTitle:f,rowAlignContent:m,columnAlignContent:d,columnAlignItems:_,textAlignContent:g,textAlignItems:h,...y})=>{let v;const{handleSelectContent:N}=F(),{nextimage:S}=ae();switch(e){case"menu":v=o.jsx(te,{className:B.footer__itemLink,href:l??"#",prefetch:!1,children:o.jsx("span",{onClick:()=>{N({content:`footer:${r}:${t}`})},children:t})});break;case"payment":v=o.jsxs("div",{className:p.helpers.classNameConcat(B.payment,B.footer__itemSmallText),...y,children:[u,o.jsxs("div",{className:p.helpers.classNameConcat(B.footer__iconContainer,B.footer__iconListSubHeader),children:[f,o.jsx("div",{className:B.footer__iconList,children:a==null?void 0:a.map((b,C)=>o.jsx(S,{alt:b,src:`/assets/${b}.svg`,width:c??20,height:c??20},C))})]})]});break;case"social-media":v=o.jsx("div",{className:B.footer__iconContainer,...y,children:o.jsx("div",{className:B.footer__iconList,children:i==null?void 0:i.map((b,C)=>o.jsx(te,{prefetch:!1,href:b.link??"#",children:o.jsx(p.Icon,{size:"medium",name:b.icon,onClick:()=>N({content:`footer:redes-sociais:${b.icon}`})})},C))})});break;default:v=o.jsx("div",{className:n,...y,children:t})}return o.jsx(p.TextStructure.Root,{layoutProps:{textRow:{alignContent:m,alignItems:m},columnWrapper:{alignContent:d,alignItems:_}},...y,children:o.jsx(p.TextStructure.DivWrapper,{alignContent:g,alignItems:h,className:p.helpers.classNameConcat(B.footer__item,n),children:v})})},Dc=({className:e,text:t,...n})=>o.jsx("div",{...n,className:p.helpers.classNameConcat(B.footer__legalInformation,e),children:o.jsx("span",{children:t})}),os=()=>{const{nextimage:e}=ae();return o.jsx("div",{className:B["footer--stamps"],children:o.jsx(e,{alt:"Empresa B",className:B["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};os.displayName="Footer.Stamps";const ss=({children:e,legalTextSlot:t,adornment:n,className:r,...s})=>{const{isMobile:a}=pe(),i=x.Children.toArray(e).filter(Boolean),c=i.length;return o.jsxs("div",{className:B.footer__main,children:[(n==null?void 0:n.top)&&o.jsx("div",{className:B.footer__top,children:n==null?void 0:n.top}),c>0&&o.jsx("div",{...s,className:p.helpers.classNameConcat(B.footer__wrapper,r),children:i.map((l,u)=>o.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${a?1:"fit-content"})`},children:l},u))}),(n==null?void 0:n.bottom)&&o.jsx("div",{className:B.footer__bottom,children:n.bottom}),t&&o.jsx("div",{className:B.footer__legalText,children:t})]})};ss.displayName="Footer.Wrapper";const as=({data:{links:{links:e}},payments:t,socialInfo:n,socialMedias:r,adornment:s,LEGAL_INFORMATION_TEXT:a})=>{var i;return o.jsxs(ss,{adornment:s,legalTextSlot:o.jsx(Dc,{text:a}),children:[Array.isArray(e.column)&&e.column.map((c,l)=>o.jsx(Wt,{id:`${l}column-menu`,name:c.name,nameIcon:c.nameIcon,children:c.items.map((u,f)=>o.jsx(ct,{type:"menu",link:u.link,collumnName:c.name,collumnNameIcon:c.nameIcon,children:u.text},f))},l)),t&&((i=t.acceptedFlags)==null?void 0:i.length)>0&&o.jsx(Wt,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,children:o.jsx(ct,{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(Wt,{id:"social-media-column",name:n==null?void 0:n.title,children:[o.jsx(ct,{children:n==null?void 0:n.subTitle}),o.jsx(ct,{type:"social-media",iconSize:24,iconLink:r}),o.jsx(os,{})]})]})};as.displayName="Footer";const bn={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},Cn=({id:e})=>{const{setIsOpen:t,cartStore:{items:n}}=Te(),{handleSelectContent:r}=F(),{CONSTANTS:s}=G();return o.jsx(p.Header.SupportItem,{onClick:()=>{t(!0),r({content:"header:minicart"})},id:e,children:o.jsxs(p.Badge.AutoPositioner,{children:[o.jsx(p.Badge.Count,{count:n.length,size:"medium",variant:"primary",style:{backgroundColor:"black",display:n.length>0?"flex":"none"}}),o.jsx(p.Icon,{name:s.header.ICONS.bag,size:"medium"})]})})};Cn.displayName="Header.Bag";const Ue=({children:e,href:t,...n})=>t&&t!=="#"?o.jsx(te,{href:t.startsWith("/")?t:`/${t}`,...n,children:e}):e,is=()=>{const{headerData:e}=G(),{handleSelectContent:t}=F(),{reset:n,updateValue:r}=_e(),s=a=>{a?r(a):n()};return o.jsx(p.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((a,i)=>o.jsx(Ue,{href:a.link,onMouseEnter:()=>s(a.submenuId),onFocus:()=>s(a.submenuId),children:o.jsx(p.Header.CategoryItem,{className:bn["btn-header"],value:a.submenuId??null,adornment:{start:o.jsx(p.Icon,{name:a.iconStart}),end:o.jsx(p.Icon,{name:a.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${a.label}`})},children:a.label})},`category-${a.label}-${i}`))})};is.displayName="Header.Categories";function Lc({SearchModal:e}){const{handleSelectContent:t}=F(),{CONSTANTS:n}=G(),{setValue:r}=mn();return o.jsxs(o.Fragment,{children:[o.jsx(p.Header.SupportItem,{onClick:()=>{r(!0),t({content:"header:search"})},children:o.jsx(p.Icon,{name:n.header.ICONS.search,size:"medium"})}),o.jsx(e,{recommendations:!1,trends:!0})]})}const zc={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},jn=({thumbnails:e,category:t,isMobile:n=!0,callBack:r})=>{const{handleSelectPromotionEvent:s}=F(),a=50/e.length;return o.jsx("div",{className:zc["menu-subcategories-container"],children:e.map((i,c)=>{const l=n?i.srcMobile:i.srcDesk;if(!l)return null;const u={creative_name:"banner-menu",creative_slot:`banner-menu:${t}:${c+1}`,promotion_id:l,promotion_name:i.promotion_name};return o.jsx(yn,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...u}}}},observerOptions:{delay:1e3},children:o.jsxs(te,{href:i.link??"#",onClick:()=>{typeof r=="function"&&r(),s({updatePromotionRef:!0,promotion:u})},children:[o.jsx(ie.Image,{src:l,alt:i.label??l,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${a}vw`}),i.label&&o.jsx("p",{children:i.label})]})},`thumb-${i.label}-${c}`)})})};jn.displayName="Menu.Thumbnail";const on={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},cs=({children:e,dividerOnRight:t=!0,subMenu:n,...r})=>{var l;const{router:s}=ae(),{reset:a}=_e(),{handleSelectContent:i}=F(),{CONSTANTS:c}=G();return o.jsxs("div",{...r,className:on["menu-categories"],children:[(l=n==null?void 0:n.subCategories)==null?void 0:l.map((u,f)=>{var _,g,h;const m=u.listCollapseDesk&&!((_=u.see_all)!=null&&_.link)?{expandAfterRowsQty:u.rowsToShowDesk}:{},d=u.listCollapseDesk&&!((g=u.see_all)!=null&&g.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(p.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return o.jsxs(p.ComponentList.Structure,{children:[o.jsx(Ue,{href:u.linkLabel,title:u.label,onClick:()=>{u.linkLabel&&(a(),i({content:`menu:${u.label??""}:${n.label??""}`}))},children:o.jsx(p.TextStructure.Root,{children:o.jsx(p.TextStructure.DivWrapper,{children:o.jsx("h2",{children:u.label})})})}),o.jsx(p.ComponentList.List,{columns:1,...m,className:on["submenu-categories"],children:u.items.map((y,v)=>o.jsx(p.ComponentList.ListItem,{id:`list-item-${y.label}-${v}`,children:o.jsx(Oe,{href:y.link??"#",size:"x-small",title:y.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{a(),i({content:`menu:${u.label??""}:${y.label??""}:${n.label??""}`})},children:y.label})},`list-item-${y.label}-${v}`))}),((h=u.see_all)==null?void 0:h.link)&&o.jsx(p.ComponentList.Support,{...d,size:"small",onClick:()=>{var y;(y=u.see_all)!=null&&y.link&&(a(),i({content:`menu:${u.label??""}:${n.label}`}),s.push(u.see_all.link))},children:u.see_all.link&&u.see_all.label})]},`list-${u.label}-${f}`)}),t&&o.jsx(p.Utils.Divider,{size:"small",direction:"vertical"})]})};cs.displayName="Menu.Categories";const ls=({children:e,dividerOnBottom:t=!0,...n})=>{const{CONSTANTS:r}=G();return o.jsxs(o.Fragment,{children:[o.jsx("div",{...n,className:on["menu-desktop"],style:{...n.style,justifyContent:r.header.ALIGNMENT_MENU},children:e}),t&&o.jsx(p.Utils.Divider,{size:"small"})]})};ls.displayName="Menu.MenuRoot";const qc=xn(()=>Promise.resolve(ls),{ssr:!1}),Vt={Root:qc,Categories:cs,Thumbnail:jn},us=()=>{const{headerData:e,CONSTANTS:t}=G(),n=ft(),{reset:r}=_e();return o.jsx(p.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((s,a)=>{const{thumbnails:i,label:c,id:l}=s,u=l===n,f=i==null?void 0:i.some(m=>!!m.srcDesk);return o.jsxs(Vt.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[o.jsx(Vt.Categories,{dividerOnRight:!!f,subMenu:s}),Array.isArray(i)&&o.jsx(Vt.Thumbnail,{thumbnails:i,isMobile:!1,category:c,callBack:r})]},`submenu-${l}-${a}`)})})};us.displayName="Header.SubMenu";const ds=()=>{const{handleSelectContent:e}=F(),{CONSTANTS:t}=G();return o.jsx(te,{href:"/favoritos",children:o.jsx(p.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:o.jsx(p.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};ds.displayName="Header.WishList";const fs=({UserMenu:e,SearchModal:t})=>{const n=x.useRef(null),{CONSTANTS:r}=G(),{handleSelectContent:s}=F(),{reset:a}=_e(),{setValue:i}=pn();return o.jsxs(o.Fragment,{children:[o.jsxs(p.Header.Wrapper,{children:[o.jsx(p.Header.Logo,{style:{width:"100%"},children:o.jsx(te,{href:"/",onMouseEnter:a,children:o.jsx(p.Icon,{name:r.header.ICONS.logo,size:"x-large",onClick:()=>{s({content:"header:logo"})}})})}),o.jsx(is,{}),o.jsxs(p.Header.Support,{onMouseEnter:a,style:{justifyContent:"flex-end"},children:[o.jsx(Lc,{SearchModal:t}),o.jsx(e,{target:n.current,children:o.jsx(p.Header.SupportItem,{onClick:()=>{i(!0),s({content:"header:user_menu"})},className:bn["btn-login"],innerRef:n,children:o.jsx(p.Icon,{name:r.header.ICONS.person,size:"medium"})})}),o.jsx(ds,{}),o.jsx(Cn,{id:"cart-button"})]})]}),o.jsx(us,{})]})};fs.displayName="Header.HeaderDesktopWrapper";const $c="_divider_1lexj_199",H={"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:$c,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},ms=({children:e,mobileBannerAlt:t,mobileBannerSrc:n,onClick:r,textColor:s,...a})=>o.jsx("button",{onClick:r,className:H["menu-categories-btn"],children:n?o.jsxs(p.Banner.Container,{...a,className:H["menu-body-banner-container-modifier"],children:[o.jsx(p.Banner.ImageWrapper,{style:{width:"100%"},children:o.jsx(ie.Image,{src:n,alt:t??n,className:H["menu-categories__banner"],width:343,height:128,unoptimized:!0})}),o.jsx(p.Banner.Slot,{verticalAlignment:"center",horizontalAlignment:"start",children:o.jsx(p.TextStructure.Root,{children:o.jsx(p.TextStructure.DivWrapper,{className:H["menu-categories-textstructure-modifier"],children:o.jsx("h2",{className:"typography-style-body-xs",style:s?{color:s}:{},children:e})})})})]}):o.jsx("h2",{...a,children:e})});ms.displayName="Menu.MenuCategories";const ps=({children:e,link:t})=>{const{reset:n}=xe();return t?o.jsx(te,{href:t??"#",onClick:n,children:e}):e};ps.displayName="Menu.MenuCategoriesWrapper";const hs=({subcategory:e,submenuLabel:t})=>{var l,u,f;const{router:n}=ae(),{reset:r}=xe(),{handleSelectContent:s}=F(),{CONSTANTS:a}=G(),i=e.listCollapseMobile&&!((l=e.see_all)!=null&&l.link)?{expandAfterRowsQty:e.rowsToShowMobile}:{},c=e.listCollapseMobile&&!((u=e.see_all)!=null&&u.link)?{expansivesAdornments:{open:a.header.ICONS.add,close:a.header.ICONS.minus},expansivesLabels:{open:a.header.COMPONENT_LIST.listExpandLabel,close:a.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:o.jsx(p.Icon,{name:a.header.ICONS.arrow_right,size:"small"})}};return o.jsxs(p.ComponentList.Structure,{className:H["menu-submenu--component-list-modifier"],children:[o.jsx(Ue,{href:e.linkLabel,title:e.label,onClick:()=>{r(),s({content:`menu:${e.label??""}:${t}`})},children:o.jsx(p.TextStructure.Root,{children:o.jsx(p.TextStructure.DivWrapper,{children:o.jsx("h2",{className:"typography-style-body-sm-strong",children:e.label})})})}),o.jsx(p.ComponentList.List,{columns:1,...i,className:H["submenu-categories"],children:e.items.map((m,d)=>o.jsx(p.ComponentList.ListItem,{id:`list-item-${m.label}-${d}`,divider:!0,children:o.jsx(Oe,{href:m.link??"#",size:"x-small",title:m.label??"",disableUnderline:!0,onClick:()=>{r(),s({content:`menu:${e.label??""}:${m.label}:${t}`})},children:m.label})},`list-item-${m.label}-${d}`))}),((f=e.see_all)==null?void 0:f.link)&&o.jsx(p.ComponentList.Support,{...c,size:"small",onClick:()=>{var m;r(),s({content:`menu:${e.label??""}:${t}`}),(m=e.see_all)!=null&&m.link&&n.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};hs.displayName="Menu.SubMenuSubCategory";const _s=({submenu:e})=>{var a;const t=ft(),{handleCloseSubMenu:n}=He(),{reset:r}=_e(),{CONSTANTS:s}=G();return o.jsxs("div",{className:H["menu-submenu--item"],style:{display:t===e.id?"flex":"none"},children:[o.jsx(p.TextStructure.Root,{adornment:{start:o.jsx(p.Icon,{name:s.header.ICONS.arrow_back,size:"medium",onClick:n})},layoutProps:{textRow:{alignItems:"center",style:{width:"100%",position:"relative"}},columnWrapper:{alignContent:"center",style:{width:"100%"}}},children:e.label&&o.jsx(p.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:H["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&o.jsx(jn,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:r})}),(a=e==null?void 0:e.subCategories)==null?void 0:a.map((i,c)=>o.jsx(hs,{subcategory:i,submenuLabel:e.label},`list-${i.label}-${c}`))]})};_s.displayName="Menu.SubMenuItem";const gs=()=>{const{headerData:e}=G(),t=ft(),{reset:n}=_e(),{bodyRef:r}=He();return o.jsx(p.Modal.RootWithoutPortal,{isOpen:!!t,setIsOpen:n,parent:r.current,variant:"sideLeft",style:{position:"absolute",width:"100%"},className:H["menu-submenu-modal-modifiier"],children:o.jsx("div",{className:H["menu-submenu"],children:e.subMenus.map((s,a)=>o.jsx(_s,{submenu:s},`submenu-${s.id}-${a}`))})})};gs.displayName="Menu.SubMenu";const ys=({className:e,...t})=>{const{headerData:n}=G(),{setValue:r}=_e(),{bodyRef:s}=He(),{handleSelectContent:a}=F();return o.jsxs("div",{...t,ref:s,id:"menu-body",className:H["menu-body"],children:[o.jsx("div",{className:H["menu-categories-container"],children:n.categories.map((i,c)=>{const l=i.submenuId?{}:{"data-close":!0};return o.jsx(ps,{link:i.submenuId?null:i.link,children:o.jsx(ms,{onClick:()=>{r(i.submenuId??null),a({content:`menu:${i.label}`})},mobileBannerSrc:i.mobileBannerSrc,mobileBannerAlt:i.mobileBannerAlt,textColor:i.textColor,...l,children:i.mobileBannerAlt})},`menu-categories-${c}`)})}),o.jsx(gs,{})]})};ys.displayName="Menu.MenuBody";const vs=({title:e,subtitle:t})=>{const{CONSTANTS:n}=G();return o.jsxs("div",{className:H["menu-header-wrapper"],style:t?{alignItems:"start"}:{alignItems:"center"},children:[(e||t)&&o.jsx(p.TextStructure.Root,{children:o.jsxs(p.TextStructure.DivWrapper,{children:[e&&o.jsx("h2",{className:"typography-style-body-md",children:e}),t&&o.jsx("h3",{children:t})]})}),o.jsx(p.Button,{adornment:{end:o.jsx(p.Icon,{name:n.header.ICONS.close})},variant:"tertiary",className:H["menu-close"],"data-close":!0})]})};vs.displayName="Menu.MenuHeaderWrapper";const xs=({navigationLinks:e})=>{const{reset:t}=xe(),{handleSelectContent:n}=F();return e?o.jsx("nav",{className:H["menu-header-navlinks"],children:e.map((r,s)=>o.jsx(Oe,{href:r.link??"#",adornments:{start:r.iconStart&&o.jsx(p.Icon,{name:r.iconStart}),end:r.iconEnd&&o.jsx(p.Icon,{name:r.iconEnd})},onClick:()=>{t(),n({content:`menu:navigationlinks-${r.label}`})},children:r.label},s))}):null};xs.displayName="Menu.MenuHeaderNavLinks";const bs=()=>{const{headerData:e}=G();return o.jsxs("div",{className:H["menu-header-container"],children:[o.jsx(vs,{title:e.title,subtitle:e.subtitle}),o.jsx(xs,{navigationLinks:e.navigationLinks})]})};bs.displayName="Menu.MenuHeaderContainer";const Cs=({children:e})=>{const{documentBodyRef:t}=He(),{CONSTANTS:n}=G(),r=fn(),{setValue:s}=xe();return o.jsx(p.Modal.RootWithoutPortal,{isOpen:r,setIsOpen:s,parent:t.current,variant:"sideLeft",style:{position:"fixed",zIndex:n.header.Z_INDEX_WAR.menu_mobile,bottom:"unset",top:0,overflowY:"hidden"},className:H["modal-modifier"],children:o.jsx("div",{className:H["menu-mobile"],children:e})})};Cs.displayName="Menu.MenuRoot";const Bc=xn(()=>Promise.resolve(Cs),{ssr:!1}),ut=({children:e,...t})=>o.jsxs(o.Fragment,{children:[o.jsx(p.Button,{...t,className:H["menu-navigationbar-item"],children:e}),o.jsx(p.Utils.Divider,{direction:"vertical",size:"small",className:H.divider})]});ut.displayName="Menu.NavigationBarItem";const js=()=>{const{setIsOpen:e}=Te(),{reset:t}=xe(),{setValue:n}=pn(),{handleSelectContent:r}=F(),{CONSTANTS:s}=G(),{router:a}=ae();return o.jsxs(p.Card,{id:"menu-navigationbar",shadow:!0,className:H["menu-navigationbar"],style:{zIndex:s.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:[o.jsx(ut,{size:"small",variant:"tertiary",iconNameStart:s.header.MENU_INFO.login.button_icon,onClick:()=>{t(),n(!0),r({content:"menu:user_menu"})},children:s.header.MENU_INFO.login.button_text}),o.jsx(ut,{size:"small",variant:"tertiary",iconNameStart:s.header.MENU_INFO.bag.button_icon,onClick:()=>{t(),e(!0),r({content:"menu:minicart"})},children:s.header.MENU_INFO.bag.button_text}),o.jsx(ut,{size:"small",variant:"tertiary",iconNameStart:s.header.MENU_INFO.store.button_icon,onClick:()=>{a.push("/institucional/lojas"),t(),r({content:"menu:store"})},children:s.header.MENU_INFO.store.button_text})]})};js.displayName="Menu.NavigationBar";const lt={Root:Bc,NavigationBar:js,Header:bs,Body:ys},Ss=({UserMenu:e,SearchModal:t})=>{const n=x.useRef(null),{CONSTANTS:r}=G(),{MENU_NAVIGATION_BAR_ALLOWED:s,ICONS:a}=r.header,{handleSelectContent:i}=F(),{setValue:c}=mn(),{setValue:l}=xe();return o.jsxs(o.Fragment,{children:[o.jsxs(p.Header.Wrapper,{children:[o.jsx(p.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:o.jsx(te,{href:"/",children:o.jsx(p.Icon,{name:a.logo,size:"x-large",onClick:()=>{i({content:"header:logo"})}})})}),o.jsxs(p.Header.Support,{children:[o.jsx(p.Header.SupportItem,{onClick:()=>{c(!0),i({content:"header:search"})},children:o.jsx(p.Icon,{name:a.search,size:"medium"})}),o.jsx(Cn,{}),o.jsxs(p.Header.SupportItem,{onClick:()=>l(!0),children:[o.jsx("span",{ref:n}),o.jsx(p.Icon,{name:a.menu,size:"medium"})]})]})]}),o.jsx(t,{recommendations:!1,trends:!0}),o.jsx(wo,{children:o.jsx(e,{target:n==null?void 0:n.current,children:o.jsxs(lt.Root,{children:[o.jsx(lt.Header,{}),o.jsx(lt.Body,{}),s?o.jsx(lt.NavigationBar,{}):o.jsx(o.Fragment,{})]})})})]})};Ss.displayName="Header.HeaderMobileWrapper";const Is=({tipBar:e,miniCart:t,UserMenu:n,SearchModal:r})=>{const{structureRef:s,rootRef:a,CONSTANTS:i}=G(),{header:{HEADER_CONFIGS:c,Z_INDEX_WAR:l}}=i;return o.jsx(p.Header.Structure,{innerRef:s,adornment:{start:e},style:{position:"sticky",top:0,zIndex:l.header},className:bn["header-animation"],children:o.jsxs(p.Header.Root,{innerRef:a,style:{zIndex:l.header},variant:c.default_variant,interactiveVariant:c.interactive_variant,children:[o.jsx("div",{className:dt["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:l.header_mobile},children:o.jsx(Ss,{UserMenu:n,SearchModal:r})}),o.jsx("div",{className:dt["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:l.header_desktop},children:o.jsx(fs,{UserMenu:n,SearchModal:r})}),t,o.jsx(vn,{title:"Produto adicionado à sua sacola!",CONSTANTS:i.addToCart})]})})};Is.displayName="Header";const Fc="_shippingFreight_6z8rf_6",Hc="_shippingFreight__postalCodeGrid_6z8rf_10",Uc="_shippingFreight__grid_6z8rf_14",Wc="_shippingFreight__grid__title_6z8rf_18",Vc="_shippingFreight__grid__remember_6z8rf_29",Gc="_postalCodeContainer_6z8rf_44",Kc="_deliveryStatusBar__tag_6z8rf_49",Xc="_deliveryStatusBarError__tag_6z8rf_66",Qc="_deliveryInfo_6z8rf_74",Yc="_deliveryInfo__content_6z8rf_78",Zc="_deliveryInfo__text_6z8rf_84",Jc="_deliveryInfo__title_6z8rf_89",el="_deliveryInfo__subtitle_6z8rf_99",tl="_deliveryInfo__tooltipIcon_6z8rf_109",nl="_deliveryInfo__tooltip_6z8rf_109",rl="_freightGrid_6z8rf_148",ol="_freightContainer_6z8rf_155",sl="_freightOption__content_6z8rf_160",al="_freightOption__value_6z8rf_166",il="_freightOption__title_6z8rf_177",cl="_freightOption__title_item_6z8rf_181",ll="_freightOption__paragraph_6z8rf_192",L={shippingFreight:Fc,shippingFreight__postalCodeGrid:Hc,shippingFreight__grid:Uc,shippingFreight__grid__title:Wc,shippingFreight__grid__remember:Vc,postalCodeContainer:Gc,deliveryStatusBar__tag:Kc,deliveryStatusBarError__tag:Xc,deliveryInfo:Qc,deliveryInfo__content:Yc,deliveryInfo__text:Zc,deliveryInfo__title:Jc,deliveryInfo__subtitle:el,deliveryInfo__tooltipIcon:tl,deliveryInfo__tooltip:nl,freightGrid:rl,freightContainer:ol,freightOption__content:sl,freightOption__value:al,freightOption__title:il,freightOption__title_item:cl,freightOption__paragraph:ll,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},ul=({icon:e,title:t,subtitle:n,packageCount:r,packageUnit:s="",labelDescription:a,freightConfig:i,toolTipZIndex:c})=>{const[l,u]=x.useState(!1),f=x.useRef(null),m=()=>u(d=>!d);return o.jsxs("div",{className:L.deliveryInfo,ref:f,children:[o.jsx(p.Tooltip.Root,{arrow:"bottom",component:o.jsx("div",{children:o.jsx("p",{children:i.messages.select_size_tag})}),id:"freight--tooltip",className:L["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:f.current}),o.jsxs("div",{className:L.deliveryInfo__content,children:[o.jsx("div",{className:L.deliveryInfo__icon,children:o.jsx(p.Icon,{name:e,size:"medium"})}),o.jsxs("div",{className:L.deliveryInfo__text,children:[o.jsxs("span",{className:L.deliveryInfo__title,children:[t," ",r," ",s]}),n&&o.jsx("span",{className:L.deliveryInfo__subtitle,children:n})]}),a&&o.jsxs("div",{className:L.deliveryInfo__tooltipIcon,onMouseEnter:m,onMouseLeave:m,"aria-label":"Mostrar descrição",children:[o.jsx("span",{children:o.jsx(p.Icon,{name:i.icons.feedback_help,size:"small"})}),l&&o.jsx("div",{className:L.deliveryInfo__tooltip,children:a})]})]})]})},dl=({value:e,title:t,paragraph:n})=>o.jsx("div",{className:L.freightOption,children:o.jsxs("div",{className:L.freightOption__content,children:[o.jsx("span",{className:L.freightOption__value,children:e}),o.jsx("span",{className:L.freightOption__title,children:o.jsx(p.TextStructure.Root,{children:o.jsxs(p.TextStructure.DivWrapper,{className:L.footer__item,children:[o.jsx("span",{className:L.freightOption__title_item,children:t}),n&&o.jsx("span",{className:L.freightOption__paragraph,children:n})]})})})]})}),fl=({children:e})=>o.jsx("div",{className:L.freightContainer,children:e}),ml=({children:e})=>o.jsx("div",{className:L.freightGrid,children:e}),pl=({children:e})=>o.jsx("div",{className:L.postalCodeContainer,children:e}),Ir=({message:e,seller:t="",size:n="small",setError:r})=>o.jsx("div",{className:r?L.deliveryStatusBarError:L.deliveryStatusBar,children:o.jsxs(p.Tag,{title:e,className:r?L.deliveryStatusBarError__tag:L.deliveryStatusBar__tag,size:n,children:[e," ",!r&&t]})}),hl=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},_l=e=>{var n,r,s;const t=[];return(s=(r=(n=e==null?void 0:e.logisticsInfo)==null?void 0:n[0])==null?void 0:r.slas)==null||s.forEach(a=>{t.push({id:a.id,name:a.name,price:a.price,shippingEstimate:a.shippingEstimate})}),t},gl=({component:e,parent:t,top:n,left:r,target:s,contentRef:a,freightConfig:i,toolTipZIndex:c=999,...l})=>{const{isMobile:u}=pe();return o.jsx(o.Fragment,{children:u?o.jsx(p.Tooltip.Root,{arrow:"bottom",component:o.jsxs("div",{...l,ref:a,children:[e,o.jsx("p",{children:i.messages.select_size_tag})]}),id:"freight--tooltip",className:L["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:t}):o.jsx(p.Tooltip.Root,{arrow:"bottom",component:o.jsxs("div",{...l,ref:a,children:[e,o.jsx("p",{children:i.messages.select_size_tag})]}),id:"freight--tooltip",className:L["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:t})})},yl=({onUpdateFreightItems:e,sellerId:t,size:n,skuId:r,quantity:s,setError:a,setIsButtonClicked:i,component:c,freightConfig:l,toolTipZIndex:u})=>{var z,E,T,M;const f=we(),m=we(w=>w.shipping),[d,_]=x.useState(),[g,h]=x.useState(!1),[y,v]=x.useState(!1),[N,S]=x.useState(!1),b=(E=(z=f.shippingData)==null?void 0:z.address)==null?void 0:E.postalCode,C=!(d!=null&&d.length)&&b?b:d,j=x.useRef(null),I=async w=>{const q=w.target.value.replace(/\D/g,"").slice(0,8);q.length>5?_(q.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):_(q)},P=async w=>{const k=w.target.value.replace(/\D/g,"");try{if((await On.get(`https://viacep.com.br/ws/${k}/json/`)).data.erro){a&&a(l.messages.cep_not_found),i(!1),v(!0);return}a&&a(""),v(!1)}catch{console.log("Erro ao validar o CEP. Tente novamente mais tarde.")}},R=async()=>{h(!0);try{const w=await On.post("/api/checkout/simulation",{items:[{id:r,quantity:s,seller:t}],country:"BRA",postalCode:C});e(_l(w.data))}catch(w){console.error("Erro ao atualizar o documento:",w)}finally{h(!1),m(C,"BRA")}},O=async()=>{if(!r){S(!0),setTimeout(()=>S(!1),1500);return}await P({target:{value:C}}),g||(R(),i(!0))};return o.jsxs("div",{ref:j,style:{position:"relative"},children:[!r&&N?o.jsx(gl,{component:c,isOpen:N,parent:j.current,toolTipZIndex:u,freightConfig:l}):o.jsx(o.Fragment,{}),o.jsx("div",{style:{position:"relative"},children:o.jsx(p.TextField.Structure,{title:"structure",style:{width:"100%"},input:o.jsx(p.TextField.Input,{defaultValue:(M=(T=f.shippingData)==null?void 0:T.address)==null?void 0:M.postalCode,label:l.messages.text_input_label,title:"textfield",value:d,sizeVariant:n,onMouseOver:()=>r?null:S(!0),onMouseOut:()=>r?null:S(!1),mode:"simple",onChange:I,onKeyDown:w=>{w.key==="Enter"&&O()},className:L["input-modifier"],feedback:y?"error":"none"}),right:o.jsx(p.Button,{onClick:O,size:n,title:"button",children:g?o.jsx(p.Spinner,{size:"small",indicatorColor:"#ffffff"}):l.messages.text_input_btn})})})]})},vl=({children:e,freightConfig:t})=>o.jsxs("div",{className:L.shippingFreight,children:[o.jsxs("div",{className:L.shippingFreight__grid,children:[o.jsx("span",{className:L.shippingFreight__grid__title,children:t.messages.title}),o.jsx("span",{className:L.shippingFreight__grid__remember,children:o.jsx(Oe,{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:L.shippingFreight__postalCodeGrid,children:e})]}),xl=({children:e})=>o.jsx("div",{className:L.freightContainer,children:e}),bl=({className:e,sellerId:t,skuId:n,quantity:r,size:s,seller:a,local:i,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:l}=F(),[u,f]=x.useState(""),[m,d]=x.useState([]),[_,g]=x.useState(""),[h,y]=x.useState(!1),v=S=>f(S),N=S=>{d(S),l({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:{shippings:S.map(b=>({shipping_tier:b.id,delivery_time:b.shippingEstimate.replace("bd",""),flag_pickup:b.name.toLowerCase().includes("retirada")?"true":"false",shipping:b.price,currency:c.currency||"BRL"}))}}})};return o.jsxs(xl,{className:e,children:[o.jsxs(vl,{freightConfig:c.freightConfig,children:[o.jsx(pl,{children:o.jsx(yl,{onUpdateFreightItems:N,skuId:n,quantity:r,size:s,sellerId:t,local:i,setError:g,setIsButtonClicked:y,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),_?o.jsx(Ir,{size:s,message:_,setError:g}):m.length>0&&o.jsx(Ir,{size:s,message:c.freightConfig.messages.delivered_by,seller:a})]}),h&&!_?m.length>0&&o.jsxs(fl,{children:[o.jsx(ml,{children:m.filter(({id:S})=>!S.includes("Retirada")).map(S=>o.jsx(dl,{id:S.id,value:Tr({valueInCents:S.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:S.name,paragraph:`${c.freightConfig.messages.prefix_days}${hl(S.shippingEstimate)}`,radioValue:u,changeValue:v},S.id))}),c.deliveryInfoBoxesAllowed?o.jsx(ul,{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]})},Ns=x.createContext({}),Cl=({children:e,item:t,index:n,shelfTitle:r,...s})=>{const[a,i]=x.useState(null),c=x.useRef(null),l=x.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:u,itemListRef:f}=F(),m=h=>{u({functionKey:"productEvents",data:{commonData:{...t,availableSizes:l.current.availableSkus,...l.current.priceInfo},customData:{index:n+1},event:h}})},d=()=>{m("add_to_wishlist")},_=()=>{u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...l.current.priceInfo}]},supportData:{selectedSku:a,selectedSkus:[a]},customData:{index:n}}})},g=()=>{r&&(f.current={item_list_name:r}),m("select_item")};return o.jsx(Ns.Provider,{value:x.useMemo(()=>({...s,index:n,item:t,element:c,selectedSku:a,setSelectedSku:i,eventDataRef:l,sendAddToWishlistEvent:d,sendSelectItemEvent:g,sendAddToCartEvent:_}),[s,t,c,a]),children:e})},ne=()=>{const e=x.useContext(Ns);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},X={"product-card--actions":"_product-card--actions_qxtc1_1","product-card--actions--group":"_product-card--actions--group_qxtc1_9","product-card--actions--selectors":"_product-card--actions--selectors_qxtc1_21","product-card--body":"_product-card--body_qxtc1_33","product-card--header":"_product-card--header_qxtc1_47","product-card--footer":"_product-card--footer_qxtc1_67","product-card--image":"_product-card--image_qxtc1_90","product-card--image--container":"_product-card--image--container_qxtc1_97","product-card--outstock":"_product-card--outstock_qxtc1_133","product-card--price":"_product-card--price_qxtc1_155","product-card--title":"_product-card--title_qxtc1_180","product-card--title--tag":"_product-card--title--tag_qxtc1_186","product-card--title--content":"_product-card--title--content_qxtc1_203","product-card--selectors--size":"_product-card--selectors--size_qxtc1_243","product-card--selectors--size--button":"_product-card--selectors--size--button_qxtc1_269","product-card--selectors--size--skus":"_product-card--selectors--size--skus_qxtc1_278","product-card--selectors--style":"_product-card--selectors--style_qxtc1_292","product-card--selectors--style--more":"_product-card--selectors--style--more_qxtc1_302","product-card--video":"_product-card--video_qxtc1_319","product-card--wrapper":"_product-card--wrapper_qxtc1_345"},Ps=({callback:e,children:t,className:n,data:r,isKit:s,...a})=>{const{item:{availability:{status:i},image:c}}=ne();return i?o.jsxs("div",{...a,className:p.helpers.classNameConcat(X["product-card--actions"],n),children:[o.jsxs(Pe.Wrapper,{type:"actions--group",children:[o.jsx(Pe.Price,{}),o.jsx("div",{className:X["product-card--actions--selectors"],children:!s&&o.jsx(Pe.StyleSelector,{data:r,images:c,callback:e})})]}),t]}):null};Ps.displayName="ProductCard.Actions";const ws=({className:e,isKit:t,...n})=>{const{addToCart:r}=Te(),{isMobile:s=!1,selectedSku:a,outStock:i,item:c,sendAddToCartEvent:l,CONSTANTS:u}=ne(),f=()=>{var _;if(!a)return;const d=kr(a.offers.offers,u.StoreConfig_MainSellerId);d&&r({id:a==null?void 0:a.sku,quantity:1,seller:d.seller.identifier},{id:c.id,texture:(_=c==null?void 0:c.image.find(g=>u.TEXTURE_IMAGE.includes(g.alternateName)))==null?void 0:_.url}),l()},m=a?u.BUY_BUTTON_LABELS.add_to_cart:u.BUY_BUTTON_LABELS.select_size;return o.jsx(p.Button,{...n,className:p.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!a&&!i,size:s?"medium":"large",variant:i?"secondary":"primary",onClick:i?n.onClick:f,children:i?"Avise-me quando chegar":m})};ws.displayName="ProductCard.Actions.BuyButton";const Es=({product:e,tag:t,size:n="small"})=>{const r=e.offers.offers[0],{CONSTANTS:s,WishListToggle:a}=ne();return o.jsxs(Pe.Wrapper,{type:"header",style:{zIndex:s.Z_INDEX_WAR.product_card_header},children:[t?o.jsx(p.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?o.jsx(p.Icon,{name:t.icon,size:"small",style:{color:t.iconColor}}):null},size:n,variant:"quaternary",style:{background:t.tagColor,color:t.textColor},children:t.value}):null,s.PRODUCT_CARD_TOP_WISHLIST_TOGGLE&&o.jsx(a,{product:e,priceInfo:{price:r.price,listPrice:r.listPrice},variant:"card"})]})};Es.displayName="ProductCard.Actions.Header";const Rs=({className:e,children:t,hasPriority:n=!1,showVideo:r=!1,...s})=>{const{element:a,index:i,item:{image:c,slug:l,video:u},sendSelectItemEvent:f,order:m,CONSTANTS:d}=ne(),_=qr({images:c,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return o.jsxs("div",{...s,className:p.helpers.classNameConcat(X["product-card--image"],e),ref:a,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[o.jsx(te,{href:`/${l}/p`,onClick:f,onMouseUp:g=>{g.button===1&&f(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(m))},children:o.jsx("div",{className:X["product-card--image--container"],children:Array.isArray(_)&&_.map(({url:g,alternateName:h},y)=>x.createElement(ie.Image,{...d.PRODUCT_IMAGE_DIMENSIONS.product_card,style:d.PRODUCT_IMAGE_DIMENSIONS.product_card,alt:h??"product image",key:y,...n&&{priority:y===0&&i<4},objectFit:"cover",src:g}))})}),d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&r&&u&&o.jsx(Pe.Video,{url:u,poster:_[0].url}),t]})};Rs.displayName="ProductCard.Media.Media";const Ts=({className:e,callback:t,children:n,...r})=>{const{isMobile:s,item:a,CONSTANTS:{PRODUCT_CARD_TEXTS:i}}=ne(),{availability:{status:c}}=a;return c?null:o.jsxs("div",{...r,className:p.helpers.classNameConcat(X["product-card--outstock"],e),children:[o.jsx(p.Tag,{size:"small",variant:"secondary",title:i.disabled,children:i.disabled}),o.jsx(p.Button,{className:p.helpers.classNameConcat(e,"buy-button"),size:s?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(a)},children:i.notify})]})};Ts.displayName="ProductCard.OutStock";const Os=({children:e,className:t="",index:n,isMobile:r=!1,item:s,size:a,order:i,outStock:c,shelfTitle:l,CONSTANTS:u,WishListToggle:f,...m})=>o.jsx(Cl,{item:s,isMobile:r,outStock:c,order:i,size:a,index:n,shelfTitle:l,CONSTANTS:u,WishListToggle:f,children:o.jsx("div",{...m,className:p.helpers.classNameConcat(X["product-card--wrapper"],t),"data-size":a,children:e})});Os.displayName="ProductCard.Root";const As=({disabled:e,label:t,size:n,value:r,onClick:s,...a})=>o.jsxs(p.ToggleSize.Wrapper,{...a,disabled:!1,outOfStock:e,size:n,onClick:s,children:[o.jsx(p.ToggleSize.DisabledAdornment,{}),o.jsx(p.ToggleSize.Text,{children:t})]});As.displayName="ProductCard.SizeSelector.Item";const Ms=({active:e=!1,callback:t,selectedSku:n=null,item:r,setNotify:s})=>{const{item:a,isMobile:i,setSelectedSku:c,eventDataRef:l}=ne();r.productId=a.id;const u=Mr(r),f=Or(r,"tamanho");!u&&!l.current.availableSkus.includes(f)&&l.current.availableSkus.push(f);const m=x.useCallback(_=>{const g=n===_?null:_;typeof c=="function"&&c(g),typeof t=="function"&&t(g)},[t,c,n]),d=x.useCallback(()=>{if(u&&typeof s=="function"){s(a,r);return}m(r)},[r,s,m,u,a]);return o.jsx(As,{active:e,disabled:u,label:f,onClick:()=>d(),size:i?"x-small":"small",value:r})};Ms.displayName="ProductCard.SizeSelector.SkuItem";const ks=({callback:e,className:t="",children:n,setNotify:r,...s})=>{const{isMobile:a,item:{isVariantOf:{hasVariant:i}},selectedSku:c}=ne();return o.jsxs("div",{...s,className:p.helpers.classNameConcat(X["product-card--selectors--size"],t),"data-mobile":a,children:[o.jsx("div",{className:X["product-card--selectors--size--skus"],children:Array.isArray(i)&&i.map((l,u)=>o.jsx(Ms,{active:c===l,callback:e,item:l,selectedSku:c,setNotify:r},`size--${u}--${l.sku}`))}),o.jsx("div",{className:X["product-card--selectors--size--button"],children:n})]})};ks.displayName="ProductCard.SizeSelector";const sn=({alt:e="",callback:t,more:n,total:r=4,src:s,url:a,...i})=>o.jsxs(p.ToggleStyle.Wrapper,{...i,onClick:()=>{typeof t=="function"&&t(a)},children:[o.jsx(p.ToggleStyle.DisabledAdornment,{}),o.jsxs(p.ToggleStyle.Texture,{children:[s&&o.jsx(ie.Image,{alt:e??s,src:s,height:34,width:34}),n&&o.jsx(p.TextStructure.DivWrapper,{className:X["product-card--selectors--style--more"],children:o.jsxs("p",{children:["+ ",r]})})]})]}),jl=({children:e,callback:t,data:n,total:r=4,size:s,...a})=>{const{index:i}=ne(),{triggerSelectItemEventRef:c}=F();return o.jsxs("div",{...a,children:[e,Array.isArray(n)&&n.slice(0,r).map((l,u)=>o.jsx(sn,{callback:f=>{c.current.trigger=!0,c.current.index=i,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:s},u)),Array.isArray(n)&&(n==null?void 0:n.length)>r&&o.jsx(sn,{size:s,total:n.length-r,more:!0})]})},Ds=({callback:e,className:t,data:n,images:r=[],findTexture:s,...a})=>{const{CONSTANTS:i}=ne(),c=s||i.TEXTURE_IMAGE,l=r==null?void 0:r.find(u=>c.includes(u.alternateName));return o.jsx(jl,{...a,callback:e,className:p.helpers.classNameConcat(X["product-card--selectors--style"],t),data:n,size:"x-small",children:l&&o.jsx(sn,{active:!0,size:"x-small",src:l.url})})};Ds.displayName="ProductCard.StyleSelector";const Ls=({className:e,hasDecimal:t,...n})=>{const{isMobile:r,item:{offers:{lowPrice:s,highPrice:a},installments:{count:i,value:c}},eventDataRef:l}=ne();l.current.priceInfo={price:s,listPrice:a};const u=me(a,t),f=me(s,t),m=me(c??0),d=r?"horizontal":"stacked";return o.jsx("div",{...n,className:p.helpers.classNameConcat(X["product-card--price"],e),"data-mobile":r,children:o.jsx(p.ProductInfo.Root,{size:"small",layout:d,children:o.jsxs(p.ProductInfo.Wrapper,{size:"small",layout:d,children:[o.jsx(p.ProductInfo.ValuesWrapper,{children:f!==u?o.jsxs(o.Fragment,{children:[o.jsx(p.ProductInfo.Price,{label:"originalPrice",value:u,size:"small"}),o.jsx(p.ProductInfo.Price,{label:"discountPrice",value:f,size:"small"})]}):o.jsx(p.ProductInfo.Price,{label:"defaultPrice",value:f,size:"small"})}),i&&i>1&&c?o.jsx(p.ProductInfo.Price,{label:"installment",value:`${i}x ${m}`,size:"small"}):null]})})})};Ls.displayName="ProductCard.Price";const zs=({tag:e,className:t})=>{const{item:{name:n}}=ne();return o.jsxs("div",{className:p.helpers.classNameConcat(X["product-card--title"],t),children:[o.jsx("div",{className:X["product-card--title--tag"],children:e?o.jsx(p.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?o.jsx(p.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:X["product-card--title--content"],children:n&&o.jsx(p.TextStructure.Root,{children:o.jsx(p.TextStructure.DivWrapper,{children:o.jsx("h3",{children:n})})})})]})};zs.displayName="ProductCard.Title";const qs=({className:e,url:t,poster:n,...r})=>{const{element:s}=ne();return x.useEffect(()=>{if(!(s!=null&&s.current))return;const a=s.current,i=a.querySelector("video");if(i){const c=new IntersectionObserver(f=>{f.forEach(m=>{$r(m.isIntersecting,i,t)})},{root:null,rootMargin:"0px",threshold:.5}),l=()=>{i.setAttribute("data-loaded","true")},u=()=>{a&&(c.observe(a),i.addEventListener("loadeddata",l))};return document.readyState==="complete"?u():window.addEventListener("load",u),()=>{c.disconnect(),window.removeEventListener("load",u)}}return()=>null},[t,s]),o.jsx("div",{...r,className:p.helpers.classNameConcat(X["product-card--video"],e),children:t&&o.jsx(ie.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:n})})};qs.displayName="ProductCard.Media.Video";const $s=({children:e,className:t,type:n,...r})=>o.jsx("div",{...r,className:p.helpers.classNameConcat(X[`product-card--${n}`],t),children:e});$s.displayName="ProductCard.Wrapper";const Pe={Actions:Ps,BuyButton:ws,Header:Es,Media:Rs,Root:Os,OutStock:Ts,Price:Ls,SizeSelector:ks,StyleSelector:Ds,Title:zs,Video:qs,Wrapper:$s},Nr=({image:e,index:t,handleZoom:n,PRODUCT_IMAGE_DIMENSIONS:r})=>{const s=Lr(e.imageUrl,r.pdp),{nextimage:a}=ae();return o.jsx(a,{src:s,alt:e.imageLabel,objectFit:"contain",...r.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{n(t)}},t)},Sl=({video:e,productName:t,poster:n})=>{const{sendDataLayerEvent:r}=F(),s=x.useRef(!1);return o.jsx(ie.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{s.current||(s.current=!0,r({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:t}}}))},poster:n})},Il={"gallery-carousel-modifier":"_gallery-carousel-modifier_1pjec_92"},Bs=({images:e,video:t,handleZoom:n,productName:r,PRODUCT_IMAGE_DIMENSIONS:s})=>{var u,f;const{initialize:a,pagination:i,controller:c,itemsStyles:l}=p.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return o.jsxs(p.Carousel.Root,{innerRef:m=>{a(m)},className:Il["gallery-carousel-modifier"],children:[o.jsx(p.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:o.jsx(p.Carousel.Bullets,{page:i.currentPage,total:e.length,onBulletClick:m=>c==null?void 0:c.navigateTo(m)})}),o.jsxs(p.Carousel.Body,{children:[o.jsx(p.Carousel.Item,{style:l,children:o.jsx(Nr,{image:e[0],index:0,handleZoom:n,PRODUCT_IMAGE_DIMENSIONS:s})},"PDP_gallery_0"),t&&o.jsx(p.Carousel.Item,{style:l,children:o.jsx(Sl,{video:t,productName:r,...((u=e[1])==null?void 0:u.imageUrl)&&{poster:(f=e[1])==null?void 0:f.imageUrl}})},"PDP_gallery_video"),e.map((m,d)=>d===0?null:o.jsx(p.Carousel.Item,{style:l,children:o.jsx(Nr,{image:m,index:d,handleZoom:n,PRODUCT_IMAGE_DIMENSIONS:s})},`PDP_gallery_${d}`))]})]})};Bs.displayName="PDP.Carousel";const Nl=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{video:n,productName:r}=un(),[s,a]=x.useState({show:!1,initialIndex:0});x.useEffect(()=>(s.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[s]);const i=c=>{a({show:!0,initialIndex:c})};return o.jsx(o.Fragment,{children:o.jsx(Bs,{images:e,video:n,handleZoom:i,productName:r,PRODUCT_IMAGE_DIMENSIONS:t})})},Fs=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{images:n}=un(),r=x.useMemo(()=>{const s=n.filter(a=>!e.includes(a.imageLabel));return s.length>0?s:n},[]);return o.jsx(Nl,{productImgs:r,PRODUCT_IMAGE_DIMENSIONS:t})};Fs.displayName="PDP.Gallery";const Pl=Object.freeze(Object.defineProperty({__proto__:null,Gallery:Fs},Symbol.toStringTag,{value:"Module"})),wl={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},Sn=({size:e,adornment:t,title:n,subtitle:r,supportChildren:s,className:a,Z_INDEX_WAR:i,...c})=>o.jsxs(p.SnackBar.Structure,{...c,size:e,className:p.helpers.classNameConcat(wl["snackbar-modifier"],a),width:360,style:{zIndex:i.snackbar},children:[o.jsx(p.SnackBar.Content,{adornment:t,title:n,subtitle:r}),s&&o.jsx(p.SnackBar.Support,{children:s})]});Sn.displayName="SnackBar";const Hs=x.createContext({}),El=({data:e,children:t,...n})=>{var g,h,y,v,N,S,b,C,j,I,P,R,O;const[r,s]=x.useState(!0),{initialize:a,controller:i,itemsStyles:c}=p.Carousel.useCarousel({gap:0,itemsPerPage:1}),l={slideTranstionTimer:(h=(g=e==null?void 0:e.staticConfig)==null?void 0:g.staticConfig)==null?void 0:h.slideTranstionTimer,showCarouselArrows:(v=(y=e==null?void 0:e.staticConfig)==null?void 0:y.staticConfig)==null?void 0:v.showCarouselArrows,hasCloseBtn:(S=(N=e==null?void 0:e.staticConfig)==null?void 0:N.staticConfig)==null?void 0:S.hasCloseBtn,backgroundColor:(C=(b=e==null?void 0:e.staticConfig)==null?void 0:b.staticConfig)==null?void 0:C.backgroundColor,textColorVariant:(I=(j=e==null?void 0:e.staticConfig)==null?void 0:j.staticConfig)==null?void 0:I.textColorVariant,content:((R=(P=e==null?void 0:e.content)==null?void 0:P.content)==null?void 0:R.items)??[]},u=(O=l.content)==null?void 0:O.filter(z=>!z.countDownEndDate||new Date(z.countDownEndDate)>new Date),f=u.length>1,m={...l.backgroundColor?{backgroundColor:l.backgroundColor}:{}},d=()=>{s(!1)},_=p.helpers.ValidateProp({fieldTypes:ze.Mode,property:l.textColorVariant,fallback:"default"});return o.jsx(Hs.Provider,{value:{isOpen:r,setIsOpen:s,hasCarousel:f,backgroundStyle:m,handleCloseTipbar:d,mode:_,slideTranstionTimer:l.slideTranstionTimer,showCarouselArrows:l.showCarouselArrows,hasCloseBtn:l.hasCloseBtn,slices:u,carouselProps:{initialize:a,controller:i,itemsStyles:c},...n},children:t})},ge=()=>x.useContext(Hs),Rl=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:n}}=ge();return o.jsx(tn,{dateEnd:new Date(e),TIME_ZONE:n,...t})},Tl="_tipbar_bt3p0_1",Ol="_tipbar__carousel_bt3p0_15",We={tipbar:Tl,tipbar__carousel:Ol,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},Al=({coupon:e,feedbackTitle:t,feedbackDescription:n,...r})=>{const{CONSTANTS:s}=ge(),[a,i]=x.useState({status:!1,showSnackBar:!1}),c=()=>{i({status:!0,showSnackBar:!0})};return x.useEffect(()=>{a.status&&setTimeout(()=>{i({status:!0,showSnackBar:!1})},s.TIPBAR_CONFIGS.snackbar_timeout)},[a]),o.jsxs(o.Fragment,{children:[o.jsx(p.Button,{...r,onClick:c,disabled:a.status,className:We["tipbar-item__coupon"],children:a.status?"Cupom aplicado":"Aplicar cupom"}),a.showSnackBar&&(t||n)&&o.jsx(Sn,{title:t,subtitle:n,Z_INDEX_WAR:s.Z_INDEX_WAR},`feedback-coupon-${e}`)]})},Ml=({title:e,description:t,style:n,mode:r})=>o.jsx(p.TextStructure.Root,{children:o.jsxs(p.TextStructure.DivWrapper,{mode:r,children:[e&&o.jsx("h3",{className:"typography-style-body-sm",style:n,children:e}),t&&o.jsx("p",{className:"typography-style-caption",style:n,children:t})]})}),kl=({staticZone:e,type:t,title:n,description:r})=>{const{mode:s}=ge();if(t==="countdown")return o.jsx(Rl,{dateEnd:e.countDownEndDate,size:"x-small",mode:s});if(t==="coupon"){const a=p.helpers.ValidateProp({fieldTypes:ze.Mode,property:e.couponButtonMode,fallback:"default"}),i=p.helpers.ValidateProp({fieldTypes:ze.VariantsExtended,property:e.couponButtonVariant,fallback:"primary"});return e.coupon?o.jsx(Al,{coupon:e.coupon,mode:a,variant:i,feedbackTitle:e.couponFeedbackTitle,feedbackDescription:e.couponFeedbackDescription}):null}return o.jsx(Ml,{title:n,description:r,mode:s})},Dl=({children:e,mode:t="default",showCarouselArrows:n=!0,slideTranstionTimer:r})=>{const{carouselProps:s,CONSTANTS:a}=ge(),i=x.useRef(null),c=(u,f)=>{var m,d;u.stopPropagation(),u.preventDefault(),f==="prev"?(m=s.controller)==null||m.prevPage():(d=s.controller)==null||d.nextPage(),i.current&&(clearInterval(i.current),l())},l=x.useCallback(()=>{if(r&&s.controller){const u=setInterval(()=>{var f;(f=s.controller)==null||f.nextPage()},r);i.current=u}},[r,s]);return x.useEffect(()=>(l(),()=>{i.current&&clearInterval(i.current)}),[r,l]),o.jsxs(p.Carousel.Root,{innerRef:u=>{s.initialize(u)},className:We.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[n&&o.jsx(p.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"prev"),adornment:{start:o.jsx(p.Icon,{name:a.ICONS.arrow_left})}}),o.jsx(p.Carousel.Body,{children:e}),n&&o.jsx(p.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"next"),adornment:{start:o.jsx(p.Icon,{name:a.ICONS.arrow_right})}})]})},Pr=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:n}=ge();return o.jsx(p.Button,{title:"fechar tipbar",className:We["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:o.jsx(p.Icon,{name:n.ICONS.close})}})},Ll=({children:e})=>{const{hasCarousel:t,mode:n,hasCloseBtn:r,backgroundStyle:s,showCarouselArrows:a,slideTranstionTimer:i,handleCloseTipbar:c}=ge(),l=t&&a;return o.jsx("div",{style:s,"data-hasclosebtn":r,className:We.tipbar,children:t?o.jsxs(o.Fragment,{children:[o.jsx(Dl,{mode:n,showCarouselArrows:l,slideTranstionTimer:i,children:e}),r&&o.jsx(Pr,{handleCloseTipbar:c,showCarouselArrows:l,mode:n})]}):o.jsxs(o.Fragment,{children:[e,r&&o.jsx(Pr,{handleCloseTipbar:c,mode:n})]})})},zl=({children:e,highlightFirstSection:t,...n})=>{const{hasCarousel:r,carouselProps:s}=ge(),a=o.jsx("div",{...n,className:We["tipbar-item"],children:e});return r?o.jsx(p.Carousel.Item,{style:s.itemsStyles,children:a}):a},Us=()=>{const{isOpen:e,slices:t}=ge();return t.length&&e?o.jsx(Ll,{children:t.map((n,r)=>{var s;return o.jsx(o.Fragment,{children:o.jsx(Ue,{href:n.link,children:o.jsx(zl,{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,i)=>o.jsx(kl,{staticZone:n,type:a.type,title:a.title,description:a.description},`tipbar-slice-field-${i}`)):null})})},`tipbar-slice-${r}`)})}):null};Us.displayName="TipBar.Root";const Ws=e=>o.jsx(El,{...e,children:o.jsx(Us,{})});Ws.displayName="TipBar";const ql={teamComponents:{AddToCart:vn,BackToTop:nc,Footer:as,FreightCalculation:bl,Header:Is,Link:Oe,Media:ie,ProductCard:Pe,TipBar:Ws},template:{pdp:Pl},utils:{EventCollector:rc,ExternalScripts:hc,LinkOrNotLink:Ue,ObserverWrapper:yn,SnackBarComponent:Sn}};exports.cms=Qi;exports.contexts=Va;exports.data=ko;exports.layout=ql;
|
|
1
|
+
"use strict";var eu=Object.defineProperty;var tu=(e,t,r)=>t in e?eu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Gt=(e,t,r)=>tu(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),q=require("react"),Ue=require("idb-keyval"),at=require("zustand"),On=require("js-cookie"),b=require("@soma-vertical-web/core-components"),Te=require("draft-js"),ot=require("@soma-vertical-web/foundations"),mo=require("@date-fns/tz"),ba=require("react-dom"),ho=require("axios"),Vn=q.createContext({}),ru=({data:e,children:t})=>c.jsx(Vn.Provider,{value:{tags:e==null?void 0:e.config},children:t}),xa=()=>{const{tags:e}=q.useContext(Vn),t=q.useCallback(r=>{var a,s,u,l;const n=(s=(a=e==null?void 0:e.commercial)==null?void 0:a.items)==null?void 0:s.find(p=>{var m;return(m=r??[])==null?void 0:m.find(d=>d.id===p.key)}),o=(l=(u=e==null?void 0:e.institucional)==null?void 0:u.items)==null?void 0:l.find(p=>{var m;return(m=r??[])==null?void 0:m.find(d=>d.id===p.key)}),i=e==null?void 0:e.flagPdp;return{commercial:n,institucional:o,flagPdp:i}},[e]);return{tags:e,getAvailableProductTag:t}},Ca=({gridScrollBack:e})=>{q.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},Sa=q.createContext({}),nu=({children:e,gridScrollBack:t})=>{const r=q.useRef(null);return Ca({gridScrollBack:t}),c.jsx(Sa.Provider,{value:{sizesContainerRef:r},children:e})},ou=()=>{const e=q.useContext(Sa);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),Aa=({valueInCents:e,hasFree:t,freeTaxMessage:r})=>e===0?t?r:Me(0):Me(e/100),Kn=(e,t)=>{const[r,n]=e.split(t);return{name:r.trim(),size:n?n.trim():""}},Lt=(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()}},Ra=(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},iu=(e,t)=>e.replace(t,"").trim(),au=e=>e.replace(/\//g,""),Ea=({items:e,NAME_SPLIT_SYMBOL:t})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(a,s)=>{var d;s&&(s.sellerId=a.sellerId,s.sellerName=a.sellerName,s.available=!0,s.isSellerDefault=a.sellerDefault);const{Price:u,ListPrice:l,PaymentOptions:{installmentOptions:p}}=a.commertialOffer;r.price=u,r.listPrice=l;const m=(d=p==null?void 0:p[0])==null?void 0:d.installments;if(m){const{count:f,value:h}=m[m.length-1];r.installments={count:f,value:h/100}}};let o=!0;const i=e.reduce((a,s)=>{var p;const u={name:s.name,sku:s.itemId,value:((p=s.Tamanho)==null?void 0:p[0])??Kn(s.nameComplete??s.name,t).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},l=s.sellers.filter(m=>(m.sellerDefault&&m.commertialOffer.IsAvailable&&(u.available=!0,n(m,u)),m.commertialOffer.IsAvailable));return!u.isSellerDefault&&l.length>0&&(u.available=!0,n(l[0],{...u,sellerId:l[0].sellerId,sellerName:l[0].sellerName})),u.available===!1&&(o=!1),a.push(u),a},[]);return{...r,sizes:i,allSizesAvailable:o}},wa=e=>e?!e.offers.offers.find(({quantity:t=0})=>t>0):!1,ja=(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"),Pa=(e,t)=>{const r=/\/ids\/(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},Na=(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},Oa=({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},su=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},Ta=(e,t,r)=>{t&&(e?(t.getAttribute("src")||(t.src=r??""),t.play()):t.pause())},cu=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:wa,formatPriceToCurrency:Me,freightParsePrice:Aa,getAspectRatio:su,getColorAndSizeFromSkuName:Lt,getFirstImages:Oa,getProductNameWithoutSku:iu,getSKUName:Ra,getSkuInfos:Ea,getThumbImage:Ia,getValidOffer:ja,removeSlashes:au,resizingImg:Pa,setVideoPlay:Ta,splitNameAndSizeFromFullName:Kn,updatedResizedImg:Na},Symbol.toStringTag,{value:"Module"})),Le=({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})},ve={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:s}=e,{availableSizes:u,sizes:l,price:p}=n,m={...r==="view_item"?{currency:ve.configs.currency,value:p,grade_disponivel:u??(l?Ma(l):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:p,currency:ve.configs.currency}:{}},d=yt({data:n,customData:{...o,...a,...i},configs:ve.configs});Le({event:r,data:{...s,ecommerce:{...a,...m,items:[d]}}}),typeof t=="function"&&t(d,m)},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:s},u)=>yt({data:{...s},customData:{...r,index:u,...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:n},configs:ve.configs}));Le({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:s,outsideEcommerceData:u}=e;let l=0;const p=r.map(m=>{var y,g,v,A,_,S,C,j,x;const d=o==null?void 0:o.find(I=>(m.productId??m.id)===I.productId);let f={...a,...s};if(d){const I=La(),D=Da(I,d);D&&(f={...f,...D}),t==="add_to_cart"&&(a||s)&&Tn({persistedData:I,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:a,itemList:s}}),t==="remove_from_cart"&&Tn({persistedData:I,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}l+=m.price??((v=(g=(y=d==null?void 0:d.offers)==null?void 0:y.offers)==null?void 0:g[0])==null?void 0:v.price)??0;const h=(d==null?void 0:d.size)??Lt((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((A=m.itemOffered)==null?void 0:A.skuName),ve.configs.NAME_SPLIT_SYMBOL).size;return yt({data:m,customData:{...n,...f??{...a,...s},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((_=m.itemOffered)==null?void 0:_.sku),quantity:(n==null?void 0:n.quantity)??m.quantity??1,item_variant2:h,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((x=(j=(C=(S=d==null?void 0:d.offers)==null?void 0:S.offers)==null?void 0:C[0])==null?void 0:j.seller)==null?void 0:x.identifier)??m.seller},configs:ve.configs})});Le({event:t,data:{...u,ecommerce:{value:i??l,currency:ve.configs.currency,items:p}}})},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:s,value:u})=>{var m;const l=((m=ve.configs.PLP_FILTERS.find(d=>d.key===s))==null?void 0:m.eventLabel)??s,p=(o==null?void 0:o[l])||[];l==="price_range"&&u.replace(":","-"),o[l]=[...p,u]}),Object.keys(o).forEach(s=>i[s]=o[s].join(", "))),Le({event:"filter",data:{...n,...i,...r}})},viewCartEvent:e=>{var p,m,d,f,h,y,g,v,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(S=>{const{promotionInfo:C,itemList:j}=i[S.id]??{};return yt({data:{...S,price:S.price/100,listPrice:S.listPrice/100},customData:{...C,...j,item_sku:S.id??S.itemOffered.sku,quantity:S.quantity??1},configs:ve.configs})}),s=(((p=n.totalizers.find(S=>S.name==="Total dos Itens"))==null?void 0:p.value)??0)/100,u=(((m=n.totalizers.find(S=>S.name==="Total dos Descontos"))==null?void 0:m.value)??0)/100,l=((d=n.marketingData)==null?void 0:d.utmiCampaign)==="codigodavendedora"?(f=n.marketingData)==null?void 0:f.utmCampaign:(y=String((h=n.openTextField)==null?void 0:h.value))==null?void 0:y.split(" - ")[0];Le({event:"view_cart",data:{...r,ecommerce:{currency:ve.configs.currency,value:s+u,total_discount:Math.abs(u),cep_preenchido:!!((v=(g=n.shippingData)==null?void 0:g.address)!=null&&v.postalCode),...l?{seller_coupon_name:l}:{},...((A=n.marketingData)==null?void 0:A.coupon)&&{sale_coupon_name:(_=n.marketingData)==null?void 0:_.coupon},subtotal:s,items:a}}})},readyEvents:e=>{const{event:t,readyData:r}=e;Le({event:t,data:{...r}})}},Ma=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),uu=e=>{const t=e.length;return{...e&&e.length>0?{item_category:e[0].includes(ve.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},yt=({data:e,customData:t,configs:r})=>({...lu(e,r==null?void 0:r.MAIN_IMAGE),...du(e),...fu(e),...pu(e),...t}),ka=()=>{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("_"))??[]:[]},La=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},Da=(e,t)=>e==null?void 0:e[t],Tn=({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)))},lu=(e,t="1")=>{var i,a,s,u,l,p,m,d,f,h,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)??((s=e.itemOffered)==null?void 0:s.image),o=n==null?void 0:n.find(g=>g.alternateName===t||g.imageLabel===t||g.keywords===t);return{item_id:e.productId??((u=e.isVariantOf)==null?void 0:u.productGroupID)??((l=e.isVariationOf)==null?void 0:l.productGroupID)??((m=(p=e.itemOffered)==null?void 0:p.isVariationOf)==null?void 0:m.productGroupID),item_ref:/_\d$/.test(r)?r.slice(0,-2):r,item_name:e.productTitle??e.productName??e.name??Kn((d=e.itemOffered)==null?void 0:d.name,ve.configs.NAME_SPLIT_SYMBOL).name,item_brand:((f=e.brand)==null?void 0:f.brandName)??((h=e.brand)==null?void 0:h.name)??e.brand??((y=e.itemOffered)==null?void 0:y.brand.name),item_url:`${ve.configs.storeUrl}${e.linkText}/p`,item_image:(o==null?void 0:o.url)??(o==null?void 0:o.imageUrl)}},go=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,du=e=>{var l,p;const{categories:t,categoriesIds:r}=e,n=t??((l=e.itemOffered)==null?void 0:l.categories),o=r??((p=e.itemOffered)==null?void 0:p.categoriesIds),i=go(n),a=go(o),s=i.slice(1,-1).split("/"),u=a.slice(1,-1).split("/");return{item_category:s[0].toLowerCase().includes(ve.configs.categoryOff)?"Bazar":"Coleção",...s[1]&&{item_category2:s[1]},...s.length>2&&{item_category3:s[s.length-1]},item_category_id:u[u.length-1],...u.length>1&&{item_parent_category_id:u[u.length-2]}}},fu=e=>{var o,i,a,s,u,l;const t=((o=e.itemOffered)==null?void 0:o.skuName)??((s=(a=(i=e.isVariantOf)==null?void 0:i.hasVariant)==null?void 0:a[0])==null?void 0:s.name)??((l=(u=e.items)==null?void 0:u[0])==null?void 0:l.name),{color:r,size:n}=Lt(t,ve.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:n}}},pu=e=>{var u,l;const{price:t,listPrice:r,installments:n}=e,o=t??((u=e.offers)==null?void 0:u.lowPrice)??0,i=r??((l=e.offers)==null?void 0:l.highPrice)??0,a=i?i-o:0,s=a%1===0?a:Number(a.toFixed(2));return{...t&&{price:o??i},...i&&{list_price:i,discount:s},...n&&{installments:n==null?void 0:n.count,installment_value:n==null?void 0:n.value},item_currency:ve.configs.currency}},$a=()=>{const[e,t]=ka(),[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}},mu=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:ve,findDataInPersistedData:Da,getAvailablesSizes:Ma,getCategories:uu,getPageCategoryAndDepartmentFromSlug:$a,getPersistedData:La,getProductListInfoFromHead:ka,pushDatalayer:Le,updatePersistedData:Tn},Symbol.toStringTag,{value:"Module"})),qa=q.createContext({}),hu=({children:e,evtFunctionsConfigs:t})=>{const r=q.useRef({}),n=q.useRef(null),o=q.useRef(null),i=q.useRef({}),a=q.useRef({trigger:!1,index:0}),s=({functionKey:p,data:m,callBack:d,timeout:f=100})=>{window.dataLayer||(window.dataLayer=[]),ve.configs=t;try{typeof ve[p]=="function"&&setTimeout(()=>{var h;m.promotionInfo=r.current,(h=o.current)!=null&&h.item_list_name&&(m.itemList=o.current),ve[p](m,d)},f)}catch(h){Le({event:"error_event",data:{error_message:(h==null?void 0:h.message)??h}})}},u=({content:p})=>{s({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:p.replace("::",":")}}})},l=({updatePromotionRef:p,promotion:m,index:d})=>{p&&(r.current={...m}),s({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...m,...d!==void 0&&{index:d}}}}})};return c.jsx(qa.Provider,{value:{sendDataLayerEvent:s,triggerSelectItemEventRef:a,promotionEventRef:r,currentLocalRef:n,itemListRef:o,cartProductsFullDataRef:i,handleSelectContent:u,handleSelectPromotionEvent:l},children:e})},ge=()=>q.useContext(qa),Ba=q.createContext({}),gu=({children:e,productData:t,isKit:r,PDP_INFO:n,NAME_SPLIT_SYMBOL:o})=>{var $,E;const{sendDataLayerEvent:i,triggerSelectItemEventRef:a}=ge(),{productId:s,productName:u,items:l,items:[{images:p,Videos:m}],description:d,["Composição"]:f="",productReference:h,categories:[y]}=t,{getAvailableProductTag:g}=xa(),v=g(Object.entries(t.clusterHighlights).map(B=>({id:B[0],name:B[1]}))),A=y.slice(1,-1).split("/"),{installments:_,price:S,listPrice:C,sizes:j,allSizesAvailable:x}=Ea({items:l,NAME_SPLIT_SYMBOL:o}),I=Ia(p),D=[{label:`${n.product.description}`,value:"description",content:d},{label:`${n.product.materiais}`,value:"composition",content:f}],R=((E=Lt(($=t.items)==null?void 0:$[0].name,o))==null?void 0:E.color)??t["Cores Filtráveis"][0]??"",P=()=>({commonData:{...t,sizes:j,price:S,listPrice:C,installments:_},customData:{installments:_==null?void 0:_.count,installment_value:Number(_==null?void 0:_.value).toFixed(2)}}),M=({sku:B,size:F})=>{const{commonData:U,customData:K}=P();i({functionKey:"productEvents",data:{event:"view_item",commonData:U,customData:{...K,...B&&{item_sku:B},...F&&{item_variant2:F}}}})};return q.useEffect(()=>{if(a.current.trigger){const{commonData:B,customData:F}=P();i({functionKey:"productEvents",data:{event:"select_item",commonData:B,customData:{...F,index:a.current.index}}}),a.current.trigger=!1}M({})},[]),c.jsx(Ba.Provider,{value:{productData:t,productId:s,productName:u,productReference:h,tag:v,items:l,sizes:j,allSizesAvailable:x,installments:_,price:S,listPrice:C,thumbImage:I,images:p,video:m[0],descriptionContent:D,breadcrumbList:A,isKit:r,colorName:R,handleViewItemEvent:M},children:e})},Xn=()=>{const e=q.useContext(Ba);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},yu={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},Ie=Promise.resolve(!1),Mn={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>Ie,addItem:()=>Ie,addSellerCode:()=>Ie,addMarketingData:()=>Ie,emptyCart:()=>{},removeItem:()=>Ie,setIsOpen:()=>{},shipping:()=>Ie,shippingUpdate:()=>Ie,toggleServiceToProduct:()=>Ie,updateItemQuantity:()=>Ie,insertProfileEmail:()=>Ie,setRecentlyAddedProducts:()=>{}},Qn=e=>e===0,Ha=(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},za=e=>{const{availability:t,additionalInfo:{brandName:r},bundleItems:n,id:o,uniqueId:i,detailUrl:a,ean:s,imageUrl:u,name:l,listPrice:p,quantity:m,price:d,priceDefinition:f,productCategories:h,productCategoryIds:y,productId:g,refId:v,seller:A,referenceId:_,offerings:S,productRefId:C,skuName:j,sellingPrice:x}=e;return{availability:t,bundleItems:n,referenceId:_,productRefId:C,id:o,ean:s,uniqueId:i,itemOffered:{additionalProperty:[],brand:{name:r},categories:Ha(y,h),categoriesIds:y,gtin:v,image:[{alternateName:"1",url:u}],name:l,isVariationOf:{name:l,productGroupID:g},sku:o,slug:a,skuName:j},listPrice:p,quantity:m,offerings:S,price:d,priceDefinition:f,sellingPrice:x,seller:A}},Fa=(e,t)=>{const r=e.map(n=>({id:n.id,quantity:n.quantity,seller:n.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},Ua=(e,t)=>{const r=e.find(n=>n.id===t);if(r){const n=e.map((o,i)=>{var a,s;return{id:((a=o.itemOffered)==null?void 0:a.sku)??"",index:i,quantity:(r==null?void 0:r.id)===((s=o.itemOffered)==null?void 0:s.sku)?0:o.quantity,seller:o.seller??""}});return{updateItems:n,filterItems:n.filter(o=>o.id!==t)}}return{updateItems:[],filterItems:[]}},Wa=(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),_u=(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},vu=e=>{const t=e.reduce((o,i)=>{const a=Qn(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}},bu=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(Qn(r==null?void 0:r.price)?0:r.quantity),0):0,Ga=e=>{const{items:t,itemMetadata:r,marketingData:n,messages:o,orderFormId:i,openTextField:a,paymentData:s,shippingData:u,totalizers:l}=e;return{id:i,itemMetadata:r,items:Array.isArray(t)?t.map(za):[],marketingData:n,messages:o,openTextField:a,paymentData:s,shippingData:u,totalizers:l}},Va=(e,t)=>{const r=e.find(n=>n.id===t);return r?r.availability==="unavailableItemFulfillment":!1},xu=(e,t)=>{const r=e.sku,n=e.isVariantOf.hasVariant.find(o=>o.sku===r);return n?n.name.split(t)[1]:"--"},Ge=(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},Cu=(e,t)=>{const r=new Set;return[e,...t].filter(n=>!r.has(n)&&r.add(n),r)},Ka=(e,t)=>t&&Array.isArray(t)&&t.find(n=>n.id===e)?Promise.resolve(e):Promise.resolve(!1),Xa=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),Qa=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},Ya=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},Za=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(n=>n.id===r.id)):[],Ja=async(e,t)=>e.then(r=>[...r??[],...t??[]]),Re=async(e,t,r)=>{const{priority:n="auto",body:o}=t;return fetch(e,{headers:{"Content-Type":"application/json"},priority:n,method:"POST",body:JSON.stringify(o)}).then(async i=>{const a=await i.json();return r?a:Ga(a)})},es=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),Su=e=>[...Array.isArray(e)?e:[e],"faststore"],ts=e=>{const t=e.get("utm_source")||qe("utm_source"),r=e.get("utm_campaign")||qe("utm_campaign"),n=e.get("utm_medium")||qe("utm_medium"),o=e.get("utmi_cp")||qe("utmi_cp"),i=e.get("utmi_pc")||qe("utmi_pc"),a=e.get("utmi_p")||qe("utmi_p");return{...t&&{utmSource:t},...n&&{utmMedium:n},...r&&{utmCampaign:r},...o&&{utmiCampaign:o},...i&&{utmiPart:i},...a&&{utmipage:a}}},qe=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},Au=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:yu,addItemOrder:Fa,addNotification:es,createItemOrder:za,fetchCartAPI:Re,findItemIndex:kn,findOptions:Za,findTotalizerValue:_u,getCategories:Ha,getCode:Ge,getQuantity:Ya,getRemoveId:Ka,getSize:xu,getTotalItems:bu,getTotalizer:vu,getUrlParameter:qe,getValue:Xa,initialState:Mn,isGift:Qn,marketingTagsBuilder:Su,mergeOptionsPromise:Ja,mountMarketingData:ts,orderFormValues:Ga,promiseDefault:Ie,removeQuantity:Ua,updateItemSellerExternal:Va,updateOrderFormPromise:Qa,updateQuantity:Wa,wishlistArray:Cu},Symbol.toStringTag,{value:"Module"})),Ru=()=>{const e=async(f,h)=>Re("/api/checkout/order-form/coupon",{body:{orderFormId:f,coupon:h}}),t=async(f,h)=>{if(h){const y=h.includes(" - ")?h.split(" - ")[0]:h,g=await Re("/api/checkout/order-form/seller-code",{body:{orderFormId:f,sellerCode:y}},!0);return Re("/api/checkout/order-form/attachments",{body:{orderFormId:f,sellerCode:y,sellerName:g instanceof Object&&"name"in g?g==null?void 0:g.name:""}}).then(v=>({...v,openTextField:{...(v==null?void 0:v.openTextField)??{},statusOk:(g==null?void 0:g.ativo)??!1}}))}else return Re("/api/checkout/order-form/attachments",{body:{orderFormId:f,sellerCode:"",sellerName:""}})},r=async(f,h)=>Re("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:f,marketingData:h}}),n=async(f,h,y)=>Re("/api/checkout/order-form/items",{body:{orderFormId:f,orderItems:Fa(h,y)}}),o=async(f,h,y,g)=>Re("/api/checkout/order-form/offerings",{body:{id:h,itemIndex:y,orderFormId:f,remove:g}}),i=async f=>Re("/api/checkout/order-form/items/remove-all",{body:{orderFormId:f}}),a=async(f,h="low")=>Re("/api/checkout/order-form",{priority:h,body:{orderFormId:f??""}}),s=async(f,h)=>Re("/api/checkout/order-form/profile",{body:{orderFormId:f,email:h}}),u=async(f,h,y)=>{const g=Ua(h,y);return Re("/api/checkout/order-form/items/update",{body:{orderItems:g.updateItems,orderFormId:f}})},l=async(f,h,y)=>Re("/api/checkout/order-form/shipping",{body:{orderFormId:f,country:y,postalCode:h}}),p=async(f,h,y)=>Re("/api/checkout/order-form/shipping/update",{body:{orderFormId:f,options:h,selectedAddresses:y}}),m=async(f,h,y,g)=>{const v=Wa(h,y,g);return Re("/api/checkout/order-form/items/update",{body:{orderFormId:f,orderItems:v}})};return{addCoupon:e,addItem:n,addSellerCode:t,addMarketingData:r,giftItem:o,emptyCart:i,getOrderForm:a,insertProfileEmail:s,removeItem:u,shipping:l,shippingUpdate:p,updateItemQuantity:async(f,h,y,g,v)=>m(f,h,y,g).then(A=>A&&Array.isArray(A.items)?Va(A.items,y)?m(f,h,y,v):A:!1)}},Ln="soma::cart",rt="soma::options",Ke=at.create((e,t)=>{const r=Ru(),n=async(o,i,a)=>{e({loading:!0});const s=await Qa(o);if(typeof s!="boolean"){e({...s});const u=await Ja(Ue.get(rt),a);return Ue.set(rt,u),Xa(s,i).finally(()=>e({loading:!1,options:u}))}return Ie};if(typeof window<"u"){const o=async i=>{if(i){const a=await Ue.get(rt).then(l=>Za(l,i.items));Ue.set(Ln,i),Ue.set(rt,a),e({...i,options:a});const s=new URLSearchParams(window.location.search),u=s.get("utm_campaign")||s.get("utmi_campaign")||"";u&&n(()=>r.addSellerCode(t().id,u.toUpperCase()),"openTextField")}};return Ue.get(Ln).then(i=>r.getOrderForm(i?i.id:"").then(o)),{...Mn,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 Ka(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,s)=>n(()=>r.giftItem(t().id,i,a,s),"items"),updateItemQuantity:async(i,a,s)=>{const{id:u,items:l}=t();return n(()=>{var p;return r.updateItemQuantity(u,l,i,a,((p=l.find(m=>m.id===i))==null?void 0:p.quantity)??1)},"items",s?[s]:void 0)},insertProfileEmail:async i=>n(()=>r.insertProfileEmail(t().id,i),"clientProfileData"),setIsOpen:i=>e({isOpen:i})}}return Mn}),Eu=()=>Ke(e=>e),rs=at.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(n=>es(n,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(n=>n.id!==t)}))}})),ns=()=>rs(e=>e.notifications),os=()=>rs(e=>e.actions),wu=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:rt,KEY_INDEXED_STORE:Ln,useCartStore:Ke,useGetCartStoreState:Eu,useGetNotificationActions:os,useGetNotificationsStore:ns},Symbol.toStringTag,{value:"Module"})),ju=6e3,is=q.createContext({}),as=({children:e,...t})=>{const{items:r}=Ke(),[n,o]=q.useState([]),i=q.useRef(null),a=q.useMemo(()=>Array.isArray(n)&&n.length>0?n.map(s=>r.find(u=>u.id===s.id)).filter(s=>s!==void 0):[],[r,n]);return q.useEffect(()=>{n.length&&(clearTimeout(i.current??0),i.current=setTimeout(()=>{o([])},ju))},[n]),c.jsx(is.Provider,{value:q.useMemo(()=>({...t,setRecentlyAdded:o,recentlyAddedProducts:a}),[t,o,a]),children:e})},st=()=>{const e=q.useContext(is);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class ss{constructor(){Gt(this,"events",{});Gt(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 cs=q.createContext({}),Iu=({children:e,headerConfigs:t,pathname:r,searchParams:n,...o})=>{const[i,a]=q.useState(!0),s=r==="/",u=q.useRef(new ss),l=d=>d?{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},p=l(s),m=q.useRef(p);return q.useEffect(()=>{const d=n.toString();(d.includes("utm_")||d.includes("gclid"))&&(On.get("lastMedias")||On.set("lastMedias",`${d}`,{expires:1/24}));const f=()=>{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&&a(y)};return f(),window.addEventListener("resize",f,{passive:!0}),()=>window.removeEventListener("resize",f)},[i]),q.useEffect(()=>{const d=l(s);u.current.publish("header:change_variant",d.headerVariant),u.current.publish("header:change_position",d.position),m.current=d},[s]),c.jsx(cs.Provider,{value:{isMobile:i,mediatorRef:u,currentHeaderConfigsRef:m,...o},children:c.jsx(as,{children:e})})},ke=()=>q.useContext(cs),us=q.createContext({}),Pu=({children:e,...t})=>c.jsx(us.Provider,{value:{...t},children:e}),Ne=()=>q.useContext(us),He=(e,t)=>at.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}}}),it={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},ct=new Set,Nu=()=>{ct.forEach(e=>{e()})},ls=at.create((e,t)=>{const r=()=>e({value:it.category});return ct.add(r),{value:it.category,actions:{reset:r,setValue:n=>e(()=>({value:n})),updateValue:n=>{t().value!==n&&e({value:n})}}}}),Dt=()=>ls(e=>e.value),De=()=>ls(e=>e.actions),ds=He(it.menuMobileIsOpen,ct),Yn=()=>ds(e=>e.value),ze=()=>ds(e=>e.actions),fs=He(it.searchModalIsOpen,ct),Ou=()=>fs(e=>e.value),Zn=()=>fs(e=>e.actions),ps=He(it.userMenuIsOpen,ct),Tu=()=>ps(e=>e.value),$t=()=>ps(e=>e.actions),Mu=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:Nu,useActionsHeaderCategory:De,useActionsMenuMobileIsOpen:ze,useActionsSearchModalIsOpen:Zn,useActionsUserMenuIsOpen:$t,useGetHeaderCategoryStore:Dt,useGetMenuMobileIsOpen:Yn,useGetSearchModalIsOpen:Ou,useGetUserMenuIsOpen:Tu},Symbol.toStringTag,{value:"Module"})),Xe={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},Ye=new Set,ku=()=>{Ye.forEach(e=>{e()})},ms=at.create(e=>{const t=()=>e({value:Xe.selectedSkuInfo});return Ye.add(t),{value:Xe.selectedSkuInfo,actions:{setValue:r=>e(n=>({value:{...n,...r}})),reset:t}}}),Lu=()=>ms(e=>e.value),Du=()=>ms(e=>e.actions),hs=He(Xe.openLetMeKnow,Ye),$u=()=>hs(e=>e.value),qu=()=>hs(e=>e.actions),gs=He(Xe.showNotify,Ye),Bu=()=>gs(e=>e.value),Hu=()=>gs(e=>e.actions),ys=He(Xe.showBottomNavigation,Ye),zu=()=>ys(e=>e.value),Fu=()=>ys(e=>e.actions),_s=He(Xe.openMeasurements,Ye),Uu=()=>_s(e=>e.value),Wu=()=>_s(e=>e.actions),Gu=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:ku,useActionsPDPOpenLetMeKnow:qu,useActionsPDPOpenMeasurements:Wu,useActionsPDPSelectedSkuInfo:Du,useActionsPDPShowBottomNavigation:Fu,useActionsPDPShowNotify:Hu,useGetPDPOpenLetMeKnow:$u,useGetPDPOpenMeasurements:Uu,useGetPDPSelectedSkuInfo:Lu,useGetPDPShowBottomNavigation:zu,useGetPDPShowNotify:Bu},Symbol.toStringTag,{value:"Module"})),vs=q.createContext({}),Vu=({children:e,headerData:t,...r})=>{var u,l;const n=q.useRef(null),o=q.useRef(null),i=q.useRef(null),{mediatorRef:a,currentHeaderConfigsRef:s}=ke();return(u=a.current)==null||u.subscribe("header:change_variant",p=>{var y,g,v;if(p&&s.current&&(s.current.bannerVariant=p),!n.current)return;const d=document.body.scrollTop>0,f=n.current.getAttribute("data-interactiveVariant"),h=d?f:p??((y=s.current)==null?void 0:y.bannerVariant)??"default";h!==((g=s.current)==null?void 0:g.headerVariant)&&(n.current.setAttribute("data-bottomdivider",String(d)),n.current.setAttribute("data-variant",String(h)),(v=a.current)==null||v.publish("herobanner:change_controllers_variant",h),s.current&&(s.current.headerVariant=h))}),(l=a.current)==null||l.subscribe("header:change_position",p=>{n.current&&(n.current.style.position=p)}),q.useEffect(()=>{const p=new AbortController,m=b.helpers.throttle(()=>{var f;return(f=a.current)==null?void 0:f.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",m,{passive:!0,signal:p.signal});const d=f=>{var y;(y=f.target.closest("a"))==null||y.blur()};return n.current&&(n.current.addEventListener("click",d,{signal:p.signal}),n.current.addEventListener("touchend",d,{signal:p.signal})),()=>{p.abort()}},[]),c.jsx(vs.Provider,{value:{headerData:t,structureRef:o,rootRef:n,tipbarRef:i,...r},children:e})},xe=()=>q.useContext(vs),bs=q.createContext({}),xs=({children:e})=>{const t=q.useRef(null),r=q.useRef(null),n=Yn(),o=q.useCallback(()=>{var i;{const a=(i=t.current)==null?void 0:i.querySelector("dialog");if(a){a.dataset.animation="out";const s=a.children[0];s.dataset.animation="out"}}},[]);return q.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 s=a.children[0];s.dataset.animation="out"}}},[n]),q.useEffect(()=>{r.current=document.body},[]),c.jsx(bs.Provider,{value:{bodyRef:t,handleCloseSubMenu:o,documentBodyRef:r},children:e})},ut=()=>q.useContext(bs),Ku=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Xu=(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?Ku(e==null?void 0:e.parentElement):0;return{left:n.left+n.width/2-(o.width+i),top:n.top+n.height+r}},Cs=q.createContext({}),Ss=({children:e,delay:t=600,gap:r=20,...n})=>{const[o,i]=q.useState(!1),a=q.useRef(null),[s,u]=q.useState(!1),[l,p]=q.useState({left:0,top:0}),m=q.useCallback(()=>{u(!0),typeof window<"u"&&(a.current=window.setTimeout(()=>{i(!1),u(!1)},t))},[u,i,t]);return q.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),f=window.document.querySelector("#add-to-cart--tooltip");if(d&&f){const{left:h,top:y}=Xu(f,d,r??0);p({left:h,top:y}),u(!1)}},[r,o]),c.jsx(Cs.Provider,{value:q.useMemo(()=>({...n,...l,handleClose:m,isLeaving:s,isOpen:o,setIsOpen:i,setIsLeaving:u}),[n,l,m,s,o,i,u]),children:e})},Fe=()=>{const e=q.useContext(Cs);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},As=q.createContext({}),Qu=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const n=Ke(),{setRecentlyAdded:o}=st(),i=q.useRef(""),a=ns(),{addNotification:s,removeNotification:u}=os(),{addCoupon:l,addItem:p,addSellerCode:m,addMarketingData:d,emptyCart:f,isOpen:h,removeItem:y,shipping:g,shippingUpdate:v,toggleServiceToProduct:A,updateItemQuantity:_}=n;q.useEffect(()=>{const E=On.get("lastMedias");if(n.id&&E&&i.current!==E){i.current=E;const B=new URLSearchParams(E),F=ts(B);d(F)}},[n,d]);const S=q.useCallback(async(E,B)=>(B==="coupon"?l(E):m(E)).then(U=>{if(typeof U!="boolean"&&U instanceof Object){if(B==="seller"&&"value"in U){const{statusOk:K,value:G}=U,z=String(G??"").split(" - ");return Ge((z==null?void 0:z[0])??"",E,!!K)}return Ge(String(U.coupon),E,!0)}return Ge("","")}).catch(()=>Promise.resolve({code:400})),[l,m]),C=q.useCallback((E,B,F)=>{const{id:U}=E;_(U,B,F)},[_]),j=q.useCallback((E,B,F=!1)=>{if(!E)return;const{id:U}=E,K=kn(n.items,U);if(K!==-1&&!F){const G=Number(n.items[K].quantity),z=n.items[K]?G+1:1;C(E,z,B)}else p({id:U,quantity:(E==null?void 0:E.quantity)??1,seller:E.seller});h||o(G=>[...G,E])},[p,C,n.items,h,o]),x=q.useCallback((E,B)=>{if(!E||!Array.isArray(E))return;o(U=>[...U,...E]);const F=E.map(U=>{const{id:K,quantity:G,seller:z}=U,ne=kn(n.items,K),w=Ya(G??1,ne);return{id:K,quantity:w,seller:z}});p(F,B)},[p,n.items,o]),I=q.useCallback(async(E,B,F)=>E?y(E).then(()=>(s(B??`${t}`,F),Ge(E,E))):Promise.resolve(Ge("","Product id required")),[s,y]),D=q.useCallback(()=>{n.items.length>0&&f()},[f,n.items]),R=q.useCallback((E,B="BRA")=>g(E,B),[g]),P=q.useCallback(E=>{E&&v(E)},[v]),M=q.useCallback(async(E,B,F)=>{const U=n.items.findIndex(G=>G.id===E);return n.items[U]&&U>=0?A(B,U,F??!1):!1},[n.items,A]),$=q.useCallback(async(E,B)=>_(E,B).then(F=>{if(Array.isArray(F)){const U=F.find(K=>K.id===E);if(U&&(U==null?void 0:U.quantity)<B)return String(U.quantity)}return!1}),[_]);return c.jsx(As.Provider,{value:q.useMemo(()=>({...r,addCouponSeller:S,addToCart:j,addItemsToCart:x,cartStore:n,notifications:a,clearCart:D,addNotification:s,isOpen:n.isOpen,removeNotification:u,removeToCart:I,setIsOpen:n.setIsOpen,shipping:R,shippingUpdateOption:P,toggleGiftItemCart:M,updateItemQuantity:$}),[r,S,j,x,a,D,s,n,u,I,R,P,M,$]),children:e})},Ze=()=>{const e=q.useContext(As);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},Yu={contexts:{addToCart:{hook:Fe,provider:Ss},cart:{hook:Ze,provider:Qu},cms:{FlagsAndTags:{context:Vn,hook:xa,provider:ru}},events:{hook:ge,provider:hu},global:{hook:ke,provider:Iu,mediator:ss},header:{hook:xe,provider:Vu},menuMobile:{hook:ut,provider:xs},next:{hook:Ne,provider:Pu},pdp:{provider:nu,hook:ou},pdpdata:{hook:Xn,provider:gu},ui:{hook:st,provider:as}},hooks:{useBackPDC:Ca},stores:{cart:wu,header:Mu,pdp:Gu}};function Rs(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 Es(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 Zu=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function Ju(e,t=1e3){let r=!1;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>{r=!1},t))}}function el(e,t=1e3){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}const ws=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,nt=(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),tl=Object.freeze(Object.defineProperty({__proto__:null,debounce:el,getCookie:Rs,getDaysHoursMinutesSeconds:nt,getMilliSeconds:ws,removeAccentsAndReplaceSpaces:Zu,setCookie:Es,throttle:Ju},Symbol.toStringTag,{value:"Module"})),rl={cart:Au,events:mu,product:cu,utils:tl},js={helpers:rl};var Is=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function nl(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 Dn={exports:{}},Ee={};Ee._=Ee._interop_require_default=ol;function ol(e){return e&&e.__esModule?e:{default:e}}var _t={exports:{}},Vt={},yo;function Ps(){return yo||(yo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,s){for(var u in s)Object.defineProperty(a,u,{enumerable:!0,get:s[u]})}t(e,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o},assign:function(){return i}});function r(a){const s={};return a.forEach((u,l)=>{typeof s[l]>"u"?s[l]=u:Array.isArray(s[l])?s[l].push(u):s[l]=[s[l],u]}),s}function n(a){return typeof a=="string"||typeof a=="number"&&!isNaN(a)||typeof a=="boolean"?String(a):""}function o(a){const s=new URLSearchParams;return Object.entries(a).forEach(u=>{let[l,p]=u;Array.isArray(p)?p.forEach(m=>s.append(l,n(m))):s.set(l,n(p))}),s}function i(a){for(var s=arguments.length,u=new Array(s>1?s-1:0),l=1;l<s;l++)u[l-1]=arguments[l];return u.forEach(p=>{Array.from(p.keys()).forEach(m=>a.delete(m)),p.forEach((m,d)=>a.append(d,m))}),a}}(Vt)),Vt}var Kt={},Qe={};function Ns(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Ns=function(n){return n?r:t})(e)}Qe._=Qe._interop_require_wildcard=il;function il(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Ns(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}var _o;function Os(){return _o||(_o=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,l){for(var p in l)Object.defineProperty(u,p,{enumerable:!0,get:l[p]})}t(e,{formatUrl:function(){return i},urlObjectKeys:function(){return a},formatWithValidation:function(){return s}});const n=Qe._(Ps()),o=/https?|ftp|gopher|file/;function i(u){let{auth:l,hostname:p}=u,m=u.protocol||"",d=u.pathname||"",f=u.hash||"",h=u.query||"",y=!1;l=l?encodeURIComponent(l).replace(/%3A/i,":")+"@":"",u.host?y=l+u.host:p&&(y=l+(~p.indexOf(":")?"["+p+"]":p),u.port&&(y+=":"+u.port)),h&&typeof h=="object"&&(h=String(n.urlQueryToSearchParams(h)));let g=u.search||h&&"?"+h||"";return m&&!m.endsWith(":")&&(m+=":"),u.slashes||(!m||o.test(m))&&y!==!1?(y="//"+(y||""),d&&d[0]!=="/"&&(d="/"+d)):y||(y=""),f&&f[0]!=="#"&&(f="#"+f),g&&g[0]!=="?"&&(g="?"+g),d=d.replace(/[?#]/g,encodeURIComponent),g=g.replace("#","%23"),""+m+y+d+g+f}const a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(u){return process.env.NODE_ENV==="development"&&u!==null&&typeof u=="object"&&Object.keys(u).forEach(l=>{a.includes(l)||console.warn("Unknown key passed via urlObject into url.format: "+l)}),i(u)}}(Kt)),Kt}var Xt={},vo;function al(){return vo||(vo=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}}(Xt)),Xt}var Qt={},bo;function Bt(){return bo||(bo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,C){for(var j in C)Object.defineProperty(S,j,{enumerable:!0,get:C[j]})}t(e,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return i},getLocationOrigin:function(){return a},getURL:function(){return s},getDisplayName:function(){return u},isResSent:function(){return l},normalizeRepeatedSlashes:function(){return p},loadGetInitialProps:function(){return m},SP:function(){return d},ST:function(){return f},DecodeError:function(){return h},NormalizeError:function(){return y},PageNotFoundError:function(){return g},MissingStaticPage:function(){return v},MiddlewareNotFoundError:function(){return A},stringifyError:function(){return _}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(S){let C=!1,j;return function(){for(var x=arguments.length,I=new Array(x),D=0;D<x;D++)I[D]=arguments[D];return C||(C=!0,j=S(...I)),j}}const o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=S=>o.test(S);function a(){const{protocol:S,hostname:C,port:j}=window.location;return S+"//"+C+(j?":"+j:"")}function s(){const{href:S}=window.location,C=a();return S.substring(C.length)}function u(S){return typeof S=="string"?S:S.displayName||S.name||"Unknown"}function l(S){return S.finished||S.headersSent}function p(S){const C=S.split("?");return C[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(C[1]?"?"+C.slice(1).join("?"):"")}async function m(S,C){if(process.env.NODE_ENV!=="production"){var j;if((j=S.prototype)!=null&&j.getInitialProps){const D='"'+u(S)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error(D)}}const x=C.res||C.ctx&&C.ctx.res;if(!S.getInitialProps)return C.ctx&&C.Component?{pageProps:await m(C.Component,C.ctx)}:{};const I=await S.getInitialProps(C);if(x&&l(x))return I;if(!I){const D='"'+u(S)+'.getInitialProps()" should resolve to an object. But found "'+I+'" instead.';throw new Error(D)}return process.env.NODE_ENV!=="production"&&Object.keys(I).length===0&&!C.ctx&&console.warn(""+u(S)+" 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",f=d&&["mark","measure","getEntriesByName"].every(S=>typeof performance[S]=="function");class h extends Error{}class y extends Error{}class g extends Error{constructor(C){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+C}}class v extends Error{constructor(C,j){super(),this.message="Failed to load static file for page: "+C+" "+j}}class A extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function _(S){return JSON.stringify({message:S.message,stack:S.stack})}}(Qt)),Qt}var vt={exports:{}},Yt={},xo;function Ts(){return xo||(xo=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(/\/$/,"")||"/"}}(Yt)),Yt}var Zt={},Co;function Jn(){return Co||(Co=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:""}}}(Zt)),Zt}var So;function Ht(){return So||(So=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const r=Ts(),n=Jn(),o=i=>{if(!i.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return i;const{pathname:a,query:s,hash:u}=(0,n.parsePath)(i);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(a)?""+(0,r.removeTrailingSlash)(a)+s+u:a.endsWith("/")?""+a+s+u:a+"/"+s+u:""+(0,r.removeTrailingSlash)(a)+s+u};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(vt,vt.exports)),vt.exports}var Jt={},bt={exports:{}},er={},Ao;function Ms(){return Ao||(Ao=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=Jn();function r(n,o){if(typeof n!="string")return!1;const{pathname:i}=(0,t.parsePath)(n);return i===o||i.startsWith(o+"/")}}(er)),er}var Ro;function sl(){return Ro||(Ro=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});const r=Ms(),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)}(bt,bt.exports)),bt.exports}var Eo;function ks(){return Eo||(Eo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=Bt(),r=sl();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}}}(Jt)),Jt}var tr={},rr={},wo;function cl(){return wo||(wo=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(s=>this.children.get(s)._smoosh(""+o+s+"/")).reduce((s,u)=>[...s,...u],[]);if(this.slugName!==null&&a.push(...this.children.get("[]")._smoosh(o+"["+this.slugName+"]/")),!this.placeholder){const s=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 ("'+s+'" and "'+s+"[[..."+this.optionalRestSlugName+']]").');a.unshift(s)}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 s=o[0];if(s.startsWith("[")&&s.endsWith("]")){let p=function(m,d){if(m!==null&&m!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+m+"' !== '"+d+"').");i.forEach(f=>{if(f===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(f.replace(/\W/g,"")===s.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+f+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),i.push(d)},u=s.slice(1,-1),l=!1;if(u.startsWith("[")&&u.endsWith("]")&&(u=u.slice(1,-1),l=!0),u.startsWith("...")&&(u=u.substring(3),a=!0),u.startsWith("[")||u.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+u+"').");if(u.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+u+"').");if(a)if(l){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]+'" ).');p(this.optionalRestSlugName,u),this.optionalRestSlugName=u,s="[[...]]"}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]+'").');p(this.restSlugName,u),this.restSlugName=u,s="[...]"}else{if(l)throw new Error('Optional route parameters are not yet supported ("'+o[0]+'").');p(this.slugName,u),this.slugName=u,s="[]"}}this.children.has(s)||this.children.set(s,new t),this.children.get(s)._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()}}(rr)),rr}var nr={},jo;function ul(){return jo||(jo=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)}}(nr)),nr}var Io;function ll(){return Io||(Io=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=cl(),n=ul()}(tr)),tr}var or={},ir={},Po;function dl(){return Po||(Po=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=Bt();function r(n){let{re:o,groups:i}=n;return a=>{const s=o.exec(a);if(!s)return!1;const u=p=>{try{return decodeURIComponent(p)}catch{throw new t.DecodeError("failed to decode param")}},l={};return Object.keys(i).forEach(p=>{const m=i[p],d=s[m.pos];d!==void 0&&(l[p]=~d.indexOf("/")?d.split("/").map(f=>u(f)):m.repeat?[u(d)]:u(d))}),l}}}(ir)),ir}var ar={},sr={},cr={},ur={},No;function fl(){return No||(No=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}}(ur)),ur}var lr={},Oo;function pl(){return Oo||(Oo=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(")")}}(lr)),lr}var To;function ml(){return To||(To=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,s){for(var u in s)Object.defineProperty(a,u,{enumerable:!0,get:s[u]})}t(e,{normalizeAppPath:function(){return o},normalizeRscPath:function(){return i}});const r=fl(),n=pl();function o(a){return(0,r.ensureLeadingSlash)(a.split("/").reduce((s,u,l,p)=>!u||(0,n.isGroupSegment)(u)||u[0]==="@"||(u==="page"||u==="route")&&l===p.length-1?s:s+"/"+u,""))}function i(a,s){return s?a.replace(/\.rsc($|\?)/,"$1"):a}}(cr)),cr}var Mo;function hl(){return Mo||(Mo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,s){for(var u in s)Object.defineProperty(a,u,{enumerable:!0,get:s[u]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return n},isInterceptionRouteAppPath:function(){return o},extractInterceptionRouteInformation:function(){return i}});const r=ml(),n=["(..)(..)","(.)","(..)","(...)"];function o(a){return a.split("/").find(s=>n.find(u=>s.startsWith(u)))!==void 0}function i(a){let s,u,l;for(const p of a.split("/"))if(u=n.find(m=>p.startsWith(m)),u){[s,l]=a.split(u,2);break}if(!s||!u||!l)throw new Error(`Invalid interception route: ${a}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(s=(0,r.normalizeAppPath)(s),u){case"(.)":s==="/"?l=`/${l}`:l=s+"/"+l;break;case"(..)":if(s==="/")throw new Error(`Invalid interception route: ${a}. Cannot use (..) marker at the root level, use (.) instead.`);l=s.split("/").slice(0,-1).concat(l).join("/");break;case"(...)":l="/"+l;break;case"(..)(..)":const p=s.split("/");if(p.length<=2)throw new Error(`Invalid interception route: ${a}. Cannot use (..)(..) marker at the root level or one level up.`);l=p.slice(0,-2).concat(l).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:s,interceptedRoute:l}}}(sr)),sr}var dr={},ko;function gl(){return ko||(ko=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}}(dr)),dr}var Lo;function yl(){return Lo||(Lo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,g){for(var v in g)Object.defineProperty(y,v,{enumerable:!0,get:g[v]})}t(e,{getRouteRegex:function(){return l},getNamedRouteRegex:function(){return f},getNamedMiddlewareRegex:function(){return h}});const r=hl(),n=gl(),o=Ts(),i="nxtP",a="nxtI";function s(y){const g=y.startsWith("[")&&y.endsWith("]");g&&(y=y.slice(1,-1));const v=y.startsWith("...");return v&&(y=y.slice(3)),{key:y,repeat:v,optional:g}}function u(y){const g=(0,o.removeTrailingSlash)(y).slice(1).split("/"),v={};let A=1;return{parameterizedRoute:g.map(_=>{const S=r.INTERCEPTION_ROUTE_MARKERS.find(j=>_.startsWith(j)),C=_.match(/\[((?:\[.*\])|.+)\]/);if(S&&C){const{key:j,optional:x,repeat:I}=s(C[1]);return v[j]={pos:A++,repeat:I,optional:x},"/"+(0,n.escapeStringRegexp)(S)+"([^/]+?)"}else if(C){const{key:j,repeat:x,optional:I}=s(C[1]);return v[j]={pos:A++,repeat:x,optional:I},x?I?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,n.escapeStringRegexp)(_)}).join(""),groups:v}}function l(y){const{parameterizedRoute:g,groups:v}=u(y);return{re:new RegExp("^"+g+"(?:/)?$"),groups:v}}function p(){let y=0;return()=>{let g="",v=++y;for(;v>0;)g+=String.fromCharCode(97+(v-1)%26),v=Math.floor((v-1)/26);return g}}function m(y){let{getSafeRouteKey:g,segment:v,routeKeys:A,keyPrefix:_}=y;const{key:S,optional:C,repeat:j}=s(v);let x=S.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]=""+_+S:A[x]=""+S,j?C?"(?:/(?<"+x+">.+?))?":"/(?<"+x+">.+?)":"/(?<"+x+">[^/]+?)"}function d(y,g){const v=(0,o.removeTrailingSlash)(y).slice(1).split("/"),A=p(),_={};return{namedParameterizedRoute:v.map(S=>{const C=r.INTERCEPTION_ROUTE_MARKERS.some(x=>S.startsWith(x)),j=S.match(/\[((?:\[.*\])|.+)\]/);return C&&j?m({getSafeRouteKey:A,segment:j[1],routeKeys:_,keyPrefix:g?a:void 0}):j?m({getSafeRouteKey:A,segment:j[1],routeKeys:_,keyPrefix:g?i:void 0}):"/"+(0,n.escapeStringRegexp)(S)}).join(""),routeKeys:_}}function f(y,g){const v=d(y,g);return{...l(y),namedRegex:"^"+v.namedParameterizedRoute+"(?:/)?$",routeKeys:v.routeKeys}}function h(y,g){const{parameterizedRoute:v}=u(y),{catchAll:A=!0}=g;if(v==="/")return{namedRegex:"^/"+(A?".*":"")+"$"};const{namedParameterizedRoute:_}=d(y,!1);let S=A?"(?:(/.*)?)":"";return{namedRegex:"^"+_+S+"$"}}}(ar)),ar}var Do;function _l(){return Do||(Do=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=dl(),r=yl();function n(o,i,a){let s="";const u=(0,r.getRouteRegex)(o),l=u.groups,p=(i!==o?(0,t.getRouteMatcher)(u)(i):"")||a;s=o;const m=Object.keys(l);return m.every(d=>{let f=p[d]||"";const{repeat:h,optional:y}=l[d];let g="["+(h?"...":"")+d+"]";return y&&(g=(f?"":"/")+"["+g+"]"),h&&!Array.isArray(f)&&(f=[f]),(y||d in p)&&(s=s.replace(g,h?f.map(v=>encodeURIComponent(v)).join("/"):encodeURIComponent(f))||"/")})||(s=""),{params:m,result:s}}}(or)),or}var $o;function vl(){return $o||($o=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return p}});const r=Ps(),n=Os(),o=al(),i=Bt(),a=Ht(),s=ks(),u=ll(),l=_l();function p(m,d,f){let h,y=typeof d=="string"?d:(0,n.formatWithValidation)(d);const g=y.match(/^[a-zA-Z]{1,}:\/\//),v=g?y.slice(g[0].length):y;if((v.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+y+"' passed to next/router in page: '"+m.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const _=(0,i.normalizeRepeatedSlashes)(v);y=(g?g[0]:"")+_}if(!(0,s.isLocalURL)(y))return f?[y]:y;try{h=new URL(y.startsWith("#")?m.asPath:m.pathname,"http://n")}catch{h=new URL("/","http://n")}try{const _=new URL(y,h);_.pathname=(0,a.normalizePathTrailingSlash)(_.pathname);let S="";if((0,u.isDynamicRoute)(_.pathname)&&_.searchParams&&f){const j=(0,r.searchParamsToUrlQuery)(_.searchParams),{result:x,params:I}=(0,l.interpolateAs)(_.pathname,_.pathname,j);x&&(S=(0,n.formatWithValidation)({pathname:x,hash:_.hash,query:(0,o.omit)(j,I)}))}const C=_.origin===h.origin?_.href.slice(_.origin.length):_.href;return f?[C,S||C]:C}catch{return f?[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)}(_t,_t.exports)),_t.exports}var xt={exports:{}},fr={},pr={},qo;function Ls(){return qo||(qo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=Jn();function r(n,o){if(!n.startsWith("/")||!o)return n;const{pathname:i,query:a,hash:s}=(0,t.parsePath)(n);return""+o+i+a+s}}(pr)),pr}var Bo;function bl(){return Bo||(Bo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=Ls(),r=Ms();function n(o,i,a,s){if(!i||i===a)return o;const u=o.toLowerCase();return!s&&((0,r.pathHasPrefix)(u,"/api")||(0,r.pathHasPrefix)(u,"/"+i.toLowerCase()))?o:(0,t.addPathPrefix)(o,"/"+i)}}(fr)),fr}var Ho;function xl(){return Ho||(Ho=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=Ht(),n=function(o){for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(bl().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)}(xt,xt.exports)),xt.exports}var mr={},zo;function Ds(){return zo||(zo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=Ee._(q).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(mr)),mr}var hr={},Fo;function Cl(){return Fo||(Fo=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(l,p){for(var m in p)Object.defineProperty(l,m,{enumerable:!0,get:p[m]})}t(e,{CacheStates:function(){return o},AppRouterContext:function(){return i},LayoutRouterContext:function(){return a},GlobalLayoutRouterContext:function(){return s},TemplateContext:function(){return u}});const n=Ee._(q);var o;(function(l){l.LAZY_INITIALIZED="LAZYINITIALIZED",l.DATA_FETCH="DATAFETCH",l.READY="READY"})(o||(o={}));const i=n.default.createContext(null),a=n.default.createContext(null),s=n.default.createContext(null),u=n.default.createContext(null);process.env.NODE_ENV!=="production"&&(i.displayName="AppRouterContext",a.displayName="LayoutRouterContext",s.displayName="GlobalLayoutRouterContext",u.displayName="TemplateContext")}(hr)),hr}var Ct={exports:{}},St={exports:{}},Uo;function $s(){return Uo||(Uo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(i,a){for(var s in a)Object.defineProperty(i,s,{enumerable:!0,get:a[s]})}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)}(St,St.exports)),St.exports}var Wo;function Sl(){return Wo||(Wo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});const r=q,n=$s(),o=typeof IntersectionObserver=="function",i=new Map,a=[];function s(p){const m={root:p.root||null,margin:p.rootMargin||""},d=a.find(g=>g.root===m.root&&g.margin===m.margin);let f;if(d&&(f=i.get(d),f))return f;const h=new Map,y=new IntersectionObserver(g=>{g.forEach(v=>{const A=h.get(v.target),_=v.isIntersecting||v.intersectionRatio>0;A&&_&&A(_)})},p);return f={id:m,observer:y,elements:h},a.push(m),i.set(m,f),f}function u(p,m,d){const{id:f,observer:h,elements:y}=s(d);return y.set(p,m),h.observe(p),function(){if(y.delete(p),h.unobserve(p),y.size===0){h.disconnect(),i.delete(f);const v=a.findIndex(A=>A.root===f.root&&A.margin===f.margin);v>-1&&a.splice(v,1)}}}function l(p){let{rootRef:m,rootMargin:d,disabled:f}=p;const h=f||!o,[y,g]=(0,r.useState)(!1),v=(0,r.useRef)(null),A=(0,r.useCallback)(S=>{v.current=S},[]);(0,r.useEffect)(()=>{if(o){if(h||y)return;const S=v.current;if(S&&S.tagName)return u(S,j=>j&&g(j),{root:m==null?void 0:m.current,rootMargin:d})}else if(!y){const S=(0,n.requestIdleCallback)(()=>g(!0));return()=>(0,n.cancelIdleCallback)(S)}},[h,d,m,y,v.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)}(Ct,Ct.exports)),Ct.exports}var At={exports:{}},Rt={exports:{}},gr={},Go;function Al(){return Go||(Go=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}}}(gr)),gr}var Vo;function Rl(){return Vo||(Vo=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?Al().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)}(Rt,Rt.exports)),Rt.exports}var Et={exports:{}},yr={},Ko;function El(){return Ko||(Ko=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 s of r){var i,a;const u=(i=s.domain)==null?void 0:i.split(":")[0].toLowerCase();if(n===u||o===s.defaultLocale.toLowerCase()||(a=s.locales)!=null&&a.some(l=>l.toLowerCase()===o))return s}}}}(yr)),yr}var Xo;function wl(){return Xo||(Xo=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 El().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)}(Et,Et.exports)),Et.exports}var Qo;function jl(){return Qo||(Qo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}});const r=Ht(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i,a,s,u){if(process.env.__NEXT_I18N_SUPPORT){const l=Rl().normalizeLocalePath,p=wl().detectDomainLocale,m=a||l(i,s).detectedLocale,d=p(u,void 0,m);if(d){const f="http"+(d.http?"":"s")+"://",h=m===d.defaultLocale?"":"/"+m;return""+f+d.domain+(0,r.normalizePathTrailingSlash)(""+n+h+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)}(At,At.exports)),At.exports}var wt={exports:{}},Yo;function Il(){return Yo||(Yo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return i}});const r=Ls(),n=Ht(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function i(a,s){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!s?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)}(wt,wt.exports)),wt.exports}var jt={exports:{}},Zo;function Pl(){return Zo||(Zo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(m,d){for(var f in d)Object.defineProperty(m,f,{enumerable:!0,get:d[f]})}r(t,{PrefetchKind:function(){return p},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 s},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return l}});const n="refresh",o="navigate",i="restore",a="server-patch",s="prefetch",u="fast-refresh",l="server-action";var p;(function(m){m.AUTO="auto",m.FULL="full",m.TEMPORARY="temporary"})(p||(p={})),(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(jt,jt.exports)),jt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return C}});const n=Ee._(q),o=vl(),i=ks(),a=Os(),s=Bt(),u=xl(),l=Ds(),p=Cl(),m=Sl(),d=jl(),f=Il(),h=Pl(),y=new Set;function g(j,x,I,D,R,P){if(typeof window>"u"||!P&&!(0,i.isLocalURL)(x))return;if(!D.bypassPrefetchedCheck){const $=typeof D.locale<"u"?D.locale:"locale"in j?j.locale:void 0,E=x+"%"+I+"%"+$;if(y.has(E))return;y.add(E)}const M=P?j.prefetch(x,R):j.prefetch(x,I,D);Promise.resolve(M).catch($=>{if(process.env.NODE_ENV!=="production")throw $})}function v(j){const I=j.currentTarget.getAttribute("target");return I&&I!=="_self"||j.metaKey||j.ctrlKey||j.shiftKey||j.altKey||j.nativeEvent&&j.nativeEvent.which===2}function A(j,x,I,D,R,P,M,$,E,B){const{nodeName:F}=j.currentTarget;if(F.toUpperCase()==="A"&&(v(j)||!E&&!(0,i.isLocalURL)(I)))return;j.preventDefault();const K=()=>{const G=M??!0;"beforePopState"in x?x[R?"replace":"push"](I,D,{shallow:P,locale:$,scroll:G}):x[R?"replace":"push"](D||I,{forceOptimisticNavigation:!B,scroll:G})};E?n.default.startTransition(K):K()}function _(j){return typeof j=="string"?j:(0,a.formatUrl)(j)}const C=n.default.forwardRef(function(x,I){let D;const{href:R,as:P,children:M,prefetch:$=null,passHref:E,replace:B,shallow:F,scroll:U,locale:K,onClick:G,onMouseEnter:z,onTouchStart:ne,legacyBehavior:w=!1,...O}=x;D=M,w&&(typeof D=="string"||typeof D=="number")&&(D=n.default.createElement("a",null,D));const L=n.default.useContext(l.RouterContext),X=n.default.useContext(p.AppRouterContext),te=L??X,Z=!L,T=$!==!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&&!P){let ie;if(typeof R=="string"?ie=R:typeof R=="object"&&typeof R.pathname=="string"&&(ie=R.pathname),ie&&ie.split("/").some(W=>W.startsWith("[")&&W.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(!L){const W=_(R);return{href:W,as:P?_(P):W}}const[ie,me]=(0,o.resolveHref)(L,R,!0);return{href:ie,as:P?(0,o.resolveHref)(L,P):me||ie}},[L,R,P]),k=n.default.useRef(Y),N=n.default.useRef(ee);let re;if(w)if(process.env.NODE_ENV==="development"){G&&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'),z&&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(D)}catch{throw D?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(D);else if(process.env.NODE_ENV==="development"&&(D==null?void 0:D.type)==="a")throw new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
|
|
4
|
+
Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);const ae=w?re&&typeof re=="object"&&re.ref:I,[ce,ue,se]=(0,m.useIntersection)({rootMargin:"200px"}),H=n.default.useCallback(ie=>{(N.current!==ee||k.current!==Y)&&(se(),N.current=ee,k.current=Y),ce(ie),ae&&(typeof ae=="function"?ae(ie):typeof ae=="object"&&(ae.current=ie))},[ee,ae,Y,se,ce]);n.default.useEffect(()=>{process.env.NODE_ENV==="production"&&te&&(!ue||!T||g(te,Y,ee,{locale:K},{kind:J},Z))},[ee,Y,ue,K,T,L==null?void 0:L.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.');!w&&typeof G=="function"&&G(ie),w&&re.props&&typeof re.props.onClick=="function"&&re.props.onClick(ie),te&&(ie.defaultPrevented||A(ie,te,Y,ee,B,F,U,K,Z,T))},onMouseEnter(ie){!w&&typeof z=="function"&&z(ie),w&&re.props&&typeof re.props.onMouseEnter=="function"&&re.props.onMouseEnter(ie),te&&((!T||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&&(!T&&Z||g(te,Y,ee,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))}};if((0,s.isAbsoluteUrl)(ee))he.href=ee;else if(!w||E||re.type==="a"&&!("href"in re.props)){const ie=typeof K<"u"?K:L==null?void 0:L.locale,me=(L==null?void 0:L.isLocaleDomain)&&(0,d.getDomainLocale)(ee,ie,L==null?void 0:L.locales,L==null?void 0:L.domainLocales);he.href=me||(0,f.addBasePath)((0,u.addLocale)(ee,ie,L==null?void 0:L.defaultLocale))}return w?n.default.cloneElement(re,he):n.default.createElement("a",{...O,...he},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)})(Dn,Dn.exports);var Nl=Dn.exports,Ol=Nl;const we=qt(Ol),Tl=e=>{const t=e.getBlocksAsArray(),r=[];return t.forEach(n=>{const o=n.getType(),i=n.getText();let a;const s=n.getInlineStyleAt(0).toArray();s.length>0&&(a=s.map(l=>{switch(l){case"BOLD":return"font-weight: bold;";case"ITALIC":return"font-style: italic;";case"UNDERLINE":return"text-decoration: underline;";default:return""}}).join(" "));const u={type:"p",text:i,...a&&{styleText:a}};switch(o){case"header-one":u.type="h1";break;case"header-two":u.type="h2";break;case"header-three":u.type="h3";break;case"unordered-list-item":u.type="li";break;case"ordered-list-item":u.type="li";break;case"blockquote":u.type="blockquote";break;case"code-block":u.type="pre";break;default:u.type="p"}r.push(u)}),r},Ml=(e,t,r)=>{e.findEntityRanges(n=>{const o=n.getEntity();return o===null?!1:r.getEntity(o).getType()==="LINK"},t)},$n=e=>{const t=new Te.CompositeDecorator([{strategy:Ml,component:we}]),r=Te.convertFromRaw(e);return Te.EditorState.createWithContent(r,t)},kl=e=>Te.convertFromRaw(e),qn=Te.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),Ll=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:$n,EXTENDED_BLOCK_RENDER_MAP:qn,GET_CONTENT_STATE:kl,convertDraftToHTML:Tl},Symbol.toStringTag,{value:"Module"})),kt={"responsive-mobile-flex":"_responsive-mobile-flex_t5bry_2","responsive-desktop-flex":"_responsive-desktop-flex_t5bry_13","responsive-mobile-block":"_responsive-mobile-block_t5bry_24","responsive-desktop-block":"_responsive-desktop-block_t5bry_35"},Dl=({slug:e,data:t,SectionZone:r,COMMON_PAGE_COLUMN_GAP:n})=>{const o=t==null?void 0:t.find(p=>{var m,d,f,h;return((d=(m=p.config)==null?void 0:m.responsive)==null?void 0:d.deviceType)==="desktop"&&((h=(f=p.config)==null?void 0:f.seo)==null?void 0:h.slug)===e}),i=o==null?void 0:o.config.responsive.gapCustom,a=o==null?void 0:o.config.responsive.gapSections,s=t==null?void 0:t.find(p=>{var m,d,f,h;return((d=(m=p.config)==null?void 0:m.responsive)==null?void 0:d.deviceType)==="mobile"&&((h=(f=p.config)==null?void 0:f.seo)==null?void 0:h.slug)===e}),u=s==null?void 0:s.config.responsive.gapCustom,l=s==null?void 0:s.config.responsive.gapSections;return c.jsxs(c.Fragment,{children:[c.jsx(b.Utils.Column,{gap:i&&a?a:n,className:b.helpers.classNameConcat(kt["responsive-desktop-flex"],"utils-column-modifier"),children:c.jsx(r,{data:(o==null?void 0:o.sections)??[]})}),c.jsx(b.Utils.Column,{gap:u&&l?l:n,className:b.helpers.classNameConcat(kt["responsive-mobile-flex"],"utils-column-modifier"),children:c.jsx(r,{data:(s==null?void 0:s.sections)??[]})})]})},We=e=>({centro:"center",esquerda:"start",direita:"end"})[e],$l=({expanded:e,content:t})=>c.jsxs("details",{open:e,children:[t.textStructureReduced?c.jsx("summary",{onClick:r=>r.preventDefault(),children:c.jsx(Te.Editor,{editorKey:"draft-editor-1",blockRenderMap:qn,editorState:t!=null&&t.textStructureReduced?$n(JSON.parse(t.textStructureReduced)):Te.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):c.jsx(c.Fragment,{}),t.showTextStructureExpander&&t.textStructure?c.jsx(c.Fragment,{children:c.jsx(Te.Editor,{editorKey:"draft-editor-1",blockRenderMap:qn,editorState:t.textStructure?$n(JSON.parse(t.textStructure)):Te.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):c.jsx(c.Fragment,{})]}),ql={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},Bl="_textContentWrapper_1bigo_5",Hl="_textContentSection_1bigo_13",Bn={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:Bl,textContentSection:Hl},zl="_link_w24h0_1",Fl="_wrapper_w24h0_98",Ul="_text_w24h0_106",_r={link:zl,wrapper:Fl,text:Ul},Je=({children:e,adornments:t,className:r,disableUnderline:n,href:o,mode:i,size:a,title:s,onClick:u,disablePadding:l,...p})=>{const m=b.helpers.ValidateProp({fieldTypes:ot.SizesSmallExtended,property:a,fallback:"medium"}),d=b.helpers.ValidateProp({fieldTypes:ot.Mode,property:i,fallback:"default"});return c.jsx(we,{...p,className:b.helpers.classNameConcat(_r.link,r),href:o&&o.length>0?o:"#","data-size":m,"data-variant":d,title:s||"NextLink","data-disable-underline":n??!1,"data-disable-padding":l??!0,children:c.jsxs("div",{className:_r.wrapper,onClick:u,children:[t==null?void 0:t.start,c.jsx("p",{className:_r.text,"data-size":m,children:e}),t==null?void 0:t.end]})})},eo=({data:e,ICONS:t})=>{var o;const[r,n]=q.useState(!1);return c.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:We(e.textStructureAlignment),alignItems:We(e.textStructureAlignment)},columnWrapper:{alignContent:We(e.textStructureAlignment),alignItems:We(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?c.jsx(b.Button,{variant:"tertiary",adornment:{end:c.jsx(b.Icon,{name:r?`${t.arrow_up}`:`${t.arrow_down}`})},onClick:()=>n(i=>!i),size:"small",children:r?"Ver Menos":"Ver Mais"}):c.jsx(c.Fragment,{})},children:c.jsxs(b.Utils.Column,{className:Bn.textContentWrapper,style:{alignItems:We(e.textStructureAlignment)},children:[c.jsx(b.TextStructure.DivWrapper,{style:{textAlign:We(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:ql["draftjs-text-modifier"],children:e.textStructureReduced?c.jsx($l,{content:e,expanded:r}):c.jsx(c.Fragment,{})}),e.textStructureButtonLabel?c.jsx(Je,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:Bn["link-modifier"],adornments:(o=e.textStructureButtonIcon)!=null&&o.length&&e.enableIcon?{end:c.jsx(b.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):c.jsx(c.Fragment,{})]})})},Wl=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],Jo=e=>({centro:"center",esquerda:"start",direita:"end"})[e],Gl="_image_lypfr_1",Vl={image:Gl},Kl=({alt:e,className:t,objectFit:r,...n})=>{const{nextimage:o}=Ne();return c.jsx(o,{quality:90,...n,alt:e??"",className:b.helpers.classNameConcat(Vl.image,t),"data-object-fit":r??"cover"})},Xl=({videoRef:e,...t})=>c.jsx("video",{...t,ref:e,children:c.jsx("track",{kind:"captions"})}),Oe={Image:Kl,Video:Xl},Hn=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...n})=>{const[o,i]=q.useState(ws(new mo.TZDate(Date.now(),r),new mo.TZDate(e,r))),[a,s]=q.useState(!1);q.useEffect(()=>{a||s(!0);const l=setInterval(()=>{if(o<=0){clearInterval(l);return}i(o-1e3)},1e3);return()=>{clearInterval(l)}},[o,i,a]);const u=nt(o,"days");return a&&o>0?c.jsxs(b.Timer.Root,{...n,children:[u?c.jsxs(c.Fragment,{children:[c.jsx(b.Timer.Digit,{label:"dias",value:u}),c.jsx(b.Timer.Separator,{})]}):null,c.jsx(b.Timer.Digit,{label:"horas",value:nt(o,"hours")}),c.jsx(b.Timer.Separator,{}),c.jsx(b.Timer.Digit,{label:"min",value:nt(o,"minutes")}),c.jsx(b.Timer.Separator,{}),c.jsx(b.Timer.Digit,{label:"segs",value:nt(o),suppressHydrationWarning:!0})]}):c.jsx(c.Fragment,{})},ei={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},ti=({data:e,videoUrl:t,priority:r,videoRef:n,ICONS:o,...i})=>{const{video:a,image:s,imageHref:u,imageOpacity:l,altImage:p,backgroundColor:m,position:d,contentAlignment:f,showTimer:h,contentOrder:y,timerMode:g,timerEnd:v,timerInit:A,textStructure:_,textStructureReduced:S}=e.banner,C=(u==null?void 0:u.trim())||(s==null?void 0:s.trim())||null,{nextimage:j}=Ne();return c.jsxs(b.Banner.Container,{...i,children:[c.jsxs(b.Banner.ImageWrapper,{className:ei["banner-image-wrapper-modifier"],style:l?{background:m}:void 0,children:[a&&c.jsx(Oe.Video,{videoRef:n,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),C&&!(a!=null&&a.length)&&c.jsx(j,{src:C,width:"1920",height:"1080",alt:p??s??"",...r?{priority:r}:{},style:l?{opacity:"0"}:void 0}),!s&&!(a!=null&&a.length)&&c.jsx("div",{style:{background:m}})]}),h||S||_?c.jsx(b.Banner.Slot,{...Wl(d??"centro"),className:ei["content-modifier"],style:{textAlign:Jo(f)},children:c.jsxs(b.Utils.Column,{gap:"16px",alignItems:Jo(f),children:[h&&y==="timer-first"&&c.jsx(Hn,{mode:g??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:A?new Date(A):new Date}),c.jsx(eo,{data:e.banner,ICONS:o}),h&&y!=="timer-first"&&c.jsx(Hn,{mode:g??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:A?new Date(A):new Date})]})}):c.jsx(c.Fragment,{})]})},Ql={"observer-wrapper":"_observer-wrapper_r43gk_1"};function Yl(e,t,r){const[n,o]=q.useState(!1),{threshold:i}=r||{};return q.useEffect(()=>{if(!e.current)return()=>null;let a=null;const s=new IntersectionObserver(([u])=>{if(r!=null&&r.delay){a&&clearTimeout(a),a=setTimeout(()=>{o(u.isIntersecting),t&&u.isIntersecting&&s.unobserve(e.current)},r.delay);return}o(u.isIntersecting),t&&u.isIntersecting&&s.unobserve(e.current)},{threshold:i||1});return s.observe(e.current),()=>{s.disconnect()}},[e]),n}const to=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:n,stopOnIntersection:o=!0,className:i,...a})=>{const s=q.useRef(null),u=Yl(s,o,r),{sendDataLayerEvent:l}=ge();return q.useEffect(()=>{u&&(typeof n=="function"&&n(),t&&l({...t}))},[u]),c.jsx("div",{...a,ref:s,className:b.helpers.classNameConcat(Ql["observer-wrapper"],i),children:e})},qs=({data:e,className:t,priority:r,creative:n,...o})=>{const{handleSelectPromotionEvent:i,currentLocalRef:a}=ge(),{banner:{promotion_name:s},index:u,componentIndex:l}=e,p=typeof u=="number"?`:${u+1}`:"",m={creative_name:n,creative_slot:`${n}-${a.current}:${l+1}${p}`,promotion_id:e.banner.href,promotion_name:s},d=q.useRef(null),f=q.useMemo(()=>{var y;if((y=e.banner.video)!=null&&y.includes("player.vimeo")){const g=e.banner.video.split("?")[1],v=g==null?void 0:g.split("&"),A=v==null?void 0:v.filter(S=>S.includes("loc")||S.includes("signature")||S.includes("user_id")),_=A==null?void 0:A.join("&");return`${e.banner.video.split("?")[0]}?${_}`}return e.banner.video},[e]),h=()=>{var y;(y=d.current)!=null&&y.paused&&d.current.play()};return c.jsx(to,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...m,index:u}}}},observerOptions:{delay:100,...f&&{threshold:.1}},...f&&{callBackWhenVisible:h},children:e.banner.href?c.jsx(we,{href:e.banner.href,onClick:()=>{i({updatePromotionRef:!0,promotion:m,index:u})},children:c.jsx(ti,{data:e,videoUrl:f,priority:r,videoRef:d,...o})}):c.jsx(ti,{data:e,videoUrl:f,priority:r,videoRef:d,...o})})},Bs=e=>c.jsx(qs,{...e}),Zl={Banner:Bs},tt={"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"},Jl=({data:e,CONSTANTS:t})=>{var l;const{isMobile:r}=ke(),n=e.config.size??"medium",o=e.config.disableCarouselMobile??!1,{initialize:i,pagination:a,controller:s,itemsStyles:u}=b.Carousel.useCarousel({itemsPerPage:r?e==null?void 0:e.config.slidesPerViewMobile:(l=e==null?void 0:e.config)==null?void 0:l.slidesPerView,gap:r?e.config.gapMobile:e.config.gap,direction:r&&o?"column":"row"});return c.jsx(b.Utils.Column,{style:{width:n==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:c.jsxs(b.Carousel.Root,{innerRef:p=>{i(p)},className:b.helpers.classNameConcat(tt["carousel-modifier"],"common-section"),children:[n==="medium"?c.jsxs(b.TextStructure.Root,{children:[c.jsx(b.TextStructure.DivWrapper,{className:tt["carousel-title-modifier"],children:c.jsx("h2",{className:"typography-style-body-lg",children:t.BENNEFITS_BAR_TITLE})}),r&&a.totalPages>1?c.jsx(b.Carousel.Controller,{className:tt["row-controller-modifier"],children:c.jsxs(b.Carousel.Arrows,{children:[c.jsx(b.Button,{variant:"tertiary",onClick:()=>s==null?void 0:s.prevPage(),adornment:{start:c.jsx(b.Icon,{name:t.ICONS.arrow_left})}}),c.jsx(b.Button,{variant:"tertiary",onClick:()=>s==null?void 0:s.nextPage(),adornment:{start:c.jsx(b.Icon,{name:t.ICONS.arrow_right})}})]})}):c.jsx(c.Fragment,{})]}):c.jsx(c.Fragment,{}),c.jsx(b.Carousel.Body,{children:e.bennefit.map((p,m)=>c.jsx(b.Carousel.Item,{className:tt["card-modifier"],style:u,children:c.jsx(b.Card,{stroke:!0,padding:"small",children:c.jsx(b.TextStructure.Root,{layoutProps:{columnWrapper:{alignContent:"start",alignItems:"start",justifyContent:"start"},textRow:{alignContent:"center",alignItems:"center",justifyContent:"center"}},adornment:{[n==="medium"?"top":"start"]:c.jsx(b.Icon,{name:p.icon,size:n==="medium"?"medium":"small"})},children:c.jsxs(b.TextStructure.DivWrapper,{alignItems:"start",children:[c.jsx("h3",{className:"typography-style-body-md",children:p.title}),p.subtitle&&p.subtitle.length?c.jsx("p",{className:"typography-style-body-xs",children:p.subtitle}):c.jsx(c.Fragment,{})]})})})},`bennefit=${m}`))}),!r&&a.totalPages>1?c.jsxs(b.Carousel.Controller,{className:tt["row-controller-modifier"],children:[c.jsxs(b.Carousel.Arrows,{children:[c.jsx(b.Button,{variant:"tertiary",onClick:()=>s==null?void 0:s.prevPage(),adornment:{start:c.jsx(b.Icon,{name:t.ICONS.arrow_left})}}),c.jsx(b.Button,{variant:"tertiary",onClick:()=>s==null?void 0:s.nextPage(),adornment:{start:c.jsx(b.Icon,{name:t.ICONS.arrow_right})}})]}),c.jsx(b.Carousel.Bullets,{page:a.currentPage,total:a.totalPages,onBulletClick:p=>s==null?void 0:s.navigateTo(p)})]}):c.jsx(c.Fragment,{})]})})},ed=({data:e,ICONS:t})=>c.jsx("div",{className:b.helpers.classNameConcat(Bn.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:c.jsx(eo,{data:e,ICONS:t})}),td={Banner:Zl,BannerSection:qs,BennefitsBarSection:Jl,DataScreening:Dl,SingleBannerSection:Bs,TextContentSection:ed,TextContent:eo},rd={Components:td,helpers:Ll},je={"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"},Hs=({brand:e,className:t,name:r,...n})=>c.jsxs("div",{...n,className:b.helpers.classNameConcat(je["add-to-cart--card--name"],t),children:[c.jsx(b.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),c.jsx(b.TextStructure.Root,{children:c.jsx(b.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:c.jsx("p",{className:"typography-style-body-md",children:r})})})]});Hs.displayName="AddToCart.Card.Name";const zs=({className:e,listPrice:t,price:r,quantity:n,productId:o,...i})=>{const a=Me(r/100),s=Me(t/100);return c.jsx("div",{...i,className:b.helpers.classNameConcat(je["add-to-cart--card--price-quantity"],e),children:c.jsx(b.ProductInfo.Root,{size:"small",layout:"vertical",children:c.jsx(b.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:c.jsx(b.ProductInfo.ValuesWrapper,{children:r!==t?c.jsxs(c.Fragment,{children:[c.jsx(b.ProductInfo.Price,{label:"originalPrice",value:a,size:"small"},"price-list"),c.jsx(b.ProductInfo.Price,{label:"discountPrice",value:s,size:"small"},"price-low")]}):c.jsx(b.ProductInfo.Price,{label:"defaultPrice",value:s,size:"small"},"price-low")})})})})};zs.displayName="AddToCart.Card.PriceQuantity";const nd="_skeleton_12b79_1",od={skeleton:nd},id=({style:e})=>c.jsx("div",{style:e,className:od.skeleton}),Fs=({className:e,productGroupID:t,size:r,texture:n,...o})=>{const{CONSTANTS:{TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a}}=Fe(),[s,u]=q.useState(n??"");return q.useEffect(()=>{s||fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[t]})}).then(l=>l.json()).then(l=>{const p=l.data[0].items[0];if(p){const m=p.images.find(d=>i.includes(d.imageLabel));m!=null&&m.imageUrl?u(m.imageUrl):u(p.images[0].imageUrl)}}).catch(l=>{console.error(l)})},[s,t]),c.jsxs("div",{...o,className:b.helpers.classNameConcat(je["add-to-cart--card--style-size"],e),children:[c.jsx(b.ToggleStyle.Wrapper,{size:"x-small",style:a,children:c.jsx(b.ToggleStyle.Texture,{children:s?c.jsx(Oe.Image,{alt:"",src:s??"",width:164,height:164,style:a}):c.jsx(id,{})})}),c.jsx(b.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),r&&c.jsxs(b.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[c.jsx(b.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),c.jsx(b.ToggleSize.Text,{children:r})]})]})};Fs.displayName="AddToCart.Card.StyleSize";const{helpers:ad}=js,Us=({className:e,item:t,texture:r,...n})=>{const{itemOffered:{name:o,brand:i,skuName:a,isVariationOf:{productGroupID:s}},quantity:u,price:l,sellingPrice:p}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:m}}=Fe(),{size:d}=ad.product.getColorAndSizeFromSkuName(a??o,m);return console.log("value size, skuName",{size:d,skuName:a,name:o}),c.jsxs("div",{...n,className:b.helpers.classNameConcat(je["add-to-cart--card--content"],e),children:[c.jsx(Hs,{brand:i.name,name:o}),c.jsx(zs,{price:l,listPrice:p,quantity:u,productId:t.id}),c.jsx(Fs,{size:d,texture:r,productGroupID:s})]})};Us.displayName="AddToCart.Card.Content";const Ws=({image:e,thumbnail:t=!1})=>c.jsx(Oe.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});Ws.displayName="AddToCart.Card";const Gs=({className:e,item:t,texture:r,thumbnail:n,...o})=>{const{itemOffered:{image:[i]}}=t,a=Na(i.url,{width:200,height:300});return c.jsxs("div",{...o,className:b.helpers.classNameConcat(je["add-to-cart--card"],e),children:[c.jsx(Ws,{image:{alternateName:i.alternateName||"Produto",url:a||""},thumbnail:n}),!n&&c.jsx(Us,{item:t,texture:r})]})};Gs.displayName="AddToCart.Card";const Vs=({className:e,children:t,title:r,...n})=>c.jsxs("div",{...n,className:b.helpers.classNameConcat(je["add-to-cart--content"],e),children:[c.jsx("div",{className:je["add-to-cart--content--title"],children:r&&c.jsx("h2",{children:r})}),t,c.jsx(Be.Footer,{})]});Vs.displayName="AddToCart.Layout.Content";const Ks=({className:e,...t})=>{var f,h;const{isMobile:r,handleClose:n,CONSTANTS:{ADD_TO_CART:o}}=Fe(),{cartStore:{totalizers:i},setIsOpen:a}=Ze(),s=(f=i.find(y=>y.id==="Discounts"))==null?void 0:f.value,u=((h=i.find(y=>y.id==="Items"))==null?void 0:h.value)??0,l=i.find(y=>y.id==="Shipping"),m=(u-Math.abs(s??0)+((l==null?void 0:l.value)??0))/100,d=Me(m??0);return c.jsxs("div",{...t,className:b.helpers.classNameConcat(je["add-to-cart--footer"],e),children:[c.jsxs("div",{className:je["add-to-cart--footer--total"],children:[c.jsx("span",{children:"Subtotal:"}),c.jsx("span",{children:d})]}),c.jsx(b.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>a(!0),children:o.footer.bag}),r?c.jsx(b.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:o.footer.keep_buying}):c.jsx(b.Button,{onClick:()=>n(),size:"medium",variant:"tertiary",children:o.footer.keep_buying})]})};Ks.displayName="AddToCart.Layout.Footer";const Xs=({children:e,className:t,thumbnail:r=!1,...n})=>{const{cartStore:{options:o}}=Ze(),{recentlyAddedProducts:i}=st(),a=i.length>3?4:i.length;return c.jsxs("div",{...n,className:je["add-to-cart--items"],"data-thumbnail":r,children:[Array.isArray(i)&&i.filter((s,u)=>u<a).map(s=>{var l;const u=(l=o==null?void 0:o.find(p=>p.id===s.itemOffered.isVariationOf.productGroupID))==null?void 0:l.texture;return c.jsx(Be.Card,{item:s,thumbnail:r,texture:u},s.itemOffered.sku)}),e]})};Xs.displayName="AddToCart.Layout.Items";const Qs=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:n}=Fe(),{isMobile:o}=ke();return c.jsxs(b.Modal.Root,{"data-modal":"add-to-cart--modal",className:je["add-to-cart__modal"],isMobile:o??!1,isOpen:r,setIsOpen:n,variant:"sideBottom",style:{zIndex:t.modal},children:[c.jsx(b.Modal.Header,{navigation:"top",children:c.jsx(b.Modal.Controls,{navigation:"top",isMobile:!0})}),c.jsx(b.Modal.Body,{children:e})]})};Qs.displayName="AddToCart.Modal";const sd=({children:e})=>{const{count:t,handleClose:r,setIsOpen:n}=Fe(),o=q.useRef(t);return q.useEffect(()=>{t>o.current&&n(!0),t<o.current&&o.current>=1&&r(),o.current=t},[t,r,n]),c.jsx(c.Fragment,{children:e})},Ys=({children:e,component:t,CONSTANTS:r,...n})=>{const{recentlyAddedProducts:o}=st(),{isMobile:i}=ke(),a=o.length>3?4:o.length;return c.jsx(Ss,{...n,count:a,isMobile:i,CONSTANTS:r,children:c.jsx(sd,{children:i?c.jsxs(c.Fragment,{children:[c.jsx(Be.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):c.jsx(Be.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};Ys.displayName="AddToCart.Root";const Zs=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:o,left:i,isLeaving:a,target:s,isOpen:u,top:l}=Fe();return c.jsx(b.Tooltip.Root,{arrow:"top-right",component:c.jsx("div",{...n,ref:o,children:t}),id:"add-to-cart--tooltip",className:je["add-to-cart--tooltip"],style:{zIndex:r.modal},isLeaving:a,isOpen:u,left:i,size:"medium",position:"top",top:l,children:c.jsx("div",{className:je["add-to-cart--tooltip"],ref:s,children:e})})};Zs.displayName="AddToCart.Tooltip";const Be={Card:Gs,Content:Vs,Footer:Ks,Items:Xs,Modal:Qs,Root:Ys,Tooltip:Zs},ro=({title:e,...t})=>{const{recentlyAddedProducts:r}=st(),{isMobile:n}=ke(),o=r.length>3?4:r.length,i=r.length>(o??1),a=r.length>1;return c.jsx(Be.Root,{isMobile:n,count:r.length,component:c.jsx(Be.Content,{title:e,children:c.jsx(Be.Items,{thumbnail:a,children:i&&c.jsx(b.Badge.Count,{count:r.length-o,size:"medium",variant:"secondary"})})}),...t})};ro.displayName="AddToCart";const ri={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},cd=({children:e,className:t,adornment:r,iconPosition:n,scrollToOptions:o,style:i,...a})=>{const s={top:(o==null?void 0:o.top)??0,left:(o==null?void 0:o.left)??0,behavior:(o==null?void 0:o.behavior)??"smooth"},l=n&&r?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[n]}:{},p=()=>{window&&window.document.body.scrollTo({...s})};return c.jsx(b.Card,{...a,shadow:!0,padding:"small",className:b.helpers.classNameConcat(ri["card-modifier"],t),style:{...i,padding:0},children:c.jsxs("button",{className:ri["backtotop-btn"],onClick:p,style:{...l},"data-orientation":n,children:[r,e]})})},ud=({page:e,data:t})=>{const{pathname:r}=Ne(),n=q.useRef(null),{sendDataLayerEvent:o,currentLocalRef:i,itemListRef:a,promotionEventRef:s}=ge();return q.useEffect(()=>{const u=Rs("login_event")||"{}",l=JSON.parse(u);if(l.name||l.method){const p=new Date(0);o({functionKey:"readyEvents",data:{event:l.name,readyData:{method:l.method}}}),Es("login_event","",{expires:p})}},[]),q.useEffect(()=>{if(n.current===r)return;n.current=r;let u={};switch(e){case"PDP":{const p=t,m={};if(!p){u={page_category:"pdp"};break}p.items.forEach(({itemId:d,sellers:f})=>m[d]=f[0].commertialOffer.AvailableQuantity),u={page_category:"pdp",seller_ids:p.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:m,product_reference_id:p.productReference};break}case"PDC":{const{page_category:p,page_departament:m,id:d,name:f}=$a(),h=f,y=d;u={page_category:"lista_produtos",...m&&{page_departament:m}},a.current={item_list_name:r==="/search"?"busca":h??void 0,item_list_id:r==="/search"?void 0:y??void 0},m&&o({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:p,page_departament:m}}});break}default:u={page_category:e},s.current={},a.current={};break}const l={region:e,...u};i.current=e,o({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...l}},timeout:0})},[r]),null};var zn={exports:{}};function ld(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 vr={},br={},ni;function dd(){return ni||(ni=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return n}});const n=Ee._(q).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="LoadableContext")}(br)),br}var oi;function fd(){return oi||(oi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});const r=Ee._(q),n=dd();function o(h){return h&&h.default?h.default:h}const i=[],a=[];let s=!1;function u(h){let y=h(),g={loading:!0,loaded:null,error:null};return g.promise=y.then(v=>(g.loading=!1,g.loaded=v,v)).catch(v=>{throw g.loading=!1,g.error=v,v}),g}function l(h,y){let g=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},y),v=null;function A(){if(!v){const C=new p(h,g);v={getCurrentValue:C.getCurrentValue.bind(C),subscribe:C.subscribe.bind(C),retry:C.retry.bind(C),promise:C.promise.bind(C)}}return v.promise()}if(typeof window>"u"&&i.push(A),!s&&typeof window<"u"){const C=g.webpack&&typeof ld.resolveWeak=="function"?g.webpack():g.modules;C&&a.push(j=>{for(const x of C)if(j.includes(x))return A()})}function _(){A();const C=r.default.useContext(n.LoadableContext);C&&Array.isArray(g.modules)&&g.modules.forEach(j=>{C(j)})}function S(C,j){_();const x=r.default.useSyncExternalStore(v.subscribe,v.getCurrentValue,v.getCurrentValue);return r.default.useImperativeHandle(j,()=>({retry:v.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:v.retry}):x.loaded?r.default.createElement(o(x.loaded),C):null,[C,x])}return S.preload=()=>A(),S.displayName="LoadableComponent",r.default.forwardRef(S)}class p{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res: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(v=>{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 m(h){return l(u,h)}function d(h,y){let g=[];for(;h.length;){let v=h.pop();g.push(v(y))}return Promise.all(g).then(()=>{if(h.length)return d(h,y)})}m.preloadAll=()=>new Promise((h,y)=>{d(i).then(h,y)}),m.preloadReady=h=>(h===void 0&&(h=[]),new Promise(y=>{const g=()=>(s=!0,y());d(a,h).then(g,g)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=m.preloadReady);const f=m}(vr)),vr}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(p,m){for(var d in m)Object.defineProperty(p,d,{enumerable:!0,get:m[d]})}r(t,{noSSR:function(){return u},default:function(){return l}});const n=Ee,o=n._(q),i=n._(fd()),a=typeof window>"u";function s(p){return{default:(p==null?void 0:p.default)||p}}function u(p,m){if(delete m.webpack,delete m.modules,!a)return p(m);const d=m.loading;return()=>o.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function l(p,m){let d=i.default,f={loading:g=>{let{error:v,isLoading:A,pastDelay:_}=g;if(!_)return null;if(process.env.NODE_ENV!=="production"){if(A)return null;if(v)return o.default.createElement("p",null,v.message,o.default.createElement("br",null),v.stack)}return null}};p instanceof Promise?f.loader=()=>p:typeof p=="function"?f.loader=p:typeof p=="object"&&(f={...f,...p}),f={...f,...m};const h=f.loader,y=()=>h!=null?h().then(s):Promise.resolve(s(()=>null));return f.loadableGenerated&&(f={...f,...f.loadableGenerated},delete f.loadableGenerated),typeof f.ssr=="boolean"&&!f.ssr?(delete f.webpack,delete f.modules,u(d,f)):d({...f,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)})(zn,zn.exports);var pd=zn.exports,md=pd;const no=qt(md);var Fn={exports:{}},xr={},ii;function Js(){return ii||(ii=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=Ee._(q).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="HeadManagerContext")}(xr)),xr}var It={exports:{}},ai;function hd(){return ai||(ai=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(u,l){for(var p in l)Object.defineProperty(u,p,{enumerable:!0,get:l[p]})}r(t,{DOMAttributeNames:function(){return n},isEqualNode:function(){return i},default:function(){return s}});const n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function o(u){let{type:l,props:p}=u;const m=document.createElement(l);for(const h in p){if(!p.hasOwnProperty(h)||h==="children"||h==="dangerouslySetInnerHTML"||p[h]===void 0)continue;const y=n[h]||h.toLowerCase();l==="script"&&(y==="async"||y==="defer"||y==="noModule")?m[y]=!!p[h]:m.setAttribute(y,p[h])}const{children:d,dangerouslySetInnerHTML:f}=p;return f?m.innerHTML=f.__html||"":d&&(m.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),m}function i(u,l){if(u instanceof HTMLElement&&l instanceof HTMLElement){const p=l.getAttribute("nonce");if(p&&!u.getAttribute("nonce")){const m=l.cloneNode(!0);return m.setAttribute("nonce",""),m.nonce=p,p===u.nonce&&u.isEqualNode(m)}}return u.isEqualNode(l)}let a;process.env.__NEXT_STRICT_NEXT_HEAD?a=(u,l)=>{const p=document.querySelector("head");if(!p)return;const m=p.querySelectorAll('meta[name="next-head"]')||[],d=[];if(u==="meta"){const y=p.querySelector("meta[charset]");y&&d.push(y)}for(let y=0;y<m.length;y++){var f;const v=m[y].nextSibling;(v==null||(f=v.tagName)==null?void 0:f.toLowerCase())===u&&d.push(v)}const h=l.map(o).filter(y=>{for(let g=0,v=d.length;g<v;g++){const A=d[g];if(i(A,y))return d.splice(g,1),!1}return!0});d.forEach(y=>{var g;const v=y.previousSibling;if(v&&v.getAttribute("name")==="next-head"){var A;(A=y.parentNode)==null||A.removeChild(v)}(g=y.parentNode)==null||g.removeChild(y)}),h.forEach(y=>{var g;const v=document.createElement("meta");v.name="next-head",v.content="1",((g=y.tagName)==null?void 0:g.toLowerCase())==="meta"&&y.getAttribute("charset")||p.appendChild(v),p.appendChild(y)})}:a=(u,l)=>{const p=document.getElementsByTagName("head")[0],m=p.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!m){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(m.content),f=[];for(let g=0,v=m.previousElementSibling;g<d;g++,v=(v==null?void 0:v.previousElementSibling)||null){var h;(v==null||(h=v.tagName)==null?void 0:h.toLowerCase())===u&&f.push(v)}const y=l.map(o).filter(g=>{for(let v=0,A=f.length;v<A;v++){const _=f[v];if(i(_,g))return f.splice(v,1),!1}return!0});f.forEach(g=>{var v;return(v=g.parentNode)==null?void 0:v.removeChild(g)}),y.forEach(g=>p.insertBefore(g,m)),m.content=(d-f.length+y.length).toString()};function s(){return{mountedInstances:new Set,updateHead:u=>{const l={};u.forEach(d=>{if(d.type==="link"&&d.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+d.props["data-href"]+'"]'))return;d.props.href=d.props["data-href"],d.props["data-href"]=void 0}const f=l[d.type]||[];f.push(d),l[d.type]=f});const p=l.title?l.title[0]:null;let m="";if(p){const{children:d}=p.props;m=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}m!==document.title&&(document.title=m),["meta","base","link","style","script"].forEach(d=>{a(d,l[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)}(It,It.exports)),It.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(C,j){for(var x in j)Object.defineProperty(C,x,{enumerable:!0,get:j[x]})}r(t,{handleClientScriptLoad:function(){return y},initScriptLoader:function(){return A},default:function(){return S}});const n=Ee,o=Qe,i=n._(ba),a=o._(q),s=Js(),u=hd(),l=$s(),p=new Map,m=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],f=C=>{if(i.default.preinit){C.forEach(j=>{i.default.preinit(j,{as:"style"})});return}if(typeof window<"u"){let j=document.head;C.forEach(x=>{let I=document.createElement("link");I.type="text/css",I.rel="stylesheet",I.href=x,j.appendChild(I)})}},h=C=>{const{src:j,id:x,onLoad:I=()=>{},onReady:D=null,dangerouslySetInnerHTML:R,children:P="",strategy:M="afterInteractive",onError:$,stylesheets:E}=C,B=x||j;if(B&&m.has(B))return;if(p.has(j)){m.add(B),p.get(j).then(I,$);return}const F=()=>{D&&D(),m.add(B)},U=document.createElement("script"),K=new Promise((G,z)=>{U.addEventListener("load",function(ne){G(),I&&I.call(this,ne),F()}),U.addEventListener("error",function(ne){z(ne)})}).catch(function(G){$&&$(G)});R?(U.innerHTML=R.__html||"",F()):P?(U.textContent=typeof P=="string"?P:Array.isArray(P)?P.join(""):"",F()):j&&(U.src=j,p.set(j,K));for(const[G,z]of Object.entries(C)){if(z===void 0||d.includes(G))continue;const ne=u.DOMAttributeNames[G]||G.toLowerCase();U.setAttribute(ne,z)}M==="worker"&&U.setAttribute("type","text/partytown"),U.setAttribute("data-nscript",M),E&&f(E),document.body.appendChild(U)};function y(C){const{strategy:j="afterInteractive"}=C;j==="lazyOnload"?window.addEventListener("load",()=>{(0,l.requestIdleCallback)(()=>h(C))}):h(C)}function g(C){document.readyState==="complete"?(0,l.requestIdleCallback)(()=>h(C)):window.addEventListener("load",()=>{(0,l.requestIdleCallback)(()=>h(C))})}function v(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(j=>{const x=j.id||j.getAttribute("src");m.add(x)})}function A(C){C.forEach(y),v()}function _(C){const{id:j,src:x="",onLoad:I=()=>{},onReady:D=null,strategy:R="afterInteractive",onError:P,stylesheets:M,...$}=C,{updateScripts:E,scripts:B,getIsSsr:F,appDir:U,nonce:K}=(0,a.useContext)(s.HeadManagerContext),G=(0,a.useRef)(!1);(0,a.useEffect)(()=>{const ne=j||x;G.current||(D&&ne&&m.has(ne)&&D(),G.current=!0)},[D,j,x]);const z=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{z.current||(R==="afterInteractive"?h(C):R==="lazyOnload"&&g(C),z.current=!0)},[C,R]),(R==="beforeInteractive"||R==="worker")&&(E?(B[R]=(B[R]||[]).concat([{id:j,src:x,onLoad:I,onReady:D,onError:P,...$}]),E(B)):F&&F()?m.add(j||x):F&&!F()&&h(C)),U){if(M&&M.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 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)})(Fn,Fn.exports);var gd=Fn.exports,yd=gd;const _d=qt(yd),vd=({children:e,ONE_TRUST:t})=>c.jsxs(c.Fragment,{children:[c.jsx(_d,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),bd=no(()=>Promise.resolve(vd),{ssr:!1}),xd="_footer__bottom_1o9af_2",Cd="_footer__wrapper_1o9af_10",Sd="_footer__main_1o9af_39",Ad="_footer__legalInformation_1o9af_55",Rd="_footer__column_1o9af_77",Ed="_footer__columnContent_1o9af_87",wd="_footer__item_1o9af_91",jd="_footer__itemLink_1o9af_107",Id="_footer__columnTitle_1o9af_122",Pd="_footer__columnTitleIcon_1o9af_134",Nd="_footer__iconList_1o9af_147",Od="_footer__itemSmallText_1o9af_157",Td="_payment_1o9af_168",Md="_footer__iconContainer_1o9af_173",kd="_footer__iconListSubHeader_1o9af_178",Ld="_accordionWrapper_1o9af_200",Dd="_accordionHeader_1o9af_204",$d="_accordionTextWrapper_1o9af_208",pe={footer__bottom:xd,footer__wrapper:Cd,footer__main:Sd,footer__legalInformation:Ad,footer__column:Rd,footer__columnContent:Ed,footer__item:wd,footer__itemLink:jd,footer__columnTitle:Id,footer__columnTitleIcon:Pd,footer__iconList:Nd,footer__itemSmallText:Od,payment:Td,footer__iconContainer:Md,footer__iconListSubHeader:kd,accordionWrapper:Ld,accordionHeader:Dd,accordionTextWrapper:$d,"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 ec={},oo={},lt={};(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)}}})(lt);var tc={};(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:s,objectFit:u}=r;const l=20,p=i?i*40:n,m=a?a*40:o,d=p&&m?"viewBox='0 0 "+p+" "+m+"'":"",f=d?"none":u==="contain"?"xMidYMid":u==="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='"+l+"'/%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='"+l+"'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+f+"' style='filter: url(%23b);' href='"+s+"'/%3E%3C/svg%3E"}})(tc);var zt={};(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}})(zt);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return f}});const t=lt,r=tc,n=zt,o=["lazy","eager",void 0];function i(h){return h.default!==void 0}function a(h){return h.src!==void 0}function s(h){return typeof h=="object"&&(i(h)||a(h))}const u=new Map;let l;function p(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 m(h,y,g){let{deviceSizes:v,allSizes:A}=h;if(g){const S=/(^|\s)(1?\d?\d)vw/g,C=[];for(let j;j=S.exec(g);j)C.push(parseInt(j[2]));if(C.length){const j=Math.min(...C)*.01;return{widths:A.filter(x=>x>=v[0]*j),kind:"w"}}return{widths:A,kind:"w"}}return typeof y!="number"?{widths:v,kind:"w"}:{widths:[...new Set([y,y*2].map(S=>A.find(C=>C>=S)||A[A.length-1]))],kind:"x"}}function d(h){let{config:y,src:g,unoptimized:v,width:A,quality:_,sizes:S,loader:C}=h;if(v)return{src:g,srcSet:void 0,sizes:void 0};const{widths:j,kind:x}=m(y,A,S),I=j.length-1;return{sizes:!S&&x==="w"?"100vw":S,srcSet:j.map((D,R)=>C({config:y,src:g,quality:_,width:D})+" "+(x==="w"?D:R+1)+x).join(", "),src:C({config:y,src:g,quality:_,width:j[I]})}}function f(h,y){let{src:g,sizes:v,unoptimized:A=!1,priority:_=!1,loading:S,className:C,quality:j,width:x,height:I,fill:D=!1,style:R,onLoad:P,onLoadingComplete:M,placeholder:$="empty",blurDataURL:E,fetchPriority:B,layout:F,objectFit:U,objectPosition:K,lazyBoundary:G,lazyRoot:z,...ne}=h;const{imgConf:w,showAltText:O,blurComplete:L,defaultLoader:X}=y;let te,Z=w||n.imageConfigDefault;if("allSizes"in Z)te=Z;else{const W=[...Z.deviceSizes,...Z.imageSizes].sort((Ce,Q)=>Ce-Q),le=Z.deviceSizes.sort((Ce,Q)=>Ce-Q);te={...Z,allSizes:W,deviceSizes:le}}let T=ne.loader||X;delete ne.loader,delete ne.srcSet;const J="__next_img_default"in T;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 W=T;T=le=>{const{config:Ce,...Q}=le;return W(Q)}}if(F){F==="fill"&&(D=!0);const W={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},le={responsive:"100vw",fill:"100vw"},Ce=W[F];Ce&&(R={...R,...Ce});const Q=le[F];Q&&!v&&(v=Q)}let Y="",ee=p(x),k=p(I),N,re;if(s(g)){const W=i(g)?g.default:g;if(!W.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(W));if(!W.height||!W.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(W));if(N=W.blurWidth,re=W.blurHeight,E=E||W.blurDataURL,Y=W.src,!D){if(!ee&&!k)ee=W.width,k=W.height;else if(ee&&!k){const le=ee/W.width;k=Math.round(W.height*le)}else if(!ee&&k){const le=k/W.height;ee=Math.round(W.width*le)}}}g=typeof g=="string"?g:Y;let ae=!_&&(S==="lazy"||typeof S>"u");(!g||g.startsWith("data:")||g.startsWith("blob:"))&&(A=!0,ae=!1),te.unoptimized&&(A=!0),J&&g.endsWith(".svg")&&!te.dangerouslyAllowSVG&&(A=!0),_&&(B="high");const ce=p(j);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(D){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 k>"u")throw new Error('Image with src "'+g+'" is missing required "height" property.');if(isNaN(k))throw new Error('Image with src "'+g+'" has invalid "height" property. Expected a numeric value in pixels but received "'+I+'".')}if(!o.includes(S))throw new Error('Image with src "'+g+'" has invalid "loading" property. Provided "'+S+'" should be one of '+o.map(String).join(",")+".");if(_&&S==="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&&k&&ee*k<1600&&(0,t.warnOnce)('Image with src "'+g+'" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'),$==="blur"&&!E){const W=["jpeg","png","webp","avif"];throw new Error('Image with src "'+g+`" has "placeholder='blur'" property but is missing the "blurDataURL" property.
|
|
6
|
+
Possible solutions:
|
|
7
|
+
- Add a "blurDataURL" property, the contents should be a small Data URL to represent the image
|
|
8
|
+
- Change the "src" property to a static import with one of the supported file types: `+W.join(",")+` (animated images not supported)
|
|
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 W=T({config:te,src:g,width:ee||400,quality:ce||75});let le;try{le=new URL(W)}catch{}(W===g||le&&le.pathname===g&&!le.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[W,le]of Object.entries({layout:F,objectFit:U,objectPosition:K,lazyBoundary:G,lazyRoot:z}))le&&(0,t.warnOnce)('Image with src "'+g+'" has legacy prop "'+W+`". Did you forget to run the codemod?
|
|
12
|
+
Read more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);if(typeof window<"u"&&!l&&window.PerformanceObserver){l=new PerformanceObserver(W=>{for(const Ce of W.getEntries()){var le;const Q=(Ce==null||(le=Ce.element)==null?void 0:le.src)||"",oe=u.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{l.observe({type:"largest-contentful-paint",buffered:!0})}catch(W){console.error(W)}}}const ue=Object.assign(D?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:U,objectPosition:K}:{},O?{}:{color:"transparent"},R),se=!L&&$!=="empty"?$==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:ee,heightInt:k,blurWidth:N,blurHeight:re,blurDataURL:E||"",objectFit:ue.objectFit})+'")':'url("'+$+'")':null;let H=se?{backgroundSize:ue.objectFit||"cover",backgroundPosition:ue.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:se}:{};process.env.NODE_ENV==="development"&&H.backgroundImage&&$==="blur"&&E!=null&&E.startsWith("/")&&(H.backgroundImage='url("'+E+'")');const he=d({config:te,src:g,unoptimized:A,width:ee,quality:ce,sizes:v,loader:T});if(process.env.NODE_ENV!=="production"&&typeof window<"u"){let W;try{W=new URL(he.src)}catch{W=new URL(he.src,window.location.href)}u.set(W.href,{src:g,priority:_,placeholder:$})}return{props:{...ne,loading:ae?"lazy":S,fetchPriority:B,width:ee,height:k,decoding:"async",className:C,style:{...ue,...H},sizes:he.sizes,srcSet:he.srcSet,src:he.src},meta:{unoptimized:A,priority:_,placeholder:$,fill:D}}}})(oo);var Un={exports:{}},Pt={exports:{}},Cr={},si;function qd(){return si||(si=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});const t=q,r=typeof window>"u",n=r?()=>{}:t.useLayoutEffect,o=r?()=>{}:t.useEffect;function i(a){const{headManager:s,reduceComponentsToState:u}=a;function l(){if(s&&s.mountedInstances){const m=t.Children.toArray(Array.from(s.mountedInstances).filter(Boolean));s.updateHead(u(m,a))}}if(r){var p;s==null||(p=s.mountedInstances)==null||p.add(a.children),l()}return n(()=>{var m;return s==null||(m=s.mountedInstances)==null||m.add(a.children),()=>{var d;s==null||(d=s.mountedInstances)==null||d.delete(a.children)}}),n(()=>(s&&(s._pendingUpdate=l),()=>{s&&(s._pendingUpdate=l)})),o(()=>(s&&s._pendingUpdate&&(s._pendingUpdate(),s._pendingUpdate=null),()=>{s&&s._pendingUpdate&&(s._pendingUpdate(),s._pendingUpdate=null)})),null}}(Cr)),Cr}var Sr={},ci;function Bd(){return ci||(ci=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return n}});const n=Ee._(q).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="AmpStateContext")}(Sr)),Sr}var Ar={},ui;function Hd(){return ui||(ui=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}}(Ar)),Ar}var li;function zd(){return li||(li=1,function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(A,_){for(var S in _)Object.defineProperty(A,S,{enumerable:!0,get:_[S]})}r(t,{defaultHead:function(){return m},default:function(){return v}});const n=Ee,i=Qe._(q),a=n._(qd()),s=Bd(),u=Js(),l=Hd(),p=lt;function m(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((S,C)=>typeof C=="string"||typeof C=="number"?S:S.concat(C),[])):A.concat(_)}const f=["name","httpEquiv","charSet","itemProp"];function h(){const A=new Set,_=new Set,S=new Set,C={};return j=>{let x=!0,I=!1;if(j.key&&typeof j.key!="number"&&j.key.indexOf("$")>0){I=!0;const D=j.key.slice(j.key.indexOf("$")+1);A.has(D)?x=!1:A.add(D)}switch(j.type){case"title":case"base":_.has(j.type)?x=!1:_.add(j.type);break;case"meta":for(let D=0,R=f.length;D<R;D++){const P=f[D];if(j.props.hasOwnProperty(P))if(P==="charSet")S.has(P)?x=!1:S.add(P);else{const M=j.props[P],$=C[P]||new Set;(P!=="name"||!I)&&$.has(M)?x=!1:($.add(M),C[P]=$)}}break}return x}}function y(A,_){const{inAmpMode:S}=_;return A.reduce(d,[]).reverse().concat(m(S).reverse()).filter(h()).reverse().map((C,j)=>{const x=C.key||j;if(process.env.NODE_ENV!=="development"&&process.env.__NEXT_OPTIMIZE_FONTS&&!S&&C.type==="link"&&C.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(I=>C.props.href.startsWith(I))){const I={...C.props||{}};return I["data-href"]=I.href,I.href=void 0,I["data-optimized-fonts"]=!0,i.default.cloneElement(C,I)}if(process.env.NODE_ENV==="development")if(C.type==="script"&&C.props.type!=="application/ld+json"){const I=C.props.src?'<script> tag with src="'+C.props.src+'"':"inline <script>";(0,p.warnOnce)("Do not add <script> tags using next/head (see "+I+`). Use next/script instead.
|
|
14
|
+
See more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`)}else C.type==="link"&&C.props.rel==="stylesheet"&&(0,p.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="'+C.props.href+`"). Use Document instead.
|
|
15
|
+
See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);return i.default.cloneElement(C,{key:x})})}function g(A){let{children:_}=A;const S=(0,i.useContext)(s.AmpStateContext),C=(0,i.useContext)(u.HeadManagerContext);return i.default.createElement(a.default,{reduceComponentsToState:y,headManager:C,inAmpMode:(0,l.isInAmpMode)(S)},_)}const v=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)}(Pt,Pt.exports)),Pt.exports}var Rr={},di;function Fd(){return di||(di=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return o}});const r=Ee._(q),n=zt,o=r.default.createContext(n.imageConfigDefault);process.env.NODE_ENV!=="production"&&(o.displayName="ImageConfigContext")}(Rr)),Rr}var Er={},wr={},jr={exports:{}};const Ud={},Wd=Object.freeze(Object.defineProperty({__proto__:null,default:Ud},Symbol.toStringTag,{value:"Module"})),Gd=nl(Wd);var Ir={},Pr={},Nr,fi;function rc(){return fi||(fi=1,Nr=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 s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==o||s.enumerable!==!0)return!1}return!0}),Nr}var Or,pi;function Ft(){if(pi)return Or;pi=1;var e=rc();return Or=function(){return e()&&!!Symbol.toStringTag},Or}var Tr,mi;function nc(){return mi||(mi=1,Tr=Object),Tr}var Mr,hi;function Vd(){return hi||(hi=1,Mr=Error),Mr}var kr,gi;function Kd(){return gi||(gi=1,kr=EvalError),kr}var Lr,yi;function Xd(){return yi||(yi=1,Lr=RangeError),Lr}var Dr,_i;function Qd(){return _i||(_i=1,Dr=ReferenceError),Dr}var $r,vi;function oc(){return vi||(vi=1,$r=SyntaxError),$r}var qr,bi;function dt(){return bi||(bi=1,qr=TypeError),qr}var Br,xi;function Yd(){return xi||(xi=1,Br=URIError),Br}var Hr,Ci;function Zd(){return Ci||(Ci=1,Hr=Math.abs),Hr}var zr,Si;function Jd(){return Si||(Si=1,zr=Math.floor),zr}var Fr,Ai;function ef(){return Ai||(Ai=1,Fr=Math.max),Fr}var Ur,Ri;function tf(){return Ri||(Ri=1,Ur=Math.min),Ur}var Wr,Ei;function rf(){return Ei||(Ei=1,Wr=Math.pow),Wr}var Gr,wi;function nf(){return wi||(wi=1,Gr=Math.round),Gr}var Vr,ji;function of(){return ji||(ji=1,Vr=Number.isNaN||function(t){return t!==t}),Vr}var Kr,Ii;function af(){if(Ii)return Kr;Ii=1;var e=of();return Kr=function(r){return e(r)||r===0?r:r<0?-1:1},Kr}var Xr,Pi;function sf(){return Pi||(Pi=1,Xr=Object.getOwnPropertyDescriptor),Xr}var Qr,Ni;function et(){if(Ni)return Qr;Ni=1;var e=sf();if(e)try{e([],"length")}catch{e=null}return Qr=e,Qr}var Yr,Oi;function Ut(){if(Oi)return Yr;Oi=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Yr=e,Yr}var Zr,Ti;function cf(){if(Ti)return Zr;Ti=1;var e=typeof Symbol<"u"&&Symbol,t=rc();return Zr=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Zr}var Jr,Mi;function ic(){return Mi||(Mi=1,Jr=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Jr}var en,ki;function ac(){if(ki)return en;ki=1;var e=nc();return en=e.getPrototypeOf||null,en}var tn,Li;function uf(){if(Li)return tn;Li=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(u,l){for(var p=[],m=0;m<u.length;m+=1)p[m]=u[m];for(var d=0;d<l.length;d+=1)p[d+u.length]=l[d];return p},i=function(u,l){for(var p=[],m=l,d=0;m<u.length;m+=1,d+=1)p[d]=u[m];return p},a=function(s,u){for(var l="",p=0;p<s.length;p+=1)l+=s[p],p+1<s.length&&(l+=u);return l};return tn=function(u){var l=this;if(typeof l!="function"||t.apply(l)!==n)throw new TypeError(e+l);for(var p=i(arguments,1),m,d=function(){if(this instanceof m){var v=l.apply(this,o(p,arguments));return Object(v)===v?v:this}return l.apply(u,o(p,arguments))},f=r(0,l.length-p.length),h=[],y=0;y<f;y++)h[y]="$"+y;if(m=Function("binder","return function ("+a(h,",")+"){ return binder.apply(this,arguments); }")(d),l.prototype){var g=function(){};g.prototype=l.prototype,m.prototype=new g,g.prototype=null}return m},tn}var rn,Di;function ft(){if(Di)return rn;Di=1;var e=uf();return rn=Function.prototype.bind||e,rn}var nn,$i;function io(){return $i||($i=1,nn=Function.prototype.call),nn}var on,qi;function ao(){return qi||(qi=1,on=Function.prototype.apply),on}var an,Bi;function lf(){return Bi||(Bi=1,an=typeof Reflect<"u"&&Reflect&&Reflect.apply),an}var sn,Hi;function sc(){if(Hi)return sn;Hi=1;var e=ft(),t=ao(),r=io(),n=lf();return sn=n||e.call(r,t),sn}var cn,zi;function so(){if(zi)return cn;zi=1;var e=ft(),t=dt(),r=io(),n=sc();return cn=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},cn}var un,Fi;function df(){if(Fi)return un;Fi=1;var e=so(),t=et(),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 un=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(s){return i(s==null?s:o(s))}:!1,un}var ln,Ui;function co(){if(Ui)return ln;Ui=1;var e=ic(),t=ac(),r=df();return ln=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,ln}var dn,Wi;function cc(){if(Wi)return dn;Wi=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=ft();return dn=r.call(e,t),dn}var fn,Gi;function uc(){if(Gi)return fn;Gi=1;var e,t=nc(),r=Vd(),n=Kd(),o=Xd(),i=Qd(),a=oc(),s=dt(),u=Yd(),l=Zd(),p=Jd(),m=ef(),d=tf(),f=rf(),h=nf(),y=af(),g=Function,v=function(J){try{return g('"use strict"; return ('+J+").constructor;")()}catch{}},A=et(),_=Ut(),S=function(){throw new s},C=A?function(){try{return arguments.callee,S}catch{try{return A(arguments,"callee").get}catch{return S}}}():S,j=cf()(),x=co(),I=ac(),D=ic(),R=ao(),P=io(),M={},$=typeof Uint8Array>"u"||!x?e:x(Uint8Array),E={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":j&&x?x([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":M,"%AsyncGenerator%":M,"%AsyncGeneratorFunction%":M,"%AsyncIteratorPrototype%":M,"%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%":M,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":j&&x?x(x([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!j||!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"||!j||!x?e:x(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":j&&x?x(""[Symbol.iterator]()):e,"%Symbol%":j?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":C,"%TypedArray%":$,"%TypeError%":s,"%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%":u,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":P,"%Function.prototype.apply%":R,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":I,"%Math.abs%":l,"%Math.floor%":p,"%Math.max%":m,"%Math.min%":d,"%Math.pow%":f,"%Math.round%":h,"%Math.sign%":y,"%Reflect.getPrototypeOf%":D};if(x)try{null.error}catch(J){var B=x(x(J));E["%Error.prototype%"]=B}var F=function J(Y){var ee;if(Y==="%AsyncFunction%")ee=v("async function () {}");else if(Y==="%GeneratorFunction%")ee=v("function* () {}");else if(Y==="%AsyncGeneratorFunction%")ee=v("async function* () {}");else if(Y==="%AsyncGenerator%"){var k=J("%AsyncGeneratorFunction%");k&&(ee=k.prototype)}else if(Y==="%AsyncIteratorPrototype%"){var N=J("%AsyncGenerator%");N&&x&&(ee=x(N.prototype))}return E[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=ft(),G=cc(),z=K.call(P,Array.prototype.concat),ne=K.call(R,Array.prototype.splice),w=K.call(P,String.prototype.replace),O=K.call(P,String.prototype.slice),L=K.call(P,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,te=/\\(\\)?/g,Z=function(Y){var ee=O(Y,0,1),k=O(Y,-1);if(ee==="%"&&k!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(k==="%"&&ee!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var N=[];return w(Y,X,function(re,ae,ce,ue){N[N.length]=ce?w(ue,te,"$1"):ae||re}),N},T=function(Y,ee){var k=Y,N;if(G(U,k)&&(N=U[k],k="%"+N[0]+"%"),G(E,k)){var re=E[k];if(re===M&&(re=F(k)),typeof re>"u"&&!ee)throw new s("intrinsic "+Y+" exists, but is not available. Please file an issue!");return{alias:N,name:k,value:re}}throw new a("intrinsic "+Y+" does not exist!")};return fn=function(Y,ee){if(typeof Y!="string"||Y.length===0)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ee!="boolean")throw new s('"allowMissing" argument must be a boolean');if(L(/^%?[^%]*%?$/,Y)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var k=Z(Y),N=k.length>0?k[0]:"",re=T("%"+N+"%",ee),ae=re.name,ce=re.value,ue=!1,se=re.alias;se&&(N=se[0],ne(k,z([0,1],se)));for(var H=1,he=!0;H<k.length;H+=1){var ie=k[H],me=O(ie,0,1),W=O(ie,-1);if((me==='"'||me==="'"||me==="`"||W==='"'||W==="'"||W==="`")&&me!==W)throw new a("property names with quotes must have matching quotes");if((ie==="constructor"||!he)&&(ue=!0),N+="."+ie,ae="%"+N+"%",G(E,ae))ce=E[ae];else if(ce!=null){if(!(ie in ce)){if(!ee)throw new s("base intrinsic for "+Y+" exists, but the property is not available.");return}if(A&&H+1>=k.length){var le=A(ce,ie);he=!!le,he&&"get"in le&&!("originalValue"in le.get)?ce=le.get:ce=ce[ie]}else he=G(ce,ie),ce=ce[ie];he&&!ue&&(E[ae]=ce)}}return ce},fn}var pn,Vi;function pt(){if(Vi)return pn;Vi=1;var e=uc(),t=so(),r=t([e("%String.prototype.indexOf%")]);return pn=function(o,i){var a=e(o,!!i);return typeof a=="function"&&r(o,".prototype.")>-1?t([a]):a},pn}var mn,Ki;function ff(){if(Ki)return mn;Ki=1;var e=Ft()(),t=pt(),r=t("Object.prototype.toString"),n=function(s){return e&&s&&typeof s=="object"&&Symbol.toStringTag in s?!1:r(s)==="[object Arguments]"},o=function(s){return n(s)?!0:s!==null&&typeof s=="object"&&"length"in s&&typeof s.length=="number"&&s.length>=0&&r(s)!=="[object Array]"&&"callee"in s&&r(s.callee)==="[object Function]"},i=function(){return n(arguments)}();return n.isLegacyArguments=o,mn=i?n:o,mn}var hn,Xi;function pf(){if(Xi)return hn;Xi=1;var e=pt(),t=Ft()(),r=cc(),n=et(),o;if(t){var i=e("RegExp.prototype.exec"),a={},s=function(){throw a},u={toString:s,valueOf:s};typeof Symbol.toPrimitive=="symbol"&&(u[Symbol.toPrimitive]=s),o=function(d){if(!d||typeof d!="object")return!1;var f=n(d,"lastIndex"),h=f&&r(f,"value");if(!h)return!1;try{i(d,u)}catch(y){return y===a}}}else{var l=e("Object.prototype.toString"),p="[object RegExp]";o=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:l(d)===p}}return hn=o,hn}var gn,Qi;function mf(){if(Qi)return gn;Qi=1;var e=pt(),t=pf(),r=e("RegExp.prototype.exec"),n=dt();return gn=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(s){return r(i,s)!==null}},gn}var yn,Yi;function hf(){if(Yi)return yn;Yi=1;var e=pt(),t=mf(),r=t(/^\s*(?:function)?\*/),n=Ft()(),o=co(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),s=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},u;return yn=function(p){if(typeof p!="function")return!1;if(r(a(p)))return!0;if(!n){var m=i(p);return m==="[object GeneratorFunction]"}if(!o)return!1;if(typeof u>"u"){var d=s();u=d?o(d):!1}return o(p)===u},yn}var _n,Zi;function gf(){if(Zi)return _n;Zi=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 S=e.call(_);return o.test(S)}catch{return!1}},a=function(_){try{return i(_)?!1:(e.call(_),!0)}catch{return!1}},s=Object.prototype.toString,u="[object Object]",l="[object Function]",p="[object GeneratorFunction]",m="[object HTMLAllCollection]",d="[object HTML document.all class]",f="[object HTMLCollection]",h=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),g=function(){return!1};if(typeof document=="object"){var v=document.all;s.call(v)===s.call(document.all)&&(g=function(_){if((y||!_)&&(typeof _>"u"||typeof _=="object"))try{var S=s.call(_);return(S===m||S===d||S===f||S===u)&&_("")==null}catch{}return!1})}return _n=t?function(_){if(g(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;try{t(_,null,r)}catch(S){if(S!==n)return!1}return!i(_)&&a(_)}:function(_){if(g(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;if(h)return a(_);if(i(_))return!1;var S=s.call(_);return S!==l&&S!==p&&!/^\[object HTML/.test(S)?!1:a(_)},_n}var vn,Ji;function yf(){if(Ji)return vn;Ji=1;var e=gf(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(u,l,p){for(var m=0,d=u.length;m<d;m++)r.call(u,m)&&(p==null?l(u[m],m,u):l.call(p,u[m],m,u))},o=function(u,l,p){for(var m=0,d=u.length;m<d;m++)p==null?l(u.charAt(m),m,u):l.call(p,u.charAt(m),m,u)},i=function(u,l,p){for(var m in u)r.call(u,m)&&(p==null?l(u[m],m,u):l.call(p,u[m],m,u))};function a(s){return t.call(s)==="[object Array]"}return vn=function(u,l,p){if(!e(l))throw new TypeError("iterator must be a function");var m;arguments.length>=3&&(m=p),a(u)?n(u,l,m):typeof u=="string"?o(u,l,m):i(u,l,m)},vn}var bn,ea;function _f(){return ea||(ea=1,bn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),bn}var xn,ta;function vf(){if(ta)return xn;ta=1;var e=_f(),t=typeof globalThis>"u"?Is:globalThis;return xn=function(){for(var n=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(n[n.length]=e[o]);return n},xn}var Cn={exports:{}},Sn,ra;function bf(){if(ra)return Sn;ra=1;var e=Ut(),t=oc(),r=dt(),n=et();return Sn=function(i,a,s){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 u=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,p=arguments.length>5?arguments[5]:null,m=arguments.length>6?arguments[6]:!1,d=!!n&&n(i,a);if(e)e(i,a,{configurable:p===null&&d?d.configurable:!p,enumerable:u===null&&d?d.enumerable:!u,value:s,writable:l===null&&d?d.writable:!l});else if(m||!u&&!l&&!p)i[a]=s;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Sn}var An,na;function xf(){if(na)return An;na=1;var e=Ut(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},An=t,An}var Rn,oa;function Cf(){if(oa)return Rn;oa=1;var e=uc(),t=bf(),r=xf()(),n=et(),o=dt(),i=e("%Math.floor%");return Rn=function(s,u){if(typeof s!="function")throw new o("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||i(u)!==u)throw new o("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],p=!0,m=!0;if("length"in s&&n){var d=n(s,"length");d&&!d.configurable&&(p=!1),d&&!d.writable&&(m=!1)}return(p||m||!l)&&(r?t(s,"length",u,!0,!0):t(s,"length",u)),s},Rn}var En,ia;function Sf(){if(ia)return En;ia=1;var e=ft(),t=ao(),r=sc();return En=function(){return r(e,t,arguments)},En}var aa;function Af(){return aa||(aa=1,function(e){var t=Cf(),r=Ut(),n=so(),o=Sf();e.exports=function(a){var s=n(arguments),u=a.length-(arguments.length-1);return t(s,1+(u>0?u:0),!0)},r?r(e.exports,"apply",{value:o}):e.exports.apply=o}(Cn)),Cn.exports}var wn,sa;function lc(){if(sa)return wn;sa=1;var e=yf(),t=vf(),r=Af(),n=pt(),o=et(),i=co(),a=n("Object.prototype.toString"),s=Ft()(),u=typeof globalThis>"u"?Is:globalThis,l=t(),p=n("String.prototype.slice"),m=n("Array.prototype.indexOf",!0)||function(g,v){for(var A=0;A<g.length;A+=1)if(g[A]===v)return A;return-1},d={__proto__:null};s&&o&&i?e(l,function(y){var g=new u[y];if(Symbol.toStringTag in g&&i){var v=i(g),A=o(v,Symbol.toStringTag);if(!A&&v){var _=i(v);A=o(_,Symbol.toStringTag)}d["$"+y]=r(A.get)}}):e(l,function(y){var g=new u[y],v=g.slice||g.set;v&&(d["$"+y]=r(v))});var f=function(g){var v=!1;return e(d,function(A,_){if(!v)try{"$"+A(g)===_&&(v=p(_,1))}catch{}}),v},h=function(g){var v=!1;return e(d,function(A,_){if(!v)try{A(g),v=p(_,1)}catch{}}),v};return wn=function(g){if(!g||typeof g!="object")return!1;if(!s){var v=p(a(g),8,-1);return m(l,v)>-1?v:v!=="Object"?!1:h(g)}return o?f(g):null},wn}var jn,ca;function Rf(){if(ca)return jn;ca=1;var e=lc();return jn=function(r){return!!e(r)},jn}var ua;function Ef(){return ua||(ua=1,function(e){var t=ff(),r=hf(),n=lc(),o=Rf();function i(H){return H.call.bind(H)}var a=typeof BigInt<"u",s=typeof Symbol<"u",u=i(Object.prototype.toString),l=i(Number.prototype.valueOf),p=i(String.prototype.valueOf),m=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(s)var f=i(Symbol.prototype.valueOf);function h(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)||O(H)}e.isArrayBufferView=g;function v(H){return n(H)==="Uint8Array"}e.isUint8Array=v;function A(H){return n(H)==="Uint8ClampedArray"}e.isUint8ClampedArray=A;function _(H){return n(H)==="Uint16Array"}e.isUint16Array=_;function S(H){return n(H)==="Uint32Array"}e.isUint32Array=S;function C(H){return n(H)==="Int8Array"}e.isInt8Array=C;function j(H){return n(H)==="Int16Array"}e.isInt16Array=j;function x(H){return n(H)==="Int32Array"}e.isInt32Array=x;function I(H){return n(H)==="Float32Array"}e.isFloat32Array=I;function D(H){return n(H)==="Float64Array"}e.isFloat64Array=D;function R(H){return n(H)==="BigInt64Array"}e.isBigInt64Array=R;function P(H){return n(H)==="BigUint64Array"}e.isBigUint64Array=P;function M(H){return u(H)==="[object Map]"}M.working=typeof Map<"u"&&M(new Map);function $(H){return typeof Map>"u"?!1:M.working?M(H):H instanceof Map}e.isMap=$;function E(H){return u(H)==="[object Set]"}E.working=typeof Set<"u"&&E(new Set);function B(H){return typeof Set>"u"?!1:E.working?E(H):H instanceof Set}e.isSet=B;function F(H){return u(H)==="[object WeakMap]"}F.working=typeof WeakMap<"u"&&F(new WeakMap);function U(H){return typeof WeakMap>"u"?!1:F.working?F(H):H instanceof WeakMap}e.isWeakMap=U;function K(H){return u(H)==="[object WeakSet]"}K.working=typeof WeakSet<"u"&&K(new WeakSet);function G(H){return K(H)}e.isWeakSet=G;function z(H){return u(H)==="[object ArrayBuffer]"}z.working=typeof ArrayBuffer<"u"&&z(new ArrayBuffer);function ne(H){return typeof ArrayBuffer>"u"?!1:z.working?z(H):H instanceof ArrayBuffer}e.isArrayBuffer=ne;function w(H){return u(H)==="[object DataView]"}w.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&w(new DataView(new ArrayBuffer(1),0,1));function O(H){return typeof DataView>"u"?!1:w.working?w(H):H instanceof DataView}e.isDataView=O;var L=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function X(H){return u(H)==="[object SharedArrayBuffer]"}function te(H){return typeof L>"u"?!1:(typeof X.working>"u"&&(X.working=X(new L)),X.working?X(H):H instanceof L)}e.isSharedArrayBuffer=te;function Z(H){return u(H)==="[object AsyncFunction]"}e.isAsyncFunction=Z;function T(H){return u(H)==="[object Map Iterator]"}e.isMapIterator=T;function J(H){return u(H)==="[object Set Iterator]"}e.isSetIterator=J;function Y(H){return u(H)==="[object Generator]"}e.isGeneratorObject=Y;function ee(H){return u(H)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=ee;function k(H){return h(H,l)}e.isNumberObject=k;function N(H){return h(H,p)}e.isStringObject=N;function re(H){return h(H,m)}e.isBooleanObject=re;function ae(H){return a&&h(H,d)}e.isBigIntObject=ae;function ce(H){return s&&h(H,f)}e.isSymbolObject=ce;function ue(H){return k(H)||N(H)||re(H)||ae(H)||ce(H)}e.isBoxedPrimitive=ue;function se(H){return typeof Uint8Array<"u"&&(ne(H)||te(H))}e.isAnyArrayBuffer=se,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(H){Object.defineProperty(e,H,{enumerable:!1,value:function(){throw new Error(H+" is not supported in userland")}})})}(Pr)),Pr}var In,la;function wf(){return la||(la=1,In=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),In}var Nt={exports:{}},da;function jf(){return da||(da=1,typeof Object.create=="function"?Nt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Nt.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),Nt.exports}var fa;function If(){return fa||(fa=1,function(e){var t=Object.getOwnPropertyDescriptors||function(O){for(var L=Object.keys(O),X={},te=0;te<L.length;te++)X[L[te]]=Object.getOwnPropertyDescriptor(O,L[te]);return X},r=/%[sdj%]/g;e.format=function(w){if(!C(w)){for(var O=[],L=0;L<arguments.length;L++)O.push(a(arguments[L]));return O.join(" ")}for(var L=1,X=arguments,te=X.length,Z=String(w).replace(r,function(J){if(J==="%%")return"%";if(L>=te)return J;switch(J){case"%s":return String(X[L++]);case"%d":return Number(X[L++]);case"%j":try{return JSON.stringify(X[L++])}catch{return"[Circular]"}default:return J}}),T=X[L];L<te;T=X[++L])A(T)||!D(T)?Z+=" "+T:Z+=" "+a(T);return Z},e.deprecate=function(w,O){if(typeof process<"u"&&process.noDeprecation===!0)return w;if(typeof process>"u")return function(){return e.deprecate(w,O).apply(this,arguments)};var L=!1;function X(){if(!L){if(process.throwDeprecation)throw new Error(O);process.traceDeprecation?console.trace(O):console.error(O),L=!0}return w.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(w){if(w=w.toUpperCase(),!n[w])if(o.test(w)){var O=process.pid;n[w]=function(){var L=e.format.apply(e,arguments);console.error("%s %d: %s",w,O,L)}}else n[w]=function(){};return n[w]};function a(w,O){var L={seen:[],stylize:u};return arguments.length>=3&&(L.depth=arguments[2]),arguments.length>=4&&(L.colors=arguments[3]),v(O)?L.showHidden=O:O&&e._extend(L,O),x(L.showHidden)&&(L.showHidden=!1),x(L.depth)&&(L.depth=2),x(L.colors)&&(L.colors=!1),x(L.customInspect)&&(L.customInspect=!0),L.colors&&(L.stylize=s),p(L,w,L.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 s(w,O){var L=a.styles[O];return L?"\x1B["+a.colors[L][0]+"m"+w+"\x1B["+a.colors[L][1]+"m":w}function u(w,O){return w}function l(w){var O={};return w.forEach(function(L,X){O[L]=!0}),O}function p(w,O,L){if(w.customInspect&&O&&M(O.inspect)&&O.inspect!==e.inspect&&!(O.constructor&&O.constructor.prototype===O)){var X=O.inspect(L,w);return C(X)||(X=p(w,X,L)),X}var te=m(w,O);if(te)return te;var Z=Object.keys(O),T=l(Z);if(w.showHidden&&(Z=Object.getOwnPropertyNames(O)),P(O)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return d(O);if(Z.length===0){if(M(O)){var J=O.name?": "+O.name:"";return w.stylize("[Function"+J+"]","special")}if(I(O))return w.stylize(RegExp.prototype.toString.call(O),"regexp");if(R(O))return w.stylize(Date.prototype.toString.call(O),"date");if(P(O))return d(O)}var Y="",ee=!1,k=["{","}"];if(g(O)&&(ee=!0,k=["[","]"]),M(O)){var N=O.name?": "+O.name:"";Y=" [Function"+N+"]"}if(I(O)&&(Y=" "+RegExp.prototype.toString.call(O)),R(O)&&(Y=" "+Date.prototype.toUTCString.call(O)),P(O)&&(Y=" "+d(O)),Z.length===0&&(!ee||O.length==0))return k[0]+Y+k[1];if(L<0)return I(O)?w.stylize(RegExp.prototype.toString.call(O),"regexp"):w.stylize("[Object]","special");w.seen.push(O);var re;return ee?re=f(w,O,L,T,Z):re=Z.map(function(ae){return h(w,O,L,T,ae,ee)}),w.seen.pop(),y(re,Y,k)}function m(w,O){if(x(O))return w.stylize("undefined","undefined");if(C(O)){var L="'"+JSON.stringify(O).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return w.stylize(L,"string")}if(S(O))return w.stylize(""+O,"number");if(v(O))return w.stylize(""+O,"boolean");if(A(O))return w.stylize("null","null")}function d(w){return"["+Error.prototype.toString.call(w)+"]"}function f(w,O,L,X,te){for(var Z=[],T=0,J=O.length;T<J;++T)K(O,String(T))?Z.push(h(w,O,L,X,String(T),!0)):Z.push("");return te.forEach(function(Y){Y.match(/^\d+$/)||Z.push(h(w,O,L,X,Y,!0))}),Z}function h(w,O,L,X,te,Z){var T,J,Y;if(Y=Object.getOwnPropertyDescriptor(O,te)||{value:O[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)||(T="["+te+"]"),J||(w.seen.indexOf(Y.value)<0?(A(L)?J=p(w,Y.value,null):J=p(w,Y.value,L-1),J.indexOf(`
|
|
16
|
+
`)>-1&&(Z?J=J.split(`
|
|
17
|
+
`).map(function(ee){return" "+ee}).join(`
|
|
18
|
+
`).slice(2):J=`
|
|
19
|
+
`+J.split(`
|
|
20
|
+
`).map(function(ee){return" "+ee}).join(`
|
|
21
|
+
`))):J=w.stylize("[Circular]","special")),x(T)){if(Z&&te.match(/^\d+$/))return J;T=JSON.stringify(""+te),T.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(T=T.slice(1,-1),T=w.stylize(T,"name")):(T=T.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),T=w.stylize(T,"string"))}return T+": "+J}function y(w,O,L){var X=w.reduce(function(te,Z){return Z.indexOf(`
|
|
22
|
+
`)>=0,te+Z.replace(/\u001b\[\d\d?m/g,"").length+1},0);return X>60?L[0]+(O===""?"":O+`
|
|
23
|
+
`)+" "+w.join(`,
|
|
24
|
+
`)+" "+L[1]:L[0]+O+" "+w.join(", ")+" "+L[1]}e.types=Ef();function g(w){return Array.isArray(w)}e.isArray=g;function v(w){return typeof w=="boolean"}e.isBoolean=v;function A(w){return w===null}e.isNull=A;function _(w){return w==null}e.isNullOrUndefined=_;function S(w){return typeof w=="number"}e.isNumber=S;function C(w){return typeof w=="string"}e.isString=C;function j(w){return typeof w=="symbol"}e.isSymbol=j;function x(w){return w===void 0}e.isUndefined=x;function I(w){return D(w)&&E(w)==="[object RegExp]"}e.isRegExp=I,e.types.isRegExp=I;function D(w){return typeof w=="object"&&w!==null}e.isObject=D;function R(w){return D(w)&&E(w)==="[object Date]"}e.isDate=R,e.types.isDate=R;function P(w){return D(w)&&(E(w)==="[object Error]"||w instanceof Error)}e.isError=P,e.types.isNativeError=P;function M(w){return typeof w=="function"}e.isFunction=M;function $(w){return w===null||typeof w=="boolean"||typeof w=="number"||typeof w=="string"||typeof w=="symbol"||typeof w>"u"}e.isPrimitive=$,e.isBuffer=wf();function E(w){return Object.prototype.toString.call(w)}function B(w){return w<10?"0"+w.toString(10):w.toString(10)}var F=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function U(){var w=new Date,O=[B(w.getHours()),B(w.getMinutes()),B(w.getSeconds())].join(":");return[w.getDate(),F[w.getMonth()],O].join(" ")}e.log=function(){console.log("%s - %s",U(),e.format.apply(e,arguments))},e.inherits=jf(),e._extend=function(w,O){if(!O||!D(O))return w;for(var L=Object.keys(O),X=L.length;X--;)w[L[X]]=O[L[X]];return w};function K(w,O){return Object.prototype.hasOwnProperty.call(w,O)}var G=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(O){if(typeof O!="function")throw new TypeError('The "original" argument must be of type Function');if(G&&O[G]){var L=O[G];if(typeof L!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(L,G,{value:L,enumerable:!1,writable:!1,configurable:!0}),L}function L(){for(var X,te,Z=new Promise(function(Y,ee){X=Y,te=ee}),T=[],J=0;J<arguments.length;J++)T.push(arguments[J]);T.push(function(Y,ee){Y?te(Y):X(ee)});try{O.apply(this,T)}catch(Y){te(Y)}return Z}return Object.setPrototypeOf(L,Object.getPrototypeOf(O)),G&&Object.defineProperty(L,G,{value:L,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(L,t(O))},e.promisify.custom=G;function z(w,O){if(!w){var L=new Error("Promise was rejected with a falsy value");L.reason=w,w=L}return O(w)}function ne(w){if(typeof w!="function")throw new TypeError('The "original" argument must be of type Function');function O(){for(var L=[],X=0;X<arguments.length;X++)L.push(arguments[X]);var te=L.pop();if(typeof te!="function")throw new TypeError("The last argument must be of type Function");var Z=this,T=function(){return te.apply(Z,arguments)};w.apply(this,L).then(function(J){process.nextTick(T.bind(null,null,J))},function(J){process.nextTick(z.bind(null,J,T))})}return Object.setPrototypeOf(O,Object.getPrototypeOf(w)),Object.defineProperties(O,t(w)),O}e.callbackify=ne}(Ir)),Ir}var pa;function Pf(){return pa||(pa=1,(()=>{var e={333:(o,i,a)=>{const s=a(137),u=a(179),l=a(13),p=a(719),m=(d,f={})=>{let h=[];if(Array.isArray(d))for(let y of d){let g=m.create(y,f);Array.isArray(g)?h.push(...g):h.push(g)}else h=[].concat(m.create(d,f));return f&&f.expand===!0&&f.nodupes===!0&&(h=[...new Set(h)]),h};m.parse=(d,f={})=>p(d,f),m.stringify=(d,f={})=>s(typeof d=="string"?m.parse(d,f):d,f),m.compile=(d,f={})=>(typeof d=="string"&&(d=m.parse(d,f)),u(d,f)),m.expand=(d,f={})=>{typeof d=="string"&&(d=m.parse(d,f));let h=l(d,f);return f.noempty===!0&&(h=h.filter(Boolean)),f.nodupes===!0&&(h=[...new Set(h)]),h},m.create=(d,f={})=>d===""||d.length<3?[d]:f.expand!==!0?m.compile(d,f):m.expand(d,f),o.exports=m},179:(o,i,a)=>{const s=a(783),u=a(617),l=(p,m={})=>{let d=(f,h={})=>{let y=u.isInvalidBrace(h),g=f.invalid===!0&&m.escapeInvalid===!0,v=y===!0||g===!0,A=m.escapeInvalid===!0?"\\":"",_="";if(f.isOpen===!0||f.isClose===!0)return A+f.value;if(f.type==="open")return v?A+f.value:"(";if(f.type==="close")return v?A+f.value:")";if(f.type==="comma")return f.prev.type==="comma"?"":v?f.value:"|";if(f.value)return f.value;if(f.nodes&&f.ranges>0){let S=u.reduce(f.nodes),C=s(...S,{...m,wrap:!1,toRegex:!0});if(C.length!==0)return S.length>1&&C.length>1?`(${C})`:C}if(f.nodes)for(let S of f.nodes)_+=d(S,f);return _};return d(p)};o.exports=l},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 s=a(783),u=a(137),l=a(617),p=(d="",f="",h=!1)=>{let y=[];if(d=[].concat(d),f=[].concat(f),!f.length)return d;if(!d.length)return h?l.flatten(f).map(g=>`{${g}}`):f;for(let g of d)if(Array.isArray(g))for(let v of g)y.push(p(v,f,h));else for(let v of f)h===!0&&typeof v=="string"&&(v=`{${v}}`),y.push(Array.isArray(v)?p(g,v,h):g+v);return l.flatten(y)},m=(d,f={})=>{let h=f.rangeLimit===void 0?1e3:f.rangeLimit,y=(g,v={})=>{g.queue=[];let A=v,_=v.queue;for(;A.type!=="brace"&&A.type!=="root"&&A.parent;)A=A.parent,_=A.queue;if(g.invalid||g.dollar){_.push(p(_.pop(),u(g,f)));return}if(g.type==="brace"&&g.invalid!==!0&&g.nodes.length===2){_.push(p(_.pop(),["{}"]));return}if(g.nodes&&g.ranges>0){let x=l.reduce(g.nodes);if(l.exceedsLimit(...x,f.step,h))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let I=s(...x,f);I.length===0&&(I=u(g,f)),_.push(p(_.pop(),I)),g.nodes=[];return}let S=l.encloseBrace(g),C=g.queue,j=g;for(;j.type!=="brace"&&j.type!=="root"&&j.parent;)j=j.parent,C=j.queue;for(let x=0;x<g.nodes.length;x++){let I=g.nodes[x];if(I.type==="comma"&&g.type==="brace"){x===1&&C.push(""),C.push("");continue}if(I.type==="close"){_.push(p(_.pop(),C,S));continue}if(I.value&&I.type!=="open"){C.push(p(C.pop(),I.value));continue}I.nodes&&y(I,g)}return C};return l.flatten(y(d))};o.exports=m},719:(o,i,a)=>{const s=a(137),{MAX_LENGTH:u,CHAR_BACKSLASH:l,CHAR_BACKTICK:p,CHAR_COMMA:m,CHAR_DOT:d,CHAR_LEFT_PARENTHESES:f,CHAR_RIGHT_PARENTHESES:h,CHAR_LEFT_CURLY_BRACE:y,CHAR_RIGHT_CURLY_BRACE:g,CHAR_LEFT_SQUARE_BRACKET:v,CHAR_RIGHT_SQUARE_BRACKET:A,CHAR_DOUBLE_QUOTE:_,CHAR_SINGLE_QUOTE:S,CHAR_NO_BREAK_SPACE:C,CHAR_ZERO_WIDTH_NOBREAK_SPACE:j}=a(457),x=(I,D={})=>{if(typeof I!="string")throw new TypeError("Expected a string");let R=D||{},P=typeof R.maxLength=="number"?Math.min(u,R.maxLength):u;if(I.length>P)throw new SyntaxError(`Input length (${I.length}), exceeds max characters (${P})`);let M={type:"root",input:I,nodes:[]},$=[M],E=M,B=M,F=0,U=I.length,K=0,G=0,z;const ne=()=>I[K++],w=O=>{if(O.type==="text"&&B.type==="dot"&&(B.type="text"),B&&B.type==="text"&&O.type==="text"){B.value+=O.value;return}return E.nodes.push(O),O.parent=E,O.prev=B,B=O,O};for(w({type:"bos"});K<U;)if(E=$[$.length-1],z=ne(),!(z===j||z===C)){if(z===l){w({type:"text",value:(D.keepEscaping?z:"")+ne()});continue}if(z===A){w({type:"text",value:"\\"+z});continue}if(z===v){F++;let O;for(;K<U&&(O=ne());){if(z+=O,O===v){F++;continue}if(O===l){z+=ne();continue}if(O===A&&(F--,F===0))break}w({type:"text",value:z});continue}if(z===f){E=w({type:"paren",nodes:[]}),$.push(E),w({type:"text",value:z});continue}if(z===h){if(E.type!=="paren"){w({type:"text",value:z});continue}E=$.pop(),w({type:"text",value:z}),E=$[$.length-1];continue}if(z===_||z===S||z===p){let O=z,L;for(D.keepQuotes!==!0&&(z="");K<U&&(L=ne());){if(L===l){z+=L+ne();continue}if(L===O){D.keepQuotes===!0&&(z+=L);break}z+=L}w({type:"text",value:z});continue}if(z===y){G++;let L={type:"brace",open:!0,close:!1,dollar:B.value&&B.value.slice(-1)==="$"||E.dollar===!0,depth:G,commas:0,ranges:0,nodes:[]};E=w(L),$.push(E),w({type:"open",value:z});continue}if(z===g){if(E.type!=="brace"){w({type:"text",value:z});continue}let O="close";E=$.pop(),E.close=!0,w({type:O,value:z}),G--,E=$[$.length-1];continue}if(z===m&&G>0){if(E.ranges>0){E.ranges=0;let O=E.nodes.shift();E.nodes=[O,{type:"text",value:s(E)}]}w({type:"comma",value:z}),E.commas++;continue}if(z===d&&G>0&&E.commas===0){let O=E.nodes;if(G===0||O.length===0){w({type:"text",value:z});continue}if(B.type==="dot"){if(E.range=[],B.value+=z,B.type="range",E.nodes.length!==3&&E.nodes.length!==5){E.invalid=!0,E.ranges=0,B.type="text";continue}E.ranges++,E.args=[];continue}if(B.type==="range"){O.pop();let L=O[O.length-1];L.value+=B.value+z,B=L,E.ranges--;continue}w({type:"dot",value:z});continue}w({type:"text",value:z})}do if(E=$.pop(),E.type!=="root"){E.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 O=$[$.length-1],L=O.nodes.indexOf(E);O.nodes.splice(L,1,...E.nodes)}while($.length>0);return w({type:"eos"}),M};o.exports=x},137:(o,i,a)=>{const s=a(617);o.exports=(u,l={})=>{let p=(m,d={})=>{let f=l.escapeInvalid&&s.isInvalidBrace(d),h=m.invalid===!0&&l.escapeInvalid===!0,y="";if(m.value)return(f||h)&&s.isOpenOrClose(m)?"\\"+m.value:m.value;if(m.value)return m.value;if(m.nodes)for(let g of m.nodes)y+=p(g);return y};return p(u)}},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,s)=>a.nodes.find(u=>u.type===s),i.exceedsLimit=(a,s,u=1,l)=>l===!1||!i.isInteger(a)||!i.isInteger(s)?!1:(Number(s)-Number(a))/Number(u)>=l,i.escapeNode=(a,s=0,u)=>{let l=a.nodes[s];l&&(u&&l.type===u||l.type==="open"||l.type==="close")&&l.escaped!==!0&&(l.value="\\"+l.value,l.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((s,u)=>(u.type==="text"&&s.push(u.value),u.type==="range"&&(u.type="text"),s),[]),i.flatten=(...a)=>{const s=[],u=l=>{for(let p=0;p<l.length;p++){let m=l[p];Array.isArray(m)?u(m):m!==void 0&&s.push(m)}return s};return u(a),s}},783:(o,i,a)=>{/*!
|
|
26
|
+
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
27
|
+
*
|
|
28
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
29
|
+
* Licensed under the MIT License.
|
|
30
|
+
*/const s=a(837),u=a(492),l=R=>R!==null&&typeof R=="object"&&!Array.isArray(R),p=R=>P=>R===!0?Number(P):String(P),m=R=>typeof R=="number"||typeof R=="string"&&R!=="",d=R=>Number.isInteger(+R),f=R=>{let P=`${R}`,M=-1;if(P[0]==="-"&&(P=P.slice(1)),P==="0")return!1;for(;P[++M]==="0";);return M>0},h=(R,P,M)=>typeof R=="string"||typeof P=="string"?!0:M.stringify===!0,y=(R,P,M)=>{if(P>0){let $=R[0]==="-"?"-":"";$&&(R=R.slice(1)),R=$+R.padStart($?P-1:P,"0")}return M===!1?String(R):R},g=(R,P)=>{let M=R[0]==="-"?"-":"";for(M&&(R=R.slice(1),P--);R.length<P;)R="0"+R;return M?"-"+R:R},v=(R,P)=>{R.negatives.sort((F,U)=>F<U?-1:F>U?1:0),R.positives.sort((F,U)=>F<U?-1:F>U?1:0);let M=P.capture?"":"?:",$="",E="",B;return R.positives.length&&($=R.positives.join("|")),R.negatives.length&&(E=`-(${M}${R.negatives.join("|")})`),$&&E?B=`${$}|${E}`:B=$||E,P.wrap?`(${M}${B})`:B},A=(R,P,M,$)=>{if(M)return u(R,P,{wrap:!1,...$});let E=String.fromCharCode(R);if(R===P)return E;let B=String.fromCharCode(P);return`[${E}-${B}]`},_=(R,P,M)=>{if(Array.isArray(R)){let $=M.wrap===!0,E=M.capture?"":"?:";return $?`(${E}${R.join("|")})`:R.join("|")}return u(R,P,M)},S=(...R)=>new RangeError("Invalid range arguments: "+s.inspect(...R)),C=(R,P,M)=>{if(M.strictRanges===!0)throw S([R,P]);return[]},j=(R,P)=>{if(P.strictRanges===!0)throw new TypeError(`Expected step "${R}" to be a number`);return[]},x=(R,P,M=1,$={})=>{let E=Number(R),B=Number(P);if(!Number.isInteger(E)||!Number.isInteger(B)){if($.strictRanges===!0)throw S([R,P]);return[]}E===0&&(E=0),B===0&&(B=0);let F=E>B,U=String(R),K=String(P),G=String(M);M=Math.max(Math.abs(M),1);let z=f(U)||f(K)||f(G),ne=z?Math.max(U.length,K.length,G.length):0,w=z===!1&&h(R,P,$)===!1,O=$.transform||p(w);if($.toRegex&&M===1)return A(g(R,ne),g(P,ne),!0,$);let L={negatives:[],positives:[]},X=T=>L[T<0?"negatives":"positives"].push(Math.abs(T)),te=[],Z=0;for(;F?E>=B:E<=B;)$.toRegex===!0&&M>1?X(E):te.push(y(O(E,Z),ne,w)),E=F?E-M:E+M,Z++;return $.toRegex===!0?M>1?v(L,$):_(te,null,{wrap:!1,...$}):te},I=(R,P,M=1,$={})=>{if(!d(R)&&R.length>1||!d(P)&&P.length>1)return C(R,P,$);let E=$.transform||(w=>String.fromCharCode(w)),B=`${R}`.charCodeAt(0),F=`${P}`.charCodeAt(0),U=B>F,K=Math.min(B,F),G=Math.max(B,F);if($.toRegex&&M===1)return A(K,G,!1,$);let z=[],ne=0;for(;U?B>=F:B<=F;)z.push(E(B,ne)),B=U?B-M:B+M,ne++;return $.toRegex===!0?_(z,null,{wrap:!1,options:$}):z},D=(R,P,M,$={})=>{if(P==null&&m(R))return[R];if(!m(R)||!m(P))return C(R,P,$);if(typeof M=="function")return D(R,P,1,{transform:M});if(l(M))return D(R,P,0,M);let E={...$};return E.capture===!0&&(E.wrap=!0),M=M||E.step||1,d(M)?d(R)&&d(P)?x(R,P,M,E):I(R,P,Math.max(Math.abs(M),1),E):M!=null&&!l(M)?j(M,E):D(R,P,1,M)};o.exports=D},357:o=>{/*!
|
|
31
|
+
* is-number <https://github.com/jonschlinkert/is-number>
|
|
32
|
+
*
|
|
33
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
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 s=a(837),u=a(333),l=a(251),p=a(513),m=f=>f===""||f==="./",d=(f,h,y)=>{h=[].concat(h),f=[].concat(f);let g=new Set,v=new Set,A=new Set,_=0,S=x=>{A.add(x.output),y&&y.onResult&&y.onResult(x)};for(let x=0;x<h.length;x++){let I=l(String(h[x]),{...y,onResult:S},!0),D=I.state.negated||I.state.negatedExtglob;D&&_++;for(let R of f){let P=I(R,!0);(D?!P.isMatch:P.isMatch)&&(D?g.add(P.output):(g.delete(P.output),v.add(P.output)))}}let j=(_===h.length?[...A]:[...v]).filter(x=>!g.has(x));if(y&&j.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 j};d.match=d,d.matcher=(f,h)=>l(f,h),d.isMatch=(f,h,y)=>l(h,y)(f),d.any=d.isMatch,d.not=(f,h,y={})=>{h=[].concat(h).map(String);let g=new Set,v=[],_=d(f,h,{...y,onResult:S=>{y.onResult&&y.onResult(S),v.push(S.output)}});for(let S of v)_.includes(S)||g.add(S);return[...g]},d.contains=(f,h,y)=>{if(typeof f!="string")throw new TypeError(`Expected a string: "${s.inspect(f)}"`);if(Array.isArray(h))return h.some(g=>d.contains(f,g,y));if(typeof h=="string"){if(m(f)||m(h))return!1;if(f.includes(h)||f.startsWith("./")&&f.slice(2).includes(h))return!0}return d.isMatch(f,h,{...y,contains:!0})},d.matchKeys=(f,h,y)=>{if(!p.isObject(f))throw new TypeError("Expected the first argument to be an object");let g=d(Object.keys(f),h,y),v={};for(let A of g)v[A]=f[A];return v},d.some=(f,h,y)=>{let g=[].concat(f);for(let v of[].concat(h)){let A=l(String(v),y);if(g.some(_=>A(_)))return!0}return!1},d.every=(f,h,y)=>{let g=[].concat(f);for(let v of[].concat(h)){let A=l(String(v),y);if(!g.every(_=>A(_)))return!1}return!0},d.all=(f,h,y)=>{if(typeof f!="string")throw new TypeError(`Expected a string: "${s.inspect(f)}"`);return[].concat(h).every(g=>l(g,y)(f))},d.capture=(f,h,y)=>{let g=p.isWindows(y),A=l.makeRe(String(f),{...y,capture:!0}).exec(g?p.toPosixSlashes(h):h);if(A)return A.slice(1).map(_=>_===void 0?"":_)},d.makeRe=(...f)=>l.makeRe(...f),d.scan=(...f)=>l.scan(...f),d.parse=(f,h)=>{let y=[];for(let g of[].concat(f||[]))for(let v of u(String(g),h))y.push(l.parse(v,h));return y},d.braces=(f,h)=>{if(typeof f!="string")throw new TypeError("Expected a string");return h&&h.nobrace===!0||!/\{.*\}/.test(f)?[f]:u(f,h)},d.braceExpand=(f,h)=>{if(typeof f!="string")throw new TypeError("Expected a string");return d.braces(f,{...h,expand:!0})},o.exports=d},251:(o,i,a)=>{o.exports=a(683)},356:(o,i,a)=>{const s=a(17),u="\\\\/",l=`[^${u}]`,p="\\.",m="\\+",d="\\?",f="\\/",h="(?=.)",y="[^/]",g=`(?:${f}|$)`,v=`(?:^|${f})`,A=`${p}{1,2}${g}`,_=`(?!${p})`,S=`(?!${v}${A})`,C=`(?!${p}{0,1}${g})`,j=`(?!${A})`,x=`[^.${f}]`,I=`${y}*?`,D={DOT_LITERAL:p,PLUS_LITERAL:m,QMARK_LITERAL:d,SLASH_LITERAL:f,ONE_CHAR:h,QMARK:y,END_ANCHOR:g,DOTS_SLASH:A,NO_DOT:_,NO_DOTS:S,NO_DOT_SLASH:C,NO_DOTS_SLASH:j,QMARK_NO_DOT:x,STAR:I,START_ANCHOR:v},R={...D,SLASH_LITERAL:`[${u}]`,QMARK:l,STAR:`${l}*?`,DOTS_SLASH:`${p}{1,2}(?:[${u}]|$)`,NO_DOT:`(?!${p})`,NO_DOTS:`(?!(?:^|[${u}])${p}{1,2}(?:[${u}]|$))`,NO_DOT_SLASH:`(?!${p}{0,1}(?:[${u}]|$))`,NO_DOTS_SLASH:`(?!${p}{1,2}(?:[${u}]|$))`,QMARK_NO_DOT:`[^.${u}]`,START_ANCHOR:`(?:^|[${u}])`,END_ANCHOR:`(?:[${u}]|$)`},P={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:P,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:s.sep,extglobChars(M){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${M.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(M){return M===!0?R:D}}},754:(o,i,a)=>{const s=a(356),u=a(513),{MAX_LENGTH:l,POSIX_REGEX_SOURCE:p,REGEX_NON_SPECIAL_CHARS:m,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:f}=s,h=(v,A)=>{if(typeof A.expandRange=="function")return A.expandRange(...v,A);v.sort();const _=`[${v.join("-")}]`;try{new RegExp(_)}catch{return v.map(C=>u.escapeRegex(C)).join("..")}return _},y=(v,A)=>`Missing ${v}: "${A}" - use "\\\\${A}" to match literal characters`,g=(v,A)=>{if(typeof v!="string")throw new TypeError("Expected a string");v=f[v]||v;const _={...A},S=typeof _.maxLength=="number"?Math.min(l,_.maxLength):l;let C=v.length;if(C>S)throw new SyntaxError(`Input length: ${C}, exceeds maximum allowed length: ${S}`);const j={type:"bos",value:"",output:_.prepend||""},x=[j],I=_.capture?"":"?:",D=u.isWindows(A),R=s.globChars(D),P=s.extglobChars(R),{DOT_LITERAL:M,PLUS_LITERAL:$,SLASH_LITERAL:E,ONE_CHAR:B,DOTS_SLASH:F,NO_DOT:U,NO_DOT_SLASH:K,NO_DOTS_SLASH:G,QMARK:z,QMARK_NO_DOT:ne,STAR:w,START_ANCHOR:O}=R,L=Q=>`(${I}(?:(?!${O}${Q.dot?F:M}).)*?)`,X=_.dot?"":U,te=_.dot?z:ne;let Z=_.bash===!0?L(_):w;_.capture&&(Z=`(${Z})`),typeof _.noext=="boolean"&&(_.noextglob=_.noext);const T={input:v,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};v=u.removePrefix(v,T),C=v.length;const J=[],Y=[],ee=[];let k=j,N;const re=()=>T.index===C-1,ae=T.peek=(Q=1)=>v[T.index+Q],ce=T.advance=()=>v[++T.index],ue=()=>v.slice(T.index+1),se=(Q="",oe=0)=>{T.consumed+=Q,T.index+=oe},H=Q=>{T.output+=Q.output!=null?Q.output:Q.value,se(Q.value)},he=()=>{let Q=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)ce(),T.start++,Q++;return Q%2===0?!1:(T.negated=!0,T.start++,!0)},ie=Q=>{T[Q]++,ee.push(Q)},me=Q=>{T[Q]--,ee.pop()},W=Q=>{if(k.type==="globstar"){const oe=T.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&&(T.output=T.output.slice(0,-k.output.length),k.type="star",k.value="*",k.output=Z,T.output+=k.output)}if(J.length&&Q.type!=="paren"&&!P[Q.value]&&(J[J.length-1].inner+=Q.value),(Q.value||Q.output)&&H(Q),k&&k.type==="text"&&Q.type==="text"){k.value+=Q.value,k.output=(k.output||"")+Q.value;return}Q.prev=k,x.push(Q),k=Q},le=(Q,oe)=>{const V={...P[oe],conditions:1,inner:""};V.prev=k,V.parens=T.parens,V.output=T.output;const de=(_.capture?"(":"")+V.open;ie("parens"),W({type:Q,value:oe,output:T.output?"":B}),W({type:"paren",extglob:!0,value:ce(),output:de}),J.push(V)},Ce=Q=>{let oe=Q.close+(_.capture?")":"");if(Q.type==="negate"){let V=Z;Q.inner&&Q.inner.length>1&&Q.inner.includes("/")&&(V=L(_)),(V!==Z||re()||/^\)+$/.test(ue()))&&(oe=Q.close=`)$))${V}`),Q.prev.type==="bos"&&(T.negatedExtglob=!0)}W({type:"paren",extglob:!0,value:N,output:oe}),me("parens")};if(_.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(v)){let Q=!1,oe=v.replace(d,(V,de,ye,Ae,be,Wt)=>Ae==="\\"?(Q=!0,V):Ae==="?"?de?de+Ae+(be?z.repeat(be.length):""):Wt===0?te+(be?z.repeat(be.length):""):z.repeat(ye.length):Ae==="."?M.repeat(ye.length):Ae==="*"?de?de+Ae+(be?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===v&&_.contains===!0?(T.output=v,T):(T.output=u.wrapOutput(oe,T,A),T)}for(;!re();){if(N=ce(),N==="\0")continue;if(N==="\\"){const V=ae();if(V==="/"&&_.bash!==!0||V==="."||V===";")continue;if(!V){N+="\\",W({type:"text",value:N});continue}const de=/^\\+/.exec(ue());let ye=0;if(de&&de[0].length>2&&(ye=de[0].length,T.index+=ye,ye%2!==0&&(N+="\\")),_.unescape===!0?N=ce()||"":N+=ce()||"",T.brackets===0){W({type:"text",value:N});continue}}if(T.brackets>0&&(N!=="]"||k.value==="["||k.value==="[^")){if(_.posix!==!1&&N===":"){const V=k.value.slice(1);if(V.includes("[")&&(k.posix=!0,V.includes(":"))){const de=k.value.lastIndexOf("["),ye=k.value.slice(0,de),Ae=k.value.slice(de+2),be=p[Ae];if(be){k.value=ye+be,T.backtrack=!0,ce(),!j.output&&x.indexOf(k)===1&&(j.output=B);continue}}}(N==="["&&ae()!==":"||N==="-"&&ae()==="]")&&(N=`\\${N}`),N==="]"&&(k.value==="["||k.value==="[^")&&(N=`\\${N}`),_.posix===!0&&N==="!"&&k.value==="["&&(N="^"),k.value+=N,H({value:N});continue}if(T.quotes===1&&N!=='"'){N=u.escapeRegex(N),k.value+=N,H({value:N});continue}if(N==='"'){T.quotes=T.quotes===1?0:1,_.keepQuotes===!0&&W({type:"text",value:N});continue}if(N==="("){ie("parens"),W({type:"paren",value:N});continue}if(N===")"){if(T.parens===0&&_.strictBrackets===!0)throw new SyntaxError(y("opening","("));const V=J[J.length-1];if(V&&T.parens===V.parens+1){Ce(J.pop());continue}W({type:"paren",value:N,output:T.parens?")":"\\)"}),me("parens");continue}if(N==="["){if(_.nobracket===!0||!ue().includes("]")){if(_.nobracket!==!0&&_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));N=`\\${N}`}else ie("brackets");W({type:"bracket",value:N});continue}if(N==="]"){if(_.nobracket===!0||k&&k.type==="bracket"&&k.value.length===1){W({type:"text",value:N,output:`\\${N}`});continue}if(T.brackets===0){if(_.strictBrackets===!0)throw new SyntaxError(y("opening","["));W({type:"text",value:N,output:`\\${N}`});continue}me("brackets");const V=k.value.slice(1);if(k.posix!==!0&&V[0]==="^"&&!V.includes("/")&&(N=`/${N}`),k.value+=N,H({value:N}),_.literalBrackets===!1||u.hasRegexChars(V))continue;const de=u.escapeRegex(k.value);if(T.output=T.output.slice(0,-k.value.length),_.literalBrackets===!0){T.output+=de,k.value=de;continue}k.value=`(${I}${de}|${k.value})`,T.output+=k.value;continue}if(N==="{"&&_.nobrace!==!0){ie("braces");const V={type:"brace",value:N,output:"(",outputIndex:T.output.length,tokensIndex:T.tokens.length};Y.push(V),W(V);continue}if(N==="}"){const V=Y[Y.length-1];if(_.nobrace===!0||!V){W({type:"text",value:N,output:N});continue}let de=")";if(V.dots===!0){const ye=x.slice(),Ae=[];for(let be=ye.length-1;be>=0&&(x.pop(),ye[be].type!=="brace");be--)ye[be].type!=="dots"&&Ae.unshift(ye[be].value);de=h(Ae,_),T.backtrack=!0}if(V.comma!==!0&&V.dots!==!0){const ye=T.output.slice(0,V.outputIndex),Ae=T.tokens.slice(V.tokensIndex);V.value=V.output="\\{",N=de="\\}",T.output=ye;for(const be of Ae)T.output+=be.output||be.value}W({type:"brace",value:N,output:de}),me("braces"),Y.pop();continue}if(N==="|"){J.length>0&&J[J.length-1].conditions++,W({type:"text",value:N});continue}if(N===","){let V=N;const de=Y[Y.length-1];de&&ee[ee.length-1]==="braces"&&(de.comma=!0,V="|"),W({type:"comma",value:N,output:V});continue}if(N==="/"){if(k.type==="dot"&&T.index===T.start+1){T.start=T.index+1,T.consumed="",T.output="",x.pop(),k=j;continue}W({type:"slash",value:N,output:E});continue}if(N==="."){if(T.braces>0&&k.type==="dot"){k.value==="."&&(k.output=M);const V=Y[Y.length-1];k.type="dots",k.output+=N,k.value+=N,V.dots=!0;continue}if(T.braces+T.parens===0&&k.type!=="bos"&&k.type!=="slash"){W({type:"text",value:N,output:M});continue}W({type:"dot",value:N,output:M});continue}if(N==="?"){if(!(k&&k.value==="(")&&_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){le("qmark",N);continue}if(k&&k.type==="paren"){const de=ae();let ye=N;if(de==="<"&&!u.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(k.value==="("&&!/[!=<:]/.test(de)||de==="<"&&!/<([!=]|\w+>)/.test(ue()))&&(ye=`\\${N}`),W({type:"text",value:N,output:ye});continue}if(_.dot!==!0&&(k.type==="slash"||k.type==="bos")){W({type:"qmark",value:N,output:ne});continue}W({type:"qmark",value:N,output:z});continue}if(N==="!"){if(_.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){le("negate",N);continue}if(_.nonegate!==!0&&T.index===0){he();continue}}if(N==="+"){if(_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){le("plus",N);continue}if(k&&k.value==="("||_.regex===!1){W({type:"plus",value:N,output:$});continue}if(k&&(k.type==="bracket"||k.type==="paren"||k.type==="brace")||T.parens>0){W({type:"plus",value:N});continue}W({type:"plus",value:$});continue}if(N==="@"){if(_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){W({type:"at",extglob:!0,value:N,output:""});continue}W({type:"text",value:N});continue}if(N!=="*"){(N==="$"||N==="^")&&(N=`\\${N}`);const V=m.exec(ue());V&&(N+=V[0],T.index+=V[0].length),W({type:"text",value:N});continue}if(k&&(k.type==="globstar"||k.star===!0)){k.type="star",k.star=!0,k.value+=N,k.output=Z,T.backtrack=!0,T.globstar=!0,se(N);continue}let Q=ue();if(_.noextglob!==!0&&/^\([^?]/.test(Q)){le("star",N);continue}if(k.type==="star"){if(_.noglobstar===!0){se(N);continue}const V=k.prev,de=V.prev,ye=V.type==="slash"||V.type==="bos",Ae=de&&(de.type==="star"||de.type==="globstar");if(_.bash===!0&&(!ye||Q[0]&&Q[0]!=="/")){W({type:"star",value:N,output:""});continue}const be=T.braces>0&&(V.type==="comma"||V.type==="brace"),Wt=J.length&&(V.type==="pipe"||V.type==="paren");if(!ye&&V.type!=="paren"&&!be&&!Wt){W({type:"star",value:N,output:""});continue}for(;Q.slice(0,3)==="/**";){const gt=v[T.index+4];if(gt&>!=="/")break;Q=Q.slice(3),se("/**",3)}if(V.type==="bos"&&re()){k.type="globstar",k.value+=N,k.output=L(_),T.output=k.output,T.globstar=!0,se(N);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&!Ae&&re()){T.output=T.output.slice(0,-(V.output+k.output).length),V.output=`(?:${V.output}`,k.type="globstar",k.output=L(_)+(_.strictSlashes?")":"|$)"),k.value+=N,T.globstar=!0,T.output+=V.output+k.output,se(N);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&Q[0]==="/"){const gt=Q[1]!==void 0?"|$":"";T.output=T.output.slice(0,-(V.output+k.output).length),V.output=`(?:${V.output}`,k.type="globstar",k.output=`${L(_)}${E}|${E}${gt})`,k.value+=N,T.output+=V.output+k.output,T.globstar=!0,se(N+ce()),W({type:"slash",value:"/",output:""});continue}if(V.type==="bos"&&Q[0]==="/"){k.type="globstar",k.value+=N,k.output=`(?:^|${E}|${L(_)}${E})`,T.output=k.output,T.globstar=!0,se(N+ce()),W({type:"slash",value:"/",output:""});continue}T.output=T.output.slice(0,-k.output.length),k.type="globstar",k.output=L(_),k.value+=N,T.output+=k.output,T.globstar=!0,se(N);continue}const oe={type:"star",value:N,output:Z};if(_.bash===!0){oe.output=".*?",(k.type==="bos"||k.type==="slash")&&(oe.output=X+oe.output),W(oe);continue}if(k&&(k.type==="bracket"||k.type==="paren")&&_.regex===!0){oe.output=N,W(oe);continue}(T.index===T.start||k.type==="slash"||k.type==="dot")&&(k.type==="dot"?(T.output+=K,k.output+=K):_.dot===!0?(T.output+=G,k.output+=G):(T.output+=X,k.output+=X),ae()!=="*"&&(T.output+=B,k.output+=B)),W(oe)}for(;T.brackets>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));T.output=u.escapeLast(T.output,"["),me("brackets")}for(;T.parens>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing",")"));T.output=u.escapeLast(T.output,"("),me("parens")}for(;T.braces>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","}"));T.output=u.escapeLast(T.output,"{"),me("braces")}if(_.strictSlashes!==!0&&(k.type==="star"||k.type==="bracket")&&W({type:"maybe_slash",value:"",output:`${E}?`}),T.backtrack===!0){T.output="";for(const Q of T.tokens)T.output+=Q.output!=null?Q.output:Q.value,Q.suffix&&(T.output+=Q.suffix)}return T};g.fastpaths=(v,A)=>{const _={...A},S=typeof _.maxLength=="number"?Math.min(l,_.maxLength):l,C=v.length;if(C>S)throw new SyntaxError(`Input length: ${C}, exceeds maximum allowed length: ${S}`);v=f[v]||v;const j=u.isWindows(A),{DOT_LITERAL:x,SLASH_LITERAL:I,ONE_CHAR:D,DOTS_SLASH:R,NO_DOT:P,NO_DOTS:M,NO_DOTS_SLASH:$,STAR:E,START_ANCHOR:B}=s.globChars(j),F=_.dot?M:P,U=_.dot?$:P,K=_.capture?"":"?:",G={negated:!1,prefix:""};let z=_.bash===!0?".*?":E;_.capture&&(z=`(${z})`);const ne=X=>X.noglobstar===!0?z:`(${K}(?:(?!${B}${X.dot?R:x}).)*?)`,w=X=>{switch(X){case"*":return`${F}${D}${z}`;case".*":return`${x}${D}${z}`;case"*.*":return`${F}${z}${x}${D}${z}`;case"*/*":return`${F}${z}${I}${D}${U}${z}`;case"**":return F+ne(_);case"**/*":return`(?:${F}${ne(_)}${I})?${U}${D}${z}`;case"**/*.*":return`(?:${F}${ne(_)}${I})?${U}${z}${x}${D}${z}`;case"**/.*":return`(?:${F}${ne(_)}${I})?${x}${D}${z}`;default:{const te=/^(.*?)\.(\w+)$/.exec(X);if(!te)return;const Z=w(te[1]);return Z?Z+x+te[2]:void 0}}},O=u.removePrefix(v,G);let L=w(O);return L&&_.strictSlashes!==!0&&(L+=`${I}?`),L},o.exports=g},683:(o,i,a)=>{const s=a(17),u=a(700),l=a(754),p=a(513),m=a(356),d=h=>h&&typeof h=="object"&&!Array.isArray(h),f=(h,y,g=!1)=>{if(Array.isArray(h)){const I=h.map(R=>f(R,y,g));return R=>{for(const P of I){const M=P(R);if(M)return M}return!1}}const v=d(h)&&h.tokens&&h.input;if(h===""||typeof h!="string"&&!v)throw new TypeError("Expected pattern to be a non-empty string");const A=y||{},_=p.isWindows(y),S=v?f.compileRe(h,y):f.makeRe(h,y,!1,!0),C=S.state;delete S.state;let j=()=>!1;if(A.ignore){const I={...y,ignore:null,onMatch:null,onResult:null};j=f(A.ignore,I,g)}const x=(I,D=!1)=>{const{isMatch:R,match:P,output:M}=f.test(I,S,y,{glob:h,posix:_}),$={glob:h,state:C,regex:S,posix:_,input:I,output:M,match:P,isMatch:R};return typeof A.onResult=="function"&&A.onResult($),R===!1?($.isMatch=!1,D?$:!1):j(I)?(typeof A.onIgnore=="function"&&A.onIgnore($),$.isMatch=!1,D?$:!1):(typeof A.onMatch=="function"&&A.onMatch($),D?$:!0)};return g&&(x.state=C),x};f.test=(h,y,g,{glob:v,posix:A}={})=>{if(typeof h!="string")throw new TypeError("Expected input to be a string");if(h==="")return{isMatch:!1,output:""};const _=g||{},S=_.format||(A?p.toPosixSlashes:null);let C=h===v,j=C&&S?S(h):h;return C===!1&&(j=S?S(h):h,C=j===v),(C===!1||_.capture===!0)&&(_.matchBase===!0||_.basename===!0?C=f.matchBase(h,y,g,A):C=y.exec(j)),{isMatch:!!C,match:C,output:j}},f.matchBase=(h,y,g,v=p.isWindows(g))=>(y instanceof RegExp?y:f.makeRe(y,g)).test(s.basename(h)),f.isMatch=(h,y,g)=>f(y,g)(h),f.parse=(h,y)=>Array.isArray(h)?h.map(g=>f.parse(g,y)):l(h,{...y,fastpaths:!1}),f.scan=(h,y)=>u(h,y),f.compileRe=(h,y,g=!1,v=!1)=>{if(g===!0)return h.output;const A=y||{},_=A.contains?"":"^",S=A.contains?"":"$";let C=`${_}(?:${h.output})${S}`;h&&h.negated===!0&&(C=`^(?!${C}).*$`);const j=f.toRegex(C,y);return v===!0&&(j.state=h),j},f.makeRe=(h,y,g=!1,v=!1)=>{if(!h||typeof h!="string")throw new TypeError("Expected a non-empty string");const A=y||{};let _={negated:!1,fastpaths:!0},S="",C;return h.startsWith("./")&&(h=h.slice(2),S=_.prefix="./"),A.fastpaths!==!1&&(h[0]==="."||h[0]==="*")&&(C=l.fastpaths(h,y)),C===void 0?(_=l(h,y),_.prefix=S+(_.prefix||"")):_.output=C,f.compileRe(_,y,g,v)},f.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/$^/}},f.constants=m,o.exports=f},700:(o,i,a)=>{const s=a(513),{CHAR_ASTERISK:u,CHAR_AT:l,CHAR_BACKWARD_SLASH:p,CHAR_COMMA:m,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:f,CHAR_FORWARD_SLASH:h,CHAR_LEFT_CURLY_BRACE:y,CHAR_LEFT_PARENTHESES:g,CHAR_LEFT_SQUARE_BRACKET:v,CHAR_PLUS:A,CHAR_QUESTION_MARK:_,CHAR_RIGHT_CURLY_BRACE:S,CHAR_RIGHT_PARENTHESES:C,CHAR_RIGHT_SQUARE_BRACKET:j}=a(356),x=R=>R===h||R===p,I=R=>{R.isPrefix!==!0&&(R.depth=R.isGlobstar?1/0:1)},D=(R,P)=>{const M=P||{},$=R.length-1,E=M.parts===!0||M.scanToEnd===!0,B=[],F=[],U=[];let K=R,G=-1,z=0,ne=0,w=!1,O=!1,L=!1,X=!1,te=!1,Z=!1,T=!1,J=!1,Y=!1,ee=0,k,N,re={value:"",depth:0,isGlob:!1};const ae=()=>G>=$,ce=()=>K.charCodeAt(G+1),ue=()=>(k=N,K.charCodeAt(++G));for(;G<$;){N=ue();let me;if(N===p){T=re.backslashes=!0,N=ue(),N===y&&(Z=!0);continue}if(Z===!0||N===y){for(ee++;ae()!==!0&&(N=ue());){if(N===p){T=re.backslashes=!0,ue();continue}if(N===y){ee++;continue}if(Z!==!0&&N===d&&(N=ue())===d){if(w=re.isBrace=!0,L=re.isGlob=!0,Y=!0,E===!0)continue;break}if(Z!==!0&&N===m){if(w=re.isBrace=!0,L=re.isGlob=!0,Y=!0,E===!0)continue;break}if(N===S&&(ee--,ee===0)){Z=!1,w=re.isBrace=!0,Y=!0;break}}if(E===!0)continue;break}if(N===h){if(B.push(G),F.push(re),re={value:"",depth:0,isGlob:!1},Y===!0)continue;if(k===d&&G===z+1){z+=2;continue}ne=G+1;continue}if(M.noext!==!0&&(N===A||N===l||N===u||N===_||N===f)===!0&&ce()===g){if(L=re.isGlob=!0,X=re.isExtglob=!0,Y=!0,E===!0){for(;ae()!==!0&&(N=ue());){if(N===p){T=re.backslashes=!0,N=ue();continue}if(N===C){L=re.isGlob=!0,Y=!0;break}}continue}break}if(N===u){if(k===u&&(te=re.isGlobstar=!0),L=re.isGlob=!0,Y=!0,E===!0)continue;break}if(N===_){if(L=re.isGlob=!0,Y=!0,E===!0)continue;break}if(N===v){for(;ae()!==!0&&(me=ue());){if(me===p){T=re.backslashes=!0,ue();continue}if(me===j){O=re.isBracket=!0,L=re.isGlob=!0,Y=!0;break}}if(E===!0)continue;break}if(M.nonegate!==!0&&N===f&&G===z){J=re.negated=!0,z++;continue}if(M.noparen!==!0&&N===g){if(L=re.isGlob=!0,E===!0){for(;ae()!==!0&&(N=ue());){if(N===g){T=re.backslashes=!0,N=ue();continue}if(N===C){Y=!0;break}}continue}break}if(L===!0){if(Y=!0,E===!0)continue;break}}M.noext===!0&&(X=!1,L=!1);let se=K,H="",he="";z>0&&(H=K.slice(0,z),K=K.slice(z),ne-=z),se&&L===!0&&ne>0?(se=K.slice(0,ne),he=K.slice(ne)):L===!0?(se="",he=K):se=K,se&&se!==""&&se!=="/"&&se!==K&&x(se.charCodeAt(se.length-1))&&(se=se.slice(0,-1)),M.unescape===!0&&(he&&(he=s.removeBackslashes(he)),se&&T===!0&&(se=s.removeBackslashes(se)));const ie={prefix:H,input:R,start:z,base:se,glob:he,isBrace:w,isBracket:O,isGlob:L,isExtglob:X,isGlobstar:te,negated:J};if(M.tokens===!0&&(ie.maxDepth=0,x(N)||F.push(re),ie.tokens=F),M.parts===!0||M.tokens===!0){let me;for(let W=0;W<B.length;W++){const le=me?me+1:z,Ce=B[W],Q=R.slice(le,Ce);M.tokens&&(W===0&&z!==0?(F[W].isPrefix=!0,F[W].value=H):F[W].value=Q,I(F[W]),ie.maxDepth+=F[W].depth),(W!==0||Q!=="")&&U.push(Q),me=Ce}if(me&&me+1<R.length){const W=R.slice(me+1);U.push(W),M.tokens&&(F[F.length-1].value=W,I(F[F.length-1]),ie.maxDepth+=F[F.length-1].depth)}ie.slashes=B,ie.parts=U}return ie};o.exports=D},513:(o,i,a)=>{const s=a(17),u=process.platform==="win32",{REGEX_BACKSLASH:l,REGEX_REMOVE_BACKSLASH:p,REGEX_SPECIAL_CHARS:m,REGEX_SPECIAL_CHARS_GLOBAL:d}=a(356);i.isObject=f=>f!==null&&typeof f=="object"&&!Array.isArray(f),i.hasRegexChars=f=>m.test(f),i.isRegexChar=f=>f.length===1&&i.hasRegexChars(f),i.escapeRegex=f=>f.replace(d,"\\$1"),i.toPosixSlashes=f=>f.replace(l,"/"),i.removeBackslashes=f=>f.replace(p,h=>h==="\\"?"":h),i.supportsLookbehinds=()=>{const f=process.version.slice(1).split(".").map(Number);return f.length===3&&f[0]>=9||f[0]===8&&f[1]>=10},i.isWindows=f=>f&&typeof f.windows=="boolean"?f.windows:u===!0||s.sep==="\\",i.escapeLast=(f,h,y)=>{const g=f.lastIndexOf(h,y);return g===-1?f:f[g-1]==="\\"?i.escapeLast(f,h,g-1):`${f.slice(0,g)}\\${f.slice(g)}`},i.removePrefix=(f,h={})=>{let y=f;return y.startsWith("./")&&(y=y.slice(2),h.prefix="./"),y},i.wrapOutput=(f,h={},y={})=>{const g=y.contains?"":"^",v=y.contains?"":"$";let A=`${g}(?:${f})${v}`;return h.negated===!0&&(A=`(?:^(?!${A}).*$)`),A}},492:(o,i,a)=>{/*!
|
|
36
|
+
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
39
|
+
* Released under the MIT License.
|
|
40
|
+
*/const s=a(357),u=(x,I,D)=>{if(s(x)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(I===void 0||x===I)return String(x);if(s(I)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let R={relaxZeros:!0,...D};typeof R.strictZeros=="boolean"&&(R.relaxZeros=R.strictZeros===!1);let P=String(R.relaxZeros),M=String(R.shorthand),$=String(R.capture),E=String(R.wrap),B=x+":"+I+"="+P+M+$+E;if(u.cache.hasOwnProperty(B))return u.cache[B].result;let F=Math.min(x,I),U=Math.max(x,I);if(Math.abs(F-U)===1){let w=x+"|"+I;return R.capture?`(${w})`:R.wrap===!1?w:`(?:${w})`}let K=C(x)||C(I),G={min:x,max:I,a:F,b:U},z=[],ne=[];if(K&&(G.isPadded=K,G.maxLen=String(G.max).length),F<0){let w=U<0?Math.abs(U):1;ne=d(w,Math.abs(F),G,R),F=G.a=0}return U>=0&&(z=d(F,U,G,R)),G.negatives=ne,G.positives=z,G.result=l(ne,z),R.capture===!0?G.result=`(${G.result})`:R.wrap!==!1&&z.length+ne.length>1&&(G.result=`(?:${G.result})`),u.cache[B]=G,G.result};function l(x,I,D){let R=f(x,I,"-",!1)||[],P=f(I,x,"",!1)||[],M=f(x,I,"-?",!0)||[];return R.concat(M).concat(P).join("|")}function p(x,I){let D=1,R=1,P=v(x,D),M=new Set([I]);for(;x<=P&&P<=I;)M.add(P),D+=1,P=v(x,D);for(P=A(I+1,R)-1;x<P&&P<=I;)M.add(P),R+=1,P=A(I+1,R)-1;return M=[...M],M.sort(y),M}function m(x,I,D){if(x===I)return{pattern:x,count:[],digits:0};let R=h(x,I),P=R.length,M="",$=0;for(let E=0;E<P;E++){let[B,F]=R[E];B===F?M+=B:B!=="0"||F!=="9"?M+=S(B,F):$++}return $&&(M+=D.shorthand===!0?"\\d":"[0-9]"),{pattern:M,count:[$],digits:P}}function d(x,I,D,R){let P=p(x,I),M=[],$=x,E;for(let B=0;B<P.length;B++){let F=P[B],U=m(String($),String(F),R),K="";if(!D.isPadded&&E&&E.pattern===U.pattern){E.count.length>1&&E.count.pop(),E.count.push(U.count[0]),E.string=E.pattern+_(E.count),$=F+1;continue}D.isPadded&&(K=j(F,D,R)),U.string=K+U.pattern+_(U.count),M.push(U),$=F+1,E=U}return M}function f(x,I,D,R,P){let M=[];for(let $ of x){let{string:E}=$;!R&&!g(I,"string",E)&&M.push(D+E),R&&g(I,"string",E)&&M.push(D+E)}return M}function h(x,I){let D=[];for(let R=0;R<x.length;R++)D.push([x[R],I[R]]);return D}function y(x,I){return x>I?1:I>x?-1:0}function g(x,I,D){return x.some(R=>R[I]===D)}function v(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,D=""]=x;return D||I>1?`{${I+(D?","+D:"")}}`:""}function S(x,I,D){return`[${x}${I-x===1?"":"-"}${I}]`}function C(x){return/^-?(0+)\d/.test(x)}function j(x,I,D){if(!I.isPadded)return x;let R=Math.abs(I.maxLen-String(x).length),P=D.relaxZeros!==!1;switch(R){case 0:return"";case 1:return P?"0?":"0";case 2:return P?"0{0,2}":"00";default:return P?`0{0,${R}}`:`0{${R}}`}}u.cache={},u.clearCache=()=>u.cache={},o.exports=u},17:o=>{o.exports=Gd},837:o=>{o.exports=If()}},t={};function r(o){var i=t[o];if(i!==void 0)return i.exports;var a=t[o]={exports:{}},s=!0;try{e[o](a,a.exports,r),s=!1}finally{s&&delete t[o]}return a.exports}typeof r<"u"&&(r.ab=__dirname+"/");var n=r(971);jr.exports=n})()),jr.exports}var ma;function Nf(){return ma||(ma=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,a){for(var s in a)Object.defineProperty(i,s,{enumerable:!0,get:a[s]})}t(e,{matchRemotePattern:function(){return n},hasMatch:function(){return o}});const r=Pf();function n(i,a){if(i.protocol!==void 0){const u=a.protocol.slice(0,-1);if(i.protocol!==u)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 s;return!!(0,r.makeRe)((s=i.pathname)!=null?s:"**").test(a.pathname)}function o(i,a,s){return i.some(u=>s.hostname===u)||a.some(u=>n(u,s))}}(wr)),wr}var ha;function dc(){return ha||(ha=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:s}=n;if(process.env.NODE_ENV!=="production"){const u=[];if(i||u.push("src"),a||u.push("width"),u.length>0)throw new Error("Next Image Optimization requires "+u.join(", ")+" to be provided. Make sure you pass them as props to the `next/image` component. Received: "+JSON.stringify({src:i,width:a,quality:s}));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 l;try{l=new URL(i)}catch(p){throw console.error(p),new Error('Failed to parse src "'+i+'" on `next/image`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)')}if(process.env.NODE_ENV!=="test"&&process.env.NEXT_RUNTIME!=="edge"){const{hasMatch:p}=Nf();if(!p(o.domains,o.remotePatterns,l))throw new Error("Invalid src prop ("+i+') on `next/image`, hostname "'+l.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="+(s||75)+(process.env.NEXT_DEPLOYMENT_ID?"&dpl="+process.env.NEXT_DEPLOYMENT_ID:"")}t.__next_img_default=!0;const r=t}(Er)),Er}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return A}});const r=Ee,o=Qe._(q),i=r._(ba),a=r._(zd()),s=oo,u=zt,l=Fd(),p=lt,m=Ds(),d=r._(dc()),f=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function h(_,S,C,j,x,I){const D=_==null?void 0:_.src;if(!_||_["data-loaded-src"]===D)return;_["data-loaded-src"]=D,("decode"in _?_.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!_.parentElement||!_.isConnected)){if(S!=="empty"&&x(!0),C!=null&&C.current){const P=new Event("load");Object.defineProperty(P,"target",{writable:!1,value:_});let M=!1,$=!1;C.current({...P,nativeEvent:P,currentTarget:_,target:_,isDefaultPrevented:()=>M,isPropagationStopped:()=>$,persist:()=>{},preventDefault:()=>{M=!0,P.preventDefault()},stopPropagation:()=>{$=!0,P.stopPropagation()}})}if(j!=null&&j.current&&j.current(_),process.env.NODE_ENV!=="production"){const P=new URL(D,"http://n").searchParams.get("url")||D;if(_.getAttribute("data-nimg")==="fill"){if(!I&&(!_.getAttribute("sizes")||_.getAttribute("sizes")==="100vw")&&_.getBoundingClientRect().width/window.innerWidth<.6&&(0,p.warnOnce)('Image with src "'+P+'" 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:E}=window.getComputedStyle(_.parentElement),B=["absolute","fixed","relative"];B.includes(E)||(0,p.warnOnce)('Image with src "'+P+'" has "fill" and parent element with invalid "position". Provided "'+E+'" should be one of '+B.map(String).join(",")+".")}_.height===0&&(0,p.warnOnce)('Image with src "'+P+'" 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 M=_.height.toString()!==_.getAttribute("height"),$=_.width.toString()!==_.getAttribute("width");(M&&!$||!M&&$)&&(0,p.warnOnce)('Image with src "'+P+`" 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[S,C]=o.version.split("."),j=parseInt(S,10),x=parseInt(C,10);return j>18||j===18&&x>=3?{fetchPriority:_}:{fetchpriority:_}}const g=(0,o.forwardRef)((_,S)=>{let{src:C,srcSet:j,sizes:x,height:I,width:D,decoding:R,className:P,style:M,fetchPriority:$,placeholder:E,loading:B,unoptimized:F,fill:U,onLoadRef:K,onLoadingCompleteRef:G,setBlurComplete:z,setShowAltText:ne,onLoad:w,onError:O,...L}=_;return o.default.createElement("img",{...L,...y($),loading:B,width:D,height:I,decoding:R,"data-nimg":U?"fill":"1",className:P,style:M,sizes:x,srcSet:j,src:C,ref:(0,o.useCallback)(X=>{S&&(typeof S=="function"?S(X):typeof S=="object"&&(S.current=X)),X&&(O&&(X.src=X.src),process.env.NODE_ENV!=="production"&&(C||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,E,K,G,z,F))},[C,E,K,G,z,O,F,S]),onLoad:X=>{const te=X.currentTarget;h(te,E,K,G,z,F)},onError:X=>{ne(!0),E!=="empty"&&z(!0),O&&O(X)}})});function v(_){let{isAppRouter:S,imgAttributes:C}=_;const j={as:"image",imageSrcSet:C.srcSet,imageSizes:C.sizes,crossOrigin:C.crossOrigin,referrerPolicy:C.referrerPolicy,...y(C.fetchPriority)};return S&&i.default.preload?(i.default.preload(C.src,j),null):o.default.createElement(a.default,null,o.default.createElement("link",{key:"__nimg-"+C.src+C.srcSet+C.sizes,rel:"preload",href:C.srcSet?void 0:C.src,...j}))}const A=(0,o.forwardRef)((_,S)=>{const j=!(0,o.useContext)(m.RouterContext),x=(0,o.useContext)(l.ImageConfigContext),I=(0,o.useMemo)(()=>{const G=f||x||u.imageConfigDefault,z=[...G.deviceSizes,...G.imageSizes].sort((w,O)=>w-O),ne=G.deviceSizes.sort((w,O)=>w-O);return{...G,allSizes:z,deviceSizes:ne}},[x]),{onLoad:D,onLoadingComplete:R}=_,P=(0,o.useRef)(D);(0,o.useEffect)(()=>{P.current=D},[D]);const M=(0,o.useRef)(R);(0,o.useEffect)(()=>{M.current=R},[R]);const[$,E]=(0,o.useState)(!1),[B,F]=(0,o.useState)(!1),{props:U,meta:K}=(0,s.getImgProps)(_,{defaultLoader:d.default,imgConf:I,blurComplete:$,showAltText:B});return o.default.createElement(o.default.Fragment,null,o.default.createElement(g,{...U,unoptimized:K.unoptimized,placeholder:K.placeholder,fill:K.fill,onLoadRef:P,onLoadingCompleteRef:M,setBlurComplete:E,setShowAltText:F,ref:S}),K.priority?o.default.createElement(v,{isAppRouter:j,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)})(Un,Un.exports);var Of=Un.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,p){for(var m in p)Object.defineProperty(l,m,{enumerable:!0,get:p[m]})}t(e,{unstable_getImgProps:function(){return s},default:function(){return u}});const r=Ee,n=oo,o=lt,i=Of,a=r._(dc()),s=l=>{(0,o.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");const{props:p}=(0,n.getImgProps)(l,{defaultLoader:a.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[m,d]of Object.entries(p))d===void 0&&delete p[m];return{props:p}},u=i.Image})(ec);var Tf=ec;const ga=qt(Tf),Mf=({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?c.jsxs(we,{href:e.link,target:"_blank",rel:"noopener noreferrer",className:pe["support-item"],children:[e.image&&c.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?c.jsx(ga,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):c.jsx(b.Icon,{size:"small",name:n})]}):c.jsxs("div",{className:pe["support-item"],children:[e.image&&c.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?c.jsx(ga,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):c.jsx(b.Icon,{size:"small",name:n})]})},kf=({content:e,CONSTANTS:t})=>c.jsx("div",{className:pe["support-container"],children:e==null?void 0:e.map((r,n)=>c.jsxs("div",{"data-device":r.device,className:pe["support-section"],children:[c.jsxs("div",{className:pe["support-text"],children:[r.title&&c.jsx("h3",{children:r.title}),r.description&&c.jsx("p",{children:r.description})]}),r.items.length&&c.jsx("div",{className:pe["support-items"],"data-gap":r.gap,children:r.items.map((o,i)=>c.jsx(Mf,{item:o,CONSTANTS:t},`footer-support-item-${i}`))})]},`footer-support-${n}`))}),Lf=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:n,columnAlignContent:o,columnAlignItems:i,textAlignContent:a,textAlignItems:s,children:u})=>c.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:n,alignItems:n},columnWrapper:{alignContent:o,alignItems:i}},children:c.jsxs(b.TextStructure.DivWrapper,{alignContent:a,alignItems:s,className:pe.footer__column,children:[c.jsxs("div",{className:t?pe.footer__columnTitleIcon:pe.footer__columnTitle,children:[c.jsx(b.Icon,{name:`${t}`,size:"small"}),e&&c.jsx("div",{children:e})]}),c.jsx("div",{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:u})]})}),Df=({name:e,nameIcon:t,maxWidth:r,children:n,ICONS:o,...i})=>c.jsxs(b.Accordion.Wrapper,{className:pe.accordionWrapper,title:"accordion-wrapper",...i,children:[c.jsx(b.Accordion.Header,{id:(i==null?void 0:i.id)??"",className:pe.accordionHeader,closeIndicator:c.jsx(b.Icon,{name:o.arrow_up,size:"medium"}),openIndicator:c.jsx(b.Icon,{name:o.arrow_down,size:"medium"}),title:"accordion-header",children:c.jsx(b.TextStructure.Root,{children:c.jsxs(b.TextStructure.DivWrapper,{className:t?pe.accordionTextWrapper:"",children:[c.jsx(b.Icon,{name:`${t}`,size:"medium"}),c.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),c.jsx(b.Accordion.Body,{title:"accordion-body",children:c.jsx(b.TextStructure.Root,{children:c.jsx(b.TextStructure.DivWrapper,{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:n})})})]}),Pn=e=>{const{isMobile:t}=ke();return t?c.jsx(Df,{...e}):c.jsx(Lf,{...e})},Ot=({type:e,children:t,className:r,collumnName:n,collumnNameIcon:o,icons:i,iconLink:a,iconSize:s,link:u,paymentDisclaimer:l,paymentTitle:p,rowAlignContent:m,columnAlignContent:d,columnAlignItems:f,textAlignContent:h,textAlignItems:y,...g})=>{let v;const{handleSelectContent:A}=ge(),{nextimage:_}=Ne();switch(e){case"menu":v=c.jsx(we,{className:pe.footer__itemLink,href:u??"#",prefetch:!1,children:c.jsx("span",{onClick:()=>{A({content:`footer:${n}:${t}`})},children:t})});break;case"payment":v=c.jsxs("div",{className:b.helpers.classNameConcat(pe.payment,pe.footer__itemSmallText),...g,children:[l,c.jsxs("div",{className:b.helpers.classNameConcat(pe.footer__iconContainer,pe.footer__iconListSubHeader),children:[p,c.jsx("div",{className:pe.footer__iconList,children:i==null?void 0:i.map((S,C)=>c.jsx(_,{alt:S,src:`/assets/${S}.svg`,width:s??20,height:s??20},C))})]})]});break;case"social-media":v=c.jsx("div",{className:pe.footer__iconContainer,...g,children:c.jsx("div",{className:pe.footer__iconList,children:a==null?void 0:a.map((S,C)=>c.jsx(we,{prefetch:!1,href:S.link??"#",target:"_blank",children:c.jsx(b.Icon,{size:"medium",name:S.icon,onClick:()=>A({content:`footer:redes-sociais:${S.icon}`})})},C))})});break;default:v=c.jsx("div",{className:r,...g,children:t})}return c.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:m,alignItems:m},columnWrapper:{alignContent:d,alignItems:f}},...g,children:c.jsx(b.TextStructure.DivWrapper,{alignContent:h,alignItems:y,className:b.helpers.classNameConcat(pe.footer__item,r),children:v})})},$f=({className:e,text:t,...r})=>c.jsx("div",{...r,className:b.helpers.classNameConcat(pe.footer__legalInformation,e),children:c.jsx("span",{children:t})}),fc=()=>{const{nextimage:e}=Ne();return c.jsx("div",{className:pe["footer--stamps"],children:c.jsx(e,{alt:"Empresa B",className:pe["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};fc.displayName="Footer.Stamps";const pc=({children:e,legalTextSlot:t,adornment:r,className:n,...o})=>{const{isMobile:i}=ke(),a=q.Children.toArray(e).filter(Boolean),s=a.length;return c.jsxs("div",{className:pe.footer__main,children:[(r==null?void 0:r.top)&&c.jsx("div",{className:pe.footer__top,children:r==null?void 0:r.top}),s>0&&c.jsx("div",{...o,className:b.helpers.classNameConcat(pe.footer__wrapper,n),children:a.map((u,l)=>c.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${i?1:"fit-content"})`},children:u},l))}),(r==null?void 0:r.bottom)&&c.jsx("div",{className:pe.footer__bottom,children:r.bottom}),t&&c.jsx("div",{className:pe.footer__legalText,children:t})]})};pc.displayName="Footer.Wrapper";const mc=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:n,adornment:o,LEGAL_INFORMATION_TEXT:i,ICONS:a})=>{var s;return c.jsxs(pc,{adornment:o,legalTextSlot:c.jsx($f,{text:i}),children:[Array.isArray(e.column)&&e.column.map((u,l)=>c.jsx(Pn,{id:`${l}column-menu`,name:u.name,nameIcon:u.nameIcon,ICONS:a,children:u.items.map((p,m)=>c.jsx(Ot,{type:"menu",link:p.link,collumnName:u.name,collumnNameIcon:u.nameIcon,children:p.text},m))},l)),t&&((s=t.acceptedFlags)==null?void 0:s.length)>0&&c.jsx(Pn,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:a,children:c.jsx(Ot,{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})}),c.jsxs(Pn,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:a,children:[r!=null&&r.subTitle?c.jsx(Ot,{children:r==null?void 0:r.subTitle}):null,c.jsx(Ot,{type:"social-media",iconSize:24,iconLink:n}),c.jsx(fc,{})]})]})};mc.displayName="Footer";const qf=Object.freeze(Object.defineProperty({__proto__:null,Footer:mc,FooterSupport:kf},Symbol.toStringTag,{value:"Module"})),uo={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},lo=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=Ze(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=xe(),i=r.reduce((a,s)=>a+(s.quantity??0),0);return c.jsx(b.Header.SupportItem,{onClick:()=>{t(!0),n({content:"header:minicart"})},id:e,children:c.jsxs(b.Badge.AutoPositioner,{children:[c.jsx(b.Badge.Count,{count:i,size:"medium",variant:"primary",style:{backgroundColor:"black",display:i>0?"flex":"none"}}),c.jsx(b.Icon,{name:o.header.ICONS.bag,size:"medium"})]})})};lo.displayName="Header.Bag";const mt=({children:e,href:t,...r})=>t&&t!=="#"?c.jsx(we,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,hc=()=>{const{headerData:e}=xe(),{handleSelectContent:t}=ge(),{reset:r,updateValue:n}=De(),o=i=>{i?n(i):r()};return c.jsx(b.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((i,a)=>c.jsx(mt,{href:i.link,onMouseEnter:()=>o(i.submenuId),onFocus:()=>o(i.submenuId),children:c.jsx(b.Header.CategoryItem,{className:uo["btn-header"],value:i.submenuId??null,adornment:{start:c.jsx(b.Icon,{name:i.iconStart}),end:c.jsx(b.Icon,{name:i.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${i.label}`})},children:i.label})},`category-${i.label}-${a}`))})};hc.displayName="Header.Categories";function Bf({SearchModal:e}){const{handleSelectContent:t}=ge(),{CONSTANTS:r}=xe(),{setValue:n}=Zn();return c.jsxs(c.Fragment,{children:[c.jsx(b.Header.SupportItem,{onClick:()=>{n(!0),t({content:"header:search"})},children:c.jsx(b.Icon,{name:r.header.ICONS.search,size:"medium"})}),c.jsx(e,{recommendations:!1,trends:!0})]})}const Hf={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},fo=({thumbnails:e,category:t,isMobile:r=!0,callBack:n})=>{const{handleSelectPromotionEvent:o}=ge(),i=50/e.length;return c.jsx("div",{className:Hf["menu-subcategories-container"],children:e.map((a,s)=>{const u=r?a.srcMobile:a.srcDesk;if(!u)return null;const l={creative_name:"banner-menu",creative_slot:`banner-menu:${t}:${s+1}`,promotion_id:u,promotion_name:a.promotion_name};return c.jsx(to,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...l}}}},observerOptions:{delay:1e3},children:c.jsxs(we,{href:a.link??"#",onClick:()=>{typeof n=="function"&&n(),o({updatePromotionRef:!0,promotion:l})},children:[c.jsx(Oe.Image,{src:u,alt:a.label??u,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${i}vw`}),a.label&&c.jsx("p",{children:a.label})]})},`thumb-${a.label}-${s}`)})})};fo.displayName="Menu.Thumbnail";const Wn={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},gc=({children:e,dividerOnRight:t=!0,subMenu:r,...n})=>{var u;const{router:o}=Ne(),{reset:i}=De(),{handleSelectContent:a}=ge(),{CONSTANTS:s}=xe();return c.jsxs("div",{...n,className:Wn["menu-categories"],children:[(u=r==null?void 0:r.subCategories)==null?void 0:u.map((l,p)=>{var f,h,y;const m=l.listCollapseDesk&&!((f=l.see_all)!=null&&f.link)?{expandAfterRowsQty:l.rowsToShowDesk}:{},d=l.listCollapseDesk&&!((h=l.see_all)!=null&&h.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:c.jsx(b.Icon,{name:s.header.ICONS.arrow_right,size:"small"})}};return c.jsxs(b.ComponentList.Structure,{children:[c.jsx(mt,{href:l.linkLabel,title:l.label,onClick:()=>{l.linkLabel&&(i(),a({content:`menu:${l.label??""}:${r.label??""}`}))},children:c.jsx(b.TextStructure.Root,{children:c.jsx(b.TextStructure.DivWrapper,{children:c.jsx("h2",{children:l.label})})})}),c.jsx(b.ComponentList.List,{columns:1,...m,className:Wn["submenu-categories"],children:l.items.map((g,v)=>c.jsx(b.ComponentList.ListItem,{id:`list-item-${g.label}-${v}`,children:c.jsx(Je,{href:g.link??"#",size:"x-small",title:g.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{i(),a({content:`menu:${l.label??""}:${g.label??""}:${r.label??""}`})},children:g.label})},`list-item-${g.label}-${v}`))}),((y=l.see_all)==null?void 0:y.link)&&c.jsx(b.ComponentList.Support,{...d,size:"small",onClick:()=>{var g;(g=l.see_all)!=null&&g.link&&(i(),a({content:`menu:${l.label??""}:${r.label}`}),o.push(l.see_all.link))},children:l.see_all.link&&l.see_all.label})]},`list-${l.label}-${p}`)}),t&&c.jsx(b.Utils.Divider,{size:"small",direction:"vertical"})]})};gc.displayName="Menu.Categories";const yc=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:n}=xe();return c.jsxs(c.Fragment,{children:[c.jsx("div",{...r,className:Wn["menu-desktop"],style:{...r.style,justifyContent:n.header.ALIGNMENT_MENU},children:e}),t&&c.jsx(b.Utils.Divider,{size:"small"})]})};yc.displayName="Menu.MenuRoot";const zf=no(()=>Promise.resolve(yc),{ssr:!1}),Nn={Root:zf,Categories:gc,Thumbnail:fo},_c=()=>{const{headerData:e,CONSTANTS:t}=xe(),r=Dt(),{reset:n}=De();return c.jsx(b.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((o,i)=>{const{thumbnails:a,label:s,id:u}=o,l=u===r,p=a==null?void 0:a.some(m=>!!m.srcDesk);return c.jsxs(Nn.Root,{id:u,style:l?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:l,children:[c.jsx(Nn.Categories,{dividerOnRight:!!p,subMenu:o}),Array.isArray(a)&&c.jsx(Nn.Thumbnail,{thumbnails:a,isMobile:!1,category:s,callBack:n})]},`submenu-${u}-${i}`)})})};_c.displayName="Header.SubMenu";const vc=()=>{const{handleSelectContent:e}=ge(),{CONSTANTS:t}=xe();return c.jsx(we,{href:"/favoritos",children:c.jsx(b.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:c.jsx(b.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};vc.displayName="Header.WishList";const bc=({UserMenu:e,SearchModal:t})=>{const r=q.useRef(null),{CONSTANTS:n}=xe(),{handleSelectContent:o}=ge(),{reset:i}=De(),{setValue:a}=$t();return c.jsxs(c.Fragment,{children:[c.jsxs(b.Header.Wrapper,{children:[c.jsx(b.Header.Logo,{style:{width:"100%"},children:c.jsx(we,{href:"/",onMouseEnter:i,children:c.jsx(b.Icon,{name:n.header.ICONS.logo,size:"x-large",onClick:()=>{o({content:"header:logo"})}})})}),c.jsx(hc,{}),c.jsxs(b.Header.Support,{onMouseEnter:i,style:{justifyContent:"flex-end"},children:[c.jsx(Bf,{SearchModal:t}),c.jsx(e,{target:r.current,children:c.jsx(b.Header.SupportItem,{onClick:()=>{a(!0),o({content:"header:user_menu"})},className:uo["btn-login"],innerRef:r,children:c.jsx(b.Icon,{name:n.header.ICONS.person,size:"medium"})})}),c.jsx(vc,{}),c.jsx(lo,{id:"cart-button"})]})]}),c.jsx(_c,{})]})};bc.displayName="Header.HeaderDesktopWrapper";const Ff="_divider_1lexj_199",_e={"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:Ff,"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})=>c.jsx("button",{onClick:n,className:_e["menu-categories-btn"],children:r?c.jsxs(b.Banner.Container,{...i,className:_e["menu-body-banner-container-modifier"],children:[c.jsx(b.Banner.ImageWrapper,{style:{width:"100%"},children:c.jsx(Oe.Image,{src:r,alt:t??r,className:_e["menu-categories__banner"],width:343,height:128,unoptimized:!0})}),c.jsx(b.Banner.Slot,{verticalAlignment:"center",horizontalAlignment:"start",children:c.jsx(b.TextStructure.Root,{children:c.jsx(b.TextStructure.DivWrapper,{className:_e["menu-categories-textstructure-modifier"],children:c.jsx("h2",{className:"typography-style-body-xs",style:o?{color:o}:{},children:e})})})})]}):c.jsx("h2",{...i,children:e})});xc.displayName="Menu.MenuCategories";const Cc=({children:e,link:t})=>{const{reset:r}=ze();return t?c.jsx(we,{href:t??"#",onClick:r,children:e}):e};Cc.displayName="Menu.MenuCategoriesWrapper";const Sc=({subcategory:e,submenuLabel:t})=>{var u,l,p;const{router:r}=Ne(),{reset:n}=ze(),{handleSelectContent:o}=ge(),{CONSTANTS:i}=xe(),a=e.listCollapseMobile&&!((u=e.see_all)!=null&&u.link)?{expandAfterRowsQty:e.rowsToShowMobile}:{},s=e.listCollapseMobile&&!((l=e.see_all)!=null&&l.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:c.jsx(b.Icon,{name:i.header.ICONS.arrow_right,size:"small"})}};return c.jsxs(b.ComponentList.Structure,{className:_e["menu-submenu--component-list-modifier"],children:[c.jsx(mt,{href:e.linkLabel,title:e.label,onClick:()=>{n(),o({content:`menu:${e.label??""}:${t}`})},children:c.jsx(b.TextStructure.Root,{children:c.jsx(b.TextStructure.DivWrapper,{children:c.jsx("h2",{className:"typography-style-body-sm-strong",children:e.label})})})}),c.jsx(b.ComponentList.List,{columns:1,...a,className:_e["submenu-categories"],children:e.items.map((m,d)=>c.jsx(b.ComponentList.ListItem,{id:`list-item-${m.label}-${d}`,divider:!0,children:c.jsx(Je,{href:m.link??"#",size:"x-small",title:m.label??"",disableUnderline:!0,onClick:()=>{n(),o({content:`menu:${e.label??""}:${m.label}:${t}`})},children:m.label})},`list-item-${m.label}-${d}`))}),((p=e.see_all)==null?void 0:p.link)&&c.jsx(b.ComponentList.Support,{...s,size:"small",onClick:()=>{var m;n(),o({content:`menu:${e.label??""}:${t}`}),(m=e.see_all)!=null&&m.link&&r.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};Sc.displayName="Menu.SubMenuSubCategory";const Ac=({submenu:e})=>{var i;const t=Dt(),{handleCloseSubMenu:r}=ut(),{reset:n}=De(),{CONSTANTS:o}=xe();return c.jsxs("div",{className:_e["menu-submenu--item"],style:{display:t===e.id?"flex":"none"},children:[c.jsx(b.TextStructure.Root,{adornment:{start:c.jsx(b.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&&c.jsx(b.TextStructure.DivWrapper,{style:{position:"absolute",left:"50%",transform:"translate(-50%)"},children:c.jsx("h2",{className:"typography-style-body-md-strong",children:e.label})})}),c.jsx("div",{className:_e["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&c.jsx(fo,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:n})}),(i=e==null?void 0:e.subCategories)==null?void 0:i.map((a,s)=>c.jsx(Sc,{subcategory:a,submenuLabel:e.label},`list-${a.label}-${s}`))]})};Ac.displayName="Menu.SubMenuItem";const Rc=()=>{const{headerData:e}=xe(),t=Dt(),{reset:r}=De(),{bodyRef:n}=ut();return c.jsx(b.Modal.RootWithoutPortal,{isOpen:!!t,setIsOpen:r,parent:n.current,variant:"sideLeft",style:{position:"absolute",width:"100%"},className:_e["menu-submenu-modal-modifiier"],children:c.jsx("div",{className:_e["menu-submenu"],children:e.subMenus.map((o,i)=>c.jsx(Ac,{submenu:o},`submenu-${o.id}-${i}`))})})};Rc.displayName="Menu.SubMenu";const Ec=({className:e,...t})=>{const{headerData:r}=xe(),{setValue:n}=De(),{bodyRef:o}=ut(),{handleSelectContent:i}=ge();return c.jsxs("div",{...t,ref:o,id:"menu-body",className:_e["menu-body"],children:[c.jsx("div",{className:_e["menu-categories-container"],children:r.categories.map((a,s)=>{const u=a.submenuId?{}:{"data-close":!0};return c.jsx(Cc,{link:a.submenuId?null:a.link,children:c.jsx(xc,{onClick:()=>{n(a.submenuId??null),i({content:`menu:${a.label}`})},mobileBannerSrc:a.mobileBannerSrc,mobileBannerAlt:a.mobileBannerAlt,textColor:a.textColor,...u,children:a.mobileBannerAlt})},`menu-categories-${s}`)})}),c.jsx(Rc,{})]})};Ec.displayName="Menu.MenuBody";const wc=({title:e,subtitle:t})=>{const{CONSTANTS:r}=xe();return c.jsxs("div",{className:_e["menu-header-wrapper"],style:t?{alignItems:"start"}:{alignItems:"center"},children:[(e||t)&&c.jsx(b.TextStructure.Root,{children:c.jsxs(b.TextStructure.DivWrapper,{children:[e&&c.jsx("h2",{className:"typography-style-body-md",children:e}),t&&c.jsx("h3",{children:t})]})}),c.jsx(b.Button,{adornment:{end:c.jsx(b.Icon,{name:r.header.ICONS.close})},variant:"tertiary",className:_e["menu-close"],"data-close":!0})]})};wc.displayName="Menu.MenuHeaderWrapper";const jc=({navigationLinks:e})=>{const{reset:t}=ze(),{handleSelectContent:r}=ge();return e?c.jsx("nav",{className:_e["menu-header-navlinks"],children:e.map((n,o)=>c.jsx(Je,{href:n.link??"#",adornments:{start:n.iconStart&&c.jsx(b.Icon,{name:n.iconStart}),end:n.iconEnd&&c.jsx(b.Icon,{name:n.iconEnd})},onClick:()=>{t(),r({content:`menu:navigationlinks-${n.label}`})},children:n.label},o))}):null};jc.displayName="Menu.MenuHeaderNavLinks";const Ic=()=>{const{headerData:e}=xe();return c.jsxs("div",{className:_e["menu-header-container"],children:[c.jsx(wc,{title:e.title,subtitle:e.subtitle}),c.jsx(jc,{navigationLinks:e.navigationLinks})]})};Ic.displayName="Menu.MenuHeaderContainer";const Pc=({children:e})=>{const{documentBodyRef:t}=ut(),{CONSTANTS:r}=xe(),n=Yn(),{setValue:o}=ze();return c.jsx(b.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:_e["modal-modifier"],children:c.jsx("div",{className:_e["menu-mobile"],children:e})})};Pc.displayName="Menu.MenuRoot";const Uf=no(()=>Promise.resolve(Pc),{ssr:!1}),Mt=({children:e,...t})=>c.jsxs(c.Fragment,{children:[c.jsx(b.Button,{...t,className:_e["menu-navigationbar-item"],children:e}),c.jsx(b.Utils.Divider,{direction:"vertical",size:"small",className:_e.divider})]});Mt.displayName="Menu.NavigationBarItem";const Nc=()=>{const{setIsOpen:e}=Ze(),{reset:t}=ze(),{setValue:r}=$t(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=xe(),{router:i}=Ne();return c.jsxs(b.Card,{id:"menu-navigationbar",shadow:!0,className:_e["menu-navigationbar"],style:{zIndex:o.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:[c.jsx(Mt,{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}),c.jsx(Mt,{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}),c.jsx(Mt,{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})]})};Nc.displayName="Menu.NavigationBar";const Tt={Root:Uf,NavigationBar:Nc,Header:Ic,Body:Ec},Oc=({UserMenu:e,SearchModal:t})=>{const r=q.useRef(null),n=q.useRef(null),{CONSTANTS:o}=xe(),{MENU_NAVIGATION_BAR_ALLOWED:i,ICONS:a,MENU_MOB_BTN_SIDE:s="right"}=o.header,{handleSelectContent:u}=ge(),{setValue:l}=Zn(),{setValue:p}=ze(),{setValue:m}=$t();return c.jsxs(c.Fragment,{children:[c.jsxs(b.Header.Wrapper,{children:[s==="left"&&c.jsx(b.Header.SupportItem,{onClick:()=>p(!0),innerRef:r,children:c.jsx(b.Icon,{name:a.menu,size:"medium"})}),c.jsx(b.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:c.jsx(we,{href:"/",children:c.jsx(b.Icon,{name:a.logo,size:"x-large",onClick:()=>{u({content:"header:logo"})}})})}),c.jsxs(b.Header.Support,{children:[c.jsx(b.Header.SupportItem,{onClick:()=>{l(!0),u({content:"header:search"})},children:c.jsx(b.Icon,{name:a.search,size:"medium"})}),c.jsx(b.Header.SupportItem,{onClick:()=>{m(!0),u({content:"header:user_menu"})},innerRef:n,children:c.jsx(b.Icon,{name:a.person,size:"medium"})}),c.jsx(lo,{}),s==="right"&&c.jsx(b.Header.SupportItem,{onClick:()=>p(!0),innerRef:r,children:c.jsx(b.Icon,{name:a.menu,size:"medium"})})]})]}),c.jsx(t,{recommendations:!1,trends:!0}),c.jsx(xs,{children:c.jsx(e,{target:n==null?void 0:n.current,children:c.jsxs(Tt.Root,{children:[c.jsx(Tt.Header,{}),c.jsx(Tt.Body,{}),i?c.jsx(Tt.NavigationBar,{}):c.jsx(c.Fragment,{})]})})})]})};Oc.displayName="Header.HeaderMobileWrapper";const Tc=({tipBar:e,miniCart:t,UserMenu:r,SearchModal:n})=>{const{structureRef:o,rootRef:i,CONSTANTS:a}=xe(),{header:{HEADER_CONFIGS:s,Z_INDEX_WAR:u}}=a;return c.jsx(b.Header.Structure,{innerRef:o,adornment:{start:e},style:{position:"sticky",top:0,zIndex:u.header},className:uo["header-animation"],children:c.jsxs(b.Header.Root,{innerRef:i,style:{zIndex:u.header},variant:s.default_variant,interactiveVariant:s.interactive_variant,children:[c.jsx("div",{className:kt["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:u.header_mobile},children:c.jsx(Oc,{UserMenu:r,SearchModal:n})}),c.jsx("div",{className:kt["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:u.header_desktop},children:c.jsx(bc,{UserMenu:r,SearchModal:n})}),t,c.jsx(ro,{title:"Produto adicionado à sua sacola!",CONSTANTS:a.addToCart})]})})};Tc.displayName="Header";const Wf="_shippingFreight_6z8rf_6",Gf="_shippingFreight__postalCodeGrid_6z8rf_10",Vf="_shippingFreight__grid_6z8rf_14",Kf="_shippingFreight__grid__title_6z8rf_18",Xf="_shippingFreight__grid__remember_6z8rf_29",Qf="_postalCodeContainer_6z8rf_44",Yf="_deliveryStatusBar__tag_6z8rf_49",Zf="_deliveryStatusBarError__tag_6z8rf_66",Jf="_deliveryInfo_6z8rf_74",ep="_deliveryInfo__content_6z8rf_78",tp="_deliveryInfo__text_6z8rf_84",rp="_deliveryInfo__title_6z8rf_89",np="_deliveryInfo__subtitle_6z8rf_99",op="_deliveryInfo__tooltipIcon_6z8rf_109",ip="_deliveryInfo__tooltip_6z8rf_109",ap="_freightGrid_6z8rf_148",sp="_freightContainer_6z8rf_155",cp="_freightOption__content_6z8rf_160",up="_freightOption__value_6z8rf_166",lp="_freightOption__title_6z8rf_177",dp="_freightOption__title_item_6z8rf_181",fp="_freightOption__paragraph_6z8rf_192",fe={shippingFreight:Wf,shippingFreight__postalCodeGrid:Gf,shippingFreight__grid:Vf,shippingFreight__grid__title:Kf,shippingFreight__grid__remember:Xf,postalCodeContainer:Qf,deliveryStatusBar__tag:Yf,deliveryStatusBarError__tag:Zf,deliveryInfo:Jf,deliveryInfo__content:ep,deliveryInfo__text:tp,deliveryInfo__title:rp,deliveryInfo__subtitle:np,deliveryInfo__tooltipIcon:op,deliveryInfo__tooltip:ip,freightGrid:ap,freightContainer:sp,freightOption__content:cp,freightOption__value:up,freightOption__title:lp,freightOption__title_item:dp,freightOption__paragraph:fp,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},pp=({icon:e,title:t,subtitle:r,packageCount:n,packageUnit:o="",labelDescription:i,freightConfig:a,toolTipZIndex:s})=>{const[u,l]=q.useState(!1),p=q.useRef(null),m=()=>l(d=>!d);return c.jsxs("div",{className:fe.deliveryInfo,ref:p,children:[c.jsx(b.Tooltip.Root,{arrow:"bottom",component:c.jsx("div",{children:c.jsx("p",{children:a.messages.select_size_tag})}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:s},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:p.current}),c.jsxs("div",{className:fe.deliveryInfo__content,children:[c.jsx("div",{className:fe.deliveryInfo__icon,children:c.jsx(b.Icon,{name:e,size:"medium"})}),c.jsxs("div",{className:fe.deliveryInfo__text,children:[c.jsxs("span",{className:fe.deliveryInfo__title,children:[t," ",n," ",o]}),r&&c.jsx("span",{className:fe.deliveryInfo__subtitle,children:r})]}),i&&c.jsxs("div",{className:fe.deliveryInfo__tooltipIcon,onMouseEnter:m,onMouseLeave:m,"aria-label":"Mostrar descrição",children:[c.jsx("span",{children:c.jsx(b.Icon,{name:a.icons.feedback_help,size:"small"})}),u&&c.jsx("div",{className:fe.deliveryInfo__tooltip,children:i})]})]})]})},mp=({value:e,title:t,paragraph:r})=>c.jsx("div",{className:fe.freightOption,children:c.jsxs("div",{className:fe.freightOption__content,children:[c.jsx("span",{className:fe.freightOption__value,children:e}),c.jsx("span",{className:fe.freightOption__title,children:c.jsx(b.TextStructure.Root,{children:c.jsxs(b.TextStructure.DivWrapper,{className:fe.footer__item,children:[c.jsx("span",{className:fe.freightOption__title_item,children:t}),r&&c.jsx("span",{className:fe.freightOption__paragraph,children:r})]})})})]})}),hp=({children:e})=>c.jsx("div",{className:fe.freightContainer,children:e}),gp=({children:e})=>c.jsx("div",{className:fe.freightGrid,children:e}),yp=({children:e})=>c.jsx("div",{className:fe.postalCodeContainer,children:e}),ya=({message:e,seller:t="",size:r="small",setError:n})=>c.jsx("div",{className:n?fe.deliveryStatusBarError:fe.deliveryStatusBar,children:c.jsxs(b.Tag,{title:e,className:n?fe.deliveryStatusBarError__tag:fe.deliveryStatusBar__tag,size:r,children:[e," ",!n&&t]})}),_p=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},vp=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},bp=({component:e,parent:t,top:r,left:n,target:o,contentRef:i,freightConfig:a,toolTipZIndex:s=999,...u})=>{const{isMobile:l}=ke();return c.jsx(c.Fragment,{children:l?c.jsx(b.Tooltip.Root,{arrow:"bottom",component:c.jsxs("div",{...u,ref:i,children:[e,c.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:s},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:t}):c.jsx(b.Tooltip.Root,{arrow:"bottom",component:c.jsxs("div",{...u,ref:i,children:[e,c.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:s},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:t})})},xp=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:n,quantity:o,setError:i,setIsButtonClicked:a,component:s,freightConfig:u,toolTipZIndex:l})=>{var P,M,$,E;const p=Ke(),m=Ke(B=>B.shipping),[d,f]=q.useState(),[h,y]=q.useState(!1),[g,v]=q.useState(!1),[A,_]=q.useState(!1),S=(M=(P=p.shippingData)==null?void 0:P.address)==null?void 0:M.postalCode,C=!(d!=null&&d.length)&&S?S:d,j=q.useRef(null),x=async B=>{const U=B.target.value.replace(/\D/g,"").slice(0,8);U.length>5?f(U.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):f(U)},I=async B=>{const F=B.target.value.replace(/\D/g,"");try{if((await ho.get(`https://viacep.com.br/ws/${F}/json/`)).data.erro){i&&i(u.messages.cep_not_found),a(!1),v(!0);return}i&&i(""),v(!1)}catch{console.log("Erro ao validar o CEP. Tente novamente mais tarde.")}},D=async()=>{y(!0);try{const B=await ho.post("/api/checkout/simulation",{items:[{id:n,quantity:o,seller:t}],country:"BRA",postalCode:C});e(vp(B.data))}catch(B){console.error("Erro ao atualizar o documento:",B)}finally{y(!1),m(C,"BRA")}},R=async()=>{if(!n){_(!0),setTimeout(()=>_(!1),1500);return}await I({target:{value:C}}),h||(D(),a(!0))};return c.jsxs("div",{ref:j,style:{position:"relative"},children:[!n&&A?c.jsx(bp,{component:s,isOpen:A,parent:j.current,toolTipZIndex:l,freightConfig:u}):c.jsx(c.Fragment,{}),c.jsx("div",{style:{position:"relative"},children:c.jsx(b.TextField.Structure,{title:"structure",style:{width:"100%"},input:c.jsx(b.TextField.Input,{defaultValue:(E=($=p.shippingData)==null?void 0:$.address)==null?void 0:E.postalCode,label:u.messages.text_input_label,title:"textfield",value:d,sizeVariant:r,onMouseOver:()=>n?null:_(!0),onMouseOut:()=>n?null:_(!1),mode:"simple",onChange:x,onKeyDown:B=>{B.key==="Enter"&&R()},className:fe["input-modifier"],feedback:g?"error":"none"}),right:c.jsx(b.Button,{onClick:R,size:r,title:"button",children:h?c.jsx(b.Spinner,{size:"small",indicatorColor:"#ffffff"}):u.messages.text_input_btn})})})]})},Cp=({children:e,freightConfig:t})=>c.jsxs("div",{className:fe.shippingFreight,children:[c.jsxs("div",{className:fe.shippingFreight__grid,children:[c.jsx("span",{className:fe.shippingFreight__grid__title,children:t.messages.title}),c.jsx("span",{className:fe.shippingFreight__grid__remember,children:c.jsx(Je,{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})})]}),c.jsx("div",{className:fe.shippingFreight__postalCodeGrid,children:e})]}),Sp=({children:e})=>c.jsx("div",{className:fe.freightContainer,children:e}),Ap=({className:e,sellerId:t,skuId:r,quantity:n,size:o,seller:i,local:a,CONSTANTS_PROPS:s})=>{const{sendDataLayerEvent:u}=ge(),[l,p]=q.useState(""),[m,d]=q.useState([]),[f,h]=q.useState(""),[y,g]=q.useState(!1),v=_=>p(_),A=_=>{d(_),u({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:{shippings:_.map(S=>({shipping_tier:S.id,delivery_time:S.shippingEstimate.replace("bd",""),flag_pickup:S.name.toLowerCase().includes("retirada")?"true":"false",shipping:S.price,currency:s.currency||"BRL"}))}}})};return c.jsxs(Sp,{className:e,children:[c.jsxs(Cp,{freightConfig:s.freightConfig,children:[c.jsx(yp,{children:c.jsx(xp,{onUpdateFreightItems:A,skuId:r,quantity:n,size:o,sellerId:t,local:a,setError:h,setIsButtonClicked:g,freightConfig:s.freightConfig,toolTipZIndex:s.toolTipZIndex})}),f?c.jsx(ya,{size:o,message:f,setError:h}):m.length>0&&c.jsx(ya,{size:o,message:s.freightConfig.messages.delivered_by,seller:i})]}),y&&!f?m.length>0&&c.jsxs(hp,{children:[c.jsx(gp,{children:m.filter(({id:_})=>!_.includes("Retirada")).map(_=>c.jsx(mp,{id:_.id,value:Aa({valueInCents:_.price,hasFree:!1,freeTaxMessage:s.freightConfig.messages.free_tax}),title:_.name,paragraph:`${s.freightConfig.messages.prefix_days}${_p(_.shippingEstimate)}`,radioValue:l,changeValue:v},_.id))}),s.deliveryInfoBoxesAllowed?c.jsx(pp,{icon:s.freightConfig.icons.delivery_truck,packageUnit:s.freightConfig.messages.unit_amout,title:s.freightConfig.messages.delivered_amount_packages,subtitle:"",packageCount:1,labelDescription:"Label",freightConfig:s.freightConfig,toolTipZIndex:s.toolTipZIndex??999}):c.jsx(c.Fragment,{})]}):null]})},Mc=q.createContext({}),Rp=({children:e,item:t,index:r,shelfTitle:n,...o})=>{const[i,a]=q.useState(null),s=q.useRef(null),u=q.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:l,itemListRef:p}=ge(),m=y=>{l({functionKey:"productEvents",data:{commonData:{...t,availableSizes:u.current.availableSkus,...u.current.priceInfo},customData:{index:r+1},event:y}})},d=()=>{m("add_to_wishlist")},f=()=>{l({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...u.current.priceInfo}]},supportData:{selectedSku:i,selectedSkus:[i]},customData:{index:r}}})},h=()=>{n&&(p.current={item_list_name:n}),m("select_item")};return c.jsx(Mc.Provider,{value:q.useMemo(()=>({...o,index:r,item:t,element:s,selectedSku:i,setSelectedSku:a,eventDataRef:u,sendAddToWishlistEvent:d,sendSelectItemEvent:h,sendAddToCartEvent:f}),[o,t,s,i]),children:e})},Pe=()=>{const e=q.useContext(Mc);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},Se={"product-card--actions":"_product-card--actions_5xa7u_1","product-card--actions--group":"_product-card--actions--group_5xa7u_9","product-card--actions--selectors":"_product-card--actions--selectors_5xa7u_21","product-card--body":"_product-card--body_5xa7u_33","product-card--header":"_product-card--header_5xa7u_47","product-card--footer":"_product-card--footer_5xa7u_67","product-card--image":"_product-card--image_5xa7u_90","product-card--image--container":"_product-card--image--container_5xa7u_97","product-card--outstock":"_product-card--outstock_5xa7u_133","product-card--price":"_product-card--price_5xa7u_155","product-card--title":"_product-card--title_5xa7u_180","product-card--title--tag":"_product-card--title--tag_5xa7u_186","product-card--title--content":"_product-card--title--content_5xa7u_203","product-card--selectors--size":"_product-card--selectors--size_5xa7u_243","product-card--selectors--size--button":"_product-card--selectors--size--button_5xa7u_269","product-card--selectors--size--skus":"_product-card--selectors--size--skus_5xa7u_278","product-card--selectors--style":"_product-card--selectors--style_5xa7u_292","product-card--selectors--style--more":"_product-card--selectors--style--more_5xa7u_302","product-card--video":"_product-card--video_5xa7u_319","product-card--wrapper":"_product-card--wrapper_5xa7u_345"},kc=({callback:e,children:t,className:r,data:n,isKit:o,...i})=>{const{item:{availability:{status:a},image:s}}=Pe();return a?c.jsxs("div",{...i,className:b.helpers.classNameConcat(Se["product-card--actions"],r),children:[c.jsxs(Ve.Wrapper,{type:"actions--group",children:[c.jsx(Ve.Price,{}),c.jsx("div",{className:Se["product-card--actions--selectors"],children:!o&&c.jsx(Ve.StyleSelector,{data:n,images:s,callback:e})})]}),t]}):null};kc.displayName="ProductCard.Actions";const Lc=({className:e,isKit:t,...r})=>{const{addToCart:n}=Ze(),{isMobile:o=!1,selectedSku:i,outStock:a,item:s,sendAddToCartEvent:u,CONSTANTS:l}=Pe(),p=()=>{var f;if(!i)return;const d=ja(i.offers.offers,l.StoreConfig_MainSellerId);d&&n({id:i==null?void 0:i.sku,quantity:1,seller:d.seller.identifier},{id:s.id,texture:(f=s==null?void 0:s.image.find(h=>l.TEXTURE_IMAGE.includes(h.alternateName)))==null?void 0:f.url}),u()},m=i?l.BUY_BUTTON_LABELS.add_to_cart:l.BUY_BUTTON_LABELS.select_size;return c.jsx(b.Button,{...r,className:b.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!i&&!a,size:o?"medium":"large",variant:a?"secondary":"primary",onClick:a?r.onClick:p,children:a?"Avise-me quando chegar":m})};Lc.displayName="ProductCard.Actions.BuyButton";const Dc=({product:e,tag:t,size:r="small"})=>{const n=e.offers.offers[0],{CONSTANTS:o,WishListToggle:i}=Pe();return c.jsxs(Ve.Wrapper,{type:"header",style:{zIndex:o.Z_INDEX_WAR.product_card_header},children:[t?c.jsx(b.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?c.jsx(b.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&&c.jsx(i,{product:e,priceInfo:{price:n.price,listPrice:n.listPrice},variant:"card"})]})};Dc.displayName="ProductCard.Actions.Header";const $c=({className:e,children:t,hasPriority:r=!1,showVideo:n=!1,...o})=>{const{element:i,index:a,item:{image:s,slug:u,video:l},sendSelectItemEvent:p,order:m,CONSTANTS:d}=Pe(),f=Oa({images:s,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return c.jsxs("div",{...o,className:b.helpers.classNameConcat(Se["product-card--image"],e),ref:i,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[c.jsx(we,{href:`/${u}/p`,onClick:p,onMouseUp:h=>{h.button===1&&p(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(m))},children:c.jsx("div",{className:Se["product-card--image--container"],children:Array.isArray(f)&&f.map(({url:h,alternateName:y},g)=>q.createElement(Oe.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&&l&&c.jsx(Ve.Video,{url:l,poster:f[0].url}),t]})};$c.displayName="ProductCard.Media.Media";const qc=({className:e,callback:t,children:r,...n})=>{const{isMobile:o,item:i,CONSTANTS:{PRODUCT_CARD_TEXTS:a}}=Pe(),{availability:{status:s}}=i;return s?null:c.jsxs("div",{...n,className:b.helpers.classNameConcat(Se["product-card--outstock"],e),children:[c.jsx(b.Tag,{size:"small",variant:"secondary",title:a.disabled,children:a.disabled}),c.jsx(b.Button,{className:b.helpers.classNameConcat(e,"buy-button"),size:o?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(i)},children:a.notify})]})};qc.displayName="ProductCard.OutStock";const Bc=({children:e,className:t="",index:r,isMobile:n=!1,item:o,size:i,order:a,outStock:s,shelfTitle:u,CONSTANTS:l,WishListToggle:p,...m})=>c.jsx(Rp,{item:o,isMobile:n,outStock:s,order:a,size:i,index:r,shelfTitle:u,CONSTANTS:l,WishListToggle:p,children:c.jsx("div",{...m,className:b.helpers.classNameConcat(Se["product-card--wrapper"],t),"data-size":i,children:e})});Bc.displayName="ProductCard.Root";const Hc=({disabled:e,label:t,size:r,value:n,onClick:o,...i})=>c.jsxs(b.ToggleSize.Wrapper,{...i,disabled:!1,outOfStock:e,size:r,onClick:o,children:[c.jsx(b.ToggleSize.DisabledAdornment,{}),c.jsx(b.ToggleSize.Text,{children:t})]});Hc.displayName="ProductCard.SizeSelector.Item";const zc=({active:e=!1,callback:t,selectedSku:r=null,item:n,setNotify:o})=>{const{item:i,isMobile:a,setSelectedSku:s,eventDataRef:u}=Pe();n.productId=i.id;const l=wa(n),p=Ra(n,"tamanho");!l&&!u.current.availableSkus.includes(p)&&u.current.availableSkus.push(p);const m=q.useCallback(f=>{const h=r===f?null:f;typeof s=="function"&&s(h),typeof t=="function"&&t(h)},[t,s,r]),d=q.useCallback(()=>{if(l&&typeof o=="function"){o(i,n);return}m(n)},[n,o,m,l,i]);return c.jsx(Hc,{active:e,disabled:l,label:p,onClick:()=>d(),size:a?"x-small":"small",value:n})};zc.displayName="ProductCard.SizeSelector.SkuItem";const Fc=({callback:e,className:t="",children:r,setNotify:n,...o})=>{const{isMobile:i,item:{isVariantOf:{hasVariant:a}},selectedSku:s}=Pe();return c.jsxs("div",{...o,className:b.helpers.classNameConcat(Se["product-card--selectors--size"],t),"data-mobile":i,children:[c.jsx("div",{className:Se["product-card--selectors--size--skus"],children:Array.isArray(a)&&a.map((u,l)=>c.jsx(zc,{active:s===u,callback:e,item:u,selectedSku:s,setNotify:n},`size--${l}--${u.sku}`))}),c.jsx("div",{className:Se["product-card--selectors--size--button"],children:r})]})};Fc.displayName="ProductCard.SizeSelector";const Gn=({alt:e="",callback:t,more:r,total:n=4,src:o,url:i,...a})=>c.jsxs(b.ToggleStyle.Wrapper,{...a,onClick:()=>{typeof t=="function"&&t(i)},children:[c.jsx(b.ToggleStyle.DisabledAdornment,{}),c.jsxs(b.ToggleStyle.Texture,{children:[o&&c.jsx(Oe.Image,{alt:e??o,src:o,height:34,width:34}),r&&c.jsx(b.TextStructure.DivWrapper,{className:Se["product-card--selectors--style--more"],children:c.jsxs("p",{children:["+ ",n]})})]})]}),Ep=({children:e,callback:t,data:r,total:n=4,size:o,...i})=>{const{index:a}=Pe(),{triggerSelectItemEventRef:s}=ge();return c.jsxs("div",{...i,children:[e,Array.isArray(r)&&r.slice(0,n).map((u,l)=>c.jsx(Gn,{callback:p=>{s.current.trigger=!0,s.current.index=a,typeof t=="function"&&t(p)},src:(u==null?void 0:u.textureImage)??"",alt:u==null?void 0:u.textureAlt,url:u==null?void 0:u.slug,size:o},l)),Array.isArray(r)&&(r==null?void 0:r.length)>n&&c.jsx(Gn,{size:o,total:r.length-n,more:!0})]})},Uc=({callback:e,className:t,data:r,images:n=[],findTexture:o,...i})=>{const{CONSTANTS:a}=Pe(),s=o||a.TEXTURE_IMAGE,u=n==null?void 0:n.find(l=>s.includes(l.alternateName));return c.jsx(Ep,{...i,callback:e,className:b.helpers.classNameConcat(Se["product-card--selectors--style"],t),data:r,size:"x-small",children:u&&c.jsx(Gn,{active:!0,size:"x-small",src:u.url})})};Uc.displayName="ProductCard.StyleSelector";const Wc=({className:e,hasDecimal:t,...r})=>{const{isMobile:n,item:{offers:{lowPrice:o,highPrice:i},installments:{count:a,value:s}},eventDataRef:u}=Pe();u.current.priceInfo={price:o,listPrice:i};const l=Me(i,t),p=Me(o,t),m=Me(s??0),d=n?"horizontal":"stacked";return c.jsx("div",{...r,className:b.helpers.classNameConcat(Se["product-card--price"],e),"data-mobile":n,children:c.jsx(b.ProductInfo.Root,{size:"small",layout:d,children:c.jsxs(b.ProductInfo.Wrapper,{size:"small",layout:d,children:[c.jsx(b.ProductInfo.ValuesWrapper,{children:p!==l?c.jsxs(c.Fragment,{children:[c.jsx(b.ProductInfo.Price,{label:"originalPrice",value:l,size:"small"}),c.jsx(b.ProductInfo.Price,{label:"discountPrice",value:p,size:"small"})]}):c.jsx(b.ProductInfo.Price,{label:"defaultPrice",value:p,size:"small"})}),a&&a>1&&s?c.jsx(b.ProductInfo.Price,{label:"installment",value:`${a}x ${m}`,size:"small"}):null]})})})};Wc.displayName="ProductCard.Price";const Gc=({tag:e,className:t})=>{const{item:{name:r}}=Pe();return c.jsxs("div",{className:b.helpers.classNameConcat(Se["product-card--title"],t),children:[c.jsx("div",{className:Se["product-card--title--tag"],children:e?c.jsx(b.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?c.jsx(b.Icon,{name:e.icon,style:{color:e.iconColor}}):null},style:{background:e.tagColor,color:e.textColor},children:e.value}):c.jsx("div",{})}),c.jsx("div",{className:Se["product-card--title--content"],children:r&&c.jsx(b.TextStructure.Root,{children:c.jsx(b.TextStructure.DivWrapper,{children:c.jsx("h3",{children:r})})})})]})};Gc.displayName="ProductCard.Title";const Vc=({className:e,url:t,poster:r,...n})=>{const{element:o}=Pe();return q.useEffect(()=>{if(!(o!=null&&o.current))return;const i=o.current,a=i.querySelector("video");if(a){const s=new IntersectionObserver(p=>{p.forEach(m=>{Ta(m.isIntersecting,a,t)})},{root:null,rootMargin:"0px",threshold:.5}),u=()=>{a.setAttribute("data-loaded","true")},l=()=>{i&&(s.observe(i),a.addEventListener("loadeddata",u))};return document.readyState==="complete"?l():window.addEventListener("load",l),()=>{s.disconnect(),window.removeEventListener("load",l)}}return()=>null},[t,o]),c.jsx("div",{...n,className:b.helpers.classNameConcat(Se["product-card--video"],e),children:t&&c.jsx(Oe.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};Vc.displayName="ProductCard.Media.Video";const Kc=({children:e,className:t,type:r,...n})=>c.jsx("div",{...n,className:b.helpers.classNameConcat(Se[`product-card--${r}`],t),children:e});Kc.displayName="ProductCard.Wrapper";const Ve={Actions:kc,BuyButton:Lc,Header:Dc,Media:$c,Root:Bc,OutStock:qc,Price:Wc,SizeSelector:Fc,StyleSelector:Uc,Title:Gc,Video:Vc,Wrapper:Kc},_a=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:n})=>{const o=Pa(e.imageUrl,n.pdp),{nextimage:i}=Ne();return c.jsx(i,{src:o,alt:e.imageLabel,objectFit:"contain",...n.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},wp=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:n}=ge(),o=q.useRef(!1);return c.jsx(Oe.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})},jp={"gallery-carousel-modifier":"_gallery-carousel-modifier_1dxfy_92"},Xc=({images:e,video:t,handleZoom:r,productName:n,PRODUCT_IMAGE_DIMENSIONS:o})=>{var l,p;const{initialize:i,pagination:a,controller:s,itemsStyles:u}=b.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return c.jsxs(b.Carousel.Root,{innerRef:m=>{i(m)},className:jp["gallery-carousel-modifier"],children:[c.jsx(b.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:c.jsx(b.Carousel.Bullets,{page:a.currentPage,total:e.length,onBulletClick:m=>s==null?void 0:s.navigateTo(m)})}),c.jsxs(b.Carousel.Body,{children:[c.jsx(b.Carousel.Item,{style:u,children:c.jsx(_a,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},"PDP_gallery_0"),t&&c.jsx(b.Carousel.Item,{style:u,children:c.jsx(wp,{video:t,productName:n,...((l=e[1])==null?void 0:l.imageUrl)&&{poster:(p=e[1])==null?void 0:p.imageUrl}})},"PDP_gallery_video"),e.map((m,d)=>d===0?null:c.jsx(b.Carousel.Item,{style:u,children:c.jsx(_a,{image:m,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},`PDP_gallery_${d}`))]})]})};Xc.displayName="PDP.Carousel";const Ip=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{video:r,productName:n}=Xn(),[o,i]=q.useState({show:!1,initialIndex:0});q.useEffect(()=>(o.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[o]);const a=s=>{i({show:!0,initialIndex:s})};return c.jsx(c.Fragment,{children:c.jsx(Xc,{images:e,video:r,handleZoom:a,productName:n,PRODUCT_IMAGE_DIMENSIONS:t})})},Qc=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{images:r}=Xn(),n=q.useMemo(()=>{const o=r.filter(i=>!e.includes(i.imageLabel));return o.length>0?o:r},[]);return c.jsx(Ip,{productImgs:n,PRODUCT_IMAGE_DIMENSIONS:t})};Qc.displayName="PDP.Gallery";const Pp=Object.freeze(Object.defineProperty({__proto__:null,Gallery:Qc},Symbol.toStringTag,{value:"Module"})),Np={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},po=({size:e,adornment:t,title:r,subtitle:n,supportChildren:o,className:i,Z_INDEX_WAR:a,...s})=>c.jsxs(b.SnackBar.Structure,{...s,size:e,className:b.helpers.classNameConcat(Np["snackbar-modifier"],i),width:360,style:{zIndex:a.snackbar},children:[c.jsx(b.SnackBar.Content,{adornment:t,title:r,subtitle:n}),o&&c.jsx(b.SnackBar.Support,{children:o})]});po.displayName="SnackBar";const Yc=q.createContext({}),Op=({data:e,children:t,...r})=>{var h,y,g,v,A,_,S,C,j,x,I,D,R;const[n,o]=q.useState(!0),{initialize:i,controller:a,itemsStyles:s}=b.Carousel.useCarousel({gap:0,itemsPerPage:1}),u={slideTranstionTimer:(y=(h=e==null?void 0:e.staticConfig)==null?void 0:h.staticConfig)==null?void 0:y.slideTranstionTimer,showCarouselArrows:(v=(g=e==null?void 0:e.staticConfig)==null?void 0:g.staticConfig)==null?void 0:v.showCarouselArrows,hasCloseBtn:(_=(A=e==null?void 0:e.staticConfig)==null?void 0:A.staticConfig)==null?void 0:_.hasCloseBtn,backgroundColor:(C=(S=e==null?void 0:e.staticConfig)==null?void 0:S.staticConfig)==null?void 0:C.backgroundColor,textColorVariant:(x=(j=e==null?void 0:e.staticConfig)==null?void 0:j.staticConfig)==null?void 0:x.textColorVariant,content:((D=(I=e==null?void 0:e.content)==null?void 0:I.content)==null?void 0:D.items)??[]},l=(R=u.content)==null?void 0:R.filter(P=>!P.countDownEndDate||new Date(P.countDownEndDate)>new Date),p=l.length>1,m={...u.backgroundColor?{backgroundColor:u.backgroundColor}:{}},d=()=>{o(!1)},f=b.helpers.ValidateProp({fieldTypes:ot.Mode,property:u.textColorVariant,fallback:"default"});return c.jsx(Yc.Provider,{value:{isOpen:n,setIsOpen:o,hasCarousel:p,backgroundStyle:m,handleCloseTipbar:d,mode:f,slideTranstionTimer:u.slideTranstionTimer,showCarouselArrows:u.showCarouselArrows,hasCloseBtn:u.hasCloseBtn,slices:l,carouselProps:{initialize:i,controller:a,itemsStyles:s},...r},children:t})},$e=()=>q.useContext(Yc),Tp=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=$e();return c.jsx(Hn,{dateEnd:new Date(e),TIME_ZONE:r,...t})},Mp="_tipbar_bt3p0_1",kp="_tipbar__carousel_bt3p0_15",ht={tipbar:Mp,tipbar__carousel:kp,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},Lp=({coupon:e,feedbackTitle:t,feedbackDescription:r,...n})=>{const{CONSTANTS:o}=$e(),[i,a]=q.useState({status:!1,showSnackBar:!1}),s=()=>{a({status:!0,showSnackBar:!0})};return q.useEffect(()=>{i.status&&setTimeout(()=>{a({status:!0,showSnackBar:!1})},o.TIPBAR_CONFIGS.snackbar_timeout)},[i]),c.jsxs(c.Fragment,{children:[c.jsx(b.Button,{...n,onClick:s,disabled:i.status,className:ht["tipbar-item__coupon"],children:i.status?"Cupom aplicado":"Aplicar cupom"}),i.showSnackBar&&(t||r)&&c.jsx(po,{title:t,subtitle:r,Z_INDEX_WAR:o.Z_INDEX_WAR},`feedback-coupon-${e}`)]})},Dp=({title:e,description:t,style:r,mode:n,className:o})=>c.jsx(b.TextStructure.Root,{children:c.jsxs(b.TextStructure.DivWrapper,{mode:n,className:o,children:[e&&c.jsx("h3",{className:"typography-style-body-sm",style:r,children:e}),t&&c.jsx("p",{className:"typography-style-caption",style:r,children:t})]})}),$p=({className:e,description:t,staticZone:r,title:n,type:o})=>{const{mode:i}=$e();if(o==="countdown")return c.jsx(Tp,{dateEnd:r.countDownEndDate,size:"x-small",mode:i});if(o==="coupon"){const a=b.helpers.ValidateProp({fieldTypes:ot.Mode,property:r.couponButtonMode,fallback:"default"}),s=b.helpers.ValidateProp({fieldTypes:ot.VariantsExtended,property:r.couponButtonVariant,fallback:"primary"});return r.coupon?c.jsx(Lp,{coupon:r.coupon,mode:a,variant:s,feedbackTitle:r.couponFeedbackTitle,feedbackDescription:r.couponFeedbackDescription}):null}return c.jsx(Dp,{title:n,description:t,mode:i,className:e})},qp=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:n})=>{const{carouselProps:o,CONSTANTS:i}=$e(),a=q.useRef(null),s=(l,p)=>{var m,d;l.stopPropagation(),l.preventDefault(),p==="prev"?(m=o.controller)==null||m.prevPage():(d=o.controller)==null||d.nextPage(),a.current&&(clearInterval(a.current),u())},u=q.useCallback(()=>{if(n&&o.controller){const l=setInterval(()=>{var p;(p=o.controller)==null||p.nextPage()},n);a.current=l}},[n,o]);return q.useEffect(()=>(u(),()=>{a.current&&clearInterval(a.current)}),[n,u]),c.jsxs(b.Carousel.Root,{innerRef:l=>{o.initialize(l)},className:ht.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[r&&c.jsx(b.Button,{variant:"tertiary",mode:t,onClick:l=>s(l,"prev"),adornment:{start:c.jsx(b.Icon,{name:i.ICONS.arrow_left})}}),c.jsx(b.Carousel.Body,{children:e}),r&&c.jsx(b.Button,{variant:"tertiary",mode:t,onClick:l=>s(l,"next"),adornment:{start:c.jsx(b.Icon,{name:i.ICONS.arrow_right})}})]})},va=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=$e();return c.jsx(b.Button,{title:"fechar tipbar",className:ht["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:c.jsx(b.Icon,{name:r.ICONS.close})}})},Bp=({children:e})=>{const{hasCarousel:t,mode:r,hasCloseBtn:n,backgroundStyle:o,showCarouselArrows:i,slideTranstionTimer:a,handleCloseTipbar:s}=$e(),u=t&&i;return c.jsx("div",{style:o,"data-hasclosebtn":n,className:ht.tipbar,children:t?c.jsxs(c.Fragment,{children:[c.jsx(qp,{mode:r,showCarouselArrows:u,slideTranstionTimer:a,children:e}),n&&c.jsx(va,{handleCloseTipbar:s,showCarouselArrows:u,mode:r})]}):c.jsxs(c.Fragment,{children:[e,n&&c.jsx(va,{handleCloseTipbar:s,mode:r})]})})},Hp=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:n,carouselProps:o}=$e(),i=c.jsx("div",{...r,className:ht["tipbar-item"],children:e});return n?c.jsx(b.Carousel.Item,{style:o.itemsStyles,children:i}):i},Zc=({className:e})=>{const{isOpen:t,slices:r}=$e();return r.length&&t?c.jsx(Bp,{children:r.map((n,o)=>{var i;return c.jsx(c.Fragment,{children:c.jsx(mt,{href:n.link,children:c.jsx(Hp,{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,s)=>c.jsx($p,{staticZone:n,type:a.type,title:a.title,description:a.description,className:e},`tipbar-slice-field-${s}`)):null})})},`tipbar-slice-${o}`)})}):null};Zc.displayName="TipBar.Root";const Jc=({className:e,...t})=>c.jsx(Op,{...t,children:c.jsx(Zc,{className:e})});Jc.displayName="TipBar";const zp={teamComponents:{AddToCart:ro,BackToTop:cd,...qf,FreightCalculation:Ap,Header:Tc,Link:Je,Media:Oe,ProductCard:Ve,TipBar:Jc},template:{pdp:Pp},utils:{EventCollector:ud,ExternalScripts:bd,LinkOrNotLink:mt,ObserverWrapper:to,SnackBarComponent:po}};exports.cms=rd;exports.contexts=Yu;exports.data=js;exports.layout=zp;
|