@soma-vertical-web/multi-lib 0.0.25 → 0.0.27
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/contexts/hooks/useOperations.d.ts +1 -0
- package/data/helpers/cart/index.d.ts +10 -0
- package/index.js +20 -20
- package/index.mjs +4504 -4444
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/constants.d.ts +1 -0
- package/types/contexts/store/cart.d.ts +1 -0
- package/types/layout/team-components/Header/index.d.ts +2 -1
- 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,41 +1,41 @@
|
|
|
1
|
-
"use strict";var Yc=Object.defineProperty;var Zc=(e,t,r)=>t in e?Yc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ut=(e,t,r)=>Zc(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),B=require("react"),Fe=require("idb-keyval"),it=require("zustand"),b=require("@soma-vertical-web/core-components"),Te=require("draft-js"),nt=require("@soma-vertical-web/foundations"),fo=require("@date-fns/tz"),_a=require("react-dom"),po=require("axios"),Un=B.createContext({}),Jc=({data:e,children:t})=>c.jsx(Un.Provider,{value:{tags:e==null?void 0:e.config},children:t}),va=()=>{const{tags:e}=B.useContext(Un),t=B.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}},ba=({gridScrollBack:e})=>{B.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},xa=B.createContext({}),eu=({children:e,gridScrollBack:t})=>{const r=B.useRef(null);return ba({gridScrollBack:t}),c.jsx(xa.Provider,{value:{sizesContainerRef:r},children:e})},tu=()=>{const e=B.useContext(xa);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),Ca=({valueInCents:e,hasFree:t,freeTaxMessage:r})=>e===0?t?r:Me(0):Me(e/100),Wn=(e,t)=>{const[r,n]=e.split(t);return{name:r.trim(),size:n?n.trim():""}},kt=(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()}},Sa=(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},ru=(e,t)=>e.replace(t,"").trim(),nu=e=>e.replace(/\//g,""),Aa=({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])??Wn(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}},Ra=e=>e?!e.offers.offers.find(({quantity:t=0})=>t>0):!1,Ea=(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)},wa=e=>e.find(t=>t.imageLabel==="10"),ja=(e,t)=>{const r=/\/ids\/(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},Ia=(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},Pa=({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},ou=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},Na=(e,t,r)=>{t&&(e?(t.getAttribute("src")||(t.src=r??""),t.play()):t.pause())},iu=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Ra,formatPriceToCurrency:Me,freightParsePrice:Ca,getAspectRatio:ou,getColorAndSizeFromSkuName:kt,getFirstImages:Pa,getProductNameWithoutSku:ru,getSKUName:Sa,getSkuInfos:Aa,getThumbImage:wa,getValidOffer:Ea,removeSlashes:nu,resizingImg:ja,setVideoPlay:Na,splitNameAndSizeFromFullName:Wn,updatedResizedImg:Ia},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?Oa(l):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:p,currency:ve.configs.currency}:{}},d=gt({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)=>gt({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,R,_,S,C,w,x;const d=o==null?void 0:o.find(I=>(m.productId??m.id)===I.productId);let f={...a,...s};if(d){const I=Ma(),$=ka(I,d);$&&(f={...f,...$}),t==="add_to_cart"&&(a||s)&&Pn({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"&&Pn({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)??kt((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((R=m.itemOffered)==null?void 0:R.skuName),ve.configs.NAME_SPLIT_SYMBOL).size;return gt({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=(w=(C=(S=d==null?void 0:d.offers)==null?void 0:S.offers)==null?void 0:C[0])==null?void 0:w.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,R,_;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:w}=i[S.id]??{};return gt({data:{...S,price:S.price/100,listPrice:S.listPrice/100},customData:{...C,...w,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}:{},...((R=n.marketingData)==null?void 0:R.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}})}},Oa=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),au=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]}:{}}:{}}},gt=({data:e,customData:t,configs:r})=>({...su(e,r==null?void 0:r.MAIN_IMAGE),...cu(e),...uu(e),...lu(e),...t}),Ta=()=>{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("_"))??[]:[]},Ma=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},ka=(e,t)=>e==null?void 0:e[t],Pn=({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)))},su=(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??Wn((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)}},mo=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,cu=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=mo(n),a=mo(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]}}},uu=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}=kt(t,ve.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:n}}},lu=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}},La=()=>{const[e,t]=Ta(),[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}},du=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:ve,findDataInPersistedData:ka,getAvailablesSizes:Oa,getCategories:au,getPageCategoryAndDepartmentFromSlug:La,getPersistedData:Ma,getProductListInfoFromHead:Ta,pushDatalayer:Le,updatePersistedData:Pn},Symbol.toStringTag,{value:"Module"})),Da=B.createContext({}),fu=({children:e,evtFunctionsConfigs:t})=>{const r=B.useRef({}),n=B.useRef(null),o=B.useRef(null),i=B.useRef({}),a=B.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(Da.Provider,{value:{sendDataLayerEvent:s,triggerSelectItemEventRef:a,promotionEventRef:r,currentLocalRef:n,itemListRef:o,cartProductsFullDataRef:i,handleSelectContent:u,handleSelectPromotionEvent:l},children:e})},ge=()=>B.useContext(Da),$a=B.createContext({}),pu=({children:e,productData:t,isKit:r,PDP_INFO:n,NAME_SPLIT_SYMBOL:o})=>{var k,P;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}=va(),v=g(Object.entries(t.clusterHighlights).map(q=>({id:q[0],name:q[1]}))),R=y.slice(1,-1).split("/"),{installments:_,price:S,listPrice:C,sizes:w,allSizesAvailable:x}=Aa({items:l,NAME_SPLIT_SYMBOL:o}),I=wa(p),$=[{label:`${n.product.description}`,value:"description",content:d},{label:`${n.product.materiais}`,value:"composition",content:f}],A=((P=kt((k=t.items)==null?void 0:k[0].name,o))==null?void 0:P.color)??t["Cores Filtráveis"][0]??"",N=()=>({commonData:{...t,sizes:w,price:S,listPrice:C,installments:_},customData:{installments:_==null?void 0:_.count,installment_value:Number(_==null?void 0:_.value).toFixed(2)}}),j=({sku:q,size:z})=>{const{commonData:G,customData:Y}=N();i({functionKey:"productEvents",data:{event:"view_item",commonData:G,customData:{...Y,...q&&{item_sku:q},...z&&{item_variant2:z}}}})};return B.useEffect(()=>{if(a.current.trigger){const{commonData:q,customData:z}=N();i({functionKey:"productEvents",data:{event:"select_item",commonData:q,customData:{...z,index:a.current.index}}}),a.current.trigger=!1}j({})},[]),c.jsx($a.Provider,{value:{productData:t,productId:s,productName:u,productReference:h,tag:v,items:l,sizes:w,allSizesAvailable:x,installments:_,price:S,listPrice:C,thumbImage:I,images:p,video:m[0],descriptionContent:$,breadcrumbList:R,isKit:r,colorName:A,handleViewItemEvent:j},children:e})},Gn=()=>{const e=B.useContext($a);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},mu={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},Pe=Promise.resolve(!1),Nn={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>Pe,addItem:()=>Pe,addSellerCode:()=>Pe,emptyCart:()=>{},removeItem:()=>Pe,setIsOpen:()=>{},shipping:()=>Pe,shippingUpdate:()=>Pe,toggleServiceToProduct:()=>Pe,updateItemQuantity:()=>Pe,insertProfileEmail:()=>Pe,setRecentlyAddedProducts:()=>{}},Vn=e=>e===0,qa=(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},Ba=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:R,referenceId:_,offerings:S,productRefId:C,skuName:w,sellingPrice:x}=e;return{availability:t,bundleItems:n,referenceId:_,productRefId:C,id:o,ean:s,uniqueId:i,itemOffered:{additionalProperty:[],brand:{name:r},categories:qa(y,h),categoriesIds:y,gtin:v,image:[{alternateName:"1",url:u}],name:l,isVariationOf:{name:l,productGroupID:g},sku:o,slug:a,skuName:w},listPrice:p,quantity:m,offerings:S,price:d,priceDefinition:f,sellingPrice:x,seller:R}},Ha=(e,t)=>{const r=e.map(n=>({id:n.id,quantity:n.quantity,seller:n.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},za=(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:[]}},Fa=(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)??""}}),On=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),hu=(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},gu=e=>{const t=e.reduce((o,i)=>{const a=Vn(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}},yu=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(Vn(r==null?void 0:r.price)?0:r.quantity),0):0,Ua=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(Ba):[],marketingData:n,messages:o,openTextField:a,paymentData:s,shippingData:u,totalizers:l}},Wa=(e,t)=>{const r=e.find(n=>n.id===t);return r?r.availability==="unavailableItemFulfillment":!1},_u=(e,t)=>{const r=e.sku,n=e.isVariantOf.hasVariant.find(o=>o.sku===r);return n?n.name.split(t)[1]:"--"},We=(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},vu=(e,t)=>{const r=new Set;return[e,...t].filter(n=>!r.has(n)&&r.add(n),r)},Ga=(e,t)=>t&&Array.isArray(t)&&t.find(n=>n.id===e)?Promise.resolve(e):Promise.resolve(!1),Va=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),Ka=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},Xa=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},Qa=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(n=>n.id===r.id)):[],Ya=async(e,t)=>e.then(r=>[...r??[],...t??[]]),Ee=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:Ua(a)})},Za=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),bu=e=>[...Array.isArray(e)?e:[e],"faststore"],xu=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:mu,addItemOrder:Ha,addNotification:Za,createItemOrder:Ba,fetchCartAPI:Ee,findItemIndex:On,findOptions:Qa,findTotalizerValue:hu,getCategories:qa,getCode:We,getQuantity:Xa,getRemoveId:Ga,getSize:_u,getTotalItems:yu,getTotalizer:gu,getValue:Va,initialState:Nn,isGift:Vn,marketingTagsBuilder:bu,mergeOptionsPromise:Ya,orderFormValues:Ua,promiseDefault:Pe,removeQuantity:za,updateItemSellerExternal:Wa,updateOrderFormPromise:Ka,updateQuantity:Fa,wishlistArray:vu},Symbol.toStringTag,{value:"Module"})),Cu=()=>{const e=async(d,f)=>Ee("/api/checkout/order-form/coupon",{body:{orderFormId:d,coupon:f}}),t=async(d,f)=>{if(f){const h=f.includes(" - ")?f.split(" - ")[0]:f,y=await Ee("/api/checkout/order-form/seller-code",{body:{orderFormId:d,sellerCode:h}},!0);return Ee("/api/checkout/order-form/attachments",{body:{orderFormId:d,sellerCode:h,sellerName:y instanceof Object&&"name"in y?y==null?void 0:y.name:""}}).then(g=>({...g,openTextField:{...(g==null?void 0:g.openTextField)??{},statusOk:(y==null?void 0:y.ativo)??!1}}))}else return Ee("/api/checkout/order-form/attachments",{body:{orderFormId:d,sellerCode:"",sellerName:""}})},r=async(d,f,h)=>Ee("/api/checkout/order-form/items",{body:{orderFormId:d,orderItems:Ha(f,h)}}),n=async(d,f,h,y)=>Ee("/api/checkout/order-form/offerings",{body:{id:f,itemIndex:h,orderFormId:d,remove:y}}),o=async d=>Ee("/api/checkout/order-form/items/remove-all",{body:{orderFormId:d}}),i=async(d,f="low")=>Ee("/api/checkout/order-form",{priority:f,body:{orderFormId:d??""}}),a=async(d,f)=>Ee("/api/checkout/order-form/profile",{body:{orderFormId:d,email:f}}),s=async(d,f,h)=>{const y=za(f,h);return Ee("/api/checkout/order-form/items/update",{body:{orderItems:y.updateItems,orderFormId:d}})},u=async(d,f,h)=>Ee("/api/checkout/order-form/shipping",{body:{orderFormId:d,country:h,postalCode:f}}),l=async(d,f,h)=>Ee("/api/checkout/order-form/shipping/update",{body:{orderFormId:d,options:f,selectedAddresses:h}}),p=async(d,f,h,y)=>{const g=Fa(f,h,y);return Ee("/api/checkout/order-form/items/update",{body:{orderFormId:d,orderItems:g}})};return{addCoupon:e,addItem:r,addSellerCode:t,giftItem:n,emptyCart:o,getOrderForm:i,insertProfileEmail:a,removeItem:s,shipping:u,shippingUpdate:l,updateItemQuantity:async(d,f,h,y,g)=>p(d,f,h,y).then(v=>v&&Array.isArray(v.items)?Wa(v.items,h)?p(d,f,h,g):v:!1)}},Tn="soma::cart",tt="soma::options",Ve=it.create((e,t)=>{const r=Cu(),n=async(o,i,a)=>{e({loading:!0});const s=await Ka(o);if(typeof s!="boolean"){e({...s});const u=await Ya(Fe.get(tt),a);return Fe.set(tt,u),Va(s,i).finally(()=>e({loading:!1,options:u}))}return Pe};if(typeof window<"u"){const o=async i=>{if(i){const a=await Fe.get(tt).then(l=>Qa(l,i.items));Fe.set(Tn,i),Fe.set(tt,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 Fe.get(Tn).then(i=>r.getOrderForm(i?i.id:"").then(o)),{...Nn,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"),emptyCart:()=>{n(()=>r.emptyCart(t().id))},removeItem:async i=>{const a=await n(()=>r.removeItem(t().id,t().items,i),"items");return Ga(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 Nn}),Su=()=>Ve(e=>e),Ja=it.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(n=>Za(n,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(n=>n.id!==t)}))}})),es=()=>Ja(e=>e.notifications),ts=()=>Ja(e=>e.actions),Au=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:tt,KEY_INDEXED_STORE:Tn,useCartStore:Ve,useGetCartStoreState:Su,useGetNotificationActions:ts,useGetNotificationsStore:es},Symbol.toStringTag,{value:"Module"})),Ru=6e3,rs=B.createContext({}),ns=({children:e,...t})=>{const{items:r}=Ve(),[n,o]=B.useState([]),i=B.useRef(null),a=B.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 B.useEffect(()=>{n.length&&(clearTimeout(i.current??0),i.current=setTimeout(()=>{o([])},Ru))},[n]),c.jsx(rs.Provider,{value:B.useMemo(()=>({...t,setRecentlyAdded:o,recentlyAddedProducts:a}),[t,o,a]),children:e})},at=()=>{const e=B.useContext(rs);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class os{constructor(){Ut(this,"events",{});Ut(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 is=B.createContext({}),Eu=({children:e,headerConfigs:t,pathname:r,...n})=>{const[o,i]=B.useState(!0),a=r==="/",s=B.useRef(new os),u=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},l=u(a),p=B.useRef(l);return B.useEffect(()=>{const m=()=>{const d=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,f=window.innerWidth<1024||!!d.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);o!==f&&i(f)};return m(),window.addEventListener("resize",m,{passive:!0}),()=>window.removeEventListener("resize",m)},[o]),B.useEffect(()=>{const m=u(a);s.current.publish("header:change_variant",m.headerVariant),s.current.publish("header:change_position",m.position),p.current=m},[a]),c.jsx(is.Provider,{value:{isMobile:o,mediatorRef:s,currentHeaderConfigsRef:p,...n},children:c.jsx(ns,{children:e})})},ke=()=>B.useContext(is),as=B.createContext({}),wu=({children:e,...t})=>c.jsx(as.Provider,{value:{...t},children:e}),Ne=()=>B.useContext(as),Be=(e,t)=>it.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}}}),ot={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},st=new Set,ju=()=>{st.forEach(e=>{e()})},ss=it.create((e,t)=>{const r=()=>e({value:ot.category});return st.add(r),{value:ot.category,actions:{reset:r,setValue:n=>e(()=>({value:n})),updateValue:n=>{t().value!==n&&e({value:n})}}}}),Lt=()=>ss(e=>e.value),De=()=>ss(e=>e.actions),cs=Be(ot.menuMobileIsOpen,st),Kn=()=>cs(e=>e.value),He=()=>cs(e=>e.actions),us=Be(ot.searchModalIsOpen,st),Iu=()=>us(e=>e.value),Xn=()=>us(e=>e.actions),ls=Be(ot.userMenuIsOpen,st),Pu=()=>ls(e=>e.value),Qn=()=>ls(e=>e.actions),Nu=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:ju,useActionsHeaderCategory:De,useActionsMenuMobileIsOpen:He,useActionsSearchModalIsOpen:Xn,useActionsUserMenuIsOpen:Qn,useGetHeaderCategoryStore:Lt,useGetMenuMobileIsOpen:Kn,useGetSearchModalIsOpen:Iu,useGetUserMenuIsOpen:Pu},Symbol.toStringTag,{value:"Module"})),Ke={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},Qe=new Set,Ou=()=>{Qe.forEach(e=>{e()})},ds=it.create(e=>{const t=()=>e({value:Ke.selectedSkuInfo});return Qe.add(t),{value:Ke.selectedSkuInfo,actions:{setValue:r=>e(n=>({value:{...n,...r}})),reset:t}}}),Tu=()=>ds(e=>e.value),Mu=()=>ds(e=>e.actions),fs=Be(Ke.openLetMeKnow,Qe),ku=()=>fs(e=>e.value),Lu=()=>fs(e=>e.actions),ps=Be(Ke.showNotify,Qe),Du=()=>ps(e=>e.value),$u=()=>ps(e=>e.actions),ms=Be(Ke.showBottomNavigation,Qe),qu=()=>ms(e=>e.value),Bu=()=>ms(e=>e.actions),hs=Be(Ke.openMeasurements,Qe),Hu=()=>hs(e=>e.value),zu=()=>hs(e=>e.actions),Fu=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:Ou,useActionsPDPOpenLetMeKnow:Lu,useActionsPDPOpenMeasurements:zu,useActionsPDPSelectedSkuInfo:Mu,useActionsPDPShowBottomNavigation:Bu,useActionsPDPShowNotify:$u,useGetPDPOpenLetMeKnow:ku,useGetPDPOpenMeasurements:Hu,useGetPDPSelectedSkuInfo:Tu,useGetPDPShowBottomNavigation:qu,useGetPDPShowNotify:Du},Symbol.toStringTag,{value:"Module"})),gs=B.createContext({}),Uu=({children:e,headerData:t,...r})=>{var u,l;const n=B.useRef(null),o=B.useRef(null),i=B.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)}),B.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(gs.Provider,{value:{headerData:t,structureRef:o,rootRef:n,tipbarRef:i,...r},children:e})},xe=()=>B.useContext(gs),ys=B.createContext({}),_s=({children:e})=>{const t=B.useRef(null),r=B.useRef(null),n=Kn(),o=B.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 B.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]),B.useEffect(()=>{r.current=document.body},[]),c.jsx(ys.Provider,{value:{bodyRef:t,handleCloseSubMenu:o,documentBodyRef:r},children:e})},ct=()=>B.useContext(ys),Wu=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Gu=(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?Wu(e==null?void 0:e.parentElement):0;return{left:n.left+n.width/2-(o.width+i),top:n.top+n.height+r}},vs=B.createContext({}),bs=({children:e,delay:t=600,gap:r=20,...n})=>{const[o,i]=B.useState(!1),a=B.useRef(null),[s,u]=B.useState(!1),[l,p]=B.useState({left:0,top:0}),m=B.useCallback(()=>{u(!0),typeof window<"u"&&(a.current=window.setTimeout(()=>{i(!1),u(!1)},t))},[u,i,t]);return B.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}=Gu(f,d,r??0);p({left:h,top:y}),u(!1)}},[r,o]),c.jsx(vs.Provider,{value:B.useMemo(()=>({...n,...l,handleClose:m,isLeaving:s,isOpen:o,setIsOpen:i,setIsLeaving:u}),[n,l,m,s,o,i,u]),children:e})},ze=()=>{const e=B.useContext(vs);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},xs=B.createContext({}),Vu=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const n=Ve(),{setRecentlyAdded:o}=at(),i=es(),{addNotification:a,removeNotification:s}=ts(),{addCoupon:u,addItem:l,addSellerCode:p,emptyCart:m,isOpen:d,removeItem:f,shipping:h,shippingUpdate:y,toggleServiceToProduct:g,updateItemQuantity:v}=n,R=B.useCallback(async(j,k)=>(k==="coupon"?u(j):p(j)).then(q=>{if(typeof q!="boolean"&&q instanceof Object){if(k==="seller"&&"value"in q){const{statusOk:z,value:G}=q,Y=String(G??"").split(" - ");return We((Y==null?void 0:Y[0])??"",j,!!z)}return We(String(q.coupon),j,!0)}return We("","")}).catch(()=>Promise.resolve({code:400})),[u,p]),_=B.useCallback((j,k,P)=>{const{id:q}=j;v(q,k,P)},[v]),S=B.useCallback((j,k,P=!1)=>{if(!j)return;const{id:q}=j,z=On(n.items,q);if(z!==-1&&!P){const G=Number(n.items[z].quantity),Y=n.items[z]?G+1:1;_(j,Y,k)}else l({id:q,quantity:(j==null?void 0:j.quantity)??1,seller:j.seller});d||o(G=>[...G,j])},[l,_,n.items,d,o]),C=B.useCallback((j,k)=>{if(!j||!Array.isArray(j))return;o(q=>[...q,...j]);const P=j.map(q=>{const{id:z,quantity:G,seller:Y}=q,V=On(n.items,z),F=Xa(G??1,V);return{id:z,quantity:F,seller:Y}});l(P,k)},[l,n.items,o]),w=B.useCallback(async(j,k,P)=>j?f(j).then(()=>(a(k??`${t}`,P),We(j,j))):Promise.resolve(We("","Product id required")),[a,f]),x=B.useCallback(()=>{n.items.length>0&&m()},[m,n.items]),I=B.useCallback((j,k="BRA")=>h(j,k),[h]),$=B.useCallback(j=>{j&&y(j)},[y]),A=B.useCallback(async(j,k,P)=>{const q=n.items.findIndex(G=>G.id===j);return n.items[q]&&q>=0?g(k,q,P??!1):!1},[n.items,g]),N=B.useCallback(async(j,k)=>v(j,k).then(P=>{if(Array.isArray(P)){const q=P.find(z=>z.id===j);if(q&&(q==null?void 0:q.quantity)<k)return String(q.quantity)}return!1}),[v]);return c.jsx(xs.Provider,{value:B.useMemo(()=>({...r,addCouponSeller:R,addToCart:S,addItemsToCart:C,cartStore:n,notifications:i,clearCart:x,addNotification:a,isOpen:n.isOpen,removeNotification:s,removeToCart:w,setIsOpen:n.setIsOpen,shipping:I,shippingUpdateOption:$,toggleGiftItemCart:A,updateItemQuantity:N}),[r,R,S,C,i,x,a,n,s,w,I,$,A,N]),children:e})},Ye=()=>{const e=B.useContext(xs);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},Ku={contexts:{addToCart:{hook:ze,provider:bs},cart:{hook:Ye,provider:Vu},cms:{FlagsAndTags:{context:Un,hook:va,provider:Jc}},events:{hook:ge,provider:fu},global:{hook:ke,provider:Eu,mediator:os},header:{hook:xe,provider:Uu},menuMobile:{hook:ct,provider:_s},next:{hook:Ne,provider:wu},pdp:{provider:eu,hook:tu},pdpdata:{hook:Gn,provider:pu},ui:{hook:at,provider:ns}},hooks:{useBackPDC:ba},stores:{cart:Au,header:Nu,pdp:Fu}};function Cs(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 Ss(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 Xu=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function Qu(e,t=1e3){let r=!1;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>{r=!1},t))}}function Yu(e,t=1e3){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}const As=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,rt=(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),Zu=Object.freeze(Object.defineProperty({__proto__:null,debounce:Yu,getCookie:Cs,getDaysHoursMinutesSeconds:rt,getMilliSeconds:As,removeAccentsAndReplaceSpaces:Xu,setCookie:Ss,throttle:Qu},Symbol.toStringTag,{value:"Module"})),Ju={cart:xu,events:du,product:iu,utils:Zu},Rs={helpers:Ju};var Es=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Dt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function el(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 Mn={exports:{}},Re={};Re._=Re._interop_require_default=tl;function tl(e){return e&&e.__esModule?e:{default:e}}var yt={exports:{}},Wt={},ho;function ws(){return ho||(ho=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}}(Wt)),Wt}var Gt={},Xe={};function js(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(js=function(n){return n?r:t})(e)}Xe._=Xe._interop_require_wildcard=rl;function rl(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=js(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 go;function Is(){return go||(go=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=Xe._(ws()),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)}}(Gt)),Gt}var Vt={},yo;function nl(){return yo||(yo=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}}(Vt)),Vt}var Kt={},_o;function $t(){return _o||(_o=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,C){for(var w in C)Object.defineProperty(S,w,{enumerable:!0,get:C[w]})}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 R},stringifyError:function(){return _}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(S){let C=!1,w;return function(){for(var x=arguments.length,I=new Array(x),$=0;$<x;$++)I[$]=arguments[$];return C||(C=!0,w=S(...I)),w}}const o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=S=>o.test(S);function a(){const{protocol:S,hostname:C,port:w}=window.location;return S+"//"+C+(w?":"+w:"")}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 w;if((w=S.prototype)!=null&&w.getInitialProps){const $='"'+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($)}}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 $='"'+u(S)+'.getInitialProps()" should resolve to an object. But found "'+I+'" instead.';throw new Error($)}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,w){super(),this.message="Failed to load static file for page: "+C+" "+w}}class R 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})}}(Kt)),Kt}var _t={exports:{}},Xt={},vo;function Ps(){return vo||(vo=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(/\/$/,"")||"/"}}(Xt)),Xt}var Qt={},bo;function Yn(){return bo||(bo=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:""}}}(Qt)),Qt}var xo;function qt(){return xo||(xo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const r=Ps(),n=Yn(),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)}(_t,_t.exports)),_t.exports}var Yt={},vt={exports:{}},Zt={},Co;function Ns(){return Co||(Co=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=Yn();function r(n,o){if(typeof n!="string")return!1;const{pathname:i}=(0,t.parsePath)(n);return i===o||i.startsWith(o+"/")}}(Zt)),Zt}var So;function ol(){return So||(So=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});const r=Ns(),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)}(vt,vt.exports)),vt.exports}var Ao;function Os(){return Ao||(Ao=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=$t(),r=ol();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}}}(Yt)),Yt}var Jt={},er={},Ro;function il(){return Ro||(Ro=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()}}(er)),er}var tr={},Eo;function al(){return Eo||(Eo=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)}}(tr)),tr}var wo;function sl(){return wo||(wo=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=il(),n=al()}(Jt)),Jt}var rr={},nr={},jo;function cl(){return jo||(jo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=$t();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}}}(nr)),nr}var or={},ir={},ar={},sr={},Io;function ul(){return Io||(Io=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}}(sr)),sr}var cr={},Po;function ll(){return Po||(Po=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isGroupSegment",{enumerable:!0,get:function(){return t}});function t(r){return r[0]==="("&&r.endsWith(")")}}(cr)),cr}var No;function dl(){return No||(No=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=ul(),n=ll();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}}(ar)),ar}var Oo;function fl(){return Oo||(Oo=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=dl(),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}}}(ir)),ir}var ur={},To;function pl(){return To||(To=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}}(ur)),ur}var Mo;function ml(){return Mo||(Mo=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=fl(),n=pl(),o=Ps(),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 R=1;return{parameterizedRoute:g.map(_=>{const S=r.INTERCEPTION_ROUTE_MARKERS.find(w=>_.startsWith(w)),C=_.match(/\[((?:\[.*\])|.+)\]/);if(S&&C){const{key:w,optional:x,repeat:I}=s(C[1]);return v[w]={pos:R++,repeat:I,optional:x},"/"+(0,n.escapeStringRegexp)(S)+"([^/]+?)"}else if(C){const{key:w,repeat:x,optional:I}=s(C[1]);return v[w]={pos:R++,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:R,keyPrefix:_}=y;const{key:S,optional:C,repeat:w}=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()),_?R[x]=""+_+S:R[x]=""+S,w?C?"(?:/(?<"+x+">.+?))?":"/(?<"+x+">.+?)":"/(?<"+x+">[^/]+?)"}function d(y,g){const v=(0,o.removeTrailingSlash)(y).slice(1).split("/"),R=p(),_={};return{namedParameterizedRoute:v.map(S=>{const C=r.INTERCEPTION_ROUTE_MARKERS.some(x=>S.startsWith(x)),w=S.match(/\[((?:\[.*\])|.+)\]/);return C&&w?m({getSafeRouteKey:R,segment:w[1],routeKeys:_,keyPrefix:g?a:void 0}):w?m({getSafeRouteKey:R,segment:w[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:R=!0}=g;if(v==="/")return{namedRegex:"^/"+(R?".*":"")+"$"};const{namedParameterizedRoute:_}=d(y,!1);let S=R?"(?:(/.*)?)":"";return{namedRegex:"^"+_+S+"$"}}}(or)),or}var ko;function hl(){return ko||(ko=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=cl(),r=ml();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}}}(rr)),rr}var Lo;function gl(){return Lo||(Lo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return p}});const r=ws(),n=Is(),o=nl(),i=$t(),a=qt(),s=Os(),u=sl(),l=hl();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 w=(0,r.searchParamsToUrlQuery)(_.searchParams),{result:x,params:I}=(0,l.interpolateAs)(_.pathname,_.pathname,w);x&&(S=(0,n.formatWithValidation)({pathname:x,hash:_.hash,query:(0,o.omit)(w,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)}(yt,yt.exports)),yt.exports}var bt={exports:{}},lr={},dr={},Do;function Ts(){return Do||(Do=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=Yn();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}}(dr)),dr}var $o;function yl(){return $o||($o=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=Ts(),r=Ns();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)}}(lr)),lr}var qo;function _l(){return qo||(qo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=qt(),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)(yl().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)}(bt,bt.exports)),bt.exports}var fr={},Bo;function Ms(){return Bo||(Bo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=Re._(B).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(fr)),fr}var pr={},Ho;function vl(){return Ho||(Ho=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=Re._(B);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")}(pr)),pr}var xt={exports:{}},Ct={exports:{}},zo;function ks(){return zo||(zo=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)}(Ct,Ct.exports)),Ct.exports}var Fo;function bl(){return Fo||(Fo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});const r=B,n=ks(),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 R=h.get(v.target),_=v.isIntersecting||v.intersectionRatio>0;R&&_&&R(_)})},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(R=>R.root===f.root&&R.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),R=(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,w=>w&&g(w),{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[R,y,_]}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(xt,xt.exports)),xt.exports}var St={exports:{}},At={exports:{}},mr={},Uo;function xl(){return Uo||(Uo=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}}}(mr)),mr}var Wo;function Cl(){return Wo||(Wo=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?xl().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)}(At,At.exports)),At.exports}var Rt={exports:{}},hr={},Go;function Sl(){return Go||(Go=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}}}}(hr)),hr}var Vo;function Al(){return Vo||(Vo=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 Sl().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)}(Rt,Rt.exports)),Rt.exports}var Ko;function Rl(){return Ko||(Ko=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}});const r=qt(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i,a,s,u){if(process.env.__NEXT_I18N_SUPPORT){const l=Cl().normalizeLocalePath,p=Al().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)}(St,St.exports)),St.exports}var Et={exports:{}},Xo;function El(){return Xo||(Xo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return i}});const r=Ts(),n=qt(),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)}(Et,Et.exports)),Et.exports}var wt={exports:{}},Qo;function wl(){return Qo||(Qo=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)}(wt,wt.exports)),wt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return C}});const n=Re._(B),o=gl(),i=Os(),a=Is(),s=$t(),u=_l(),l=Ms(),p=vl(),m=bl(),d=Rl(),f=El(),h=wl(),y=new Set;function g(w,x,I,$,A,N){if(typeof window>"u"||!N&&!(0,i.isLocalURL)(x))return;if(!$.bypassPrefetchedCheck){const k=typeof $.locale<"u"?$.locale:"locale"in w?w.locale:void 0,P=x+"%"+I+"%"+k;if(y.has(P))return;y.add(P)}const j=N?w.prefetch(x,A):w.prefetch(x,I,$);Promise.resolve(j).catch(k=>{if(process.env.NODE_ENV!=="production")throw k})}function v(w){const I=w.currentTarget.getAttribute("target");return I&&I!=="_self"||w.metaKey||w.ctrlKey||w.shiftKey||w.altKey||w.nativeEvent&&w.nativeEvent.which===2}function R(w,x,I,$,A,N,j,k,P,q){const{nodeName:z}=w.currentTarget;if(z.toUpperCase()==="A"&&(v(w)||!P&&!(0,i.isLocalURL)(I)))return;w.preventDefault();const Y=()=>{const V=j??!0;"beforePopState"in x?x[A?"replace":"push"](I,$,{shallow:N,locale:k,scroll:V}):x[A?"replace":"push"]($||I,{forceOptimisticNavigation:!q,scroll:V})};P?n.default.startTransition(Y):Y()}function _(w){return typeof w=="string"?w:(0,a.formatUrl)(w)}const C=n.default.forwardRef(function(x,I){let $;const{href:A,as:N,children:j,prefetch:k=null,passHref:P,replace:q,shallow:z,scroll:G,locale:Y,onClick:V,onMouseEnter:F,onTouchStart:oe,legacyBehavior:E=!1,...T}=x;$=j,E&&(typeof $=="string"||typeof $=="number")&&($=n.default.createElement("a",null,$));const D=n.default.useContext(l.RouterContext),K=n.default.useContext(p.AppRouterContext),te=D??K,Z=!D,M=k!==!1,J=k===null?h.PrefetchKind.AUTO:h.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let ie=function(ne){return new Error("Failed prop type: The prop `"+ne.key+"` expects a "+ne.expected+" in `<Link>`, but got `"+ne.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 ae=E?re&&typeof re=="object"&&re.ref:I,[ce,ue,se]=(0,m.useIntersection)({rootMargin:"200px"}),H=n.default.useCallback(ie=>{(O.current!==ee||L.current!==Q)&&(se(),O.current=ee,L.current=Q),ce(ie),ae&&(typeof ae=="function"?ae(ie):typeof ae=="object"&&(ae.current=ie))},[ee,ae,Q,se,ce]);n.default.useEffect(()=>{process.env.NODE_ENV==="production"&&te&&(!ue||!M||g(te,Q,ee,{locale:Y},{kind:J},Z))},[ee,Q,ue,Y,M,D==null?void 0:D.locale,te,Z,J]);const he={ref:H,onClick(ie){if(process.env.NODE_ENV!=="production"&&!ie)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!E&&typeof V=="function"&&V(ie),E&&re.props&&typeof re.props.onClick=="function"&&re.props.onClick(ie),te&&(ie.defaultPrevented||R(ie,te,Q,ee,q,z,G,Y,Z,M))},onMouseEnter(ie){!E&&typeof F=="function"&&F(ie),E&&re.props&&typeof re.props.onMouseEnter=="function"&&re.props.onMouseEnter(ie),te&&((!M||process.env.NODE_ENV==="development")&&Z||g(te,Q,ee,{locale:Y,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))},onTouchStart(ie){!E&&typeof oe=="function"&&oe(ie),E&&re.props&&typeof re.props.onTouchStart=="function"&&re.props.onTouchStart(ie),te&&(!M&&Z||g(te,Q,ee,{locale:Y,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))}};if((0,s.isAbsoluteUrl)(ee))he.href=ee;else if(!E||P||re.type==="a"&&!("href"in re.props)){const ie=typeof Y<"u"?Y:D==null?void 0:D.locale,me=(D==null?void 0:D.isLocaleDomain)&&(0,d.getDomainLocale)(ee,ie,D==null?void 0:D.locales,D==null?void 0:D.domainLocales);he.href=me||(0,f.addBasePath)((0,u.addLocale)(ee,ie,D==null?void 0:D.defaultLocale))}return E?n.default.cloneElement(re,he):n.default.createElement("a",{...T,...he},$)});(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)})(Mn,Mn.exports);var jl=Mn.exports,Il=jl;const we=Dt(Il),Pl=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},Nl=(e,t,r)=>{e.findEntityRanges(n=>{const o=n.getEntity();return o===null?!1:r.getEntity(o).getType()==="LINK"},t)},kn=e=>{const t=new Te.CompositeDecorator([{strategy:Nl,component:we}]),r=Te.convertFromRaw(e);return Te.EditorState.createWithContent(r,t)},Ol=e=>Te.convertFromRaw(e),Ln=Te.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),Tl=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:kn,EXTENDED_BLOCK_RENDER_MAP:Ln,GET_CONTENT_STATE:Ol,convertDraftToHTML:Pl},Symbol.toStringTag,{value:"Module"})),Mt={"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"},Ml=({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(Mt["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(Mt["responsive-mobile-flex"],"utils-column-modifier"),children:c.jsx(r,{data:(s==null?void 0:s.sections)??[]})})]})},Ue=e=>({centro:"center",esquerda:"start",direita:"end"})[e],kl=({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:Ln,editorState:t!=null&&t.textStructureReduced?kn(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:Ln,editorState:t.textStructure?kn(JSON.parse(t.textStructure)):Te.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):c.jsx(c.Fragment,{})]}),Ll={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},Dl="_textContentWrapper_1bigo_5",$l="_textContentSection_1bigo_13",Dn={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:Dl,textContentSection:$l},ql="_link_w24h0_1",Bl="_wrapper_w24h0_98",Hl="_text_w24h0_106",gr={link:ql,wrapper:Bl,text:Hl},Ze=({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:nt.SizesSmallExtended,property:a,fallback:"medium"}),d=b.helpers.ValidateProp({fieldTypes:nt.Mode,property:i,fallback:"default"});return c.jsx(we,{...p,className:b.helpers.classNameConcat(gr.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:gr.wrapper,onClick:u,children:[t==null?void 0:t.start,c.jsx("p",{className:gr.text,"data-size":m,children:e}),t==null?void 0:t.end]})})},Zn=({data:e,ICONS:t})=>{var o;const[r,n]=B.useState(!1);return c.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:Ue(e.textStructureAlignment),alignItems:Ue(e.textStructureAlignment)},columnWrapper:{alignContent:Ue(e.textStructureAlignment),alignItems:Ue(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:Dn.textContentWrapper,style:{alignItems:Ue(e.textStructureAlignment)},children:[c.jsx(b.TextStructure.DivWrapper,{style:{textAlign:Ue(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:Ll["draftjs-text-modifier"],children:e.textStructureReduced?c.jsx(kl,{content:e,expanded:r}):c.jsx(c.Fragment,{})}),e.textStructureButtonLabel?c.jsx(Ze,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:Dn["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,{})]})})},zl=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],Yo=e=>({centro:"center",esquerda:"start",direita:"end"})[e],Fl="_image_lypfr_1",Ul={image:Fl},Wl=({alt:e,className:t,objectFit:r,...n})=>{const{nextimage:o}=Ne();return c.jsx(o,{quality:90,...n,alt:e??"",className:b.helpers.classNameConcat(Ul.image,t),"data-object-fit":r??"cover"})},Gl=({videoRef:e,...t})=>c.jsx("video",{...t,ref:e,children:c.jsx("track",{kind:"captions"})}),Oe={Image:Wl,Video:Gl},$n=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...n})=>{const[o,i]=B.useState(As(new fo.TZDate(Date.now(),r),new fo.TZDate(e,r))),[a,s]=B.useState(!1);B.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=rt(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:rt(o,"hours")}),c.jsx(b.Timer.Separator,{}),c.jsx(b.Timer.Digit,{label:"min",value:rt(o,"minutes")}),c.jsx(b.Timer.Separator,{}),c.jsx(b.Timer.Digit,{label:"segs",value:rt(o),suppressHydrationWarning:!0})]}):c.jsx(c.Fragment,{})},Zo={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},Jo=({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:R,textStructure:_,textStructureReduced:S}=e.banner,C=(u==null?void 0:u.trim())||(s==null?void 0:s.trim())||null,{nextimage:w}=Ne();return c.jsxs(b.Banner.Container,{...i,children:[c.jsxs(b.Banner.ImageWrapper,{className:Zo["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(w,{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,{...zl(d??"centro"),className:Zo["content-modifier"],style:{textAlign:Yo(f)},children:c.jsxs(b.Utils.Column,{gap:"16px",alignItems:Yo(f),children:[h&&y==="timer-first"&&c.jsx($n,{mode:g??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:R?new Date(R):new Date}),c.jsx(Zn,{data:e.banner,ICONS:o}),h&&y!=="timer-first"&&c.jsx($n,{mode:g??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:R?new Date(R):new Date})]})}):c.jsx(c.Fragment,{})]})},Vl={"observer-wrapper":"_observer-wrapper_r43gk_1"};function Kl(e,t,r){const[n,o]=B.useState(!1),{threshold:i}=r||{};return B.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 Jn=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:n,stopOnIntersection:o=!0,className:i,...a})=>{const s=B.useRef(null),u=Kl(s,o,r),{sendDataLayerEvent:l}=ge();return B.useEffect(()=>{u&&(typeof n=="function"&&n(),t&&l({...t}))},[u]),c.jsx("div",{...a,ref:s,className:b.helpers.classNameConcat(Vl["observer-wrapper"],i),children:e})},Ls=({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=B.useRef(null),f=B.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("&"),R=v==null?void 0:v.filter(S=>S.includes("loc")||S.includes("signature")||S.includes("user_id")),_=R==null?void 0:R.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(Jn,{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(Jo,{data:e,videoUrl:f,priority:r,videoRef:d,...o})}):c.jsx(Jo,{data:e,videoUrl:f,priority:r,videoRef:d,...o})})},Ds=e=>c.jsx(Ls,{...e}),Xl={Banner:Ds},et={"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"},Ql=({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(et["carousel-modifier"],"common-section"),children:[n==="medium"?c.jsxs(b.TextStructure.Root,{children:[c.jsx(b.TextStructure.DivWrapper,{className:et["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:et["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:et["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:et["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,{})]})})},Yl=({data:e,ICONS:t})=>c.jsx("div",{className:b.helpers.classNameConcat(Dn.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:c.jsx(Zn,{data:e,ICONS:t})}),Zl={Banner:Xl,BannerSection:Ls,BennefitsBarSection:Ql,DataScreening:Ml,SingleBannerSection:Ds,TextContentSection:Yl,TextContent:Zn},Jl={Components:Zl,helpers:Tl},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"},$s=({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})})})]});$s.displayName="AddToCart.Card.Name";const qs=({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")})})})})};qs.displayName="AddToCart.Card.PriceQuantity";const ed="_skeleton_12b79_1",td={skeleton:ed},rd=({style:e})=>c.jsx("div",{style:e,className:td.skeleton}),Bs=({className:e,productGroupID:t,size:r,texture:n,...o})=>{const{CONSTANTS:{TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a}}=ze(),[s,u]=B.useState(n??"");return B.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(rd,{})})}),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})]})]})};Bs.displayName="AddToCart.Card.StyleSize";const{helpers:nd}=Rs,Hs=({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}}=ze(),{size:d}=nd.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($s,{brand:i.name,name:o}),c.jsx(qs,{price:l,listPrice:p,quantity:u,productId:t.id}),c.jsx(Bs,{size:d,texture:r,productGroupID:s})]})};Hs.displayName="AddToCart.Card.Content";const zs=({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});zs.displayName="AddToCart.Card";const Fs=({className:e,item:t,texture:r,thumbnail:n,...o})=>{const{itemOffered:{image:[i]}}=t,a=Ia(i.url,{width:200,height:300});return c.jsxs("div",{...o,className:b.helpers.classNameConcat(je["add-to-cart--card"],e),children:[c.jsx(zs,{image:{alternateName:i.alternateName||"Produto",url:a||""},thumbnail:n}),!n&&c.jsx(Hs,{item:t,texture:r})]})};Fs.displayName="AddToCart.Card";const Us=({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(qe.Footer,{})]});Us.displayName="AddToCart.Layout.Content";const Ws=({className:e,...t})=>{var f,h;const{isMobile:r,handleClose:n,CONSTANTS:{ADD_TO_CART:o}}=ze(),{cartStore:{totalizers:i},setIsOpen:a}=Ye(),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})]})};Ws.displayName="AddToCart.Layout.Footer";const Gs=({children:e,className:t,thumbnail:r=!1,...n})=>{const{cartStore:{options:o}}=Ye(),{recentlyAddedProducts:i}=at(),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(qe.Card,{item:s,thumbnail:r,texture:u},s.itemOffered.sku)}),e]})};Gs.displayName="AddToCart.Layout.Items";const Vs=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:n}=ze(),{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})]})};Vs.displayName="AddToCart.Modal";const od=({children:e})=>{const{count:t,handleClose:r,setIsOpen:n}=ze(),o=B.useRef(t);return B.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})},Ks=({children:e,component:t,CONSTANTS:r,...n})=>{const{recentlyAddedProducts:o}=at(),{isMobile:i}=ke(),a=o.length>3?4:o.length;return c.jsx(bs,{...n,count:a,isMobile:i,CONSTANTS:r,children:c.jsx(od,{children:i?c.jsxs(c.Fragment,{children:[c.jsx(qe.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):c.jsx(qe.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};Ks.displayName="AddToCart.Root";const Xs=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:o,left:i,isLeaving:a,target:s,isOpen:u,top:l}=ze();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})})};Xs.displayName="AddToCart.Tooltip";const qe={Card:Fs,Content:Us,Footer:Ws,Items:Gs,Modal:Vs,Root:Ks,Tooltip:Xs},eo=({title:e,...t})=>{const{recentlyAddedProducts:r}=at(),{isMobile:n}=ke(),o=r.length>3?4:r.length,i=r.length>(o??1),a=r.length>1;return c.jsx(qe.Root,{isMobile:n,count:r.length,component:c.jsx(qe.Content,{title:e,children:c.jsx(qe.Items,{thumbnail:a,children:i&&c.jsx(b.Badge.Count,{count:r.length-o,size:"medium",variant:"secondary"})})}),...t})};eo.displayName="AddToCart";const ei={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},id=({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(ei["card-modifier"],t),style:{...i,padding:0},children:c.jsxs("button",{className:ei["backtotop-btn"],onClick:p,style:{...l},"data-orientation":n,children:[r,e]})})},ad=({page:e,data:t})=>{const{pathname:r}=Ne(),n=B.useRef(null),{sendDataLayerEvent:o,currentLocalRef:i,itemListRef:a,promotionEventRef:s}=ge();return B.useEffect(()=>{const u=Cs("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}}}),Ss("login_event","",{expires:p})}},[]),B.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}=La(),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 qn={exports:{}};function sd(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 yr={},_r={},ti;function cd(){return ti||(ti=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return n}});const n=Re._(B).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="LoadableContext")}(_r)),_r}var ri;function ud(){return ri||(ri=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});const r=Re._(B),n=cd();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 R(){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(R),!s&&typeof window<"u"){const C=g.webpack&&typeof sd.resolveWeak=="function"?g.webpack():g.modules;C&&a.push(w=>{for(const x of C)if(w.includes(x))return R()})}function _(){R();const C=r.default.useContext(n.LoadableContext);C&&Array.isArray(g.modules)&&g.modules.forEach(w=>{C(w)})}function S(C,w){_();const x=r.default.useSyncExternalStore(v.subscribe,v.getCurrentValue,v.getCurrentValue);return r.default.useImperativeHandle(w,()=>({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=()=>R(),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}(yr)),yr}(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=Re,o=n._(B),i=n._(ud()),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:R,pastDelay:_}=g;if(!_)return null;if(process.env.NODE_ENV!=="production"){if(R)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)})(qn,qn.exports);var ld=qn.exports,dd=ld;const to=Dt(dd);var Bn={exports:{}},vr={},ni;function Qs(){return ni||(ni=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=Re._(B).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="HeadManagerContext")}(vr)),vr}var jt={exports:{}},oi;function fd(){return oi||(oi=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 R=d[g];if(i(R,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 R;(R=y.parentNode)==null||R.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,R=f.length;v<R;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)}(jt,jt.exports)),jt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(C,w){for(var x in w)Object.defineProperty(C,x,{enumerable:!0,get:w[x]})}r(t,{handleClientScriptLoad:function(){return y},initScriptLoader:function(){return R},default:function(){return S}});const n=Re,o=Xe,i=n._(_a),a=o._(B),s=Qs(),u=fd(),l=ks(),p=new Map,m=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],f=C=>{if(i.default.preinit){C.forEach(w=>{i.default.preinit(w,{as:"style"})});return}if(typeof window<"u"){let w=document.head;C.forEach(x=>{let I=document.createElement("link");I.type="text/css",I.rel="stylesheet",I.href=x,w.appendChild(I)})}},h=C=>{const{src:w,id:x,onLoad:I=()=>{},onReady:$=null,dangerouslySetInnerHTML:A,children:N="",strategy:j="afterInteractive",onError:k,stylesheets:P}=C,q=x||w;if(q&&m.has(q))return;if(p.has(w)){m.add(q),p.get(w).then(I,k);return}const z=()=>{$&&$(),m.add(q)},G=document.createElement("script"),Y=new Promise((V,F)=>{G.addEventListener("load",function(oe){V(),I&&I.call(this,oe),z()}),G.addEventListener("error",function(oe){F(oe)})}).catch(function(V){k&&k(V)});A?(G.innerHTML=A.__html||"",z()):N?(G.textContent=typeof N=="string"?N:Array.isArray(N)?N.join(""):"",z()):w&&(G.src=w,p.set(w,Y));for(const[V,F]of Object.entries(C)){if(F===void 0||d.includes(V))continue;const oe=u.DOMAttributeNames[V]||V.toLowerCase();G.setAttribute(oe,F)}j==="worker"&&G.setAttribute("type","text/partytown"),G.setAttribute("data-nscript",j),P&&f(P),document.body.appendChild(G)};function y(C){const{strategy:w="afterInteractive"}=C;w==="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(w=>{const x=w.id||w.getAttribute("src");m.add(x)})}function R(C){C.forEach(y),v()}function _(C){const{id:w,src:x="",onLoad:I=()=>{},onReady:$=null,strategy:A="afterInteractive",onError:N,stylesheets:j,...k}=C,{updateScripts:P,scripts:q,getIsSsr:z,appDir:G,nonce:Y}=(0,a.useContext)(s.HeadManagerContext),V=(0,a.useRef)(!1);(0,a.useEffect)(()=>{const oe=w||x;V.current||($&&oe&&m.has(oe)&&$(),V.current=!0)},[$,w,x]);const F=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{F.current||(A==="afterInteractive"?h(C):A==="lazyOnload"&&g(C),F.current=!0)},[C,A]),(A==="beforeInteractive"||A==="worker")&&(P?(q[A]=(q[A]||[]).concat([{id:w,src:x,onLoad:I,onReady:$,onError:N,...k}]),P(q)):z&&z()?m.add(w||x):z&&!z()&&h(C)),G){if(j&&j.forEach(oe=>{i.default.preinit(oe,{as:"style"})}),A==="beforeInteractive")return x?(i.default.preload(x,k.integrity?{as:"script",integrity:k.integrity}:{as:"script"}),a.default.createElement("script",{nonce:Y,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([x])+")"}})):(k.dangerouslySetInnerHTML&&(k.children=k.dangerouslySetInnerHTML.__html,delete k.dangerouslySetInnerHTML),a.default.createElement("script",{nonce:Y,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...k}])+")"}}));A==="afterInteractive"&&x&&i.default.preload(x,k.integrity?{as:"script",integrity:k.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)})(Bn,Bn.exports);var pd=Bn.exports,md=pd;const hd=Dt(md),gd=({children:e,ONE_TRUST:t})=>c.jsxs(c.Fragment,{children:[c.jsx(hd,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),yd=to(()=>Promise.resolve(gd),{ssr:!1}),_d="_footer__bottom_1o9af_2",vd="_footer__wrapper_1o9af_10",bd="_footer__main_1o9af_39",xd="_footer__legalInformation_1o9af_55",Cd="_footer__column_1o9af_77",Sd="_footer__columnContent_1o9af_87",Ad="_footer__item_1o9af_91",Rd="_footer__itemLink_1o9af_107",Ed="_footer__columnTitle_1o9af_122",wd="_footer__columnTitleIcon_1o9af_134",jd="_footer__iconList_1o9af_147",Id="_footer__itemSmallText_1o9af_157",Pd="_payment_1o9af_168",Nd="_footer__iconContainer_1o9af_173",Od="_footer__iconListSubHeader_1o9af_178",Td="_accordionWrapper_1o9af_200",Md="_accordionHeader_1o9af_204",kd="_accordionTextWrapper_1o9af_208",pe={footer__bottom:_d,footer__wrapper:vd,footer__main:bd,footer__legalInformation:xd,footer__column:Cd,footer__columnContent:Sd,footer__item:Ad,footer__itemLink:Rd,footer__columnTitle:Ed,footer__columnTitleIcon:wd,footer__iconList:jd,footer__itemSmallText:Id,payment:Pd,footer__iconContainer:Nd,footer__iconListSubHeader:Od,accordionWrapper:Td,accordionHeader:Md,accordionTextWrapper:kd,"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 Ys={},ro={},ut={};(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)}}})(ut);var Zs={};(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"}})(Zs);var Bt={};(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}})(Bt);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return f}});const t=ut,r=Zs,n=Bt,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:R}=h;if(g){const S=/(^|\s)(1?\d?\d)vw/g,C=[];for(let w;w=S.exec(g);w)C.push(parseInt(w[2]));if(C.length){const w=Math.min(...C)*.01;return{widths:R.filter(x=>x>=v[0]*w),kind:"w"}}return{widths:R,kind:"w"}}return typeof y!="number"?{widths:v,kind:"w"}:{widths:[...new Set([y,y*2].map(S=>R.find(C=>C>=S)||R[R.length-1]))],kind:"x"}}function d(h){let{config:y,src:g,unoptimized:v,width:R,quality:_,sizes:S,loader:C}=h;if(v)return{src:g,srcSet:void 0,sizes:void 0};const{widths:w,kind:x}=m(y,R,S),I=w.length-1;return{sizes:!S&&x==="w"?"100vw":S,srcSet:w.map(($,A)=>C({config:y,src:g,quality:_,width:$})+" "+(x==="w"?$:A+1)+x).join(", "),src:C({config:y,src:g,quality:_,width:w[I]})}}function f(h,y){let{src:g,sizes:v,unoptimized:R=!1,priority:_=!1,loading:S,className:C,quality:w,width:x,height:I,fill:$=!1,style:A,onLoad:N,onLoadingComplete:j,placeholder:k="empty",blurDataURL:P,fetchPriority:q,layout:z,objectFit:G,objectPosition:Y,lazyBoundary:V,lazyRoot:F,...oe}=h;const{imgConf:E,showAltText:T,blurComplete:D,defaultLoader:K}=y;let te,Z=E||n.imageConfigDefault;if("allSizes"in Z)te=Z;else{const U=[...Z.deviceSizes,...Z.imageSizes].sort((Ce,X)=>Ce-X),le=Z.deviceSizes.sort((Ce,X)=>Ce-X);te={...Z,allSizes:U,deviceSizes:le}}let M=oe.loader||K;delete oe.loader,delete oe.srcSet;const J="__next_img_default"in M;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
|
|
1
|
+
"use strict";var tu=Object.defineProperty;var ru=(e,t,r)=>t in e?tu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Vt=(e,t,r)=>ru(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"),it=require("zustand"),Tn=require("js-cookie"),b=require("@soma-vertical-web/core-components"),Te=require("draft-js"),nt=require("@soma-vertical-web/foundations"),ho=require("@date-fns/tz"),Ca=require("react-dom"),go=require("axios"),Kn=q.createContext({}),nu=({data:e,children:t})=>c.jsx(Kn.Provider,{value:{tags:e==null?void 0:e.config},children:t}),Sa=()=>{const{tags:e}=q.useContext(Kn),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}},Aa=({gridScrollBack:e})=>{q.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},Ra=q.createContext({}),ou=({children:e,gridScrollBack:t})=>{const r=q.useRef(null);return Aa({gridScrollBack:t}),c.jsx(Ra.Provider,{value:{sizesContainerRef:r},children:e})},iu=()=>{const e=q.useContext(Ra);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),Ea=({valueInCents:e,hasFree:t,freeTaxMessage:r})=>e===0?t?r:Me(0):Me(e/100),Xn=(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()}},wa=(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},au=(e,t)=>e.replace(t,"").trim(),su=e=>e.replace(/\//g,""),ja=({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])??Xn(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}},Ia=e=>e?!e.offers.offers.find(({quantity:t=0})=>t>0):!1,Pa=(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)},Na=e=>e.find(t=>t.imageLabel==="10"),Oa=(e,t)=>{const r=/\/ids\/(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},Ta=(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},Ma=({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},cu=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},ka=(e,t,r)=>{t&&(e?(t.getAttribute("src")||(t.src=r??""),t.play()):t.pause())},uu=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Ia,formatPriceToCurrency:Me,freightParsePrice:Ea,getAspectRatio:cu,getColorAndSizeFromSkuName:Lt,getFirstImages:Ma,getProductNameWithoutSku:au,getSKUName:wa,getSkuInfos:ja,getThumbImage:Na,getValidOffer:Pa,removeSlashes:su,resizingImg:Oa,setVideoPlay:ka,splitNameAndSizeFromFullName:Xn,updatedResizedImg:Ta},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?La(l):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:p,currency:ve.configs.currency}:{}},d=gt({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)=>gt({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=$a(),D=qa(I,d);D&&(f={...f,...D}),t==="add_to_cart"&&(a||s)&&Mn({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"&&Mn({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 gt({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 gt({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}})}},La=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),lu=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]}:{}}:{}}},gt=({data:e,customData:t,configs:r})=>({...du(e,r==null?void 0:r.MAIN_IMAGE),...fu(e),...pu(e),...mu(e),...t}),Da=()=>{var e,t;return document?((t=(e=window.document.head.querySelector('meta[name="category"]'))==null?void 0:e.getAttribute("content"))==null?void 0:t.split("_"))??[]:[]},$a=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},qa=(e,t)=>e==null?void 0:e[t],Mn=({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)))},du=(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??Xn((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)}},yo=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,fu=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=yo(n),a=yo(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]}}},pu=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}}},mu=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}},Ba=()=>{const[e,t]=Da(),[r,n]=e.split("-"),o=r.includes("shop")||r.includes("sale")?r:"";return{page_category:o&&n?n:"",page_departament:o,id:t,name:e}},hu=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:ve,findDataInPersistedData:qa,getAvailablesSizes:La,getCategories:lu,getPageCategoryAndDepartmentFromSlug:Ba,getPersistedData:$a,getProductListInfoFromHead:Da,pushDatalayer:Le,updatePersistedData:Mn},Symbol.toStringTag,{value:"Module"})),Ha=q.createContext({}),gu=({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(Ha.Provider,{value:{sendDataLayerEvent:s,triggerSelectItemEventRef:a,promotionEventRef:r,currentLocalRef:n,itemListRef:o,cartProductsFullDataRef:i,handleSelectContent:u,handleSelectPromotionEvent:l},children:e})},ge=()=>q.useContext(Ha),za=q.createContext({}),yu=({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}=Sa(),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}=ja({items:l,NAME_SPLIT_SYMBOL:o}),I=Na(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(za.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})},Qn=()=>{const e=q.useContext(za);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},_u={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},Ie=Promise.resolve(!1),kn={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:()=>{}},Yn=e=>e===0,Fa=(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},Ua=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:Fa(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}},Wa=(e,t)=>{const r=e.map(n=>({id:n.id,quantity:n.quantity,seller:n.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},Ga=(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:[]}},Va=(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)??""}}),Ln=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),vu=(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},bu=e=>{const t=e.reduce((o,i)=>{const a=Yn(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}},xu=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(Yn(r==null?void 0:r.price)?0:r.quantity),0):0,Ka=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(Ua):[],marketingData:n,messages:o,openTextField:a,paymentData:s,shippingData:u,totalizers:l}},Xa=(e,t)=>{const r=e.find(n=>n.id===t);return r?r.availability==="unavailableItemFulfillment":!1},Cu=(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},Su=(e,t)=>{const r=new Set;return[e,...t].filter(n=>!r.has(n)&&r.add(n),r)},Qa=(e,t)=>t&&Array.isArray(t)&&t.find(n=>n.id===e)?Promise.resolve(e):Promise.resolve(!1),Ya=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),Za=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},Ja=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},es=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(n=>n.id===r.id)):[],ts=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:Ka(a)})},rs=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),Au=e=>[...Array.isArray(e)?e:[e],"faststore"],ns=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},Ru=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:_u,addItemOrder:Wa,addNotification:rs,createItemOrder:Ua,fetchCartAPI:Re,findItemIndex:Ln,findOptions:es,findTotalizerValue:vu,getCategories:Fa,getCode:Ge,getQuantity:Ja,getRemoveId:Qa,getSize:Cu,getTotalItems:xu,getTotalizer:bu,getUrlParameter:qe,getValue:Ya,initialState:kn,isGift:Yn,marketingTagsBuilder:Au,mergeOptionsPromise:ts,mountMarketingData:ns,orderFormValues:Ka,promiseDefault:Ie,removeQuantity:Ga,updateItemSellerExternal:Xa,updateOrderFormPromise:Za,updateQuantity:Va,wishlistArray:Su},Symbol.toStringTag,{value:"Module"})),Eu=()=>{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:Wa(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=Ga(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=Va(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)?Xa(A.items,y)?m(f,h,y,v):A:!1)}},Dn="soma::cart",tt="soma::options",Ke=it.create((e,t)=>{const r=Eu(),n=async(o,i,a)=>{e({loading:!0});const s=await Za(o);if(typeof s!="boolean"){e({...s});const u=await ts(Ue.get(tt),a);return Ue.set(tt,u),Ya(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(tt).then(l=>es(l,i.items));Ue.set(Dn,i),Ue.set(tt,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(Dn).then(i=>r.getOrderForm(i?i.id:"").then(o)),{...kn,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 Qa(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 kn}),wu=()=>Ke(e=>e),os=it.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(n=>rs(n,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(n=>n.id!==t)}))}})),is=()=>os(e=>e.notifications),as=()=>os(e=>e.actions),ju=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:tt,KEY_INDEXED_STORE:Dn,useCartStore:Ke,useGetCartStoreState:wu,useGetNotificationActions:as,useGetNotificationsStore:is},Symbol.toStringTag,{value:"Module"})),Iu=6e3,ss=q.createContext({}),cs=({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([])},Iu))},[n]),c.jsx(ss.Provider,{value:q.useMemo(()=>({...t,setRecentlyAdded:o,recentlyAddedProducts:a}),[t,o,a]),children:e})},at=()=>{const e=q.useContext(ss);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class us{constructor(){Vt(this,"events",{});Vt(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 ls=q.createContext({}),Pu=({children:e,headerConfigs:t,pathname:r,...n})=>{const[o,i]=q.useState(!0),a=r==="/",s=q.useRef(new us),u=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},l=u(a),p=q.useRef(l);return q.useEffect(()=>{var f;const m=((f=new URLSearchParams(window.location.search))==null?void 0:f.toString())??"";(m.includes("utm_")||m.includes("gclid"))&&(Tn.get("lastMedias")||Tn.set("lastMedias",`${m}`,{expires:1/24}));const d=()=>{const h=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,y=window.innerWidth<1024||!!h.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);o!==y&&i(y)};return d(),window.addEventListener("resize",d,{passive:!0}),()=>window.removeEventListener("resize",d)},[o]),q.useEffect(()=>{const m=u(a);s.current.publish("header:change_variant",m.headerVariant),s.current.publish("header:change_position",m.position),p.current=m},[a]),c.jsx(ls.Provider,{value:{isMobile:o,mediatorRef:s,currentHeaderConfigsRef:p,...n},children:c.jsx(cs,{children:e})})},ke=()=>q.useContext(ls),ds=q.createContext({}),Nu=({children:e,...t})=>c.jsx(ds.Provider,{value:{...t},children:e}),Ne=()=>q.useContext(ds),He=(e,t)=>it.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}}}),ot={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},st=new Set,Ou=()=>{st.forEach(e=>{e()})},fs=it.create((e,t)=>{const r=()=>e({value:ot.category});return st.add(r),{value:ot.category,actions:{reset:r,setValue:n=>e(()=>({value:n})),updateValue:n=>{t().value!==n&&e({value:n})}}}}),Dt=()=>fs(e=>e.value),De=()=>fs(e=>e.actions),ps=He(ot.menuMobileIsOpen,st),Zn=()=>ps(e=>e.value),ze=()=>ps(e=>e.actions),ms=He(ot.searchModalIsOpen,st),Tu=()=>ms(e=>e.value),Jn=()=>ms(e=>e.actions),hs=He(ot.userMenuIsOpen,st),Mu=()=>hs(e=>e.value),$t=()=>hs(e=>e.actions),ku=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:Ou,useActionsHeaderCategory:De,useActionsMenuMobileIsOpen:ze,useActionsSearchModalIsOpen:Jn,useActionsUserMenuIsOpen:$t,useGetHeaderCategoryStore:Dt,useGetMenuMobileIsOpen:Zn,useGetSearchModalIsOpen:Tu,useGetUserMenuIsOpen:Mu},Symbol.toStringTag,{value:"Module"})),Xe={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},Qe=new Set,Lu=()=>{Qe.forEach(e=>{e()})},gs=it.create(e=>{const t=()=>e({value:Xe.selectedSkuInfo});return Qe.add(t),{value:Xe.selectedSkuInfo,actions:{setValue:r=>e(n=>({value:{...n,...r}})),reset:t}}}),Du=()=>gs(e=>e.value),$u=()=>gs(e=>e.actions),ys=He(Xe.openLetMeKnow,Qe),qu=()=>ys(e=>e.value),Bu=()=>ys(e=>e.actions),_s=He(Xe.showNotify,Qe),Hu=()=>_s(e=>e.value),zu=()=>_s(e=>e.actions),vs=He(Xe.showBottomNavigation,Qe),Fu=()=>vs(e=>e.value),Uu=()=>vs(e=>e.actions),bs=He(Xe.openMeasurements,Qe),Wu=()=>bs(e=>e.value),Gu=()=>bs(e=>e.actions),Vu=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:Lu,useActionsPDPOpenLetMeKnow:Bu,useActionsPDPOpenMeasurements:Gu,useActionsPDPSelectedSkuInfo:$u,useActionsPDPShowBottomNavigation:Uu,useActionsPDPShowNotify:zu,useGetPDPOpenLetMeKnow:qu,useGetPDPOpenMeasurements:Wu,useGetPDPSelectedSkuInfo:Du,useGetPDPShowBottomNavigation:Fu,useGetPDPShowNotify:Hu},Symbol.toStringTag,{value:"Module"})),xs=q.createContext({}),Ku=({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(xs.Provider,{value:{headerData:t,structureRef:o,rootRef:n,tipbarRef:i,...r},children:e})},xe=()=>q.useContext(xs),Cs=q.createContext({}),Ss=({children:e})=>{const t=q.useRef(null),r=q.useRef(null),n=Zn(),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(Cs.Provider,{value:{bodyRef:t,handleCloseSubMenu:o,documentBodyRef:r},children:e})},ct=()=>q.useContext(Cs),Xu=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Qu=(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?Xu(e==null?void 0:e.parentElement):0;return{left:n.left+n.width/2-(o.width+i),top:n.top+n.height+r}},As=q.createContext({}),Rs=({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}=Qu(f,d,r??0);p({left:h,top:y}),u(!1)}},[r,o]),c.jsx(As.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(As);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},Es=q.createContext({}),Yu=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const n=Ke(),{setRecentlyAdded:o}=at(),i=q.useRef(""),a=is(),{addNotification:s,removeNotification:u}=as(),{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=Tn.get("lastMedias");if(n.id&&E&&i.current!==E){i.current=E;const B=new URLSearchParams(E),F=ns(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=Ln(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=Ln(n.items,K),w=Ja(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(Es.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})},Ye=()=>{const e=q.useContext(Es);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},Zu={contexts:{addToCart:{hook:Fe,provider:Rs},cart:{hook:Ye,provider:Yu},cms:{FlagsAndTags:{context:Kn,hook:Sa,provider:nu}},events:{hook:ge,provider:gu},global:{hook:ke,provider:Pu,mediator:us},header:{hook:xe,provider:Ku},menuMobile:{hook:ct,provider:Ss},next:{hook:Ne,provider:Nu},pdp:{provider:ou,hook:iu},pdpdata:{hook:Qn,provider:yu},ui:{hook:at,provider:cs}},hooks:{useBackPDC:Aa},stores:{cart:ju,header:ku,pdp:Vu}};function ws(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 js(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 Ju=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function el(e,t=1e3){let r=!1;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>{r=!1},t))}}function tl(e,t=1e3){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}const Is=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,rt=(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),rl=Object.freeze(Object.defineProperty({__proto__:null,debounce:tl,getCookie:ws,getDaysHoursMinutesSeconds:rt,getMilliSeconds:Is,removeAccentsAndReplaceSpaces:Ju,setCookie:js,throttle:el},Symbol.toStringTag,{value:"Module"})),nl={cart:Ru,events:hu,product:uu,utils:rl},Ps={helpers:nl};var Ns=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 ol(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 $n={exports:{}},Ee={};Ee._=Ee._interop_require_default=il;function il(e){return e&&e.__esModule?e:{default:e}}var yt={exports:{}},Kt={},_o;function Os(){return _o||(_o=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}}(Kt)),Kt}var Xt={},_t={},vo;function Bt(){if(vo)return _t;vo=1;function e(r){if(typeof WeakMap!="function")return null;var n=new WeakMap,o=new WeakMap;return(e=function(i){return i?o:n})(r)}_t._=_t._interop_require_wildcard=t;function t(r,n){if(!n&&r&&r.__esModule)return r;if(r===null||typeof r!="object"&&typeof r!="function")return{default:r};var o=e(n);if(o&&o.has(r))return o.get(r);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s)){var u=a?Object.getOwnPropertyDescriptor(r,s):null;u&&(u.get||u.set)?Object.defineProperty(i,s,u):i[s]=r[s]}return i.default=r,o&&o.set(r,i),i}return _t}var bo;function Ts(){return bo||(bo=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=Bt()._(Os()),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)}}(Xt)),Xt}var Qt={},xo;function al(){return xo||(xo=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}}(Qt)),Qt}var Yt={},Co;function Ht(){return Co||(Co=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})}}(Yt)),Yt}var vt={exports:{}},Zt={},So;function Ms(){return So||(So=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(/\/$/,"")||"/"}}(Zt)),Zt}var Jt={},Ao;function eo(){return Ao||(Ao=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:""}}}(Jt)),Jt}var Ro;function zt(){return Ro||(Ro=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const r=Ms(),n=eo(),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 er={},bt={exports:{}},tr={},Eo;function ks(){return Eo||(Eo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=eo();function r(n,o){if(typeof n!="string")return!1;const{pathname:i}=(0,t.parsePath)(n);return i===o||i.startsWith(o+"/")}}(tr)),tr}var wo;function sl(){return wo||(wo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});const r=ks(),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 jo;function Ls(){return jo||(jo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=Ht(),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}}}(er)),er}var rr={},nr={},Io;function cl(){return Io||(Io=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()}}(nr)),nr}var or={},Po;function ul(){return Po||(Po=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)}}(or)),or}var No;function ll(){return No||(No=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()}(rr)),rr}var ir={},ar={},Oo;function dl(){return Oo||(Oo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=Ht();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}}}(ar)),ar}var sr={},cr={},ur={},lr={},To;function fl(){return To||(To=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}}(lr)),lr}var dr={},Mo;function pl(){return Mo||(Mo=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(")")}}(dr)),dr}var ko;function ml(){return ko||(ko=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}}(ur)),ur}var Lo;function hl(){return Lo||(Lo=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}}}(cr)),cr}var fr={},Do;function gl(){return Do||(Do=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}}(fr)),fr}var $o;function yl(){return $o||($o=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=Ms(),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+"$"}}}(sr)),sr}var qo;function _l(){return qo||(qo=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}}}(ir)),ir}var Bo;function vl(){return Bo||(Bo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return p}});const r=Os(),n=Ts(),o=al(),i=Ht(),a=zt(),s=Ls(),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)}(yt,yt.exports)),yt.exports}var xt={exports:{}},pr={},mr={},Ho;function Ds(){return Ho||(Ho=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=eo();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}}(mr)),mr}var zo;function bl(){return zo||(zo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=Ds(),r=ks();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)}}(pr)),pr}var Fo;function xl(){return Fo||(Fo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=zt(),n=function(o){for(var i=arguments.length,a=new Array(i>1?i-1:0),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 hr={},Uo;function $s(){return Uo||(Uo=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")}(hr)),hr}var gr={},Wo;function Cl(){return Wo||(Wo=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")}(gr)),gr}var Ct={exports:{}},St={exports:{}},Go;function qs(){return Go||(Go=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 Vo;function Sl(){return Vo||(Vo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});const r=q,n=qs(),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:{}},yr={},Ko;function Al(){return Ko||(Ko=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}}}(yr)),yr}var Xo;function Rl(){return Xo||(Xo=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:{}},_r={},Qo;function El(){return Qo||(Qo=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}}}}(_r)),_r}var Yo;function wl(){return Yo||(Yo=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 Zo;function jl(){return Zo||(Zo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}});const r=zt(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i,a,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:{}},Jo;function Il(){return Jo||(Jo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return i}});const r=Ds(),n=zt(),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:{}},ei;function Pl(){return ei||(ei=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=Ls(),a=Ts(),s=Ht(),u=xl(),l=$s(),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)})($n,$n.exports);var Nl=$n.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)},qn=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),Bn=Te.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),Ll=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:qn,EXTENDED_BLOCK_RENDER_MAP:Bn,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:Bn,editorState:t!=null&&t.textStructureReduced?qn(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:Bn,editorState:t.textStructure?qn(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",Hn={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:Bl,textContentSection:Hl},zl="_link_w24h0_1",Fl="_wrapper_w24h0_98",Ul="_text_w24h0_106",vr={link:zl,wrapper:Fl,text:Ul},Ze=({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:nt.SizesSmallExtended,property:a,fallback:"medium"}),d=b.helpers.ValidateProp({fieldTypes:nt.Mode,property:i,fallback:"default"});return c.jsx(we,{...p,className:b.helpers.classNameConcat(vr.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:vr.wrapper,onClick:u,children:[t==null?void 0:t.start,c.jsx("p",{className:vr.text,"data-size":m,children:e}),t==null?void 0:t.end]})})},to=({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:Hn.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(Ze,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:Hn["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],ti=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},zn=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...n})=>{const[o,i]=q.useState(Is(new ho.TZDate(Date.now(),r),new ho.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=rt(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:rt(o,"hours")}),c.jsx(b.Timer.Separator,{}),c.jsx(b.Timer.Digit,{label:"min",value:rt(o,"minutes")}),c.jsx(b.Timer.Separator,{}),c.jsx(b.Timer.Digit,{label:"segs",value:rt(o),suppressHydrationWarning:!0})]}):c.jsx(c.Fragment,{})},ri={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},ni=({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:ri["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:ri["content-modifier"],style:{textAlign:ti(f)},children:c.jsxs(b.Utils.Column,{gap:"16px",alignItems:ti(f),children:[h&&y==="timer-first"&&c.jsx(zn,{mode:g??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:A?new Date(A):new Date}),c.jsx(to,{data:e.banner,ICONS:o}),h&&y!=="timer-first"&&c.jsx(zn,{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 ro=({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})},Bs=({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(ro,{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(ni,{data:e,videoUrl:f,priority:r,videoRef:d,...o})}):c.jsx(ni,{data:e,videoUrl:f,priority:r,videoRef:d,...o})})},Hs=e=>c.jsx(Bs,{...e}),Zl={Banner:Hs},et={"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(et["carousel-modifier"],"common-section"),children:[n==="medium"?c.jsxs(b.TextStructure.Root,{children:[c.jsx(b.TextStructure.DivWrapper,{className:et["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:et["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:et["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:et["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(Hn.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:c.jsx(to,{data:e,ICONS:t})}),td={Banner:Zl,BannerSection:Bs,BennefitsBarSection:Jl,DataScreening:Dl,SingleBannerSection:Hs,TextContentSection:ed,TextContent:to},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"},zs=({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})})})]});zs.displayName="AddToCart.Card.Name";const Fs=({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")})})})})};Fs.displayName="AddToCart.Card.PriceQuantity";const nd="_skeleton_12b79_1",od={skeleton:nd},id=({style:e})=>c.jsx("div",{style:e,className:od.skeleton}),Us=({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})]})]})};Us.displayName="AddToCart.Card.StyleSize";const{helpers:ad}=Ps,Ws=({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(zs,{brand:i.name,name:o}),c.jsx(Fs,{price:l,listPrice:p,quantity:u,productId:t.id}),c.jsx(Us,{size:d,texture:r,productGroupID:s})]})};Ws.displayName="AddToCart.Card.Content";const Gs=({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});Gs.displayName="AddToCart.Card";const Vs=({className:e,item:t,texture:r,thumbnail:n,...o})=>{const{itemOffered:{image:[i]}}=t,a=Ta(i.url,{width:200,height:300});return c.jsxs("div",{...o,className:b.helpers.classNameConcat(je["add-to-cart--card"],e),children:[c.jsx(Gs,{image:{alternateName:i.alternateName||"Produto",url:a||""},thumbnail:n}),!n&&c.jsx(Ws,{item:t,texture:r})]})};Vs.displayName="AddToCart.Card";const Ks=({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,{})]});Ks.displayName="AddToCart.Layout.Content";const Xs=({className:e,...t})=>{var f,h;const{isMobile:r,handleClose:n,CONSTANTS:{ADD_TO_CART:o}}=Fe(),{cartStore:{totalizers:i},setIsOpen:a}=Ye(),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})]})};Xs.displayName="AddToCart.Layout.Footer";const Qs=({children:e,className:t,thumbnail:r=!1,...n})=>{const{cartStore:{options:o}}=Ye(),{recentlyAddedProducts:i}=at(),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]})};Qs.displayName="AddToCart.Layout.Items";const Ys=({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})]})};Ys.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})},Zs=({children:e,component:t,CONSTANTS:r,...n})=>{const{recentlyAddedProducts:o}=at(),{isMobile:i}=ke(),a=o.length>3?4:o.length;return c.jsx(Rs,{...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})})})};Zs.displayName="AddToCart.Root";const Js=({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})})};Js.displayName="AddToCart.Tooltip";const Be={Card:Vs,Content:Ks,Footer:Xs,Items:Qs,Modal:Ys,Root:Zs,Tooltip:Js},no=({title:e,...t})=>{const{recentlyAddedProducts:r}=at(),{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})};no.displayName="AddToCart";const oi={"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(oi["card-modifier"],t),style:{...i,padding:0},children:c.jsxs("button",{className:oi["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=ws("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}}}),js("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}=Ba(),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 Fn={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 br={},xr={},ii;function dd(){return ii||(ii=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")}(xr)),xr}var ai;function fd(){return ai||(ai=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}(br)),br}(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)})(Fn,Fn.exports);var pd=Fn.exports,md=pd;const oo=qt(md);var Un={exports:{}},Cr={},si;function ec(){return si||(si=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")}(Cr)),Cr}var It={exports:{}},ci;function hd(){return ci||(ci=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=Bt(),i=n._(Ca),a=o._(q),s=ec(),u=hd(),l=qs(),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)})(Un,Un.exports);var gd=Un.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=oo(()=>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 tc={},io={},ut={};(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)}}})(ut);var rc={};(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"}})(rc);var Ft={};(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}})(Ft);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return f}});const t=ut,r=rc,n=Ft,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
6
|
Possible solutions:
|
|
7
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: `+
|
|
8
|
+
- Change the "src" property to a static import with one of the supported file types: `+W.join(",")+` (animated images not supported)
|
|
9
9
|
- Remove the "placeholder" property, effectively no blur effect
|
|
10
|
-
Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`)}if("ref"in
|
|
11
|
-
Read more: https://nextjs.org/docs/messages/next-image-missing-loader-width`)}for(const[
|
|
12
|
-
Read more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);if(typeof window<"u"&&!l&&window.PerformanceObserver){l=new PerformanceObserver(
|
|
13
|
-
Read more: https://nextjs.org/docs/api-reference/next/image#priority`)}});try{l.observe({type:"largest-contentful-paint",buffered:!0})}catch(
|
|
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}}}})(io);var Wn={exports:{}},Pt={exports:{}},Sr={},ui;function qd(){return ui||(ui=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}}(Sr)),Sr}var Ar={},li;function Bd(){return li||(li=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")}(Ar)),Ar}var Rr={},di;function Hd(){return di||(di=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}}(Rr)),Rr}var fi;function zd(){return fi||(fi=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=Bt()._(q),a=n._(qd()),s=Bd(),u=ec(),l=Hd(),p=ut;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
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(R){let{children:_}=R;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)}(It,It.exports)),It.exports}var Sr={},ui;function Bd(){return ui||(ui=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return o}});const r=Re._(B),n=Bt,o=r.default.createContext(n.imageConfigDefault);process.env.NODE_ENV!=="production"&&(o.displayName="ImageConfigContext")}(Sr)),Sr}var Ar={},Rr={},Er={exports:{}};const Hd={},zd=Object.freeze(Object.defineProperty({__proto__:null,default:Hd},Symbol.toStringTag,{value:"Module"})),Fd=el(zd);var wr={},jr={},Ir,li;function Js(){return li||(li=1,Ir=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}),Ir}var Pr,di;function Ht(){if(di)return Pr;di=1;var e=Js();return Pr=function(){return e()&&!!Symbol.toStringTag},Pr}var Nr,fi;function ec(){return fi||(fi=1,Nr=Object),Nr}var Or,pi;function Ud(){return pi||(pi=1,Or=Error),Or}var Tr,mi;function Wd(){return mi||(mi=1,Tr=EvalError),Tr}var Mr,hi;function Gd(){return hi||(hi=1,Mr=RangeError),Mr}var kr,gi;function Vd(){return gi||(gi=1,kr=ReferenceError),kr}var Lr,yi;function tc(){return yi||(yi=1,Lr=SyntaxError),Lr}var Dr,_i;function lt(){return _i||(_i=1,Dr=TypeError),Dr}var $r,vi;function Kd(){return vi||(vi=1,$r=URIError),$r}var qr,bi;function Xd(){return bi||(bi=1,qr=Math.abs),qr}var Br,xi;function Qd(){return xi||(xi=1,Br=Math.floor),Br}var Hr,Ci;function Yd(){return Ci||(Ci=1,Hr=Math.max),Hr}var zr,Si;function Zd(){return Si||(Si=1,zr=Math.min),zr}var Fr,Ai;function Jd(){return Ai||(Ai=1,Fr=Math.pow),Fr}var Ur,Ri;function ef(){return Ri||(Ri=1,Ur=Math.round),Ur}var Wr,Ei;function tf(){return Ei||(Ei=1,Wr=Number.isNaN||function(t){return t!==t}),Wr}var Gr,wi;function rf(){if(wi)return Gr;wi=1;var e=tf();return Gr=function(r){return e(r)||r===0?r:r<0?-1:1},Gr}var Vr,ji;function nf(){return ji||(ji=1,Vr=Object.getOwnPropertyDescriptor),Vr}var Kr,Ii;function Je(){if(Ii)return Kr;Ii=1;var e=nf();if(e)try{e([],"length")}catch{e=null}return Kr=e,Kr}var Xr,Pi;function zt(){if(Pi)return Xr;Pi=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Xr=e,Xr}var Qr,Ni;function of(){if(Ni)return Qr;Ni=1;var e=typeof Symbol<"u"&&Symbol,t=Js();return Qr=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Qr}var Yr,Oi;function rc(){return Oi||(Oi=1,Yr=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Yr}var Zr,Ti;function nc(){if(Ti)return Zr;Ti=1;var e=ec();return Zr=e.getPrototypeOf||null,Zr}var Jr,Mi;function af(){if(Mi)return Jr;Mi=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 Jr=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},Jr}var en,ki;function dt(){if(ki)return en;ki=1;var e=af();return en=Function.prototype.bind||e,en}var tn,Li;function no(){return Li||(Li=1,tn=Function.prototype.call),tn}var rn,Di;function oo(){return Di||(Di=1,rn=Function.prototype.apply),rn}var nn,$i;function sf(){return $i||($i=1,nn=typeof Reflect<"u"&&Reflect&&Reflect.apply),nn}var on,qi;function oc(){if(qi)return on;qi=1;var e=dt(),t=oo(),r=no(),n=sf();return on=n||e.call(r,t),on}var an,Bi;function io(){if(Bi)return an;Bi=1;var e=dt(),t=lt(),r=no(),n=oc();return an=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},an}var sn,Hi;function cf(){if(Hi)return sn;Hi=1;var e=io(),t=Je(),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 sn=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(s){return i(s==null?s:o(s))}:!1,sn}var cn,zi;function ao(){if(zi)return cn;zi=1;var e=rc(),t=nc(),r=cf();return cn=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,cn}var un,Fi;function ic(){if(Fi)return un;Fi=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=dt();return un=r.call(e,t),un}var ln,Ui;function ac(){if(Ui)return ln;Ui=1;var e,t=ec(),r=Ud(),n=Wd(),o=Gd(),i=Vd(),a=tc(),s=lt(),u=Kd(),l=Xd(),p=Qd(),m=Yd(),d=Zd(),f=Jd(),h=ef(),y=rf(),g=Function,v=function(J){try{return g('"use strict"; return ('+J+").constructor;")()}catch{}},R=Je(),_=zt(),S=function(){throw new s},C=R?function(){try{return arguments.callee,S}catch{try{return R(arguments,"callee").get}catch{return S}}}():S,w=of()(),x=ao(),I=nc(),$=rc(),A=oo(),N=no(),j={},k=typeof Uint8Array>"u"||!x?e:x(Uint8Array),P={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":w&&x?x([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":j,"%AsyncGenerator%":j,"%AsyncGeneratorFunction%":j,"%AsyncIteratorPrototype%":j,"%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%":j,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&x?x(x([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!w||!x?e:x(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":R,"%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"||!w||!x?e:x(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&x?x(""[Symbol.iterator]()):e,"%Symbol%":w?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":C,"%TypedArray%":k,"%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%":N,"%Function.prototype.apply%":A,"%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%":$};if(x)try{null.error}catch(J){var q=x(x(J));P["%Error.prototype%"]=q}var z=function J(Q){var ee;if(Q==="%AsyncFunction%")ee=v("async function () {}");else if(Q==="%GeneratorFunction%")ee=v("function* () {}");else if(Q==="%AsyncGeneratorFunction%")ee=v("async function* () {}");else if(Q==="%AsyncGenerator%"){var L=J("%AsyncGeneratorFunction%");L&&(ee=L.prototype)}else if(Q==="%AsyncIteratorPrototype%"){var O=J("%AsyncGenerator%");O&&x&&(ee=x(O.prototype))}return P[Q]=ee,ee},G={__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"]},Y=dt(),V=ic(),F=Y.call(N,Array.prototype.concat),oe=Y.call(A,Array.prototype.splice),E=Y.call(N,String.prototype.replace),T=Y.call(N,String.prototype.slice),D=Y.call(N,RegExp.prototype.exec),K=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,te=/\\(\\)?/g,Z=function(Q){var ee=T(Q,0,1),L=T(Q,-1);if(ee==="%"&&L!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(L==="%"&&ee!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var O=[];return E(Q,K,function(re,ae,ce,ue){O[O.length]=ce?E(ue,te,"$1"):ae||re}),O},M=function(Q,ee){var L=Q,O;if(V(G,L)&&(O=G[L],L="%"+O[0]+"%"),V(P,L)){var re=P[L];if(re===j&&(re=z(L)),typeof re>"u"&&!ee)throw new s("intrinsic "+Q+" exists, but is not available. Please file an issue!");return{alias:O,name:L,value:re}}throw new a("intrinsic "+Q+" does not exist!")};return ln=function(Q,ee){if(typeof Q!="string"||Q.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(D(/^%?[^%]*%?$/,Q)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var L=Z(Q),O=L.length>0?L[0]:"",re=M("%"+O+"%",ee),ae=re.name,ce=re.value,ue=!1,se=re.alias;se&&(O=se[0],oe(L,F([0,1],se)));for(var H=1,he=!0;H<L.length;H+=1){var ie=L[H],me=T(ie,0,1),U=T(ie,-1);if((me==='"'||me==="'"||me==="`"||U==='"'||U==="'"||U==="`")&&me!==U)throw new a("property names with quotes must have matching quotes");if((ie==="constructor"||!he)&&(ue=!0),O+="."+ie,ae="%"+O+"%",V(P,ae))ce=P[ae];else if(ce!=null){if(!(ie in ce)){if(!ee)throw new s("base intrinsic for "+Q+" exists, but the property is not available.");return}if(R&&H+1>=L.length){var le=R(ce,ie);he=!!le,he&&"get"in le&&!("originalValue"in le.get)?ce=le.get:ce=ce[ie]}else he=V(ce,ie),ce=ce[ie];he&&!ue&&(P[ae]=ce)}}return ce},ln}var dn,Wi;function ft(){if(Wi)return dn;Wi=1;var e=ac(),t=io(),r=t([e("%String.prototype.indexOf%")]);return dn=function(o,i){var a=e(o,!!i);return typeof a=="function"&&r(o,".prototype.")>-1?t([a]):a},dn}var fn,Gi;function uf(){if(Gi)return fn;Gi=1;var e=Ht()(),t=ft(),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,fn=i?n:o,fn}var pn,Vi;function lf(){if(Vi)return pn;Vi=1;var e=ft(),t=Ht()(),r=ic(),n=Je(),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 pn=o,pn}var mn,Ki;function df(){if(Ki)return mn;Ki=1;var e=ft(),t=lf(),r=e("RegExp.prototype.exec"),n=lt();return mn=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(s){return r(i,s)!==null}},mn}var hn,Xi;function ff(){if(Xi)return hn;Xi=1;var e=ft(),t=df(),r=t(/^\s*(?:function)?\*/),n=Ht()(),o=ao(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),s=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},u;return hn=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},hn}var gn,Qi;function pf(){if(Qi)return gn;Qi=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(R){R!==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 gn=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(_)},gn}var yn,Yi;function mf(){if(Yi)return yn;Yi=1;var e=pf(),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 yn=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)},yn}var _n,Zi;function hf(){return Zi||(Zi=1,_n=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),_n}var vn,Ji;function gf(){if(Ji)return vn;Ji=1;var e=hf(),t=typeof globalThis>"u"?Es:globalThis;return vn=function(){for(var n=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(n[n.length]=e[o]);return n},vn}var bn={exports:{}},xn,ea;function yf(){if(ea)return xn;ea=1;var e=zt(),t=tc(),r=lt(),n=Je();return xn=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.")},xn}var Cn,ta;function _f(){if(ta)return Cn;ta=1;var e=zt(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Cn=t,Cn}var Sn,ra;function vf(){if(ra)return Sn;ra=1;var e=ac(),t=yf(),r=_f()(),n=Je(),o=lt(),i=e("%Math.floor%");return Sn=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},Sn}var An,na;function bf(){if(na)return An;na=1;var e=dt(),t=oo(),r=oc();return An=function(){return r(e,t,arguments)},An}var oa;function xf(){return oa||(oa=1,function(e){var t=vf(),r=zt(),n=io(),o=bf();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}(bn)),bn.exports}var Rn,ia;function sc(){if(ia)return Rn;ia=1;var e=mf(),t=gf(),r=xf(),n=ft(),o=Je(),i=ao(),a=n("Object.prototype.toString"),s=Ht()(),u=typeof globalThis>"u"?Es:globalThis,l=t(),p=n("String.prototype.slice"),m=n("Array.prototype.indexOf",!0)||function(g,v){for(var R=0;R<g.length;R+=1)if(g[R]===v)return R;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),R=o(v,Symbol.toStringTag);if(!R&&v){var _=i(v);R=o(_,Symbol.toStringTag)}d["$"+y]=r(R.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(R,_){if(!v)try{"$"+R(g)===_&&(v=p(_,1))}catch{}}),v},h=function(g){var v=!1;return e(d,function(R,_){if(!v)try{R(g),v=p(_,1)}catch{}}),v};return Rn=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},Rn}var En,aa;function Cf(){if(aa)return En;aa=1;var e=sc();return En=function(r){return!!e(r)},En}var sa;function Sf(){return sa||(sa=1,function(e){var t=uf(),r=ff(),n=sc(),o=Cf();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)||T(H)}e.isArrayBufferView=g;function v(H){return n(H)==="Uint8Array"}e.isUint8Array=v;function R(H){return n(H)==="Uint8ClampedArray"}e.isUint8ClampedArray=R;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 w(H){return n(H)==="Int16Array"}e.isInt16Array=w;function x(H){return n(H)==="Int32Array"}e.isInt32Array=x;function I(H){return n(H)==="Float32Array"}e.isFloat32Array=I;function $(H){return n(H)==="Float64Array"}e.isFloat64Array=$;function A(H){return n(H)==="BigInt64Array"}e.isBigInt64Array=A;function N(H){return n(H)==="BigUint64Array"}e.isBigUint64Array=N;function j(H){return u(H)==="[object Map]"}j.working=typeof Map<"u"&&j(new Map);function k(H){return typeof Map>"u"?!1:j.working?j(H):H instanceof Map}e.isMap=k;function P(H){return u(H)==="[object Set]"}P.working=typeof Set<"u"&&P(new Set);function q(H){return typeof Set>"u"?!1:P.working?P(H):H instanceof Set}e.isSet=q;function z(H){return u(H)==="[object WeakMap]"}z.working=typeof WeakMap<"u"&&z(new WeakMap);function G(H){return typeof WeakMap>"u"?!1:z.working?z(H):H instanceof WeakMap}e.isWeakMap=G;function Y(H){return u(H)==="[object WeakSet]"}Y.working=typeof WeakSet<"u"&&Y(new WeakSet);function V(H){return Y(H)}e.isWeakSet=V;function F(H){return u(H)==="[object ArrayBuffer]"}F.working=typeof ArrayBuffer<"u"&&F(new ArrayBuffer);function oe(H){return typeof ArrayBuffer>"u"?!1:F.working?F(H):H instanceof ArrayBuffer}e.isArrayBuffer=oe;function E(H){return u(H)==="[object DataView]"}E.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&E(new DataView(new ArrayBuffer(1),0,1));function T(H){return typeof DataView>"u"?!1:E.working?E(H):H instanceof DataView}e.isDataView=T;var D=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function K(H){return u(H)==="[object SharedArrayBuffer]"}function te(H){return typeof D>"u"?!1:(typeof K.working>"u"&&(K.working=K(new D)),K.working?K(H):H instanceof D)}e.isSharedArrayBuffer=te;function Z(H){return u(H)==="[object AsyncFunction]"}e.isAsyncFunction=Z;function M(H){return u(H)==="[object Map Iterator]"}e.isMapIterator=M;function J(H){return u(H)==="[object Set Iterator]"}e.isSetIterator=J;function Q(H){return u(H)==="[object Generator]"}e.isGeneratorObject=Q;function ee(H){return u(H)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=ee;function L(H){return h(H,l)}e.isNumberObject=L;function O(H){return h(H,p)}e.isStringObject=O;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 L(H)||O(H)||re(H)||ae(H)||ce(H)}e.isBoxedPrimitive=ue;function se(H){return typeof Uint8Array<"u"&&(oe(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")}})})}(jr)),jr}var wn,ca;function Af(){return ca||(ca=1,wn=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),wn}var Pt={exports:{}},ua;function Rf(){return ua||(ua=1,typeof Object.create=="function"?Pt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Pt.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),Pt.exports}var la;function Ef(){return la||(la=1,function(e){var t=Object.getOwnPropertyDescriptors||function(T){for(var D=Object.keys(T),K={},te=0;te<D.length;te++)K[D[te]]=Object.getOwnPropertyDescriptor(T,D[te]);return K},r=/%[sdj%]/g;e.format=function(E){if(!C(E)){for(var T=[],D=0;D<arguments.length;D++)T.push(a(arguments[D]));return T.join(" ")}for(var D=1,K=arguments,te=K.length,Z=String(E).replace(r,function(J){if(J==="%%")return"%";if(D>=te)return J;switch(J){case"%s":return String(K[D++]);case"%d":return Number(K[D++]);case"%j":try{return JSON.stringify(K[D++])}catch{return"[Circular]"}default:return J}}),M=K[D];D<te;M=K[++D])R(M)||!$(M)?Z+=" "+M:Z+=" "+a(M);return Z},e.deprecate=function(E,T){if(typeof process<"u"&&process.noDeprecation===!0)return E;if(typeof process>"u")return function(){return e.deprecate(E,T).apply(this,arguments)};var D=!1;function K(){if(!D){if(process.throwDeprecation)throw new Error(T);process.traceDeprecation?console.trace(T):console.error(T),D=!0}return E.apply(this,arguments)}return K};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(E){if(E=E.toUpperCase(),!n[E])if(o.test(E)){var T=process.pid;n[E]=function(){var D=e.format.apply(e,arguments);console.error("%s %d: %s",E,T,D)}}else n[E]=function(){};return n[E]};function a(E,T){var D={seen:[],stylize:u};return arguments.length>=3&&(D.depth=arguments[2]),arguments.length>=4&&(D.colors=arguments[3]),v(T)?D.showHidden=T:T&&e._extend(D,T),x(D.showHidden)&&(D.showHidden=!1),x(D.depth)&&(D.depth=2),x(D.colors)&&(D.colors=!1),x(D.customInspect)&&(D.customInspect=!0),D.colors&&(D.stylize=s),p(D,E,D.depth)}e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s(E,T){var D=a.styles[T];return D?"\x1B["+a.colors[D][0]+"m"+E+"\x1B["+a.colors[D][1]+"m":E}function u(E,T){return E}function l(E){var T={};return E.forEach(function(D,K){T[D]=!0}),T}function p(E,T,D){if(E.customInspect&&T&&j(T.inspect)&&T.inspect!==e.inspect&&!(T.constructor&&T.constructor.prototype===T)){var K=T.inspect(D,E);return C(K)||(K=p(E,K,D)),K}var te=m(E,T);if(te)return te;var Z=Object.keys(T),M=l(Z);if(E.showHidden&&(Z=Object.getOwnPropertyNames(T)),N(T)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return d(T);if(Z.length===0){if(j(T)){var J=T.name?": "+T.name:"";return E.stylize("[Function"+J+"]","special")}if(I(T))return E.stylize(RegExp.prototype.toString.call(T),"regexp");if(A(T))return E.stylize(Date.prototype.toString.call(T),"date");if(N(T))return d(T)}var Q="",ee=!1,L=["{","}"];if(g(T)&&(ee=!0,L=["[","]"]),j(T)){var O=T.name?": "+T.name:"";Q=" [Function"+O+"]"}if(I(T)&&(Q=" "+RegExp.prototype.toString.call(T)),A(T)&&(Q=" "+Date.prototype.toUTCString.call(T)),N(T)&&(Q=" "+d(T)),Z.length===0&&(!ee||T.length==0))return L[0]+Q+L[1];if(D<0)return I(T)?E.stylize(RegExp.prototype.toString.call(T),"regexp"):E.stylize("[Object]","special");E.seen.push(T);var re;return ee?re=f(E,T,D,M,Z):re=Z.map(function(ae){return h(E,T,D,M,ae,ee)}),E.seen.pop(),y(re,Q,L)}function m(E,T){if(x(T))return E.stylize("undefined","undefined");if(C(T)){var D="'"+JSON.stringify(T).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return E.stylize(D,"string")}if(S(T))return E.stylize(""+T,"number");if(v(T))return E.stylize(""+T,"boolean");if(R(T))return E.stylize("null","null")}function d(E){return"["+Error.prototype.toString.call(E)+"]"}function f(E,T,D,K,te){for(var Z=[],M=0,J=T.length;M<J;++M)Y(T,String(M))?Z.push(h(E,T,D,K,String(M),!0)):Z.push("");return te.forEach(function(Q){Q.match(/^\d+$/)||Z.push(h(E,T,D,K,Q,!0))}),Z}function h(E,T,D,K,te,Z){var M,J,Q;if(Q=Object.getOwnPropertyDescriptor(T,te)||{value:T[te]},Q.get?Q.set?J=E.stylize("[Getter/Setter]","special"):J=E.stylize("[Getter]","special"):Q.set&&(J=E.stylize("[Setter]","special")),Y(K,te)||(M="["+te+"]"),J||(E.seen.indexOf(Q.value)<0?(R(D)?J=p(E,Q.value,null):J=p(E,Q.value,D-1),J.indexOf(`
|
|
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 Er={},pi;function Fd(){return pi||(pi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return o}});const r=Ee._(q),n=Ft,o=r.default.createContext(n.imageConfigDefault);process.env.NODE_ENV!=="production"&&(o.displayName="ImageConfigContext")}(Er)),Er}var wr={},jr={},Ir={exports:{}};const Ud={},Wd=Object.freeze(Object.defineProperty({__proto__:null,default:Ud},Symbol.toStringTag,{value:"Module"})),Gd=ol(Wd);var Pr={},Nr={},Or,mi;function nc(){return mi||(mi=1,Or=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}),Or}var Tr,hi;function Ut(){if(hi)return Tr;hi=1;var e=nc();return Tr=function(){return e()&&!!Symbol.toStringTag},Tr}var Mr,gi;function oc(){return gi||(gi=1,Mr=Object),Mr}var kr,yi;function Vd(){return yi||(yi=1,kr=Error),kr}var Lr,_i;function Kd(){return _i||(_i=1,Lr=EvalError),Lr}var Dr,vi;function Xd(){return vi||(vi=1,Dr=RangeError),Dr}var $r,bi;function Qd(){return bi||(bi=1,$r=ReferenceError),$r}var qr,xi;function ic(){return xi||(xi=1,qr=SyntaxError),qr}var Br,Ci;function lt(){return Ci||(Ci=1,Br=TypeError),Br}var Hr,Si;function Yd(){return Si||(Si=1,Hr=URIError),Hr}var zr,Ai;function Zd(){return Ai||(Ai=1,zr=Math.abs),zr}var Fr,Ri;function Jd(){return Ri||(Ri=1,Fr=Math.floor),Fr}var Ur,Ei;function ef(){return Ei||(Ei=1,Ur=Math.max),Ur}var Wr,wi;function tf(){return wi||(wi=1,Wr=Math.min),Wr}var Gr,ji;function rf(){return ji||(ji=1,Gr=Math.pow),Gr}var Vr,Ii;function nf(){return Ii||(Ii=1,Vr=Math.round),Vr}var Kr,Pi;function of(){return Pi||(Pi=1,Kr=Number.isNaN||function(t){return t!==t}),Kr}var Xr,Ni;function af(){if(Ni)return Xr;Ni=1;var e=of();return Xr=function(r){return e(r)||r===0?r:r<0?-1:1},Xr}var Qr,Oi;function sf(){return Oi||(Oi=1,Qr=Object.getOwnPropertyDescriptor),Qr}var Yr,Ti;function Je(){if(Ti)return Yr;Ti=1;var e=sf();if(e)try{e([],"length")}catch{e=null}return Yr=e,Yr}var Zr,Mi;function Wt(){if(Mi)return Zr;Mi=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Zr=e,Zr}var Jr,ki;function cf(){if(ki)return Jr;ki=1;var e=typeof Symbol<"u"&&Symbol,t=nc();return Jr=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Jr}var en,Li;function ac(){return Li||(Li=1,en=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),en}var tn,Di;function sc(){if(Di)return tn;Di=1;var e=oc();return tn=e.getPrototypeOf||null,tn}var rn,$i;function uf(){if($i)return rn;$i=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 rn=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},rn}var nn,qi;function dt(){if(qi)return nn;qi=1;var e=uf();return nn=Function.prototype.bind||e,nn}var on,Bi;function ao(){return Bi||(Bi=1,on=Function.prototype.call),on}var an,Hi;function so(){return Hi||(Hi=1,an=Function.prototype.apply),an}var sn,zi;function lf(){return zi||(zi=1,sn=typeof Reflect<"u"&&Reflect&&Reflect.apply),sn}var cn,Fi;function cc(){if(Fi)return cn;Fi=1;var e=dt(),t=so(),r=ao(),n=lf();return cn=n||e.call(r,t),cn}var un,Ui;function co(){if(Ui)return un;Ui=1;var e=dt(),t=lt(),r=ao(),n=cc();return un=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},un}var ln,Wi;function df(){if(Wi)return ln;Wi=1;var e=co(),t=Je(),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 ln=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(s){return i(s==null?s:o(s))}:!1,ln}var dn,Gi;function uo(){if(Gi)return dn;Gi=1;var e=ac(),t=sc(),r=df();return dn=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,dn}var fn,Vi;function uc(){if(Vi)return fn;Vi=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=dt();return fn=r.call(e,t),fn}var pn,Ki;function lc(){if(Ki)return pn;Ki=1;var e,t=oc(),r=Vd(),n=Kd(),o=Xd(),i=Qd(),a=ic(),s=lt(),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=Je(),_=Wt(),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=uo(),I=sc(),D=ac(),R=so(),P=ao(),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=dt(),G=uc(),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 pn=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},pn}var mn,Xi;function ft(){if(Xi)return mn;Xi=1;var e=lc(),t=co(),r=t([e("%String.prototype.indexOf%")]);return mn=function(o,i){var a=e(o,!!i);return typeof a=="function"&&r(o,".prototype.")>-1?t([a]):a},mn}var hn,Qi;function ff(){if(Qi)return hn;Qi=1;var e=Ut()(),t=ft(),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,hn=i?n:o,hn}var gn,Yi;function pf(){if(Yi)return gn;Yi=1;var e=ft(),t=Ut()(),r=uc(),n=Je(),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 gn=o,gn}var yn,Zi;function mf(){if(Zi)return yn;Zi=1;var e=ft(),t=pf(),r=e("RegExp.prototype.exec"),n=lt();return yn=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(s){return r(i,s)!==null}},yn}var _n,Ji;function hf(){if(Ji)return _n;Ji=1;var e=ft(),t=mf(),r=t(/^\s*(?:function)?\*/),n=Ut()(),o=uo(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),s=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},u;return _n=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},_n}var vn,ea;function gf(){if(ea)return vn;ea=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 vn=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(_)},vn}var bn,ta;function yf(){if(ta)return bn;ta=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 bn=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)},bn}var xn,ra;function _f(){return ra||(ra=1,xn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),xn}var Cn,na;function vf(){if(na)return Cn;na=1;var e=_f(),t=typeof globalThis>"u"?Ns:globalThis;return Cn=function(){for(var n=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(n[n.length]=e[o]);return n},Cn}var Sn={exports:{}},An,oa;function bf(){if(oa)return An;oa=1;var e=Wt(),t=ic(),r=lt(),n=Je();return An=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.")},An}var Rn,ia;function xf(){if(ia)return Rn;ia=1;var e=Wt(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Rn=t,Rn}var En,aa;function Cf(){if(aa)return En;aa=1;var e=lc(),t=bf(),r=xf()(),n=Je(),o=lt(),i=e("%Math.floor%");return En=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},En}var wn,sa;function Sf(){if(sa)return wn;sa=1;var e=dt(),t=so(),r=cc();return wn=function(){return r(e,t,arguments)},wn}var ca;function Af(){return ca||(ca=1,function(e){var t=Cf(),r=Wt(),n=co(),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}(Sn)),Sn.exports}var jn,ua;function dc(){if(ua)return jn;ua=1;var e=yf(),t=vf(),r=Af(),n=ft(),o=Je(),i=uo(),a=n("Object.prototype.toString"),s=Ut()(),u=typeof globalThis>"u"?Ns: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 jn=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},jn}var In,la;function Rf(){if(la)return In;la=1;var e=dc();return In=function(r){return!!e(r)},In}var da;function Ef(){return da||(da=1,function(e){var t=ff(),r=hf(),n=dc(),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")}})})}(Nr)),Nr}var Pn,fa;function wf(){return fa||(fa=1,Pn=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Pn}var Nt={exports:{}},pa;function jf(){return pa||(pa=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 ma;function If(){return ma||(ma=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
16
|
`)>-1&&(Z?J=J.split(`
|
|
17
17
|
`).map(function(ee){return" "+ee}).join(`
|
|
18
18
|
`).slice(2):J=`
|
|
19
19
|
`+J.split(`
|
|
20
20
|
`).map(function(ee){return" "+ee}).join(`
|
|
21
|
-
`))):J=
|
|
22
|
-
`)>=0,te+Z.replace(/\u001b\[\d\d?m/g,"").length+1},0);return
|
|
23
|
-
`)+" "+
|
|
24
|
-
`)+" "+
|
|
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
|
|
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}(Pr)),Pr}var ha;function Pf(){return ha||(ha=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
26
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
27
27
|
*
|
|
28
28
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
29
29
|
* Licensed under the MIT License.
|
|
30
|
-
*/const s=a(837),u=a(492),l=
|
|
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
31
|
* is-number <https://github.com/jonschlinkert/is-number>
|
|
32
32
|
*
|
|
33
33
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
34
34
|
* Released under the MIT License.
|
|
35
|
-
*/o.exports=function(i){return typeof i=="number"?i-i===0:typeof i=="string"&&i.trim()!==""?Number.isFinite?Number.isFinite(+i):isFinite(+i):!1}},971:(o,i,a)=>{const 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,R=new Set,_=0,S=x=>{R.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),$=I.state.negated||I.state.negatedExtglob;$&&_++;for(let A of f){let N=I(A,!0);($?!N.isMatch:N.isMatch)&&($?g.add(N.output):(g.delete(N.output),v.add(N.output)))}}let w=(_===h.length?[...R]:[...v]).filter(x=>!g.has(x));if(y&&w.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 w};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 R of g)v[R]=f[R];return v},d.some=(f,h,y)=>{let g=[].concat(f);for(let v of[].concat(h)){let R=l(String(v),y);if(g.some(_=>R(_)))return!0}return!1},d.every=(f,h,y)=>{let g=[].concat(f);for(let v of[].concat(h)){let R=l(String(v),y);if(!g.every(_=>R(_)))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),R=l.makeRe(String(f),{...y,capture:!0}).exec(g?p.toPosixSlashes(h):h);if(R)return R.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})`,R=`${p}{1,2}${g}`,_=`(?!${p})`,S=`(?!${v}${R})`,C=`(?!${p}{0,1}${g})`,w=`(?!${R})`,x=`[^.${f}]`,I=`${y}*?`,$={DOT_LITERAL:p,PLUS_LITERAL:m,QMARK_LITERAL:d,SLASH_LITERAL:f,ONE_CHAR:h,QMARK:y,END_ANCHOR:g,DOTS_SLASH:R,NO_DOT:_,NO_DOTS:S,NO_DOT_SLASH:C,NO_DOTS_SLASH:w,QMARK_NO_DOT:x,STAR:I,START_ANCHOR:v},A={...$,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}]|$)`},N={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};o.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:N,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:s.sep,extglobChars(j){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${j.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(j){return j===!0?A:$}}},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,R)=>{if(typeof R.expandRange=="function")return R.expandRange(...v,R);v.sort();const _=`[${v.join("-")}]`;try{new RegExp(_)}catch{return v.map(C=>u.escapeRegex(C)).join("..")}return _},y=(v,R)=>`Missing ${v}: "${R}" - use "\\\\${R}" to match literal characters`,g=(v,R)=>{if(typeof v!="string")throw new TypeError("Expected a string");v=f[v]||v;const _={...R},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 w={type:"bos",value:"",output:_.prepend||""},x=[w],I=_.capture?"":"?:",$=u.isWindows(R),A=s.globChars($),N=s.extglobChars(A),{DOT_LITERAL:j,PLUS_LITERAL:k,SLASH_LITERAL:P,ONE_CHAR:q,DOTS_SLASH:z,NO_DOT:G,NO_DOT_SLASH:Y,NO_DOTS_SLASH:V,QMARK:F,QMARK_NO_DOT:oe,STAR:E,START_ANCHOR:T}=A,D=X=>`(${I}(?:(?!${T}${X.dot?z:j}).)*?)`,K=_.dot?"":G,te=_.dot?F:oe;let Z=_.bash===!0?D(_):E;_.capture&&(Z=`(${Z})`),typeof _.noext=="boolean"&&(_.noextglob=_.noext);const M={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,M),C=v.length;const J=[],Q=[],ee=[];let L=w,O;const re=()=>M.index===C-1,ae=M.peek=(X=1)=>v[M.index+X],ce=M.advance=()=>v[++M.index],ue=()=>v.slice(M.index+1),se=(X="",ne=0)=>{M.consumed+=X,M.index+=ne},H=X=>{M.output+=X.output!=null?X.output:X.value,se(X.value)},he=()=>{let X=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)ce(),M.start++,X++;return X%2===0?!1:(M.negated=!0,M.start++,!0)},ie=X=>{M[X]++,ee.push(X)},me=X=>{M[X]--,ee.pop()},U=X=>{if(L.type==="globstar"){const ne=M.braces>0&&(X.type==="comma"||X.type==="brace"),W=X.extglob===!0||J.length&&(X.type==="pipe"||X.type==="paren");X.type!=="slash"&&X.type!=="paren"&&!ne&&!W&&(M.output=M.output.slice(0,-L.output.length),L.type="star",L.value="*",L.output=Z,M.output+=L.output)}if(J.length&&X.type!=="paren"&&!N[X.value]&&(J[J.length-1].inner+=X.value),(X.value||X.output)&&H(X),L&&L.type==="text"&&X.type==="text"){L.value+=X.value,L.output=(L.output||"")+X.value;return}X.prev=L,x.push(X),L=X},le=(X,ne)=>{const W={...N[ne],conditions:1,inner:""};W.prev=L,W.parens=M.parens,W.output=M.output;const de=(_.capture?"(":"")+W.open;ie("parens"),U({type:X,value:ne,output:M.output?"":q}),U({type:"paren",extglob:!0,value:ce(),output:de}),J.push(W)},Ce=X=>{let ne=X.close+(_.capture?")":"");if(X.type==="negate"){let W=Z;X.inner&&X.inner.length>1&&X.inner.includes("/")&&(W=D(_)),(W!==Z||re()||/^\)+$/.test(ue()))&&(ne=X.close=`)$))${W}`),X.prev.type==="bos"&&(M.negatedExtglob=!0)}U({type:"paren",extglob:!0,value:O,output:ne}),me("parens")};if(_.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(v)){let X=!1,ne=v.replace(d,(W,de,ye,Ae,be,Ft)=>Ae==="\\"?(X=!0,W):Ae==="?"?de?de+Ae+(be?F.repeat(be.length):""):Ft===0?te+(be?F.repeat(be.length):""):F.repeat(ye.length):Ae==="."?j.repeat(ye.length):Ae==="*"?de?de+Ae+(be?Z:""):Z:de?W:`\\${W}`);return X===!0&&(_.unescape===!0?ne=ne.replace(/\\/g,""):ne=ne.replace(/\\+/g,W=>W.length%2===0?"\\\\":W?"\\":"")),ne===v&&_.contains===!0?(M.output=v,M):(M.output=u.wrapOutput(ne,M,R),M)}for(;!re();){if(O=ce(),O==="\0")continue;if(O==="\\"){const W=ae();if(W==="/"&&_.bash!==!0||W==="."||W===";")continue;if(!W){O+="\\",U({type:"text",value:O});continue}const de=/^\\+/.exec(ue());let ye=0;if(de&&de[0].length>2&&(ye=de[0].length,M.index+=ye,ye%2!==0&&(O+="\\")),_.unescape===!0?O=ce()||"":O+=ce()||"",M.brackets===0){U({type:"text",value:O});continue}}if(M.brackets>0&&(O!=="]"||L.value==="["||L.value==="[^")){if(_.posix!==!1&&O===":"){const W=L.value.slice(1);if(W.includes("[")&&(L.posix=!0,W.includes(":"))){const de=L.value.lastIndexOf("["),ye=L.value.slice(0,de),Ae=L.value.slice(de+2),be=p[Ae];if(be){L.value=ye+be,M.backtrack=!0,ce(),!w.output&&x.indexOf(L)===1&&(w.output=q);continue}}}(O==="["&&ae()!==":"||O==="-"&&ae()==="]")&&(O=`\\${O}`),O==="]"&&(L.value==="["||L.value==="[^")&&(O=`\\${O}`),_.posix===!0&&O==="!"&&L.value==="["&&(O="^"),L.value+=O,H({value:O});continue}if(M.quotes===1&&O!=='"'){O=u.escapeRegex(O),L.value+=O,H({value:O});continue}if(O==='"'){M.quotes=M.quotes===1?0:1,_.keepQuotes===!0&&U({type:"text",value:O});continue}if(O==="("){ie("parens"),U({type:"paren",value:O});continue}if(O===")"){if(M.parens===0&&_.strictBrackets===!0)throw new SyntaxError(y("opening","("));const W=J[J.length-1];if(W&&M.parens===W.parens+1){Ce(J.pop());continue}U({type:"paren",value:O,output:M.parens?")":"\\)"}),me("parens");continue}if(O==="["){if(_.nobracket===!0||!ue().includes("]")){if(_.nobracket!==!0&&_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));O=`\\${O}`}else ie("brackets");U({type:"bracket",value:O});continue}if(O==="]"){if(_.nobracket===!0||L&&L.type==="bracket"&&L.value.length===1){U({type:"text",value:O,output:`\\${O}`});continue}if(M.brackets===0){if(_.strictBrackets===!0)throw new SyntaxError(y("opening","["));U({type:"text",value:O,output:`\\${O}`});continue}me("brackets");const W=L.value.slice(1);if(L.posix!==!0&&W[0]==="^"&&!W.includes("/")&&(O=`/${O}`),L.value+=O,H({value:O}),_.literalBrackets===!1||u.hasRegexChars(W))continue;const de=u.escapeRegex(L.value);if(M.output=M.output.slice(0,-L.value.length),_.literalBrackets===!0){M.output+=de,L.value=de;continue}L.value=`(${I}${de}|${L.value})`,M.output+=L.value;continue}if(O==="{"&&_.nobrace!==!0){ie("braces");const W={type:"brace",value:O,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};Q.push(W),U(W);continue}if(O==="}"){const W=Q[Q.length-1];if(_.nobrace===!0||!W){U({type:"text",value:O,output:O});continue}let de=")";if(W.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,_),M.backtrack=!0}if(W.comma!==!0&&W.dots!==!0){const ye=M.output.slice(0,W.outputIndex),Ae=M.tokens.slice(W.tokensIndex);W.value=W.output="\\{",O=de="\\}",M.output=ye;for(const be of Ae)M.output+=be.output||be.value}U({type:"brace",value:O,output:de}),me("braces"),Q.pop();continue}if(O==="|"){J.length>0&&J[J.length-1].conditions++,U({type:"text",value:O});continue}if(O===","){let W=O;const de=Q[Q.length-1];de&&ee[ee.length-1]==="braces"&&(de.comma=!0,W="|"),U({type:"comma",value:O,output:W});continue}if(O==="/"){if(L.type==="dot"&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",x.pop(),L=w;continue}U({type:"slash",value:O,output:P});continue}if(O==="."){if(M.braces>0&&L.type==="dot"){L.value==="."&&(L.output=j);const W=Q[Q.length-1];L.type="dots",L.output+=O,L.value+=O,W.dots=!0;continue}if(M.braces+M.parens===0&&L.type!=="bos"&&L.type!=="slash"){U({type:"text",value:O,output:j});continue}U({type:"dot",value:O,output:j});continue}if(O==="?"){if(!(L&&L.value==="(")&&_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){le("qmark",O);continue}if(L&&L.type==="paren"){const de=ae();let ye=O;if(de==="<"&&!u.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(L.value==="("&&!/[!=<:]/.test(de)||de==="<"&&!/<([!=]|\w+>)/.test(ue()))&&(ye=`\\${O}`),U({type:"text",value:O,output:ye});continue}if(_.dot!==!0&&(L.type==="slash"||L.type==="bos")){U({type:"qmark",value:O,output:oe});continue}U({type:"qmark",value:O,output:F});continue}if(O==="!"){if(_.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){le("negate",O);continue}if(_.nonegate!==!0&&M.index===0){he();continue}}if(O==="+"){if(_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){le("plus",O);continue}if(L&&L.value==="("||_.regex===!1){U({type:"plus",value:O,output:k});continue}if(L&&(L.type==="bracket"||L.type==="paren"||L.type==="brace")||M.parens>0){U({type:"plus",value:O});continue}U({type:"plus",value:k});continue}if(O==="@"){if(_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){U({type:"at",extglob:!0,value:O,output:""});continue}U({type:"text",value:O});continue}if(O!=="*"){(O==="$"||O==="^")&&(O=`\\${O}`);const W=m.exec(ue());W&&(O+=W[0],M.index+=W[0].length),U({type:"text",value:O});continue}if(L&&(L.type==="globstar"||L.star===!0)){L.type="star",L.star=!0,L.value+=O,L.output=Z,M.backtrack=!0,M.globstar=!0,se(O);continue}let X=ue();if(_.noextglob!==!0&&/^\([^?]/.test(X)){le("star",O);continue}if(L.type==="star"){if(_.noglobstar===!0){se(O);continue}const W=L.prev,de=W.prev,ye=W.type==="slash"||W.type==="bos",Ae=de&&(de.type==="star"||de.type==="globstar");if(_.bash===!0&&(!ye||X[0]&&X[0]!=="/")){U({type:"star",value:O,output:""});continue}const be=M.braces>0&&(W.type==="comma"||W.type==="brace"),Ft=J.length&&(W.type==="pipe"||W.type==="paren");if(!ye&&W.type!=="paren"&&!be&&!Ft){U({type:"star",value:O,output:""});continue}for(;X.slice(0,3)==="/**";){const ht=v[M.index+4];if(ht&&ht!=="/")break;X=X.slice(3),se("/**",3)}if(W.type==="bos"&&re()){L.type="globstar",L.value+=O,L.output=D(_),M.output=L.output,M.globstar=!0,se(O);continue}if(W.type==="slash"&&W.prev.type!=="bos"&&!Ae&&re()){M.output=M.output.slice(0,-(W.output+L.output).length),W.output=`(?:${W.output}`,L.type="globstar",L.output=D(_)+(_.strictSlashes?")":"|$)"),L.value+=O,M.globstar=!0,M.output+=W.output+L.output,se(O);continue}if(W.type==="slash"&&W.prev.type!=="bos"&&X[0]==="/"){const ht=X[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(W.output+L.output).length),W.output=`(?:${W.output}`,L.type="globstar",L.output=`${D(_)}${P}|${P}${ht})`,L.value+=O,M.output+=W.output+L.output,M.globstar=!0,se(O+ce()),U({type:"slash",value:"/",output:""});continue}if(W.type==="bos"&&X[0]==="/"){L.type="globstar",L.value+=O,L.output=`(?:^|${P}|${D(_)}${P})`,M.output=L.output,M.globstar=!0,se(O+ce()),U({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-L.output.length),L.type="globstar",L.output=D(_),L.value+=O,M.output+=L.output,M.globstar=!0,se(O);continue}const ne={type:"star",value:O,output:Z};if(_.bash===!0){ne.output=".*?",(L.type==="bos"||L.type==="slash")&&(ne.output=K+ne.output),U(ne);continue}if(L&&(L.type==="bracket"||L.type==="paren")&&_.regex===!0){ne.output=O,U(ne);continue}(M.index===M.start||L.type==="slash"||L.type==="dot")&&(L.type==="dot"?(M.output+=Y,L.output+=Y):_.dot===!0?(M.output+=V,L.output+=V):(M.output+=K,L.output+=K),ae()!=="*"&&(M.output+=q,L.output+=q)),U(ne)}for(;M.brackets>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));M.output=u.escapeLast(M.output,"["),me("brackets")}for(;M.parens>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing",")"));M.output=u.escapeLast(M.output,"("),me("parens")}for(;M.braces>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","}"));M.output=u.escapeLast(M.output,"{"),me("braces")}if(_.strictSlashes!==!0&&(L.type==="star"||L.type==="bracket")&&U({type:"maybe_slash",value:"",output:`${P}?`}),M.backtrack===!0){M.output="";for(const X of M.tokens)M.output+=X.output!=null?X.output:X.value,X.suffix&&(M.output+=X.suffix)}return M};g.fastpaths=(v,R)=>{const _={...R},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 w=u.isWindows(R),{DOT_LITERAL:x,SLASH_LITERAL:I,ONE_CHAR:$,DOTS_SLASH:A,NO_DOT:N,NO_DOTS:j,NO_DOTS_SLASH:k,STAR:P,START_ANCHOR:q}=s.globChars(w),z=_.dot?j:N,G=_.dot?k:N,Y=_.capture?"":"?:",V={negated:!1,prefix:""};let F=_.bash===!0?".*?":P;_.capture&&(F=`(${F})`);const oe=K=>K.noglobstar===!0?F:`(${Y}(?:(?!${q}${K.dot?A:x}).)*?)`,E=K=>{switch(K){case"*":return`${z}${$}${F}`;case".*":return`${x}${$}${F}`;case"*.*":return`${z}${F}${x}${$}${F}`;case"*/*":return`${z}${F}${I}${$}${G}${F}`;case"**":return z+oe(_);case"**/*":return`(?:${z}${oe(_)}${I})?${G}${$}${F}`;case"**/*.*":return`(?:${z}${oe(_)}${I})?${G}${F}${x}${$}${F}`;case"**/.*":return`(?:${z}${oe(_)}${I})?${x}${$}${F}`;default:{const te=/^(.*?)\.(\w+)$/.exec(K);if(!te)return;const Z=E(te[1]);return Z?Z+x+te[2]:void 0}}},T=u.removePrefix(v,V);let D=E(T);return D&&_.strictSlashes!==!0&&(D+=`${I}?`),D},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(A=>f(A,y,g));return A=>{for(const N of I){const j=N(A);if(j)return j}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 R=y||{},_=p.isWindows(y),S=v?f.compileRe(h,y):f.makeRe(h,y,!1,!0),C=S.state;delete S.state;let w=()=>!1;if(R.ignore){const I={...y,ignore:null,onMatch:null,onResult:null};w=f(R.ignore,I,g)}const x=(I,$=!1)=>{const{isMatch:A,match:N,output:j}=f.test(I,S,y,{glob:h,posix:_}),k={glob:h,state:C,regex:S,posix:_,input:I,output:j,match:N,isMatch:A};return typeof R.onResult=="function"&&R.onResult(k),A===!1?(k.isMatch=!1,$?k:!1):w(I)?(typeof R.onIgnore=="function"&&R.onIgnore(k),k.isMatch=!1,$?k:!1):(typeof R.onMatch=="function"&&R.onMatch(k),$?k:!0)};return g&&(x.state=C),x};f.test=(h,y,g,{glob:v,posix:R}={})=>{if(typeof h!="string")throw new TypeError("Expected input to be a string");if(h==="")return{isMatch:!1,output:""};const _=g||{},S=_.format||(R?p.toPosixSlashes:null);let C=h===v,w=C&&S?S(h):h;return C===!1&&(w=S?S(h):h,C=w===v),(C===!1||_.capture===!0)&&(_.matchBase===!0||_.basename===!0?C=f.matchBase(h,y,g,R):C=y.exec(w)),{isMatch:!!C,match:C,output:w}},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 R=y||{},_=R.contains?"":"^",S=R.contains?"":"$";let C=`${_}(?:${h.output})${S}`;h&&h.negated===!0&&(C=`^(?!${C}).*$`);const w=f.toRegex(C,y);return v===!0&&(w.state=h),w},f.makeRe=(h,y,g=!1,v=!1)=>{if(!h||typeof h!="string")throw new TypeError("Expected a non-empty string");const R=y||{};let _={negated:!1,fastpaths:!0},S="",C;return h.startsWith("./")&&(h=h.slice(2),S=_.prefix="./"),R.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:R,CHAR_QUESTION_MARK:_,CHAR_RIGHT_CURLY_BRACE:S,CHAR_RIGHT_PARENTHESES:C,CHAR_RIGHT_SQUARE_BRACKET:w}=a(356),x=A=>A===h||A===p,I=A=>{A.isPrefix!==!0&&(A.depth=A.isGlobstar?1/0:1)},$=(A,N)=>{const j=N||{},k=A.length-1,P=j.parts===!0||j.scanToEnd===!0,q=[],z=[],G=[];let Y=A,V=-1,F=0,oe=0,E=!1,T=!1,D=!1,K=!1,te=!1,Z=!1,M=!1,J=!1,Q=!1,ee=0,L,O,re={value:"",depth:0,isGlob:!1};const ae=()=>V>=k,ce=()=>Y.charCodeAt(V+1),ue=()=>(L=O,Y.charCodeAt(++V));for(;V<k;){O=ue();let me;if(O===p){M=re.backslashes=!0,O=ue(),O===y&&(Z=!0);continue}if(Z===!0||O===y){for(ee++;ae()!==!0&&(O=ue());){if(O===p){M=re.backslashes=!0,ue();continue}if(O===y){ee++;continue}if(Z!==!0&&O===d&&(O=ue())===d){if(E=re.isBrace=!0,D=re.isGlob=!0,Q=!0,P===!0)continue;break}if(Z!==!0&&O===m){if(E=re.isBrace=!0,D=re.isGlob=!0,Q=!0,P===!0)continue;break}if(O===S&&(ee--,ee===0)){Z=!1,E=re.isBrace=!0,Q=!0;break}}if(P===!0)continue;break}if(O===h){if(q.push(V),z.push(re),re={value:"",depth:0,isGlob:!1},Q===!0)continue;if(L===d&&V===F+1){F+=2;continue}oe=V+1;continue}if(j.noext!==!0&&(O===R||O===l||O===u||O===_||O===f)===!0&&ce()===g){if(D=re.isGlob=!0,K=re.isExtglob=!0,Q=!0,P===!0){for(;ae()!==!0&&(O=ue());){if(O===p){M=re.backslashes=!0,O=ue();continue}if(O===C){D=re.isGlob=!0,Q=!0;break}}continue}break}if(O===u){if(L===u&&(te=re.isGlobstar=!0),D=re.isGlob=!0,Q=!0,P===!0)continue;break}if(O===_){if(D=re.isGlob=!0,Q=!0,P===!0)continue;break}if(O===v){for(;ae()!==!0&&(me=ue());){if(me===p){M=re.backslashes=!0,ue();continue}if(me===w){T=re.isBracket=!0,D=re.isGlob=!0,Q=!0;break}}if(P===!0)continue;break}if(j.nonegate!==!0&&O===f&&V===F){J=re.negated=!0,F++;continue}if(j.noparen!==!0&&O===g){if(D=re.isGlob=!0,P===!0){for(;ae()!==!0&&(O=ue());){if(O===g){M=re.backslashes=!0,O=ue();continue}if(O===C){Q=!0;break}}continue}break}if(D===!0){if(Q=!0,P===!0)continue;break}}j.noext===!0&&(K=!1,D=!1);let se=Y,H="",he="";F>0&&(H=Y.slice(0,F),Y=Y.slice(F),oe-=F),se&&D===!0&&oe>0?(se=Y.slice(0,oe),he=Y.slice(oe)):D===!0?(se="",he=Y):se=Y,se&&se!==""&&se!=="/"&&se!==Y&&x(se.charCodeAt(se.length-1))&&(se=se.slice(0,-1)),j.unescape===!0&&(he&&(he=s.removeBackslashes(he)),se&&M===!0&&(se=s.removeBackslashes(se)));const ie={prefix:H,input:A,start:F,base:se,glob:he,isBrace:E,isBracket:T,isGlob:D,isExtglob:K,isGlobstar:te,negated:J};if(j.tokens===!0&&(ie.maxDepth=0,x(O)||z.push(re),ie.tokens=z),j.parts===!0||j.tokens===!0){let me;for(let U=0;U<q.length;U++){const le=me?me+1:F,Ce=q[U],X=A.slice(le,Ce);j.tokens&&(U===0&&F!==0?(z[U].isPrefix=!0,z[U].value=H):z[U].value=X,I(z[U]),ie.maxDepth+=z[U].depth),(U!==0||X!=="")&&G.push(X),me=Ce}if(me&&me+1<A.length){const U=A.slice(me+1);G.push(U),j.tokens&&(z[z.length-1].value=U,I(z[z.length-1]),ie.maxDepth+=z[z.length-1].depth)}ie.slashes=q,ie.parts=G}return ie};o.exports=$},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 R=`${g}(?:${f})${v}`;return h.negated===!0&&(R=`(?:^(?!${R}).*$)`),R}},492:(o,i,a)=>{/*!
|
|
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,Gt)=>Ae==="\\"?(Q=!0,V):Ae==="?"?de?de+Ae+(be?z.repeat(be.length):""):Gt===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"),Gt=J.length&&(V.type==="pipe"||V.type==="paren");if(!ye&&V.type!=="paren"&&!be&&!Gt){W({type:"star",value:N,output:""});continue}for(;Q.slice(0,3)==="/**";){const ht=v[T.index+4];if(ht&&ht!=="/")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 ht=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}${ht})`,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
36
|
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
37
37
|
*
|
|
38
38
|
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
39
39
|
* Released under the MIT License.
|
|
40
|
-
*/const s=a(357),u=(x,I
|
|
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))}}(Rr)),Rr}var pa;function cc(){return pa||(pa=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}=jf();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}(Ar)),Ar}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return R}});const r=Re,o=Xe._(B),i=r._(_a),a=r._(qd()),s=ro,u=Bt,l=Bd(),p=ut,m=Ms(),d=r._(cc()),f=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function h(_,S,C,w,x,I){const $=_==null?void 0:_.src;if(!_||_["data-loaded-src"]===$)return;_["data-loaded-src"]=$,("decode"in _?_.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!_.parentElement||!_.isConnected)){if(S!=="empty"&&x(!0),C!=null&&C.current){const N=new Event("load");Object.defineProperty(N,"target",{writable:!1,value:_});let j=!1,k=!1;C.current({...N,nativeEvent:N,currentTarget:_,target:_,isDefaultPrevented:()=>j,isPropagationStopped:()=>k,persist:()=>{},preventDefault:()=>{j=!0,N.preventDefault()},stopPropagation:()=>{k=!0,N.stopPropagation()}})}if(w!=null&&w.current&&w.current(_),process.env.NODE_ENV!=="production"){const N=new URL($,"http://n").searchParams.get("url")||$;if(_.getAttribute("data-nimg")==="fill"){if(!I&&(!_.getAttribute("sizes")||_.getAttribute("sizes")==="100vw")&&_.getBoundingClientRect().width/window.innerWidth<.6&&(0,p.warnOnce)('Image with src "'+N+'" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes'),_.parentElement){const{position:P}=window.getComputedStyle(_.parentElement),q=["absolute","fixed","relative"];q.includes(P)||(0,p.warnOnce)('Image with src "'+N+'" has "fill" and parent element with invalid "position". Provided "'+P+'" should be one of '+q.map(String).join(",")+".")}_.height===0&&(0,p.warnOnce)('Image with src "'+N+'" has "fill" and a height value of 0. This is likely because the parent element of the image has not been styled to have a set height.')}const j=_.height.toString()!==_.getAttribute("height"),k=_.width.toString()!==_.getAttribute("width");(j&&!k||!j&&k)&&(0,p.warnOnce)('Image with src "'+N+`" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`)}}})}function y(_){const[S,C]=o.version.split("."),w=parseInt(S,10),x=parseInt(C,10);return w>18||w===18&&x>=3?{fetchPriority:_}:{fetchpriority:_}}const g=(0,o.forwardRef)((_,S)=>{let{src:C,srcSet:w,sizes:x,height:I,width:$,decoding:A,className:N,style:j,fetchPriority:k,placeholder:P,loading:q,unoptimized:z,fill:G,onLoadRef:Y,onLoadingCompleteRef:V,setBlurComplete:F,setShowAltText:oe,onLoad:E,onError:T,...D}=_;return o.default.createElement("img",{...D,...y(k),loading:q,width:$,height:I,decoding:A,"data-nimg":G?"fill":"1",className:N,style:j,sizes:x,srcSet:w,src:C,ref:(0,o.useCallback)(K=>{S&&(typeof S=="function"?S(K):typeof S=="object"&&(S.current=K)),K&&(T&&(K.src=K.src),process.env.NODE_ENV!=="production"&&(C||console.error('Image is missing required "src" property:',K),K.getAttribute("alt")===null&&console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.')),K.complete&&h(K,P,Y,V,F,z))},[C,P,Y,V,F,T,z,S]),onLoad:K=>{const te=K.currentTarget;h(te,P,Y,V,F,z)},onError:K=>{oe(!0),P!=="empty"&&F(!0),T&&T(K)}})});function v(_){let{isAppRouter:S,imgAttributes:C}=_;const w={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,w),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,...w}))}const R=(0,o.forwardRef)((_,S)=>{const w=!(0,o.useContext)(m.RouterContext),x=(0,o.useContext)(l.ImageConfigContext),I=(0,o.useMemo)(()=>{const V=f||x||u.imageConfigDefault,F=[...V.deviceSizes,...V.imageSizes].sort((E,T)=>E-T),oe=V.deviceSizes.sort((E,T)=>E-T);return{...V,allSizes:F,deviceSizes:oe}},[x]),{onLoad:$,onLoadingComplete:A}=_,N=(0,o.useRef)($);(0,o.useEffect)(()=>{N.current=$},[$]);const j=(0,o.useRef)(A);(0,o.useEffect)(()=>{j.current=A},[A]);const[k,P]=(0,o.useState)(!1),[q,z]=(0,o.useState)(!1),{props:G,meta:Y}=(0,s.getImgProps)(_,{defaultLoader:d.default,imgConf:I,blurComplete:k,showAltText:q});return o.default.createElement(o.default.Fragment,null,o.default.createElement(g,{...G,unoptimized:Y.unoptimized,placeholder:Y.placeholder,fill:Y.fill,onLoadRef:N,onLoadingCompleteRef:j,setBlurComplete:P,setShowAltText:z,ref:S}),Y.priority?o.default.createElement(v,{isAppRouter:w,imgAttributes:G}):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)})(Hn,Hn.exports);var If=Hn.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=Re,n=ro,o=ut,i=If,a=r._(cc()),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})(Ys);var Pf=Ys;const ma=Dt(Pf),Nf=({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(ma,{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(ma,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):c.jsx(b.Icon,{size:"small",name:n})]})},Of=({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(Nf,{item:o,CONSTANTS:t},`footer-support-item-${i}`))})]},`footer-support-${n}`))}),Tf=({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})]})}),Mf=({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})})})]}),jn=e=>{const{isMobile:t}=ke();return t?c.jsx(Mf,{...e}):c.jsx(Tf,{...e})},Nt=({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:R}=ge(),{nextimage:_}=Ne();switch(e){case"menu":v=c.jsx(we,{className:pe.footer__itemLink,href:u??"#",prefetch:!1,children:c.jsx("span",{onClick:()=>{R({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:()=>R({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})})},kf=({className:e,text:t,...r})=>c.jsx("div",{...r,className:b.helpers.classNameConcat(pe.footer__legalInformation,e),children:c.jsx("span",{children:t})}),uc=()=>{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})})};uc.displayName="Footer.Stamps";const lc=({children:e,legalTextSlot:t,adornment:r,className:n,...o})=>{const{isMobile:i}=ke(),a=B.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})]})};lc.displayName="Footer.Wrapper";const dc=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:n,adornment:o,LEGAL_INFORMATION_TEXT:i,ICONS:a})=>{var s;return c.jsxs(lc,{adornment:o,legalTextSlot:c.jsx(kf,{text:i}),children:[Array.isArray(e.column)&&e.column.map((u,l)=>c.jsx(jn,{id:`${l}column-menu`,name:u.name,nameIcon:u.nameIcon,ICONS:a,children:u.items.map((p,m)=>c.jsx(Nt,{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(jn,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:a,children:c.jsx(Nt,{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(jn,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:a,children:[r!=null&&r.subTitle?c.jsx(Nt,{children:r==null?void 0:r.subTitle}):null,c.jsx(Nt,{type:"social-media",iconSize:24,iconLink:n}),c.jsx(uc,{})]})]})};dc.displayName="Footer";const Lf=Object.freeze(Object.defineProperty({__proto__:null,Footer:dc,FooterSupport:Of},Symbol.toStringTag,{value:"Module"})),so={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},co=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=Ye(),{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"})]})})};co.displayName="Header.Bag";const pt=({children:e,href:t,...r})=>t&&t!=="#"?c.jsx(we,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,fc=()=>{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(pt,{href:i.link,onMouseEnter:()=>o(i.submenuId),onFocus:()=>o(i.submenuId),children:c.jsx(b.Header.CategoryItem,{className:so["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}`))})};fc.displayName="Header.Categories";function Df({SearchModal:e}){const{handleSelectContent:t}=ge(),{CONSTANTS:r}=xe(),{setValue:n}=Xn();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 $f={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},uo=({thumbnails:e,category:t,isMobile:r=!0,callBack:n})=>{const{handleSelectPromotionEvent:o}=ge(),i=50/e.length;return c.jsx("div",{className:$f["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(Jn,{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}`)})})};uo.displayName="Menu.Thumbnail";const zn={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},pc=({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:zn["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(pt,{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:zn["submenu-categories"],children:l.items.map((g,v)=>c.jsx(b.ComponentList.ListItem,{id:`list-item-${g.label}-${v}`,children:c.jsx(Ze,{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"})]})};pc.displayName="Menu.Categories";const mc=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:n}=xe();return c.jsxs(c.Fragment,{children:[c.jsx("div",{...r,className:zn["menu-desktop"],style:{...r.style,justifyContent:n.header.ALIGNMENT_MENU},children:e}),t&&c.jsx(b.Utils.Divider,{size:"small"})]})};mc.displayName="Menu.MenuRoot";const qf=to(()=>Promise.resolve(mc),{ssr:!1}),In={Root:qf,Categories:pc,Thumbnail:uo},hc=()=>{const{headerData:e,CONSTANTS:t}=xe(),r=Lt(),{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(In.Root,{id:u,style:l?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:l,children:[c.jsx(In.Categories,{dividerOnRight:!!p,subMenu:o}),Array.isArray(a)&&c.jsx(In.Thumbnail,{thumbnails:a,isMobile:!1,category:s,callBack:n})]},`submenu-${u}-${i}`)})})};hc.displayName="Header.SubMenu";const gc=()=>{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"})})})};gc.displayName="Header.WishList";const yc=({UserMenu:e,SearchModal:t})=>{const r=B.useRef(null),{CONSTANTS:n}=xe(),{handleSelectContent:o}=ge(),{reset:i}=De(),{setValue:a}=Qn();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(fc,{}),c.jsxs(b.Header.Support,{onMouseEnter:i,style:{justifyContent:"flex-end"},children:[c.jsx(Df,{SearchModal:t}),c.jsx(e,{target:r.current,children:c.jsx(b.Header.SupportItem,{onClick:()=>{a(!0),o({content:"header:user_menu"})},className:so["btn-login"],innerRef:r,children:c.jsx(b.Icon,{name:n.header.ICONS.person,size:"medium"})})}),c.jsx(gc,{}),c.jsx(co,{id:"cart-button"})]})]}),c.jsx(hc,{})]})};yc.displayName="Header.HeaderDesktopWrapper";const Bf="_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:Bf,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},_c=({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})});_c.displayName="Menu.MenuCategories";const vc=({children:e,link:t})=>{const{reset:r}=He();return t?c.jsx(we,{href:t??"#",onClick:r,children:e}):e};vc.displayName="Menu.MenuCategoriesWrapper";const bc=({subcategory:e,submenuLabel:t})=>{var u,l,p;const{router:r}=Ne(),{reset:n}=He(),{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(pt,{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(Ze,{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})]})};bc.displayName="Menu.SubMenuSubCategory";const xc=({submenu:e})=>{var i;const t=Lt(),{handleCloseSubMenu:r}=ct(),{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(uo,{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(bc,{subcategory:a,submenuLabel:e.label},`list-${a.label}-${s}`))]})};xc.displayName="Menu.SubMenuItem";const Cc=()=>{const{headerData:e}=xe(),t=Lt(),{reset:r}=De(),{bodyRef:n}=ct();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(xc,{submenu:o},`submenu-${o.id}-${i}`))})})};Cc.displayName="Menu.SubMenu";const Sc=({className:e,...t})=>{const{headerData:r}=xe(),{setValue:n}=De(),{bodyRef:o}=ct(),{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(vc,{link:a.submenuId?null:a.link,children:c.jsx(_c,{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(Cc,{})]})};Sc.displayName="Menu.MenuBody";const Ac=({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})]})};Ac.displayName="Menu.MenuHeaderWrapper";const Rc=({navigationLinks:e})=>{const{reset:t}=He(),{handleSelectContent:r}=ge();return e?c.jsx("nav",{className:_e["menu-header-navlinks"],children:e.map((n,o)=>c.jsx(Ze,{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};Rc.displayName="Menu.MenuHeaderNavLinks";const Ec=()=>{const{headerData:e}=xe();return c.jsxs("div",{className:_e["menu-header-container"],children:[c.jsx(Ac,{title:e.title,subtitle:e.subtitle}),c.jsx(Rc,{navigationLinks:e.navigationLinks})]})};Ec.displayName="Menu.MenuHeaderContainer";const wc=({children:e})=>{const{documentBodyRef:t}=ct(),{CONSTANTS:r}=xe(),n=Kn(),{setValue:o}=He();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})})};wc.displayName="Menu.MenuRoot";const Hf=to(()=>Promise.resolve(wc),{ssr:!1}),Tt=({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})]});Tt.displayName="Menu.NavigationBarItem";const jc=()=>{const{setIsOpen:e}=Ye(),{reset:t}=He(),{setValue:r}=Qn(),{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(Tt,{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(Tt,{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(Tt,{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})]})};jc.displayName="Menu.NavigationBar";const Ot={Root:Hf,NavigationBar:jc,Header:Ec,Body:Sc},Ic=({UserMenu:e,SearchModal:t})=>{const r=B.useRef(null),{CONSTANTS:n}=xe(),{MENU_NAVIGATION_BAR_ALLOWED:o,ICONS:i}=n.header,{handleSelectContent:a}=ge(),{setValue:s}=Xn(),{setValue:u}=He();return c.jsxs(c.Fragment,{children:[c.jsxs(b.Header.Wrapper,{children:[c.jsx(b.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:c.jsx(we,{href:"/",children:c.jsx(b.Icon,{name:i.logo,size:"x-large",onClick:()=>{a({content:"header:logo"})}})})}),c.jsxs(b.Header.Support,{children:[c.jsx(b.Header.SupportItem,{onClick:()=>{s(!0),a({content:"header:search"})},children:c.jsx(b.Icon,{name:i.search,size:"medium"})}),c.jsx(co,{}),c.jsxs(b.Header.SupportItem,{onClick:()=>u(!0),children:[c.jsx("span",{ref:r}),c.jsx(b.Icon,{name:i.menu,size:"medium"})]})]})]}),c.jsx(t,{recommendations:!1,trends:!0}),c.jsx(_s,{children:c.jsx(e,{target:r==null?void 0:r.current,children:c.jsxs(Ot.Root,{children:[c.jsx(Ot.Header,{}),c.jsx(Ot.Body,{}),o?c.jsx(Ot.NavigationBar,{}):c.jsx(c.Fragment,{})]})})})]})};Ic.displayName="Header.HeaderMobileWrapper";const Pc=({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:so["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:Mt["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:u.header_mobile},children:c.jsx(Ic,{UserMenu:r,SearchModal:n})}),c.jsx("div",{className:Mt["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:u.header_desktop},children:c.jsx(yc,{UserMenu:r,SearchModal:n})}),t,c.jsx(eo,{title:"Produto adicionado à sua sacola!",CONSTANTS:a.addToCart})]})})};Pc.displayName="Header";const zf="_shippingFreight_6z8rf_6",Ff="_shippingFreight__postalCodeGrid_6z8rf_10",Uf="_shippingFreight__grid_6z8rf_14",Wf="_shippingFreight__grid__title_6z8rf_18",Gf="_shippingFreight__grid__remember_6z8rf_29",Vf="_postalCodeContainer_6z8rf_44",Kf="_deliveryStatusBar__tag_6z8rf_49",Xf="_deliveryStatusBarError__tag_6z8rf_66",Qf="_deliveryInfo_6z8rf_74",Yf="_deliveryInfo__content_6z8rf_78",Zf="_deliveryInfo__text_6z8rf_84",Jf="_deliveryInfo__title_6z8rf_89",ep="_deliveryInfo__subtitle_6z8rf_99",tp="_deliveryInfo__tooltipIcon_6z8rf_109",rp="_deliveryInfo__tooltip_6z8rf_109",np="_freightGrid_6z8rf_148",op="_freightContainer_6z8rf_155",ip="_freightOption__content_6z8rf_160",ap="_freightOption__value_6z8rf_166",sp="_freightOption__title_6z8rf_177",cp="_freightOption__title_item_6z8rf_181",up="_freightOption__paragraph_6z8rf_192",fe={shippingFreight:zf,shippingFreight__postalCodeGrid:Ff,shippingFreight__grid:Uf,shippingFreight__grid__title:Wf,shippingFreight__grid__remember:Gf,postalCodeContainer:Vf,deliveryStatusBar__tag:Kf,deliveryStatusBarError__tag:Xf,deliveryInfo:Qf,deliveryInfo__content:Yf,deliveryInfo__text:Zf,deliveryInfo__title:Jf,deliveryInfo__subtitle:ep,deliveryInfo__tooltipIcon:tp,deliveryInfo__tooltip:rp,freightGrid:np,freightContainer:op,freightOption__content:ip,freightOption__value:ap,freightOption__title:sp,freightOption__title_item:cp,freightOption__paragraph:up,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},lp=({icon:e,title:t,subtitle:r,packageCount:n,packageUnit:o="",labelDescription:i,freightConfig:a,toolTipZIndex:s})=>{const[u,l]=B.useState(!1),p=B.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})]})]})]})},dp=({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})]})})})]})}),fp=({children:e})=>c.jsx("div",{className:fe.freightContainer,children:e}),pp=({children:e})=>c.jsx("div",{className:fe.freightGrid,children:e}),mp=({children:e})=>c.jsx("div",{className:fe.postalCodeContainer,children:e}),ha=({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]})}),hp=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},gp=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},yp=({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})})},_p=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:n,quantity:o,setError:i,setIsButtonClicked:a,component:s,freightConfig:u,toolTipZIndex:l})=>{var N,j,k,P;const p=Ve(),m=Ve(q=>q.shipping),[d,f]=B.useState(),[h,y]=B.useState(!1),[g,v]=B.useState(!1),[R,_]=B.useState(!1),S=(j=(N=p.shippingData)==null?void 0:N.address)==null?void 0:j.postalCode,C=!(d!=null&&d.length)&&S?S:d,w=B.useRef(null),x=async q=>{const G=q.target.value.replace(/\D/g,"").slice(0,8);G.length>5?f(G.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):f(G)},I=async q=>{const z=q.target.value.replace(/\D/g,"");try{if((await po.get(`https://viacep.com.br/ws/${z}/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.")}},$=async()=>{y(!0);try{const q=await po.post("/api/checkout/simulation",{items:[{id:n,quantity:o,seller:t}],country:"BRA",postalCode:C});e(gp(q.data))}catch(q){console.error("Erro ao atualizar o documento:",q)}finally{y(!1),m(C,"BRA")}},A=async()=>{if(!n){_(!0),setTimeout(()=>_(!1),1500);return}await I({target:{value:C}}),h||($(),a(!0))};return c.jsxs("div",{ref:w,style:{position:"relative"},children:[!n&&R?c.jsx(yp,{component:s,isOpen:R,parent:w.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:(P=(k=p.shippingData)==null?void 0:k.address)==null?void 0:P.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:q=>{q.key==="Enter"&&A()},className:fe["input-modifier"],feedback:g?"error":"none"}),right:c.jsx(b.Button,{onClick:A,size:r,title:"button",children:h?c.jsx(b.Spinner,{size:"small",indicatorColor:"#ffffff"}):u.messages.text_input_btn})})})]})},vp=({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(Ze,{href:"https://buscacepinter.correios.com.br/app/endereco/index.php",passHref:!0,target:"_blank",rel:"noopener noreferrer",size:"x-small",disablePadding:!1,title:t.messages.remember_cep,children:t.messages.remember_cep})})]}),c.jsx("div",{className:fe.shippingFreight__postalCodeGrid,children:e})]}),bp=({children:e})=>c.jsx("div",{className:fe.freightContainer,children:e}),xp=({className:e,sellerId:t,skuId:r,quantity:n,size:o,seller:i,local:a,CONSTANTS_PROPS:s})=>{const{sendDataLayerEvent:u}=ge(),[l,p]=B.useState(""),[m,d]=B.useState([]),[f,h]=B.useState(""),[y,g]=B.useState(!1),v=_=>p(_),R=_=>{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(bp,{className:e,children:[c.jsxs(vp,{freightConfig:s.freightConfig,children:[c.jsx(mp,{children:c.jsx(_p,{onUpdateFreightItems:R,skuId:r,quantity:n,size:o,sellerId:t,local:a,setError:h,setIsButtonClicked:g,freightConfig:s.freightConfig,toolTipZIndex:s.toolTipZIndex})}),f?c.jsx(ha,{size:o,message:f,setError:h}):m.length>0&&c.jsx(ha,{size:o,message:s.freightConfig.messages.delivered_by,seller:i})]}),y&&!f?m.length>0&&c.jsxs(fp,{children:[c.jsx(pp,{children:m.filter(({id:_})=>!_.includes("Retirada")).map(_=>c.jsx(dp,{id:_.id,value:Ca({valueInCents:_.price,hasFree:!1,freeTaxMessage:s.freightConfig.messages.free_tax}),title:_.name,paragraph:`${s.freightConfig.messages.prefix_days}${hp(_.shippingEstimate)}`,radioValue:l,changeValue:v},_.id))}),s.deliveryInfoBoxesAllowed?c.jsx(lp,{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]})},Nc=B.createContext({}),Cp=({children:e,item:t,index:r,shelfTitle:n,...o})=>{const[i,a]=B.useState(null),s=B.useRef(null),u=B.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(Nc.Provider,{value:B.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})},Ie=()=>{const e=B.useContext(Nc);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"},Oc=({callback:e,children:t,className:r,data:n,isKit:o,...i})=>{const{item:{availability:{status:a},image:s}}=Ie();return a?c.jsxs("div",{...i,className:b.helpers.classNameConcat(Se["product-card--actions"],r),children:[c.jsxs(Ge.Wrapper,{type:"actions--group",children:[c.jsx(Ge.Price,{}),c.jsx("div",{className:Se["product-card--actions--selectors"],children:!o&&c.jsx(Ge.StyleSelector,{data:n,images:s,callback:e})})]}),t]}):null};Oc.displayName="ProductCard.Actions";const Tc=({className:e,isKit:t,...r})=>{const{addToCart:n}=Ye(),{isMobile:o=!1,selectedSku:i,outStock:a,item:s,sendAddToCartEvent:u,CONSTANTS:l}=Ie(),p=()=>{var f;if(!i)return;const d=Ea(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})};Tc.displayName="ProductCard.Actions.BuyButton";const Mc=({product:e,tag:t,size:r="small"})=>{const n=e.offers.offers[0],{CONSTANTS:o,WishListToggle:i}=Ie();return c.jsxs(Ge.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"})]})};Mc.displayName="ProductCard.Actions.Header";const kc=({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}=Ie(),f=Pa({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)=>B.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(Ge.Video,{url:l,poster:f[0].url}),t]})};kc.displayName="ProductCard.Media.Media";const Lc=({className:e,callback:t,children:r,...n})=>{const{isMobile:o,item:i,CONSTANTS:{PRODUCT_CARD_TEXTS:a}}=Ie(),{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})]})};Lc.displayName="ProductCard.OutStock";const Dc=({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(Cp,{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})});Dc.displayName="ProductCard.Root";const $c=({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})]});$c.displayName="ProductCard.SizeSelector.Item";const qc=({active:e=!1,callback:t,selectedSku:r=null,item:n,setNotify:o})=>{const{item:i,isMobile:a,setSelectedSku:s,eventDataRef:u}=Ie();n.productId=i.id;const l=Ra(n),p=Sa(n,"tamanho");!l&&!u.current.availableSkus.includes(p)&&u.current.availableSkus.push(p);const m=B.useCallback(f=>{const h=r===f?null:f;typeof s=="function"&&s(h),typeof t=="function"&&t(h)},[t,s,r]),d=B.useCallback(()=>{if(l&&typeof o=="function"){o(i,n);return}m(n)},[n,o,m,l,i]);return c.jsx($c,{active:e,disabled:l,label:p,onClick:()=>d(),size:a?"x-small":"small",value:n})};qc.displayName="ProductCard.SizeSelector.SkuItem";const Bc=({callback:e,className:t="",children:r,setNotify:n,...o})=>{const{isMobile:i,item:{isVariantOf:{hasVariant:a}},selectedSku:s}=Ie();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(qc,{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})]})};Bc.displayName="ProductCard.SizeSelector";const Fn=({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]})})]})]}),Sp=({children:e,callback:t,data:r,total:n=4,size:o,...i})=>{const{index:a}=Ie(),{triggerSelectItemEventRef:s}=ge();return c.jsxs("div",{...i,children:[e,Array.isArray(r)&&r.slice(0,n).map((u,l)=>c.jsx(Fn,{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(Fn,{size:o,total:r.length-n,more:!0})]})},Hc=({callback:e,className:t,data:r,images:n=[],findTexture:o,...i})=>{const{CONSTANTS:a}=Ie(),s=o||a.TEXTURE_IMAGE,u=n==null?void 0:n.find(l=>s.includes(l.alternateName));return c.jsx(Sp,{...i,callback:e,className:b.helpers.classNameConcat(Se["product-card--selectors--style"],t),data:r,size:"x-small",children:u&&c.jsx(Fn,{active:!0,size:"x-small",src:u.url})})};Hc.displayName="ProductCard.StyleSelector";const zc=({className:e,hasDecimal:t,...r})=>{const{isMobile:n,item:{offers:{lowPrice:o,highPrice:i},installments:{count:a,value:s}},eventDataRef:u}=Ie();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]})})})};zc.displayName="ProductCard.Price";const Fc=({tag:e,className:t})=>{const{item:{name:r}}=Ie();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})})})})]})};Fc.displayName="ProductCard.Title";const Uc=({className:e,url:t,poster:r,...n})=>{const{element:o}=Ie();return B.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=>{Na(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})})};Uc.displayName="ProductCard.Media.Video";const Wc=({children:e,className:t,type:r,...n})=>c.jsx("div",{...n,className:b.helpers.classNameConcat(Se[`product-card--${r}`],t),children:e});Wc.displayName="ProductCard.Wrapper";const Ge={Actions:Oc,BuyButton:Tc,Header:Mc,Media:kc,Root:Dc,OutStock:Lc,Price:zc,SizeSelector:Bc,StyleSelector:Hc,Title:Fc,Video:Uc,Wrapper:Wc},ga=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:n})=>{const o=ja(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)},Ap=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:n}=ge(),o=B.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})},Rp={"gallery-carousel-modifier":"_gallery-carousel-modifier_1dxfy_92"},Gc=({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:Rp["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(ga,{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(Ap,{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(ga,{image:m,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},`PDP_gallery_${d}`))]})]})};Gc.displayName="PDP.Carousel";const Ep=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{video:r,productName:n}=Gn(),[o,i]=B.useState({show:!1,initialIndex:0});B.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(Gc,{images:e,video:r,handleZoom:a,productName:n,PRODUCT_IMAGE_DIMENSIONS:t})})},Vc=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{images:r}=Gn(),n=B.useMemo(()=>{const o=r.filter(i=>!e.includes(i.imageLabel));return o.length>0?o:r},[]);return c.jsx(Ep,{productImgs:n,PRODUCT_IMAGE_DIMENSIONS:t})};Vc.displayName="PDP.Gallery";const wp=Object.freeze(Object.defineProperty({__proto__:null,Gallery:Vc},Symbol.toStringTag,{value:"Module"})),jp={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},lo=({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(jp["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})]});lo.displayName="SnackBar";const Kc=B.createContext({}),Ip=({data:e,children:t,...r})=>{var h,y,g,v,R,_,S,C,w,x,I,$,A;const[n,o]=B.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:(_=(R=e==null?void 0:e.staticConfig)==null?void 0:R.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=(w=e==null?void 0:e.staticConfig)==null?void 0:w.staticConfig)==null?void 0:x.textColorVariant,content:(($=(I=e==null?void 0:e.content)==null?void 0:I.content)==null?void 0:$.items)??[]},l=(A=u.content)==null?void 0:A.filter(N=>!N.countDownEndDate||new Date(N.countDownEndDate)>new Date),p=l.length>1,m={...u.backgroundColor?{backgroundColor:u.backgroundColor}:{}},d=()=>{o(!1)},f=b.helpers.ValidateProp({fieldTypes:nt.Mode,property:u.textColorVariant,fallback:"default"});return c.jsx(Kc.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=()=>B.useContext(Kc),Pp=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=$e();return c.jsx($n,{dateEnd:new Date(e),TIME_ZONE:r,...t})},Np="_tipbar_bt3p0_1",Op="_tipbar__carousel_bt3p0_15",mt={tipbar:Np,tipbar__carousel:Op,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},Tp=({coupon:e,feedbackTitle:t,feedbackDescription:r,...n})=>{const{CONSTANTS:o}=$e(),[i,a]=B.useState({status:!1,showSnackBar:!1}),s=()=>{a({status:!0,showSnackBar:!0})};return B.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:mt["tipbar-item__coupon"],children:i.status?"Cupom aplicado":"Aplicar cupom"}),i.showSnackBar&&(t||r)&&c.jsx(lo,{title:t,subtitle:r,Z_INDEX_WAR:o.Z_INDEX_WAR},`feedback-coupon-${e}`)]})},Mp=({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})]})}),kp=({className:e,description:t,staticZone:r,title:n,type:o})=>{const{mode:i}=$e();if(o==="countdown")return c.jsx(Pp,{dateEnd:r.countDownEndDate,size:"x-small",mode:i});if(o==="coupon"){const a=b.helpers.ValidateProp({fieldTypes:nt.Mode,property:r.couponButtonMode,fallback:"default"}),s=b.helpers.ValidateProp({fieldTypes:nt.VariantsExtended,property:r.couponButtonVariant,fallback:"primary"});return r.coupon?c.jsx(Tp,{coupon:r.coupon,mode:a,variant:s,feedbackTitle:r.couponFeedbackTitle,feedbackDescription:r.couponFeedbackDescription}):null}return c.jsx(Mp,{title:n,description:t,mode:i,className:e})},Lp=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:n})=>{const{carouselProps:o,CONSTANTS:i}=$e(),a=B.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=B.useCallback(()=>{if(n&&o.controller){const l=setInterval(()=>{var p;(p=o.controller)==null||p.nextPage()},n);a.current=l}},[n,o]);return B.useEffect(()=>(u(),()=>{a.current&&clearInterval(a.current)}),[n,u]),c.jsxs(b.Carousel.Root,{innerRef:l=>{o.initialize(l)},className:mt.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})}})]})},ya=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=$e();return c.jsx(b.Button,{title:"fechar tipbar",className:mt["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:c.jsx(b.Icon,{name:r.ICONS.close})}})},Dp=({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:mt.tipbar,children:t?c.jsxs(c.Fragment,{children:[c.jsx(Lp,{mode:r,showCarouselArrows:u,slideTranstionTimer:a,children:e}),n&&c.jsx(ya,{handleCloseTipbar:s,showCarouselArrows:u,mode:r})]}):c.jsxs(c.Fragment,{children:[e,n&&c.jsx(ya,{handleCloseTipbar:s,mode:r})]})})},$p=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:n,carouselProps:o}=$e(),i=c.jsx("div",{...r,className:mt["tipbar-item"],children:e});return n?c.jsx(b.Carousel.Item,{style:o.itemsStyles,children:i}):i},Xc=({className:e})=>{const{isOpen:t,slices:r}=$e();return r.length&&t?c.jsx(Dp,{children:r.map((n,o)=>{var i;return c.jsx(c.Fragment,{children:c.jsx(pt,{href:n.link,children:c.jsx($p,{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(kp,{staticZone:n,type:a.type,title:a.title,description:a.description,className:e},`tipbar-slice-field-${s}`)):null})})},`tipbar-slice-${o}`)})}):null};Xc.displayName="TipBar.Root";const Qc=({className:e,...t})=>c.jsx(Ip,{...t,children:c.jsx(Xc,{className:e})});Qc.displayName="TipBar";const qp={teamComponents:{AddToCart:eo,BackToTop:id,...Lf,FreightCalculation:xp,Header:Pc,Link:Ze,Media:Oe,ProductCard:Ge,TipBar:Qc},template:{pdp:wp},utils:{EventCollector:ad,ExternalScripts:yd,LinkOrNotLink:pt,ObserverWrapper:Jn,SnackBarComponent:lo}};exports.cms=Jl;exports.contexts=Ku;exports.data=Rs;exports.layout=qp;
|
|
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);Ir.exports=n})()),Ir.exports}var ga;function Nf(){return ga||(ga=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))}}(jr)),jr}var ya;function fc(){return ya||(ya=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}(wr)),wr}(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=Bt()._(q),i=r._(Ca),a=r._(zd()),s=io,u=Ft,l=Fd(),p=ut,m=$s(),d=r._(fc()),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)})(Wn,Wn.exports);var Of=Wn.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=io,o=ut,i=Of,a=r._(fc()),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})(tc);var Tf=tc;const _a=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(_a,{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(_a,{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})})})]}),Nn=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})}),pc=()=>{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})})};pc.displayName="Footer.Stamps";const mc=({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})]})};mc.displayName="Footer.Wrapper";const hc=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:n,adornment:o,LEGAL_INFORMATION_TEXT:i,ICONS:a})=>{var s;return c.jsxs(mc,{adornment:o,legalTextSlot:c.jsx($f,{text:i}),children:[Array.isArray(e.column)&&e.column.map((u,l)=>c.jsx(Nn,{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(Nn,{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(Nn,{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(pc,{})]})]})};hc.displayName="Footer";const qf=Object.freeze(Object.defineProperty({__proto__:null,Footer:hc,FooterSupport:kf},Symbol.toStringTag,{value:"Module"})),lo={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},fo=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=Ye(),{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"})]})})};fo.displayName="Header.Bag";const pt=({children:e,href:t,...r})=>t&&t!=="#"?c.jsx(we,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,gc=()=>{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(pt,{href:i.link,onMouseEnter:()=>o(i.submenuId),onFocus:()=>o(i.submenuId),children:c.jsx(b.Header.CategoryItem,{className:lo["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}`))})};gc.displayName="Header.Categories";function Bf({SearchModal:e}){const{handleSelectContent:t}=ge(),{CONSTANTS:r}=xe(),{setValue:n}=Jn();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"},po=({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(ro,{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}`)})})};po.displayName="Menu.Thumbnail";const Gn={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},yc=({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:Gn["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(pt,{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:Gn["submenu-categories"],children:l.items.map((g,v)=>c.jsx(b.ComponentList.ListItem,{id:`list-item-${g.label}-${v}`,children:c.jsx(Ze,{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"})]})};yc.displayName="Menu.Categories";const _c=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:n}=xe();return c.jsxs(c.Fragment,{children:[c.jsx("div",{...r,className:Gn["menu-desktop"],style:{...r.style,justifyContent:n.header.ALIGNMENT_MENU},children:e}),t&&c.jsx(b.Utils.Divider,{size:"small"})]})};_c.displayName="Menu.MenuRoot";const zf=oo(()=>Promise.resolve(_c),{ssr:!1}),On={Root:zf,Categories:yc,Thumbnail:po},vc=()=>{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(On.Root,{id:u,style:l?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:l,children:[c.jsx(On.Categories,{dividerOnRight:!!p,subMenu:o}),Array.isArray(a)&&c.jsx(On.Thumbnail,{thumbnails:a,isMobile:!1,category:s,callBack:n})]},`submenu-${u}-${i}`)})})};vc.displayName="Header.SubMenu";const bc=()=>{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"})})})};bc.displayName="Header.WishList";const xc=({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(gc,{}),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:lo["btn-login"],innerRef:r,children:c.jsx(b.Icon,{name:n.header.ICONS.person,size:"medium"})})}),c.jsx(bc,{}),c.jsx(fo,{id:"cart-button"})]})]}),c.jsx(vc,{})]})};xc.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"},Cc=({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})});Cc.displayName="Menu.MenuCategories";const Sc=({children:e,link:t})=>{const{reset:r}=ze();return t?c.jsx(we,{href:t??"#",onClick:r,children:e}):e};Sc.displayName="Menu.MenuCategoriesWrapper";const Ac=({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(pt,{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(Ze,{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})]})};Ac.displayName="Menu.SubMenuSubCategory";const Rc=({submenu:e})=>{var i;const t=Dt(),{handleCloseSubMenu:r}=ct(),{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(po,{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(Ac,{subcategory:a,submenuLabel:e.label},`list-${a.label}-${s}`))]})};Rc.displayName="Menu.SubMenuItem";const Ec=()=>{const{headerData:e}=xe(),t=Dt(),{reset:r}=De(),{bodyRef:n}=ct();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(Rc,{submenu:o},`submenu-${o.id}-${i}`))})})};Ec.displayName="Menu.SubMenu";const wc=({className:e,...t})=>{const{headerData:r}=xe(),{setValue:n}=De(),{bodyRef:o}=ct(),{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(Sc,{link:a.submenuId?null:a.link,children:c.jsx(Cc,{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(Ec,{})]})};wc.displayName="Menu.MenuBody";const jc=({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})]})};jc.displayName="Menu.MenuHeaderWrapper";const Ic=({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(Ze,{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};Ic.displayName="Menu.MenuHeaderNavLinks";const Pc=()=>{const{headerData:e}=xe();return c.jsxs("div",{className:_e["menu-header-container"],children:[c.jsx(jc,{title:e.title,subtitle:e.subtitle}),c.jsx(Ic,{navigationLinks:e.navigationLinks})]})};Pc.displayName="Menu.MenuHeaderContainer";const Nc=({children:e})=>{const{documentBodyRef:t}=ct(),{CONSTANTS:r}=xe(),n=Zn(),{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})})};Nc.displayName="Menu.MenuRoot";const Uf=oo(()=>Promise.resolve(Nc),{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 Oc=()=>{const{setIsOpen:e}=Ye(),{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})]})};Oc.displayName="Menu.NavigationBar";const Tt={Root:Uf,NavigationBar:Oc,Header:Pc,Body:wc},Tc=({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}=Jn(),{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(fo,{}),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(Ss,{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,{})]})})})]})};Tc.displayName="Header.HeaderMobileWrapper";const Mc=({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:lo["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(Tc,{UserMenu:r,SearchModal:n})}),c.jsx("div",{className:kt["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:u.header_desktop},children:c.jsx(xc,{UserMenu:r,SearchModal:n})}),t,c.jsx(no,{title:"Produto adicionado à sua sacola!",CONSTANTS:a.addToCart})]})})};Mc.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}),va=({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 go.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 go.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(Ze,{href:"https://buscacepinter.correios.com.br/app/endereco/index.php",passHref:!0,target:"_blank",rel:"noopener noreferrer",size:"x-small",disablePadding:!1,title:t.messages.remember_cep,children:t.messages.remember_cep})})]}),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(va,{size:o,message:f,setError:h}):m.length>0&&c.jsx(va,{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:Ea({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]})},kc=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(kc.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(kc);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},Se={"product-card--actions":"_product-card--actions_nmzk4_1","product-card--actions--group":"_product-card--actions--group_nmzk4_9","product-card--actions--selectors":"_product-card--actions--selectors_nmzk4_21","product-card--body":"_product-card--body_nmzk4_33","product-card--header":"_product-card--header_nmzk4_47","product-card--footer":"_product-card--footer_nmzk4_67","product-card--image":"_product-card--image_nmzk4_90","product-card--image--container":"_product-card--image--container_nmzk4_97","product-card--outstock":"_product-card--outstock_nmzk4_133","product-card--price":"_product-card--price_nmzk4_155","product-card--title":"_product-card--title_nmzk4_177","product-card--title--tag":"_product-card--title--tag_nmzk4_183","product-card--title--content":"_product-card--title--content_nmzk4_200","product-card--selectors--size":"_product-card--selectors--size_nmzk4_240","product-card--selectors--size--button":"_product-card--selectors--size--button_nmzk4_266","product-card--selectors--size--skus":"_product-card--selectors--size--skus_nmzk4_275","product-card--selectors--style":"_product-card--selectors--style_nmzk4_289","product-card--selectors--style--more":"_product-card--selectors--style--more_nmzk4_299","product-card--video":"_product-card--video_nmzk4_316","product-card--wrapper":"_product-card--wrapper_nmzk4_342"},Lc=({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};Lc.displayName="ProductCard.Actions";const Dc=({className:e,isKit:t,...r})=>{const{addToCart:n}=Ye(),{isMobile:o=!1,selectedSku:i,outStock:a,item:s,sendAddToCartEvent:u,CONSTANTS:l}=Pe(),p=()=>{var f;if(!i)return;const d=Pa(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})};Dc.displayName="ProductCard.Actions.BuyButton";const $c=({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"})]})};$c.displayName="ProductCard.Actions.Header";const qc=({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=Ma({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]})};qc.displayName="ProductCard.Media.Media";const Bc=({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})]})};Bc.displayName="ProductCard.OutStock";const Hc=({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})});Hc.displayName="ProductCard.Root";const zc=({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})]});zc.displayName="ProductCard.SizeSelector.Item";const Fc=({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=Ia(n),p=wa(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(zc,{active:e,disabled:l,label:p,onClick:()=>d(),size:a?"x-small":"small",value:n})};Fc.displayName="ProductCard.SizeSelector.SkuItem";const Uc=({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(Fc,{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})]})};Uc.displayName="ProductCard.SizeSelector";const Vn=({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(Vn,{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(Vn,{size:o,total:r.length-n,more:!0})]})},Wc=({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(Vn,{active:!0,size:"x-small",src:u.url})})};Wc.displayName="ProductCard.StyleSelector";const Gc=({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]})})})};Gc.displayName="ProductCard.Price";const Vc=({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})})})})]})};Vc.displayName="ProductCard.Title";const Kc=({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=>{ka(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})})};Kc.displayName="ProductCard.Media.Video";const Xc=({children:e,className:t,type:r,...n})=>c.jsx("div",{...n,className:b.helpers.classNameConcat(Se[`product-card--${r}`],t),children:e});Xc.displayName="ProductCard.Wrapper";const Ve={Actions:Lc,BuyButton:Dc,Header:$c,Media:qc,Root:Hc,OutStock:Bc,Price:Gc,SizeSelector:Uc,StyleSelector:Wc,Title:Vc,Video:Kc,Wrapper:Xc},ba=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:n})=>{const o=Oa(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"},Qc=({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(ba,{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(ba,{image:m,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},`PDP_gallery_${d}`))]})]})};Qc.displayName="PDP.Carousel";const Ip=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{video:r,productName:n}=Qn(),[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(Qc,{images:e,video:r,handleZoom:a,productName:n,PRODUCT_IMAGE_DIMENSIONS:t})})},Yc=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{images:r}=Qn(),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})};Yc.displayName="PDP.Gallery";const Pp=Object.freeze(Object.defineProperty({__proto__:null,Gallery:Yc},Symbol.toStringTag,{value:"Module"})),Np={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},mo=({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})]});mo.displayName="SnackBar";const Zc=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:nt.Mode,property:u.textColorVariant,fallback:"default"});return c.jsx(Zc.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(Zc),Tp=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=$e();return c.jsx(zn,{dateEnd:new Date(e),TIME_ZONE:r,...t})},Mp="_tipbar_bt3p0_1",kp="_tipbar__carousel_bt3p0_15",mt={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:mt["tipbar-item__coupon"],children:i.status?"Cupom aplicado":"Aplicar cupom"}),i.showSnackBar&&(t||r)&&c.jsx(mo,{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:nt.Mode,property:r.couponButtonMode,fallback:"default"}),s=b.helpers.ValidateProp({fieldTypes:nt.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:mt.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})}})]})},xa=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=$e();return c.jsx(b.Button,{title:"fechar tipbar",className:mt["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:mt.tipbar,children:t?c.jsxs(c.Fragment,{children:[c.jsx(qp,{mode:r,showCarouselArrows:u,slideTranstionTimer:a,children:e}),n&&c.jsx(xa,{handleCloseTipbar:s,showCarouselArrows:u,mode:r})]}):c.jsxs(c.Fragment,{children:[e,n&&c.jsx(xa,{handleCloseTipbar:s,mode:r})]})})},Hp=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:n,carouselProps:o}=$e(),i=c.jsx("div",{...r,className:mt["tipbar-item"],children:e});return n?c.jsx(b.Carousel.Item,{style:o.itemsStyles,children:i}):i},Jc=({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(pt,{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};Jc.displayName="TipBar.Root";const eu=({className:e,...t})=>c.jsx(Op,{...t,children:c.jsx(Jc,{className:e})});eu.displayName="TipBar";const zp={teamComponents:{AddToCart:no,BackToTop:cd,...qf,FreightCalculation:Ap,Header:Mc,Link:Ze,Media:Oe,ProductCard:Ve,TipBar:eu},template:{pdp:Pp},utils:{EventCollector:ud,ExternalScripts:bd,LinkOrNotLink:pt,ObserverWrapper:ro,SnackBarComponent:mo}};exports.cms=rd;exports.contexts=Zu;exports.data=Ps;exports.layout=zp;
|