@soma-vertical-web/multi-lib 0.0.36 → 0.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,41 +1,81 @@
1
- "use strict";var vl=Object.defineProperty;var bl=(e,t,r)=>t in e?vl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Yt=(e,t,r)=>bl(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),P=require("react"),Ve=require("idb-keyval"),ut=require("zustand"),$n=require("js-cookie"),b=require("@soma-vertical-web/core-components"),Bn=require("./__vite-browser-external-DDWPeg5L.js"),Me=require("draft-js"),Qe=require("@soma-vertical-web/foundations"),wo=require("@date-fns/tz"),jo=require("axios"),La=require("react-dom"),to=P.createContext({}),xl=({data:e,children:t})=>a.jsx(to.Provider,{value:{tags:e==null?void 0:e.config},children:t}),ro=()=>{const{tags:e}=P.useContext(to),t=P.useCallback(r=>{var s,c,l,u;const n=(c=(s=e==null?void 0:e.commercial)==null?void 0:s.items)==null?void 0:c.find(p=>{var f;return(f=r??[])==null?void 0:f.find(d=>d.id===p.key)}),o=(u=(l=e==null?void 0:e.institucional)==null?void 0:l.items)==null?void 0:u.find(p=>{var f;return(f=r??[])==null?void 0:f.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}},Da=({gridScrollBack:e})=>{P.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},$a=P.createContext({}),Cl=({children:e,gridScrollBack:t})=>{const r=P.useRef(null);return Da({gridScrollBack:t}),a.jsx($a.Provider,{value:{sizesContainerRef:r},children:e})},Sl=()=>{const e=P.useContext($a);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},Le=(e,t=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:t?2:0}).format(e),no=({valueInCents:e,hasFree:t,freeTaxMessage:r})=>e===0?t?r:Le(0):Le(e/100),oo=(e,t)=>{const[r,n]=e.split(t);return{name:r.trim(),size:n?n.trim():""}},qt=(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()}},Ba=(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},Al=(e,t)=>e.replace(t,"").trim(),El=e=>e.replace(/\//g,""),qa=({items:e,NAME_SPLIT_SYMBOL:t})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(s,c)=>{var d;c&&(c.sellerId=s.sellerId,c.sellerName=s.sellerName,c.available=!0,c.isSellerDefault=s.sellerDefault);const{Price:l,ListPrice:u,PaymentOptions:{installmentOptions:p}}=s.commertialOffer;r.price=l,r.listPrice=u;const f=(d=p==null?void 0:p[0])==null?void 0:d.installments;if(f){const{count:m,value:h}=f[f.length-1];r.installments={count:m,value:h/100}}};let o=!0;const i=e.reduce((s,c)=>{var p;const l={name:c.name,sku:c.itemId,value:((p=c.Tamanho)==null?void 0:p[0])??oo(c.nameComplete??c.name,t).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},u=c.sellers.filter(f=>(f.sellerDefault&&f.commertialOffer.IsAvailable&&(l.available=!0,n(f,l)),f.commertialOffer.IsAvailable));return!l.isSellerDefault&&u.length>0&&(l.available=!0,n(u[0],{...l,sellerId:u[0].sellerId,sellerName:u[0].sellerName})),l.available===!1&&(o=!1),s.push(l),s},[]);return{...r,sizes:i,allSizesAvailable:o}},Ha=e=>e?!e.offers.offers.find(({quantity:t=0})=>t>0):!1,io=(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)},za=e=>e.find(t=>t.imageLabel==="10"),Fa=(e,t)=>{const r=/\/ids\/(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},Ua=(e,t)=>{const r=/\/ids\/(\d+)-(\d+)-(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}-${n[2]}-${n[3]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},Ga=({images:e,label:t})=>{const r=e.filter(n=>n.keywords===t.first||n.keywords===t.second||n.alternateName===t.first||n.alternateName===t.second);return r.length===0?[e[0]]:r},Rl=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},Wa=(e,t,r)=>{t&&(e?(t.getAttribute("src")||(t.src=r??""),t.play()):t.pause())},wl=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Ha,formatPriceToCurrency:Le,freightParsePrice:no,getAspectRatio:Rl,getColorAndSizeFromSkuName:qt,getFirstImages:Ga,getProductNameWithoutSku:Al,getSKUName:Ba,getSkuInfos:qa,getThumbImage:za,getValidOffer:io,removeSlashes:El,resizingImg:Fa,setVideoPlay:Wa,splitNameAndSizeFromFullName:oo,updatedResizedImg:Ua},Symbol.toStringTag,{value:"Module"})),$e=({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:s,outsideEcommerceData:c}=e,{availableSizes:l,sizes:u,price:p}=n,f={...r==="view_item"?{currency:ve.configs.currency,value:p,grade_disponivel:l??(u?Va(u):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:p,currency:ve.configs.currency}:{}},d=xt({data:n,customData:{...o,...s,...i},configs:ve.configs});$e({event:r,data:{...c,ecommerce:{...s,...f,items:[d]}}}),typeof t=="function"&&t(d,f)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:r,itemList:n,outsideEcommerceData:o,customData:i}=e;if(t.length===0)return;const s=t.map(({node:c},l)=>xt({data:{...c},customData:{...r,index:l,...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:n},configs:ve.configs}));$e({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:s}}})},skuEvents:e=>{const{event:t,commonData:{products:r},customData:n,supportData:{selectedSkus:o,price:i},promotionInfo:s,itemList:c,outsideEcommerceData:l}=e;let u=0;const p=r.map(f=>{var y,g,v,A,_,S,C,j,x;const d=o==null?void 0:o.find(I=>(f.productId??f.id)===I.productId);let m={...s,...c};if(d){const I=Xa(),$=Qa(I,d);$&&(m={...m,...$}),t==="add_to_cart"&&(s||c)&&qn({persistedData:I,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:s,itemList:c}}),t==="remove_from_cart"&&qn({persistedData:I,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}u+=f.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)??qt((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((A=f.itemOffered)==null?void 0:A.skuName),ve.configs.NAME_SPLIT_SYMBOL).size;return xt({data:f,customData:{...n,...m??{...s,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((_=f.itemOffered)==null?void 0:_.sku),quantity:(n==null?void 0:n.quantity)??f.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)??f.seller},configs:ve.configs})});$e({event:t,data:{...l,ecommerce:{value:i??u,currency:ve.configs.currency,items:p}}})},filterEvent:e=>{var s;const{commonData:t,customData:r,outsideEcommerceData:n}=e,o={},i={};Array.isArray(t==null?void 0:t.selectedFacets)&&((s=t==null?void 0:t.selectedFacets)!=null&&s.length)&&((t==null?void 0:t.selectedFacets).forEach(({key:c,value:l})=>{var f;const u=((f=ve.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:f.eventLabel)??c,p=(o==null?void 0:o[u])||[];u==="price_range"&&l.replace(":","-"),o[u]=[...p,l]}),Object.keys(o).forEach(c=>i[c]=o[c].join(", "))),$e({event:"filter",data:{...n,...i,...r}})},viewCartEvent:e=>{var p,f,d,m,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):{},s=n.items.map(S=>{const{promotionInfo:C,itemList:j}=i[S.id]??{};return xt({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})}),c=(((p=n.totalizers.find(S=>S.name==="Total dos Itens"))==null?void 0:p.value)??0)/100,l=(((f=n.totalizers.find(S=>S.name==="Total dos Descontos"))==null?void 0:f.value)??0)/100,u=((d=n.marketingData)==null?void 0:d.utmiCampaign)==="codigodavendedora"?(m=n.marketingData)==null?void 0:m.utmCampaign:(y=String((h=n.openTextField)==null?void 0:h.value))==null?void 0:y.split(" - ")[0];$e({event:"view_cart",data:{...r,ecommerce:{currency:ve.configs.currency,value:c+l,total_discount:Math.abs(l),cep_preenchido:!!((v=(g=n.shippingData)==null?void 0:g.address)!=null&&v.postalCode),...u?{seller_coupon_name:u}:{},...((A=n.marketingData)==null?void 0:A.coupon)&&{sale_coupon_name:(_=n.marketingData)==null?void 0:_.coupon},subtotal:c,items:s}}})},readyEvents:e=>{const{event:t,readyData:r}=e;$e({event:t,data:{...r}})}},Va=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),jl=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]}:{}}:{}}},xt=({data:e,customData:t,configs:r})=>({...Pl(e,r==null?void 0:r.MAIN_IMAGE),...Il(e),...Nl(e),...Ol(e),...t}),Ka=()=>{var e,t;return document?((t=(e=window.document.head.querySelector('meta[name="category"]'))==null?void 0:e.getAttribute("content"))==null?void 0:t.split("_"))??[]:[]},Xa=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},Qa=(e,t)=>e==null?void 0:e[t],qn=({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)))},Pl=(e,t="1")=>{var i,s,c,l,u,p,f,d,m,h,y;const r=e.productReference??e.gtin??e.productRefId,n=e.image??((s=(i=e.items)==null?void 0:i[0])==null?void 0:s.images)??((c=e.itemOffered)==null?void 0:c.image),o=n==null?void 0:n.find(g=>g.alternateName===t||g.imageLabel===t||g.keywords===t);return{item_id:e.productId??((l=e.isVariantOf)==null?void 0:l.productGroupID)??((u=e.isVariationOf)==null?void 0:u.productGroupID)??((f=(p=e.itemOffered)==null?void 0:p.isVariationOf)==null?void 0:f.productGroupID),item_ref:/_\d$/.test(r)?r.slice(0,-2):r,item_name:e.productTitle??e.productName??e.name??oo((d=e.itemOffered)==null?void 0:d.name,ve.configs.NAME_SPLIT_SYMBOL).name,item_brand:((m=e.brand)==null?void 0:m.brandName)??((h=e.brand)==null?void 0:h.name)??e.brand??((y=e.itemOffered)==null?void 0:y.brand.name),item_url:`${ve.configs.storeUrl}${e.linkText}/p`,item_image:(o==null?void 0:o.url)??(o==null?void 0:o.imageUrl)}},Po=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,Il=e=>{var u,p;const{categories:t,categoriesIds:r}=e,n=t??((u=e.itemOffered)==null?void 0:u.categories),o=r??((p=e.itemOffered)==null?void 0:p.categoriesIds),i=Po(n),s=Po(o),c=i.slice(1,-1).split("/"),l=s.slice(1,-1).split("/");return{item_category:c[0].toLowerCase().includes(ve.configs.categoryOff)?"Bazar":"Coleção",...c[1]&&{item_category2:c[1]},...c.length>2&&{item_category3:c[c.length-1]},item_category_id:l[l.length-1],...l.length>1&&{item_parent_category_id:l[l.length-2]}}},Nl=e=>{var o,i,s,c,l,u;const t=((o=e.itemOffered)==null?void 0:o.skuName)??((c=(s=(i=e.isVariantOf)==null?void 0:i.hasVariant)==null?void 0:s[0])==null?void 0:c.name)??((u=(l=e.items)==null?void 0:l[0])==null?void 0:u.name),{color:r,size:n}=qt(t,ve.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:n}}},Ol=e=>{var l,u;const{price:t,listPrice:r,installments:n}=e,o=t??((l=e.offers)==null?void 0:l.lowPrice)??0,i=r??((u=e.offers)==null?void 0:u.highPrice)??0,s=i?i-o:0,c=s%1===0?s:Number(s.toFixed(2));return{...t&&{price:o??i},...i&&{list_price:i,discount:c},...n&&{installments:n==null?void 0:n.count,installment_value:n==null?void 0:n.value},item_currency:ve.configs.currency}},Ya=()=>{const[e,t]=Ka(),[r,n]=e.split("-"),o=r.includes("shop")||r.includes("sale")?r:"";return{page_category:o&&n?n:"",page_departament:o,id:t,name:e}},Tl=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:ve,findDataInPersistedData:Qa,getAvailablesSizes:Va,getCategories:jl,getPageCategoryAndDepartmentFromSlug:Ya,getPersistedData:Xa,getProductListInfoFromHead:Ka,pushDatalayer:$e,updatePersistedData:qn},Symbol.toStringTag,{value:"Module"})),Za=P.createContext({}),kl=({children:e,evtFunctionsConfigs:t})=>{const r=P.useRef({}),n=P.useRef(null),o=P.useRef(null),i=P.useRef({}),s=P.useRef({trigger:!1,index:0}),c=({functionKey:p,data:f,callBack:d,timeout:m=100})=>{window.dataLayer||(window.dataLayer=[]),ve.configs=t;try{typeof ve[p]=="function"&&setTimeout(()=>{var h;f.promotionInfo=r.current,(h=o.current)!=null&&h.item_list_name&&(f.itemList=o.current),ve[p](f,d)},m)}catch(h){$e({event:"error_event",data:{error_message:(h==null?void 0:h.message)??h}})}},l=({content:p})=>{c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:p.replace("::",":")}}})},u=({updatePromotionRef:p,promotion:f,index:d})=>{p&&(r.current={...f}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...f,...d!==void 0&&{index:d}}}}})};return a.jsx(Za.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:s,promotionEventRef:r,currentLocalRef:n,itemListRef:o,cartProductsFullDataRef:i,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},ge=()=>P.useContext(Za),Ja=P.createContext({}),Ml=({children:e,productData:t,isKit:r,PDP_INFO:n,NAME_SPLIT_SYMBOL:o})=>{var B,R;const{sendDataLayerEvent:i,triggerSelectItemEventRef:s}=ge(),{productId:c,productName:l,items:u,items:[{images:p,Videos:f}],description:d,["Composição"]:m="",productReference:h,categories:[y]}=t,{getAvailableProductTag:g}=ro(),v=g(Object.entries(t.clusterHighlights).map(q=>({id:q[0],name:q[1]}))),A=y.slice(1,-1).split("/"),{installments:_,price:S,listPrice:C,sizes:j,allSizesAvailable:x}=qa({items:u,NAME_SPLIT_SYMBOL:o}),I=za(p),$=[{label:`${n.product.description}`,value:"description",content:d},{label:`${n.product.materiais}`,value:"composition",content:m}],E=((R=qt((B=t.items)==null?void 0:B[0].name,o))==null?void 0:R.color)??t["Cores Filtráveis"][0]??"",N=()=>({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:q,size:F})=>{const{commonData:U,customData:K}=N();i({functionKey:"productEvents",data:{event:"view_item",commonData:U,customData:{...K,...q&&{item_sku:q},...F&&{item_variant2:F}}}})};return P.useEffect(()=>{if(s.current.trigger){const{commonData:q,customData:F}=N();i({functionKey:"productEvents",data:{event:"select_item",commonData:q,customData:{...F,index:s.current.index}}}),s.current.trigger=!1}M({})},[]),a.jsx(Ja.Provider,{value:{productData:t,productId:c,productName:l,productReference:h,tag:v,items:u,sizes:j,allSizesAvailable:x,installments:_,price:S,listPrice:C,thumbImage:I,images:p,video:f[0],descriptionContent:$,breadcrumbList:A,isKit:r,colorName:E,handleViewItemEvent:M},children:e})},ao=()=>{const e=P.useContext(Ja);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},Ll={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},Ne=Promise.resolve(!1),Hn={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>Ne,addItem:()=>Ne,addSellerCode:()=>Ne,addMarketingData:()=>Ne,emptyCart:()=>{},removeItem:()=>Ne,setIsOpen:()=>{},shipping:()=>Ne,shippingUpdate:()=>Ne,toggleServiceToProduct:()=>Ne,updateItemQuantity:()=>Ne,insertProfileEmail:()=>Ne,setRecentlyAddedProducts:()=>{}},so=e=>e===0,es=(e,t)=>{if(!e||e.length===0)return[];let r="";const n=[],o=e.match(/\d+/g)??[];for(const i of o){const s=t[Number(i)];s&&(r+=(r?"/":"")+s,n.push(r))}return n},ts=(e,t)=>{const{availability:r,additionalInfo:{brandName:n},bundleItems:o,id:i,uniqueId:s,detailUrl:c,ean:l,imageUrl:u,name:p,listPrice:f,quantity:d,price:m,priceDefinition:h,productCategories:y,productCategoryIds:g,productId:v,refId:A,seller:_,referenceId:S,offerings:C,productRefId:j,skuName:x,sellingPrice:I}=e;return{availability:r,bundleItems:o,referenceId:S,productRefId:j,id:i,ean:l,uniqueId:s,itemOffered:{additionalProperty:[],brand:{name:n},categories:es(g,y),categoriesIds:g,gtin:A,image:[{alternateName:(t==null?void 0:t.MAIN_IMAGE)??"1",url:u}],name:p,isVariationOf:{name:p,productGroupID:v},sku:i,slug:c,skuName:x},listPrice:f,quantity:d,offerings:C,price:m,priceDefinition:h,sellingPrice:I,seller:_}},rs=(e,t)=>{const r=e.map(n=>({id:n.id,quantity:n.quantity,seller:n.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},ns=(e,t)=>{const r=e.find(n=>n.id===t);if(r){const n=e.map((o,i)=>{var s,c;return{id:((s=o.itemOffered)==null?void 0:s.sku)??"",index:i,quantity:(r==null?void 0:r.id)===((c=o.itemOffered)==null?void 0:c.sku)?0:o.quantity,seller:o.seller??""}});return{updateItems:n,filterItems:n.filter(o=>o.id!==t)}}return{updateItems:[],filterItems:[]}},os=(e,t,r)=>e.filter(n=>n.availability!=="withoutStock"&&n.availability!=="https://schema.org/OutOfStock").map((n,o)=>{var i,s;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:((s=n.itemOffered)==null?void 0:s.sku)??""}}),zn=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),Dl=(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},$l=e=>{const t=e.reduce((o,i)=>{const s=so(i.price)?0:i.quantity;return o+s},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}},Bl=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(so(r==null?void 0:r.price)?0:r.quantity),0):0,is=(e,t)=>{const{items:r,itemMetadata:n,marketingData:o,messages:i,orderFormId:s,openTextField:c,paymentData:l,shippingData:u,totalizers:p}=e;return{id:s,itemMetadata:n,items:Array.isArray(r)?r.map(f=>ts(f,t)):[],marketingData:o,messages:i,openTextField:c,paymentData:l,shippingData:u,totalizers:p}},as=(e,t)=>{const r=e.find(n=>n.id===t);return r?r.availability==="unavailableItemFulfillment":!1},ql=(e,t)=>{const r=e.sku,n=e.isVariantOf.hasVariant.find(o=>o.sku===r);return n?n.name.split(t)[1]:"--"},Xe=(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},Hl=(e,t)=>{const r=new Set;return[e,...t].filter(n=>!r.has(n)&&r.add(n),r)},ss=(e,t)=>t&&Array.isArray(t)&&t.find(n=>n.id===e)?Promise.resolve(e):Promise.resolve(!1),cs=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),ls=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},us=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},ds=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(n=>n.id===r.id)):[],fs=async(e,t)=>e.then(r=>[...r??[],...t??[]]),Ee=async(e,t,r,n)=>{const{priority:o="auto",body:i}=t;return fetch(e,{headers:{"Content-Type":"application/json"},priority:o,method:"POST",body:JSON.stringify(i)}).then(async s=>{const c=await s.json();return r?c:is(c,n)})},ps=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),zl=e=>[...Array.isArray(e)?e:[e],"faststore"],ms=e=>{const t=e.get("utm_source")||ze("utm_source"),r=e.get("utm_campaign")||ze("utm_campaign"),n=e.get("utm_medium")||ze("utm_medium"),o=e.get("utmi_cp")||ze("utmi_cp"),i=e.get("utmi_pc")||ze("utmi_pc"),s=e.get("utmi_p")||ze("utmi_p");return{...t&&{utmSource:t},...n&&{utmMedium:n},...r&&{utmCampaign:r},...o&&{utmiCampaign:o},...i&&{utmiPart:i},...s&&{utmipage:s}}},ze=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},Fl=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:Ll,addItemOrder:rs,addNotification:ps,createItemOrder:ts,fetchCartAPI:Ee,findItemIndex:zn,findOptions:ds,findTotalizerValue:Dl,getCategories:es,getCode:Xe,getQuantity:us,getRemoveId:ss,getSize:ql,getTotalItems:Bl,getTotalizer:$l,getUrlParameter:ze,getValue:cs,initialState:Hn,isGift:so,marketingTagsBuilder:zl,mergeOptionsPromise:fs,mountMarketingData:ms,orderFormValues:is,promiseDefault:Ne,removeQuantity:ns,updateItemSellerExternal:as,updateOrderFormPromise:ls,updateQuantity:os,wishlistArray:Hl},Symbol.toStringTag,{value:"Module"})),Ul=()=>{const e=async(m,h)=>Ee("/api/checkout/order-form/coupon",{body:{orderFormId:m,coupon:h}}),t=async(m,h)=>{if(h){const y=h.includes(" - ")?h.split(" - ")[0]:h,g=await Ee("/api/checkout/order-form/seller-code",{body:{orderFormId:m,sellerCode:y}},!0);return Ee("/api/checkout/order-form/attachments",{body:{orderFormId:m,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 Ee("/api/checkout/order-form/attachments",{body:{orderFormId:m,sellerCode:"",sellerName:""}})},r=async(m,h)=>Ee("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:m,marketingData:h}}),n=async(m,h,y)=>Ee("/api/checkout/order-form/items",{body:{orderFormId:m,orderItems:rs(h,y)}}),o=async(m,h,y,g)=>Ee("/api/checkout/order-form/offerings",{body:{id:h,itemIndex:y,orderFormId:m,remove:g}}),i=async m=>Ee("/api/checkout/order-form/items/remove-all",{body:{orderFormId:m}}),s=async(m,h="low")=>Ee("/api/checkout/order-form",{priority:h,body:{orderFormId:m??""}}),c=async(m,h)=>Ee("/api/checkout/order-form/profile",{body:{orderFormId:m,email:h}}),l=async(m,h,y)=>{const g=ns(h,y);return Ee("/api/checkout/order-form/items/update",{body:{orderItems:g.updateItems,orderFormId:m}})},u=async(m,h,y)=>Ee("/api/checkout/order-form/shipping",{body:{orderFormId:m,country:y,postalCode:h}}),p=async(m,h,y)=>Ee("/api/checkout/order-form/shipping/update",{body:{orderFormId:m,options:h,selectedAddresses:y}}),f=async(m,h,y,g)=>{const v=os(h,y,g);return Ee("/api/checkout/order-form/items/update",{body:{orderFormId:m,orderItems:v}})};return{addCoupon:e,addItem:n,addSellerCode:t,addMarketingData:r,giftItem:o,emptyCart:i,getOrderForm:s,insertProfileEmail:c,removeItem:l,shipping:u,shippingUpdate:p,updateItemQuantity:async(m,h,y,g,v)=>f(m,h,y,g).then(A=>A&&Array.isArray(A.items)?as(A.items,y)?f(m,h,y,v):A:!1)}},Fn="soma::cart",it="soma::options",Ye=ut.create((e,t)=>{const r=Ul(),n=async(o,i,s)=>{e({loading:!0});const c=await ls(o);if(typeof c!="boolean"){e({...c});const l=await fs(Ve.get(it),s);return Ve.set(it,l),cs(c,i).finally(()=>e({loading:!1,options:l}))}return Ne};if(typeof window<"u"){const o=async i=>{if(i){const s=await Ve.get(it).then(u=>ds(u,i.items));Ve.set(Fn,i),Ve.set(it,s),e({...i,options:s});const c=new URLSearchParams(window.location.search),l=c.get("utm_campaign")||c.get("utmi_campaign")||"";l&&n(()=>r.addSellerCode(t().id,l.toUpperCase()),"openTextField")}};return Ve.get(Fn).then(i=>r.getOrderForm(i?i.id:"").then(o)),{...Hn,addCoupon:async i=>n(()=>r.addCoupon(t().id,i),"marketingData"),addItem:(i,s)=>{n(()=>r.addItem(t().id,t().items,i),"items",s)},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 s=await n(()=>r.removeItem(t().id,t().items,i),"items");return ss(i,s)},shipping:async(i,s="BR")=>n(()=>r.shipping(t().id,i??"",s),"shippingData"),shippingUpdate:async i=>n(()=>{var s;return r.shippingUpdate(t().id,i,(s=t().shippingData)==null?void 0:s.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(i,s,c)=>n(()=>r.giftItem(t().id,i,s,c),"items"),updateItemQuantity:async(i,s,c)=>{const{id:l,items:u}=t();return n(()=>{var p;return r.updateItemQuantity(l,u,i,s,((p=u.find(f=>f.id===i))==null?void 0:p.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async i=>n(()=>r.insertProfileEmail(t().id,i),"clientProfileData"),setIsOpen:i=>e({isOpen:i})}}return Hn}),Gl=()=>Ye(e=>e),hs=ut.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(n=>ps(n,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(n=>n.id!==t)}))}})),gs=()=>hs(e=>e.notifications),ys=()=>hs(e=>e.actions),Wl=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:it,KEY_INDEXED_STORE:Fn,useCartStore:Ye,useGetCartStoreState:Gl,useGetNotificationActions:ys,useGetNotificationsStore:gs},Symbol.toStringTag,{value:"Module"})),Vl=6e3,_s=P.createContext({}),vs=({children:e,...t})=>{const{items:r}=Ye(),[n,o]=P.useState([]),i=P.useRef(null),s=P.useMemo(()=>Array.isArray(n)&&n.length>0?n.map(c=>r.find(l=>l.id===c.id)).filter(c=>c!==void 0):[],[r,n]);return P.useEffect(()=>{n.length&&(clearTimeout(i.current??0),i.current=setTimeout(()=>{o([])},Vl))},[n]),a.jsx(_s.Provider,{value:P.useMemo(()=>({...t,setRecentlyAdded:o,recentlyAddedProducts:s}),[t,o,s]),children:e})},dt=()=>{const e=P.useContext(_s);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class bs{constructor(){Yt(this,"events",{});Yt(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 xs=P.createContext({}),Kl=({children:e,headerConfigs:t,pathname:r,...n})=>{const[o,i]=P.useState(!0),s=r==="/",c=P.useRef(new bs),l=f=>f?{headerVariant:t.home_default_variant,bannerVariant:t.home_default_variant,position:t.home_default_position}:{headerVariant:t.default_variant,bannerVariant:t.default_variant,position:t.default_position},u=l(s),p=P.useRef(u);return P.useEffect(()=>{var m;const f=((m=new URLSearchParams(window.location.search))==null?void 0:m.toString())??"";(f.includes("utm_")||f.includes("gclid"))&&($n.get("lastMedias")||$n.set("lastMedias",`${f}`,{expires:1/24}));const d=()=>{const h=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,y=/iPad|iPhone|iPod/.test(h),g=window.innerWidth<1024||!!h.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);if(y){const v=document.querySelector('meta[name="viewport"]');v&&v.setAttribute("content","width=device-width, initial-scale=1, maximum-scale=1")}o!==g&&i(g)};return d(),window.addEventListener("resize",d,{passive:!0}),()=>window.removeEventListener("resize",d)},[o]),P.useEffect(()=>{const f=l(s);c.current.publish("header:change_variant",f.headerVariant),c.current.publish("header:change_position",f.position),p.current=f},[s]),a.jsx(xs.Provider,{value:{isMobile:o,mediatorRef:c,currentHeaderConfigsRef:p,...n},children:a.jsx(vs,{children:e})})},Ie=()=>P.useContext(xs),Cs=P.createContext({}),Xl=({children:e,...t})=>a.jsx(Cs.Provider,{value:{...t},children:e}),Te=()=>P.useContext(Cs),Ue=(e,t)=>ut.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}}}),lt={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},ft=new Set,Ql=()=>{ft.forEach(e=>{e()})},Ss=ut.create((e,t)=>{const r=()=>e({value:lt.category});return ft.add(r),{value:lt.category,actions:{reset:r,setValue:n=>e(()=>({value:n})),updateValue:n=>{t().value!==n&&e({value:n})}}}}),Ht=()=>Ss(e=>e.value),qe=()=>Ss(e=>e.actions),As=Ue(lt.menuMobileIsOpen,ft),co=()=>As(e=>e.value),Ge=()=>As(e=>e.actions),Es=Ue(lt.searchModalIsOpen,ft),Yl=()=>Es(e=>e.value),lo=()=>Es(e=>e.actions),Rs=Ue(lt.userMenuIsOpen,ft),Zl=()=>Rs(e=>e.value),zt=()=>Rs(e=>e.actions),Jl=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:Ql,useActionsHeaderCategory:qe,useActionsMenuMobileIsOpen:Ge,useActionsSearchModalIsOpen:lo,useActionsUserMenuIsOpen:zt,useGetHeaderCategoryStore:Ht,useGetMenuMobileIsOpen:co,useGetSearchModalIsOpen:Yl,useGetUserMenuIsOpen:Zl},Symbol.toStringTag,{value:"Module"})),Ze={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},tt=new Set,eu=()=>{tt.forEach(e=>{e()})},ws=ut.create(e=>{const t=()=>e({value:Ze.selectedSkuInfo});return tt.add(t),{value:Ze.selectedSkuInfo,actions:{setValue:r=>e(n=>({value:{...n,...r}})),reset:t}}}),tu=()=>ws(e=>e.value),ru=()=>ws(e=>e.actions),js=Ue(Ze.openLetMeKnow,tt),nu=()=>js(e=>e.value),ou=()=>js(e=>e.actions),Ps=Ue(Ze.showNotify,tt),iu=()=>Ps(e=>e.value),au=()=>Ps(e=>e.actions),Is=Ue(Ze.showBottomNavigation,tt),su=()=>Is(e=>e.value),cu=()=>Is(e=>e.actions),Ns=Ue(Ze.openMeasurements,tt),lu=()=>Ns(e=>e.value),uu=()=>Ns(e=>e.actions),du=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:eu,useActionsPDPOpenLetMeKnow:ou,useActionsPDPOpenMeasurements:uu,useActionsPDPSelectedSkuInfo:ru,useActionsPDPShowBottomNavigation:cu,useActionsPDPShowNotify:au,useGetPDPOpenLetMeKnow:nu,useGetPDPOpenMeasurements:lu,useGetPDPSelectedSkuInfo:tu,useGetPDPShowBottomNavigation:su,useGetPDPShowNotify:iu},Symbol.toStringTag,{value:"Module"})),Os=P.createContext({}),fu=({children:e,headerData:t,...r})=>{var l,u;const n=P.useRef(null),o=P.useRef(null),i=P.useRef(null),{mediatorRef:s,currentHeaderConfigsRef:c}=Ie();return(l=s.current)==null||l.subscribe("header:change_variant",p=>{var y,g,v;if(p&&c.current&&(c.current.bannerVariant=p),!n.current)return;const d=document.body.scrollTop>0,m=n.current.getAttribute("data-interactiveVariant"),h=d?m:p??((y=c.current)==null?void 0:y.bannerVariant)??"default";h!==((g=c.current)==null?void 0:g.headerVariant)&&(n.current.setAttribute("data-bottomdivider",String(d)),n.current.setAttribute("data-variant",String(h)),(v=s.current)==null||v.publish("herobanner:change_controllers_variant",h),c.current&&(c.current.headerVariant=h))}),(u=s.current)==null||u.subscribe("header:change_position",p=>{n.current&&(n.current.style.position=p)}),P.useEffect(()=>{const p=new AbortController,f=b.helpers.throttle(()=>{var m;return(m=s.current)==null?void 0:m.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",f,{passive:!0,signal:p.signal});const d=m=>{var y;(y=m.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()}},[]),a.jsx(Os.Provider,{value:{headerData:t,structureRef:o,rootRef:n,tipbarRef:i,...r},children:e})},xe=()=>P.useContext(Os),Ts=P.createContext({}),ks=({children:e})=>{const t=P.useRef(null),r=P.useRef(null),n=co(),o=P.useCallback(()=>{var i;{const s=(i=t.current)==null?void 0:i.querySelector("dialog");if(s){s.dataset.animation="out";const c=s.children[0];c.dataset.animation="out"}}},[]);return P.useEffect(()=>{var i;if(n)document.body.dataset.modalopen="true";else{document.body.dataset.modalopen="false";const s=(i=r.current)==null?void 0:i.querySelector("dialog");if(s){s.dataset.animation="out";const c=s.children[0];c.dataset.animation="out"}}},[n]),P.useEffect(()=>{r.current=document.body},[]),a.jsx(Ts.Provider,{value:{bodyRef:t,handleCloseSubMenu:o,documentBodyRef:r},children:e})},pt=()=>P.useContext(Ts),pu=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},mu=(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?pu(e==null?void 0:e.parentElement):0;return{left:n.left+n.width/2-(o.width+i),top:n.top+n.height+r}},Ms=P.createContext({}),Ls=({children:e,delay:t=600,gap:r=20,...n})=>{const[o,i]=P.useState(!1),s=P.useRef(null),[c,l]=P.useState(!1),[u,p]=P.useState({left:0,top:0}),f=P.useCallback(()=>{l(!0),typeof window<"u"&&(s.current=window.setTimeout(()=>{i(!1),l(!1)},t))},[l,i,t]);return P.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),m=window.document.querySelector("#add-to-cart--tooltip");if(d&&m){const{left:h,top:y}=mu(m,d,r??0);p({left:h,top:y}),l(!1)}},[r,o]),a.jsx(Ms.Provider,{value:P.useMemo(()=>({...n,...u,handleClose:f,isLeaving:c,isOpen:o,setIsOpen:i,setIsLeaving:l}),[n,u,f,c,o,i,l]),children:e})},We=()=>{const e=P.useContext(Ms);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},Ds=P.createContext({}),hu=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const n=Ye(),{setRecentlyAdded:o}=dt(),i=P.useRef(""),s=gs(),{addNotification:c,removeNotification:l}=ys(),{addCoupon:u,addItem:p,addSellerCode:f,addMarketingData:d,emptyCart:m,isOpen:h,removeItem:y,shipping:g,shippingUpdate:v,toggleServiceToProduct:A,updateItemQuantity:_}=n;P.useEffect(()=>{const R=$n.get("lastMedias");if(n.id&&R&&i.current!==R){i.current=R;const q=new URLSearchParams(R),F=ms(q);d(F)}},[n,d]);const S=P.useCallback(async(R,q)=>(q==="coupon"?u(R):f(R)).then(U=>{if(typeof U!="boolean"&&U instanceof Object){if(q==="seller"&&"value"in U){const{statusOk:K,value:W}=U,z=String(W??"").split(" - ");return Xe((z==null?void 0:z[0])??"",R,!!K)}return Xe(String(U.coupon),R,!0)}return Xe("","")}).catch(()=>Promise.resolve({code:400})),[u,f]),C=P.useCallback((R,q,F)=>{const{id:U}=R;_(U,q,F)},[_]),j=P.useCallback((R,q,F=!1)=>{if(!R)return;const{id:U}=R,K=zn(n.items,U);if(K!==-1&&!F){const W=Number(n.items[K].quantity),z=n.items[K]?W+1:1;C(R,z,q)}else p({id:U,quantity:(R==null?void 0:R.quantity)??1,seller:R.seller});h||o(W=>[...W,R])},[p,C,n.items,h,o]),x=P.useCallback((R,q)=>{if(!R||!Array.isArray(R))return;o(U=>[...U,...R]);const F=R.map(U=>{const{id:K,quantity:W,seller:z}=U,ne=zn(n.items,K),w=us(W??1,ne);return{id:K,quantity:w,seller:z}});p(F,q)},[p,n.items,o]),I=P.useCallback(async(R,q,F)=>R?y(R).then(()=>(c(q??`${t}`,F),Xe(R,R))):Promise.resolve(Xe("","Product id required")),[c,y]),$=P.useCallback(()=>{n.items.length>0&&m()},[m,n.items]),E=P.useCallback((R,q="BRA")=>g(R,q),[g]),N=P.useCallback(R=>{R&&v(R)},[v]),M=P.useCallback(async(R,q,F)=>{const U=n.items.findIndex(W=>W.id===R);return n.items[U]&&U>=0?A(q,U,F??!1):!1},[n.items,A]),B=P.useCallback(async(R,q)=>_(R,q).then(F=>{if(Array.isArray(F)){const U=F.find(K=>K.id===R);if(U&&(U==null?void 0:U.quantity)<q)return String(U.quantity)}return!1}),[_]);return a.jsx(Ds.Provider,{value:P.useMemo(()=>({...r,addCouponSeller:S,addToCart:j,addItemsToCart:x,cartStore:n,notifications:s,clearCart:$,addNotification:c,isOpen:n.isOpen,removeNotification:l,removeToCart:I,setIsOpen:n.setIsOpen,shipping:E,shippingUpdateOption:N,toggleGiftItemCart:M,updateItemQuantity:B}),[r,S,j,x,s,$,c,n,l,I,E,N,M,B]),children:e})},He=()=>{const e=P.useContext(Ds);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},$s=P.createContext({}),uo=({children:e,fetch:t})=>{const r=P.useRef(!0),[n,o]=P.useState(null),[i,s]=P.useState(!1);return P.useEffect(()=>{(async()=>{r.current=!0;try{const l=await t();if(!l.ok)throw new Error("Failed to fetch data");const u=await l.json();o(u.data),r.current=!1}catch{r.current=!0,s(!0)}})()},[t]),a.jsx($s.Provider,{value:P.useMemo(()=>({data:n,isLoading:r.current??!1,isError:i}),[n,i,r]),children:e})},fo=()=>{const e=P.useContext($s);if(e===void 0)throw new Error("useProductsContext must be used within a useRootContext");return e},Bs=P.createContext({}),gu=({children:e,sort:t,state:r,count:n,collectionId:o,CONSTANTS:i})=>{const s=P.useMemo(()=>{var c;return o?[{key:"productclusterids",value:o.toString()}]:(c=r.base)!=null&&c.length?r.base.slice(1).split("/").map((l,u)=>({key:`category-${u+1}`,value:l})):[]},[r.base,o]);return a.jsx(Bs.Provider,{value:P.useMemo(()=>({state:{...r,facets:[...s,...r.facets??[]]},sort:t,count:n??i.ITEMS_PER_PAGE}),[s,n,t,r]),children:e})},qs=()=>{const e=P.useContext(Bs);if(e===void 0)throw new Error("useSearchContext must be used within a SearchProvider");return e},yu={default_option:"score:desc"},_u={nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"0",count:0,total:0},Hs=P.createContext({}),vu=({children:e,searchParams:t,selectedFacets:r})=>{const{data:n,...o}=fo(),{router:i}=Te(),s=P.useCallback((f,d)=>{if(d){if(f.key.toLocaleLowerCase()==="price"){const m=d.getAll("facets");d.delete("facets"),m.forEach(h=>{const[y]=h.split("/");y!==f.key&&d.append("facets",h)})}d.set("page","1"),d.append("facets",`${f.key}/${f.value}`),i.push(`?${d.toString()}`)}},[i]),c=P.useCallback(()=>{const f=new URLSearchParams;f.set("sort",yu.default_option),f.set("page","1"),i.push(`?${f.toString()}`)},[i]),l=P.useCallback((f,d)=>{if(!d||!d.has&&!d.has("facets"))return;const m=d.getAll("facets");d.delete("facets"),d.set("page","1"),m.forEach(h=>{const[y,g]=h.split("/");(y!==f.key||g!==f.value)&&d.append("facets",h)}),i.push(`?${d.toString()}`)},[i]),u=P.useCallback(f=>{const d=new URLSearchParams(Bn.convertSearchParams(t));for(const[,m]of d.entries()){const[h,y]=m.split("/");if(h===f.key&&y===f.value)return l(f,d)}return s(f,d)},[s,l,t]),p=P.useCallback(f=>{const d=new URLSearchParams(Bn.convertSearchParams(t));d.set("sort",f.replace("_",":")),i.push(`?${d.toString()}`)},[i,t]);return a.jsx(Hs.Provider,{value:P.useMemo(()=>({...o,breadcrumb:n&&"breadcrumb"in n?n==null?void 0:n.breadcrumb:[],deleteAllFacets:c,facets:n&&"facets"in n?n==null?void 0:n.facets:[],selectedFacets:r,onToggleFacet:u,onSort:p,searchParams:t}),[n,c,p,u,o,r,t]),children:e})},bu=({children:e,searchParams:t,forceUpdate:r})=>{const{state:n}=qs();return a.jsx(uo,{fetch:()=>fetch("/api/search/facets",{method:"POST",body:JSON.stringify({...n,forceUpdate:r}),priority:"low"}),children:a.jsx(vu,{selectedFacets:(n==null?void 0:n.facets)??[],searchParams:t,children:e})})},xu=()=>{const e=P.useContext(Hs);if(e===void 0)throw new Error("useFacetsContext must be used within a FacetsProvider");return e},zs=P.createContext({}),Cu=({children:e})=>{const{data:t,...r}=fo(),[n,o]=P.useState(0),{sendDataLayerEvent:i}=ge();return P.useEffect(()=>{if(t&&"pagination"in t&&t.products.length>0){i({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:t.products}}});const s=t.pagination.count;s&&Number.isInteger(s)&&o(s)}},[t,i,o]),a.jsx(zs.Provider,{value:P.useMemo(()=>({...r,products:t&&"products"in t?t==null?void 0:t.products:[],pagination:t&&"pagination"in t?t==null?void 0:t.pagination:_u,total:n}),[t,r,n]),children:e})},Su=({children:e,query:t,state:r,selectedFacets:n,forceUpdate:o})=>a.jsx(uo,{fetch:()=>fetch("/api/search/product",{method:"POST",body:JSON.stringify({...r,query:t,forceUpdate:o,facets:n??[]})}),children:a.jsx(Cu,{state:r,children:e})}),Au=()=>{const e=P.useContext(zs);if(e===void 0)throw new Error("useProductsContext must be used within a ProductsProvider");return e},Fs=P.createContext({}),Eu=({children:e,term:t})=>{const[r,n]=P.useState([]),[o,i]=P.useState(!1);return P.useEffect(()=>{if(!t){n([]);return}(async()=>{i(!0);try{const c=await fetch("/api/search/suggestedTerms",{method:"POST",body:JSON.stringify({query:t,locale:"pt-BR"})}),{data:l}=await c.json();n((l==null?void 0:l.searches)||[])}catch(c){console.error("Erro ao buscar sugestões:",c)}})()},[t]),a.jsx(Fs.Provider,{value:P.useMemo(()=>({suggestedTerms:r,loading:o,setLoading:i}),[r,o]),children:e})},Ru=({children:e,...t})=>a.jsx(Eu,{...t,children:e}),wu=()=>{const e=P.useContext(Fs);if(!e)throw new Error("useSuggestedTermsContext must be used within a SuggestedTermsProvider");return e},Us=P.createContext({searches:[],isLoading:!1,error:null}),ju=({children:e})=>{const[t,r]=P.useState([]),[n,o]=P.useState(!0),[i,s]=P.useState(null);return P.useEffect(()=>{(async()=>{try{o(!0);const l=await fetch("/api/search/topSearch");if(!l.ok)throw new Error(`Erro ao buscar os dados: ${l.status}`);const u=await l.json();r(u.data.searches||[])}catch(l){s(l instanceof Error?l.message:"Erro desconhecido")}finally{o(!1)}})()},[]),a.jsx(Us.Provider,{value:P.useMemo(()=>({searches:t,isLoading:n,error:i}),[t,n,i]),children:e})},Pu=()=>{const e=P.useContext(Us);if(!e)throw new Error("useTopSearches must be used within a TopSearchesProvider");return e},Iu={contexts:{addToCart:{hook:We,provider:Ls},cart:{hook:He,provider:hu},cms:{FlagsAndTags:{context:to,hook:ro,provider:xl}},events:{hook:ge,provider:kl},global:{hook:Ie,provider:Kl,mediator:bs},header:{hook:xe,provider:fu},menuMobile:{hook:pt,provider:ks},next:{hook:Te,provider:Xl},pdp:{provider:Cl,hook:Sl},pdpdata:{hook:ao,provider:Ml},searchFacets:{hook:xu,provider:bu},searchProducts:{hook:Au,provider:Su},searchRoot:{hook:fo,provider:uo},searchSearch:{hook:qs,provider:gu},searchSuggestedTerms:{hook:wu,provider:Ru},searchTopSearchs:{hook:Pu,provider:ju},ui:{hook:dt,provider:vs}},hooks:{useBackPDC:Da},stores:{cart:Wl,header:Jl,pdp:du}};function Gs(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 Ws(e,t,r={}){const o={...{path:"/",expires:new Date(Date.now()+36e5)},...r};let i=`${encodeURIComponent(e)}=${encodeURIComponent(t??"")}`;for(const s in o)o[s]!==void 0&&(i+=`; ${s}`,s==="expires"?i+=`=${o[s].toUTCString()}`:typeof o[s]=="boolean"?i+=`; ${o[s]?"true":"false"}`:i+=`=${o[s]}`);window.document.cookie=i}const Nu=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function Ou(e,t=1e3){let r=!1;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>{r=!1},t))}}function Tu(e,t=1e3){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}const Vs=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,at=(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),ku=Object.freeze(Object.defineProperty({__proto__:null,debounce:Tu,getCookie:Gs,getDaysHoursMinutesSeconds:at,getMilliSeconds:Vs,removeAccentsAndReplaceSpaces:Nu,setCookie:Ws,throttle:Ou},Symbol.toStringTag,{value:"Module"})),Mu={cart:Fl,events:Tl,product:wl,utils:ku},po={helpers:Mu};var Ks=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ft(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lu(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 Un={exports:{}},Re={};Re._=Re._interop_require_default=Du;function Du(e){return e&&e.__esModule?e:{default:e}}var Ct={exports:{}},Zt={},Io;function Xs(){return Io||(Io=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,c){for(var l in c)Object.defineProperty(s,l,{enumerable:!0,get:c[l]})}t(e,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o},assign:function(){return i}});function r(s){const c={};return s.forEach((l,u)=>{typeof c[u]>"u"?c[u]=l:Array.isArray(c[u])?c[u].push(l):c[u]=[c[u],l]}),c}function n(s){return typeof s=="string"||typeof s=="number"&&!isNaN(s)||typeof s=="boolean"?String(s):""}function o(s){const c=new URLSearchParams;return Object.entries(s).forEach(l=>{let[u,p]=l;Array.isArray(p)?p.forEach(f=>c.append(u,n(f))):c.set(u,n(p))}),c}function i(s){for(var c=arguments.length,l=new Array(c>1?c-1:0),u=1;u<c;u++)l[u-1]=arguments[u];return l.forEach(p=>{Array.from(p.keys()).forEach(f=>s.delete(f)),p.forEach((f,d)=>s.append(d,f))}),s}}(Zt)),Zt}var Jt={},Je={};function Qs(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Qs=function(n){return n?r:t})(e)}Je._=Je._interop_require_wildcard=$u;function $u(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Qs(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 s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}var No;function Ys(){return No||(No=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,u){for(var p in u)Object.defineProperty(l,p,{enumerable:!0,get:u[p]})}t(e,{formatUrl:function(){return i},urlObjectKeys:function(){return s},formatWithValidation:function(){return c}});const n=Je._(Xs()),o=/https?|ftp|gopher|file/;function i(l){let{auth:u,hostname:p}=l,f=l.protocol||"",d=l.pathname||"",m=l.hash||"",h=l.query||"",y=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?y=u+l.host:p&&(y=u+(~p.indexOf(":")?"["+p+"]":p),l.port&&(y+=":"+l.port)),h&&typeof h=="object"&&(h=String(n.urlQueryToSearchParams(h)));let g=l.search||h&&"?"+h||"";return f&&!f.endsWith(":")&&(f+=":"),l.slashes||(!f||o.test(f))&&y!==!1?(y="//"+(y||""),d&&d[0]!=="/"&&(d="/"+d)):y||(y=""),m&&m[0]!=="#"&&(m="#"+m),g&&g[0]!=="?"&&(g="?"+g),d=d.replace(/[?#]/g,encodeURIComponent),g=g.replace("#","%23"),""+f+y+d+g+m}const s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(l){return process.env.NODE_ENV==="development"&&l!==null&&typeof l=="object"&&Object.keys(l).forEach(u=>{s.includes(u)||console.warn("Unknown key passed via urlObject into url.format: "+u)}),i(l)}}(Jt)),Jt}var er={},Oo;function Bu(){return Oo||(Oo=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}}(er)),er}var tr={},To;function Ut(){return To||(To=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 s},getURL:function(){return c},getDisplayName:function(){return l},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return p},loadGetInitialProps:function(){return f},SP:function(){return d},ST:function(){return m},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),$=0;$<x;$++)I[$]=arguments[$];return C||(C=!0,j=S(...I)),j}}const o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=S=>o.test(S);function s(){const{protocol:S,hostname:C,port:j}=window.location;return S+"//"+C+(j?":"+j:"")}function c(){const{href:S}=window.location,C=s();return S.substring(C.length)}function l(S){return typeof S=="string"?S:S.displayName||S.name||"Unknown"}function u(S){return S.finished||S.headersSent}function p(S){const C=S.split("?");return C[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(C[1]?"?"+C.slice(1).join("?"):"")}async function f(S,C){if(process.env.NODE_ENV!=="production"){var j;if((j=S.prototype)!=null&&j.getInitialProps){const $='"'+l(S)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error($)}}const x=C.res||C.ctx&&C.ctx.res;if(!S.getInitialProps)return C.ctx&&C.Component?{pageProps:await f(C.Component,C.ctx)}:{};const I=await S.getInitialProps(C);if(x&&u(x))return I;if(!I){const $='"'+l(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(""+l(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",m=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})}}(tr)),tr}var St={exports:{}},rr={},ko;function Zs(){return ko||(ko=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(/\/$/,"")||"/"}}(rr)),rr}var nr={},Mo;function mo(){return Mo||(Mo=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:""}}}(nr)),nr}var Lo;function Gt(){return Lo||(Lo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const r=Zs(),n=mo(),o=i=>{if(!i.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return i;const{pathname:s,query:c,hash:l}=(0,n.parsePath)(i);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(s)?""+(0,r.removeTrailingSlash)(s)+c+l:s.endsWith("/")?""+s+c+l:s+"/"+c+l:""+(0,r.removeTrailingSlash)(s)+c+l};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(St,St.exports)),St.exports}var or={},At={exports:{}},ir={},Do;function Js(){return Do||(Do=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=mo();function r(n,o){if(typeof n!="string")return!1;const{pathname:i}=(0,t.parsePath)(n);return i===o||i.startsWith(o+"/")}}(ir)),ir}var $o;function qu(){return $o||($o=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});const r=Js(),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)}(At,At.exports)),At.exports}var Bo;function ec(){return Bo||(Bo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=Ut(),r=qu();function n(o){if(!(0,t.isAbsoluteUrl)(o))return!0;try{const i=(0,t.getLocationOrigin)(),s=new URL(o,i);return s.origin===i&&(0,r.hasBasePath)(s.pathname)}catch{return!1}}}(or)),or}var ar={},sr={},qo;function Hu(){return qo||(qo=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 s=i.map(c=>this.children.get(c)._smoosh(""+o+c+"/")).reduce((c,l)=>[...c,...l],[]);if(this.slugName!==null&&s.push(...this.children.get("[]")._smoosh(o+"["+this.slugName+"]/")),!this.placeholder){const c=o==="/"?"/":o.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+c+'" and "'+c+"[[..."+this.optionalRestSlugName+']]").');s.unshift(c)}return this.restSlugName!==null&&s.push(...this.children.get("[...]")._smoosh(o+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&s.push(...this.children.get("[[...]]")._smoosh(o+"[[..."+this.optionalRestSlugName+"]]/")),s}_insert(o,i,s){if(o.length===0){this.placeholder=!1;return}if(s)throw new Error("Catch-all must be the last part of the URL.");let c=o[0];if(c.startsWith("[")&&c.endsWith("]")){let p=function(f,d){if(f!==null&&f!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+f+"' !== '"+d+"').");i.forEach(m=>{if(m===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(m.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+m+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),i.push(d)},l=c.slice(1,-1),u=!1;if(l.startsWith("[")&&l.endsWith("]")&&(l=l.slice(1,-1),u=!0),l.startsWith("...")&&(l=l.substring(3),s=!0),l.startsWith("[")||l.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+l+"').");if(l.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+l+"').");if(s)if(u){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+o[0]+'" ).');p(this.optionalRestSlugName,l),this.optionalRestSlugName=l,c="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+o[0]+'").');p(this.restSlugName,l),this.restSlugName=l,c="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+o[0]+'").');p(this.slugName,l),this.slugName=l,c="[]"}}this.children.has(c)||this.children.set(c,new t),this.children.get(c)._insert(o.slice(1),i,s)}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()}}(sr)),sr}var cr={},Ho;function zu(){return Ho||(Ho=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)}}(cr)),cr}var zo;function Fu(){return zo||(zo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,i){for(var s in i)Object.defineProperty(o,s,{enumerable:!0,get:i[s]})}t(e,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=Hu(),n=zu()}(ar)),ar}var lr={},ur={},Fo;function Uu(){return Fo||(Fo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=Ut();function r(n){let{re:o,groups:i}=n;return s=>{const c=o.exec(s);if(!c)return!1;const l=p=>{try{return decodeURIComponent(p)}catch{throw new t.DecodeError("failed to decode param")}},u={};return Object.keys(i).forEach(p=>{const f=i[p],d=c[f.pos];d!==void 0&&(u[p]=~d.indexOf("/")?d.split("/").map(m=>l(m)):f.repeat?[l(d)]:l(d))}),u}}}(ur)),ur}var dr={},fr={},pr={},mr={},Uo;function Gu(){return Uo||(Uo=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}}(mr)),mr}var hr={},Go;function Wu(){return Go||(Go=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(")")}}(hr)),hr}var Wo;function Vu(){return Wo||(Wo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,c){for(var l in c)Object.defineProperty(s,l,{enumerable:!0,get:c[l]})}t(e,{normalizeAppPath:function(){return o},normalizeRscPath:function(){return i}});const r=Gu(),n=Wu();function o(s){return(0,r.ensureLeadingSlash)(s.split("/").reduce((c,l,u,p)=>!l||(0,n.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&u===p.length-1?c:c+"/"+l,""))}function i(s,c){return c?s.replace(/\.rsc($|\?)/,"$1"):s}}(pr)),pr}var Vo;function Ku(){return Vo||(Vo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,c){for(var l in c)Object.defineProperty(s,l,{enumerable:!0,get:c[l]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return n},isInterceptionRouteAppPath:function(){return o},extractInterceptionRouteInformation:function(){return i}});const r=Vu(),n=["(..)(..)","(.)","(..)","(...)"];function o(s){return s.split("/").find(c=>n.find(l=>c.startsWith(l)))!==void 0}function i(s){let c,l,u;for(const p of s.split("/"))if(l=n.find(f=>p.startsWith(f)),l){[c,u]=s.split(l,2);break}if(!c||!l||!u)throw new Error(`Invalid interception route: ${s}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(c=(0,r.normalizeAppPath)(c),l){case"(.)":c==="/"?u=`/${u}`:u=c+"/"+u;break;case"(..)":if(c==="/")throw new Error(`Invalid interception route: ${s}. Cannot use (..) marker at the root level, use (.) instead.`);u=c.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":const p=c.split("/");if(p.length<=2)throw new Error(`Invalid interception route: ${s}. Cannot use (..)(..) marker at the root level or one level up.`);u=p.slice(0,-2).concat(u).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:c,interceptedRoute:u}}}(fr)),fr}var gr={},Ko;function Xu(){return Ko||(Ko=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return n}});const t=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function n(o){return t.test(o)?o.replace(r,"\\$&"):o}}(gr)),gr}var Xo;function Qu(){return Xo||(Xo=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 u},getNamedRouteRegex:function(){return m},getNamedMiddlewareRegex:function(){return h}});const r=Ku(),n=Xu(),o=Zs(),i="nxtP",s="nxtI";function c(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 l(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}=c(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}=c(C[1]);return v[j]={pos:A++,repeat:x,optional:I},x?I?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,n.escapeStringRegexp)(_)}).join(""),groups:v}}function u(y){const{parameterizedRoute:g,groups:v}=l(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 f(y){let{getSafeRouteKey:g,segment:v,routeKeys:A,keyPrefix:_}=y;const{key:S,optional:C,repeat:j}=c(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?f({getSafeRouteKey:A,segment:j[1],routeKeys:_,keyPrefix:g?s:void 0}):j?f({getSafeRouteKey:A,segment:j[1],routeKeys:_,keyPrefix:g?i:void 0}):"/"+(0,n.escapeStringRegexp)(S)}).join(""),routeKeys:_}}function m(y,g){const v=d(y,g);return{...u(y),namedRegex:"^"+v.namedParameterizedRoute+"(?:/)?$",routeKeys:v.routeKeys}}function h(y,g){const{parameterizedRoute:v}=l(y),{catchAll:A=!0}=g;if(v==="/")return{namedRegex:"^/"+(A?".*":"")+"$"};const{namedParameterizedRoute:_}=d(y,!1);let S=A?"(?:(/.*)?)":"";return{namedRegex:"^"+_+S+"$"}}}(dr)),dr}var Qo;function Yu(){return Qo||(Qo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=Uu(),r=Qu();function n(o,i,s){let c="";const l=(0,r.getRouteRegex)(o),u=l.groups,p=(i!==o?(0,t.getRouteMatcher)(l)(i):"")||s;c=o;const f=Object.keys(u);return f.every(d=>{let m=p[d]||"";const{repeat:h,optional:y}=u[d];let g="["+(h?"...":"")+d+"]";return y&&(g=(m?"":"/")+"["+g+"]"),h&&!Array.isArray(m)&&(m=[m]),(y||d in p)&&(c=c.replace(g,h?m.map(v=>encodeURIComponent(v)).join("/"):encodeURIComponent(m))||"/")})||(c=""),{params:f,result:c}}}(lr)),lr}var Yo;function Zu(){return Yo||(Yo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return p}});const r=Xs(),n=Ys(),o=Bu(),i=Ut(),s=Gt(),c=ec(),l=Fu(),u=Yu();function p(f,d,m){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: '"+f.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const _=(0,i.normalizeRepeatedSlashes)(v);y=(g?g[0]:"")+_}if(!(0,c.isLocalURL)(y))return m?[y]:y;try{h=new URL(y.startsWith("#")?f.asPath:f.pathname,"http://n")}catch{h=new URL("/","http://n")}try{const _=new URL(y,h);_.pathname=(0,s.normalizePathTrailingSlash)(_.pathname);let S="";if((0,l.isDynamicRoute)(_.pathname)&&_.searchParams&&m){const j=(0,r.searchParamsToUrlQuery)(_.searchParams),{result:x,params:I}=(0,u.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 m?[C,S||C]:C}catch{return m?[y]:y}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ct,Ct.exports)),Ct.exports}var Et={exports:{}},yr={},_r={},Zo;function tc(){return Zo||(Zo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=mo();function r(n,o){if(!n.startsWith("/")||!o)return n;const{pathname:i,query:s,hash:c}=(0,t.parsePath)(n);return""+o+i+s+c}}(_r)),_r}var Jo;function Ju(){return Jo||(Jo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=tc(),r=Js();function n(o,i,s,c){if(!i||i===s)return o;const l=o.toLowerCase();return!c&&((0,r.pathHasPrefix)(l,"/api")||(0,r.pathHasPrefix)(l,"/"+i.toLowerCase()))?o:(0,t.addPathPrefix)(o,"/"+i)}}(yr)),yr}var ei;function ed(){return ei||(ei=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=Gt(),n=function(o){for(var i=arguments.length,s=new Array(i>1?i-1:0),c=1;c<i;c++)s[c-1]=arguments[c];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(Ju().addLocale(o,...s)):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 vr={},ti;function rc(){return ti||(ti=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=Re._(P).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(vr)),vr}var br={},ri;function td(){return ri||(ri=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(u,p){for(var f in p)Object.defineProperty(u,f,{enumerable:!0,get:p[f]})}t(e,{CacheStates:function(){return o},AppRouterContext:function(){return i},LayoutRouterContext:function(){return s},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return l}});const n=Re._(P);var o;(function(u){u.LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY"})(o||(o={}));const i=n.default.createContext(null),s=n.default.createContext(null),c=n.default.createContext(null),l=n.default.createContext(null);process.env.NODE_ENV!=="production"&&(i.displayName="AppRouterContext",s.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",l.displayName="TemplateContext")}(br)),br}var Rt={exports:{}},wt={exports:{}},ni;function nc(){return ni||(ni=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(i,s){for(var c in s)Object.defineProperty(i,c,{enumerable:!0,get:s[c]})}r(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return o}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(i){let s=Date.now();return self.setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-s))}})},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)}(wt,wt.exports)),wt.exports}var oi;function rd(){return oi||(oi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const r=P,n=nc(),o=typeof IntersectionObserver=="function",i=new Map,s=[];function c(p){const f={root:p.root||null,margin:p.rootMargin||""},d=s.find(g=>g.root===f.root&&g.margin===f.margin);let m;if(d&&(m=i.get(d),m))return m;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 m={id:f,observer:y,elements:h},s.push(f),i.set(f,m),m}function l(p,f,d){const{id:m,observer:h,elements:y}=c(d);return y.set(p,f),h.observe(p),function(){if(y.delete(p),h.unobserve(p),y.size===0){h.disconnect(),i.delete(m);const v=s.findIndex(A=>A.root===m.root&&A.margin===m.margin);v>-1&&s.splice(v,1)}}}function u(p){let{rootRef:f,rootMargin:d,disabled:m}=p;const h=m||!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 l(S,j=>j&&g(j),{root:f==null?void 0:f.current,rootMargin:d})}else if(!y){const S=(0,n.requestIdleCallback)(()=>g(!0));return()=>(0,n.cancelIdleCallback)(S)}},[h,d,f,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)}(Rt,Rt.exports)),Rt.exports}var jt={exports:{}},Pt={exports:{}},xr={},ii;function nd(){return ii||(ii=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(s=>i[1]&&i[1].toLowerCase()===s.toLowerCase()?(o=s,i.splice(1,1),r=i.join("/")||"/",!0):!1),{pathname:r,detectedLocale:o}}}(xr)),xr}var ai;function od(){return ai||(ai=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(n,o)=>process.env.__NEXT_I18N_SUPPORT?nd().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)}(Pt,Pt.exports)),Pt.exports}var It={exports:{}},Cr={},si;function id(){return si||(si=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,n,o){if(r){o&&(o=o.toLowerCase());for(const c of r){var i,s;const l=(i=c.domain)==null?void 0:i.split(":")[0].toLowerCase();if(n===l||o===c.defaultLocale.toLowerCase()||(s=c.locales)!=null&&s.some(u=>u.toLowerCase()===o))return c}}}}(Cr)),Cr}var ci;function ad(){return ci||(ci=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 id().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)}(It,It.exports)),It.exports}var li;function sd(){return li||(li=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}});const r=Gt(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i,s,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=od().normalizeLocalePath,p=ad().detectDomainLocale,f=s||u(i,c).detectedLocale,d=p(l,void 0,f);if(d){const m="http"+(d.http?"":"s")+"://",h=f===d.defaultLocale?"":"/"+f;return""+m+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)}(jt,jt.exports)),jt.exports}var Nt={exports:{}},ui;function cd(){return ui||(ui=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return i}});const r=tc(),n=Gt(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function i(s,c){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?s:(0,r.addPathPrefix)(s,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)}(Nt,Nt.exports)),Nt.exports}var Ot={exports:{}},di;function ld(){return di||(di=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(f,d){for(var m in d)Object.defineProperty(f,m,{enumerable:!0,get:d[m]})}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 s},ACTION_PREFETCH:function(){return c},ACTION_FAST_REFRESH:function(){return l},ACTION_SERVER_ACTION:function(){return u}});const n="refresh",o="navigate",i="restore",s="server-patch",c="prefetch",l="fast-refresh",u="server-action";var p;(function(f){f.AUTO="auto",f.FULL="full",f.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)}(Ot,Ot.exports)),Ot.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._(P),o=Zu(),i=ec(),s=Ys(),c=Ut(),l=ed(),u=rc(),p=td(),f=rd(),d=sd(),m=cd(),h=ld(),y=new Set;function g(j,x,I,$,E,N){if(typeof window>"u"||!N&&!(0,i.isLocalURL)(x))return;if(!$.bypassPrefetchedCheck){const B=typeof $.locale<"u"?$.locale:"locale"in j?j.locale:void 0,R=x+"%"+I+"%"+B;if(y.has(R))return;y.add(R)}const M=N?j.prefetch(x,E):j.prefetch(x,I,$);Promise.resolve(M).catch(B=>{if(process.env.NODE_ENV!=="production")throw B})}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,$,E,N,M,B,R,q){const{nodeName:F}=j.currentTarget;if(F.toUpperCase()==="A"&&(v(j)||!R&&!(0,i.isLocalURL)(I)))return;j.preventDefault();const K=()=>{const W=M??!0;"beforePopState"in x?x[E?"replace":"push"](I,$,{shallow:N,locale:B,scroll:W}):x[E?"replace":"push"]($||I,{forceOptimisticNavigation:!q,scroll:W})};R?n.default.startTransition(K):K()}function _(j){return typeof j=="string"?j:(0,s.formatUrl)(j)}const C=n.default.forwardRef(function(x,I){let $;const{href:E,as:N,children:M,prefetch:B=null,passHref:R,replace:q,shallow:F,scroll:U,locale:K,onClick:W,onMouseEnter:z,onTouchStart:ne,legacyBehavior:w=!1,...T}=x;$=M,w&&(typeof $=="string"||typeof $=="number")&&($=n.default.createElement("a",null,$));const D=n.default.useContext(u.RouterContext),X=n.default.useContext(p.AppRouterContext),te=D??X,Z=!D,k=B!==!1,J=B===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&&!N){let ie;if(typeof E=="string"?ie=E:typeof E=="object"&&typeof E.pathname=="string"&&(ie=E.pathname),ie&&ie.split("/").some(G=>G.startsWith("[")&&G.endsWith("]")))throw new Error("Dynamic href `"+ie+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}const{href:Y,as:ee}=n.default.useMemo(()=>{if(!D){const G=_(E);return{href:G,as:N?_(N):G}}const[ie,me]=(0,o.resolveHref)(D,E,!0);return{href:ie,as:N?(0,o.resolveHref)(D,N):me||ie}},[D,E,N]),L=n.default.useRef(Y),O=n.default.useRef(ee);let re;if(w)if(process.env.NODE_ENV==="development"){W&&console.warn('"onClick" was passed to <Link> with `href` of `'+E+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),z&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+E+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{re=n.default.Children.only($)}catch{throw $?new Error("Multiple children were passed to <Link> with `href` of `"+E+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
1
+ "use strict";var Cu=Object.defineProperty;var Su=(e,t,r)=>t in e?Cu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Jt=(e,t,r)=>Su(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),P=require("react"),Ke=require("idb-keyval"),lt=require("zustand"),qn=require("js-cookie"),b=require("@soma-vertical-web/core-components"),Ue=require("./__vite-browser-external-B8mGO3z6.js"),Au=require("jose"),Ye=require("@soma-vertical-web/foundations"),Ro=require("axios"),Da=require("react-dom"),wo=require("@date-fns/tz"),Te=require("draft-js"),to=P.createContext({}),Eu=({data:e,children:t})=>a.jsx(to.Provider,{value:{tags:e==null?void 0:e.config},children:t}),ro=()=>{const{tags:e}=P.useContext(to),t=P.useCallback(r=>{var s,c,u,l;const n=(c=(s=e==null?void 0:e.commercial)==null?void 0:s.items)==null?void 0:c.find(p=>{var f;return(f=r??[])==null?void 0:f.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 f;return(f=r??[])==null?void 0:f.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}},$a=({gridScrollBack:e})=>{P.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},Ba=P.createContext({}),Ru=({children:e,gridScrollBack:t})=>{const r=P.useRef(null);return $a({gridScrollBack:t}),a.jsx(Ba.Provider,{value:{sizesContainerRef:r},children:e})},wu=()=>{const e=P.useContext(Ba);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},Le=(e,t=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:t?2:0}).format(e),no=({valueInCents:e,hasFree:t,freeTaxMessage:r})=>e===0?t?r:Le(0):Le(e/100),oo=(e,t)=>{const[r,n]=e.split(t);return{name:r.trim(),size:n?n.trim():""}},zt=(e,t)=>{if(!e)return{};const[r,n]=e.split(t);return{color:r==null?void 0:r.trim(),size:n==null?void 0:n.trim()}},qa=(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},ju=(e,t)=>e.replace(t,"").trim(),Pu=e=>e.replace(/\//g,""),Ha=({items:e,NAME_SPLIT_SYMBOL:t})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(s,c)=>{var d;c&&(c.sellerId=s.sellerId,c.sellerName=s.sellerName,c.available=!0,c.isSellerDefault=s.sellerDefault);const{Price:u,ListPrice:l,PaymentOptions:{installmentOptions:p}}=s.commertialOffer;r.price=u,r.listPrice=l;const f=(d=p==null?void 0:p[0])==null?void 0:d.installments;if(f){const{count:m,value:h}=f[f.length-1];r.installments={count:m,value:h/100}}};let o=!0;const i=e.reduce((s,c)=>{var p;const u={name:c.name,sku:c.itemId,value:((p=c.Tamanho)==null?void 0:p[0])??oo(c.nameComplete??c.name,t).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},l=c.sellers.filter(f=>(f.sellerDefault&&f.commertialOffer.IsAvailable&&(u.available=!0,n(f,u)),f.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),s.push(u),s},[]);return{...r,sizes:i,allSizesAvailable:o}},za=e=>e?!e.offers.offers.find(({quantity:t=0})=>t>0):!1,io=(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)},Fa=e=>e.find(t=>t.imageLabel==="10"),Ua=(e,t)=>{const r=/\/ids\/(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},Wa=(e,t)=>{const r=/\/ids\/(\d+)-(\d+)-(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}-${n[2]}-${n[3]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},Ga=({images:e,label:t})=>{const r=e.filter(n=>n.keywords===t.first||n.keywords===t.second||n.alternateName===t.first||n.alternateName===t.second);return r.length===0?[e[0]]:r},Iu=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},Va=(e,t,r)=>{t&&(e?(t.getAttribute("src")||(t.src=r??""),t.play()):t.pause())},Nu=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:za,formatPriceToCurrency:Le,freightParsePrice:no,getAspectRatio:Iu,getColorAndSizeFromSkuName:zt,getFirstImages:Ga,getProductNameWithoutSku:ju,getSKUName:qa,getSkuInfos:Ha,getThumbImage:Fa,getValidOffer:io,removeSlashes:Pu,resizingImg:Ua,setVideoPlay:Va,splitNameAndSizeFromFullName:oo,updatedResizedImg:Wa},Symbol.toStringTag,{value:"Module"})),$e=({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:s,outsideEcommerceData:c}=e,{availableSizes:u,sizes:l,price:p}=n,f={...r==="view_item"?{currency:ve.configs.currency,value:p,grade_disponivel:u??(l?Ka(l):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:p,currency:ve.configs.currency}:{}},d=xt({data:n,customData:{...o,...s,...i},configs:ve.configs});$e({event:r,data:{...c,ecommerce:{...s,...f,items:[d]}}}),typeof t=="function"&&t(d,f)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:r,itemList:n,outsideEcommerceData:o,customData:i}=e;if(t.length===0)return;const s=t.map(({node:c},u)=>xt({data:{...c},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}));$e({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:s}}})},skuEvents:e=>{const{event:t,commonData:{products:r},customData:n,supportData:{selectedSkus:o,price:i},promotionInfo:s,itemList:c,outsideEcommerceData:u}=e;let l=0;const p=r.map(f=>{var y,g,v,A,_,S,C,j,x;const d=o==null?void 0:o.find(I=>(f.productId??f.id)===I.productId);let m={...s,...c};if(d){const I=Qa(),$=Ya(I,d);$&&(m={...m,...$}),t==="add_to_cart"&&(s||c)&&Hn({persistedData:I,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:s,itemList:c}}),t==="remove_from_cart"&&Hn({persistedData:I,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}l+=f.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)??zt((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((A=f.itemOffered)==null?void 0:A.skuName),ve.configs.NAME_SPLIT_SYMBOL).size;return xt({data:f,customData:{...n,...m??{...s,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((_=f.itemOffered)==null?void 0:_.sku),quantity:(n==null?void 0:n.quantity)??f.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)??f.seller},configs:ve.configs})});$e({event:t,data:{...u,ecommerce:{value:i??l,currency:ve.configs.currency,items:p}}})},filterEvent:e=>{var s;const{commonData:t,customData:r,outsideEcommerceData:n}=e,o={},i={};Array.isArray(t==null?void 0:t.selectedFacets)&&((s=t==null?void 0:t.selectedFacets)!=null&&s.length)&&((t==null?void 0:t.selectedFacets).forEach(({key:c,value:u})=>{var f;const l=((f=ve.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:f.eventLabel)??c,p=(o==null?void 0:o[l])||[];l==="price_range"&&u.replace(":","-"),o[l]=[...p,u]}),Object.keys(o).forEach(c=>i[c]=o[c].join(", "))),$e({event:"filter",data:{...n,...i,...r}})},viewCartEvent:e=>{var p,f,d,m,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):{},s=n.items.map(S=>{const{promotionInfo:C,itemList:j}=i[S.id]??{};return xt({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})}),c=(((p=n.totalizers.find(S=>S.name==="Total dos Itens"))==null?void 0:p.value)??0)/100,u=(((f=n.totalizers.find(S=>S.name==="Total dos Descontos"))==null?void 0:f.value)??0)/100,l=((d=n.marketingData)==null?void 0:d.utmiCampaign)==="codigodavendedora"?(m=n.marketingData)==null?void 0:m.utmCampaign:(y=String((h=n.openTextField)==null?void 0:h.value))==null?void 0:y.split(" - ")[0];$e({event:"view_cart",data:{...r,ecommerce:{currency:ve.configs.currency,value:c+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:c,items:s}}})},readyEvents:e=>{const{event:t,readyData:r}=e;$e({event:t,data:{...r}})}},Ka=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),Ou=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]}:{}}:{}}},xt=({data:e,customData:t,configs:r})=>({...Tu(e,r==null?void 0:r.MAIN_IMAGE),...Mu(e),...ku(e),...Lu(e),...t}),Xa=()=>{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("_"))??[]:[]},Qa=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},Ya=(e,t)=>e==null?void 0:e[t],Hn=({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)))},Tu=(e,t="1")=>{var i,s,c,u,l,p,f,d,m,h,y;const r=e.productReference??e.gtin??e.productRefId,n=e.image??((s=(i=e.items)==null?void 0:i[0])==null?void 0:s.images)??((c=e.itemOffered)==null?void 0:c.image),o=n==null?void 0:n.find(g=>g.alternateName===t||g.imageLabel===t||g.keywords===t);return{item_id:e.productId??((u=e.isVariantOf)==null?void 0:u.productGroupID)??((l=e.isVariationOf)==null?void 0:l.productGroupID)??((f=(p=e.itemOffered)==null?void 0:p.isVariationOf)==null?void 0:f.productGroupID),item_ref:/_\d$/.test(r)?r.slice(0,-2):r,item_name:e.productTitle??e.productName??e.name??oo((d=e.itemOffered)==null?void 0:d.name,ve.configs.NAME_SPLIT_SYMBOL).name,item_brand:((m=e.brand)==null?void 0:m.brandName)??((h=e.brand)==null?void 0:h.name)??e.brand??((y=e.itemOffered)==null?void 0:y.brand.name),item_url:`${ve.configs.storeUrl}${e.linkText}/p`,item_image:(o==null?void 0:o.url)??(o==null?void 0:o.imageUrl)}},jo=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,Mu=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=jo(n),s=jo(o),c=i.slice(1,-1).split("/"),u=s.slice(1,-1).split("/");return{item_category:c[0].toLowerCase().includes(ve.configs.categoryOff)?"Bazar":"Coleção",...c[1]&&{item_category2:c[1]},...c.length>2&&{item_category3:c[c.length-1]},item_category_id:u[u.length-1],...u.length>1&&{item_parent_category_id:u[u.length-2]}}},ku=e=>{var o,i,s,c,u,l;const t=((o=e.itemOffered)==null?void 0:o.skuName)??((c=(s=(i=e.isVariantOf)==null?void 0:i.hasVariant)==null?void 0:s[0])==null?void 0:c.name)??((l=(u=e.items)==null?void 0:u[0])==null?void 0:l.name),{color:r,size:n}=zt(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,s=i?i-o:0,c=s%1===0?s:Number(s.toFixed(2));return{...t&&{price:o??i},...i&&{list_price:i,discount:c},...n&&{installments:n==null?void 0:n.count,installment_value:n==null?void 0:n.value},item_currency:ve.configs.currency}},Za=()=>{const[e,t]=Xa(),[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:Ya,getAvailablesSizes:Ka,getCategories:Ou,getPageCategoryAndDepartmentFromSlug:Za,getPersistedData:Qa,getProductListInfoFromHead:Xa,pushDatalayer:$e,updatePersistedData:Hn},Symbol.toStringTag,{value:"Module"})),Ja=P.createContext({}),$u=({children:e,evtFunctionsConfigs:t})=>{const r=P.useRef({}),n=P.useRef(null),o=P.useRef(null),i=P.useRef({}),s=P.useRef({trigger:!1,index:0}),c=({functionKey:p,data:f,callBack:d,timeout:m=100})=>{window.dataLayer||(window.dataLayer=[]),ve.configs=t;try{typeof ve[p]=="function"&&setTimeout(()=>{var h;f.promotionInfo=r.current,(h=o.current)!=null&&h.item_list_name&&(f.itemList=o.current),ve[p](f,d)},m)}catch(h){$e({event:"error_event",data:{error_message:(h==null?void 0:h.message)??h}})}},u=({content:p})=>{c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:p.replace("::",":")}}})},l=({updatePromotionRef:p,promotion:f,index:d})=>{p&&(r.current={...f}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...f,...d!==void 0&&{index:d}}}}})};return a.jsx(Ja.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:s,promotionEventRef:r,currentLocalRef:n,itemListRef:o,cartProductsFullDataRef:i,handleSelectContent:u,handleSelectPromotionEvent:l},children:e})},ge=()=>P.useContext(Ja),es=P.createContext({}),Bu=({children:e,productData:t,isKit:r,PDP_INFO:n,NAME_SPLIT_SYMBOL:o})=>{var B,R;const{sendDataLayerEvent:i,triggerSelectItemEventRef:s}=ge(),{productId:c,productName:u,items:l,items:[{images:p,Videos:f}],description:d,["Composição"]:m="",productReference:h,categories:[y]}=t,{getAvailableProductTag:g}=ro(),v=g(Object.entries(t.clusterHighlights).map(q=>({id:q[0],name:q[1]}))),A=y.slice(1,-1).split("/"),{installments:_,price:S,listPrice:C,sizes:j,allSizesAvailable:x}=Ha({items:l,NAME_SPLIT_SYMBOL:o}),I=Fa(p),$=[{label:`${n.product.description}`,value:"description",content:d},{label:`${n.product.materiais}`,value:"composition",content:m}],E=((R=zt((B=t.items)==null?void 0:B[0].name,o))==null?void 0:R.color)??t["Cores Filtráveis"][0]??"",N=()=>({commonData:{...t,sizes:j,price:S,listPrice:C,installments:_},customData:{installments:_==null?void 0:_.count,installment_value:Number(_==null?void 0:_.value).toFixed(2)}}),k=({sku:q,size:F})=>{const{commonData:U,customData:K}=N();i({functionKey:"productEvents",data:{event:"view_item",commonData:U,customData:{...K,...q&&{item_sku:q},...F&&{item_variant2:F}}}})};return P.useEffect(()=>{if(s.current.trigger){const{commonData:q,customData:F}=N();i({functionKey:"productEvents",data:{event:"select_item",commonData:q,customData:{...F,index:s.current.index}}}),s.current.trigger=!1}k({})},[]),a.jsx(es.Provider,{value:{productData:t,productId:c,productName:u,productReference:h,tag:v,items:l,sizes:j,allSizesAvailable:x,installments:_,price:S,listPrice:C,thumbImage:I,images:p,video:f[0],descriptionContent:$,breadcrumbList:A,isKit:r,colorName:E,handleViewItemEvent:k},children:e})},ao=()=>{const e=P.useContext(es);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},qu={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},Ne=Promise.resolve(!1),zn={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>Ne,addItem:()=>Ne,addSellerCode:()=>Ne,addMarketingData:()=>Ne,emptyCart:()=>{},removeItem:()=>Ne,setIsOpen:()=>{},shipping:()=>Ne,shippingUpdate:()=>Ne,toggleServiceToProduct:()=>Ne,updateItemQuantity:()=>Ne,insertProfileEmail:()=>Ne,setRecentlyAddedProducts:()=>{}},so=e=>e===0,ts=(e,t)=>{if(!e||e.length===0)return[];let r="";const n=[],o=e.match(/\d+/g)??[];for(const i of o){const s=t[Number(i)];s&&(r+=(r?"/":"")+s,n.push(r))}return n},rs=(e,t)=>{const{availability:r,additionalInfo:{brandName:n},bundleItems:o,id:i,uniqueId:s,detailUrl:c,ean:u,imageUrl:l,name:p,listPrice:f,quantity:d,price:m,priceDefinition:h,productCategories:y,productCategoryIds:g,productId:v,refId:A,seller:_,referenceId:S,offerings:C,productRefId:j,skuName:x,sellingPrice:I}=e;return{availability:r,bundleItems:o,referenceId:S,productRefId:j,id:i,ean:u,uniqueId:s,itemOffered:{additionalProperty:[],brand:{name:n},categories:ts(g,y),categoriesIds:g,gtin:A,image:[{alternateName:(t==null?void 0:t.MAIN_IMAGE)??"1",url:l}],name:p,isVariationOf:{name:p,productGroupID:v},sku:i,slug:c,skuName:x},listPrice:f,quantity:d,offerings:C,price:m,priceDefinition:h,sellingPrice:I,seller:_}},ns=(e,t)=>{const r=e.map(n=>({id:n.id,quantity:n.quantity,seller:n.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},os=(e,t)=>{const r=e.find(n=>n.id===t);if(r){const n=e.map((o,i)=>{var s,c;return{id:((s=o.itemOffered)==null?void 0:s.sku)??"",index:i,quantity:(r==null?void 0:r.id)===((c=o.itemOffered)==null?void 0:c.sku)?0:o.quantity,seller:o.seller??""}});return{updateItems:n,filterItems:n.filter(o=>o.id!==t)}}return{updateItems:[],filterItems:[]}},is=(e,t,r)=>e.filter(n=>n.availability!=="withoutStock"&&n.availability!=="https://schema.org/OutOfStock").map((n,o)=>{var i,s;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:((s=n.itemOffered)==null?void 0:s.sku)??""}}),Fn=(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},zu=e=>{const t=e.reduce((o,i)=>{const s=so(i.price)?0:i.quantity;return o+s},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}},Fu=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(so(r==null?void 0:r.price)?0:r.quantity),0):0,as=(e,t)=>{const{items:r,itemMetadata:n,marketingData:o,messages:i,orderFormId:s,openTextField:c,paymentData:u,shippingData:l,totalizers:p}=e;return{id:s,itemMetadata:n,items:Array.isArray(r)?r.map(f=>rs(f,t)):[],marketingData:o,messages:i,openTextField:c,paymentData:u,shippingData:l,totalizers:p}},ss=(e,t)=>{const r=e.find(n=>n.id===t);return r?r.availability==="unavailableItemFulfillment":!1},Uu=(e,t)=>{const r=e.sku,n=e.isVariantOf.hasVariant.find(o=>o.sku===r);return n?n.name.split(t)[1]:"--"},Qe=(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},Wu=(e,t)=>{const r=new Set;return[e,...t].filter(n=>!r.has(n)&&r.add(n),r)},cs=(e,t)=>t&&Array.isArray(t)&&t.find(n=>n.id===e)?Promise.resolve(e):Promise.resolve(!1),us=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),ls=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},ds=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},fs=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(n=>n.id===r.id)):[],ps=async(e,t)=>e.then(r=>[...r??[],...t??[]]),Ee=async(e,t,r,n)=>{const{priority:o="auto",body:i}=t;return fetch(e,{headers:{"Content-Type":"application/json"},priority:o,method:"POST",body:JSON.stringify(i)}).then(async s=>{const c=await s.json();return r?c:as(c,n)})},ms=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),Gu=e=>[...Array.isArray(e)?e:[e],"faststore"],hs=e=>{const t=e.get("utm_source")||ze("utm_source"),r=e.get("utm_campaign")||ze("utm_campaign"),n=e.get("utm_medium")||ze("utm_medium"),o=e.get("utmi_cp")||ze("utmi_cp"),i=e.get("utmi_pc")||ze("utmi_pc"),s=e.get("utmi_p")||ze("utmi_p");return{...t&&{utmSource:t},...n&&{utmMedium:n},...r&&{utmCampaign:r},...o&&{utmiCampaign:o},...i&&{utmiPart:i},...s&&{utmipage:s}}},ze=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},Vu=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:qu,addItemOrder:ns,addNotification:ms,createItemOrder:rs,fetchCartAPI:Ee,findItemIndex:Fn,findOptions:fs,findTotalizerValue:Hu,getCategories:ts,getCode:Qe,getQuantity:ds,getRemoveId:cs,getSize:Uu,getTotalItems:Fu,getTotalizer:zu,getUrlParameter:ze,getValue:us,initialState:zn,isGift:so,marketingTagsBuilder:Gu,mergeOptionsPromise:ps,mountMarketingData:hs,orderFormValues:as,promiseDefault:Ne,removeQuantity:os,updateItemSellerExternal:ss,updateOrderFormPromise:ls,updateQuantity:is,wishlistArray:Wu},Symbol.toStringTag,{value:"Module"})),Ku=()=>{const e=async(m,h)=>Ee("/api/checkout/order-form/coupon",{body:{orderFormId:m,coupon:h}}),t=async(m,h)=>{if(h){const y=h.includes(" - ")?h.split(" - ")[0]:h,g=await Ee("/api/checkout/order-form/seller-code",{body:{orderFormId:m,sellerCode:y}},!0);return Ee("/api/checkout/order-form/attachments",{body:{orderFormId:m,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 Ee("/api/checkout/order-form/attachments",{body:{orderFormId:m,sellerCode:"",sellerName:""}})},r=async(m,h)=>Ee("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:m,marketingData:h}}),n=async(m,h,y)=>Ee("/api/checkout/order-form/items",{body:{orderFormId:m,orderItems:ns(h,y)}}),o=async(m,h,y,g)=>Ee("/api/checkout/order-form/offerings",{body:{id:h,itemIndex:y,orderFormId:m,remove:g}}),i=async m=>Ee("/api/checkout/order-form/items/remove-all",{body:{orderFormId:m}}),s=async(m,h="low")=>Ee("/api/checkout/order-form",{priority:h,body:{orderFormId:m??""}}),c=async(m,h)=>Ee("/api/checkout/order-form/profile",{body:{orderFormId:m,email:h}}),u=async(m,h,y)=>{const g=os(h,y);return Ee("/api/checkout/order-form/items/update",{body:{orderItems:g.updateItems,orderFormId:m}})},l=async(m,h,y)=>Ee("/api/checkout/order-form/shipping",{body:{orderFormId:m,country:y,postalCode:h}}),p=async(m,h,y)=>Ee("/api/checkout/order-form/shipping/update",{body:{orderFormId:m,options:h,selectedAddresses:y}}),f=async(m,h,y,g)=>{const v=is(h,y,g);return Ee("/api/checkout/order-form/items/update",{body:{orderFormId:m,orderItems:v}})};return{addCoupon:e,addItem:n,addSellerCode:t,addMarketingData:r,giftItem:o,emptyCart:i,getOrderForm:s,insertProfileEmail:c,removeItem:u,shipping:l,shippingUpdate:p,updateItemQuantity:async(m,h,y,g,v)=>f(m,h,y,g).then(A=>A&&Array.isArray(A.items)?ss(A.items,y)?f(m,h,y,v):A:!1)}},Un="soma::cart",it="soma::options",Ze=lt.create((e,t)=>{const r=Ku(),n=async(o,i,s)=>{e({loading:!0});const c=await ls(o);if(typeof c!="boolean"){e({...c});const u=await ps(Ke.get(it),s);return Ke.set(it,u),us(c,i).finally(()=>e({loading:!1,options:u}))}return Ne};if(typeof window<"u"){const o=async i=>{if(i){const s=await Ke.get(it).then(l=>fs(l,i.items));Ke.set(Un,i),Ke.set(it,s),e({...i,options:s});const c=new URLSearchParams(window.location.search),u=c.get("utm_campaign")||c.get("utmi_campaign")||"";u&&n(()=>r.addSellerCode(t().id,u.toUpperCase()),"openTextField")}};return Ke.get(Un).then(i=>r.getOrderForm(i?i.id:"").then(o)),{...zn,addCoupon:async i=>n(()=>r.addCoupon(t().id,i),"marketingData"),addItem:(i,s)=>{n(()=>r.addItem(t().id,t().items,i),"items",s)},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 s=await n(()=>r.removeItem(t().id,t().items,i),"items");return cs(i,s)},shipping:async(i,s="BR")=>n(()=>r.shipping(t().id,i??"",s),"shippingData"),shippingUpdate:async i=>n(()=>{var s;return r.shippingUpdate(t().id,i,(s=t().shippingData)==null?void 0:s.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(i,s,c)=>n(()=>r.giftItem(t().id,i,s,c),"items"),updateItemQuantity:async(i,s,c)=>{const{id:u,items:l}=t();return n(()=>{var p;return r.updateItemQuantity(u,l,i,s,((p=l.find(f=>f.id===i))==null?void 0:p.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async i=>n(()=>r.insertProfileEmail(t().id,i),"clientProfileData"),setIsOpen:i=>e({isOpen:i})}}return zn}),Xu=()=>Ze(e=>e),gs=lt.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(n=>ms(n,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(n=>n.id!==t)}))}})),ys=()=>gs(e=>e.notifications),_s=()=>gs(e=>e.actions),Qu=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:it,KEY_INDEXED_STORE:Un,useCartStore:Ze,useGetCartStoreState:Xu,useGetNotificationActions:_s,useGetNotificationsStore:ys},Symbol.toStringTag,{value:"Module"})),Yu=6e3,vs=P.createContext({}),bs=({children:e,...t})=>{const{items:r}=Ze(),[n,o]=P.useState([]),i=P.useRef(null),s=P.useMemo(()=>Array.isArray(n)&&n.length>0?n.map(c=>r.find(u=>u.id===c.id)).filter(c=>c!==void 0):[],[r,n]);return P.useEffect(()=>{n.length&&(clearTimeout(i.current??0),i.current=setTimeout(()=>{o([])},Yu))},[n]),a.jsx(vs.Provider,{value:P.useMemo(()=>({...t,setRecentlyAdded:o,recentlyAddedProducts:s}),[t,o,s]),children:e})},dt=()=>{const e=P.useContext(vs);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class xs{constructor(){Jt(this,"events",{});Jt(this,"prevData",{})}subscribe(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),()=>{this.events[t]=this.events[t].filter(n=>n!==r)}}publish(t,r){this.events[t]&&this.events[t].forEach(n=>{this.prevData[t]=r,n(r)})}}const Cs=P.createContext({}),Zu=({children:e,headerConfigs:t,pathname:r,...n})=>{const[o,i]=P.useState(!0),s=r==="/",c=P.useRef(new xs),u=f=>f?{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(s),p=P.useRef(l);return P.useEffect(()=>{var m;const f=((m=new URLSearchParams(window.location.search))==null?void 0:m.toString())??"";(f.includes("utm_")||f.includes("gclid"))&&(qn.get("lastMedias")||qn.set("lastMedias",`${f}`,{expires:1/24}));const d=()=>{const h=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,y=/iPad|iPhone|iPod/.test(h),g=window.innerWidth<1024||!!h.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);if(y){const v=document.querySelector('meta[name="viewport"]');v&&v.setAttribute("content","width=device-width, initial-scale=1, maximum-scale=1")}o!==g&&i(g)};return d(),window.addEventListener("resize",d,{passive:!0}),()=>window.removeEventListener("resize",d)},[o]),P.useEffect(()=>{const f=u(s);c.current.publish("header:change_variant",f.headerVariant),c.current.publish("header:change_position",f.position),p.current=f},[s]),a.jsx(Cs.Provider,{value:{isMobile:o,mediatorRef:c,currentHeaderConfigsRef:p,...n},children:a.jsx(bs,{children:e})})},Ie=()=>P.useContext(Cs),Ss=P.createContext({}),Ju=({children:e,...t})=>a.jsx(Ss.Provider,{value:{...t},children:e}),Me=()=>P.useContext(Ss),We=(e,t)=>lt.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}}}),ut={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},ft=new Set,el=()=>{ft.forEach(e=>{e()})},As=lt.create((e,t)=>{const r=()=>e({value:ut.category});return ft.add(r),{value:ut.category,actions:{reset:r,setValue:n=>e(()=>({value:n})),updateValue:n=>{t().value!==n&&e({value:n})}}}}),Ft=()=>As(e=>e.value),qe=()=>As(e=>e.actions),Es=We(ut.menuMobileIsOpen,ft),co=()=>Es(e=>e.value),Ge=()=>Es(e=>e.actions),Rs=We(ut.searchModalIsOpen,ft),tl=()=>Rs(e=>e.value),uo=()=>Rs(e=>e.actions),ws=We(ut.userMenuIsOpen,ft),rl=()=>ws(e=>e.value),Ut=()=>ws(e=>e.actions),nl=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:el,useActionsHeaderCategory:qe,useActionsMenuMobileIsOpen:Ge,useActionsSearchModalIsOpen:uo,useActionsUserMenuIsOpen:Ut,useGetHeaderCategoryStore:Ft,useGetMenuMobileIsOpen:co,useGetSearchModalIsOpen:tl,useGetUserMenuIsOpen:rl},Symbol.toStringTag,{value:"Module"})),Je={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},tt=new Set,ol=()=>{tt.forEach(e=>{e()})},js=lt.create(e=>{const t=()=>e({value:Je.selectedSkuInfo});return tt.add(t),{value:Je.selectedSkuInfo,actions:{setValue:r=>e(n=>({value:{...n,...r}})),reset:t}}}),il=()=>js(e=>e.value),al=()=>js(e=>e.actions),Ps=We(Je.openLetMeKnow,tt),sl=()=>Ps(e=>e.value),cl=()=>Ps(e=>e.actions),Is=We(Je.showNotify,tt),ul=()=>Is(e=>e.value),ll=()=>Is(e=>e.actions),Ns=We(Je.showBottomNavigation,tt),dl=()=>Ns(e=>e.value),fl=()=>Ns(e=>e.actions),Os=We(Je.openMeasurements,tt),pl=()=>Os(e=>e.value),ml=()=>Os(e=>e.actions),hl=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:ol,useActionsPDPOpenLetMeKnow:cl,useActionsPDPOpenMeasurements:ml,useActionsPDPSelectedSkuInfo:al,useActionsPDPShowBottomNavigation:fl,useActionsPDPShowNotify:ll,useGetPDPOpenLetMeKnow:sl,useGetPDPOpenMeasurements:pl,useGetPDPSelectedSkuInfo:il,useGetPDPShowBottomNavigation:dl,useGetPDPShowNotify:ul},Symbol.toStringTag,{value:"Module"})),Ts=P.createContext({}),gl=({children:e,headerData:t,...r})=>{var u,l;const n=P.useRef(null),o=P.useRef(null),i=P.useRef(null),{mediatorRef:s,currentHeaderConfigsRef:c}=Ie();return(u=s.current)==null||u.subscribe("header:change_variant",p=>{var y,g,v;if(p&&c.current&&(c.current.bannerVariant=p),!n.current)return;const d=document.body.scrollTop>0,m=n.current.getAttribute("data-interactiveVariant"),h=d?m:p??((y=c.current)==null?void 0:y.bannerVariant)??"default";h!==((g=c.current)==null?void 0:g.headerVariant)&&(n.current.setAttribute("data-bottomdivider",String(d)),n.current.setAttribute("data-variant",String(h)),(v=s.current)==null||v.publish("herobanner:change_controllers_variant",h),c.current&&(c.current.headerVariant=h))}),(l=s.current)==null||l.subscribe("header:change_position",p=>{n.current&&(n.current.style.position=p)}),P.useEffect(()=>{const p=new AbortController,f=b.helpers.throttle(()=>{var m;return(m=s.current)==null?void 0:m.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",f,{passive:!0,signal:p.signal});const d=m=>{var y;(y=m.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()}},[]),a.jsx(Ts.Provider,{value:{headerData:t,structureRef:o,rootRef:n,tipbarRef:i,...r},children:e})},xe=()=>P.useContext(Ts),Ms=P.createContext({}),ks=({children:e})=>{const t=P.useRef(null),r=P.useRef(null),n=co(),o=P.useCallback(()=>{var i;{const s=(i=t.current)==null?void 0:i.querySelector("dialog");if(s){s.dataset.animation="out";const c=s.children[0];c.dataset.animation="out"}}},[]);return P.useEffect(()=>{var i;if(n)document.body.dataset.modalopen="true";else{document.body.dataset.modalopen="false";const s=(i=r.current)==null?void 0:i.querySelector("dialog");if(s){s.dataset.animation="out";const c=s.children[0];c.dataset.animation="out"}}},[n]),P.useEffect(()=>{r.current=document.body},[]),a.jsx(Ms.Provider,{value:{bodyRef:t,handleCloseSubMenu:o,documentBodyRef:r},children:e})},pt=()=>P.useContext(Ms),yl=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},_l=(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?yl(e==null?void 0:e.parentElement):0;return{left:n.left+n.width/2-(o.width+i),top:n.top+n.height+r}},Ls=P.createContext({}),Ds=({children:e,delay:t=600,gap:r=20,...n})=>{const[o,i]=P.useState(!1),s=P.useRef(null),[c,u]=P.useState(!1),[l,p]=P.useState({left:0,top:0}),f=P.useCallback(()=>{u(!0),typeof window<"u"&&(s.current=window.setTimeout(()=>{i(!1),u(!1)},t))},[u,i,t]);return P.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),m=window.document.querySelector("#add-to-cart--tooltip");if(d&&m){const{left:h,top:y}=_l(m,d,r??0);p({left:h,top:y}),u(!1)}},[r,o]),a.jsx(Ls.Provider,{value:P.useMemo(()=>({...n,...l,handleClose:f,isLeaving:c,isOpen:o,setIsOpen:i,setIsLeaving:u}),[n,l,f,c,o,i,u]),children:e})},Ve=()=>{const e=P.useContext(Ls);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},$s=P.createContext({}),vl=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const n=Ze(),{setRecentlyAdded:o}=dt(),i=P.useRef(""),s=ys(),{addNotification:c,removeNotification:u}=_s(),{addCoupon:l,addItem:p,addSellerCode:f,addMarketingData:d,emptyCart:m,isOpen:h,removeItem:y,shipping:g,shippingUpdate:v,toggleServiceToProduct:A,updateItemQuantity:_}=n;P.useEffect(()=>{const R=qn.get("lastMedias");if(n.id&&R&&i.current!==R){i.current=R;const q=new URLSearchParams(R),F=hs(q);d(F)}},[n,d]);const S=P.useCallback(async(R,q)=>(q==="coupon"?l(R):f(R)).then(U=>{if(typeof U!="boolean"&&U instanceof Object){if(q==="seller"&&"value"in U){const{statusOk:K,value:G}=U,z=String(G??"").split(" - ");return Qe((z==null?void 0:z[0])??"",R,!!K)}return Qe(String(U.coupon),R,!0)}return Qe("","")}).catch(()=>Promise.resolve({code:400})),[l,f]),C=P.useCallback((R,q,F)=>{const{id:U}=R;_(U,q,F)},[_]),j=P.useCallback((R,q,F=!1)=>{if(!R)return;const{id:U}=R,K=Fn(n.items,U);if(K!==-1&&!F){const G=Number(n.items[K].quantity),z=n.items[K]?G+1:1;C(R,z,q)}else p({id:U,quantity:(R==null?void 0:R.quantity)??1,seller:R.seller});h||o(G=>[...G,R])},[p,C,n.items,h,o]),x=P.useCallback((R,q)=>{if(!R||!Array.isArray(R))return;o(U=>[...U,...R]);const F=R.map(U=>{const{id:K,quantity:G,seller:z}=U,ne=Fn(n.items,K),w=ds(G??1,ne);return{id:K,quantity:w,seller:z}});p(F,q)},[p,n.items,o]),I=P.useCallback(async(R,q,F)=>R?y(R).then(()=>(c(q??`${t}`,F),Qe(R,R))):Promise.resolve(Qe("","Product id required")),[c,y]),$=P.useCallback(()=>{n.items.length>0&&m()},[m,n.items]),E=P.useCallback((R,q="BRA")=>g(R,q),[g]),N=P.useCallback(R=>{R&&v(R)},[v]),k=P.useCallback(async(R,q,F)=>{const U=n.items.findIndex(G=>G.id===R);return n.items[U]&&U>=0?A(q,U,F??!1):!1},[n.items,A]),B=P.useCallback(async(R,q)=>_(R,q).then(F=>{if(Array.isArray(F)){const U=F.find(K=>K.id===R);if(U&&(U==null?void 0:U.quantity)<q)return String(U.quantity)}return!1}),[_]);return a.jsx($s.Provider,{value:P.useMemo(()=>({...r,addCouponSeller:S,addToCart:j,addItemsToCart:x,cartStore:n,notifications:s,clearCart:$,addNotification:c,isOpen:n.isOpen,removeNotification:u,removeToCart:I,setIsOpen:n.setIsOpen,shipping:E,shippingUpdateOption:N,toggleGiftItemCart:k,updateItemQuantity:B}),[r,S,j,x,s,$,c,n,u,I,E,N,k,B]),children:e})},He=()=>{const e=P.useContext($s);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},Bs=P.createContext({}),lo=({children:e,fetch:t})=>{const r=P.useRef(!0),[n,o]=P.useState(null),[i,s]=P.useState(!1);return P.useEffect(()=>{(async()=>{r.current=!0;try{const u=await t();if(!u.ok)throw new Error("Failed to fetch data");const l=await u.json();o(l.data),r.current=!1}catch{r.current=!0,s(!0)}})()},[t]),a.jsx(Bs.Provider,{value:P.useMemo(()=>({data:n,isLoading:r.current??!1,isError:i}),[n,i,r]),children:e})},fo=()=>{const e=P.useContext(Bs);if(e===void 0)throw new Error("useProductsContext must be used within a useRootContext");return e},qs=P.createContext({}),bl=({children:e,sort:t,state:r,count:n,collectionId:o,CONSTANTS:i})=>{const s=P.useMemo(()=>{var c;return o?[{key:"productclusterids",value:o.toString()}]:(c=r.base)!=null&&c.length?r.base.slice(1).split("/").map((u,l)=>({key:`category-${l+1}`,value:u})):[]},[r.base,o]);return a.jsx(qs.Provider,{value:P.useMemo(()=>({state:{...r,facets:[...s,...r.facets??[]]},sort:t,count:n??i.ITEMS_PER_PAGE}),[s,n,t,r]),children:e})},Hs=()=>{const e=P.useContext(qs);if(e===void 0)throw new Error("useSearchContext must be used within a SearchProvider");return e},xl={default_option:"score:desc"},Cl={nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"0",count:0,total:0},Sl="Imagem do produto",zs=P.createContext({}),Al=({children:e,searchParams:t,selectedFacets:r})=>{const{data:n,...o}=fo(),{router:i}=Me(),s=P.useCallback((f,d)=>{if(d){if(f.key.toLocaleLowerCase()==="price"){const m=d.getAll("facets");d.delete("facets"),m.forEach(h=>{const[y]=h.split("/");y!==f.key&&d.append("facets",h)})}d.set("page","1"),d.append("facets",`${f.key}/${f.value}`),i.push(`?${d.toString()}`)}},[i]),c=P.useCallback(()=>{const f=new URLSearchParams;f.set("sort",xl.default_option),f.set("page","1"),i.push(`?${f.toString()}`)},[i]),u=P.useCallback((f,d)=>{if(!d||!d.has&&!d.has("facets"))return;const m=d.getAll("facets");d.delete("facets"),d.set("page","1"),m.forEach(h=>{const[y,g]=h.split("/");(y!==f.key||g!==f.value)&&d.append("facets",h)}),i.push(`?${d.toString()}`)},[i]),l=P.useCallback(f=>{const d=new URLSearchParams(Ue.convertSearchParams(t));for(const[,m]of d.entries()){const[h,y]=m.split("/");if(h===f.key&&y===f.value)return u(f,d)}return s(f,d)},[s,u,t]),p=P.useCallback(f=>{const d=new URLSearchParams(Ue.convertSearchParams(t));d.set("sort",f.replace("_",":")),i.push(`?${d.toString()}`)},[i,t]);return a.jsx(zs.Provider,{value:P.useMemo(()=>({...o,breadcrumb:n&&"breadcrumb"in n?n==null?void 0:n.breadcrumb:[],deleteAllFacets:c,facets:n&&"facets"in n?n==null?void 0:n.facets:[],selectedFacets:r,onToggleFacet:l,onSort:p,searchParams:t}),[n,c,p,l,o,r,t]),children:e})},El=({children:e,searchParams:t,forceUpdate:r})=>{const{state:n}=Hs();return a.jsx(lo,{fetch:()=>fetch("/api/search/facets",{method:"POST",body:JSON.stringify({...n,forceUpdate:r}),priority:"low"}),children:a.jsx(Al,{selectedFacets:(n==null?void 0:n.facets)??[],searchParams:t,children:e})})},Rl=()=>{const e=P.useContext(zs);if(e===void 0)throw new Error("useFacetsContext must be used within a FacetsProvider");return e},Fs=P.createContext({}),wl=({children:e})=>{const{data:t,...r}=fo(),[n,o]=P.useState(0),{sendDataLayerEvent:i}=ge();return P.useEffect(()=>{if(t&&"pagination"in t&&t.products.length>0){i({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:t.products}}});const s=t.pagination.count;s&&Number.isInteger(s)&&o(s)}},[t,i,o]),a.jsx(Fs.Provider,{value:P.useMemo(()=>({...r,products:t&&"products"in t?t==null?void 0:t.products:[],pagination:t&&"pagination"in t?t==null?void 0:t.pagination:Cl,total:n}),[t,r,n]),children:e})},jl=({children:e,query:t,state:r,selectedFacets:n,forceUpdate:o})=>a.jsx(lo,{fetch:()=>fetch("/api/search/product",{method:"POST",body:JSON.stringify({...r,query:t,forceUpdate:o,facets:n??[]})}),children:a.jsx(wl,{state:r,children:e})}),Pl=()=>{const e=P.useContext(Fs);if(e===void 0)throw new Error("useProductsContext must be used within a ProductsProvider");return e},Us=P.createContext({}),Il=({children:e,term:t})=>{const[r,n]=P.useState([]),[o,i]=P.useState(!1);return P.useEffect(()=>{if(!t){n([]);return}(async()=>{i(!0);try{const c=await fetch("/api/search/suggestedTerms",{method:"POST",body:JSON.stringify({query:t,locale:"pt-BR"})}),{data:u}=await c.json();n((u==null?void 0:u.searches)||[])}catch(c){console.error("Erro ao buscar sugestões:",c)}})()},[t]),a.jsx(Us.Provider,{value:P.useMemo(()=>({suggestedTerms:r,loading:o,setLoading:i}),[r,o]),children:e})},Nl=({children:e,...t})=>a.jsx(Il,{...t,children:e}),Ol=()=>{const e=P.useContext(Us);if(!e)throw new Error("useSuggestedTermsContext must be used within a SuggestedTermsProvider");return e},Ws=P.createContext({searches:[],isLoading:!1,error:null}),Tl=({children:e})=>{const[t,r]=P.useState([]),[n,o]=P.useState(!0),[i,s]=P.useState(null);return P.useEffect(()=>{(async()=>{try{o(!0);const u=await fetch("/api/search/topSearch");if(!u.ok)throw new Error(`Erro ao buscar os dados: ${u.status}`);const l=await u.json();r(l.data.searches||[])}catch(u){s(u instanceof Error?u.message:"Erro desconhecido")}finally{o(!1)}})()},[]),a.jsx(Ws.Provider,{value:P.useMemo(()=>({searches:t,isLoading:n,error:i}),[t,n,i]),children:e})},Ml=()=>{const e=P.useContext(Ws);if(!e)throw new Error("useTopSearches must be used within a TopSearchesProvider");return e},kl={contexts:{addToCart:{hook:Ve,provider:Ds},cart:{hook:He,provider:vl},cms:{FlagsAndTags:{context:to,hook:ro,provider:Eu}},events:{hook:ge,provider:$u},global:{hook:Ie,provider:Zu,mediator:xs},header:{hook:xe,provider:gl},menuMobile:{hook:pt,provider:ks},next:{hook:Me,provider:Ju},pdp:{provider:Ru,hook:wu},pdpdata:{hook:ao,provider:Bu},searchFacets:{hook:Rl,provider:El},searchProducts:{hook:Pl,provider:jl},searchRoot:{hook:fo,provider:lo},searchSearch:{hook:Hs,provider:bl},searchSuggestedTerms:{hook:Ol,provider:Nl},searchTopSearchs:{hook:Ml,provider:Tl},ui:{hook:dt,provider:bs}},hooks:{useBackPDC:$a},stores:{cart:Qu,header:nl,pdp:hl}};function Gs(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 Vs(e,t,r={}){const o={...{path:"/",expires:new Date(Date.now()+36e5)},...r};let i=`${encodeURIComponent(e)}=${encodeURIComponent(t??"")}`;for(const s in o)o[s]!==void 0&&(i+=`; ${s}`,s==="expires"?i+=`=${o[s].toUTCString()}`:typeof o[s]=="boolean"?i+=`; ${o[s]?"true":"false"}`:i+=`=${o[s]}`);window.document.cookie=i}const Ll=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function Dl(e,t=1e3){let r=!1;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>{r=!1},t))}}function $l(e,t=1e3){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}const Ks=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,at=(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),Bl=e=>{const t=Au.decodeJwt(e??"");return{email:t.sub,userId:t.userId}},ql=["name","email","phone","date","cpf","cep"],Po={email:/\S+@\S+\.\S+/,name:new RegExp("^\\p{L}+( \\p{L}+)*$","u"),phone:/^\d{10,11}|\(\d{2}\)\s?\d{4,5}-\d{4}$/,date:/^\d{6,8}|^\d{2}\/\d{2}\/\d{2,4}$/,cep:/^\d{5}[-]?\d{3}$/,cpf:/^\d{11}|\d{3}\.\d{3}\.?\d{3,5}\-[\d]{2}$/},Hl=({type:e,input:t,required:r=!1})=>{if(typeof t!="string"||!r&&t===""||!Po[e])return!0;const n=t.trim();return Po[e].test(n)},zl=e=>{const t=/\/(\d+)-\d+-\d+\/(.+?)\./,r=typeof e=="string"?e.match(t):null;return r?r[2].replace(/-/g," "):Sl},Fl=Object.freeze(Object.defineProperty({__proto__:null,FieldTypes:ql,debounce:$l,getAltTextFromUrl:zl,getAuthenticatedUser:Bl,getCookie:Gs,getDaysHoursMinutesSeconds:at,getMilliSeconds:Ks,removeAccentsAndReplaceSpaces:Ll,setCookie:Vs,throttle:Dl,validateInput:Hl},Symbol.toStringTag,{value:"Module"})),Ul={cart:Vu,events:Du,product:Nu,utils:Fl},po={helpers:Ul},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"},Xs=({brand:e,className:t,name:r,...n})=>a.jsxs("div",{...n,className:b.helpers.classNameConcat(je["add-to-cart--card--name"],t),children:[a.jsx(b.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),a.jsx(b.TextStructure.Root,{children:a.jsx(b.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:a.jsx("p",{className:"typography-style-body-md",children:r})})})]});Xs.displayName="AddToCart.Card.Name";const Qs=({className:e,listPrice:t,price:r,quantity:n,productId:o,...i})=>{const s=Le(r/100),c=Le(t/100);return a.jsx("div",{...i,className:b.helpers.classNameConcat(je["add-to-cart--card--price-quantity"],e),children:a.jsx(b.ProductInfo.Root,{size:"small",layout:"vertical",children:a.jsx(b.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:a.jsx(b.ProductInfo.ValuesWrapper,{children:r!==t?a.jsxs(a.Fragment,{children:[a.jsx(b.ProductInfo.Price,{label:"originalPrice",value:s,size:"small"},"price-list"),a.jsx(b.ProductInfo.Price,{label:"discountPrice",value:c,size:"small"},"price-low")]}):a.jsx(b.ProductInfo.Price,{label:"defaultPrice",value:c,size:"small"},"price-low")})})})})};Qs.displayName="AddToCart.Card.PriceQuantity";const Wl="_skeleton_12b79_1",Gl={skeleton:Wl},Vl=({style:e})=>a.jsx("div",{style:e,className:Gl.skeleton}),Kl="_image_lypfr_1",Xl={image:Kl},Ql=({alt:e,className:t,objectFit:r,...n})=>{const{nextimage:o}=Me();return a.jsx(o,{quality:90,...n,alt:e??"",className:b.helpers.classNameConcat(Xl.image,t),"data-object-fit":r??"cover"})},Yl=({videoRef:e,...t})=>a.jsx("video",{...t,ref:e,children:a.jsx("track",{kind:"captions"})}),ke={Image:Ql,Video:Yl},Ys=({className:e,productGroupID:t,size:r,texture:n,...o})=>{const{CONSTANTS:{TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:s}}=Ve(),[c,u]=P.useState(n??"");return P.useEffect(()=>{c||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 f=p.images.find(d=>i.includes(d.imageLabel));f!=null&&f.imageUrl?u(f.imageUrl):u(p.images[0].imageUrl)}}).catch(l=>{console.error(l)})},[c,t]),a.jsxs("div",{...o,className:b.helpers.classNameConcat(je["add-to-cart--card--style-size"],e),children:[a.jsx(b.ToggleStyle.Wrapper,{size:"x-small",style:s,children:a.jsx(b.ToggleStyle.Texture,{children:c?a.jsx(ke.Image,{alt:"",src:c??"",width:164,height:164,style:s}):a.jsx(Vl,{})})}),a.jsx(b.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),r&&a.jsxs(b.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[a.jsx(b.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),a.jsx(b.ToggleSize.Text,{children:r})]})]})};Ys.displayName="AddToCart.Card.StyleSize";const{helpers:Zl}=po,Zs=({className:e,item:t,texture:r,...n})=>{const{itemOffered:{name:o,brand:i,skuName:s,isVariationOf:{productGroupID:c}},quantity:u,price:l,sellingPrice:p}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:f}}=Ve(),{size:d}=Zl.product.getColorAndSizeFromSkuName(s??o,f);return a.jsxs("div",{...n,className:b.helpers.classNameConcat(je["add-to-cart--card--content"],e),children:[a.jsx(Xs,{brand:i.name,name:o}),a.jsx(Qs,{price:l,listPrice:p,quantity:u,productId:t.id}),a.jsx(Ys,{size:d,texture:r,productGroupID:c})]})};Zs.displayName="AddToCart.Card.Content";const Js=({image:e,thumbnail:t=!1})=>a.jsx(ke.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});Js.displayName="AddToCart.Card";const ec=({className:e,item:t,texture:r,thumbnail:n,...o})=>{const{itemOffered:{image:[i]}}=t,s=Wa(i.url,{width:200,height:300});return a.jsxs("div",{...o,className:b.helpers.classNameConcat(je["add-to-cart--card"],e),children:[a.jsx(Js,{image:{alternateName:i.alternateName||"Produto",url:s||""},thumbnail:n}),!n&&a.jsx(Zs,{item:t,texture:r})]})};ec.displayName="AddToCart.Card";const tc=({className:e,children:t,title:r,...n})=>a.jsxs("div",{...n,className:b.helpers.classNameConcat(je["add-to-cart--content"],e),children:[a.jsx("div",{className:je["add-to-cart--content--title"],children:r&&a.jsx("h2",{children:r})}),t,a.jsx(Fe.Footer,{})]});tc.displayName="AddToCart.Layout.Content";const rc=({className:e,...t})=>{var m,h;const{isMobile:r,handleClose:n,CONSTANTS:{ADD_TO_CART:o}}=Ve(),{cartStore:{totalizers:i},setIsOpen:s}=He(),c=(m=i.find(y=>y.id==="Discounts"))==null?void 0:m.value,u=((h=i.find(y=>y.id==="Items"))==null?void 0:h.value)??0,l=i.find(y=>y.id==="Shipping"),f=(u-Math.abs(c??0)+((l==null?void 0:l.value)??0))/100,d=Le(f??0);return a.jsxs("div",{...t,className:b.helpers.classNameConcat(je["add-to-cart--footer"],e),children:[a.jsxs("div",{className:je["add-to-cart--footer--total"],children:[a.jsx("span",{children:"Subtotal:"}),a.jsx("span",{children:d})]}),a.jsx(b.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>s(!0),children:o.footer.bag}),r?a.jsx(b.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:o.footer.keep_buying}):a.jsx(b.Button,{onClick:()=>n(),size:"medium",variant:"tertiary",children:o.footer.keep_buying})]})};rc.displayName="AddToCart.Layout.Footer";const nc=({children:e,className:t,thumbnail:r=!1,...n})=>{const{cartStore:{options:o}}=He(),{recentlyAddedProducts:i}=dt(),s=i.length>3?4:i.length;return a.jsxs("div",{...n,className:je["add-to-cart--items"],"data-thumbnail":r,children:[Array.isArray(i)&&i.filter((c,u)=>u<s).map(c=>{var l;const u=(l=o==null?void 0:o.find(p=>p.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:l.texture;return a.jsx(Fe.Card,{item:c,thumbnail:r,texture:u},c.itemOffered.sku)}),e]})};nc.displayName="AddToCart.Layout.Items";const oc=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:n}=Ve(),{isMobile:o}=Ie();return a.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:[a.jsx(b.Modal.Header,{navigation:"top",children:a.jsx(b.Modal.Controls,{navigation:"top",isMobile:!0})}),a.jsx(b.Modal.Body,{children:e})]})};oc.displayName="AddToCart.Modal";const Jl=({children:e})=>{const{count:t,handleClose:r,setIsOpen:n}=Ve(),o=P.useRef(t);return P.useEffect(()=>{t>o.current&&n(!0),t<o.current&&o.current>=1&&r(),o.current=t},[t,r,n]),a.jsx(a.Fragment,{children:e})},ic=({children:e,component:t,CONSTANTS:r,...n})=>{const{recentlyAddedProducts:o}=dt(),{isMobile:i}=Ie(),s=o.length>3?4:o.length;return a.jsx(Ds,{...n,count:s,isMobile:i,CONSTANTS:r,children:a.jsx(Jl,{children:i?a.jsxs(a.Fragment,{children:[a.jsx(Fe.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):a.jsx(Fe.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};ic.displayName="AddToCart.Root";const ac=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:o,left:i,isLeaving:s,target:c,isOpen:u,top:l}=Ve();return a.jsx(b.Tooltip.Root,{arrow:"top-right",component:a.jsx("div",{...n,ref:o,children:t}),id:"add-to-cart--tooltip",className:je["add-to-cart--tooltip"],style:{zIndex:r.modal},isLeaving:s,isOpen:u,left:i,size:"medium",position:"top",top:l,children:a.jsx("div",{className:je["add-to-cart--tooltip"],ref:c,children:e})})};ac.displayName="AddToCart.Tooltip";const Fe={Card:ec,Content:tc,Footer:rc,Items:nc,Modal:oc,Root:ic,Tooltip:ac},mo=({title:e,...t})=>{const{recentlyAddedProducts:r}=dt(),{isMobile:n}=Ie(),o=r.length>3?4:r.length,i=r.length>(o??1),s=r.length>1;return a.jsx(Fe.Root,{isMobile:n,count:r.length,component:a.jsx(Fe.Content,{title:e,children:a.jsx(Fe.Items,{thumbnail:s,children:i&&a.jsx(b.Badge.Count,{count:r.length-o,size:"medium",variant:"secondary"})})}),...t})};mo.displayName="AddToCart";const Io={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},ed=({children:e,className:t,adornment:r,iconPosition:n,scrollToOptions:o,style:i,...s})=>{const c={top:(o==null?void 0:o.top)??0,left:(o==null?void 0:o.left)??0,behavior:(o==null?void 0:o.behavior)??"smooth"},l=n&&r?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[n]}:{},p=()=>{window&&window.document.body.scrollTo({...c})};return a.jsx(b.Card,{...s,shadow:!0,padding:"small",className:b.helpers.classNameConcat(Io["card-modifier"],t),style:{...i,padding:0},children:a.jsxs("button",{className:Io["backtotop-btn"],onClick:p,style:{...l},"data-orientation":n,children:[r,e]})})};var sc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function td(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 Wn={exports:{}},Re={};Re._=Re._interop_require_default=rd;function rd(e){return e&&e.__esModule?e:{default:e}}var Ct={exports:{}},er={},No;function cc(){return No||(No=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,c){for(var u in c)Object.defineProperty(s,u,{enumerable:!0,get:c[u]})}t(e,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o},assign:function(){return i}});function r(s){const c={};return s.forEach((u,l)=>{typeof c[l]>"u"?c[l]=u:Array.isArray(c[l])?c[l].push(u):c[l]=[c[l],u]}),c}function n(s){return typeof s=="string"||typeof s=="number"&&!isNaN(s)||typeof s=="boolean"?String(s):""}function o(s){const c=new URLSearchParams;return Object.entries(s).forEach(u=>{let[l,p]=u;Array.isArray(p)?p.forEach(f=>c.append(l,n(f))):c.set(l,n(p))}),c}function i(s){for(var c=arguments.length,u=new Array(c>1?c-1:0),l=1;l<c;l++)u[l-1]=arguments[l];return u.forEach(p=>{Array.from(p.keys()).forEach(f=>s.delete(f)),p.forEach((f,d)=>s.append(d,f))}),s}}(er)),er}var tr={},et={};function uc(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(uc=function(n){return n?r:t})(e)}et._=et._interop_require_wildcard=nd;function nd(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=uc(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 s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}var Oo;function lc(){return Oo||(Oo=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 s},formatWithValidation:function(){return c}});const n=et._(cc()),o=/https?|ftp|gopher|file/;function i(u){let{auth:l,hostname:p}=u,f=u.protocol||"",d=u.pathname||"",m=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 f&&!f.endsWith(":")&&(f+=":"),u.slashes||(!f||o.test(f))&&y!==!1?(y="//"+(y||""),d&&d[0]!=="/"&&(d="/"+d)):y||(y=""),m&&m[0]!=="#"&&(m="#"+m),g&&g[0]!=="?"&&(g="?"+g),d=d.replace(/[?#]/g,encodeURIComponent),g=g.replace("#","%23"),""+f+y+d+g+m}const s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(u){return process.env.NODE_ENV==="development"&&u!==null&&typeof u=="object"&&Object.keys(u).forEach(l=>{s.includes(l)||console.warn("Unknown key passed via urlObject into url.format: "+l)}),i(u)}}(tr)),tr}var rr={},To;function od(){return To||(To=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}}(rr)),rr}var nr={},Mo;function Gt(){return Mo||(Mo=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 s},getURL:function(){return c},getDisplayName:function(){return u},isResSent:function(){return l},normalizeRepeatedSlashes:function(){return p},loadGetInitialProps:function(){return f},SP:function(){return d},ST:function(){return m},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),$=0;$<x;$++)I[$]=arguments[$];return C||(C=!0,j=S(...I)),j}}const o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=S=>o.test(S);function s(){const{protocol:S,hostname:C,port:j}=window.location;return S+"//"+C+(j?":"+j:"")}function c(){const{href:S}=window.location,C=s();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 f(S,C){if(process.env.NODE_ENV!=="production"){var j;if((j=S.prototype)!=null&&j.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 f(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",m=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})}}(nr)),nr}var St={exports:{}},or={},ko;function dc(){return ko||(ko=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(/\/$/,"")||"/"}}(or)),or}var ir={},Lo;function ho(){return Lo||(Lo=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:""}}}(ir)),ir}var Do;function Vt(){return Do||(Do=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const r=dc(),n=ho(),o=i=>{if(!i.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return i;const{pathname:s,query:c,hash:u}=(0,n.parsePath)(i);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(s)?""+(0,r.removeTrailingSlash)(s)+c+u:s.endsWith("/")?""+s+c+u:s+"/"+c+u:""+(0,r.removeTrailingSlash)(s)+c+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)}(St,St.exports)),St.exports}var ar={},At={exports:{}},sr={},$o;function fc(){return $o||($o=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=ho();function r(n,o){if(typeof n!="string")return!1;const{pathname:i}=(0,t.parsePath)(n);return i===o||i.startsWith(o+"/")}}(sr)),sr}var Bo;function id(){return Bo||(Bo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});const r=fc(),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)}(At,At.exports)),At.exports}var qo;function pc(){return qo||(qo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=Gt(),r=id();function n(o){if(!(0,t.isAbsoluteUrl)(o))return!0;try{const i=(0,t.getLocationOrigin)(),s=new URL(o,i);return s.origin===i&&(0,r.hasBasePath)(s.pathname)}catch{return!1}}}(ar)),ar}var cr={},ur={},Ho;function ad(){return Ho||(Ho=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 s=i.map(c=>this.children.get(c)._smoosh(""+o+c+"/")).reduce((c,u)=>[...c,...u],[]);if(this.slugName!==null&&s.push(...this.children.get("[]")._smoosh(o+"["+this.slugName+"]/")),!this.placeholder){const c=o==="/"?"/":o.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+c+'" and "'+c+"[[..."+this.optionalRestSlugName+']]").');s.unshift(c)}return this.restSlugName!==null&&s.push(...this.children.get("[...]")._smoosh(o+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&s.push(...this.children.get("[[...]]")._smoosh(o+"[[..."+this.optionalRestSlugName+"]]/")),s}_insert(o,i,s){if(o.length===0){this.placeholder=!1;return}if(s)throw new Error("Catch-all must be the last part of the URL.");let c=o[0];if(c.startsWith("[")&&c.endsWith("]")){let p=function(f,d){if(f!==null&&f!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+f+"' !== '"+d+"').");i.forEach(m=>{if(m===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(m.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+m+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),i.push(d)},u=c.slice(1,-1),l=!1;if(u.startsWith("[")&&u.endsWith("]")&&(u=u.slice(1,-1),l=!0),u.startsWith("...")&&(u=u.substring(3),s=!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(s)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,c="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+o[0]+'").');p(this.restSlugName,u),this.restSlugName=u,c="[...]"}else{if(l)throw new Error('Optional route parameters are not yet supported ("'+o[0]+'").');p(this.slugName,u),this.slugName=u,c="[]"}}this.children.has(c)||this.children.set(c,new t),this.children.get(c)._insert(o.slice(1),i,s)}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()}}(ur)),ur}var lr={},zo;function sd(){return zo||(zo=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)}}(lr)),lr}var Fo;function cd(){return Fo||(Fo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,i){for(var s in i)Object.defineProperty(o,s,{enumerable:!0,get:i[s]})}t(e,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=ad(),n=sd()}(cr)),cr}var dr={},fr={},Uo;function ud(){return Uo||(Uo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=Gt();function r(n){let{re:o,groups:i}=n;return s=>{const c=o.exec(s);if(!c)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 f=i[p],d=c[f.pos];d!==void 0&&(l[p]=~d.indexOf("/")?d.split("/").map(m=>u(m)):f.repeat?[u(d)]:u(d))}),l}}}(fr)),fr}var pr={},mr={},hr={},gr={},Wo;function ld(){return Wo||(Wo=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}}(gr)),gr}var yr={},Go;function dd(){return Go||(Go=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(")")}}(yr)),yr}var Vo;function fd(){return Vo||(Vo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,c){for(var u in c)Object.defineProperty(s,u,{enumerable:!0,get:c[u]})}t(e,{normalizeAppPath:function(){return o},normalizeRscPath:function(){return i}});const r=ld(),n=dd();function o(s){return(0,r.ensureLeadingSlash)(s.split("/").reduce((c,u,l,p)=>!u||(0,n.isGroupSegment)(u)||u[0]==="@"||(u==="page"||u==="route")&&l===p.length-1?c:c+"/"+u,""))}function i(s,c){return c?s.replace(/\.rsc($|\?)/,"$1"):s}}(hr)),hr}var Ko;function pd(){return Ko||(Ko=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,c){for(var u in c)Object.defineProperty(s,u,{enumerable:!0,get:c[u]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return n},isInterceptionRouteAppPath:function(){return o},extractInterceptionRouteInformation:function(){return i}});const r=fd(),n=["(..)(..)","(.)","(..)","(...)"];function o(s){return s.split("/").find(c=>n.find(u=>c.startsWith(u)))!==void 0}function i(s){let c,u,l;for(const p of s.split("/"))if(u=n.find(f=>p.startsWith(f)),u){[c,l]=s.split(u,2);break}if(!c||!u||!l)throw new Error(`Invalid interception route: ${s}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(c=(0,r.normalizeAppPath)(c),u){case"(.)":c==="/"?l=`/${l}`:l=c+"/"+l;break;case"(..)":if(c==="/")throw new Error(`Invalid interception route: ${s}. Cannot use (..) marker at the root level, use (.) instead.`);l=c.split("/").slice(0,-1).concat(l).join("/");break;case"(...)":l="/"+l;break;case"(..)(..)":const p=c.split("/");if(p.length<=2)throw new Error(`Invalid interception route: ${s}. 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:c,interceptedRoute:l}}}(mr)),mr}var _r={},Xo;function md(){return Xo||(Xo=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}}(_r)),_r}var Qo;function hd(){return Qo||(Qo=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 m},getNamedMiddlewareRegex:function(){return h}});const r=pd(),n=md(),o=dc(),i="nxtP",s="nxtI";function c(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}=c(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}=c(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 f(y){let{getSafeRouteKey:g,segment:v,routeKeys:A,keyPrefix:_}=y;const{key:S,optional:C,repeat:j}=c(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?f({getSafeRouteKey:A,segment:j[1],routeKeys:_,keyPrefix:g?s:void 0}):j?f({getSafeRouteKey:A,segment:j[1],routeKeys:_,keyPrefix:g?i:void 0}):"/"+(0,n.escapeStringRegexp)(S)}).join(""),routeKeys:_}}function m(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+"$"}}}(pr)),pr}var Yo;function gd(){return Yo||(Yo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=ud(),r=hd();function n(o,i,s){let c="";const u=(0,r.getRouteRegex)(o),l=u.groups,p=(i!==o?(0,t.getRouteMatcher)(u)(i):"")||s;c=o;const f=Object.keys(l);return f.every(d=>{let m=p[d]||"";const{repeat:h,optional:y}=l[d];let g="["+(h?"...":"")+d+"]";return y&&(g=(m?"":"/")+"["+g+"]"),h&&!Array.isArray(m)&&(m=[m]),(y||d in p)&&(c=c.replace(g,h?m.map(v=>encodeURIComponent(v)).join("/"):encodeURIComponent(m))||"/")})||(c=""),{params:f,result:c}}}(dr)),dr}var Zo;function yd(){return Zo||(Zo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return p}});const r=cc(),n=lc(),o=od(),i=Gt(),s=Vt(),c=pc(),u=cd(),l=gd();function p(f,d,m){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: '"+f.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const _=(0,i.normalizeRepeatedSlashes)(v);y=(g?g[0]:"")+_}if(!(0,c.isLocalURL)(y))return m?[y]:y;try{h=new URL(y.startsWith("#")?f.asPath:f.pathname,"http://n")}catch{h=new URL("/","http://n")}try{const _=new URL(y,h);_.pathname=(0,s.normalizePathTrailingSlash)(_.pathname);let S="";if((0,u.isDynamicRoute)(_.pathname)&&_.searchParams&&m){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 m?[C,S||C]:C}catch{return m?[y]:y}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ct,Ct.exports)),Ct.exports}var Et={exports:{}},vr={},br={},Jo;function mc(){return Jo||(Jo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=ho();function r(n,o){if(!n.startsWith("/")||!o)return n;const{pathname:i,query:s,hash:c}=(0,t.parsePath)(n);return""+o+i+s+c}}(br)),br}var ei;function _d(){return ei||(ei=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=mc(),r=fc();function n(o,i,s,c){if(!i||i===s)return o;const u=o.toLowerCase();return!c&&((0,r.pathHasPrefix)(u,"/api")||(0,r.pathHasPrefix)(u,"/"+i.toLowerCase()))?o:(0,t.addPathPrefix)(o,"/"+i)}}(vr)),vr}var ti;function vd(){return ti||(ti=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=Vt(),n=function(o){for(var i=arguments.length,s=new Array(i>1?i-1:0),c=1;c<i;c++)s[c-1]=arguments[c];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(_d().addLocale(o,...s)):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 xr={},ri;function hc(){return ri||(ri=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=Re._(P).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(xr)),xr}var Cr={},ni;function bd(){return ni||(ni=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(l,p){for(var f in p)Object.defineProperty(l,f,{enumerable:!0,get:p[f]})}t(e,{CacheStates:function(){return o},AppRouterContext:function(){return i},LayoutRouterContext:function(){return s},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return u}});const n=Re._(P);var o;(function(l){l.LAZY_INITIALIZED="LAZYINITIALIZED",l.DATA_FETCH="DATAFETCH",l.READY="READY"})(o||(o={}));const i=n.default.createContext(null),s=n.default.createContext(null),c=n.default.createContext(null),u=n.default.createContext(null);process.env.NODE_ENV!=="production"&&(i.displayName="AppRouterContext",s.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",u.displayName="TemplateContext")}(Cr)),Cr}var Rt={exports:{}},wt={exports:{}},oi;function gc(){return oi||(oi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(i,s){for(var c in s)Object.defineProperty(i,c,{enumerable:!0,get:s[c]})}r(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return o}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(i){let s=Date.now();return self.setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-s))}})},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)}(wt,wt.exports)),wt.exports}var ii;function xd(){return ii||(ii=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});const r=P,n=gc(),o=typeof IntersectionObserver=="function",i=new Map,s=[];function c(p){const f={root:p.root||null,margin:p.rootMargin||""},d=s.find(g=>g.root===f.root&&g.margin===f.margin);let m;if(d&&(m=i.get(d),m))return m;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 m={id:f,observer:y,elements:h},s.push(f),i.set(f,m),m}function u(p,f,d){const{id:m,observer:h,elements:y}=c(d);return y.set(p,f),h.observe(p),function(){if(y.delete(p),h.unobserve(p),y.size===0){h.disconnect(),i.delete(m);const v=s.findIndex(A=>A.root===m.root&&A.margin===m.margin);v>-1&&s.splice(v,1)}}}function l(p){let{rootRef:f,rootMargin:d,disabled:m}=p;const h=m||!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:f==null?void 0:f.current,rootMargin:d})}else if(!y){const S=(0,n.requestIdleCallback)(()=>g(!0));return()=>(0,n.cancelIdleCallback)(S)}},[h,d,f,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)}(Rt,Rt.exports)),Rt.exports}var jt={exports:{}},Pt={exports:{}},Sr={},ai;function Cd(){return ai||(ai=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(s=>i[1]&&i[1].toLowerCase()===s.toLowerCase()?(o=s,i.splice(1,1),r=i.join("/")||"/",!0):!1),{pathname:r,detectedLocale:o}}}(Sr)),Sr}var si;function Sd(){return si||(si=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?Cd().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)}(Pt,Pt.exports)),Pt.exports}var It={exports:{}},Ar={},ci;function Ad(){return ci||(ci=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,n,o){if(r){o&&(o=o.toLowerCase());for(const c of r){var i,s;const u=(i=c.domain)==null?void 0:i.split(":")[0].toLowerCase();if(n===u||o===c.defaultLocale.toLowerCase()||(s=c.locales)!=null&&s.some(l=>l.toLowerCase()===o))return c}}}}(Ar)),Ar}var ui;function Ed(){return ui||(ui=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 Ad().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)}(It,It.exports)),It.exports}var li;function Rd(){return li||(li=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}});const r=Vt(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i,s,c,u){if(process.env.__NEXT_I18N_SUPPORT){const l=Sd().normalizeLocalePath,p=Ed().detectDomainLocale,f=s||l(i,c).detectedLocale,d=p(u,void 0,f);if(d){const m="http"+(d.http?"":"s")+"://",h=f===d.defaultLocale?"":"/"+f;return""+m+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)}(jt,jt.exports)),jt.exports}var Nt={exports:{}},di;function wd(){return di||(di=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return i}});const r=mc(),n=Vt(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function i(s,c){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?s:(0,r.addPathPrefix)(s,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)}(Nt,Nt.exports)),Nt.exports}var Ot={exports:{}},fi;function jd(){return fi||(fi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(f,d){for(var m in d)Object.defineProperty(f,m,{enumerable:!0,get:d[m]})}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 s},ACTION_PREFETCH:function(){return c},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return l}});const n="refresh",o="navigate",i="restore",s="server-patch",c="prefetch",u="fast-refresh",l="server-action";var p;(function(f){f.AUTO="auto",f.FULL="full",f.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)}(Ot,Ot.exports)),Ot.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._(P),o=yd(),i=pc(),s=lc(),c=Gt(),u=vd(),l=hc(),p=bd(),f=xd(),d=Rd(),m=wd(),h=jd(),y=new Set;function g(j,x,I,$,E,N){if(typeof window>"u"||!N&&!(0,i.isLocalURL)(x))return;if(!$.bypassPrefetchedCheck){const B=typeof $.locale<"u"?$.locale:"locale"in j?j.locale:void 0,R=x+"%"+I+"%"+B;if(y.has(R))return;y.add(R)}const k=N?j.prefetch(x,E):j.prefetch(x,I,$);Promise.resolve(k).catch(B=>{if(process.env.NODE_ENV!=="production")throw B})}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,$,E,N,k,B,R,q){const{nodeName:F}=j.currentTarget;if(F.toUpperCase()==="A"&&(v(j)||!R&&!(0,i.isLocalURL)(I)))return;j.preventDefault();const K=()=>{const G=k??!0;"beforePopState"in x?x[E?"replace":"push"](I,$,{shallow:N,locale:B,scroll:G}):x[E?"replace":"push"]($||I,{forceOptimisticNavigation:!q,scroll:G})};R?n.default.startTransition(K):K()}function _(j){return typeof j=="string"?j:(0,s.formatUrl)(j)}const C=n.default.forwardRef(function(x,I){let $;const{href:E,as:N,children:k,prefetch:B=null,passHref:R,replace:q,shallow:F,scroll:U,locale:K,onClick:G,onMouseEnter:z,onTouchStart:ne,legacyBehavior:w=!1,...T}=x;$=k,w&&(typeof $=="string"||typeof $=="number")&&($=n.default.createElement("a",null,$));const D=n.default.useContext(l.RouterContext),X=n.default.useContext(p.AppRouterContext),te=D??X,Z=!D,M=B!==!1,J=B===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&&!N){let ie;if(typeof E=="string"?ie=E:typeof E=="object"&&typeof E.pathname=="string"&&(ie=E.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(!D){const W=_(E);return{href:W,as:N?_(N):W}}const[ie,me]=(0,o.resolveHref)(D,E,!0);return{href:ie,as:N?(0,o.resolveHref)(D,N):me||ie}},[D,E,N]),L=n.default.useRef(Y),O=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 `'+E+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),z&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+E+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{re=n.default.Children.only($)}catch{throw $?new Error("Multiple children were passed to <Link> with `href` of `"+E+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
3
3
  Open your browser's console to view the Component stack trace.`:"")):new Error("No children were passed to <Link> with `href` of `"+E+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else re=n.default.Children.only($);else if(process.env.NODE_ENV==="development"&&($==null?void 0:$.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,le,se]=(0,f.useIntersection)({rootMargin:"200px"}),H=n.default.useCallback(ie=>{(O.current!==ee||L.current!==Y)&&(se(),O.current=ee,L.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&&(!le||!k||g(te,Y,ee,{locale:K},{kind:J},Z))},[ee,Y,le,K,k,D==null?void 0:D.locale,te,Z,J]);const he={ref:H,onClick(ie){if(process.env.NODE_ENV!=="production"&&!ie)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!w&&typeof W=="function"&&W(ie),w&&re.props&&typeof re.props.onClick=="function"&&re.props.onClick(ie),te&&(ie.defaultPrevented||A(ie,te,Y,ee,q,F,U,K,Z,k))},onMouseEnter(ie){!w&&typeof z=="function"&&z(ie),w&&re.props&&typeof re.props.onMouseEnter=="function"&&re.props.onMouseEnter(ie),te&&((!k||process.env.NODE_ENV==="development")&&Z||g(te,Y,ee,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))},onTouchStart(ie){!w&&typeof ne=="function"&&ne(ie),w&&re.props&&typeof re.props.onTouchStart=="function"&&re.props.onTouchStart(ie),te&&(!k&&Z||g(te,Y,ee,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))}};if((0,c.isAbsoluteUrl)(ee))he.href=ee;else if(!w||R||re.type==="a"&&!("href"in re.props)){const ie=typeof K<"u"?K:D==null?void 0:D.locale,me=(D==null?void 0:D.isLocaleDomain)&&(0,d.getDomainLocale)(ee,ie,D==null?void 0:D.locales,D==null?void 0:D.domainLocales);he.href=me||(0,m.addBasePath)((0,l.addLocale)(ee,ie,D==null?void 0:D.defaultLocale))}return w?n.default.cloneElement(re,he):n.default.createElement("a",{...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)})(Un,Un.exports);var ud=Un.exports,dd=ud;const je=Ft(dd),fd=e=>{const t=e.getBlocksAsArray(),r=[];return t.forEach(n=>{const o=n.getType(),i=n.getText();let s;const c=n.getInlineStyleAt(0).toArray();c.length>0&&(s=c.map(u=>{switch(u){case"BOLD":return"font-weight: bold;";case"ITALIC":return"font-style: italic;";case"UNDERLINE":return"text-decoration: underline;";default:return""}}).join(" "));const l={type:"p",text:i,...s&&{styleText:s}};switch(o){case"header-one":l.type="h1";break;case"header-two":l.type="h2";break;case"header-three":l.type="h3";break;case"unordered-list-item":l.type="li";break;case"ordered-list-item":l.type="li";break;case"blockquote":l.type="blockquote";break;case"code-block":l.type="pre";break;default:l.type="p"}r.push(l)}),r},pd=(e,t,r)=>{e.findEntityRanges(n=>{const o=n.getEntity();return o===null?!1:r.getEntity(o).getType()==="LINK"},t)},Gn=e=>{const t=new Me.CompositeDecorator([{strategy:pd,component:je}]),r=Me.convertFromRaw(e);return Me.EditorState.createWithContent(r,t)},md=e=>Me.convertFromRaw(e),Wn=Me.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),fi="superior-direita",Tt="dentro-inferior-centro",hd="inferior-direita",Sr="dentro-inferior-esquerda",oc=e=>({position:e===Tt||e===Sr?"absolute":"default",shouldRender:[fi,Tt,Sr].includes(e)?"top":"bottom",alignItems:[Tt].includes(e)?"center":[fi,hd].includes(e)?"flex-end":"flex-start",left:e===Sr?"16px":e===Tt?"45%":"unset"}),gd=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:Gn,EXTENDED_BLOCK_RENDER_MAP:Wn,GET_CONTENT_STATE:md,controllersPositionsAdapter:oc,convertDraftToHTML:fd},Symbol.toStringTag,{value:"Module"})),et={"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"},yd=({slug:e,data:t,SectionZone:r,COMMON_PAGE_COLUMN_GAP:n})=>{const o=t==null?void 0:t.find(p=>{var f,d,m,h;return((d=(f=p.config)==null?void 0:f.responsive)==null?void 0:d.deviceType)==="desktop"&&((h=(m=p.config)==null?void 0:m.seo)==null?void 0:h.slug)===e}),i=o==null?void 0:o.config.responsive.gapCustom,s=o==null?void 0:o.config.responsive.gapSections,c=t==null?void 0:t.find(p=>{var f,d,m,h;return((d=(f=p.config)==null?void 0:f.responsive)==null?void 0:d.deviceType)==="mobile"&&((h=(m=p.config)==null?void 0:m.seo)==null?void 0:h.slug)===e}),l=c==null?void 0:c.config.responsive.gapCustom,u=c==null?void 0:c.config.responsive.gapSections;return a.jsxs(a.Fragment,{children:[a.jsx(b.Utils.Column,{gap:i&&s?s:n,className:b.helpers.classNameConcat(et["responsive-desktop-flex"],"utils-column-modifier"),children:a.jsx(r,{data:(o==null?void 0:o.sections)??[]})}),a.jsx(b.Utils.Column,{gap:l&&u?u:n,className:b.helpers.classNameConcat(et["responsive-mobile-flex"],"utils-column-modifier"),children:a.jsx(r,{data:(c==null?void 0:c.sections)??[]})})]})},Ke=e=>({centro:"center",esquerda:"start",direita:"end"})[e],_d=({expanded:e,content:t})=>a.jsxs("details",{open:e,children:[t.textStructureReduced?a.jsx("summary",{onClick:r=>r.preventDefault(),children:a.jsx(Me.Editor,{editorKey:"draft-editor-1",blockRenderMap:Wn,editorState:t!=null&&t.textStructureReduced?Gn(JSON.parse(t.textStructureReduced)):Me.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):a.jsx(a.Fragment,{}),t.showTextStructureExpander&&t.textStructure?a.jsx(a.Fragment,{children:a.jsx(Me.Editor,{editorKey:"draft-editor-1",blockRenderMap:Wn,editorState:t.textStructure?Gn(JSON.parse(t.textStructure)):Me.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):a.jsx(a.Fragment,{})]}),vd={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},bd="_textContentWrapper_1bigo_5",xd="_textContentSection_1bigo_13",Vn={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:bd,textContentSection:xd},Cd="_link_w24h0_1",Sd="_wrapper_w24h0_98",Ad="_text_w24h0_106",Ar={link:Cd,wrapper:Sd,text:Ad},rt=({children:e,adornments:t,className:r,disableUnderline:n,href:o,mode:i,size:s,title:c,onClick:l,disablePadding:u,...p})=>{const f=b.helpers.ValidateProp({fieldTypes:Qe.SizesSmallExtended,property:s,fallback:"medium"}),d=b.helpers.ValidateProp({fieldTypes:Qe.Mode,property:i,fallback:"default"});return a.jsx(je,{...p,className:b.helpers.classNameConcat(Ar.link,r),href:o&&o.length>0?o:"#","data-size":f,"data-variant":d,title:c||"NextLink","data-disable-underline":n??!1,"data-disable-padding":u??!0,children:a.jsxs("div",{className:Ar.wrapper,onClick:l,children:[t==null?void 0:t.start,a.jsx("p",{className:Ar.text,"data-size":f,children:e}),t==null?void 0:t.end]})})},ho=({data:e,ICONS:t})=>{var o;const[r,n]=P.useState(!1);return a.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:Ke(e.textStructureAlignment),alignItems:Ke(e.textStructureAlignment)},columnWrapper:{alignContent:Ke(e.textStructureAlignment),alignItems:Ke(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?a.jsx(b.Button,{variant:"tertiary",adornment:{end:a.jsx(b.Icon,{name:r?`${t.arrow_up}`:`${t.arrow_down}`})},onClick:()=>n(i=>!i),size:"small",children:r?"Ver Menos":"Ver Mais"}):a.jsx(a.Fragment,{})},children:a.jsxs(b.Utils.Column,{className:Vn.textContentWrapper,style:{alignItems:Ke(e.textStructureAlignment)},children:[a.jsx(b.TextStructure.DivWrapper,{style:{textAlign:Ke(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:vd["draftjs-text-modifier"],children:e.textStructureReduced?a.jsx(_d,{content:e,expanded:r}):a.jsx(a.Fragment,{})}),e.textStructureButtonLabel?a.jsx(rt,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:Vn["link-modifier"],adornments:(o=e.textStructureButtonIcon)!=null&&o.length&&e.enableIcon?{end:a.jsx(b.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):a.jsx(a.Fragment,{})]})})},Ed=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],pi=e=>({centro:"center",esquerda:"start",direita:"end"})[e],Rd="_image_lypfr_1",wd={image:Rd},jd=({alt:e,className:t,objectFit:r,...n})=>{const{nextimage:o}=Te();return a.jsx(o,{quality:90,...n,alt:e??"",className:b.helpers.classNameConcat(wd.image,t),"data-object-fit":r??"cover"})},Pd=({videoRef:e,...t})=>a.jsx("video",{...t,ref:e,children:a.jsx("track",{kind:"captions"})}),ke={Image:jd,Video:Pd},Kn=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...n})=>{const[o,i]=P.useState(Vs(new wo.TZDate(Date.now(),r),new wo.TZDate(e,r))),[s,c]=P.useState(!1);P.useEffect(()=>{s||c(!0);const u=setInterval(()=>{if(o<=0){clearInterval(u);return}i(o-1e3)},1e3);return()=>{clearInterval(u)}},[o,i,s]);const l=at(o,"days");return s&&o>0?a.jsxs(b.Timer.Root,{...n,children:[l?a.jsxs(a.Fragment,{children:[a.jsx(b.Timer.Digit,{label:"dias",value:l}),a.jsx(b.Timer.Separator,{})]}):null,a.jsx(b.Timer.Digit,{label:"horas",value:at(o,"hours")}),a.jsx(b.Timer.Separator,{}),a.jsx(b.Timer.Digit,{label:"min",value:at(o,"minutes")}),a.jsx(b.Timer.Separator,{}),a.jsx(b.Timer.Digit,{label:"segs",value:at(o),suppressHydrationWarning:!0})]}):a.jsx(a.Fragment,{})},mi={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},hi=({data:e,videoUrl:t,priority:r,videoRef:n,ICONS:o,...i})=>{const{video:s,image:c,imageHref:l,imageOpacity:u,altImage:p,backgroundColor:f,position:d,contentAlignment:m,showTimer:h,contentOrder:y,timerMode:g,timerEnd:v,timerInit:A,textStructure:_,textStructureReduced:S}=e.banner,C=(l==null?void 0:l.trim())||(c==null?void 0:c.trim())||null,{nextimage:j}=Te();return a.jsxs(b.Banner.Container,{...i,children:[a.jsxs(b.Banner.ImageWrapper,{className:mi["banner-image-wrapper-modifier"],style:u?{background:f}:void 0,children:[s&&a.jsx(ke.Video,{videoRef:n,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),C&&!(s!=null&&s.length)&&a.jsx(j,{src:C,width:"1920",height:"1080",alt:p??c??"",...r?{priority:r}:{},style:u?{opacity:"0"}:void 0}),!c&&!(s!=null&&s.length)&&a.jsx("div",{style:{background:f}})]}),h||S||_?a.jsx(b.Banner.Slot,{...Ed(d??"centro"),className:mi["content-modifier"],style:{textAlign:pi(m)},children:a.jsxs(b.Utils.Column,{gap:"16px",alignItems:pi(m),children:[h&&y==="timer-first"&&a.jsx(Kn,{mode:g??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:A?new Date(A):new Date}),a.jsx(ho,{data:e.banner,ICONS:o}),h&&y!=="timer-first"&&a.jsx(Kn,{mode:g??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:A?new Date(A):new Date})]})}):a.jsx(a.Fragment,{})]})},Id={"observer-wrapper":"_observer-wrapper_r43gk_1"};function Nd(e,t,r){const[n,o]=P.useState(!1),{threshold:i}=r||{};return P.useEffect(()=>{if(!e.current)return()=>null;let s=null;const c=new IntersectionObserver(([l])=>{if(r!=null&&r.delay){s&&clearTimeout(s),s=setTimeout(()=>{o(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},r.delay);return}o(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},{threshold:i||1});return c.observe(e.current),()=>{c.disconnect()}},[e]),n}const Wt=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:n,stopOnIntersection:o=!0,className:i,...s})=>{const c=P.useRef(null),l=Nd(c,o,r),{sendDataLayerEvent:u}=ge();return P.useEffect(()=>{l&&(typeof n=="function"&&n(),t&&u({...t}))},[l]),a.jsx("div",{...s,ref:c,className:b.helpers.classNameConcat(Id["observer-wrapper"],i),children:e})},go=({data:e,className:t,priority:r,creative:n,...o})=>{const{handleSelectPromotionEvent:i,currentLocalRef:s}=ge(),{banner:{promotion_name:c},index:l,componentIndex:u}=e,p=typeof l=="number"?`:${l+1}`:"",f={creative_name:n,creative_slot:`${n}-${s.current}:${u+1}${p}`,promotion_id:e.banner.href,promotion_name:c},d=P.useRef(null),m=P.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 a.jsx(Wt,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...f,index:l}}}},observerOptions:{delay:100,...m&&{threshold:.1}},...m&&{callBackWhenVisible:h},children:e.banner.href?a.jsx(je,{href:e.banner.href,onClick:()=>{i({updatePromotionRef:!0,promotion:f,index:l})},children:a.jsx(hi,{data:e,videoUrl:m,priority:r,videoRef:d,...o})}):a.jsx(hi,{data:e,videoUrl:m,priority:r,videoRef:d,...o})})},ic=e=>a.jsx(go,{...e}),Od={Banner:ic},ot={"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"},Td=({data:e,CONSTANTS:t})=>{var u;const{isMobile:r}=Ie(),n=e.config.size??"medium",o=e.config.disableCarouselMobile??!1,{initialize:i,pagination:s,controller:c,itemsStyles:l}=b.Carousel.useCarousel({itemsPerPage:r?e==null?void 0:e.config.slidesPerViewMobile:(u=e==null?void 0:e.config)==null?void 0:u.slidesPerView,gap:r?e.config.gapMobile:e.config.gap,direction:r&&o?"column":"row"});return a.jsx(b.Utils.Column,{style:{width:n==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:a.jsxs(b.Carousel.Root,{innerRef:p=>{i(p)},className:b.helpers.classNameConcat(ot["carousel-modifier"],"common-section"),children:[n==="medium"?a.jsxs(b.TextStructure.Root,{children:[a.jsx(b.TextStructure.DivWrapper,{className:ot["carousel-title-modifier"],children:a.jsx("h2",{className:"typography-style-body-lg",children:t.BENNEFITS_BAR_TITLE})}),r&&s.totalPages>1?a.jsx(b.Carousel.Controller,{className:ot["row-controller-modifier"],children:a.jsxs(b.Carousel.Arrows,{children:[a.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:a.jsx(b.Icon,{name:t.ICONS.arrow_left})}}),a.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:a.jsx(b.Icon,{name:t.ICONS.arrow_right})}})]})}):a.jsx(a.Fragment,{})]}):a.jsx(a.Fragment,{}),a.jsx(b.Carousel.Body,{children:e.bennefit.map((p,f)=>a.jsx(b.Carousel.Item,{className:ot["card-modifier"],style:l,children:a.jsx(b.Card,{stroke:!0,padding:"small",children:a.jsx(b.TextStructure.Root,{layoutProps:{columnWrapper:{alignContent:"start",alignItems:"start",justifyContent:"start"},textRow:{alignContent:"center",alignItems:"center",justifyContent:"center"}},adornment:{[n==="medium"?"top":"start"]:a.jsx(b.Icon,{name:p.icon,size:n==="medium"?"medium":"small"})},children:a.jsxs(b.TextStructure.DivWrapper,{alignItems:"start",children:[a.jsx("h3",{className:"typography-style-body-md",children:p.title}),p.subtitle&&p.subtitle.length?a.jsx("p",{className:"typography-style-body-xs",children:p.subtitle}):a.jsx(a.Fragment,{})]})})})},`bennefit=${f}`))}),!r&&s.totalPages>1?a.jsxs(b.Carousel.Controller,{className:ot["row-controller-modifier"],children:[a.jsxs(b.Carousel.Arrows,{children:[a.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:a.jsx(b.Icon,{name:t.ICONS.arrow_left})}}),a.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:a.jsx(b.Icon,{name:t.ICONS.arrow_right})}})]}),a.jsx(b.Carousel.Bullets,{page:s.currentPage,total:s.totalPages,onBulletClick:p=>c==null?void 0:c.navigateTo(p)})]}):a.jsx(a.Fragment,{})]})})},kd=({data:e,ICONS:t})=>a.jsx("div",{className:b.helpers.classNameConcat(Vn.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:a.jsx(ho,{data:e,ICONS:t})}),Xn={"custom-carousel":"_custom-carousel_t5fgp_1","carrousel-arrows-display-controller":"_carrousel-arrows-display-controller_t5fgp_10","carousel-controllers-modifier":"_carousel-controllers-modifier_t5fgp_19"};function Md(e,t){const{mediatorRef:r}=Ie();P.useEffect(()=>r.current.subscribe(e,t),[e,t])}const gi=({prevOnClick:e,nextOnClick:t,onBulletClick:r,currentPage:n,totalPages:o,position:i,hideControllers:s,left:c,isFirst:l,ICONS:u})=>{const[p,f]=P.useState("default");return Md("herobanner:change_controllers_variant",d=>{l&&f(d.includes("white")?"inverse":"default")}),a.jsxs(b.Carousel.Controller,{className:Xn["carousel-controllers-modifier"],position:i??"absolute","data-hide-controllers":s,bottom:"16px",top:"unset",left:c,children:[a.jsxs(b.Carousel.Arrows,{className:Xn["carrousel-arrows-display-controller"],children:[a.jsx(b.Button,{variant:"tertiary",onClick:e,adornment:{start:a.jsx(b.Icon,{name:u.arrow_left})},mode:p}),a.jsx(b.Button,{variant:"tertiary",onClick:t,adornment:{start:a.jsx(b.Icon,{name:u.arrow_right})},mode:p})]}),a.jsx(b.Carousel.Bullets,{page:n,total:o,onBulletClick:r,mode:p})]})},Ld=({children:e,data:t,banner:r,...n})=>{const{mediatorRef:o}=Ie();return t.data.first?a.jsx(Wt,{observerOptions:{threshold:.51},stopOnIntersection:!1,callBackWhenVisible:()=>{o.current.publish("header:change_variant",r.headerVariant)},...n,children:e}):a.jsx(a.Fragment,{children:e})},Dd=e=>{var p;const{initialize:t,pagination:r,controller:n,itemsStyles:o}=b.Carousel.useCarousel({gap:e.data.config.gap,itemsPerPage:e.data.config.slidesPerView,direction:"row"}),i=P.useRef(void 0),s=P.useMemo(()=>oc(e.data.config.controllerPosition??"dentro-inferior-centro"),[e]),c=P.useCallback(()=>{e.data.config.slideDuration&&r.totalPages>1&&(i.current=setInterval(()=>{n==null||n.nextPage()},e.data.config.slideDuration*1e3))},[n,e.data.config.slideDuration,r.totalPages]),l=P.useCallback(f=>{clearInterval(i.current),c(),f()},[c]),u=P.useMemo(()=>{var f;return{nextOnClick:()=>l(()=>n==null?void 0:n.nextPage()),prevOnClick:()=>l(()=>n==null?void 0:n.prevPage()),onBulletClick:d=>l(()=>n==null?void 0:n.navigateTo(d)),currentPage:r.currentPage,totalPages:r.totalPages,position:s.position,hideControllers:((f=e.data.config)==null?void 0:f.hideControllers)??!1,left:s.left}},[r.currentPage,r.totalPages,s.position,e.data.config.hideControllers,l,n]);return P.useEffect(()=>(c(),()=>clearInterval(i.current)),[c]),a.jsxs(b.Carousel.Root,{innerRef:f=>{t(f)},className:b.helpers.classNameConcat(Xn["custom-carousel"],e.data.config.fullWidth?"":"common-section"),"data-infinity-border":!0,style:{...e.data.config.marginTop!=="0px"&&{marginTop:`-${e.data.config.marginTop}`},...e.data.config.marginBottom!=="0px"&&{marginBottom:`-${e.data.config.marginBottom}`}},children:[s.shouldRender==="top"&&r.totalPages>1?a.jsx(gi,{ICONS:e.data.icons,...u,isFirst:e.data.first}):a.jsx(a.Fragment,{}),a.jsx(b.Carousel.Body,{children:(p=e==null?void 0:e.data)==null?void 0:p.banners.map((f,d)=>a.jsx(b.Carousel.Item,{style:o,children:a.jsx(Ld,{data:e,banner:f,children:a.jsx(go,{ICONS:e.data.icons,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,data:{banner:f,index:d,componentIndex:e.data.componentIndex},creative:"banner-carousel",...e.data.first&&d===0&&{priority:!0}})})},`hero-banner-item-${d}`))}),s.shouldRender==="bottom"&&r.totalPages>1?a.jsx(gi,{ICONS:e.data.icons,...u}):a.jsx(a.Fragment,{})]})},$d={Banner:Od,BannerSection:go,BennefitsBarSection:Td,DataScreening:yd,SingleBannerSection:ic,TextContentSection:kd,TextContent:ho,BannerCarousel:Dd},Bd={Components:$d,helpers:gd},Pe={"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"},ac=({brand:e,className:t,name:r,...n})=>a.jsxs("div",{...n,className:b.helpers.classNameConcat(Pe["add-to-cart--card--name"],t),children:[a.jsx(b.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),a.jsx(b.TextStructure.Root,{children:a.jsx(b.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:a.jsx("p",{className:"typography-style-body-md",children:r})})})]});ac.displayName="AddToCart.Card.Name";const sc=({className:e,listPrice:t,price:r,quantity:n,productId:o,...i})=>{const s=Le(r/100),c=Le(t/100);return a.jsx("div",{...i,className:b.helpers.classNameConcat(Pe["add-to-cart--card--price-quantity"],e),children:a.jsx(b.ProductInfo.Root,{size:"small",layout:"vertical",children:a.jsx(b.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:a.jsx(b.ProductInfo.ValuesWrapper,{children:r!==t?a.jsxs(a.Fragment,{children:[a.jsx(b.ProductInfo.Price,{label:"originalPrice",value:s,size:"small"},"price-list"),a.jsx(b.ProductInfo.Price,{label:"discountPrice",value:c,size:"small"},"price-low")]}):a.jsx(b.ProductInfo.Price,{label:"defaultPrice",value:c,size:"small"},"price-low")})})})})};sc.displayName="AddToCart.Card.PriceQuantity";const qd="_skeleton_12b79_1",Hd={skeleton:qd},zd=({style:e})=>a.jsx("div",{style:e,className:Hd.skeleton}),cc=({className:e,productGroupID:t,size:r,texture:n,...o})=>{const{CONSTANTS:{TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:s}}=We(),[c,l]=P.useState(n??"");return P.useEffect(()=>{c||fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[t]})}).then(u=>u.json()).then(u=>{const p=u.data[0].items[0];if(p){const f=p.images.find(d=>i.includes(d.imageLabel));f!=null&&f.imageUrl?l(f.imageUrl):l(p.images[0].imageUrl)}}).catch(u=>{console.error(u)})},[c,t]),a.jsxs("div",{...o,className:b.helpers.classNameConcat(Pe["add-to-cart--card--style-size"],e),children:[a.jsx(b.ToggleStyle.Wrapper,{size:"x-small",style:s,children:a.jsx(b.ToggleStyle.Texture,{children:c?a.jsx(ke.Image,{alt:"",src:c??"",width:164,height:164,style:s}):a.jsx(zd,{})})}),a.jsx(b.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),r&&a.jsxs(b.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[a.jsx(b.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),a.jsx(b.ToggleSize.Text,{children:r})]})]})};cc.displayName="AddToCart.Card.StyleSize";const{helpers:Fd}=po,lc=({className:e,item:t,texture:r,...n})=>{const{itemOffered:{name:o,brand:i,skuName:s,isVariationOf:{productGroupID:c}},quantity:l,price:u,sellingPrice:p}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:f}}=We(),{size:d}=Fd.product.getColorAndSizeFromSkuName(s??o,f);return a.jsxs("div",{...n,className:b.helpers.classNameConcat(Pe["add-to-cart--card--content"],e),children:[a.jsx(ac,{brand:i.name,name:o}),a.jsx(sc,{price:u,listPrice:p,quantity:l,productId:t.id}),a.jsx(cc,{size:d,texture:r,productGroupID:c})]})};lc.displayName="AddToCart.Card.Content";const uc=({image:e,thumbnail:t=!1})=>a.jsx(ke.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});uc.displayName="AddToCart.Card";const dc=({className:e,item:t,texture:r,thumbnail:n,...o})=>{const{itemOffered:{image:[i]}}=t,s=Ua(i.url,{width:200,height:300});return a.jsxs("div",{...o,className:b.helpers.classNameConcat(Pe["add-to-cart--card"],e),children:[a.jsx(uc,{image:{alternateName:i.alternateName||"Produto",url:s||""},thumbnail:n}),!n&&a.jsx(lc,{item:t,texture:r})]})};dc.displayName="AddToCart.Card";const fc=({className:e,children:t,title:r,...n})=>a.jsxs("div",{...n,className:b.helpers.classNameConcat(Pe["add-to-cart--content"],e),children:[a.jsx("div",{className:Pe["add-to-cart--content--title"],children:r&&a.jsx("h2",{children:r})}),t,a.jsx(Fe.Footer,{})]});fc.displayName="AddToCart.Layout.Content";const pc=({className:e,...t})=>{var m,h;const{isMobile:r,handleClose:n,CONSTANTS:{ADD_TO_CART:o}}=We(),{cartStore:{totalizers:i},setIsOpen:s}=He(),c=(m=i.find(y=>y.id==="Discounts"))==null?void 0:m.value,l=((h=i.find(y=>y.id==="Items"))==null?void 0:h.value)??0,u=i.find(y=>y.id==="Shipping"),f=(l-Math.abs(c??0)+((u==null?void 0:u.value)??0))/100,d=Le(f??0);return a.jsxs("div",{...t,className:b.helpers.classNameConcat(Pe["add-to-cart--footer"],e),children:[a.jsxs("div",{className:Pe["add-to-cart--footer--total"],children:[a.jsx("span",{children:"Subtotal:"}),a.jsx("span",{children:d})]}),a.jsx(b.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>s(!0),children:o.footer.bag}),r?a.jsx(b.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:o.footer.keep_buying}):a.jsx(b.Button,{onClick:()=>n(),size:"medium",variant:"tertiary",children:o.footer.keep_buying})]})};pc.displayName="AddToCart.Layout.Footer";const mc=({children:e,className:t,thumbnail:r=!1,...n})=>{const{cartStore:{options:o}}=He(),{recentlyAddedProducts:i}=dt(),s=i.length>3?4:i.length;return a.jsxs("div",{...n,className:Pe["add-to-cart--items"],"data-thumbnail":r,children:[Array.isArray(i)&&i.filter((c,l)=>l<s).map(c=>{var u;const l=(u=o==null?void 0:o.find(p=>p.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:u.texture;return a.jsx(Fe.Card,{item:c,thumbnail:r,texture:l},c.itemOffered.sku)}),e]})};mc.displayName="AddToCart.Layout.Items";const hc=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:n}=We(),{isMobile:o}=Ie();return a.jsxs(b.Modal.Root,{"data-modal":"add-to-cart--modal",className:Pe["add-to-cart__modal"],isMobile:o??!1,isOpen:r,setIsOpen:n,variant:"sideBottom",style:{zIndex:t.modal},children:[a.jsx(b.Modal.Header,{navigation:"top",children:a.jsx(b.Modal.Controls,{navigation:"top",isMobile:!0})}),a.jsx(b.Modal.Body,{children:e})]})};hc.displayName="AddToCart.Modal";const Ud=({children:e})=>{const{count:t,handleClose:r,setIsOpen:n}=We(),o=P.useRef(t);return P.useEffect(()=>{t>o.current&&n(!0),t<o.current&&o.current>=1&&r(),o.current=t},[t,r,n]),a.jsx(a.Fragment,{children:e})},gc=({children:e,component:t,CONSTANTS:r,...n})=>{const{recentlyAddedProducts:o}=dt(),{isMobile:i}=Ie(),s=o.length>3?4:o.length;return a.jsx(Ls,{...n,count:s,isMobile:i,CONSTANTS:r,children:a.jsx(Ud,{children:i?a.jsxs(a.Fragment,{children:[a.jsx(Fe.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):a.jsx(Fe.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};gc.displayName="AddToCart.Root";const yc=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:o,left:i,isLeaving:s,target:c,isOpen:l,top:u}=We();return a.jsx(b.Tooltip.Root,{arrow:"top-right",component:a.jsx("div",{...n,ref:o,children:t}),id:"add-to-cart--tooltip",className:Pe["add-to-cart--tooltip"],style:{zIndex:r.modal},isLeaving:s,isOpen:l,left:i,size:"medium",position:"top",top:u,children:a.jsx("div",{className:Pe["add-to-cart--tooltip"],ref:c,children:e})})};yc.displayName="AddToCart.Tooltip";const Fe={Card:dc,Content:fc,Footer:pc,Items:mc,Modal:hc,Root:gc,Tooltip:yc},yo=({title:e,...t})=>{const{recentlyAddedProducts:r}=dt(),{isMobile:n}=Ie(),o=r.length>3?4:r.length,i=r.length>(o??1),s=r.length>1;return a.jsx(Fe.Root,{isMobile:n,count:r.length,component:a.jsx(Fe.Content,{title:e,children:a.jsx(Fe.Items,{thumbnail:s,children:i&&a.jsx(b.Badge.Count,{count:r.length-o,size:"medium",variant:"secondary"})})}),...t})};yo.displayName="AddToCart";const yi={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},Gd=({children:e,className:t,adornment:r,iconPosition:n,scrollToOptions:o,style:i,...s})=>{const c={top:(o==null?void 0:o.top)??0,left:(o==null?void 0:o.left)??0,behavior:(o==null?void 0:o.behavior)??"smooth"},u=n&&r?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[n]}:{},p=()=>{window&&window.document.body.scrollTo({...c})};return a.jsx(b.Card,{...s,shadow:!0,padding:"small",className:b.helpers.classNameConcat(yi["card-modifier"],t),style:{...i,padding:0},children:a.jsxs("button",{className:yi["backtotop-btn"],onClick:p,style:{...u},"data-orientation":n,children:[r,e]})})},_o={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},vo=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=He(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=xe(),i=r.reduce((s,c)=>s+(c.quantity??0),0);return a.jsx(b.Header.SupportItem,{onClick:()=>{t(!0),n({content:"header:minicart"})},id:e,children:a.jsxs(b.Badge.AutoPositioner,{children:[a.jsx(b.Badge.Count,{count:i,size:"medium",variant:"primary",style:{backgroundColor:"black",display:i>0?"flex":"none"}}),a.jsx(b.Icon,{name:o.header.ICONS.bag,size:"medium"})]})})};vo.displayName="Header.Bag";const mt=({children:e,href:t,...r})=>t&&t!=="#"?a.jsx(je,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,_c=()=>{const{headerData:e}=xe(),{handleSelectContent:t}=ge(),{reset:r,updateValue:n}=qe(),o=i=>{i?n(i):r()};return a.jsx(b.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((i,s)=>a.jsx(mt,{href:i.link,onMouseEnter:()=>o(i.submenuId),onFocus:()=>o(i.submenuId),children:a.jsx(b.Header.CategoryItem,{className:_o["btn-header"],value:i.submenuId??null,adornment:{start:a.jsx(b.Icon,{name:i.iconStart}),end:a.jsx(b.Icon,{name:i.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${i.label}`})},children:i.label})},`category-${i.label}-${s}`))})};_c.displayName="Header.Categories";function Wd({SearchModal:e}){const{handleSelectContent:t}=ge(),{CONSTANTS:r}=xe(),{setValue:n}=lo();return a.jsxs(a.Fragment,{children:[a.jsx(b.Header.SupportItem,{onClick:()=>{n(!0),t({content:"header:search"})},children:a.jsx(b.Icon,{name:r.header.ICONS.search,size:"medium"})}),a.jsx(e,{recommendations:!1,trends:!0})]})}const Vd={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},bo=({thumbnails:e,category:t,isMobile:r=!0,callBack:n})=>{const{handleSelectPromotionEvent:o}=ge(),i=50/e.length;return a.jsx("div",{className:Vd["menu-subcategories-container"],children:e.map((s,c)=>{const l=r?s.srcMobile:s.srcDesk;if(!l)return null;const u={creative_name:"banner-menu",creative_slot:`banner-menu:${t}:${c+1}`,promotion_id:l,promotion_name:s.promotion_name};return a.jsx(Wt,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...u}}}},observerOptions:{delay:1e3},children:a.jsxs(je,{href:s.link??"#",onClick:()=>{typeof n=="function"&&n(),o({updatePromotionRef:!0,promotion:u})},children:[a.jsx(ke.Image,{src:l,alt:s.label??l,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${i}vw`}),s.label&&a.jsx("p",{children:s.label})]})},`thumb-${s.label}-${c}`)})})};bo.displayName="Menu.Thumbnail";const Qn={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},vc=({children:e,dividerOnRight:t=!0,subMenu:r,...n})=>{var l;const{router:o}=Te(),{reset:i}=qe(),{handleSelectContent:s}=ge(),{CONSTANTS:c}=xe();return a.jsxs("div",{...n,className:Qn["menu-categories"],children:[(l=r==null?void 0:r.subCategories)==null?void 0:l.map((u,p)=>{var m,h,y;const f=u.listCollapseDesk&&!((m=u.see_all)!=null&&m.link)?{expandAfterRowsQty:u.rowsToShowDesk}:{},d=u.listCollapseDesk&&!((h=u.see_all)!=null&&h.link)?{expansivesAdornments:{open:c.header.ICONS.add,close:c.header.ICONS.minus},expansivesLabels:{open:c.header.COMPONENT_LIST.listExpandLabel,close:c.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:a.jsx(b.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return a.jsxs(b.ComponentList.Structure,{children:[a.jsx(mt,{href:u.linkLabel,title:u.label,onClick:()=>{u.linkLabel&&(i(),s({content:`menu:${u.label??""}:${r.label??""}`}))},children:a.jsx(b.TextStructure.Root,{children:a.jsx(b.TextStructure.DivWrapper,{children:a.jsx("h2",{children:u.label})})})}),a.jsx(b.ComponentList.List,{columns:1,...f,className:Qn["submenu-categories"],children:u.items.map((g,v)=>a.jsx(b.ComponentList.ListItem,{id:`list-item-${g.label}-${v}`,children:a.jsx(rt,{href:g.link??"#",size:"x-small",title:g.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{i(),s({content:`menu:${u.label??""}:${g.label??""}:${r.label??""}`})},children:g.label})},`list-item-${g.label}-${v}`))}),((y=u.see_all)==null?void 0:y.link)&&a.jsx(b.ComponentList.Support,{...d,size:"small",onClick:()=>{var g;(g=u.see_all)!=null&&g.link&&(i(),s({content:`menu:${u.label??""}:${r.label}`}),o.push(u.see_all.link))},children:u.see_all.link&&u.see_all.label})]},`list-${u.label}-${p}`)}),t&&a.jsx(b.Utils.Divider,{size:"small",direction:"vertical"})]})};vc.displayName="Menu.Categories";var Yn={exports:{}};function Kd(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 Er={},Rr={},_i;function Xd(){return _i||(_i=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return n}});const n=Re._(P).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="LoadableContext")}(Rr)),Rr}var vi;function Qd(){return vi||(vi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return m}});const r=Re._(P),n=Xd();function o(h){return h&&h.default?h.default:h}const i=[],s=[];let c=!1;function l(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 u(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),!c&&typeof window<"u"){const C=g.webpack&&typeof Kd.resolveWeak=="function"?g.webpack():g.modules;C&&s.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 f(h){return u(l,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)})}f.preloadAll=()=>new Promise((h,y)=>{d(i).then(h,y)}),f.preloadReady=h=>(h===void 0&&(h=[]),new Promise(y=>{const g=()=>(c=!0,y());d(s,h).then(g,g)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=f.preloadReady);const m=f}(Er)),Er}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(p,f){for(var d in f)Object.defineProperty(p,d,{enumerable:!0,get:f[d]})}r(t,{noSSR:function(){return l},default:function(){return u}});const n=Re,o=n._(P),i=n._(Qd()),s=typeof window>"u";function c(p){return{default:(p==null?void 0:p.default)||p}}function l(p,f){if(delete f.webpack,delete f.modules,!s)return p(f);const d=f.loading;return()=>o.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(p,f){let d=i.default,m={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?m.loader=()=>p:typeof p=="function"?m.loader=p:typeof p=="object"&&(m={...m,...p}),m={...m,...f};const h=m.loader,y=()=>h!=null?h().then(c):Promise.resolve(c(()=>null));return m.loadableGenerated&&(m={...m,...m.loadableGenerated},delete m.loadableGenerated),typeof m.ssr=="boolean"&&!m.ssr?(delete m.webpack,delete m.modules,l(d,m)):d({...m,loader:y})}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Yn,Yn.exports);var Yd=Yn.exports,Zd=Yd;const xo=Ft(Zd),bc=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:n}=xe();return a.jsxs(a.Fragment,{children:[a.jsx("div",{...r,className:Qn["menu-desktop"],style:{...r.style,justifyContent:n.header.ALIGNMENT_MENU},children:e}),t&&a.jsx(b.Utils.Divider,{size:"small"})]})};bc.displayName="Menu.MenuRoot";const Jd=xo(()=>Promise.resolve(bc),{ssr:!1}),wr={Root:Jd,Categories:vc,Thumbnail:bo},xc=()=>{const{headerData:e,CONSTANTS:t}=xe(),r=Ht(),{reset:n}=qe();return a.jsx(b.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((o,i)=>{const{thumbnails:s,label:c,id:l}=o,u=l===r,p=s==null?void 0:s.some(f=>!!f.srcDesk);return a.jsxs(wr.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[a.jsx(wr.Categories,{dividerOnRight:!!p,subMenu:o}),Array.isArray(s)&&a.jsx(wr.Thumbnail,{thumbnails:s,isMobile:!1,category:c,callBack:n})]},`submenu-${l}-${i}`)})})};xc.displayName="Header.SubMenu";const Cc=()=>{const{handleSelectContent:e}=ge(),{CONSTANTS:t}=xe();return a.jsx(je,{href:"/favoritos",children:a.jsx(b.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:a.jsx(b.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};Cc.displayName="Header.WishList";const Sc=({UserMenu:e,SearchModal:t})=>{const r=P.useRef(null),{CONSTANTS:n}=xe(),{handleSelectContent:o}=ge(),{reset:i}=qe(),{setValue:s}=zt();return a.jsxs(a.Fragment,{children:[a.jsxs(b.Header.Wrapper,{children:[a.jsx(b.Header.Logo,{style:{width:"100%"},children:a.jsx(je,{href:"/",onMouseEnter:i,children:a.jsx(b.Icon,{name:n.header.ICONS.logo,size:"x-large",onClick:()=>{o({content:"header:logo"})}})})}),a.jsx(_c,{}),a.jsxs(b.Header.Support,{onMouseEnter:i,style:{justifyContent:"flex-end"},children:[a.jsx(Wd,{SearchModal:t}),a.jsx(e,{target:r.current,children:a.jsx(b.Header.SupportItem,{onClick:()=>{s(!0),o({content:"header:user_menu"})},className:_o["btn-login"],innerRef:r,children:a.jsx(b.Icon,{name:n.header.ICONS.person,size:"medium"})})}),a.jsx(Cc,{}),a.jsx(vo,{id:"cart-button"})]})]}),a.jsx(xc,{})]})};Sc.displayName="Header.HeaderDesktopWrapper";const ef="_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:ef,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},Ac=({children:e,mobileBannerAlt:t,mobileBannerSrc:r,onClick:n,textColor:o,...i})=>a.jsx("button",{onClick:n,className:_e["menu-categories-btn"],children:r?a.jsxs(b.Banner.Container,{...i,className:_e["menu-body-banner-container-modifier"],children:[a.jsx(b.Banner.ImageWrapper,{style:{width:"100%"},children:a.jsx(ke.Image,{src:r,alt:t??r,className:_e["menu-categories__banner"],width:343,height:128,unoptimized:!0})}),a.jsx(b.Banner.Slot,{verticalAlignment:"center",horizontalAlignment:"start",children:a.jsx(b.TextStructure.Root,{children:a.jsx(b.TextStructure.DivWrapper,{className:_e["menu-categories-textstructure-modifier"],children:a.jsx("h2",{className:"typography-style-body-xs",style:o?{color:o}:{},children:e})})})})]}):a.jsx("h2",{...i,children:e})});Ac.displayName="Menu.MenuCategories";const Ec=({children:e,link:t})=>{const{reset:r}=Ge();return t?a.jsx(je,{href:t??"#",onClick:r,children:e}):e};Ec.displayName="Menu.MenuCategoriesWrapper";const Rc=({subcategory:e,submenuLabel:t})=>{var l,u,p;const{router:r}=Te(),{reset:n}=Ge(),{handleSelectContent:o}=ge(),{CONSTANTS:i}=xe(),s=e.listCollapseMobile&&!((l=e.see_all)!=null&&l.link)?{expandAfterRowsQty:e.rowsToShowMobile}:{},c=e.listCollapseMobile&&!((u=e.see_all)!=null&&u.link)?{expansivesAdornments:{open:i.header.ICONS.add,close:i.header.ICONS.minus},expansivesLabels:{open:i.header.COMPONENT_LIST.listExpandLabel,close:i.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:a.jsx(b.Icon,{name:i.header.ICONS.arrow_right,size:"small"})}};return a.jsxs(b.ComponentList.Structure,{className:_e["menu-submenu--component-list-modifier"],children:[a.jsx(mt,{href:e.linkLabel,title:e.label,onClick:()=>{n(),o({content:`menu:${e.label??""}:${t}`})},children:a.jsx(b.TextStructure.Root,{children:a.jsx(b.TextStructure.DivWrapper,{children:a.jsx("h2",{className:"typography-style-body-sm-strong",children:e.label})})})}),a.jsx(b.ComponentList.List,{columns:1,...s,className:_e["submenu-categories"],children:e.items.map((f,d)=>a.jsx(b.ComponentList.ListItem,{id:`list-item-${f.label}-${d}`,divider:!0,children:a.jsx(rt,{href:f.link??"#",size:"x-small",title:f.label??"",disableUnderline:!0,onClick:()=>{n(),o({content:`menu:${e.label??""}:${f.label}:${t}`})},children:f.label})},`list-item-${f.label}-${d}`))}),((p=e.see_all)==null?void 0:p.link)&&a.jsx(b.ComponentList.Support,{...c,size:"small",onClick:()=>{var f;n(),o({content:`menu:${e.label??""}:${t}`}),(f=e.see_all)!=null&&f.link&&r.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};Rc.displayName="Menu.SubMenuSubCategory";const wc=({submenu:e})=>{var i;const t=Ht(),{handleCloseSubMenu:r}=pt(),{reset:n}=qe(),{CONSTANTS:o}=xe();return a.jsxs("div",{className:_e["menu-submenu--item"],style:{display:t===e.id?"flex":"none"},children:[a.jsx(b.TextStructure.Root,{adornment:{start:a.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&&a.jsx(b.TextStructure.DivWrapper,{style:{position:"absolute",left:"50%",transform:"translate(-50%)"},children:a.jsx("h2",{className:"typography-style-body-md-strong",children:e.label})})}),a.jsx("div",{className:_e["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&a.jsx(bo,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:n})}),(i=e==null?void 0:e.subCategories)==null?void 0:i.map((s,c)=>a.jsx(Rc,{subcategory:s,submenuLabel:e.label},`list-${s.label}-${c}`))]})};wc.displayName="Menu.SubMenuItem";const jc=()=>{const{headerData:e}=xe(),t=Ht(),{reset:r}=qe(),{bodyRef:n}=pt();return a.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:a.jsx("div",{className:_e["menu-submenu"],children:e.subMenus.map((o,i)=>a.jsx(wc,{submenu:o},`submenu-${o.id}-${i}`))})})};jc.displayName="Menu.SubMenu";const Pc=({className:e,...t})=>{const{headerData:r}=xe(),{setValue:n}=qe(),{bodyRef:o}=pt(),{handleSelectContent:i}=ge();return a.jsxs("div",{...t,ref:o,id:"menu-body",className:_e["menu-body"],children:[a.jsx("div",{className:_e["menu-categories-container"],children:r.categories.map((s,c)=>{const l=s.submenuId?{}:{"data-close":!0};return a.jsx(Ec,{link:s.submenuId?null:s.link,children:a.jsx(Ac,{onClick:()=>{n(s.submenuId??null),i({content:`menu:${s.label}`})},mobileBannerSrc:s.mobileBannerSrc,mobileBannerAlt:s.mobileBannerAlt,textColor:s.textColor,...l,children:s.mobileBannerAlt})},`menu-categories-${c}`)})}),a.jsx(jc,{})]})};Pc.displayName="Menu.MenuBody";const Ic=({title:e,subtitle:t})=>{const{CONSTANTS:r}=xe();return a.jsxs("div",{className:_e["menu-header-wrapper"],style:t?{alignItems:"start"}:{alignItems:"center"},children:[(e||t)&&a.jsx(b.TextStructure.Root,{children:a.jsxs(b.TextStructure.DivWrapper,{children:[e&&a.jsx("h2",{className:"typography-style-body-md",children:e}),t&&a.jsx("h3",{children:t})]})}),a.jsx(b.Button,{adornment:{end:a.jsx(b.Icon,{name:r.header.ICONS.close})},variant:"tertiary",className:_e["menu-close"],"data-close":!0})]})};Ic.displayName="Menu.MenuHeaderWrapper";const Nc=({navigationLinks:e})=>{const{reset:t}=Ge(),{handleSelectContent:r}=ge();return e?a.jsx("nav",{className:_e["menu-header-navlinks"],children:e.map((n,o)=>a.jsx(rt,{href:n.link??"#",adornments:{start:n.iconStart&&a.jsx(b.Icon,{name:n.iconStart}),end:n.iconEnd&&a.jsx(b.Icon,{name:n.iconEnd})},onClick:()=>{t(),r({content:`menu:navigationlinks-${n.label}`})},children:n.label},o))}):null};Nc.displayName="Menu.MenuHeaderNavLinks";const Oc=()=>{const{headerData:e}=xe();return a.jsxs("div",{className:_e["menu-header-container"],children:[a.jsx(Ic,{title:e.title,subtitle:e.subtitle}),a.jsx(Nc,{navigationLinks:e.navigationLinks})]})};Oc.displayName="Menu.MenuHeaderContainer";const Tc=({children:e})=>{const{documentBodyRef:t}=pt(),{CONSTANTS:r}=xe(),n=co(),{setValue:o}=Ge();return a.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:a.jsx("div",{className:_e["menu-mobile"],children:e})})};Tc.displayName="Menu.MenuRoot";const tf=xo(()=>Promise.resolve(Tc),{ssr:!1}),Bt=({children:e,...t})=>a.jsxs(a.Fragment,{children:[a.jsx(b.Button,{...t,className:_e["menu-navigationbar-item"],children:e}),a.jsx(b.Utils.Divider,{direction:"vertical",size:"small",className:_e.divider})]});Bt.displayName="Menu.NavigationBarItem";const kc=()=>{const{setIsOpen:e}=He(),{reset:t}=Ge(),{setValue:r}=zt(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=xe(),{router:i}=Te();return a.jsxs(b.Card,{id:"menu-navigationbar",shadow:!0,className:_e["menu-navigationbar"],style:{zIndex:o.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:[a.jsx(Bt,{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}),a.jsx(Bt,{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}),a.jsx(Bt,{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})]})};kc.displayName="Menu.NavigationBar";const kt={Root:tf,NavigationBar:kc,Header:Oc,Body:Pc},Mc=({UserMenu:e,SearchModal:t})=>{const r=P.useRef(null),n=P.useRef(null),{CONSTANTS:o}=xe(),{MENU_NAVIGATION_BAR_ALLOWED:i,ICONS:s,MENU_MOB_BTN_SIDE:c="right"}=o.header,{handleSelectContent:l}=ge(),{setValue:u}=lo(),{setValue:p}=Ge(),{setValue:f}=zt();return a.jsxs(a.Fragment,{children:[a.jsxs(b.Header.Wrapper,{children:[c==="left"&&a.jsx(b.Header.SupportItem,{onClick:()=>p(!0),innerRef:r,children:a.jsx(b.Icon,{name:s.menu,size:"medium"})}),a.jsx(b.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:a.jsx(je,{href:"/",children:a.jsx(b.Icon,{name:s.logo,size:"x-large",onClick:()=>{l({content:"header:logo"})}})})}),a.jsxs(b.Header.Support,{children:[a.jsx(b.Header.SupportItem,{onClick:()=>{u(!0),l({content:"header:search"})},children:a.jsx(b.Icon,{name:s.search,size:"medium"})}),a.jsx(b.Header.SupportItem,{onClick:()=>{f(!0),l({content:"header:user_menu"})},innerRef:n,children:a.jsx(b.Icon,{name:s.person,size:"medium"})}),a.jsx(vo,{}),c==="right"&&a.jsx(b.Header.SupportItem,{onClick:()=>p(!0),innerRef:r,children:a.jsx(b.Icon,{name:s.menu,size:"medium"})})]})]}),a.jsx(t,{recommendations:!1,trends:!0}),a.jsx(ks,{children:a.jsx(e,{target:n==null?void 0:n.current,children:a.jsxs(kt.Root,{children:[a.jsx(kt.Header,{}),a.jsx(kt.Body,{}),i?a.jsx(kt.NavigationBar,{}):a.jsx(a.Fragment,{})]})})})]})};Mc.displayName="Header.HeaderMobileWrapper";const Lc=({tipBar:e,miniCart:t,UserMenu:r,SearchModal:n})=>{const{structureRef:o,rootRef:i,CONSTANTS:s}=xe(),{header:{HEADER_CONFIGS:c,Z_INDEX_WAR:l}}=s;return a.jsx(b.Header.Structure,{innerRef:o,adornment:{start:e},style:{position:"sticky",top:0,zIndex:l.header},className:_o["header-animation"],children:a.jsxs(b.Header.Root,{innerRef:i,style:{zIndex:l.header},variant:c.default_variant,interactiveVariant:c.interactive_variant,children:[a.jsx("div",{className:et["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:l.header_mobile},children:a.jsx(Mc,{UserMenu:r,SearchModal:n})}),a.jsx("div",{className:et["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:l.header_desktop},children:a.jsx(Sc,{UserMenu:r,SearchModal:n})}),t,a.jsx(yo,{title:"Produto adicionado à sua sacola!",CONSTANTS:s.addToCart})]})})};Lc.displayName="Header";const rf="_shippingFreight_6z8rf_6",nf="_shippingFreight__postalCodeGrid_6z8rf_10",of="_shippingFreight__grid_6z8rf_14",af="_shippingFreight__grid__title_6z8rf_18",sf="_shippingFreight__grid__remember_6z8rf_29",cf="_postalCodeContainer_6z8rf_44",lf="_deliveryStatusBar__tag_6z8rf_49",uf="_deliveryStatusBarError__tag_6z8rf_66",df="_deliveryInfo_6z8rf_74",ff="_deliveryInfo__content_6z8rf_78",pf="_deliveryInfo__text_6z8rf_84",mf="_deliveryInfo__title_6z8rf_89",hf="_deliveryInfo__subtitle_6z8rf_99",gf="_deliveryInfo__tooltipIcon_6z8rf_109",yf="_deliveryInfo__tooltip_6z8rf_109",_f="_freightGrid_6z8rf_148",vf="_freightContainer_6z8rf_155",bf="_freightOption__content_6z8rf_160",xf="_freightOption__value_6z8rf_166",Cf="_freightOption__title_6z8rf_177",Sf="_freightOption__title_item_6z8rf_181",Af="_freightOption__paragraph_6z8rf_192",fe={shippingFreight:rf,shippingFreight__postalCodeGrid:nf,shippingFreight__grid:of,shippingFreight__grid__title:af,shippingFreight__grid__remember:sf,postalCodeContainer:cf,deliveryStatusBar__tag:lf,deliveryStatusBarError__tag:uf,deliveryInfo:df,deliveryInfo__content:ff,deliveryInfo__text:pf,deliveryInfo__title:mf,deliveryInfo__subtitle:hf,deliveryInfo__tooltipIcon:gf,deliveryInfo__tooltip:yf,freightGrid:_f,freightContainer:vf,freightOption__content:bf,freightOption__value:xf,freightOption__title:Cf,freightOption__title_item:Sf,freightOption__paragraph:Af,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},Ef=({icon:e,title:t,subtitle:r,packageCount:n,packageUnit:o="",labelDescription:i,freightConfig:s,toolTipZIndex:c})=>{const[l,u]=P.useState(!1),p=P.useRef(null),f=()=>u(d=>!d);return a.jsxs("div",{className:fe.deliveryInfo,ref:p,children:[a.jsx(b.Tooltip.Root,{arrow:"bottom",component:a.jsx("div",{children:a.jsx("p",{children:s.messages.select_size_tag})}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:p.current}),a.jsxs("div",{className:fe.deliveryInfo__content,children:[a.jsx("div",{className:fe.deliveryInfo__icon,children:a.jsx(b.Icon,{name:e,size:"medium"})}),a.jsxs("div",{className:fe.deliveryInfo__text,children:[a.jsxs("span",{className:fe.deliveryInfo__title,children:[t," ",n," ",o]}),r&&a.jsx("span",{className:fe.deliveryInfo__subtitle,children:r})]}),i&&a.jsxs("div",{className:fe.deliveryInfo__tooltipIcon,onMouseEnter:f,onMouseLeave:f,"aria-label":"Mostrar descrição",children:[a.jsx("span",{children:a.jsx(b.Icon,{name:s.icons.feedback_help,size:"small"})}),l&&a.jsx("div",{className:fe.deliveryInfo__tooltip,children:i})]})]})]})},Rf=({value:e,title:t,paragraph:r})=>a.jsx("div",{className:fe.freightOption,children:a.jsxs("div",{className:fe.freightOption__content,children:[a.jsx("span",{className:fe.freightOption__value,children:e}),a.jsx("span",{className:fe.freightOption__title,children:a.jsx(b.TextStructure.Root,{children:a.jsxs(b.TextStructure.DivWrapper,{className:fe.footer__item,children:[a.jsx("span",{className:fe.freightOption__title_item,children:t}),r&&a.jsx("span",{className:fe.freightOption__paragraph,children:r})]})})})]})}),wf=({children:e})=>a.jsx("div",{className:fe.freightContainer,children:e}),jf=({children:e})=>a.jsx("div",{className:fe.freightGrid,children:e}),Pf=({children:e})=>a.jsx("div",{className:fe.postalCodeContainer,children:e}),bi=({message:e,seller:t="",size:r="small",setError:n})=>a.jsx("div",{className:n?fe.deliveryStatusBarError:fe.deliveryStatusBar,children:a.jsxs(b.Tag,{title:e,className:n?fe.deliveryStatusBarError__tag:fe.deliveryStatusBar__tag,size:r,children:[e," ",!n&&t]})}),If=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},Nf=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},Of=({component:e,parent:t,top:r,left:n,target:o,contentRef:i,freightConfig:s,toolTipZIndex:c=999,...l})=>{const{isMobile:u}=Ie();return a.jsx(a.Fragment,{children:u?a.jsx(b.Tooltip.Root,{arrow:"bottom",component:a.jsxs("div",{...l,ref:i,children:[e,a.jsx("p",{children:s.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:t}):a.jsx(b.Tooltip.Root,{arrow:"bottom",component:a.jsxs("div",{...l,ref:i,children:[e,a.jsx("p",{children:s.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:t})})},Tf=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:n,quantity:o,setError:i,setIsButtonClicked:s,component:c,freightConfig:l,toolTipZIndex:u})=>{var N,M,B,R;const p=Ye(),f=Ye(q=>q.shipping),[d,m]=P.useState(),[h,y]=P.useState(!1),[g,v]=P.useState(!1),[A,_]=P.useState(!1),S=(M=(N=p.shippingData)==null?void 0:N.address)==null?void 0:M.postalCode,C=!(d!=null&&d.length)&&S?S:d,j=P.useRef(null),x=async q=>{const U=q.target.value.replace(/\D/g,"").slice(0,8);U.length>5?m(U.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):m(U)},I=async q=>{const F=q.target.value.replace(/\D/g,"");try{if((await jo.get(`https://viacep.com.br/ws/${F}/json/`)).data.erro){i&&i(l.messages.cep_not_found),s(!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 jo.post("/api/checkout/simulation",{items:[{id:n,quantity:o,seller:t}],country:"BRA",postalCode:C});e(Nf(q.data))}catch(q){console.error("Erro ao atualizar o documento:",q)}finally{y(!1),f(C,"BRA")}},E=async()=>{if(!n){_(!0),setTimeout(()=>_(!1),1500);return}await I({target:{value:C}}),h||($(),s(!0))};return a.jsxs("div",{ref:j,style:{position:"relative"},children:[!n&&A?a.jsx(Of,{component:c,isOpen:A,parent:j.current,toolTipZIndex:u,freightConfig:l}):a.jsx(a.Fragment,{}),a.jsx("div",{style:{position:"relative"},children:a.jsx(b.TextField.Structure,{title:"structure",style:{width:"100%"},input:a.jsx(b.TextField.Input,{defaultValue:(R=(B=p.shippingData)==null?void 0:B.address)==null?void 0:R.postalCode,label:l.messages.text_input_label,title:"textfield",value:d,sizeVariant:r,onMouseOver:()=>n?null:_(!0),onMouseOut:()=>n?null:_(!1),mode:"simple",onChange:x,onKeyDown:q=>{q.key==="Enter"&&E()},className:fe["input-modifier"],feedback:g?"error":"none"}),right:a.jsx(b.Button,{onClick:E,size:r,title:"button",children:h?a.jsx(b.Spinner,{size:"small",indicatorColor:"#ffffff"}):l.messages.text_input_btn})})})]})},kf=({children:e,freightConfig:t})=>a.jsxs("div",{className:fe.shippingFreight,children:[a.jsxs("div",{className:fe.shippingFreight__grid,children:[a.jsx("span",{className:fe.shippingFreight__grid__title,children:t.messages.title}),a.jsx("span",{className:fe.shippingFreight__grid__remember,children:a.jsx(rt,{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})})]}),a.jsx("div",{className:fe.shippingFreight__postalCodeGrid,children:e})]}),Mf=({children:e})=>a.jsx("div",{className:fe.freightContainer,children:e}),Lf=({className:e,sellerId:t,skuId:r,quantity:n,size:o,seller:i,local:s,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:l}=ge(),[u,p]=P.useState(""),[f,d]=P.useState([]),[m,h]=P.useState(""),[y,g]=P.useState(!1),v=_=>p(_),A=_=>{d(_),l({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:c.currency||"BRL"}))}}})};return a.jsxs(Mf,{className:e,children:[a.jsxs(kf,{freightConfig:c.freightConfig,children:[a.jsx(Pf,{children:a.jsx(Tf,{onUpdateFreightItems:A,skuId:r,quantity:n,size:o,sellerId:t,local:s,setError:h,setIsButtonClicked:g,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),m?a.jsx(bi,{size:o,message:m,setError:h}):f.length>0&&a.jsx(bi,{size:o,message:c.freightConfig.messages.delivered_by,seller:i})]}),y&&!m?f.length>0&&a.jsxs(wf,{children:[a.jsx(jf,{children:f.filter(({id:_})=>!_.includes("Retirada")).map(_=>a.jsx(Rf,{id:_.id,value:no({valueInCents:_.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:_.name,paragraph:`${c.freightConfig.messages.prefix_days}${If(_.shippingEstimate)}`,radioValue:u,changeValue:v},_.id))}),c.deliveryInfoBoxesAllowed?a.jsx(Ef,{icon:c.freightConfig.icons.delivery_truck,packageUnit:c.freightConfig.messages.unit_amout,title:c.freightConfig.messages.delivered_amount_packages,subtitle:"",packageCount:1,labelDescription:"Label",freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex??999}):a.jsx(a.Fragment,{})]}):null]})},Dc=P.createContext({}),Df=({children:e,item:t,index:r,shelfTitle:n,...o})=>{const[i,s]=P.useState(null),c=P.useRef(null),l=P.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:u,itemListRef:p}=ge(),f=y=>{u({functionKey:"productEvents",data:{commonData:{...t,availableSizes:l.current.availableSkus,...l.current.priceInfo},customData:{index:r+1},event:y}})},d=()=>{f("add_to_wishlist")},m=()=>{u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...l.current.priceInfo}]},supportData:{selectedSku:i,selectedSkus:[i]},customData:{index:r}}})},h=()=>{n&&(p.current={item_list_name:n}),f("select_item")};return a.jsx(Dc.Provider,{value:P.useMemo(()=>({...o,index:r,item:t,element:c,selectedSku:i,setSelectedSku:s,eventDataRef:l,sendAddToWishlistEvent:d,sendSelectItemEvent:h,sendAddToCartEvent:m}),[o,t,c,i]),children:e})},Oe=()=>{const e=P.useContext(Dc);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"},$c=({callback:e,children:t,className:r,data:n,isKit:o,...i})=>{const{item:{availability:{status:s},image:c}}=Oe();return s?a.jsxs("div",{...i,className:b.helpers.classNameConcat(Se["product-card--actions"],r),children:[a.jsxs(we.Wrapper,{type:"actions--group",children:[a.jsx(we.Price,{}),a.jsx("div",{className:Se["product-card--actions--selectors"],children:!o&&a.jsx(we.StyleSelector,{data:n,images:c,callback:e})})]}),t]}):null};$c.displayName="ProductCard.Actions";const Bc=({className:e,isKit:t,...r})=>{const{addToCart:n}=He(),{isMobile:o=!1,selectedSku:i,outStock:s,item:c,sendAddToCartEvent:l,CONSTANTS:u}=Oe(),p=()=>{var m;if(!i)return;const d=io(i.offers.offers,u.StoreConfig_MainSellerId);d&&n({id:i==null?void 0:i.sku,quantity:1,seller:d.seller.identifier},{id:c.id,texture:(m=c==null?void 0:c.image.find(h=>u.TEXTURE_IMAGE.includes(h.alternateName)))==null?void 0:m.url}),l()},f=i?u.BUY_BUTTON_LABELS.add_to_cart:u.BUY_BUTTON_LABELS.select_size;return a.jsx(b.Button,{...r,className:b.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!i&&!s,size:o?"medium":"large",variant:s?"secondary":"primary",onClick:s?r.onClick:p,children:s?"Avise-me quando chegar":f})};Bc.displayName="ProductCard.Actions.BuyButton";const qc=({product:e,tag:t,size:r="small"})=>{const n=e.offers.offers[0],{CONSTANTS:o,WishListToggle:i}=Oe();return a.jsxs(we.Wrapper,{type:"header",style:{zIndex:o.Z_INDEX_WAR.product_card_header},children:[t?a.jsx(b.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?a.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&&a.jsx(i,{product:e,priceInfo:{price:n.price,listPrice:n.listPrice},variant:"card"})]})};qc.displayName="ProductCard.Actions.Header";const Hc=({className:e,children:t,hasPriority:r=!1,showVideo:n=!1,...o})=>{const{element:i,index:s,item:{image:c,slug:l,video:u},sendSelectItemEvent:p,order:f,CONSTANTS:d}=Oe(),m=Ga({images:c,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return a.jsxs("div",{...o,className:b.helpers.classNameConcat(Se["product-card--image"],e),ref:i,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[a.jsx(je,{href:`/${l}/p`,onClick:p,onMouseUp:h=>{h.button===1&&p(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(f))},children:a.jsx("div",{className:Se["product-card--image--container"],children:Array.isArray(m)&&m.map(({url:h,alternateName:y},g)=>P.createElement(ke.Image,{...d.PRODUCT_IMAGE_DIMENSIONS.product_card,style:d.PRODUCT_IMAGE_DIMENSIONS.product_card,alt:y??"product image",key:g,...r&&{priority:g===0&&s<4},objectFit:"cover",src:h}))})}),d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&n&&u&&a.jsx(we.Video,{url:u,poster:m[0].url}),t]})};Hc.displayName="ProductCard.Media.Media";const zc=({className:e,callback:t,children:r,...n})=>{const{isMobile:o,item:i,CONSTANTS:{PRODUCT_CARD_TEXTS:s}}=Oe(),{availability:{status:c}}=i;return c?null:a.jsxs("div",{...n,className:b.helpers.classNameConcat(Se["product-card--outstock"],e),children:[a.jsx(b.Tag,{size:"small",variant:"secondary",title:s.disabled,children:s.disabled}),a.jsx(b.Button,{className:b.helpers.classNameConcat(e,"buy-button"),size:o?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(i)},children:s.notify})]})};zc.displayName="ProductCard.OutStock";const Fc=({children:e,className:t="",index:r,isMobile:n=!1,item:o,size:i,order:s,outStock:c,shelfTitle:l,CONSTANTS:u,WishListToggle:p,...f})=>a.jsx(Df,{item:o,isMobile:n,outStock:c,order:s,size:i,index:r,shelfTitle:l,CONSTANTS:u,WishListToggle:p,children:a.jsx("div",{...f,className:b.helpers.classNameConcat(Se["product-card--wrapper"],t),"data-size":i,children:e})});Fc.displayName="ProductCard.Root";const Uc=({disabled:e,label:t,size:r,value:n,onClick:o,...i})=>a.jsxs(b.ToggleSize.Wrapper,{...i,disabled:!1,outOfStock:e,size:r,onClick:o,children:[a.jsx(b.ToggleSize.DisabledAdornment,{}),a.jsx(b.ToggleSize.Text,{children:t})]});Uc.displayName="ProductCard.SizeSelector.Item";const Gc=({active:e=!1,callback:t,selectedSku:r=null,item:n,setNotify:o})=>{const{item:i,isMobile:s,setSelectedSku:c,eventDataRef:l}=Oe();n.productId=i.id;const u=Ha(n),p=Ba(n,"tamanho");!u&&!l.current.availableSkus.includes(p)&&l.current.availableSkus.push(p);const f=P.useCallback(m=>{const h=r===m?null:m;typeof c=="function"&&c(h),typeof t=="function"&&t(h)},[t,c,r]),d=P.useCallback(()=>{if(u&&typeof o=="function"){o(i,n);return}f(n)},[n,o,f,u,i]);return a.jsx(Uc,{active:e,disabled:u,label:p,onClick:()=>d(),size:s?"x-small":"small",value:n})};Gc.displayName="ProductCard.SizeSelector.SkuItem";const Wc=({callback:e,className:t="",children:r,setNotify:n,...o})=>{const{isMobile:i,item:{isVariantOf:{hasVariant:s}},selectedSku:c}=Oe();return a.jsxs("div",{...o,className:b.helpers.classNameConcat(Se["product-card--selectors--size"],t),"data-mobile":i,children:[a.jsx("div",{className:Se["product-card--selectors--size--skus"],children:Array.isArray(s)&&s.map((l,u)=>a.jsx(Gc,{active:c===l,callback:e,item:l,selectedSku:c,setNotify:n},`size--${u}--${l.sku}`))}),a.jsx("div",{className:Se["product-card--selectors--size--button"],children:r})]})};Wc.displayName="ProductCard.SizeSelector";const Zn=({alt:e="",callback:t,more:r,total:n=4,src:o,url:i,...s})=>a.jsxs(b.ToggleStyle.Wrapper,{...s,onClick:()=>{typeof t=="function"&&t(i)},children:[a.jsx(b.ToggleStyle.DisabledAdornment,{}),a.jsxs(b.ToggleStyle.Texture,{children:[o&&a.jsx(ke.Image,{alt:e??o,src:o,height:34,width:34}),r&&a.jsx(b.TextStructure.DivWrapper,{className:Se["product-card--selectors--style--more"],children:a.jsxs("p",{children:["+ ",n]})})]})]}),$f=({children:e,callback:t,data:r,total:n=4,size:o,...i})=>{const{index:s}=Oe(),{triggerSelectItemEventRef:c}=ge();return a.jsxs("div",{...i,children:[e,Array.isArray(r)&&r.slice(0,n).map((l,u)=>a.jsx(Zn,{callback:p=>{c.current.trigger=!0,c.current.index=s,typeof t=="function"&&t(p)},src:(l==null?void 0:l.textureImage)??"",alt:l==null?void 0:l.textureAlt,url:l==null?void 0:l.slug,size:o},u)),Array.isArray(r)&&(r==null?void 0:r.length)>n&&a.jsx(Zn,{size:o,total:r.length-n,more:!0})]})},Vc=({callback:e,className:t,data:r,images:n=[],findTexture:o,...i})=>{const{CONSTANTS:s}=Oe(),c=o||s.TEXTURE_IMAGE,l=n==null?void 0:n.find(u=>c.includes(u.alternateName));return a.jsx($f,{...i,callback:e,className:b.helpers.classNameConcat(Se["product-card--selectors--style"],t),data:r,size:"x-small",children:l&&a.jsx(Zn,{active:!0,size:"x-small",src:l.url})})};Vc.displayName="ProductCard.StyleSelector";const Kc=({className:e,hasDecimal:t,...r})=>{const{isMobile:n,item:{offers:{lowPrice:o,highPrice:i},installments:{count:s,value:c}},eventDataRef:l}=Oe();l.current.priceInfo={price:o,listPrice:i};const u=Le(i,t),p=Le(o,t),f=Le(c??0),d=n?"horizontal":"stacked";return a.jsx("div",{...r,className:b.helpers.classNameConcat(Se["product-card--price"],e),"data-mobile":n,children:a.jsx(b.ProductInfo.Root,{size:"small",layout:d,children:a.jsxs(b.ProductInfo.Wrapper,{size:"small",layout:d,children:[a.jsx(b.ProductInfo.ValuesWrapper,{children:p!==u?a.jsxs(a.Fragment,{children:[a.jsx(b.ProductInfo.Price,{label:"originalPrice",value:u,size:"small"}),a.jsx(b.ProductInfo.Price,{label:"discountPrice",value:p,size:"small"})]}):a.jsx(b.ProductInfo.Price,{label:"defaultPrice",value:p,size:"small"})}),s&&s>1&&c?a.jsx(b.ProductInfo.Price,{label:"installment",value:`${s}x ${f}`,size:"small"}):null]})})})};Kc.displayName="ProductCard.Price";const Xc=({tag:e,className:t})=>{const{item:{name:r}}=Oe();return a.jsxs("div",{className:b.helpers.classNameConcat(Se["product-card--title"],t),children:[a.jsx("div",{className:Se["product-card--title--tag"],children:e?a.jsx(b.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?a.jsx(b.Icon,{name:e.icon,style:{color:e.iconColor}}):null},style:{background:e.tagColor,color:e.textColor},children:e.value}):a.jsx("div",{})}),a.jsx("div",{className:Se["product-card--title--content"],children:r&&a.jsx(b.TextStructure.Root,{children:a.jsx(b.TextStructure.DivWrapper,{children:a.jsx("h3",{children:r})})})})]})};Xc.displayName="ProductCard.Title";const Qc=({className:e,url:t,poster:r,...n})=>{const{element:o}=Oe();return P.useEffect(()=>{if(!(o!=null&&o.current))return;const i=o.current,s=i.querySelector("video");if(s){const c=new IntersectionObserver(p=>{p.forEach(f=>{Wa(f.isIntersecting,s,t)})},{root:null,rootMargin:"0px",threshold:.5}),l=()=>{s.setAttribute("data-loaded","true")},u=()=>{i&&(c.observe(i),s.addEventListener("loadeddata",l))};return document.readyState==="complete"?u():window.addEventListener("load",u),()=>{c.disconnect(),window.removeEventListener("load",u)}}return()=>null},[t,o]),a.jsx("div",{...n,className:b.helpers.classNameConcat(Se["product-card--video"],e),children:t&&a.jsx(ke.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};Qc.displayName="ProductCard.Media.Video";const Yc=({children:e,className:t,type:r,...n})=>a.jsx("div",{...n,className:b.helpers.classNameConcat(Se[`product-card--${r}`],t),children:e});Yc.displayName="ProductCard.Wrapper";const we={Actions:$c,BuyButton:Bc,Header:qc,Media:Hc,Root:Fc,OutStock:zc,Price:Kc,SizeSelector:Wc,StyleSelector:Vc,Title:Xc,Video:Qc,Wrapper:Yc},Bf="_footer__bottom_1o9af_2",qf="_footer__wrapper_1o9af_10",Hf="_footer__main_1o9af_39",zf="_footer__legalInformation_1o9af_55",Ff="_footer__column_1o9af_77",Uf="_footer__columnContent_1o9af_87",Gf="_footer__item_1o9af_91",Wf="_footer__itemLink_1o9af_107",Vf="_footer__columnTitle_1o9af_122",Kf="_footer__columnTitleIcon_1o9af_134",Xf="_footer__iconList_1o9af_147",Qf="_footer__itemSmallText_1o9af_157",Yf="_payment_1o9af_168",Zf="_footer__iconContainer_1o9af_173",Jf="_footer__iconListSubHeader_1o9af_178",ep="_accordionWrapper_1o9af_200",tp="_accordionHeader_1o9af_204",rp="_accordionTextWrapper_1o9af_208",pe={footer__bottom:Bf,footer__wrapper:qf,footer__main:Hf,footer__legalInformation:zf,footer__column:Ff,footer__columnContent:Uf,footer__item:Gf,footer__itemLink:Wf,footer__columnTitle:Vf,footer__columnTitleIcon:Kf,footer__iconList:Xf,footer__itemSmallText:Qf,payment:Yf,footer__iconContainer:Zf,footer__iconListSubHeader:Jf,accordionWrapper:ep,accordionHeader:tp,accordionTextWrapper:rp,"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 Zc={},Co={},ht={};(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)}}})(ht);var Jc={};(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:s,blurDataURL:c,objectFit:l}=r;const u=20,p=i?i*40:n,f=s?s*40:o,d=p&&f?"viewBox='0 0 "+p+" "+f+"'":"",m=d?"none":l==="contain"?"xMidYMid":l==="cover"?"xMidYMid slice":"none";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+d+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+u+"'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='"+u+"'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+m+"' style='filter: url(%23b);' href='"+c+"'/%3E%3C/svg%3E"}})(Jc);var Vt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,i){for(var s in i)Object.defineProperty(o,s,{enumerable:!0,get:i[s]})}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}})(Vt);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return m}});const t=ht,r=Jc,n=Vt,o=["lazy","eager",void 0];function i(h){return h.default!==void 0}function s(h){return h.src!==void 0}function c(h){return typeof h=="object"&&(i(h)||s(h))}const l=new Map;let u;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 f(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}=f(y,A,S),I=j.length-1;return{sizes:!S&&x==="w"?"100vw":S,srcSet:j.map(($,E)=>C({config:y,src:g,quality:_,width:$})+" "+(x==="w"?$:E+1)+x).join(", "),src:C({config:y,src:g,quality:_,width:j[I]})}}function m(h,y){let{src:g,sizes:v,unoptimized:A=!1,priority:_=!1,loading:S,className:C,quality:j,width:x,height:I,fill:$=!1,style:E,onLoad:N,onLoadingComplete:M,placeholder:B="empty",blurDataURL:R,fetchPriority:q,layout:F,objectFit:U,objectPosition:K,lazyBoundary:W,lazyRoot:z,...ne}=h;const{imgConf:w,showAltText:T,blurComplete:D,defaultLoader:X}=y;let te,Z=w||n.imageConfigDefault;if("allSizes"in Z)te=Z;else{const G=[...Z.deviceSizes,...Z.imageSizes].sort((Ce,Q)=>Ce-Q),ue=Z.deviceSizes.sort((Ce,Q)=>Ce-Q);te={...Z,allSizes:G,deviceSizes:ue}}let k=ne.loader||X;delete ne.loader,delete ne.srcSet;const J="__next_img_default"in k;if(J){if(te.loader==="custom")throw new Error('Image with src "'+g+`" is missing "loader" prop.
5
- Read more: https://nextjs.org/docs/messages/next-image-missing-loader`)}else{const G=k;k=ue=>{const{config:Ce,...Q}=ue;return G(Q)}}if(F){F==="fill"&&($=!0);const G={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},ue={responsive:"100vw",fill:"100vw"},Ce=G[F];Ce&&(E={...E,...Ce});const Q=ue[F];Q&&!v&&(v=Q)}let Y="",ee=p(x),L=p(I),O,re;if(c(g)){const G=i(g)?g.default:g;if(!G.src)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(G));if(!G.height||!G.width)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(G));if(O=G.blurWidth,re=G.blurHeight,R=R||G.blurDataURL,Y=G.src,!$){if(!ee&&!L)ee=G.width,L=G.height;else if(ee&&!L){const ue=ee/G.width;L=Math.round(G.height*ue)}else if(!ee&&L){const ue=L/G.height;ee=Math.round(G.width*ue)}}}g=typeof g=="string"?g:Y;let 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),_&&(q="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($){if(x)throw new Error('Image with src "'+g+'" has both "width" and "fill" properties. Only one should be used.');if(I)throw new Error('Image with src "'+g+'" has both "height" and "fill" properties. Only one should be used.');if(E!=null&&E.position&&E.position!=="absolute")throw new Error('Image with src "'+g+'" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.');if(E!=null&&E.width&&E.width!=="100%")throw new Error('Image with src "'+g+'" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.');if(E!=null&&E.height&&E.height!=="100%")throw new Error('Image with src "'+g+'" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.')}else{if(typeof ee>"u")throw new Error('Image with src "'+g+'" is missing required "width" property.');if(isNaN(ee))throw new Error('Image with src "'+g+'" has invalid "width" property. Expected a numeric value in pixels but received "'+x+'".');if(typeof L>"u")throw new Error('Image with src "'+g+'" is missing required "height" property.');if(isNaN(L))throw new Error('Image with src "'+g+'" has invalid "height" property. Expected a numeric value in pixels but received "'+I+'".')}if(!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(B!=="empty"&&B!=="blur"&&!B.startsWith("data:image/"))throw new Error('Image with src "'+g+'" has invalid "placeholder" property "'+B+'".');if(B!=="empty"&&ee&&L&&ee*L<1600&&(0,t.warnOnce)('Image with src "'+g+'" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'),B==="blur"&&!R){const G=["jpeg","png","webp","avif"];throw new Error('Image with src "'+g+`" has "placeholder='blur'" property but is missing the "blurDataURL" property.
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,f.useIntersection)({rootMargin:"200px"}),H=n.default.useCallback(ie=>{(O.current!==ee||L.current!==Y)&&(se(),O.current=ee,L.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||!M||g(te,Y,ee,{locale:K},{kind:J},Z))},[ee,Y,ue,K,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.');!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,q,F,U,K,Z,M))},onMouseEnter(ie){!w&&typeof z=="function"&&z(ie),w&&re.props&&typeof re.props.onMouseEnter=="function"&&re.props.onMouseEnter(ie),te&&((!M||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&&(!M&&Z||g(te,Y,ee,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))}};if((0,c.isAbsoluteUrl)(ee))he.href=ee;else if(!w||R||re.type==="a"&&!("href"in re.props)){const ie=typeof K<"u"?K:D==null?void 0:D.locale,me=(D==null?void 0:D.isLocaleDomain)&&(0,d.getDomainLocale)(ee,ie,D==null?void 0:D.locales,D==null?void 0:D.domainLocales);he.href=me||(0,m.addBasePath)((0,u.addLocale)(ee,ie,D==null?void 0:D.defaultLocale))}return w?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)})(Wn,Wn.exports);var Pd=Wn.exports,Id=Pd;const Pe=Wt(Id),go={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},yo=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=He(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=xe(),i=r.reduce((s,c)=>s+(c.quantity??0),0);return a.jsx(b.Header.SupportItem,{onClick:()=>{t(!0),n({content:"header:minicart"})},id:e,children:a.jsxs(b.Badge.AutoPositioner,{children:[a.jsx(b.Badge.Count,{count:i,size:"medium",variant:"primary",style:{backgroundColor:"black",display:i>0?"flex":"none"}}),a.jsx(b.Icon,{name:o.header.ICONS.bag,size:"medium"})]})})};yo.displayName="Header.Bag";const mt=({children:e,href:t,...r})=>t&&t!=="#"?a.jsx(Pe,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,yc=()=>{const{headerData:e}=xe(),{handleSelectContent:t}=ge(),{reset:r,updateValue:n}=qe(),o=i=>{i?n(i):r()};return a.jsx(b.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((i,s)=>a.jsx(mt,{href:i.link,onMouseEnter:()=>o(i.submenuId),onFocus:()=>o(i.submenuId),children:a.jsx(b.Header.CategoryItem,{className:go["btn-header"],value:i.submenuId??null,adornment:{start:a.jsx(b.Icon,{name:i.iconStart}),end:a.jsx(b.Icon,{name:i.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${i.label}`})},children:i.label})},`category-${i.label}-${s}`))})};yc.displayName="Header.Categories";function Nd({SearchModal:e}){const{handleSelectContent:t}=ge(),{CONSTANTS:r}=xe(),{setValue:n}=uo();return a.jsxs(a.Fragment,{children:[a.jsx(b.Header.SupportItem,{onClick:()=>{n(!0),t({content:"header:search"})},children:a.jsx(b.Icon,{name:r.header.ICONS.search,size:"medium"})}),a.jsx(e,{recommendations:!1,trends:!0})]})}const Od={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},Td={"observer-wrapper":"_observer-wrapper_r43gk_1"};function Md(e,t,r){const[n,o]=P.useState(!1),{threshold:i}=r||{};return P.useEffect(()=>{if(!e.current)return()=>null;let s=null;const c=new IntersectionObserver(([u])=>{if(r!=null&&r.delay){s&&clearTimeout(s),s=setTimeout(()=>{o(u.isIntersecting),t&&u.isIntersecting&&c.unobserve(e.current)},r.delay);return}o(u.isIntersecting),t&&u.isIntersecting&&c.unobserve(e.current)},{threshold:i||1});return c.observe(e.current),()=>{c.disconnect()}},[e]),n}const Kt=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:n,stopOnIntersection:o=!0,className:i,...s})=>{const c=P.useRef(null),u=Md(c,o,r),{sendDataLayerEvent:l}=ge();return P.useEffect(()=>{u&&(typeof n=="function"&&n(),t&&l({...t}))},[u]),a.jsx("div",{...s,ref:c,className:b.helpers.classNameConcat(Td["observer-wrapper"],i),children:e})},_o=({thumbnails:e,category:t,isMobile:r=!0,callBack:n})=>{const{handleSelectPromotionEvent:o}=ge(),i=50/e.length;return a.jsx("div",{className:Od["menu-subcategories-container"],children:e.map((s,c)=>{const u=r?s.srcMobile:s.srcDesk;if(!u)return null;const l={creative_name:"banner-menu",creative_slot:`banner-menu:${t}:${c+1}`,promotion_id:u,promotion_name:s.promotion_name};return a.jsx(Kt,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...l}}}},observerOptions:{delay:1e3},children:a.jsxs(Pe,{href:s.link??"#",onClick:()=>{typeof n=="function"&&n(),o({updatePromotionRef:!0,promotion:l})},children:[a.jsx(ke.Image,{src:u,alt:s.label??u,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${i}vw`}),s.label&&a.jsx("p",{children:s.label})]})},`thumb-${s.label}-${c}`)})})};_o.displayName="Menu.Thumbnail";const Gn={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},kd="_link_w24h0_1",Ld="_wrapper_w24h0_98",Dd="_text_w24h0_106",Er={link:kd,wrapper:Ld,text:Dd},rt=({children:e,adornments:t,className:r,disableUnderline:n,href:o,mode:i,size:s,title:c,onClick:u,disablePadding:l,...p})=>{const f=b.helpers.ValidateProp({fieldTypes:Ye.SizesSmallExtended,property:s,fallback:"medium"}),d=b.helpers.ValidateProp({fieldTypes:Ye.Mode,property:i,fallback:"default"});return a.jsx(Pe,{...p,className:b.helpers.classNameConcat(Er.link,r),href:o&&o.length>0?o:"#","data-size":f,"data-variant":d,title:c||"NextLink","data-disable-underline":n??!1,"data-disable-padding":l??!0,children:a.jsxs("div",{className:Er.wrapper,onClick:u,children:[t==null?void 0:t.start,a.jsx("p",{className:Er.text,"data-size":f,children:e}),t==null?void 0:t.end]})})},_c=({children:e,dividerOnRight:t=!0,subMenu:r,...n})=>{var u;const{router:o}=Me(),{reset:i}=qe(),{handleSelectContent:s}=ge(),{CONSTANTS:c}=xe();return a.jsxs("div",{...n,className:Gn["menu-categories"],children:[(u=r==null?void 0:r.subCategories)==null?void 0:u.map((l,p)=>{var m,h,y;const f=l.listCollapseDesk&&!((m=l.see_all)!=null&&m.link)?{expandAfterRowsQty:l.rowsToShowDesk}:{},d=l.listCollapseDesk&&!((h=l.see_all)!=null&&h.link)?{expansivesAdornments:{open:c.header.ICONS.add,close:c.header.ICONS.minus},expansivesLabels:{open:c.header.COMPONENT_LIST.listExpandLabel,close:c.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:a.jsx(b.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return a.jsxs(b.ComponentList.Structure,{children:[a.jsx(mt,{href:l.linkLabel,title:l.label,onClick:()=>{l.linkLabel&&(i(),s({content:`menu:${l.label??""}:${r.label??""}`}))},children:a.jsx(b.TextStructure.Root,{children:a.jsx(b.TextStructure.DivWrapper,{children:a.jsx("h2",{children:l.label})})})}),a.jsx(b.ComponentList.List,{columns:1,...f,className:Gn["submenu-categories"],children:l.items.map((g,v)=>a.jsx(b.ComponentList.ListItem,{id:`list-item-${g.label}-${v}`,children:a.jsx(rt,{href:g.link??"#",size:"x-small",title:g.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{i(),s({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)&&a.jsx(b.ComponentList.Support,{...d,size:"small",onClick:()=>{var g;(g=l.see_all)!=null&&g.link&&(i(),s({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&&a.jsx(b.Utils.Divider,{size:"small",direction:"vertical"})]})};_c.displayName="Menu.Categories";var Vn={exports:{}};function $d(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 Rr={},wr={},pi;function Bd(){return pi||(pi=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return n}});const n=Re._(P).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="LoadableContext")}(wr)),wr}var mi;function qd(){return mi||(mi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return m}});const r=Re._(P),n=Bd();function o(h){return h&&h.default?h.default:h}const i=[],s=[];let c=!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),!c&&typeof window<"u"){const C=g.webpack&&typeof $d.resolveWeak=="function"?g.webpack():g.modules;C&&s.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 f(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)})}f.preloadAll=()=>new Promise((h,y)=>{d(i).then(h,y)}),f.preloadReady=h=>(h===void 0&&(h=[]),new Promise(y=>{const g=()=>(c=!0,y());d(s,h).then(g,g)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=f.preloadReady);const m=f}(Rr)),Rr}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(p,f){for(var d in f)Object.defineProperty(p,d,{enumerable:!0,get:f[d]})}r(t,{noSSR:function(){return u},default:function(){return l}});const n=Re,o=n._(P),i=n._(qd()),s=typeof window>"u";function c(p){return{default:(p==null?void 0:p.default)||p}}function u(p,f){if(delete f.webpack,delete f.modules,!s)return p(f);const d=f.loading;return()=>o.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function l(p,f){let d=i.default,m={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?m.loader=()=>p:typeof p=="function"?m.loader=p:typeof p=="object"&&(m={...m,...p}),m={...m,...f};const h=m.loader,y=()=>h!=null?h().then(c):Promise.resolve(c(()=>null));return m.loadableGenerated&&(m={...m,...m.loadableGenerated},delete m.loadableGenerated),typeof m.ssr=="boolean"&&!m.ssr?(delete m.webpack,delete m.modules,u(d,m)):d({...m,loader:y})}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Vn,Vn.exports);var Hd=Vn.exports,zd=Hd;const vo=Wt(zd),vc=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:n}=xe();return a.jsxs(a.Fragment,{children:[a.jsx("div",{...r,className:Gn["menu-desktop"],style:{...r.style,justifyContent:n.header.ALIGNMENT_MENU},children:e}),t&&a.jsx(b.Utils.Divider,{size:"small"})]})};vc.displayName="Menu.MenuRoot";const Fd=vo(()=>Promise.resolve(vc),{ssr:!1}),jr={Root:Fd,Categories:_c,Thumbnail:_o},bc=()=>{const{headerData:e,CONSTANTS:t}=xe(),r=Ft(),{reset:n}=qe();return a.jsx(b.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((o,i)=>{const{thumbnails:s,label:c,id:u}=o,l=u===r,p=s==null?void 0:s.some(f=>!!f.srcDesk);return a.jsxs(jr.Root,{id:u,style:l?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:l,children:[a.jsx(jr.Categories,{dividerOnRight:!!p,subMenu:o}),Array.isArray(s)&&a.jsx(jr.Thumbnail,{thumbnails:s,isMobile:!1,category:c,callBack:n})]},`submenu-${u}-${i}`)})})};bc.displayName="Header.SubMenu";const xc=()=>{const{handleSelectContent:e}=ge(),{CONSTANTS:t}=xe();return a.jsx(Pe,{href:"/favoritos",children:a.jsx(b.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:a.jsx(b.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};xc.displayName="Header.WishList";const Cc=({UserMenu:e,SearchModal:t})=>{const r=P.useRef(null),{CONSTANTS:n}=xe(),{handleSelectContent:o}=ge(),{reset:i}=qe(),{setValue:s}=Ut();return a.jsxs(a.Fragment,{children:[a.jsxs(b.Header.Wrapper,{children:[a.jsx(b.Header.Logo,{style:{width:"100%"},children:a.jsx(Pe,{href:"/",onMouseEnter:i,children:a.jsx(b.Icon,{name:n.header.ICONS.logo,size:"x-large",onClick:()=>{o({content:"header:logo"})}})})}),a.jsx(yc,{}),a.jsxs(b.Header.Support,{onMouseEnter:i,style:{justifyContent:"flex-end"},children:[a.jsx(Nd,{SearchModal:t}),a.jsx(e,{target:r.current,children:a.jsx(b.Header.SupportItem,{onClick:()=>{s(!0),o({content:"header:user_menu"})},className:go["btn-login"],innerRef:r,children:a.jsx(b.Icon,{name:n.header.ICONS.person,size:"medium"})})}),a.jsx(xc,{}),a.jsx(yo,{id:"cart-button"})]})]}),a.jsx(bc,{})]})};Cc.displayName="Header.HeaderDesktopWrapper";const Ud="_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:Ud,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},Sc=({children:e,mobileBannerAlt:t,mobileBannerSrc:r,onClick:n,textColor:o,...i})=>a.jsx("button",{onClick:n,className:_e["menu-categories-btn"],children:r?a.jsxs(b.Banner.Container,{...i,className:_e["menu-body-banner-container-modifier"],children:[a.jsx(b.Banner.ImageWrapper,{style:{width:"100%"},children:a.jsx(ke.Image,{src:r,alt:t??r,className:_e["menu-categories__banner"],width:343,height:128,unoptimized:!0})}),a.jsx(b.Banner.Slot,{verticalAlignment:"center",horizontalAlignment:"start",children:a.jsx(b.TextStructure.Root,{children:a.jsx(b.TextStructure.DivWrapper,{className:_e["menu-categories-textstructure-modifier"],children:a.jsx("h2",{className:"typography-style-body-xs",style:o?{color:o}:{},children:e})})})})]}):a.jsx("h2",{...i,children:e})});Sc.displayName="Menu.MenuCategories";const Ac=({children:e,link:t})=>{const{reset:r}=Ge();return t?a.jsx(Pe,{href:t??"#",onClick:r,children:e}):e};Ac.displayName="Menu.MenuCategoriesWrapper";const Ec=({subcategory:e,submenuLabel:t})=>{var u,l,p;const{router:r}=Me(),{reset:n}=Ge(),{handleSelectContent:o}=ge(),{CONSTANTS:i}=xe(),s=e.listCollapseMobile&&!((u=e.see_all)!=null&&u.link)?{expandAfterRowsQty:e.rowsToShowMobile}:{},c=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:a.jsx(b.Icon,{name:i.header.ICONS.arrow_right,size:"small"})}};return a.jsxs(b.ComponentList.Structure,{className:_e["menu-submenu--component-list-modifier"],children:[a.jsx(mt,{href:e.linkLabel,title:e.label,onClick:()=>{n(),o({content:`menu:${e.label??""}:${t}`})},children:a.jsx(b.TextStructure.Root,{children:a.jsx(b.TextStructure.DivWrapper,{children:a.jsx("h2",{className:"typography-style-body-sm-strong",children:e.label})})})}),a.jsx(b.ComponentList.List,{columns:1,...s,className:_e["submenu-categories"],children:e.items.map((f,d)=>a.jsx(b.ComponentList.ListItem,{id:`list-item-${f.label}-${d}`,divider:!0,children:a.jsx(rt,{href:f.link??"#",size:"x-small",title:f.label??"",disableUnderline:!0,onClick:()=>{n(),o({content:`menu:${e.label??""}:${f.label}:${t}`})},children:f.label})},`list-item-${f.label}-${d}`))}),((p=e.see_all)==null?void 0:p.link)&&a.jsx(b.ComponentList.Support,{...c,size:"small",onClick:()=>{var f;n(),o({content:`menu:${e.label??""}:${t}`}),(f=e.see_all)!=null&&f.link&&r.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};Ec.displayName="Menu.SubMenuSubCategory";const Rc=({submenu:e})=>{var i;const t=Ft(),{handleCloseSubMenu:r}=pt(),{reset:n}=qe(),{CONSTANTS:o}=xe();return a.jsxs("div",{className:_e["menu-submenu--item"],style:{display:t===e.id?"flex":"none"},children:[a.jsx(b.TextStructure.Root,{adornment:{start:a.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&&a.jsx(b.TextStructure.DivWrapper,{style:{position:"absolute",left:"50%",transform:"translate(-50%)"},children:a.jsx("h2",{className:"typography-style-body-md-strong",children:e.label})})}),a.jsx("div",{className:_e["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&a.jsx(_o,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:n})}),(i=e==null?void 0:e.subCategories)==null?void 0:i.map((s,c)=>a.jsx(Ec,{subcategory:s,submenuLabel:e.label},`list-${s.label}-${c}`))]})};Rc.displayName="Menu.SubMenuItem";const wc=()=>{const{headerData:e}=xe(),t=Ft(),{reset:r}=qe(),{bodyRef:n}=pt();return a.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:a.jsx("div",{className:_e["menu-submenu"],children:e.subMenus.map((o,i)=>a.jsx(Rc,{submenu:o},`submenu-${o.id}-${i}`))})})};wc.displayName="Menu.SubMenu";const jc=({className:e,...t})=>{const{headerData:r}=xe(),{setValue:n}=qe(),{bodyRef:o}=pt(),{handleSelectContent:i}=ge();return a.jsxs("div",{...t,ref:o,id:"menu-body",className:_e["menu-body"],children:[a.jsx("div",{className:_e["menu-categories-container"],children:r.categories.map((s,c)=>{const u=s.submenuId?{}:{"data-close":!0};return a.jsx(Ac,{link:s.submenuId?null:s.link,children:a.jsx(Sc,{onClick:()=>{n(s.submenuId??null),i({content:`menu:${s.label}`})},mobileBannerSrc:s.mobileBannerSrc,mobileBannerAlt:s.mobileBannerAlt,textColor:s.textColor,...u,children:s.mobileBannerAlt})},`menu-categories-${c}`)})}),a.jsx(wc,{})]})};jc.displayName="Menu.MenuBody";const Pc=({title:e,subtitle:t})=>{const{CONSTANTS:r}=xe();return a.jsxs("div",{className:_e["menu-header-wrapper"],style:t?{alignItems:"start"}:{alignItems:"center"},children:[(e||t)&&a.jsx(b.TextStructure.Root,{children:a.jsxs(b.TextStructure.DivWrapper,{children:[e&&a.jsx("h2",{className:"typography-style-body-md",children:e}),t&&a.jsx("h3",{children:t})]})}),a.jsx(b.Button,{adornment:{end:a.jsx(b.Icon,{name:r.header.ICONS.close})},variant:"tertiary",className:_e["menu-close"],"data-close":!0})]})};Pc.displayName="Menu.MenuHeaderWrapper";const Ic=({navigationLinks:e})=>{const{reset:t}=Ge(),{handleSelectContent:r}=ge();return e?a.jsx("nav",{className:_e["menu-header-navlinks"],children:e.map((n,o)=>a.jsx(rt,{href:n.link??"#",adornments:{start:n.iconStart&&a.jsx(b.Icon,{name:n.iconStart}),end:n.iconEnd&&a.jsx(b.Icon,{name:n.iconEnd})},onClick:()=>{t(),r({content:`menu:navigationlinks-${n.label}`})},children:n.label},o))}):null};Ic.displayName="Menu.MenuHeaderNavLinks";const Nc=()=>{const{headerData:e}=xe();return a.jsxs("div",{className:_e["menu-header-container"],children:[a.jsx(Pc,{title:e.title,subtitle:e.subtitle}),a.jsx(Ic,{navigationLinks:e.navigationLinks})]})};Nc.displayName="Menu.MenuHeaderContainer";const Oc=({children:e})=>{const{documentBodyRef:t}=pt(),{CONSTANTS:r}=xe(),n=co(),{setValue:o}=Ge();return a.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:a.jsx("div",{className:_e["menu-mobile"],children:e})})};Oc.displayName="Menu.MenuRoot";const Wd=vo(()=>Promise.resolve(Oc),{ssr:!1}),Bt=({children:e,...t})=>a.jsxs(a.Fragment,{children:[a.jsx(b.Button,{...t,className:_e["menu-navigationbar-item"],children:e}),a.jsx(b.Utils.Divider,{direction:"vertical",size:"small",className:_e.divider})]});Bt.displayName="Menu.NavigationBarItem";const Tc=()=>{const{setIsOpen:e}=He(),{reset:t}=Ge(),{setValue:r}=Ut(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=xe(),{router:i}=Me();return a.jsxs(b.Card,{id:"menu-navigationbar",shadow:!0,className:_e["menu-navigationbar"],style:{zIndex:o.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:[a.jsx(Bt,{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}),a.jsx(Bt,{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}),a.jsx(Bt,{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})]})};Tc.displayName="Menu.NavigationBar";const Tt={Root:Wd,NavigationBar:Tc,Header:Nc,Body:jc},Mc=({UserMenu:e,SearchModal:t})=>{const r=P.useRef(null),n=P.useRef(null),{CONSTANTS:o}=xe(),{MENU_NAVIGATION_BAR_ALLOWED:i,ICONS:s,MENU_MOB_BTN_SIDE:c="right"}=o.header,{handleSelectContent:u}=ge(),{setValue:l}=uo(),{setValue:p}=Ge(),{setValue:f}=Ut();return a.jsxs(a.Fragment,{children:[a.jsxs(b.Header.Wrapper,{children:[c==="left"&&a.jsx(b.Header.SupportItem,{onClick:()=>p(!0),innerRef:r,children:a.jsx(b.Icon,{name:s.menu,size:"medium"})}),a.jsx(b.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:a.jsx(Pe,{href:"/",children:a.jsx(b.Icon,{name:s.logo,size:"x-large",onClick:()=>{u({content:"header:logo"})}})})}),a.jsxs(b.Header.Support,{children:[a.jsx(b.Header.SupportItem,{onClick:()=>{l(!0),u({content:"header:search"})},children:a.jsx(b.Icon,{name:s.search,size:"medium"})}),a.jsx(b.Header.SupportItem,{onClick:()=>{f(!0),u({content:"header:user_menu"})},innerRef:n,children:a.jsx(b.Icon,{name:s.person,size:"medium"})}),a.jsx(yo,{}),c==="right"&&a.jsx(b.Header.SupportItem,{onClick:()=>p(!0),innerRef:r,children:a.jsx(b.Icon,{name:s.menu,size:"medium"})})]})]}),a.jsx(t,{recommendations:!1,trends:!0}),a.jsx(ks,{children:a.jsx(e,{target:n==null?void 0:n.current,children:a.jsxs(Tt.Root,{children:[a.jsx(Tt.Header,{}),a.jsx(Tt.Body,{}),i?a.jsx(Tt.NavigationBar,{}):a.jsx(a.Fragment,{})]})})})]})};Mc.displayName="Header.HeaderMobileWrapper";const kc=({tipBar:e,miniCart:t,UserMenu:r,SearchModal:n})=>{const{structureRef:o,rootRef:i,CONSTANTS:s}=xe(),{header:{HEADER_CONFIGS:c,Z_INDEX_WAR:u}}=s;return a.jsx(b.Header.Structure,{innerRef:o,adornment:{start:e},style:{position:"sticky",top:0,zIndex:u.header},className:go["header-animation"],children:a.jsxs(b.Header.Root,{innerRef:i,style:{zIndex:u.header},variant:c.default_variant,interactiveVariant:c.interactive_variant,children:[a.jsx("div",{className:Ue.responsive["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:u.header_mobile},children:a.jsx(Mc,{UserMenu:r,SearchModal:n})}),a.jsx("div",{className:Ue.responsive["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:u.header_desktop},children:a.jsx(Cc,{UserMenu:r,SearchModal:n})}),t,a.jsx(mo,{title:"Produto adicionado à sua sacola!",CONSTANTS:s.addToCart})]})})};kc.displayName="Header";const Gd="_shippingFreight_6z8rf_6",Vd="_shippingFreight__postalCodeGrid_6z8rf_10",Kd="_shippingFreight__grid_6z8rf_14",Xd="_shippingFreight__grid__title_6z8rf_18",Qd="_shippingFreight__grid__remember_6z8rf_29",Yd="_postalCodeContainer_6z8rf_44",Zd="_deliveryStatusBar__tag_6z8rf_49",Jd="_deliveryStatusBarError__tag_6z8rf_66",ef="_deliveryInfo_6z8rf_74",tf="_deliveryInfo__content_6z8rf_78",rf="_deliveryInfo__text_6z8rf_84",nf="_deliveryInfo__title_6z8rf_89",of="_deliveryInfo__subtitle_6z8rf_99",af="_deliveryInfo__tooltipIcon_6z8rf_109",sf="_deliveryInfo__tooltip_6z8rf_109",cf="_freightGrid_6z8rf_148",uf="_freightContainer_6z8rf_155",lf="_freightOption__content_6z8rf_160",df="_freightOption__value_6z8rf_166",ff="_freightOption__title_6z8rf_177",pf="_freightOption__title_item_6z8rf_181",mf="_freightOption__paragraph_6z8rf_192",fe={shippingFreight:Gd,shippingFreight__postalCodeGrid:Vd,shippingFreight__grid:Kd,shippingFreight__grid__title:Xd,shippingFreight__grid__remember:Qd,postalCodeContainer:Yd,deliveryStatusBar__tag:Zd,deliveryStatusBarError__tag:Jd,deliveryInfo:ef,deliveryInfo__content:tf,deliveryInfo__text:rf,deliveryInfo__title:nf,deliveryInfo__subtitle:of,deliveryInfo__tooltipIcon:af,deliveryInfo__tooltip:sf,freightGrid:cf,freightContainer:uf,freightOption__content:lf,freightOption__value:df,freightOption__title:ff,freightOption__title_item:pf,freightOption__paragraph:mf,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},hf=({icon:e,title:t,subtitle:r,packageCount:n,packageUnit:o="",labelDescription:i,freightConfig:s,toolTipZIndex:c})=>{const[u,l]=P.useState(!1),p=P.useRef(null),f=()=>l(d=>!d);return a.jsxs("div",{className:fe.deliveryInfo,ref:p,children:[a.jsx(b.Tooltip.Root,{arrow:"bottom",component:a.jsx("div",{children:a.jsx("p",{children:s.messages.select_size_tag})}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:p.current}),a.jsxs("div",{className:fe.deliveryInfo__content,children:[a.jsx("div",{className:fe.deliveryInfo__icon,children:a.jsx(b.Icon,{name:e,size:"medium"})}),a.jsxs("div",{className:fe.deliveryInfo__text,children:[a.jsxs("span",{className:fe.deliveryInfo__title,children:[t," ",n," ",o]}),r&&a.jsx("span",{className:fe.deliveryInfo__subtitle,children:r})]}),i&&a.jsxs("div",{className:fe.deliveryInfo__tooltipIcon,onMouseEnter:f,onMouseLeave:f,"aria-label":"Mostrar descrição",children:[a.jsx("span",{children:a.jsx(b.Icon,{name:s.icons.feedback_help,size:"small"})}),u&&a.jsx("div",{className:fe.deliveryInfo__tooltip,children:i})]})]})]})},gf=({value:e,title:t,paragraph:r})=>a.jsx("div",{className:fe.freightOption,children:a.jsxs("div",{className:fe.freightOption__content,children:[a.jsx("span",{className:fe.freightOption__value,children:e}),a.jsx("span",{className:fe.freightOption__title,children:a.jsx(b.TextStructure.Root,{children:a.jsxs(b.TextStructure.DivWrapper,{className:fe.footer__item,children:[a.jsx("span",{className:fe.freightOption__title_item,children:t}),r&&a.jsx("span",{className:fe.freightOption__paragraph,children:r})]})})})]})}),yf=({children:e})=>a.jsx("div",{className:fe.freightContainer,children:e}),_f=({children:e})=>a.jsx("div",{className:fe.freightGrid,children:e}),vf=({children:e})=>a.jsx("div",{className:fe.postalCodeContainer,children:e}),hi=({message:e,seller:t="",size:r="small",setError:n})=>a.jsx("div",{className:n?fe.deliveryStatusBarError:fe.deliveryStatusBar,children:a.jsxs(b.Tag,{title:e,className:n?fe.deliveryStatusBarError__tag:fe.deliveryStatusBar__tag,size:r,children:[e," ",!n&&t]})}),bf=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},xf=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},Cf=({component:e,parent:t,top:r,left:n,target:o,contentRef:i,freightConfig:s,toolTipZIndex:c=999,...u})=>{const{isMobile:l}=Ie();return a.jsx(a.Fragment,{children:l?a.jsx(b.Tooltip.Root,{arrow:"bottom",component:a.jsxs("div",{...u,ref:i,children:[e,a.jsx("p",{children:s.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:t}):a.jsx(b.Tooltip.Root,{arrow:"bottom",component:a.jsxs("div",{...u,ref:i,children:[e,a.jsx("p",{children:s.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:t})})},Sf=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:n,quantity:o,setError:i,setIsButtonClicked:s,component:c,freightConfig:u,toolTipZIndex:l})=>{var N,k,B,R;const p=Ze(),f=Ze(q=>q.shipping),[d,m]=P.useState(),[h,y]=P.useState(!1),[g,v]=P.useState(!1),[A,_]=P.useState(!1),S=(k=(N=p.shippingData)==null?void 0:N.address)==null?void 0:k.postalCode,C=!(d!=null&&d.length)&&S?S:d,j=P.useRef(null),x=async q=>{const U=q.target.value.replace(/\D/g,"").slice(0,8);U.length>5?m(U.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):m(U)},I=async q=>{const F=q.target.value.replace(/\D/g,"");try{if((await Ro.get(`https://viacep.com.br/ws/${F}/json/`)).data.erro){i&&i(u.messages.cep_not_found),s(!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 Ro.post("/api/checkout/simulation",{items:[{id:n,quantity:o,seller:t}],country:"BRA",postalCode:C});e(xf(q.data))}catch(q){console.error("Erro ao atualizar o documento:",q)}finally{y(!1),f(C,"BRA")}},E=async()=>{if(!n){_(!0),setTimeout(()=>_(!1),1500);return}await I({target:{value:C}}),h||($(),s(!0))};return a.jsxs("div",{ref:j,style:{position:"relative"},children:[!n&&A?a.jsx(Cf,{component:c,isOpen:A,parent:j.current,toolTipZIndex:l,freightConfig:u}):a.jsx(a.Fragment,{}),a.jsx("div",{style:{position:"relative"},children:a.jsx(b.TextField.Structure,{title:"structure",style:{width:"100%"},input:a.jsx(b.TextField.Input,{defaultValue:(R=(B=p.shippingData)==null?void 0:B.address)==null?void 0:R.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"&&E()},className:fe["input-modifier"],feedback:g?"error":"none"}),right:a.jsx(b.Button,{onClick:E,size:r,title:"button",children:h?a.jsx(b.Spinner,{size:"small",indicatorColor:"#ffffff"}):u.messages.text_input_btn})})})]})},Af=({children:e,freightConfig:t})=>a.jsxs("div",{className:fe.shippingFreight,children:[a.jsxs("div",{className:fe.shippingFreight__grid,children:[a.jsx("span",{className:fe.shippingFreight__grid__title,children:t.messages.title}),a.jsx("span",{className:fe.shippingFreight__grid__remember,children:a.jsx(rt,{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})})]}),a.jsx("div",{className:fe.shippingFreight__postalCodeGrid,children:e})]}),Ef=({children:e})=>a.jsx("div",{className:fe.freightContainer,children:e}),Rf=({className:e,sellerId:t,skuId:r,quantity:n,size:o,seller:i,local:s,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:u}=ge(),[l,p]=P.useState(""),[f,d]=P.useState([]),[m,h]=P.useState(""),[y,g]=P.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:c.currency||"BRL"}))}}})};return a.jsxs(Ef,{className:e,children:[a.jsxs(Af,{freightConfig:c.freightConfig,children:[a.jsx(vf,{children:a.jsx(Sf,{onUpdateFreightItems:A,skuId:r,quantity:n,size:o,sellerId:t,local:s,setError:h,setIsButtonClicked:g,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),m?a.jsx(hi,{size:o,message:m,setError:h}):f.length>0&&a.jsx(hi,{size:o,message:c.freightConfig.messages.delivered_by,seller:i})]}),y&&!m?f.length>0&&a.jsxs(yf,{children:[a.jsx(_f,{children:f.filter(({id:_})=>!_.includes("Retirada")).map(_=>a.jsx(gf,{id:_.id,value:no({valueInCents:_.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:_.name,paragraph:`${c.freightConfig.messages.prefix_days}${bf(_.shippingEstimate)}`,radioValue:l,changeValue:v},_.id))}),c.deliveryInfoBoxesAllowed?a.jsx(hf,{icon:c.freightConfig.icons.delivery_truck,packageUnit:c.freightConfig.messages.unit_amout,title:c.freightConfig.messages.delivered_amount_packages,subtitle:"",packageCount:1,labelDescription:"Label",freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex??999}):a.jsx(a.Fragment,{})]}):null]})},Lc=P.createContext({}),wf=({children:e,item:t,index:r,shelfTitle:n,...o})=>{const[i,s]=P.useState(null),c=P.useRef(null),u=P.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:l,itemListRef:p}=ge(),f=y=>{l({functionKey:"productEvents",data:{commonData:{...t,availableSizes:u.current.availableSkus,...u.current.priceInfo},customData:{index:r+1},event:y}})},d=()=>{f("add_to_wishlist")},m=()=>{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}),f("select_item")};return a.jsx(Lc.Provider,{value:P.useMemo(()=>({...o,index:r,item:t,element:c,selectedSku:i,setSelectedSku:s,eventDataRef:u,sendAddToWishlistEvent:d,sendSelectItemEvent:h,sendAddToCartEvent:m}),[o,t,c,i]),children:e})},Oe=()=>{const e=P.useContext(Lc);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"},Dc=({callback:e,children:t,className:r,data:n,isKit:o,...i})=>{const{item:{availability:{status:s},image:c}}=Oe();return s?a.jsxs("div",{...i,className:b.helpers.classNameConcat(Se["product-card--actions"],r),children:[a.jsxs(we.Wrapper,{type:"actions--group",children:[a.jsx(we.Price,{}),a.jsx("div",{className:Se["product-card--actions--selectors"],children:!o&&a.jsx(we.StyleSelector,{data:n,images:c,callback:e})})]}),t]}):null};Dc.displayName="ProductCard.Actions";const $c=({className:e,isKit:t,...r})=>{const{addToCart:n}=He(),{isMobile:o=!1,selectedSku:i,outStock:s,item:c,sendAddToCartEvent:u,CONSTANTS:l}=Oe(),p=()=>{var m;if(!i)return;const d=io(i.offers.offers,l.StoreConfig_MainSellerId);d&&n({id:i==null?void 0:i.sku,quantity:1,seller:d.seller.identifier},{id:c.id,texture:(m=c==null?void 0:c.image.find(h=>l.TEXTURE_IMAGE.includes(h.alternateName)))==null?void 0:m.url}),u()},f=i?l.BUY_BUTTON_LABELS.add_to_cart:l.BUY_BUTTON_LABELS.select_size;return a.jsx(b.Button,{...r,className:b.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!i&&!s,size:o?"medium":"large",variant:s?"secondary":"primary",onClick:s?r.onClick:p,children:s?"Avise-me quando chegar":f})};$c.displayName="ProductCard.Actions.BuyButton";const Bc=({product:e,tag:t,size:r="small"})=>{const n=e.offers.offers[0],{CONSTANTS:o,WishListToggle:i}=Oe();return a.jsxs(we.Wrapper,{type:"header",style:{zIndex:o.Z_INDEX_WAR.product_card_header},children:[t?a.jsx(b.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?a.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&&a.jsx(i,{product:e,priceInfo:{price:n.price,listPrice:n.listPrice},variant:"card"})]})};Bc.displayName="ProductCard.Actions.Header";const qc=({className:e,children:t,hasPriority:r=!1,showVideo:n=!1,...o})=>{const{element:i,index:s,item:{image:c,slug:u,video:l},sendSelectItemEvent:p,order:f,CONSTANTS:d}=Oe(),m=Ga({images:c,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return a.jsxs("div",{...o,className:b.helpers.classNameConcat(Se["product-card--image"],e),ref:i,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[a.jsx(Pe,{href:`/${u}/p`,onClick:p,onMouseUp:h=>{h.button===1&&p(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(f))},children:a.jsx("div",{className:Se["product-card--image--container"],children:Array.isArray(m)&&m.map(({url:h,alternateName:y},g)=>P.createElement(ke.Image,{...d.PRODUCT_IMAGE_DIMENSIONS.product_card,style:d.PRODUCT_IMAGE_DIMENSIONS.product_card,alt:y??"product image",key:g,...r&&{priority:g===0&&s<4},objectFit:"cover",src:h}))})}),d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&n&&l&&a.jsx(we.Video,{url:l,poster:m[0].url}),t]})};qc.displayName="ProductCard.Media.Media";const Hc=({className:e,callback:t,children:r,...n})=>{const{isMobile:o,item:i,CONSTANTS:{PRODUCT_CARD_TEXTS:s}}=Oe(),{availability:{status:c}}=i;return c?null:a.jsxs("div",{...n,className:b.helpers.classNameConcat(Se["product-card--outstock"],e),children:[a.jsx(b.Tag,{size:"small",variant:"secondary",title:s.disabled,children:s.disabled}),a.jsx(b.Button,{className:b.helpers.classNameConcat(e,"buy-button"),size:o?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(i)},children:s.notify})]})};Hc.displayName="ProductCard.OutStock";const zc=({children:e,className:t="",index:r,isMobile:n=!1,item:o,size:i,order:s,outStock:c,shelfTitle:u,CONSTANTS:l,WishListToggle:p,...f})=>a.jsx(wf,{item:o,isMobile:n,outStock:c,order:s,size:i,index:r,shelfTitle:u,CONSTANTS:l,WishListToggle:p,children:a.jsx("div",{...f,className:b.helpers.classNameConcat(Se["product-card--wrapper"],t),"data-size":i,children:e})});zc.displayName="ProductCard.Root";const Fc=({disabled:e,label:t,size:r,value:n,onClick:o,...i})=>a.jsxs(b.ToggleSize.Wrapper,{...i,disabled:!1,outOfStock:e,size:r,onClick:o,children:[a.jsx(b.ToggleSize.DisabledAdornment,{}),a.jsx(b.ToggleSize.Text,{children:t})]});Fc.displayName="ProductCard.SizeSelector.Item";const Uc=({active:e=!1,callback:t,selectedSku:r=null,item:n,setNotify:o})=>{const{item:i,isMobile:s,setSelectedSku:c,eventDataRef:u}=Oe();n.productId=i.id;const l=za(n),p=qa(n,"tamanho");!l&&!u.current.availableSkus.includes(p)&&u.current.availableSkus.push(p);const f=P.useCallback(m=>{const h=r===m?null:m;typeof c=="function"&&c(h),typeof t=="function"&&t(h)},[t,c,r]),d=P.useCallback(()=>{if(l&&typeof o=="function"){o(i,n);return}f(n)},[n,o,f,l,i]);return a.jsx(Fc,{active:e,disabled:l,label:p,onClick:()=>d(),size:s?"x-small":"small",value:n})};Uc.displayName="ProductCard.SizeSelector.SkuItem";const Wc=({callback:e,className:t="",children:r,setNotify:n,...o})=>{const{isMobile:i,item:{isVariantOf:{hasVariant:s}},selectedSku:c}=Oe();return a.jsxs("div",{...o,className:b.helpers.classNameConcat(Se["product-card--selectors--size"],t),"data-mobile":i,children:[a.jsx("div",{className:Se["product-card--selectors--size--skus"],children:Array.isArray(s)&&s.map((u,l)=>a.jsx(Uc,{active:c===u,callback:e,item:u,selectedSku:c,setNotify:n},`size--${l}--${u.sku}`))}),a.jsx("div",{className:Se["product-card--selectors--size--button"],children:r})]})};Wc.displayName="ProductCard.SizeSelector";const Kn=({alt:e="",callback:t,more:r,total:n=4,src:o,url:i,...s})=>a.jsxs(b.ToggleStyle.Wrapper,{...s,onClick:()=>{typeof t=="function"&&t(i)},children:[a.jsx(b.ToggleStyle.DisabledAdornment,{}),a.jsxs(b.ToggleStyle.Texture,{children:[o&&a.jsx(ke.Image,{alt:e??o,src:o,height:34,width:34}),r&&a.jsx(b.TextStructure.DivWrapper,{className:Se["product-card--selectors--style--more"],children:a.jsxs("p",{children:["+ ",n]})})]})]}),jf=({children:e,callback:t,data:r,total:n=4,size:o,...i})=>{const{index:s}=Oe(),{triggerSelectItemEventRef:c}=ge();return a.jsxs("div",{...i,children:[e,Array.isArray(r)&&r.slice(0,n).map((u,l)=>a.jsx(Kn,{callback:p=>{c.current.trigger=!0,c.current.index=s,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&&a.jsx(Kn,{size:o,total:r.length-n,more:!0})]})},Gc=({callback:e,className:t,data:r,images:n=[],findTexture:o,...i})=>{const{CONSTANTS:s}=Oe(),c=o||s.TEXTURE_IMAGE,u=n==null?void 0:n.find(l=>c.includes(l.alternateName));return a.jsx(jf,{...i,callback:e,className:b.helpers.classNameConcat(Se["product-card--selectors--style"],t),data:r,size:"x-small",children:u&&a.jsx(Kn,{active:!0,size:"x-small",src:u.url})})};Gc.displayName="ProductCard.StyleSelector";const Vc=({className:e,hasDecimal:t,...r})=>{const{isMobile:n,item:{offers:{lowPrice:o,highPrice:i},installments:{count:s,value:c}},eventDataRef:u}=Oe();u.current.priceInfo={price:o,listPrice:i};const l=Le(i,t),p=Le(o,t),f=Le(c??0),d=n?"horizontal":"stacked";return a.jsx("div",{...r,className:b.helpers.classNameConcat(Se["product-card--price"],e),"data-mobile":n,children:a.jsx(b.ProductInfo.Root,{size:"small",layout:d,children:a.jsxs(b.ProductInfo.Wrapper,{size:"small",layout:d,children:[a.jsx(b.ProductInfo.ValuesWrapper,{children:p!==l?a.jsxs(a.Fragment,{children:[a.jsx(b.ProductInfo.Price,{label:"originalPrice",value:l,size:"small"}),a.jsx(b.ProductInfo.Price,{label:"discountPrice",value:p,size:"small"})]}):a.jsx(b.ProductInfo.Price,{label:"defaultPrice",value:p,size:"small"})}),s&&s>1&&c?a.jsx(b.ProductInfo.Price,{label:"installment",value:`${s}x ${f}`,size:"small"}):null]})})})};Vc.displayName="ProductCard.Price";const Kc=({tag:e,className:t})=>{const{item:{name:r}}=Oe();return a.jsxs("div",{className:b.helpers.classNameConcat(Se["product-card--title"],t),children:[a.jsx("div",{className:Se["product-card--title--tag"],children:e?a.jsx(b.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?a.jsx(b.Icon,{name:e.icon,style:{color:e.iconColor}}):null},style:{background:e.tagColor,color:e.textColor},children:e.value}):a.jsx("div",{})}),a.jsx("div",{className:Se["product-card--title--content"],children:r&&a.jsx(b.TextStructure.Root,{children:a.jsx(b.TextStructure.DivWrapper,{children:a.jsx("h3",{children:r})})})})]})};Kc.displayName="ProductCard.Title";const Xc=({className:e,url:t,poster:r,...n})=>{const{element:o}=Oe();return P.useEffect(()=>{if(!(o!=null&&o.current))return;const i=o.current,s=i.querySelector("video");if(s){const c=new IntersectionObserver(p=>{p.forEach(f=>{Va(f.isIntersecting,s,t)})},{root:null,rootMargin:"0px",threshold:.5}),u=()=>{s.setAttribute("data-loaded","true")},l=()=>{i&&(c.observe(i),s.addEventListener("loadeddata",u))};return document.readyState==="complete"?l():window.addEventListener("load",l),()=>{c.disconnect(),window.removeEventListener("load",l)}}return()=>null},[t,o]),a.jsx("div",{...n,className:b.helpers.classNameConcat(Se["product-card--video"],e),children:t&&a.jsx(ke.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};Xc.displayName="ProductCard.Media.Video";const Qc=({children:e,className:t,type:r,...n})=>a.jsx("div",{...n,className:b.helpers.classNameConcat(Se[`product-card--${r}`],t),children:e});Qc.displayName="ProductCard.Wrapper";const we={Actions:Dc,BuyButton:$c,Header:Bc,Media:qc,Root:zc,OutStock:Hc,Price:Vc,SizeSelector:Wc,StyleSelector:Gc,Title:Kc,Video:Xc,Wrapper:Qc},Pf="_footer__bottom_1o9af_2",If="_footer__wrapper_1o9af_10",Nf="_footer__main_1o9af_39",Of="_footer__legalInformation_1o9af_55",Tf="_footer__column_1o9af_77",Mf="_footer__columnContent_1o9af_87",kf="_footer__item_1o9af_91",Lf="_footer__itemLink_1o9af_107",Df="_footer__columnTitle_1o9af_122",$f="_footer__columnTitleIcon_1o9af_134",Bf="_footer__iconList_1o9af_147",qf="_footer__itemSmallText_1o9af_157",Hf="_payment_1o9af_168",zf="_footer__iconContainer_1o9af_173",Ff="_footer__iconListSubHeader_1o9af_178",Uf="_accordionWrapper_1o9af_200",Wf="_accordionHeader_1o9af_204",Gf="_accordionTextWrapper_1o9af_208",pe={footer__bottom:Pf,footer__wrapper:If,footer__main:Nf,footer__legalInformation:Of,footer__column:Tf,footer__columnContent:Mf,footer__item:kf,footer__itemLink:Lf,footer__columnTitle:Df,footer__columnTitleIcon:$f,footer__iconList:Bf,footer__itemSmallText:qf,payment:Hf,footer__iconContainer:zf,footer__iconListSubHeader:Ff,accordionWrapper:Uf,accordionHeader:Wf,accordionTextWrapper:Gf,"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 Yc={},bo={},ht={};(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)}}})(ht);var Zc={};(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:s,blurDataURL:c,objectFit:u}=r;const l=20,p=i?i*40:n,f=s?s*40:o,d=p&&f?"viewBox='0 0 "+p+" "+f+"'":"",m=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='"+m+"' style='filter: url(%23b);' href='"+c+"'/%3E%3C/svg%3E"}})(Zc);var Xt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,i){for(var s in i)Object.defineProperty(o,s,{enumerable:!0,get:i[s]})}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}})(Xt);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return m}});const t=ht,r=Zc,n=Xt,o=["lazy","eager",void 0];function i(h){return h.default!==void 0}function s(h){return h.src!==void 0}function c(h){return typeof h=="object"&&(i(h)||s(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 f(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}=f(y,A,S),I=j.length-1;return{sizes:!S&&x==="w"?"100vw":S,srcSet:j.map(($,E)=>C({config:y,src:g,quality:_,width:$})+" "+(x==="w"?$:E+1)+x).join(", "),src:C({config:y,src:g,quality:_,width:j[I]})}}function m(h,y){let{src:g,sizes:v,unoptimized:A=!1,priority:_=!1,loading:S,className:C,quality:j,width:x,height:I,fill:$=!1,style:E,onLoad:N,onLoadingComplete:k,placeholder:B="empty",blurDataURL:R,fetchPriority:q,layout:F,objectFit:U,objectPosition:K,lazyBoundary:G,lazyRoot:z,...ne}=h;const{imgConf:w,showAltText:T,blurComplete:D,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 M=ne.loader||X;delete ne.loader,delete ne.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 W=M;M=le=>{const{config:Ce,...Q}=le;return W(Q)}}if(F){F==="fill"&&($=!0);const W={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},le={responsive:"100vw",fill:"100vw"},Ce=W[F];Ce&&(E={...E,...Ce});const Q=le[F];Q&&!v&&(v=Q)}let Y="",ee=p(x),L=p(I),O,re;if(c(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(O=W.blurWidth,re=W.blurHeight,R=R||W.blurDataURL,Y=W.src,!$){if(!ee&&!L)ee=W.width,L=W.height;else if(ee&&!L){const le=ee/W.width;L=Math.round(W.height*le)}else if(!ee&&L){const le=L/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),_&&(q="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($){if(x)throw new Error('Image with src "'+g+'" has both "width" and "fill" properties. Only one should be used.');if(I)throw new Error('Image with src "'+g+'" has both "height" and "fill" properties. Only one should be used.');if(E!=null&&E.position&&E.position!=="absolute")throw new Error('Image with src "'+g+'" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.');if(E!=null&&E.width&&E.width!=="100%")throw new Error('Image with src "'+g+'" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.');if(E!=null&&E.height&&E.height!=="100%")throw new Error('Image with src "'+g+'" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.')}else{if(typeof ee>"u")throw new Error('Image with src "'+g+'" is missing required "width" property.');if(isNaN(ee))throw new Error('Image with src "'+g+'" has invalid "width" property. Expected a numeric value in pixels but received "'+x+'".');if(typeof L>"u")throw new Error('Image with src "'+g+'" is missing required "height" property.');if(isNaN(L))throw new Error('Image with src "'+g+'" has invalid "height" property. Expected a numeric value in pixels but received "'+I+'".')}if(!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(B!=="empty"&&B!=="blur"&&!B.startsWith("data:image/"))throw new Error('Image with src "'+g+'" has invalid "placeholder" property "'+B+'".');if(B!=="empty"&&ee&&L&&ee*L<1600&&(0,t.warnOnce)('Image with src "'+g+'" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'),B==="blur"&&!R){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: `+G.join(",")+` (animated images not supported)
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 ne&&(0,t.warnOnce)('Image with src "'+g+'" is using unsupported "ref" property. Consider using the "onLoadingComplete" property instead.'),!A&&!J){const G=k({config:te,src:g,width:ee||400,quality:ce||75});let ue;try{ue=new URL(G)}catch{}(G===g||ue&&ue.pathname===g&&!ue.search)&&(0,t.warnOnce)('Image with src "'+g+`" has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead.
11
- Read more: https://nextjs.org/docs/messages/next-image-missing-loader-width`)}for(const[G,ue]of Object.entries({layout:F,objectFit:U,objectPosition:K,lazyBoundary:W,lazyRoot:z}))ue&&(0,t.warnOnce)('Image with src "'+g+'" has legacy prop "'+G+`". Did you forget to run the codemod?
12
- Read more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);if(typeof window<"u"&&!u&&window.PerformanceObserver){u=new PerformanceObserver(G=>{for(const Ce of G.getEntries()){var ue;const Q=(Ce==null||(ue=Ce.element)==null?void 0:ue.src)||"",oe=l.get(Q);oe&&!oe.priority&&oe.placeholder==="empty"&&!oe.src.startsWith("data:")&&!oe.src.startsWith("blob:")&&(0,t.warnOnce)('Image with src "'+oe.src+`" was detected as the Largest Contentful Paint (LCP). Please add the "priority" property if this image is above the fold.
13
- Read more: https://nextjs.org/docs/api-reference/next/image#priority`)}});try{u.observe({type:"largest-contentful-paint",buffered:!0})}catch(G){console.error(G)}}}const le=Object.assign($?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:U,objectPosition:K}:{},T?{}:{color:"transparent"},E),se=!D&&B!=="empty"?B==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:ee,heightInt:L,blurWidth:O,blurHeight:re,blurDataURL:R||"",objectFit:le.objectFit})+'")':'url("'+B+'")':null;let H=se?{backgroundSize:le.objectFit||"cover",backgroundPosition:le.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:se}:{};process.env.NODE_ENV==="development"&&H.backgroundImage&&B==="blur"&&R!=null&&R.startsWith("/")&&(H.backgroundImage='url("'+R+'")');const he=d({config:te,src:g,unoptimized:A,width:ee,quality:ce,sizes:v,loader:k});if(process.env.NODE_ENV!=="production"&&typeof window<"u"){let G;try{G=new URL(he.src)}catch{G=new URL(he.src,window.location.href)}l.set(G.href,{src:g,priority:_,placeholder:B})}return{props:{...ne,loading:ae?"lazy":S,fetchPriority:q,width:ee,height:L,decoding:"async",className:C,style:{...le,...H},sizes:he.sizes,srcSet:he.srcSet,src:he.src},meta:{unoptimized:A,priority:_,placeholder:B,fill:$}}}})(Co);var Jn={exports:{}},Mt={exports:{}},jr={},xi;function np(){return xi||(xi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});const t=P,r=typeof window>"u",n=r?()=>{}:t.useLayoutEffect,o=r?()=>{}:t.useEffect;function i(s){const{headManager:c,reduceComponentsToState:l}=s;function u(){if(c&&c.mountedInstances){const f=t.Children.toArray(Array.from(c.mountedInstances).filter(Boolean));c.updateHead(l(f,s))}}if(r){var p;c==null||(p=c.mountedInstances)==null||p.add(s.children),u()}return n(()=>{var f;return c==null||(f=c.mountedInstances)==null||f.add(s.children),()=>{var d;c==null||(d=c.mountedInstances)==null||d.delete(s.children)}}),n(()=>(c&&(c._pendingUpdate=u),()=>{c&&(c._pendingUpdate=u)})),o(()=>(c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null),()=>{c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null)})),null}}(jr)),jr}var Pr={},Ci;function op(){return Ci||(Ci=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return n}});const n=Re._(P).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="AmpStateContext")}(Pr)),Pr}var Ir={},Si;function el(){return Si||(Si=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=Re._(P).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="HeadManagerContext")}(Ir)),Ir}var Nr={},Ai;function ip(){return Ai||(Ai=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}}(Nr)),Nr}var Ei;function ap(){return Ei||(Ei=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 f},default:function(){return v}});const n=Re,i=Je._(P),s=n._(np()),c=op(),l=el(),u=ip(),p=ht;function f(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 m=["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 $=j.key.slice(j.key.indexOf("$")+1);A.has($)?x=!1:A.add($)}switch(j.type){case"title":case"base":_.has(j.type)?x=!1:_.add(j.type);break;case"meta":for(let $=0,E=m.length;$<E;$++){const N=m[$];if(j.props.hasOwnProperty(N))if(N==="charSet")S.has(N)?x=!1:S.add(N);else{const M=j.props[N],B=C[N]||new Set;(N!=="name"||!I)&&B.has(M)?x=!1:(B.add(M),C[N]=B)}}break}return x}}function y(A,_){const{inAmpMode:S}=_;return A.reduce(d,[]).reverse().concat(f(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.
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=M({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($?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:U,objectPosition:K}:{},T?{}:{color:"transparent"},E),se=!D&&B!=="empty"?B==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:ee,heightInt:L,blurWidth:O,blurHeight:re,blurDataURL:R||"",objectFit:ue.objectFit})+'")':'url("'+B+'")':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&&B==="blur"&&R!=null&&R.startsWith("/")&&(H.backgroundImage='url("'+R+'")');const he=d({config:te,src:g,unoptimized:A,width:ee,quality:ce,sizes:v,loader:M});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:B})}return{props:{...ne,loading:ae?"lazy":S,fetchPriority:q,width:ee,height:L,decoding:"async",className:C,style:{...ue,...H},sizes:he.sizes,srcSet:he.srcSet,src:he.src},meta:{unoptimized:A,priority:_,placeholder:B,fill:$}}}})(bo);var Xn={exports:{}},Mt={exports:{}},Pr={},gi;function Vf(){return gi||(gi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});const t=P,r=typeof window>"u",n=r?()=>{}:t.useLayoutEffect,o=r?()=>{}:t.useEffect;function i(s){const{headManager:c,reduceComponentsToState:u}=s;function l(){if(c&&c.mountedInstances){const f=t.Children.toArray(Array.from(c.mountedInstances).filter(Boolean));c.updateHead(u(f,s))}}if(r){var p;c==null||(p=c.mountedInstances)==null||p.add(s.children),l()}return n(()=>{var f;return c==null||(f=c.mountedInstances)==null||f.add(s.children),()=>{var d;c==null||(d=c.mountedInstances)==null||d.delete(s.children)}}),n(()=>(c&&(c._pendingUpdate=l),()=>{c&&(c._pendingUpdate=l)})),o(()=>(c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null),()=>{c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null)})),null}}(Pr)),Pr}var Ir={},yi;function Kf(){return yi||(yi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return n}});const n=Re._(P).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="AmpStateContext")}(Ir)),Ir}var Nr={},_i;function Jc(){return _i||(_i=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=Re._(P).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="HeadManagerContext")}(Nr)),Nr}var Or={},vi;function Xf(){return vi||(vi=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}}(Or)),Or}var bi;function Qf(){return bi||(bi=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 f},default:function(){return v}});const n=Re,i=et._(P),s=n._(Vf()),c=Kf(),u=Jc(),l=Xf(),p=ht;function f(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 m=["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 $=j.key.slice(j.key.indexOf("$")+1);A.has($)?x=!1:A.add($)}switch(j.type){case"title":case"base":_.has(j.type)?x=!1:_.add(j.type);break;case"meta":for(let $=0,E=m.length;$<E;$++){const N=m[$];if(j.props.hasOwnProperty(N))if(N==="charSet")S.has(N)?x=!1:S.add(N);else{const k=j.props[N],B=C[N]||new Set;(N!=="name"||!I)&&B.has(k)?x=!1:(B.add(k),C[N]=B)}}break}return x}}function y(A,_){const{inAmpMode:S}=_;return A.reduce(d,[]).reverse().concat(f(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(A){let{children:_}=A;const S=(0,i.useContext)(c.AmpStateContext),C=(0,i.useContext)(l.HeadManagerContext);return i.default.createElement(s.default,{reduceComponentsToState:y,headManager:C,inAmpMode:(0,u.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)}(Mt,Mt.exports)),Mt.exports}var Or={},Ri;function sp(){return Ri||(Ri=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return o}});const r=Re._(P),n=Vt,o=r.default.createContext(n.imageConfigDefault);process.env.NODE_ENV!=="production"&&(o.displayName="ImageConfigContext")}(Or)),Or}var Tr={},kr={},Mr={exports:{}};const cp=Lu(Bn.__viteBrowserExternal);var Lr={},Dr={},$r,wi;function tl(){return wi||(wi=1,$r=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 s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(t,r);if(c.value!==o||c.enumerable!==!0)return!1}return!0}),$r}var Br,ji;function Kt(){if(ji)return Br;ji=1;var e=tl();return Br=function(){return e()&&!!Symbol.toStringTag},Br}var qr,Pi;function rl(){return Pi||(Pi=1,qr=Object),qr}var Hr,Ii;function lp(){return Ii||(Ii=1,Hr=Error),Hr}var zr,Ni;function up(){return Ni||(Ni=1,zr=EvalError),zr}var Fr,Oi;function dp(){return Oi||(Oi=1,Fr=RangeError),Fr}var Ur,Ti;function fp(){return Ti||(Ti=1,Ur=ReferenceError),Ur}var Gr,ki;function nl(){return ki||(ki=1,Gr=SyntaxError),Gr}var Wr,Mi;function gt(){return Mi||(Mi=1,Wr=TypeError),Wr}var Vr,Li;function pp(){return Li||(Li=1,Vr=URIError),Vr}var Kr,Di;function mp(){return Di||(Di=1,Kr=Math.abs),Kr}var Xr,$i;function hp(){return $i||($i=1,Xr=Math.floor),Xr}var Qr,Bi;function gp(){return Bi||(Bi=1,Qr=Math.max),Qr}var Yr,qi;function yp(){return qi||(qi=1,Yr=Math.min),Yr}var Zr,Hi;function _p(){return Hi||(Hi=1,Zr=Math.pow),Zr}var Jr,zi;function vp(){return zi||(zi=1,Jr=Math.round),Jr}var en,Fi;function bp(){return Fi||(Fi=1,en=Number.isNaN||function(t){return t!==t}),en}var tn,Ui;function xp(){if(Ui)return tn;Ui=1;var e=bp();return tn=function(r){return e(r)||r===0?r:r<0?-1:1},tn}var rn,Gi;function Cp(){return Gi||(Gi=1,rn=Object.getOwnPropertyDescriptor),rn}var nn,Wi;function nt(){if(Wi)return nn;Wi=1;var e=Cp();if(e)try{e([],"length")}catch{e=null}return nn=e,nn}var on,Vi;function Xt(){if(Vi)return on;Vi=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return on=e,on}var an,Ki;function Sp(){if(Ki)return an;Ki=1;var e=typeof Symbol<"u"&&Symbol,t=tl();return an=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},an}var sn,Xi;function ol(){return Xi||(Xi=1,sn=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),sn}var cn,Qi;function il(){if(Qi)return cn;Qi=1;var e=rl();return cn=e.getPrototypeOf||null,cn}var ln,Yi;function Ap(){if(Yi)return ln;Yi=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(l,u){for(var p=[],f=0;f<l.length;f+=1)p[f]=l[f];for(var d=0;d<u.length;d+=1)p[d+l.length]=u[d];return p},i=function(l,u){for(var p=[],f=u,d=0;f<l.length;f+=1,d+=1)p[d]=l[f];return p},s=function(c,l){for(var u="",p=0;p<c.length;p+=1)u+=c[p],p+1<c.length&&(u+=l);return u};return ln=function(l){var u=this;if(typeof u!="function"||t.apply(u)!==n)throw new TypeError(e+u);for(var p=i(arguments,1),f,d=function(){if(this instanceof f){var v=u.apply(this,o(p,arguments));return Object(v)===v?v:this}return u.apply(l,o(p,arguments))},m=r(0,u.length-p.length),h=[],y=0;y<m;y++)h[y]="$"+y;if(f=Function("binder","return function ("+s(h,",")+"){ return binder.apply(this,arguments); }")(d),u.prototype){var g=function(){};g.prototype=u.prototype,f.prototype=new g,g.prototype=null}return f},ln}var un,Zi;function yt(){if(Zi)return un;Zi=1;var e=Ap();return un=Function.prototype.bind||e,un}var dn,Ji;function So(){return Ji||(Ji=1,dn=Function.prototype.call),dn}var fn,ea;function Ao(){return ea||(ea=1,fn=Function.prototype.apply),fn}var pn,ta;function Ep(){return ta||(ta=1,pn=typeof Reflect<"u"&&Reflect&&Reflect.apply),pn}var mn,ra;function al(){if(ra)return mn;ra=1;var e=yt(),t=Ao(),r=So(),n=Ep();return mn=n||e.call(r,t),mn}var hn,na;function Eo(){if(na)return hn;na=1;var e=yt(),t=gt(),r=So(),n=al();return hn=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},hn}var gn,oa;function Rp(){if(oa)return gn;oa=1;var e=Eo(),t=nt(),r;try{r=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var n=!!r&&t&&t(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return gn=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(c){return i(c==null?c:o(c))}:!1,gn}var yn,ia;function Ro(){if(ia)return yn;ia=1;var e=ol(),t=il(),r=Rp();return yn=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,yn}var _n,aa;function sl(){if(aa)return _n;aa=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=yt();return _n=r.call(e,t),_n}var vn,sa;function cl(){if(sa)return vn;sa=1;var e,t=rl(),r=lp(),n=up(),o=dp(),i=fp(),s=nl(),c=gt(),l=pp(),u=mp(),p=hp(),f=gp(),d=yp(),m=_p(),h=vp(),y=xp(),g=Function,v=function(J){try{return g('"use strict"; return ('+J+").constructor;")()}catch{}},A=nt(),_=Xt(),S=function(){throw new c},C=A?function(){try{return arguments.callee,S}catch{try{return A(arguments,"callee").get}catch{return S}}}():S,j=Sp()(),x=Ro(),I=il(),$=ol(),E=Ao(),N=So(),M={},B=typeof Uint8Array>"u"||!x?e:x(Uint8Array),R={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":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%":s,"%ThrowTypeError%":C,"%TypedArray%":B,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":N,"%Function.prototype.apply%":E,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":I,"%Math.abs%":u,"%Math.floor%":p,"%Math.max%":f,"%Math.min%":d,"%Math.pow%":m,"%Math.round%":h,"%Math.sign%":y,"%Reflect.getPrototypeOf%":$};if(x)try{null.error}catch(J){var q=x(x(J));R["%Error.prototype%"]=q}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 L=J("%AsyncGeneratorFunction%");L&&(ee=L.prototype)}else if(Y==="%AsyncIteratorPrototype%"){var O=J("%AsyncGenerator%");O&&x&&(ee=x(O.prototype))}return R[Y]=ee,ee},U={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},K=yt(),W=sl(),z=K.call(N,Array.prototype.concat),ne=K.call(E,Array.prototype.splice),w=K.call(N,String.prototype.replace),T=K.call(N,String.prototype.slice),D=K.call(N,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,te=/\\(\\)?/g,Z=function(Y){var ee=T(Y,0,1),L=T(Y,-1);if(ee==="%"&&L!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(L==="%"&&ee!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var O=[];return w(Y,X,function(re,ae,ce,le){O[O.length]=ce?w(le,te,"$1"):ae||re}),O},k=function(Y,ee){var L=Y,O;if(W(U,L)&&(O=U[L],L="%"+O[0]+"%"),W(R,L)){var re=R[L];if(re===M&&(re=F(L)),typeof re>"u"&&!ee)throw new c("intrinsic "+Y+" exists, but is not available. Please file an issue!");return{alias:O,name:L,value:re}}throw new s("intrinsic "+Y+" does not exist!")};return vn=function(Y,ee){if(typeof Y!="string"||Y.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ee!="boolean")throw new c('"allowMissing" argument must be a boolean');if(D(/^%?[^%]*%?$/,Y)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var L=Z(Y),O=L.length>0?L[0]:"",re=k("%"+O+"%",ee),ae=re.name,ce=re.value,le=!1,se=re.alias;se&&(O=se[0],ne(L,z([0,1],se)));for(var H=1,he=!0;H<L.length;H+=1){var ie=L[H],me=T(ie,0,1),G=T(ie,-1);if((me==='"'||me==="'"||me==="`"||G==='"'||G==="'"||G==="`")&&me!==G)throw new s("property names with quotes must have matching quotes");if((ie==="constructor"||!he)&&(le=!0),O+="."+ie,ae="%"+O+"%",W(R,ae))ce=R[ae];else if(ce!=null){if(!(ie in ce)){if(!ee)throw new c("base intrinsic for "+Y+" exists, but the property is not available.");return}if(A&&H+1>=L.length){var ue=A(ce,ie);he=!!ue,he&&"get"in ue&&!("originalValue"in ue.get)?ce=ue.get:ce=ce[ie]}else he=W(ce,ie),ce=ce[ie];he&&!le&&(R[ae]=ce)}}return ce},vn}var bn,ca;function _t(){if(ca)return bn;ca=1;var e=cl(),t=Eo(),r=t([e("%String.prototype.indexOf%")]);return bn=function(o,i){var s=e(o,!!i);return typeof s=="function"&&r(o,".prototype.")>-1?t([s]):s},bn}var xn,la;function wp(){if(la)return xn;la=1;var e=Kt()(),t=_t(),r=t("Object.prototype.toString"),n=function(c){return e&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:r(c)==="[object Arguments]"},o=function(c){return n(c)?!0:c!==null&&typeof c=="object"&&"length"in c&&typeof c.length=="number"&&c.length>=0&&r(c)!=="[object Array]"&&"callee"in c&&r(c.callee)==="[object Function]"},i=function(){return n(arguments)}();return n.isLegacyArguments=o,xn=i?n:o,xn}var Cn,ua;function jp(){if(ua)return Cn;ua=1;var e=_t(),t=Kt()(),r=sl(),n=nt(),o;if(t){var i=e("RegExp.prototype.exec"),s={},c=function(){throw s},l={toString:c,valueOf:c};typeof Symbol.toPrimitive=="symbol"&&(l[Symbol.toPrimitive]=c),o=function(d){if(!d||typeof d!="object")return!1;var m=n(d,"lastIndex"),h=m&&r(m,"value");if(!h)return!1;try{i(d,l)}catch(y){return y===s}}}else{var u=e("Object.prototype.toString"),p="[object RegExp]";o=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:u(d)===p}}return Cn=o,Cn}var Sn,da;function Pp(){if(da)return Sn;da=1;var e=_t(),t=jp(),r=e("RegExp.prototype.exec"),n=gt();return Sn=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(c){return r(i,c)!==null}},Sn}var An,fa;function Ip(){if(fa)return An;fa=1;var e=_t(),t=Pp(),r=t(/^\s*(?:function)?\*/),n=Kt()(),o=Ro(),i=e("Object.prototype.toString"),s=e("Function.prototype.toString"),c=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},l;return An=function(p){if(typeof p!="function")return!1;if(r(s(p)))return!0;if(!n){var f=i(p);return f==="[object GeneratorFunction]"}if(!o)return!1;if(typeof l>"u"){var d=c();l=d?o(d):!1}return o(p)===l},An}var En,pa;function Np(){if(pa)return En;pa=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}},s=function(_){try{return i(_)?!1:(e.call(_),!0)}catch{return!1}},c=Object.prototype.toString,l="[object Object]",u="[object Function]",p="[object GeneratorFunction]",f="[object HTMLAllCollection]",d="[object HTML document.all class]",m="[object HTMLCollection]",h=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),g=function(){return!1};if(typeof document=="object"){var v=document.all;c.call(v)===c.call(document.all)&&(g=function(_){if((y||!_)&&(typeof _>"u"||typeof _=="object"))try{var S=c.call(_);return(S===f||S===d||S===m||S===l)&&_("")==null}catch{}return!1})}return En=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(_)&&s(_)}:function(_){if(g(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;if(h)return s(_);if(i(_))return!1;var S=c.call(_);return S!==u&&S!==p&&!/^\[object HTML/.test(S)?!1:s(_)},En}var Rn,ma;function Op(){if(ma)return Rn;ma=1;var e=Np(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(l,u,p){for(var f=0,d=l.length;f<d;f++)r.call(l,f)&&(p==null?u(l[f],f,l):u.call(p,l[f],f,l))},o=function(l,u,p){for(var f=0,d=l.length;f<d;f++)p==null?u(l.charAt(f),f,l):u.call(p,l.charAt(f),f,l)},i=function(l,u,p){for(var f in l)r.call(l,f)&&(p==null?u(l[f],f,l):u.call(p,l[f],f,l))};function s(c){return t.call(c)==="[object Array]"}return Rn=function(l,u,p){if(!e(u))throw new TypeError("iterator must be a function");var f;arguments.length>=3&&(f=p),s(l)?n(l,u,f):typeof l=="string"?o(l,u,f):i(l,u,f)},Rn}var wn,ha;function Tp(){return ha||(ha=1,wn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),wn}var jn,ga;function kp(){if(ga)return jn;ga=1;var e=Tp(),t=typeof globalThis>"u"?Ks:globalThis;return jn=function(){for(var n=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(n[n.length]=e[o]);return n},jn}var Pn={exports:{}},In,ya;function Mp(){if(ya)return In;ya=1;var e=Xt(),t=nl(),r=gt(),n=nt();return In=function(i,s,c){if(!i||typeof i!="object"&&typeof i!="function")throw new r("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,p=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,d=!!n&&n(i,s);if(e)e(i,s,{configurable:p===null&&d?d.configurable:!p,enumerable:l===null&&d?d.enumerable:!l,value:c,writable:u===null&&d?d.writable:!u});else if(f||!l&&!u&&!p)i[s]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},In}var Nn,_a;function Lp(){if(_a)return Nn;_a=1;var e=Xt(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Nn=t,Nn}var On,va;function Dp(){if(va)return On;va=1;var e=cl(),t=Mp(),r=Lp()(),n=nt(),o=gt(),i=e("%Math.floor%");return On=function(c,l){if(typeof c!="function")throw new o("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||i(l)!==l)throw new o("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],p=!0,f=!0;if("length"in c&&n){var d=n(c,"length");d&&!d.configurable&&(p=!1),d&&!d.writable&&(f=!1)}return(p||f||!u)&&(r?t(c,"length",l,!0,!0):t(c,"length",l)),c},On}var Tn,ba;function $p(){if(ba)return Tn;ba=1;var e=yt(),t=Ao(),r=al();return Tn=function(){return r(e,t,arguments)},Tn}var xa;function Bp(){return xa||(xa=1,function(e){var t=Dp(),r=Xt(),n=Eo(),o=$p();e.exports=function(s){var c=n(arguments),l=s.length-(arguments.length-1);return t(c,1+(l>0?l:0),!0)},r?r(e.exports,"apply",{value:o}):e.exports.apply=o}(Pn)),Pn.exports}var kn,Ca;function ll(){if(Ca)return kn;Ca=1;var e=Op(),t=kp(),r=Bp(),n=_t(),o=nt(),i=Ro(),s=n("Object.prototype.toString"),c=Kt()(),l=typeof globalThis>"u"?Ks:globalThis,u=t(),p=n("String.prototype.slice"),f=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};c&&o&&i?e(u,function(y){var g=new l[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(u,function(y){var g=new l[y],v=g.slice||g.set;v&&(d["$"+y]=r(v))});var m=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 kn=function(g){if(!g||typeof g!="object")return!1;if(!c){var v=p(s(g),8,-1);return f(u,v)>-1?v:v!=="Object"?!1:h(g)}return o?m(g):null},kn}var Mn,Sa;function qp(){if(Sa)return Mn;Sa=1;var e=ll();return Mn=function(r){return!!e(r)},Mn}var Aa;function Hp(){return Aa||(Aa=1,function(e){var t=wp(),r=Ip(),n=ll(),o=qp();function i(H){return H.call.bind(H)}var s=typeof BigInt<"u",c=typeof Symbol<"u",l=i(Object.prototype.toString),u=i(Number.prototype.valueOf),p=i(String.prototype.valueOf),f=i(Boolean.prototype.valueOf);if(s)var d=i(BigInt.prototype.valueOf);if(c)var m=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 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 $(H){return n(H)==="Float64Array"}e.isFloat64Array=$;function E(H){return n(H)==="BigInt64Array"}e.isBigInt64Array=E;function N(H){return n(H)==="BigUint64Array"}e.isBigUint64Array=N;function M(H){return l(H)==="[object Map]"}M.working=typeof Map<"u"&&M(new Map);function B(H){return typeof Map>"u"?!1:M.working?M(H):H instanceof Map}e.isMap=B;function R(H){return l(H)==="[object Set]"}R.working=typeof Set<"u"&&R(new Set);function q(H){return typeof Set>"u"?!1:R.working?R(H):H instanceof Set}e.isSet=q;function F(H){return l(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 l(H)==="[object WeakSet]"}K.working=typeof WeakSet<"u"&&K(new WeakSet);function W(H){return K(H)}e.isWeakSet=W;function z(H){return l(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 l(H)==="[object DataView]"}w.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&w(new DataView(new ArrayBuffer(1),0,1));function T(H){return typeof DataView>"u"?!1:w.working?w(H):H instanceof DataView}e.isDataView=T;var D=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function X(H){return l(H)==="[object SharedArrayBuffer]"}function te(H){return typeof D>"u"?!1:(typeof X.working>"u"&&(X.working=X(new D)),X.working?X(H):H instanceof D)}e.isSharedArrayBuffer=te;function Z(H){return l(H)==="[object AsyncFunction]"}e.isAsyncFunction=Z;function k(H){return l(H)==="[object Map Iterator]"}e.isMapIterator=k;function J(H){return l(H)==="[object Set Iterator]"}e.isSetIterator=J;function Y(H){return l(H)==="[object Generator]"}e.isGeneratorObject=Y;function ee(H){return l(H)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=ee;function L(H){return h(H,u)}e.isNumberObject=L;function O(H){return h(H,p)}e.isStringObject=O;function re(H){return h(H,f)}e.isBooleanObject=re;function ae(H){return s&&h(H,d)}e.isBigIntObject=ae;function ce(H){return c&&h(H,m)}e.isSymbolObject=ce;function le(H){return L(H)||O(H)||re(H)||ae(H)||ce(H)}e.isBoxedPrimitive=le;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")}})})}(Dr)),Dr}var Ln,Ea;function zp(){return Ea||(Ea=1,Ln=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Ln}var Lt={exports:{}},Ra;function Fp(){return Ra||(Ra=1,typeof Object.create=="function"?Lt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Lt.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),Lt.exports}var wa;function Up(){return wa||(wa=1,function(e){var t=Object.getOwnPropertyDescriptors||function(T){for(var D=Object.keys(T),X={},te=0;te<D.length;te++)X[D[te]]=Object.getOwnPropertyDescriptor(T,D[te]);return X},r=/%[sdj%]/g;e.format=function(w){if(!C(w)){for(var T=[],D=0;D<arguments.length;D++)T.push(s(arguments[D]));return T.join(" ")}for(var D=1,X=arguments,te=X.length,Z=String(w).replace(r,function(J){if(J==="%%")return"%";if(D>=te)return J;switch(J){case"%s":return String(X[D++]);case"%d":return Number(X[D++]);case"%j":try{return JSON.stringify(X[D++])}catch{return"[Circular]"}default:return J}}),k=X[D];D<te;k=X[++D])A(k)||!$(k)?Z+=" "+k:Z+=" "+s(k);return Z},e.deprecate=function(w,T){if(typeof process<"u"&&process.noDeprecation===!0)return w;if(typeof process>"u")return function(){return e.deprecate(w,T).apply(this,arguments)};var D=!1;function X(){if(!D){if(process.throwDeprecation)throw new Error(T);process.traceDeprecation?console.trace(T):console.error(T),D=!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 T=process.pid;n[w]=function(){var D=e.format.apply(e,arguments);console.error("%s %d: %s",w,T,D)}}else n[w]=function(){};return n[w]};function s(w,T){var D={seen:[],stylize:l};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=c),p(D,w,D.depth)}e.inspect=s,s.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]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(w,T){var D=s.styles[T];return D?"\x1B["+s.colors[D][0]+"m"+w+"\x1B["+s.colors[D][1]+"m":w}function l(w,T){return w}function u(w){var T={};return w.forEach(function(D,X){T[D]=!0}),T}function p(w,T,D){if(w.customInspect&&T&&M(T.inspect)&&T.inspect!==e.inspect&&!(T.constructor&&T.constructor.prototype===T)){var X=T.inspect(D,w);return C(X)||(X=p(w,X,D)),X}var te=f(w,T);if(te)return te;var Z=Object.keys(T),k=u(Z);if(w.showHidden&&(Z=Object.getOwnPropertyNames(T)),N(T)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return d(T);if(Z.length===0){if(M(T)){var J=T.name?": "+T.name:"";return w.stylize("[Function"+J+"]","special")}if(I(T))return w.stylize(RegExp.prototype.toString.call(T),"regexp");if(E(T))return w.stylize(Date.prototype.toString.call(T),"date");if(N(T))return d(T)}var Y="",ee=!1,L=["{","}"];if(g(T)&&(ee=!0,L=["[","]"]),M(T)){var O=T.name?": "+T.name:"";Y=" [Function"+O+"]"}if(I(T)&&(Y=" "+RegExp.prototype.toString.call(T)),E(T)&&(Y=" "+Date.prototype.toUTCString.call(T)),N(T)&&(Y=" "+d(T)),Z.length===0&&(!ee||T.length==0))return L[0]+Y+L[1];if(D<0)return I(T)?w.stylize(RegExp.prototype.toString.call(T),"regexp"):w.stylize("[Object]","special");w.seen.push(T);var re;return ee?re=m(w,T,D,k,Z):re=Z.map(function(ae){return h(w,T,D,k,ae,ee)}),w.seen.pop(),y(re,Y,L)}function f(w,T){if(x(T))return w.stylize("undefined","undefined");if(C(T)){var D="'"+JSON.stringify(T).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return w.stylize(D,"string")}if(S(T))return w.stylize(""+T,"number");if(v(T))return w.stylize(""+T,"boolean");if(A(T))return w.stylize("null","null")}function d(w){return"["+Error.prototype.toString.call(w)+"]"}function m(w,T,D,X,te){for(var Z=[],k=0,J=T.length;k<J;++k)K(T,String(k))?Z.push(h(w,T,D,X,String(k),!0)):Z.push("");return te.forEach(function(Y){Y.match(/^\d+$/)||Z.push(h(w,T,D,X,Y,!0))}),Z}function h(w,T,D,X,te,Z){var k,J,Y;if(Y=Object.getOwnPropertyDescriptor(T,te)||{value:T[te]},Y.get?Y.set?J=w.stylize("[Getter/Setter]","special"):J=w.stylize("[Getter]","special"):Y.set&&(J=w.stylize("[Setter]","special")),K(X,te)||(k="["+te+"]"),J||(w.seen.indexOf(Y.value)<0?(A(D)?J=p(w,Y.value,null):J=p(w,Y.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)(c.AmpStateContext),C=(0,i.useContext)(u.HeadManagerContext);return i.default.createElement(s.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)}(Mt,Mt.exports)),Mt.exports}var Tr={},xi;function Yf(){return xi||(xi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return o}});const r=Re._(P),n=Xt,o=r.default.createContext(n.imageConfigDefault);process.env.NODE_ENV!=="production"&&(o.displayName="ImageConfigContext")}(Tr)),Tr}var Mr={},kr={},Lr={exports:{}};const Zf=td(Ue.__viteBrowserExternal);var Dr={},$r={},Br,Ci;function eu(){return Ci||(Ci=1,Br=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 s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(t,r);if(c.value!==o||c.enumerable!==!0)return!1}return!0}),Br}var qr,Si;function Qt(){if(Si)return qr;Si=1;var e=eu();return qr=function(){return e()&&!!Symbol.toStringTag},qr}var Hr,Ai;function tu(){return Ai||(Ai=1,Hr=Object),Hr}var zr,Ei;function Jf(){return Ei||(Ei=1,zr=Error),zr}var Fr,Ri;function ep(){return Ri||(Ri=1,Fr=EvalError),Fr}var Ur,wi;function tp(){return wi||(wi=1,Ur=RangeError),Ur}var Wr,ji;function rp(){return ji||(ji=1,Wr=ReferenceError),Wr}var Gr,Pi;function ru(){return Pi||(Pi=1,Gr=SyntaxError),Gr}var Vr,Ii;function gt(){return Ii||(Ii=1,Vr=TypeError),Vr}var Kr,Ni;function np(){return Ni||(Ni=1,Kr=URIError),Kr}var Xr,Oi;function op(){return Oi||(Oi=1,Xr=Math.abs),Xr}var Qr,Ti;function ip(){return Ti||(Ti=1,Qr=Math.floor),Qr}var Yr,Mi;function ap(){return Mi||(Mi=1,Yr=Math.max),Yr}var Zr,ki;function sp(){return ki||(ki=1,Zr=Math.min),Zr}var Jr,Li;function cp(){return Li||(Li=1,Jr=Math.pow),Jr}var en,Di;function up(){return Di||(Di=1,en=Math.round),en}var tn,$i;function lp(){return $i||($i=1,tn=Number.isNaN||function(t){return t!==t}),tn}var rn,Bi;function dp(){if(Bi)return rn;Bi=1;var e=lp();return rn=function(r){return e(r)||r===0?r:r<0?-1:1},rn}var nn,qi;function fp(){return qi||(qi=1,nn=Object.getOwnPropertyDescriptor),nn}var on,Hi;function nt(){if(Hi)return on;Hi=1;var e=fp();if(e)try{e([],"length")}catch{e=null}return on=e,on}var an,zi;function Yt(){if(zi)return an;zi=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return an=e,an}var sn,Fi;function pp(){if(Fi)return sn;Fi=1;var e=typeof Symbol<"u"&&Symbol,t=eu();return sn=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},sn}var cn,Ui;function nu(){return Ui||(Ui=1,cn=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),cn}var un,Wi;function ou(){if(Wi)return un;Wi=1;var e=tu();return un=e.getPrototypeOf||null,un}var ln,Gi;function mp(){if(Gi)return ln;Gi=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=[],f=0;f<u.length;f+=1)p[f]=u[f];for(var d=0;d<l.length;d+=1)p[d+u.length]=l[d];return p},i=function(u,l){for(var p=[],f=l,d=0;f<u.length;f+=1,d+=1)p[d]=u[f];return p},s=function(c,u){for(var l="",p=0;p<c.length;p+=1)l+=c[p],p+1<c.length&&(l+=u);return l};return ln=function(u){var l=this;if(typeof l!="function"||t.apply(l)!==n)throw new TypeError(e+l);for(var p=i(arguments,1),f,d=function(){if(this instanceof f){var v=l.apply(this,o(p,arguments));return Object(v)===v?v:this}return l.apply(u,o(p,arguments))},m=r(0,l.length-p.length),h=[],y=0;y<m;y++)h[y]="$"+y;if(f=Function("binder","return function ("+s(h,",")+"){ return binder.apply(this,arguments); }")(d),l.prototype){var g=function(){};g.prototype=l.prototype,f.prototype=new g,g.prototype=null}return f},ln}var dn,Vi;function yt(){if(Vi)return dn;Vi=1;var e=mp();return dn=Function.prototype.bind||e,dn}var fn,Ki;function xo(){return Ki||(Ki=1,fn=Function.prototype.call),fn}var pn,Xi;function Co(){return Xi||(Xi=1,pn=Function.prototype.apply),pn}var mn,Qi;function hp(){return Qi||(Qi=1,mn=typeof Reflect<"u"&&Reflect&&Reflect.apply),mn}var hn,Yi;function iu(){if(Yi)return hn;Yi=1;var e=yt(),t=Co(),r=xo(),n=hp();return hn=n||e.call(r,t),hn}var gn,Zi;function So(){if(Zi)return gn;Zi=1;var e=yt(),t=gt(),r=xo(),n=iu();return gn=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},gn}var yn,Ji;function gp(){if(Ji)return yn;Ji=1;var e=So(),t=nt(),r;try{r=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var n=!!r&&t&&t(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return yn=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(c){return i(c==null?c:o(c))}:!1,yn}var _n,ea;function Ao(){if(ea)return _n;ea=1;var e=nu(),t=ou(),r=gp();return _n=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,_n}var vn,ta;function au(){if(ta)return vn;ta=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=yt();return vn=r.call(e,t),vn}var bn,ra;function su(){if(ra)return bn;ra=1;var e,t=tu(),r=Jf(),n=ep(),o=tp(),i=rp(),s=ru(),c=gt(),u=np(),l=op(),p=ip(),f=ap(),d=sp(),m=cp(),h=up(),y=dp(),g=Function,v=function(J){try{return g('"use strict"; return ('+J+").constructor;")()}catch{}},A=nt(),_=Yt(),S=function(){throw new c},C=A?function(){try{return arguments.callee,S}catch{try{return A(arguments,"callee").get}catch{return S}}}():S,j=pp()(),x=Ao(),I=ou(),$=nu(),E=Co(),N=xo(),k={},B=typeof Uint8Array>"u"||!x?e:x(Uint8Array),R={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":j&&x?x([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":k,"%AsyncGenerator%":k,"%AsyncGeneratorFunction%":k,"%AsyncIteratorPrototype%":k,"%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%":k,"%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%":s,"%ThrowTypeError%":C,"%TypedArray%":B,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":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%":E,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":I,"%Math.abs%":l,"%Math.floor%":p,"%Math.max%":f,"%Math.min%":d,"%Math.pow%":m,"%Math.round%":h,"%Math.sign%":y,"%Reflect.getPrototypeOf%":$};if(x)try{null.error}catch(J){var q=x(x(J));R["%Error.prototype%"]=q}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 L=J("%AsyncGeneratorFunction%");L&&(ee=L.prototype)}else if(Y==="%AsyncIteratorPrototype%"){var O=J("%AsyncGenerator%");O&&x&&(ee=x(O.prototype))}return R[Y]=ee,ee},U={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},K=yt(),G=au(),z=K.call(N,Array.prototype.concat),ne=K.call(E,Array.prototype.splice),w=K.call(N,String.prototype.replace),T=K.call(N,String.prototype.slice),D=K.call(N,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,te=/\\(\\)?/g,Z=function(Y){var ee=T(Y,0,1),L=T(Y,-1);if(ee==="%"&&L!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(L==="%"&&ee!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var O=[];return w(Y,X,function(re,ae,ce,ue){O[O.length]=ce?w(ue,te,"$1"):ae||re}),O},M=function(Y,ee){var L=Y,O;if(G(U,L)&&(O=U[L],L="%"+O[0]+"%"),G(R,L)){var re=R[L];if(re===k&&(re=F(L)),typeof re>"u"&&!ee)throw new c("intrinsic "+Y+" exists, but is not available. Please file an issue!");return{alias:O,name:L,value:re}}throw new s("intrinsic "+Y+" does not exist!")};return bn=function(Y,ee){if(typeof Y!="string"||Y.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ee!="boolean")throw new c('"allowMissing" argument must be a boolean');if(D(/^%?[^%]*%?$/,Y)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var L=Z(Y),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],ne(L,z([0,1],se)));for(var H=1,he=!0;H<L.length;H+=1){var ie=L[H],me=T(ie,0,1),W=T(ie,-1);if((me==='"'||me==="'"||me==="`"||W==='"'||W==="'"||W==="`")&&me!==W)throw new s("property names with quotes must have matching quotes");if((ie==="constructor"||!he)&&(ue=!0),O+="."+ie,ae="%"+O+"%",G(R,ae))ce=R[ae];else if(ce!=null){if(!(ie in ce)){if(!ee)throw new c("base intrinsic for "+Y+" exists, but the property is not available.");return}if(A&&H+1>=L.length){var 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&&(R[ae]=ce)}}return ce},bn}var xn,na;function _t(){if(na)return xn;na=1;var e=su(),t=So(),r=t([e("%String.prototype.indexOf%")]);return xn=function(o,i){var s=e(o,!!i);return typeof s=="function"&&r(o,".prototype.")>-1?t([s]):s},xn}var Cn,oa;function yp(){if(oa)return Cn;oa=1;var e=Qt()(),t=_t(),r=t("Object.prototype.toString"),n=function(c){return e&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:r(c)==="[object Arguments]"},o=function(c){return n(c)?!0:c!==null&&typeof c=="object"&&"length"in c&&typeof c.length=="number"&&c.length>=0&&r(c)!=="[object Array]"&&"callee"in c&&r(c.callee)==="[object Function]"},i=function(){return n(arguments)}();return n.isLegacyArguments=o,Cn=i?n:o,Cn}var Sn,ia;function _p(){if(ia)return Sn;ia=1;var e=_t(),t=Qt()(),r=au(),n=nt(),o;if(t){var i=e("RegExp.prototype.exec"),s={},c=function(){throw s},u={toString:c,valueOf:c};typeof Symbol.toPrimitive=="symbol"&&(u[Symbol.toPrimitive]=c),o=function(d){if(!d||typeof d!="object")return!1;var m=n(d,"lastIndex"),h=m&&r(m,"value");if(!h)return!1;try{i(d,u)}catch(y){return y===s}}}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 Sn=o,Sn}var An,aa;function vp(){if(aa)return An;aa=1;var e=_t(),t=_p(),r=e("RegExp.prototype.exec"),n=gt();return An=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(c){return r(i,c)!==null}},An}var En,sa;function bp(){if(sa)return En;sa=1;var e=_t(),t=vp(),r=t(/^\s*(?:function)?\*/),n=Qt()(),o=Ao(),i=e("Object.prototype.toString"),s=e("Function.prototype.toString"),c=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},u;return En=function(p){if(typeof p!="function")return!1;if(r(s(p)))return!0;if(!n){var f=i(p);return f==="[object GeneratorFunction]"}if(!o)return!1;if(typeof u>"u"){var d=c();u=d?o(d):!1}return o(p)===u},En}var Rn,ca;function xp(){if(ca)return Rn;ca=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}},s=function(_){try{return i(_)?!1:(e.call(_),!0)}catch{return!1}},c=Object.prototype.toString,u="[object Object]",l="[object Function]",p="[object GeneratorFunction]",f="[object HTMLAllCollection]",d="[object HTML document.all class]",m="[object HTMLCollection]",h=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),g=function(){return!1};if(typeof document=="object"){var v=document.all;c.call(v)===c.call(document.all)&&(g=function(_){if((y||!_)&&(typeof _>"u"||typeof _=="object"))try{var S=c.call(_);return(S===f||S===d||S===m||S===u)&&_("")==null}catch{}return!1})}return Rn=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(_)&&s(_)}:function(_){if(g(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;if(h)return s(_);if(i(_))return!1;var S=c.call(_);return S!==l&&S!==p&&!/^\[object HTML/.test(S)?!1:s(_)},Rn}var wn,ua;function Cp(){if(ua)return wn;ua=1;var e=xp(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(u,l,p){for(var f=0,d=u.length;f<d;f++)r.call(u,f)&&(p==null?l(u[f],f,u):l.call(p,u[f],f,u))},o=function(u,l,p){for(var f=0,d=u.length;f<d;f++)p==null?l(u.charAt(f),f,u):l.call(p,u.charAt(f),f,u)},i=function(u,l,p){for(var f in u)r.call(u,f)&&(p==null?l(u[f],f,u):l.call(p,u[f],f,u))};function s(c){return t.call(c)==="[object Array]"}return wn=function(u,l,p){if(!e(l))throw new TypeError("iterator must be a function");var f;arguments.length>=3&&(f=p),s(u)?n(u,l,f):typeof u=="string"?o(u,l,f):i(u,l,f)},wn}var jn,la;function Sp(){return la||(la=1,jn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),jn}var Pn,da;function Ap(){if(da)return Pn;da=1;var e=Sp(),t=typeof globalThis>"u"?sc:globalThis;return Pn=function(){for(var n=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(n[n.length]=e[o]);return n},Pn}var In={exports:{}},Nn,fa;function Ep(){if(fa)return Nn;fa=1;var e=Yt(),t=ru(),r=gt(),n=nt();return Nn=function(i,s,c){if(!i||typeof i!="object"&&typeof i!="function")throw new r("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="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,f=arguments.length>6?arguments[6]:!1,d=!!n&&n(i,s);if(e)e(i,s,{configurable:p===null&&d?d.configurable:!p,enumerable:u===null&&d?d.enumerable:!u,value:c,writable:l===null&&d?d.writable:!l});else if(f||!u&&!l&&!p)i[s]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Nn}var On,pa;function Rp(){if(pa)return On;pa=1;var e=Yt(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},On=t,On}var Tn,ma;function wp(){if(ma)return Tn;ma=1;var e=su(),t=Ep(),r=Rp()(),n=nt(),o=gt(),i=e("%Math.floor%");return Tn=function(c,u){if(typeof c!="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,f=!0;if("length"in c&&n){var d=n(c,"length");d&&!d.configurable&&(p=!1),d&&!d.writable&&(f=!1)}return(p||f||!l)&&(r?t(c,"length",u,!0,!0):t(c,"length",u)),c},Tn}var Mn,ha;function jp(){if(ha)return Mn;ha=1;var e=yt(),t=Co(),r=iu();return Mn=function(){return r(e,t,arguments)},Mn}var ga;function Pp(){return ga||(ga=1,function(e){var t=wp(),r=Yt(),n=So(),o=jp();e.exports=function(s){var c=n(arguments),u=s.length-(arguments.length-1);return t(c,1+(u>0?u:0),!0)},r?r(e.exports,"apply",{value:o}):e.exports.apply=o}(In)),In.exports}var kn,ya;function cu(){if(ya)return kn;ya=1;var e=Cp(),t=Ap(),r=Pp(),n=_t(),o=nt(),i=Ao(),s=n("Object.prototype.toString"),c=Qt()(),u=typeof globalThis>"u"?sc:globalThis,l=t(),p=n("String.prototype.slice"),f=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};c&&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 m=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 kn=function(g){if(!g||typeof g!="object")return!1;if(!c){var v=p(s(g),8,-1);return f(l,v)>-1?v:v!=="Object"?!1:h(g)}return o?m(g):null},kn}var Ln,_a;function Ip(){if(_a)return Ln;_a=1;var e=cu();return Ln=function(r){return!!e(r)},Ln}var va;function Np(){return va||(va=1,function(e){var t=yp(),r=bp(),n=cu(),o=Ip();function i(H){return H.call.bind(H)}var s=typeof BigInt<"u",c=typeof Symbol<"u",u=i(Object.prototype.toString),l=i(Number.prototype.valueOf),p=i(String.prototype.valueOf),f=i(Boolean.prototype.valueOf);if(s)var d=i(BigInt.prototype.valueOf);if(c)var m=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 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 $(H){return n(H)==="Float64Array"}e.isFloat64Array=$;function E(H){return n(H)==="BigInt64Array"}e.isBigInt64Array=E;function N(H){return n(H)==="BigUint64Array"}e.isBigUint64Array=N;function k(H){return u(H)==="[object Map]"}k.working=typeof Map<"u"&&k(new Map);function B(H){return typeof Map>"u"?!1:k.working?k(H):H instanceof Map}e.isMap=B;function R(H){return u(H)==="[object Set]"}R.working=typeof Set<"u"&&R(new Set);function q(H){return typeof Set>"u"?!1:R.working?R(H):H instanceof Set}e.isSet=q;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 T(H){return typeof DataView>"u"?!1:w.working?w(H):H instanceof DataView}e.isDataView=T;var D=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function X(H){return u(H)==="[object SharedArrayBuffer]"}function te(H){return typeof D>"u"?!1:(typeof X.working>"u"&&(X.working=X(new D)),X.working?X(H):H instanceof D)}e.isSharedArrayBuffer=te;function Z(H){return 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 Y(H){return u(H)==="[object Generator]"}e.isGeneratorObject=Y;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,f)}e.isBooleanObject=re;function ae(H){return s&&h(H,d)}e.isBigIntObject=ae;function ce(H){return c&&h(H,m)}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"&&(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")}})})}($r)),$r}var Dn,ba;function Op(){return ba||(ba=1,Dn=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Dn}var kt={exports:{}},xa;function Tp(){return xa||(xa=1,typeof Object.create=="function"?kt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:kt.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),kt.exports}var Ca;function Mp(){return Ca||(Ca=1,function(e){var t=Object.getOwnPropertyDescriptors||function(T){for(var D=Object.keys(T),X={},te=0;te<D.length;te++)X[D[te]]=Object.getOwnPropertyDescriptor(T,D[te]);return X},r=/%[sdj%]/g;e.format=function(w){if(!C(w)){for(var T=[],D=0;D<arguments.length;D++)T.push(s(arguments[D]));return T.join(" ")}for(var D=1,X=arguments,te=X.length,Z=String(w).replace(r,function(J){if(J==="%%")return"%";if(D>=te)return J;switch(J){case"%s":return String(X[D++]);case"%d":return Number(X[D++]);case"%j":try{return JSON.stringify(X[D++])}catch{return"[Circular]"}default:return J}}),M=X[D];D<te;M=X[++D])A(M)||!$(M)?Z+=" "+M:Z+=" "+s(M);return Z},e.deprecate=function(w,T){if(typeof process<"u"&&process.noDeprecation===!0)return w;if(typeof process>"u")return function(){return e.deprecate(w,T).apply(this,arguments)};var D=!1;function X(){if(!D){if(process.throwDeprecation)throw new Error(T);process.traceDeprecation?console.trace(T):console.error(T),D=!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 T=process.pid;n[w]=function(){var D=e.format.apply(e,arguments);console.error("%s %d: %s",w,T,D)}}else n[w]=function(){};return n[w]};function s(w,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=c),p(D,w,D.depth)}e.inspect=s,s.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]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(w,T){var D=s.styles[T];return D?"\x1B["+s.colors[D][0]+"m"+w+"\x1B["+s.colors[D][1]+"m":w}function u(w,T){return w}function l(w){var T={};return w.forEach(function(D,X){T[D]=!0}),T}function p(w,T,D){if(w.customInspect&&T&&k(T.inspect)&&T.inspect!==e.inspect&&!(T.constructor&&T.constructor.prototype===T)){var X=T.inspect(D,w);return C(X)||(X=p(w,X,D)),X}var te=f(w,T);if(te)return te;var Z=Object.keys(T),M=l(Z);if(w.showHidden&&(Z=Object.getOwnPropertyNames(T)),N(T)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return d(T);if(Z.length===0){if(k(T)){var J=T.name?": "+T.name:"";return w.stylize("[Function"+J+"]","special")}if(I(T))return w.stylize(RegExp.prototype.toString.call(T),"regexp");if(E(T))return w.stylize(Date.prototype.toString.call(T),"date");if(N(T))return d(T)}var Y="",ee=!1,L=["{","}"];if(g(T)&&(ee=!0,L=["[","]"]),k(T)){var O=T.name?": "+T.name:"";Y=" [Function"+O+"]"}if(I(T)&&(Y=" "+RegExp.prototype.toString.call(T)),E(T)&&(Y=" "+Date.prototype.toUTCString.call(T)),N(T)&&(Y=" "+d(T)),Z.length===0&&(!ee||T.length==0))return L[0]+Y+L[1];if(D<0)return I(T)?w.stylize(RegExp.prototype.toString.call(T),"regexp"):w.stylize("[Object]","special");w.seen.push(T);var re;return ee?re=m(w,T,D,M,Z):re=Z.map(function(ae){return h(w,T,D,M,ae,ee)}),w.seen.pop(),y(re,Y,L)}function f(w,T){if(x(T))return w.stylize("undefined","undefined");if(C(T)){var D="'"+JSON.stringify(T).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return w.stylize(D,"string")}if(S(T))return w.stylize(""+T,"number");if(v(T))return w.stylize(""+T,"boolean");if(A(T))return w.stylize("null","null")}function d(w){return"["+Error.prototype.toString.call(w)+"]"}function m(w,T,D,X,te){for(var Z=[],M=0,J=T.length;M<J;++M)K(T,String(M))?Z.push(h(w,T,D,X,String(M),!0)):Z.push("");return te.forEach(function(Y){Y.match(/^\d+$/)||Z.push(h(w,T,D,X,Y,!0))}),Z}function h(w,T,D,X,te,Z){var M,J,Y;if(Y=Object.getOwnPropertyDescriptor(T,te)||{value:T[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)||(M="["+te+"]"),J||(w.seen.indexOf(Y.value)<0?(A(D)?J=p(w,Y.value,null):J=p(w,Y.value,D-1),J.indexOf(`
16
16
  `)>-1&&(Z?J=J.split(`
17
17
  `).map(function(ee){return" "+ee}).join(`
18
18
  `).slice(2):J=`
19
19
  `+J.split(`
20
20
  `).map(function(ee){return" "+ee}).join(`
21
- `))):J=w.stylize("[Circular]","special")),x(k)){if(Z&&te.match(/^\d+$/))return J;k=JSON.stringify(""+te),k.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(k=k.slice(1,-1),k=w.stylize(k,"name")):(k=k.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),k=w.stylize(k,"string"))}return k+": "+J}function y(w,T,D){var X=w.reduce(function(te,Z){return Z.indexOf(`
21
+ `))):J=w.stylize("[Circular]","special")),x(M)){if(Z&&te.match(/^\d+$/))return J;M=JSON.stringify(""+te),M.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(M=M.slice(1,-1),M=w.stylize(M,"name")):(M=M.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),M=w.stylize(M,"string"))}return M+": "+J}function y(w,T,D){var X=w.reduce(function(te,Z){return Z.indexOf(`
22
22
  `)>=0,te+Z.replace(/\u001b\[\d\d?m/g,"").length+1},0);return X>60?D[0]+(T===""?"":T+`
23
23
  `)+" "+w.join(`,
24
- `)+" "+D[1]:D[0]+T+" "+w.join(", ")+" "+D[1]}e.types=Hp();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 $(w)&&R(w)==="[object RegExp]"}e.isRegExp=I,e.types.isRegExp=I;function $(w){return typeof w=="object"&&w!==null}e.isObject=$;function E(w){return $(w)&&R(w)==="[object Date]"}e.isDate=E,e.types.isDate=E;function N(w){return $(w)&&(R(w)==="[object Error]"||w instanceof Error)}e.isError=N,e.types.isNativeError=N;function M(w){return typeof w=="function"}e.isFunction=M;function B(w){return w===null||typeof w=="boolean"||typeof w=="number"||typeof w=="string"||typeof w=="symbol"||typeof w>"u"}e.isPrimitive=B,e.isBuffer=zp();function R(w){return Object.prototype.toString.call(w)}function q(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,T=[q(w.getHours()),q(w.getMinutes()),q(w.getSeconds())].join(":");return[w.getDate(),F[w.getMonth()],T].join(" ")}e.log=function(){console.log("%s - %s",U(),e.format.apply(e,arguments))},e.inherits=Fp(),e._extend=function(w,T){if(!T||!$(T))return w;for(var D=Object.keys(T),X=D.length;X--;)w[D[X]]=T[D[X]];return w};function K(w,T){return Object.prototype.hasOwnProperty.call(w,T)}var W=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(T){if(typeof T!="function")throw new TypeError('The "original" argument must be of type Function');if(W&&T[W]){var D=T[W];if(typeof D!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(D,W,{value:D,enumerable:!1,writable:!1,configurable:!0}),D}function D(){for(var X,te,Z=new Promise(function(Y,ee){X=Y,te=ee}),k=[],J=0;J<arguments.length;J++)k.push(arguments[J]);k.push(function(Y,ee){Y?te(Y):X(ee)});try{T.apply(this,k)}catch(Y){te(Y)}return Z}return Object.setPrototypeOf(D,Object.getPrototypeOf(T)),W&&Object.defineProperty(D,W,{value:D,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(D,t(T))},e.promisify.custom=W;function z(w,T){if(!w){var D=new Error("Promise was rejected with a falsy value");D.reason=w,w=D}return T(w)}function ne(w){if(typeof w!="function")throw new TypeError('The "original" argument must be of type Function');function T(){for(var D=[],X=0;X<arguments.length;X++)D.push(arguments[X]);var te=D.pop();if(typeof te!="function")throw new TypeError("The last argument must be of type Function");var Z=this,k=function(){return te.apply(Z,arguments)};w.apply(this,D).then(function(J){process.nextTick(k.bind(null,null,J))},function(J){process.nextTick(z.bind(null,J,k))})}return Object.setPrototypeOf(T,Object.getPrototypeOf(w)),Object.defineProperties(T,t(w)),T}e.callbackify=ne}(Lr)),Lr}var ja;function Gp(){return ja||(ja=1,(()=>{var e={333:(o,i,s)=>{const c=s(137),l=s(179),u=s(13),p=s(719),f=(d,m={})=>{let h=[];if(Array.isArray(d))for(let y of d){let g=f.create(y,m);Array.isArray(g)?h.push(...g):h.push(g)}else h=[].concat(f.create(d,m));return m&&m.expand===!0&&m.nodupes===!0&&(h=[...new Set(h)]),h};f.parse=(d,m={})=>p(d,m),f.stringify=(d,m={})=>c(typeof d=="string"?f.parse(d,m):d,m),f.compile=(d,m={})=>(typeof d=="string"&&(d=f.parse(d,m)),l(d,m)),f.expand=(d,m={})=>{typeof d=="string"&&(d=f.parse(d,m));let h=u(d,m);return m.noempty===!0&&(h=h.filter(Boolean)),m.nodupes===!0&&(h=[...new Set(h)]),h},f.create=(d,m={})=>d===""||d.length<3?[d]:m.expand!==!0?f.compile(d,m):f.expand(d,m),o.exports=f},179:(o,i,s)=>{const c=s(783),l=s(617),u=(p,f={})=>{let d=(m,h={})=>{let y=l.isInvalidBrace(h),g=m.invalid===!0&&f.escapeInvalid===!0,v=y===!0||g===!0,A=f.escapeInvalid===!0?"\\":"",_="";if(m.isOpen===!0||m.isClose===!0)return A+m.value;if(m.type==="open")return v?A+m.value:"(";if(m.type==="close")return v?A+m.value:")";if(m.type==="comma")return m.prev.type==="comma"?"":v?m.value:"|";if(m.value)return m.value;if(m.nodes&&m.ranges>0){let S=l.reduce(m.nodes),C=c(...S,{...f,wrap:!1,toRegex:!0});if(C.length!==0)return S.length>1&&C.length>1?`(${C})`:C}if(m.nodes)for(let S of m.nodes)_+=d(S,m);return _};return d(p)};o.exports=u},457:o=>{o.exports={MAX_LENGTH:65536,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
25
- `,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}},13:(o,i,s)=>{const c=s(783),l=s(137),u=s(617),p=(d="",m="",h=!1)=>{let y=[];if(d=[].concat(d),m=[].concat(m),!m.length)return d;if(!d.length)return h?u.flatten(m).map(g=>`{${g}}`):m;for(let g of d)if(Array.isArray(g))for(let v of g)y.push(p(v,m,h));else for(let v of m)h===!0&&typeof v=="string"&&(v=`{${v}}`),y.push(Array.isArray(v)?p(g,v,h):g+v);return u.flatten(y)},f=(d,m={})=>{let h=m.rangeLimit===void 0?1e3:m.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(),l(g,m)));return}if(g.type==="brace"&&g.invalid!==!0&&g.nodes.length===2){_.push(p(_.pop(),["{}"]));return}if(g.nodes&&g.ranges>0){let x=u.reduce(g.nodes);if(u.exceedsLimit(...x,m.step,h))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let I=c(...x,m);I.length===0&&(I=l(g,m)),_.push(p(_.pop(),I)),g.nodes=[];return}let S=u.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 u.flatten(y(d))};o.exports=f},719:(o,i,s)=>{const c=s(137),{MAX_LENGTH:l,CHAR_BACKSLASH:u,CHAR_BACKTICK:p,CHAR_COMMA:f,CHAR_DOT:d,CHAR_LEFT_PARENTHESES:m,CHAR_RIGHT_PARENTHESES:h,CHAR_LEFT_CURLY_BRACE:y,CHAR_RIGHT_CURLY_BRACE:g,CHAR_LEFT_SQUARE_BRACKET:v,CHAR_RIGHT_SQUARE_BRACKET:A,CHAR_DOUBLE_QUOTE:_,CHAR_SINGLE_QUOTE:S,CHAR_NO_BREAK_SPACE:C,CHAR_ZERO_WIDTH_NOBREAK_SPACE:j}=s(457),x=(I,$={})=>{if(typeof I!="string")throw new TypeError("Expected a string");let E=$||{},N=typeof E.maxLength=="number"?Math.min(l,E.maxLength):l;if(I.length>N)throw new SyntaxError(`Input length (${I.length}), exceeds max characters (${N})`);let M={type:"root",input:I,nodes:[]},B=[M],R=M,q=M,F=0,U=I.length,K=0,W=0,z;const ne=()=>I[K++],w=T=>{if(T.type==="text"&&q.type==="dot"&&(q.type="text"),q&&q.type==="text"&&T.type==="text"){q.value+=T.value;return}return R.nodes.push(T),T.parent=R,T.prev=q,q=T,T};for(w({type:"bos"});K<U;)if(R=B[B.length-1],z=ne(),!(z===j||z===C)){if(z===u){w({type:"text",value:($.keepEscaping?z:"")+ne()});continue}if(z===A){w({type:"text",value:"\\"+z});continue}if(z===v){F++;let T;for(;K<U&&(T=ne());){if(z+=T,T===v){F++;continue}if(T===u){z+=ne();continue}if(T===A&&(F--,F===0))break}w({type:"text",value:z});continue}if(z===m){R=w({type:"paren",nodes:[]}),B.push(R),w({type:"text",value:z});continue}if(z===h){if(R.type!=="paren"){w({type:"text",value:z});continue}R=B.pop(),w({type:"text",value:z}),R=B[B.length-1];continue}if(z===_||z===S||z===p){let T=z,D;for($.keepQuotes!==!0&&(z="");K<U&&(D=ne());){if(D===u){z+=D+ne();continue}if(D===T){$.keepQuotes===!0&&(z+=D);break}z+=D}w({type:"text",value:z});continue}if(z===y){W++;let D={type:"brace",open:!0,close:!1,dollar:q.value&&q.value.slice(-1)==="$"||R.dollar===!0,depth:W,commas:0,ranges:0,nodes:[]};R=w(D),B.push(R),w({type:"open",value:z});continue}if(z===g){if(R.type!=="brace"){w({type:"text",value:z});continue}let T="close";R=B.pop(),R.close=!0,w({type:T,value:z}),W--,R=B[B.length-1];continue}if(z===f&&W>0){if(R.ranges>0){R.ranges=0;let T=R.nodes.shift();R.nodes=[T,{type:"text",value:c(R)}]}w({type:"comma",value:z}),R.commas++;continue}if(z===d&&W>0&&R.commas===0){let T=R.nodes;if(W===0||T.length===0){w({type:"text",value:z});continue}if(q.type==="dot"){if(R.range=[],q.value+=z,q.type="range",R.nodes.length!==3&&R.nodes.length!==5){R.invalid=!0,R.ranges=0,q.type="text";continue}R.ranges++,R.args=[];continue}if(q.type==="range"){T.pop();let D=T[T.length-1];D.value+=q.value+z,q=D,R.ranges--;continue}w({type:"dot",value:z});continue}w({type:"text",value:z})}do if(R=B.pop(),R.type!=="root"){R.nodes.forEach(X=>{X.nodes||(X.type==="open"&&(X.isOpen=!0),X.type==="close"&&(X.isClose=!0),X.nodes||(X.type="text"),X.invalid=!0)});let T=B[B.length-1],D=T.nodes.indexOf(R);T.nodes.splice(D,1,...R.nodes)}while(B.length>0);return w({type:"eos"}),M};o.exports=x},137:(o,i,s)=>{const c=s(617);o.exports=(l,u={})=>{let p=(f,d={})=>{let m=u.escapeInvalid&&c.isInvalidBrace(d),h=f.invalid===!0&&u.escapeInvalid===!0,y="";if(f.value)return(m||h)&&c.isOpenOrClose(f)?"\\"+f.value:f.value;if(f.value)return f.value;if(f.nodes)for(let g of f.nodes)y+=p(g);return y};return p(l)}},617:(o,i)=>{i.isInteger=s=>typeof s=="number"?Number.isInteger(s):typeof s=="string"&&s.trim()!==""?Number.isInteger(Number(s)):!1,i.find=(s,c)=>s.nodes.find(l=>l.type===c),i.exceedsLimit=(s,c,l=1,u)=>u===!1||!i.isInteger(s)||!i.isInteger(c)?!1:(Number(c)-Number(s))/Number(l)>=u,i.escapeNode=(s,c=0,l)=>{let u=s.nodes[c];u&&(l&&u.type===l||u.type==="open"||u.type==="close")&&u.escaped!==!0&&(u.value="\\"+u.value,u.escaped=!0)},i.encloseBrace=s=>s.type!=="brace"||s.commas>>0+s.ranges>>0?!1:(s.invalid=!0,!0),i.isInvalidBrace=s=>s.type!=="brace"?!1:s.invalid===!0||s.dollar?!0:!(s.commas>>0+s.ranges>>0)||s.open!==!0||s.close!==!0?(s.invalid=!0,!0):!1,i.isOpenOrClose=s=>s.type==="open"||s.type==="close"?!0:s.open===!0||s.close===!0,i.reduce=s=>s.reduce((c,l)=>(l.type==="text"&&c.push(l.value),l.type==="range"&&(l.type="text"),c),[]),i.flatten=(...s)=>{const c=[],l=u=>{for(let p=0;p<u.length;p++){let f=u[p];Array.isArray(f)?l(f):f!==void 0&&c.push(f)}return c};return l(s),c}},783:(o,i,s)=>{/*!
24
+ `)+" "+D[1]:D[0]+T+" "+w.join(", ")+" "+D[1]}e.types=Np();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 $(w)&&R(w)==="[object RegExp]"}e.isRegExp=I,e.types.isRegExp=I;function $(w){return typeof w=="object"&&w!==null}e.isObject=$;function E(w){return $(w)&&R(w)==="[object Date]"}e.isDate=E,e.types.isDate=E;function N(w){return $(w)&&(R(w)==="[object Error]"||w instanceof Error)}e.isError=N,e.types.isNativeError=N;function k(w){return typeof w=="function"}e.isFunction=k;function B(w){return w===null||typeof w=="boolean"||typeof w=="number"||typeof w=="string"||typeof w=="symbol"||typeof w>"u"}e.isPrimitive=B,e.isBuffer=Op();function R(w){return Object.prototype.toString.call(w)}function q(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,T=[q(w.getHours()),q(w.getMinutes()),q(w.getSeconds())].join(":");return[w.getDate(),F[w.getMonth()],T].join(" ")}e.log=function(){console.log("%s - %s",U(),e.format.apply(e,arguments))},e.inherits=Tp(),e._extend=function(w,T){if(!T||!$(T))return w;for(var D=Object.keys(T),X=D.length;X--;)w[D[X]]=T[D[X]];return w};function K(w,T){return Object.prototype.hasOwnProperty.call(w,T)}var G=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(T){if(typeof T!="function")throw new TypeError('The "original" argument must be of type Function');if(G&&T[G]){var D=T[G];if(typeof D!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(D,G,{value:D,enumerable:!1,writable:!1,configurable:!0}),D}function D(){for(var X,te,Z=new Promise(function(Y,ee){X=Y,te=ee}),M=[],J=0;J<arguments.length;J++)M.push(arguments[J]);M.push(function(Y,ee){Y?te(Y):X(ee)});try{T.apply(this,M)}catch(Y){te(Y)}return Z}return Object.setPrototypeOf(D,Object.getPrototypeOf(T)),G&&Object.defineProperty(D,G,{value:D,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(D,t(T))},e.promisify.custom=G;function z(w,T){if(!w){var D=new Error("Promise was rejected with a falsy value");D.reason=w,w=D}return T(w)}function ne(w){if(typeof w!="function")throw new TypeError('The "original" argument must be of type Function');function T(){for(var D=[],X=0;X<arguments.length;X++)D.push(arguments[X]);var te=D.pop();if(typeof te!="function")throw new TypeError("The last argument must be of type Function");var Z=this,M=function(){return te.apply(Z,arguments)};w.apply(this,D).then(function(J){process.nextTick(M.bind(null,null,J))},function(J){process.nextTick(z.bind(null,J,M))})}return Object.setPrototypeOf(T,Object.getPrototypeOf(w)),Object.defineProperties(T,t(w)),T}e.callbackify=ne}(Dr)),Dr}var Sa;function kp(){return Sa||(Sa=1,(()=>{var e={333:(o,i,s)=>{const c=s(137),u=s(179),l=s(13),p=s(719),f=(d,m={})=>{let h=[];if(Array.isArray(d))for(let y of d){let g=f.create(y,m);Array.isArray(g)?h.push(...g):h.push(g)}else h=[].concat(f.create(d,m));return m&&m.expand===!0&&m.nodupes===!0&&(h=[...new Set(h)]),h};f.parse=(d,m={})=>p(d,m),f.stringify=(d,m={})=>c(typeof d=="string"?f.parse(d,m):d,m),f.compile=(d,m={})=>(typeof d=="string"&&(d=f.parse(d,m)),u(d,m)),f.expand=(d,m={})=>{typeof d=="string"&&(d=f.parse(d,m));let h=l(d,m);return m.noempty===!0&&(h=h.filter(Boolean)),m.nodupes===!0&&(h=[...new Set(h)]),h},f.create=(d,m={})=>d===""||d.length<3?[d]:m.expand!==!0?f.compile(d,m):f.expand(d,m),o.exports=f},179:(o,i,s)=>{const c=s(783),u=s(617),l=(p,f={})=>{let d=(m,h={})=>{let y=u.isInvalidBrace(h),g=m.invalid===!0&&f.escapeInvalid===!0,v=y===!0||g===!0,A=f.escapeInvalid===!0?"\\":"",_="";if(m.isOpen===!0||m.isClose===!0)return A+m.value;if(m.type==="open")return v?A+m.value:"(";if(m.type==="close")return v?A+m.value:")";if(m.type==="comma")return m.prev.type==="comma"?"":v?m.value:"|";if(m.value)return m.value;if(m.nodes&&m.ranges>0){let S=u.reduce(m.nodes),C=c(...S,{...f,wrap:!1,toRegex:!0});if(C.length!==0)return S.length>1&&C.length>1?`(${C})`:C}if(m.nodes)for(let S of m.nodes)_+=d(S,m);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,s)=>{const c=s(783),u=s(137),l=s(617),p=(d="",m="",h=!1)=>{let y=[];if(d=[].concat(d),m=[].concat(m),!m.length)return d;if(!d.length)return h?l.flatten(m).map(g=>`{${g}}`):m;for(let g of d)if(Array.isArray(g))for(let v of g)y.push(p(v,m,h));else for(let v of m)h===!0&&typeof v=="string"&&(v=`{${v}}`),y.push(Array.isArray(v)?p(g,v,h):g+v);return l.flatten(y)},f=(d,m={})=>{let h=m.rangeLimit===void 0?1e3:m.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,m)));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,m.step,h))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let I=c(...x,m);I.length===0&&(I=u(g,m)),_.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=f},719:(o,i,s)=>{const c=s(137),{MAX_LENGTH:u,CHAR_BACKSLASH:l,CHAR_BACKTICK:p,CHAR_COMMA:f,CHAR_DOT:d,CHAR_LEFT_PARENTHESES:m,CHAR_RIGHT_PARENTHESES:h,CHAR_LEFT_CURLY_BRACE:y,CHAR_RIGHT_CURLY_BRACE:g,CHAR_LEFT_SQUARE_BRACKET:v,CHAR_RIGHT_SQUARE_BRACKET:A,CHAR_DOUBLE_QUOTE:_,CHAR_SINGLE_QUOTE:S,CHAR_NO_BREAK_SPACE:C,CHAR_ZERO_WIDTH_NOBREAK_SPACE:j}=s(457),x=(I,$={})=>{if(typeof I!="string")throw new TypeError("Expected a string");let E=$||{},N=typeof E.maxLength=="number"?Math.min(u,E.maxLength):u;if(I.length>N)throw new SyntaxError(`Input length (${I.length}), exceeds max characters (${N})`);let k={type:"root",input:I,nodes:[]},B=[k],R=k,q=k,F=0,U=I.length,K=0,G=0,z;const ne=()=>I[K++],w=T=>{if(T.type==="text"&&q.type==="dot"&&(q.type="text"),q&&q.type==="text"&&T.type==="text"){q.value+=T.value;return}return R.nodes.push(T),T.parent=R,T.prev=q,q=T,T};for(w({type:"bos"});K<U;)if(R=B[B.length-1],z=ne(),!(z===j||z===C)){if(z===l){w({type:"text",value:($.keepEscaping?z:"")+ne()});continue}if(z===A){w({type:"text",value:"\\"+z});continue}if(z===v){F++;let T;for(;K<U&&(T=ne());){if(z+=T,T===v){F++;continue}if(T===l){z+=ne();continue}if(T===A&&(F--,F===0))break}w({type:"text",value:z});continue}if(z===m){R=w({type:"paren",nodes:[]}),B.push(R),w({type:"text",value:z});continue}if(z===h){if(R.type!=="paren"){w({type:"text",value:z});continue}R=B.pop(),w({type:"text",value:z}),R=B[B.length-1];continue}if(z===_||z===S||z===p){let T=z,D;for($.keepQuotes!==!0&&(z="");K<U&&(D=ne());){if(D===l){z+=D+ne();continue}if(D===T){$.keepQuotes===!0&&(z+=D);break}z+=D}w({type:"text",value:z});continue}if(z===y){G++;let D={type:"brace",open:!0,close:!1,dollar:q.value&&q.value.slice(-1)==="$"||R.dollar===!0,depth:G,commas:0,ranges:0,nodes:[]};R=w(D),B.push(R),w({type:"open",value:z});continue}if(z===g){if(R.type!=="brace"){w({type:"text",value:z});continue}let T="close";R=B.pop(),R.close=!0,w({type:T,value:z}),G--,R=B[B.length-1];continue}if(z===f&&G>0){if(R.ranges>0){R.ranges=0;let T=R.nodes.shift();R.nodes=[T,{type:"text",value:c(R)}]}w({type:"comma",value:z}),R.commas++;continue}if(z===d&&G>0&&R.commas===0){let T=R.nodes;if(G===0||T.length===0){w({type:"text",value:z});continue}if(q.type==="dot"){if(R.range=[],q.value+=z,q.type="range",R.nodes.length!==3&&R.nodes.length!==5){R.invalid=!0,R.ranges=0,q.type="text";continue}R.ranges++,R.args=[];continue}if(q.type==="range"){T.pop();let D=T[T.length-1];D.value+=q.value+z,q=D,R.ranges--;continue}w({type:"dot",value:z});continue}w({type:"text",value:z})}do if(R=B.pop(),R.type!=="root"){R.nodes.forEach(X=>{X.nodes||(X.type==="open"&&(X.isOpen=!0),X.type==="close"&&(X.isClose=!0),X.nodes||(X.type="text"),X.invalid=!0)});let T=B[B.length-1],D=T.nodes.indexOf(R);T.nodes.splice(D,1,...R.nodes)}while(B.length>0);return w({type:"eos"}),k};o.exports=x},137:(o,i,s)=>{const c=s(617);o.exports=(u,l={})=>{let p=(f,d={})=>{let m=l.escapeInvalid&&c.isInvalidBrace(d),h=f.invalid===!0&&l.escapeInvalid===!0,y="";if(f.value)return(m||h)&&c.isOpenOrClose(f)?"\\"+f.value:f.value;if(f.value)return f.value;if(f.nodes)for(let g of f.nodes)y+=p(g);return y};return p(u)}},617:(o,i)=>{i.isInteger=s=>typeof s=="number"?Number.isInteger(s):typeof s=="string"&&s.trim()!==""?Number.isInteger(Number(s)):!1,i.find=(s,c)=>s.nodes.find(u=>u.type===c),i.exceedsLimit=(s,c,u=1,l)=>l===!1||!i.isInteger(s)||!i.isInteger(c)?!1:(Number(c)-Number(s))/Number(u)>=l,i.escapeNode=(s,c=0,u)=>{let l=s.nodes[c];l&&(u&&l.type===u||l.type==="open"||l.type==="close")&&l.escaped!==!0&&(l.value="\\"+l.value,l.escaped=!0)},i.encloseBrace=s=>s.type!=="brace"||s.commas>>0+s.ranges>>0?!1:(s.invalid=!0,!0),i.isInvalidBrace=s=>s.type!=="brace"?!1:s.invalid===!0||s.dollar?!0:!(s.commas>>0+s.ranges>>0)||s.open!==!0||s.close!==!0?(s.invalid=!0,!0):!1,i.isOpenOrClose=s=>s.type==="open"||s.type==="close"?!0:s.open===!0||s.close===!0,i.reduce=s=>s.reduce((c,u)=>(u.type==="text"&&c.push(u.value),u.type==="range"&&(u.type="text"),c),[]),i.flatten=(...s)=>{const c=[],u=l=>{for(let p=0;p<l.length;p++){let f=l[p];Array.isArray(f)?u(f):f!==void 0&&c.push(f)}return c};return u(s),c}},783:(o,i,s)=>{/*!
26
26
  * fill-range <https://github.com/jonschlinkert/fill-range>
27
27
  *
28
28
  * Copyright (c) 2014-present, Jon Schlinkert.
29
29
  * Licensed under the MIT License.
30
- */const c=s(837),l=s(492),u=E=>E!==null&&typeof E=="object"&&!Array.isArray(E),p=E=>N=>E===!0?Number(N):String(N),f=E=>typeof E=="number"||typeof E=="string"&&E!=="",d=E=>Number.isInteger(+E),m=E=>{let N=`${E}`,M=-1;if(N[0]==="-"&&(N=N.slice(1)),N==="0")return!1;for(;N[++M]==="0";);return M>0},h=(E,N,M)=>typeof E=="string"||typeof N=="string"?!0:M.stringify===!0,y=(E,N,M)=>{if(N>0){let B=E[0]==="-"?"-":"";B&&(E=E.slice(1)),E=B+E.padStart(B?N-1:N,"0")}return M===!1?String(E):E},g=(E,N)=>{let M=E[0]==="-"?"-":"";for(M&&(E=E.slice(1),N--);E.length<N;)E="0"+E;return M?"-"+E:E},v=(E,N)=>{E.negatives.sort((F,U)=>F<U?-1:F>U?1:0),E.positives.sort((F,U)=>F<U?-1:F>U?1:0);let M=N.capture?"":"?:",B="",R="",q;return E.positives.length&&(B=E.positives.join("|")),E.negatives.length&&(R=`-(${M}${E.negatives.join("|")})`),B&&R?q=`${B}|${R}`:q=B||R,N.wrap?`(${M}${q})`:q},A=(E,N,M,B)=>{if(M)return l(E,N,{wrap:!1,...B});let R=String.fromCharCode(E);if(E===N)return R;let q=String.fromCharCode(N);return`[${R}-${q}]`},_=(E,N,M)=>{if(Array.isArray(E)){let B=M.wrap===!0,R=M.capture?"":"?:";return B?`(${R}${E.join("|")})`:E.join("|")}return l(E,N,M)},S=(...E)=>new RangeError("Invalid range arguments: "+c.inspect(...E)),C=(E,N,M)=>{if(M.strictRanges===!0)throw S([E,N]);return[]},j=(E,N)=>{if(N.strictRanges===!0)throw new TypeError(`Expected step "${E}" to be a number`);return[]},x=(E,N,M=1,B={})=>{let R=Number(E),q=Number(N);if(!Number.isInteger(R)||!Number.isInteger(q)){if(B.strictRanges===!0)throw S([E,N]);return[]}R===0&&(R=0),q===0&&(q=0);let F=R>q,U=String(E),K=String(N),W=String(M);M=Math.max(Math.abs(M),1);let z=m(U)||m(K)||m(W),ne=z?Math.max(U.length,K.length,W.length):0,w=z===!1&&h(E,N,B)===!1,T=B.transform||p(w);if(B.toRegex&&M===1)return A(g(E,ne),g(N,ne),!0,B);let D={negatives:[],positives:[]},X=k=>D[k<0?"negatives":"positives"].push(Math.abs(k)),te=[],Z=0;for(;F?R>=q:R<=q;)B.toRegex===!0&&M>1?X(R):te.push(y(T(R,Z),ne,w)),R=F?R-M:R+M,Z++;return B.toRegex===!0?M>1?v(D,B):_(te,null,{wrap:!1,...B}):te},I=(E,N,M=1,B={})=>{if(!d(E)&&E.length>1||!d(N)&&N.length>1)return C(E,N,B);let R=B.transform||(w=>String.fromCharCode(w)),q=`${E}`.charCodeAt(0),F=`${N}`.charCodeAt(0),U=q>F,K=Math.min(q,F),W=Math.max(q,F);if(B.toRegex&&M===1)return A(K,W,!1,B);let z=[],ne=0;for(;U?q>=F:q<=F;)z.push(R(q,ne)),q=U?q-M:q+M,ne++;return B.toRegex===!0?_(z,null,{wrap:!1,options:B}):z},$=(E,N,M,B={})=>{if(N==null&&f(E))return[E];if(!f(E)||!f(N))return C(E,N,B);if(typeof M=="function")return $(E,N,1,{transform:M});if(u(M))return $(E,N,0,M);let R={...B};return R.capture===!0&&(R.wrap=!0),M=M||R.step||1,d(M)?d(E)&&d(N)?x(E,N,M,R):I(E,N,Math.max(Math.abs(M),1),R):M!=null&&!u(M)?j(M,R):$(E,N,1,M)};o.exports=$},357:o=>{/*!
30
+ */const c=s(837),u=s(492),l=E=>E!==null&&typeof E=="object"&&!Array.isArray(E),p=E=>N=>E===!0?Number(N):String(N),f=E=>typeof E=="number"||typeof E=="string"&&E!=="",d=E=>Number.isInteger(+E),m=E=>{let N=`${E}`,k=-1;if(N[0]==="-"&&(N=N.slice(1)),N==="0")return!1;for(;N[++k]==="0";);return k>0},h=(E,N,k)=>typeof E=="string"||typeof N=="string"?!0:k.stringify===!0,y=(E,N,k)=>{if(N>0){let B=E[0]==="-"?"-":"";B&&(E=E.slice(1)),E=B+E.padStart(B?N-1:N,"0")}return k===!1?String(E):E},g=(E,N)=>{let k=E[0]==="-"?"-":"";for(k&&(E=E.slice(1),N--);E.length<N;)E="0"+E;return k?"-"+E:E},v=(E,N)=>{E.negatives.sort((F,U)=>F<U?-1:F>U?1:0),E.positives.sort((F,U)=>F<U?-1:F>U?1:0);let k=N.capture?"":"?:",B="",R="",q;return E.positives.length&&(B=E.positives.join("|")),E.negatives.length&&(R=`-(${k}${E.negatives.join("|")})`),B&&R?q=`${B}|${R}`:q=B||R,N.wrap?`(${k}${q})`:q},A=(E,N,k,B)=>{if(k)return u(E,N,{wrap:!1,...B});let R=String.fromCharCode(E);if(E===N)return R;let q=String.fromCharCode(N);return`[${R}-${q}]`},_=(E,N,k)=>{if(Array.isArray(E)){let B=k.wrap===!0,R=k.capture?"":"?:";return B?`(${R}${E.join("|")})`:E.join("|")}return u(E,N,k)},S=(...E)=>new RangeError("Invalid range arguments: "+c.inspect(...E)),C=(E,N,k)=>{if(k.strictRanges===!0)throw S([E,N]);return[]},j=(E,N)=>{if(N.strictRanges===!0)throw new TypeError(`Expected step "${E}" to be a number`);return[]},x=(E,N,k=1,B={})=>{let R=Number(E),q=Number(N);if(!Number.isInteger(R)||!Number.isInteger(q)){if(B.strictRanges===!0)throw S([E,N]);return[]}R===0&&(R=0),q===0&&(q=0);let F=R>q,U=String(E),K=String(N),G=String(k);k=Math.max(Math.abs(k),1);let z=m(U)||m(K)||m(G),ne=z?Math.max(U.length,K.length,G.length):0,w=z===!1&&h(E,N,B)===!1,T=B.transform||p(w);if(B.toRegex&&k===1)return A(g(E,ne),g(N,ne),!0,B);let D={negatives:[],positives:[]},X=M=>D[M<0?"negatives":"positives"].push(Math.abs(M)),te=[],Z=0;for(;F?R>=q:R<=q;)B.toRegex===!0&&k>1?X(R):te.push(y(T(R,Z),ne,w)),R=F?R-k:R+k,Z++;return B.toRegex===!0?k>1?v(D,B):_(te,null,{wrap:!1,...B}):te},I=(E,N,k=1,B={})=>{if(!d(E)&&E.length>1||!d(N)&&N.length>1)return C(E,N,B);let R=B.transform||(w=>String.fromCharCode(w)),q=`${E}`.charCodeAt(0),F=`${N}`.charCodeAt(0),U=q>F,K=Math.min(q,F),G=Math.max(q,F);if(B.toRegex&&k===1)return A(K,G,!1,B);let z=[],ne=0;for(;U?q>=F:q<=F;)z.push(R(q,ne)),q=U?q-k:q+k,ne++;return B.toRegex===!0?_(z,null,{wrap:!1,options:B}):z},$=(E,N,k,B={})=>{if(N==null&&f(E))return[E];if(!f(E)||!f(N))return C(E,N,B);if(typeof k=="function")return $(E,N,1,{transform:k});if(l(k))return $(E,N,0,k);let R={...B};return R.capture===!0&&(R.wrap=!0),k=k||R.step||1,d(k)?d(E)&&d(N)?x(E,N,k,R):I(E,N,Math.max(Math.abs(k),1),R):k!=null&&!l(k)?j(k,R):$(E,N,1,k)};o.exports=$},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,s)=>{const c=s(837),l=s(333),u=s(251),p=s(513),f=m=>m===""||m==="./",d=(m,h,y)=>{h=[].concat(h),m=[].concat(m);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=u(String(h[x]),{...y,onResult:S},!0),$=I.state.negated||I.state.negatedExtglob;$&&_++;for(let E of m){let N=I(E,!0);($?!N.isMatch:N.isMatch)&&($?g.add(N.output):(g.delete(N.output),v.add(N.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=(m,h)=>u(m,h),d.isMatch=(m,h,y)=>u(h,y)(m),d.any=d.isMatch,d.not=(m,h,y={})=>{h=[].concat(h).map(String);let g=new Set,v=[],_=d(m,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=(m,h,y)=>{if(typeof m!="string")throw new TypeError(`Expected a string: "${c.inspect(m)}"`);if(Array.isArray(h))return h.some(g=>d.contains(m,g,y));if(typeof h=="string"){if(f(m)||f(h))return!1;if(m.includes(h)||m.startsWith("./")&&m.slice(2).includes(h))return!0}return d.isMatch(m,h,{...y,contains:!0})},d.matchKeys=(m,h,y)=>{if(!p.isObject(m))throw new TypeError("Expected the first argument to be an object");let g=d(Object.keys(m),h,y),v={};for(let A of g)v[A]=m[A];return v},d.some=(m,h,y)=>{let g=[].concat(m);for(let v of[].concat(h)){let A=u(String(v),y);if(g.some(_=>A(_)))return!0}return!1},d.every=(m,h,y)=>{let g=[].concat(m);for(let v of[].concat(h)){let A=u(String(v),y);if(!g.every(_=>A(_)))return!1}return!0},d.all=(m,h,y)=>{if(typeof m!="string")throw new TypeError(`Expected a string: "${c.inspect(m)}"`);return[].concat(h).every(g=>u(g,y)(m))},d.capture=(m,h,y)=>{let g=p.isWindows(y),A=u.makeRe(String(m),{...y,capture:!0}).exec(g?p.toPosixSlashes(h):h);if(A)return A.slice(1).map(_=>_===void 0?"":_)},d.makeRe=(...m)=>u.makeRe(...m),d.scan=(...m)=>u.scan(...m),d.parse=(m,h)=>{let y=[];for(let g of[].concat(m||[]))for(let v of l(String(g),h))y.push(u.parse(v,h));return y},d.braces=(m,h)=>{if(typeof m!="string")throw new TypeError("Expected a string");return h&&h.nobrace===!0||!/\{.*\}/.test(m)?[m]:l(m,h)},d.braceExpand=(m,h)=>{if(typeof m!="string")throw new TypeError("Expected a string");return d.braces(m,{...h,expand:!0})},o.exports=d},251:(o,i,s)=>{o.exports=s(683)},356:(o,i,s)=>{const c=s(17),l="\\\\/",u=`[^${l}]`,p="\\.",f="\\+",d="\\?",m="\\/",h="(?=.)",y="[^/]",g=`(?:${m}|$)`,v=`(?:^|${m})`,A=`${p}{1,2}${g}`,_=`(?!${p})`,S=`(?!${v}${A})`,C=`(?!${p}{0,1}${g})`,j=`(?!${A})`,x=`[^.${m}]`,I=`${y}*?`,$={DOT_LITERAL:p,PLUS_LITERAL:f,QMARK_LITERAL:d,SLASH_LITERAL:m,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},E={...$,SLASH_LITERAL:`[${l}]`,QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${p}{1,2}(?:[${l}]|$)`,NO_DOT:`(?!${p})`,NO_DOTS:`(?!(?:^|[${l}])${p}{1,2}(?:[${l}]|$))`,NO_DOT_SLASH:`(?!${p}{0,1}(?:[${l}]|$))`,NO_DOTS_SLASH:`(?!${p}{1,2}(?:[${l}]|$))`,QMARK_NO_DOT:`[^.${l}]`,START_ANCHOR:`(?:^|[${l}])`,END_ANCHOR:`(?:[${l}]|$)`},N={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};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:c.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?E:$}}},754:(o,i,s)=>{const c=s(356),l=s(513),{MAX_LENGTH:u,POSIX_REGEX_SOURCE:p,REGEX_NON_SPECIAL_CHARS:f,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:m}=c,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=>l.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=m[v]||v;const _={...A},S=typeof _.maxLength=="number"?Math.min(u,_.maxLength):u;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?"":"?:",$=l.isWindows(A),E=c.globChars($),N=c.extglobChars(E),{DOT_LITERAL:M,PLUS_LITERAL:B,SLASH_LITERAL:R,ONE_CHAR:q,DOTS_SLASH:F,NO_DOT:U,NO_DOT_SLASH:K,NO_DOTS_SLASH:W,QMARK:z,QMARK_NO_DOT:ne,STAR:w,START_ANCHOR:T}=E,D=Q=>`(${I}(?:(?!${T}${Q.dot?F:M}).)*?)`,X=_.dot?"":U,te=_.dot?z:ne;let Z=_.bash===!0?D(_):w;_.capture&&(Z=`(${Z})`),typeof _.noext=="boolean"&&(_.noextglob=_.noext);const k={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=l.removePrefix(v,k),C=v.length;const J=[],Y=[],ee=[];let L=j,O;const re=()=>k.index===C-1,ae=k.peek=(Q=1)=>v[k.index+Q],ce=k.advance=()=>v[++k.index],le=()=>v.slice(k.index+1),se=(Q="",oe=0)=>{k.consumed+=Q,k.index+=oe},H=Q=>{k.output+=Q.output!=null?Q.output:Q.value,se(Q.value)},he=()=>{let Q=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)ce(),k.start++,Q++;return Q%2===0?!1:(k.negated=!0,k.start++,!0)},ie=Q=>{k[Q]++,ee.push(Q)},me=Q=>{k[Q]--,ee.pop()},G=Q=>{if(L.type==="globstar"){const oe=k.braces>0&&(Q.type==="comma"||Q.type==="brace"),V=Q.extglob===!0||J.length&&(Q.type==="pipe"||Q.type==="paren");Q.type!=="slash"&&Q.type!=="paren"&&!oe&&!V&&(k.output=k.output.slice(0,-L.output.length),L.type="star",L.value="*",L.output=Z,k.output+=L.output)}if(J.length&&Q.type!=="paren"&&!N[Q.value]&&(J[J.length-1].inner+=Q.value),(Q.value||Q.output)&&H(Q),L&&L.type==="text"&&Q.type==="text"){L.value+=Q.value,L.output=(L.output||"")+Q.value;return}Q.prev=L,x.push(Q),L=Q},ue=(Q,oe)=>{const V={...N[oe],conditions:1,inner:""};V.prev=L,V.parens=k.parens,V.output=k.output;const de=(_.capture?"(":"")+V.open;ie("parens"),G({type:Q,value:oe,output:k.output?"":q}),G({type:"paren",extglob:!0,value:ce(),output:de}),J.push(V)},Ce=Q=>{let oe=Q.close+(_.capture?")":"");if(Q.type==="negate"){let V=Z;Q.inner&&Q.inner.length>1&&Q.inner.includes("/")&&(V=D(_)),(V!==Z||re()||/^\)+$/.test(le()))&&(oe=Q.close=`)$))${V}`),Q.prev.type==="bos"&&(k.negatedExtglob=!0)}G({type:"paren",extglob:!0,value:O,output:oe}),me("parens")};if(_.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(v)){let Q=!1,oe=v.replace(d,(V,de,ye,Ae,be,Qt)=>Ae==="\\"?(Q=!0,V):Ae==="?"?de?de+Ae+(be?z.repeat(be.length):""):Qt===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?(k.output=v,k):(k.output=l.wrapOutput(oe,k,A),k)}for(;!re();){if(O=ce(),O==="\0")continue;if(O==="\\"){const V=ae();if(V==="/"&&_.bash!==!0||V==="."||V===";")continue;if(!V){O+="\\",G({type:"text",value:O});continue}const de=/^\\+/.exec(le());let ye=0;if(de&&de[0].length>2&&(ye=de[0].length,k.index+=ye,ye%2!==0&&(O+="\\")),_.unescape===!0?O=ce()||"":O+=ce()||"",k.brackets===0){G({type:"text",value:O});continue}}if(k.brackets>0&&(O!=="]"||L.value==="["||L.value==="[^")){if(_.posix!==!1&&O===":"){const V=L.value.slice(1);if(V.includes("[")&&(L.posix=!0,V.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,k.backtrack=!0,ce(),!j.output&&x.indexOf(L)===1&&(j.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(k.quotes===1&&O!=='"'){O=l.escapeRegex(O),L.value+=O,H({value:O});continue}if(O==='"'){k.quotes=k.quotes===1?0:1,_.keepQuotes===!0&&G({type:"text",value:O});continue}if(O==="("){ie("parens"),G({type:"paren",value:O});continue}if(O===")"){if(k.parens===0&&_.strictBrackets===!0)throw new SyntaxError(y("opening","("));const V=J[J.length-1];if(V&&k.parens===V.parens+1){Ce(J.pop());continue}G({type:"paren",value:O,output:k.parens?")":"\\)"}),me("parens");continue}if(O==="["){if(_.nobracket===!0||!le().includes("]")){if(_.nobracket!==!0&&_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));O=`\\${O}`}else ie("brackets");G({type:"bracket",value:O});continue}if(O==="]"){if(_.nobracket===!0||L&&L.type==="bracket"&&L.value.length===1){G({type:"text",value:O,output:`\\${O}`});continue}if(k.brackets===0){if(_.strictBrackets===!0)throw new SyntaxError(y("opening","["));G({type:"text",value:O,output:`\\${O}`});continue}me("brackets");const V=L.value.slice(1);if(L.posix!==!0&&V[0]==="^"&&!V.includes("/")&&(O=`/${O}`),L.value+=O,H({value:O}),_.literalBrackets===!1||l.hasRegexChars(V))continue;const de=l.escapeRegex(L.value);if(k.output=k.output.slice(0,-L.value.length),_.literalBrackets===!0){k.output+=de,L.value=de;continue}L.value=`(${I}${de}|${L.value})`,k.output+=L.value;continue}if(O==="{"&&_.nobrace!==!0){ie("braces");const V={type:"brace",value:O,output:"(",outputIndex:k.output.length,tokensIndex:k.tokens.length};Y.push(V),G(V);continue}if(O==="}"){const V=Y[Y.length-1];if(_.nobrace===!0||!V){G({type:"text",value:O,output:O});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,_),k.backtrack=!0}if(V.comma!==!0&&V.dots!==!0){const ye=k.output.slice(0,V.outputIndex),Ae=k.tokens.slice(V.tokensIndex);V.value=V.output="\\{",O=de="\\}",k.output=ye;for(const be of Ae)k.output+=be.output||be.value}G({type:"brace",value:O,output:de}),me("braces"),Y.pop();continue}if(O==="|"){J.length>0&&J[J.length-1].conditions++,G({type:"text",value:O});continue}if(O===","){let V=O;const de=Y[Y.length-1];de&&ee[ee.length-1]==="braces"&&(de.comma=!0,V="|"),G({type:"comma",value:O,output:V});continue}if(O==="/"){if(L.type==="dot"&&k.index===k.start+1){k.start=k.index+1,k.consumed="",k.output="",x.pop(),L=j;continue}G({type:"slash",value:O,output:R});continue}if(O==="."){if(k.braces>0&&L.type==="dot"){L.value==="."&&(L.output=M);const V=Y[Y.length-1];L.type="dots",L.output+=O,L.value+=O,V.dots=!0;continue}if(k.braces+k.parens===0&&L.type!=="bos"&&L.type!=="slash"){G({type:"text",value:O,output:M});continue}G({type:"dot",value:O,output:M});continue}if(O==="?"){if(!(L&&L.value==="(")&&_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){ue("qmark",O);continue}if(L&&L.type==="paren"){const de=ae();let ye=O;if(de==="<"&&!l.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(L.value==="("&&!/[!=<:]/.test(de)||de==="<"&&!/<([!=]|\w+>)/.test(le()))&&(ye=`\\${O}`),G({type:"text",value:O,output:ye});continue}if(_.dot!==!0&&(L.type==="slash"||L.type==="bos")){G({type:"qmark",value:O,output:ne});continue}G({type:"qmark",value:O,output:z});continue}if(O==="!"){if(_.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){ue("negate",O);continue}if(_.nonegate!==!0&&k.index===0){he();continue}}if(O==="+"){if(_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){ue("plus",O);continue}if(L&&L.value==="("||_.regex===!1){G({type:"plus",value:O,output:B});continue}if(L&&(L.type==="bracket"||L.type==="paren"||L.type==="brace")||k.parens>0){G({type:"plus",value:O});continue}G({type:"plus",value:B});continue}if(O==="@"){if(_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){G({type:"at",extglob:!0,value:O,output:""});continue}G({type:"text",value:O});continue}if(O!=="*"){(O==="$"||O==="^")&&(O=`\\${O}`);const V=f.exec(le());V&&(O+=V[0],k.index+=V[0].length),G({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,k.backtrack=!0,k.globstar=!0,se(O);continue}let Q=le();if(_.noextglob!==!0&&/^\([^?]/.test(Q)){ue("star",O);continue}if(L.type==="star"){if(_.noglobstar===!0){se(O);continue}const V=L.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]!=="/")){G({type:"star",value:O,output:""});continue}const be=k.braces>0&&(V.type==="comma"||V.type==="brace"),Qt=J.length&&(V.type==="pipe"||V.type==="paren");if(!ye&&V.type!=="paren"&&!be&&!Qt){G({type:"star",value:O,output:""});continue}for(;Q.slice(0,3)==="/**";){const bt=v[k.index+4];if(bt&&bt!=="/")break;Q=Q.slice(3),se("/**",3)}if(V.type==="bos"&&re()){L.type="globstar",L.value+=O,L.output=D(_),k.output=L.output,k.globstar=!0,se(O);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&!Ae&&re()){k.output=k.output.slice(0,-(V.output+L.output).length),V.output=`(?:${V.output}`,L.type="globstar",L.output=D(_)+(_.strictSlashes?")":"|$)"),L.value+=O,k.globstar=!0,k.output+=V.output+L.output,se(O);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&Q[0]==="/"){const bt=Q[1]!==void 0?"|$":"";k.output=k.output.slice(0,-(V.output+L.output).length),V.output=`(?:${V.output}`,L.type="globstar",L.output=`${D(_)}${R}|${R}${bt})`,L.value+=O,k.output+=V.output+L.output,k.globstar=!0,se(O+ce()),G({type:"slash",value:"/",output:""});continue}if(V.type==="bos"&&Q[0]==="/"){L.type="globstar",L.value+=O,L.output=`(?:^|${R}|${D(_)}${R})`,k.output=L.output,k.globstar=!0,se(O+ce()),G({type:"slash",value:"/",output:""});continue}k.output=k.output.slice(0,-L.output.length),L.type="globstar",L.output=D(_),L.value+=O,k.output+=L.output,k.globstar=!0,se(O);continue}const oe={type:"star",value:O,output:Z};if(_.bash===!0){oe.output=".*?",(L.type==="bos"||L.type==="slash")&&(oe.output=X+oe.output),G(oe);continue}if(L&&(L.type==="bracket"||L.type==="paren")&&_.regex===!0){oe.output=O,G(oe);continue}(k.index===k.start||L.type==="slash"||L.type==="dot")&&(L.type==="dot"?(k.output+=K,L.output+=K):_.dot===!0?(k.output+=W,L.output+=W):(k.output+=X,L.output+=X),ae()!=="*"&&(k.output+=q,L.output+=q)),G(oe)}for(;k.brackets>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));k.output=l.escapeLast(k.output,"["),me("brackets")}for(;k.parens>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing",")"));k.output=l.escapeLast(k.output,"("),me("parens")}for(;k.braces>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","}"));k.output=l.escapeLast(k.output,"{"),me("braces")}if(_.strictSlashes!==!0&&(L.type==="star"||L.type==="bracket")&&G({type:"maybe_slash",value:"",output:`${R}?`}),k.backtrack===!0){k.output="";for(const Q of k.tokens)k.output+=Q.output!=null?Q.output:Q.value,Q.suffix&&(k.output+=Q.suffix)}return k};g.fastpaths=(v,A)=>{const _={...A},S=typeof _.maxLength=="number"?Math.min(u,_.maxLength):u,C=v.length;if(C>S)throw new SyntaxError(`Input length: ${C}, exceeds maximum allowed length: ${S}`);v=m[v]||v;const j=l.isWindows(A),{DOT_LITERAL:x,SLASH_LITERAL:I,ONE_CHAR:$,DOTS_SLASH:E,NO_DOT:N,NO_DOTS:M,NO_DOTS_SLASH:B,STAR:R,START_ANCHOR:q}=c.globChars(j),F=_.dot?M:N,U=_.dot?B:N,K=_.capture?"":"?:",W={negated:!1,prefix:""};let z=_.bash===!0?".*?":R;_.capture&&(z=`(${z})`);const ne=X=>X.noglobstar===!0?z:`(${K}(?:(?!${q}${X.dot?E:x}).)*?)`,w=X=>{switch(X){case"*":return`${F}${$}${z}`;case".*":return`${x}${$}${z}`;case"*.*":return`${F}${z}${x}${$}${z}`;case"*/*":return`${F}${z}${I}${$}${U}${z}`;case"**":return F+ne(_);case"**/*":return`(?:${F}${ne(_)}${I})?${U}${$}${z}`;case"**/*.*":return`(?:${F}${ne(_)}${I})?${U}${z}${x}${$}${z}`;case"**/.*":return`(?:${F}${ne(_)}${I})?${x}${$}${z}`;default:{const te=/^(.*?)\.(\w+)$/.exec(X);if(!te)return;const Z=w(te[1]);return Z?Z+x+te[2]:void 0}}},T=l.removePrefix(v,W);let D=w(T);return D&&_.strictSlashes!==!0&&(D+=`${I}?`),D},o.exports=g},683:(o,i,s)=>{const c=s(17),l=s(700),u=s(754),p=s(513),f=s(356),d=h=>h&&typeof h=="object"&&!Array.isArray(h),m=(h,y,g=!1)=>{if(Array.isArray(h)){const I=h.map(E=>m(E,y,g));return E=>{for(const N of I){const M=N(E);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?m.compileRe(h,y):m.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=m(A.ignore,I,g)}const x=(I,$=!1)=>{const{isMatch:E,match:N,output:M}=m.test(I,S,y,{glob:h,posix:_}),B={glob:h,state:C,regex:S,posix:_,input:I,output:M,match:N,isMatch:E};return typeof A.onResult=="function"&&A.onResult(B),E===!1?(B.isMatch=!1,$?B:!1):j(I)?(typeof A.onIgnore=="function"&&A.onIgnore(B),B.isMatch=!1,$?B:!1):(typeof A.onMatch=="function"&&A.onMatch(B),$?B:!0)};return g&&(x.state=C),x};m.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=m.matchBase(h,y,g,A):C=y.exec(j)),{isMatch:!!C,match:C,output:j}},m.matchBase=(h,y,g,v=p.isWindows(g))=>(y instanceof RegExp?y:m.makeRe(y,g)).test(c.basename(h)),m.isMatch=(h,y,g)=>m(y,g)(h),m.parse=(h,y)=>Array.isArray(h)?h.map(g=>m.parse(g,y)):u(h,{...y,fastpaths:!1}),m.scan=(h,y)=>l(h,y),m.compileRe=(h,y,g=!1,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=m.toRegex(C,y);return v===!0&&(j.state=h),j},m.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=u.fastpaths(h,y)),C===void 0?(_=u(h,y),_.prefix=S+(_.prefix||"")):_.output=C,m.compileRe(_,y,g,v)},m.toRegex=(h,y)=>{try{const g=y||{};return new RegExp(h,g.flags||(g.nocase?"i":""))}catch(g){if(y&&y.debug===!0)throw g;return/$^/}},m.constants=f,o.exports=m},700:(o,i,s)=>{const c=s(513),{CHAR_ASTERISK:l,CHAR_AT:u,CHAR_BACKWARD_SLASH:p,CHAR_COMMA:f,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:m,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}=s(356),x=E=>E===h||E===p,I=E=>{E.isPrefix!==!0&&(E.depth=E.isGlobstar?1/0:1)},$=(E,N)=>{const M=N||{},B=E.length-1,R=M.parts===!0||M.scanToEnd===!0,q=[],F=[],U=[];let K=E,W=-1,z=0,ne=0,w=!1,T=!1,D=!1,X=!1,te=!1,Z=!1,k=!1,J=!1,Y=!1,ee=0,L,O,re={value:"",depth:0,isGlob:!1};const ae=()=>W>=B,ce=()=>K.charCodeAt(W+1),le=()=>(L=O,K.charCodeAt(++W));for(;W<B;){O=le();let me;if(O===p){k=re.backslashes=!0,O=le(),O===y&&(Z=!0);continue}if(Z===!0||O===y){for(ee++;ae()!==!0&&(O=le());){if(O===p){k=re.backslashes=!0,le();continue}if(O===y){ee++;continue}if(Z!==!0&&O===d&&(O=le())===d){if(w=re.isBrace=!0,D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(Z!==!0&&O===f){if(w=re.isBrace=!0,D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(O===S&&(ee--,ee===0)){Z=!1,w=re.isBrace=!0,Y=!0;break}}if(R===!0)continue;break}if(O===h){if(q.push(W),F.push(re),re={value:"",depth:0,isGlob:!1},Y===!0)continue;if(L===d&&W===z+1){z+=2;continue}ne=W+1;continue}if(M.noext!==!0&&(O===A||O===u||O===l||O===_||O===m)===!0&&ce()===g){if(D=re.isGlob=!0,X=re.isExtglob=!0,Y=!0,R===!0){for(;ae()!==!0&&(O=le());){if(O===p){k=re.backslashes=!0,O=le();continue}if(O===C){D=re.isGlob=!0,Y=!0;break}}continue}break}if(O===l){if(L===l&&(te=re.isGlobstar=!0),D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(O===_){if(D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(O===v){for(;ae()!==!0&&(me=le());){if(me===p){k=re.backslashes=!0,le();continue}if(me===j){T=re.isBracket=!0,D=re.isGlob=!0,Y=!0;break}}if(R===!0)continue;break}if(M.nonegate!==!0&&O===m&&W===z){J=re.negated=!0,z++;continue}if(M.noparen!==!0&&O===g){if(D=re.isGlob=!0,R===!0){for(;ae()!==!0&&(O=le());){if(O===g){k=re.backslashes=!0,O=le();continue}if(O===C){Y=!0;break}}continue}break}if(D===!0){if(Y=!0,R===!0)continue;break}}M.noext===!0&&(X=!1,D=!1);let se=K,H="",he="";z>0&&(H=K.slice(0,z),K=K.slice(z),ne-=z),se&&D===!0&&ne>0?(se=K.slice(0,ne),he=K.slice(ne)):D===!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=c.removeBackslashes(he)),se&&k===!0&&(se=c.removeBackslashes(se)));const ie={prefix:H,input:E,start:z,base:se,glob:he,isBrace:w,isBracket:T,isGlob:D,isExtglob:X,isGlobstar:te,negated:J};if(M.tokens===!0&&(ie.maxDepth=0,x(O)||F.push(re),ie.tokens=F),M.parts===!0||M.tokens===!0){let me;for(let G=0;G<q.length;G++){const ue=me?me+1:z,Ce=q[G],Q=E.slice(ue,Ce);M.tokens&&(G===0&&z!==0?(F[G].isPrefix=!0,F[G].value=H):F[G].value=Q,I(F[G]),ie.maxDepth+=F[G].depth),(G!==0||Q!=="")&&U.push(Q),me=Ce}if(me&&me+1<E.length){const G=E.slice(me+1);U.push(G),M.tokens&&(F[F.length-1].value=G,I(F[F.length-1]),ie.maxDepth+=F[F.length-1].depth)}ie.slashes=q,ie.parts=U}return ie};o.exports=$},513:(o,i,s)=>{const c=s(17),l=process.platform==="win32",{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:p,REGEX_SPECIAL_CHARS:f,REGEX_SPECIAL_CHARS_GLOBAL:d}=s(356);i.isObject=m=>m!==null&&typeof m=="object"&&!Array.isArray(m),i.hasRegexChars=m=>f.test(m),i.isRegexChar=m=>m.length===1&&i.hasRegexChars(m),i.escapeRegex=m=>m.replace(d,"\\$1"),i.toPosixSlashes=m=>m.replace(u,"/"),i.removeBackslashes=m=>m.replace(p,h=>h==="\\"?"":h),i.supportsLookbehinds=()=>{const m=process.version.slice(1).split(".").map(Number);return m.length===3&&m[0]>=9||m[0]===8&&m[1]>=10},i.isWindows=m=>m&&typeof m.windows=="boolean"?m.windows:l===!0||c.sep==="\\",i.escapeLast=(m,h,y)=>{const g=m.lastIndexOf(h,y);return g===-1?m:m[g-1]==="\\"?i.escapeLast(m,h,g-1):`${m.slice(0,g)}\\${m.slice(g)}`},i.removePrefix=(m,h={})=>{let y=m;return y.startsWith("./")&&(y=y.slice(2),h.prefix="./"),y},i.wrapOutput=(m,h={},y={})=>{const g=y.contains?"":"^",v=y.contains?"":"$";let A=`${g}(?:${m})${v}`;return h.negated===!0&&(A=`(?:^(?!${A}).*$)`),A}},492:(o,i,s)=>{/*!
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,s)=>{const c=s(837),u=s(333),l=s(251),p=s(513),f=m=>m===""||m==="./",d=(m,h,y)=>{h=[].concat(h),m=[].concat(m);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),$=I.state.negated||I.state.negatedExtglob;$&&_++;for(let E of m){let N=I(E,!0);($?!N.isMatch:N.isMatch)&&($?g.add(N.output):(g.delete(N.output),v.add(N.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=(m,h)=>l(m,h),d.isMatch=(m,h,y)=>l(h,y)(m),d.any=d.isMatch,d.not=(m,h,y={})=>{h=[].concat(h).map(String);let g=new Set,v=[],_=d(m,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=(m,h,y)=>{if(typeof m!="string")throw new TypeError(`Expected a string: "${c.inspect(m)}"`);if(Array.isArray(h))return h.some(g=>d.contains(m,g,y));if(typeof h=="string"){if(f(m)||f(h))return!1;if(m.includes(h)||m.startsWith("./")&&m.slice(2).includes(h))return!0}return d.isMatch(m,h,{...y,contains:!0})},d.matchKeys=(m,h,y)=>{if(!p.isObject(m))throw new TypeError("Expected the first argument to be an object");let g=d(Object.keys(m),h,y),v={};for(let A of g)v[A]=m[A];return v},d.some=(m,h,y)=>{let g=[].concat(m);for(let v of[].concat(h)){let A=l(String(v),y);if(g.some(_=>A(_)))return!0}return!1},d.every=(m,h,y)=>{let g=[].concat(m);for(let v of[].concat(h)){let A=l(String(v),y);if(!g.every(_=>A(_)))return!1}return!0},d.all=(m,h,y)=>{if(typeof m!="string")throw new TypeError(`Expected a string: "${c.inspect(m)}"`);return[].concat(h).every(g=>l(g,y)(m))},d.capture=(m,h,y)=>{let g=p.isWindows(y),A=l.makeRe(String(m),{...y,capture:!0}).exec(g?p.toPosixSlashes(h):h);if(A)return A.slice(1).map(_=>_===void 0?"":_)},d.makeRe=(...m)=>l.makeRe(...m),d.scan=(...m)=>l.scan(...m),d.parse=(m,h)=>{let y=[];for(let g of[].concat(m||[]))for(let v of u(String(g),h))y.push(l.parse(v,h));return y},d.braces=(m,h)=>{if(typeof m!="string")throw new TypeError("Expected a string");return h&&h.nobrace===!0||!/\{.*\}/.test(m)?[m]:u(m,h)},d.braceExpand=(m,h)=>{if(typeof m!="string")throw new TypeError("Expected a string");return d.braces(m,{...h,expand:!0})},o.exports=d},251:(o,i,s)=>{o.exports=s(683)},356:(o,i,s)=>{const c=s(17),u="\\\\/",l=`[^${u}]`,p="\\.",f="\\+",d="\\?",m="\\/",h="(?=.)",y="[^/]",g=`(?:${m}|$)`,v=`(?:^|${m})`,A=`${p}{1,2}${g}`,_=`(?!${p})`,S=`(?!${v}${A})`,C=`(?!${p}{0,1}${g})`,j=`(?!${A})`,x=`[^.${m}]`,I=`${y}*?`,$={DOT_LITERAL:p,PLUS_LITERAL:f,QMARK_LITERAL:d,SLASH_LITERAL:m,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},E={...$,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:c.sep,extglobChars(k){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${k.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(k){return k===!0?E:$}}},754:(o,i,s)=>{const c=s(356),u=s(513),{MAX_LENGTH:l,POSIX_REGEX_SOURCE:p,REGEX_NON_SPECIAL_CHARS:f,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:m}=c,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=m[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?"":"?:",$=u.isWindows(A),E=c.globChars($),N=c.extglobChars(E),{DOT_LITERAL:k,PLUS_LITERAL:B,SLASH_LITERAL:R,ONE_CHAR:q,DOTS_SLASH:F,NO_DOT:U,NO_DOT_SLASH:K,NO_DOTS_SLASH:G,QMARK:z,QMARK_NO_DOT:ne,STAR:w,START_ANCHOR:T}=E,D=Q=>`(${I}(?:(?!${T}${Q.dot?F:k}).)*?)`,X=_.dot?"":U,te=_.dot?z:ne;let Z=_.bash===!0?D(_):w;_.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=[],Y=[],ee=[];let L=j,O;const re=()=>M.index===C-1,ae=M.peek=(Q=1)=>v[M.index+Q],ce=M.advance=()=>v[++M.index],ue=()=>v.slice(M.index+1),se=(Q="",oe=0)=>{M.consumed+=Q,M.index+=oe},H=Q=>{M.output+=Q.output!=null?Q.output:Q.value,se(Q.value)},he=()=>{let Q=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)ce(),M.start++,Q++;return Q%2===0?!1:(M.negated=!0,M.start++,!0)},ie=Q=>{M[Q]++,ee.push(Q)},me=Q=>{M[Q]--,ee.pop()},W=Q=>{if(L.type==="globstar"){const oe=M.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&&(M.output=M.output.slice(0,-L.output.length),L.type="star",L.value="*",L.output=Z,M.output+=L.output)}if(J.length&&Q.type!=="paren"&&!N[Q.value]&&(J[J.length-1].inner+=Q.value),(Q.value||Q.output)&&H(Q),L&&L.type==="text"&&Q.type==="text"){L.value+=Q.value,L.output=(L.output||"")+Q.value;return}Q.prev=L,x.push(Q),L=Q},le=(Q,oe)=>{const V={...N[oe],conditions:1,inner:""};V.prev=L,V.parens=M.parens,V.output=M.output;const de=(_.capture?"(":"")+V.open;ie("parens"),W({type:Q,value:oe,output:M.output?"":q}),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=D(_)),(V!==Z||re()||/^\)+$/.test(ue()))&&(oe=Q.close=`)$))${V}`),Q.prev.type==="bos"&&(M.negatedExtglob=!0)}W({type:"paren",extglob:!0,value:O,output:oe}),me("parens")};if(_.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(v)){let Q=!1,oe=v.replace(d,(V,de,ye,Ae,be,Zt)=>Ae==="\\"?(Q=!0,V):Ae==="?"?de?de+Ae+(be?z.repeat(be.length):""):Zt===0?te+(be?z.repeat(be.length):""):z.repeat(ye.length):Ae==="."?k.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?(M.output=v,M):(M.output=u.wrapOutput(oe,M,A),M)}for(;!re();){if(O=ce(),O==="\0")continue;if(O==="\\"){const V=ae();if(V==="/"&&_.bash!==!0||V==="."||V===";")continue;if(!V){O+="\\",W({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){W({type:"text",value:O});continue}}if(M.brackets>0&&(O!=="]"||L.value==="["||L.value==="[^")){if(_.posix!==!1&&O===":"){const V=L.value.slice(1);if(V.includes("[")&&(L.posix=!0,V.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(),!j.output&&x.indexOf(L)===1&&(j.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&&W({type:"text",value:O});continue}if(O==="("){ie("parens"),W({type:"paren",value:O});continue}if(O===")"){if(M.parens===0&&_.strictBrackets===!0)throw new SyntaxError(y("opening","("));const V=J[J.length-1];if(V&&M.parens===V.parens+1){Ce(J.pop());continue}W({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");W({type:"bracket",value:O});continue}if(O==="]"){if(_.nobracket===!0||L&&L.type==="bracket"&&L.value.length===1){W({type:"text",value:O,output:`\\${O}`});continue}if(M.brackets===0){if(_.strictBrackets===!0)throw new SyntaxError(y("opening","["));W({type:"text",value:O,output:`\\${O}`});continue}me("brackets");const V=L.value.slice(1);if(L.posix!==!0&&V[0]==="^"&&!V.includes("/")&&(O=`/${O}`),L.value+=O,H({value:O}),_.literalBrackets===!1||u.hasRegexChars(V))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 V={type:"brace",value:O,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};Y.push(V),W(V);continue}if(O==="}"){const V=Y[Y.length-1];if(_.nobrace===!0||!V){W({type:"text",value:O,output:O});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,_),M.backtrack=!0}if(V.comma!==!0&&V.dots!==!0){const ye=M.output.slice(0,V.outputIndex),Ae=M.tokens.slice(V.tokensIndex);V.value=V.output="\\{",O=de="\\}",M.output=ye;for(const be of Ae)M.output+=be.output||be.value}W({type:"brace",value:O,output:de}),me("braces"),Y.pop();continue}if(O==="|"){J.length>0&&J[J.length-1].conditions++,W({type:"text",value:O});continue}if(O===","){let V=O;const de=Y[Y.length-1];de&&ee[ee.length-1]==="braces"&&(de.comma=!0,V="|"),W({type:"comma",value:O,output:V});continue}if(O==="/"){if(L.type==="dot"&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",x.pop(),L=j;continue}W({type:"slash",value:O,output:R});continue}if(O==="."){if(M.braces>0&&L.type==="dot"){L.value==="."&&(L.output=k);const V=Y[Y.length-1];L.type="dots",L.output+=O,L.value+=O,V.dots=!0;continue}if(M.braces+M.parens===0&&L.type!=="bos"&&L.type!=="slash"){W({type:"text",value:O,output:k});continue}W({type:"dot",value:O,output:k});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}`),W({type:"text",value:O,output:ye});continue}if(_.dot!==!0&&(L.type==="slash"||L.type==="bos")){W({type:"qmark",value:O,output:ne});continue}W({type:"qmark",value:O,output:z});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){W({type:"plus",value:O,output:B});continue}if(L&&(L.type==="bracket"||L.type==="paren"||L.type==="brace")||M.parens>0){W({type:"plus",value:O});continue}W({type:"plus",value:B});continue}if(O==="@"){if(_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){W({type:"at",extglob:!0,value:O,output:""});continue}W({type:"text",value:O});continue}if(O!=="*"){(O==="$"||O==="^")&&(O=`\\${O}`);const V=f.exec(ue());V&&(O+=V[0],M.index+=V[0].length),W({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 Q=ue();if(_.noextglob!==!0&&/^\([^?]/.test(Q)){le("star",O);continue}if(L.type==="star"){if(_.noglobstar===!0){se(O);continue}const V=L.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:O,output:""});continue}const be=M.braces>0&&(V.type==="comma"||V.type==="brace"),Zt=J.length&&(V.type==="pipe"||V.type==="paren");if(!ye&&V.type!=="paren"&&!be&&!Zt){W({type:"star",value:O,output:""});continue}for(;Q.slice(0,3)==="/**";){const bt=v[M.index+4];if(bt&&bt!=="/")break;Q=Q.slice(3),se("/**",3)}if(V.type==="bos"&&re()){L.type="globstar",L.value+=O,L.output=D(_),M.output=L.output,M.globstar=!0,se(O);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&!Ae&&re()){M.output=M.output.slice(0,-(V.output+L.output).length),V.output=`(?:${V.output}`,L.type="globstar",L.output=D(_)+(_.strictSlashes?")":"|$)"),L.value+=O,M.globstar=!0,M.output+=V.output+L.output,se(O);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&Q[0]==="/"){const bt=Q[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(V.output+L.output).length),V.output=`(?:${V.output}`,L.type="globstar",L.output=`${D(_)}${R}|${R}${bt})`,L.value+=O,M.output+=V.output+L.output,M.globstar=!0,se(O+ce()),W({type:"slash",value:"/",output:""});continue}if(V.type==="bos"&&Q[0]==="/"){L.type="globstar",L.value+=O,L.output=`(?:^|${R}|${D(_)}${R})`,M.output=L.output,M.globstar=!0,se(O+ce()),W({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 oe={type:"star",value:O,output:Z};if(_.bash===!0){oe.output=".*?",(L.type==="bos"||L.type==="slash")&&(oe.output=X+oe.output),W(oe);continue}if(L&&(L.type==="bracket"||L.type==="paren")&&_.regex===!0){oe.output=O,W(oe);continue}(M.index===M.start||L.type==="slash"||L.type==="dot")&&(L.type==="dot"?(M.output+=K,L.output+=K):_.dot===!0?(M.output+=G,L.output+=G):(M.output+=X,L.output+=X),ae()!=="*"&&(M.output+=q,L.output+=q)),W(oe)}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")&&W({type:"maybe_slash",value:"",output:`${R}?`}),M.backtrack===!0){M.output="";for(const Q of M.tokens)M.output+=Q.output!=null?Q.output:Q.value,Q.suffix&&(M.output+=Q.suffix)}return M};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=m[v]||v;const j=u.isWindows(A),{DOT_LITERAL:x,SLASH_LITERAL:I,ONE_CHAR:$,DOTS_SLASH:E,NO_DOT:N,NO_DOTS:k,NO_DOTS_SLASH:B,STAR:R,START_ANCHOR:q}=c.globChars(j),F=_.dot?k:N,U=_.dot?B:N,K=_.capture?"":"?:",G={negated:!1,prefix:""};let z=_.bash===!0?".*?":R;_.capture&&(z=`(${z})`);const ne=X=>X.noglobstar===!0?z:`(${K}(?:(?!${q}${X.dot?E:x}).)*?)`,w=X=>{switch(X){case"*":return`${F}${$}${z}`;case".*":return`${x}${$}${z}`;case"*.*":return`${F}${z}${x}${$}${z}`;case"*/*":return`${F}${z}${I}${$}${U}${z}`;case"**":return F+ne(_);case"**/*":return`(?:${F}${ne(_)}${I})?${U}${$}${z}`;case"**/*.*":return`(?:${F}${ne(_)}${I})?${U}${z}${x}${$}${z}`;case"**/.*":return`(?:${F}${ne(_)}${I})?${x}${$}${z}`;default:{const te=/^(.*?)\.(\w+)$/.exec(X);if(!te)return;const Z=w(te[1]);return Z?Z+x+te[2]:void 0}}},T=u.removePrefix(v,G);let D=w(T);return D&&_.strictSlashes!==!0&&(D+=`${I}?`),D},o.exports=g},683:(o,i,s)=>{const c=s(17),u=s(700),l=s(754),p=s(513),f=s(356),d=h=>h&&typeof h=="object"&&!Array.isArray(h),m=(h,y,g=!1)=>{if(Array.isArray(h)){const I=h.map(E=>m(E,y,g));return E=>{for(const N of I){const k=N(E);if(k)return k}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?m.compileRe(h,y):m.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=m(A.ignore,I,g)}const x=(I,$=!1)=>{const{isMatch:E,match:N,output:k}=m.test(I,S,y,{glob:h,posix:_}),B={glob:h,state:C,regex:S,posix:_,input:I,output:k,match:N,isMatch:E};return typeof A.onResult=="function"&&A.onResult(B),E===!1?(B.isMatch=!1,$?B:!1):j(I)?(typeof A.onIgnore=="function"&&A.onIgnore(B),B.isMatch=!1,$?B:!1):(typeof A.onMatch=="function"&&A.onMatch(B),$?B:!0)};return g&&(x.state=C),x};m.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=m.matchBase(h,y,g,A):C=y.exec(j)),{isMatch:!!C,match:C,output:j}},m.matchBase=(h,y,g,v=p.isWindows(g))=>(y instanceof RegExp?y:m.makeRe(y,g)).test(c.basename(h)),m.isMatch=(h,y,g)=>m(y,g)(h),m.parse=(h,y)=>Array.isArray(h)?h.map(g=>m.parse(g,y)):l(h,{...y,fastpaths:!1}),m.scan=(h,y)=>u(h,y),m.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=m.toRegex(C,y);return v===!0&&(j.state=h),j},m.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,m.compileRe(_,y,g,v)},m.toRegex=(h,y)=>{try{const g=y||{};return new RegExp(h,g.flags||(g.nocase?"i":""))}catch(g){if(y&&y.debug===!0)throw g;return/$^/}},m.constants=f,o.exports=m},700:(o,i,s)=>{const c=s(513),{CHAR_ASTERISK:u,CHAR_AT:l,CHAR_BACKWARD_SLASH:p,CHAR_COMMA:f,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:m,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}=s(356),x=E=>E===h||E===p,I=E=>{E.isPrefix!==!0&&(E.depth=E.isGlobstar?1/0:1)},$=(E,N)=>{const k=N||{},B=E.length-1,R=k.parts===!0||k.scanToEnd===!0,q=[],F=[],U=[];let K=E,G=-1,z=0,ne=0,w=!1,T=!1,D=!1,X=!1,te=!1,Z=!1,M=!1,J=!1,Y=!1,ee=0,L,O,re={value:"",depth:0,isGlob:!1};const ae=()=>G>=B,ce=()=>K.charCodeAt(G+1),ue=()=>(L=O,K.charCodeAt(++G));for(;G<B;){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(w=re.isBrace=!0,D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(Z!==!0&&O===f){if(w=re.isBrace=!0,D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(O===S&&(ee--,ee===0)){Z=!1,w=re.isBrace=!0,Y=!0;break}}if(R===!0)continue;break}if(O===h){if(q.push(G),F.push(re),re={value:"",depth:0,isGlob:!1},Y===!0)continue;if(L===d&&G===z+1){z+=2;continue}ne=G+1;continue}if(k.noext!==!0&&(O===A||O===l||O===u||O===_||O===m)===!0&&ce()===g){if(D=re.isGlob=!0,X=re.isExtglob=!0,Y=!0,R===!0){for(;ae()!==!0&&(O=ue());){if(O===p){M=re.backslashes=!0,O=ue();continue}if(O===C){D=re.isGlob=!0,Y=!0;break}}continue}break}if(O===u){if(L===u&&(te=re.isGlobstar=!0),D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(O===_){if(D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(O===v){for(;ae()!==!0&&(me=ue());){if(me===p){M=re.backslashes=!0,ue();continue}if(me===j){T=re.isBracket=!0,D=re.isGlob=!0,Y=!0;break}}if(R===!0)continue;break}if(k.nonegate!==!0&&O===m&&G===z){J=re.negated=!0,z++;continue}if(k.noparen!==!0&&O===g){if(D=re.isGlob=!0,R===!0){for(;ae()!==!0&&(O=ue());){if(O===g){M=re.backslashes=!0,O=ue();continue}if(O===C){Y=!0;break}}continue}break}if(D===!0){if(Y=!0,R===!0)continue;break}}k.noext===!0&&(X=!1,D=!1);let se=K,H="",he="";z>0&&(H=K.slice(0,z),K=K.slice(z),ne-=z),se&&D===!0&&ne>0?(se=K.slice(0,ne),he=K.slice(ne)):D===!0?(se="",he=K):se=K,se&&se!==""&&se!=="/"&&se!==K&&x(se.charCodeAt(se.length-1))&&(se=se.slice(0,-1)),k.unescape===!0&&(he&&(he=c.removeBackslashes(he)),se&&M===!0&&(se=c.removeBackslashes(se)));const ie={prefix:H,input:E,start:z,base:se,glob:he,isBrace:w,isBracket:T,isGlob:D,isExtglob:X,isGlobstar:te,negated:J};if(k.tokens===!0&&(ie.maxDepth=0,x(O)||F.push(re),ie.tokens=F),k.parts===!0||k.tokens===!0){let me;for(let W=0;W<q.length;W++){const le=me?me+1:z,Ce=q[W],Q=E.slice(le,Ce);k.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<E.length){const W=E.slice(me+1);U.push(W),k.tokens&&(F[F.length-1].value=W,I(F[F.length-1]),ie.maxDepth+=F[F.length-1].depth)}ie.slashes=q,ie.parts=U}return ie};o.exports=$},513:(o,i,s)=>{const c=s(17),u=process.platform==="win32",{REGEX_BACKSLASH:l,REGEX_REMOVE_BACKSLASH:p,REGEX_SPECIAL_CHARS:f,REGEX_SPECIAL_CHARS_GLOBAL:d}=s(356);i.isObject=m=>m!==null&&typeof m=="object"&&!Array.isArray(m),i.hasRegexChars=m=>f.test(m),i.isRegexChar=m=>m.length===1&&i.hasRegexChars(m),i.escapeRegex=m=>m.replace(d,"\\$1"),i.toPosixSlashes=m=>m.replace(l,"/"),i.removeBackslashes=m=>m.replace(p,h=>h==="\\"?"":h),i.supportsLookbehinds=()=>{const m=process.version.slice(1).split(".").map(Number);return m.length===3&&m[0]>=9||m[0]===8&&m[1]>=10},i.isWindows=m=>m&&typeof m.windows=="boolean"?m.windows:u===!0||c.sep==="\\",i.escapeLast=(m,h,y)=>{const g=m.lastIndexOf(h,y);return g===-1?m:m[g-1]==="\\"?i.escapeLast(m,h,g-1):`${m.slice(0,g)}\\${m.slice(g)}`},i.removePrefix=(m,h={})=>{let y=m;return y.startsWith("./")&&(y=y.slice(2),h.prefix="./"),y},i.wrapOutput=(m,h={},y={})=>{const g=y.contains?"":"^",v=y.contains?"":"$";let A=`${g}(?:${m})${v}`;return h.negated===!0&&(A=`(?:^(?!${A}).*$)`),A}},492:(o,i,s)=>{/*!
36
36
  * to-regex-range <https://github.com/micromatch/to-regex-range>
37
37
  *
38
38
  * Copyright (c) 2015-present, Jon Schlinkert.
39
39
  * Released under the MIT License.
40
- */const c=s(357),l=(x,I,$)=>{if(c(x)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(I===void 0||x===I)return String(x);if(c(I)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let E={relaxZeros:!0,...$};typeof E.strictZeros=="boolean"&&(E.relaxZeros=E.strictZeros===!1);let N=String(E.relaxZeros),M=String(E.shorthand),B=String(E.capture),R=String(E.wrap),q=x+":"+I+"="+N+M+B+R;if(l.cache.hasOwnProperty(q))return l.cache[q].result;let F=Math.min(x,I),U=Math.max(x,I);if(Math.abs(F-U)===1){let w=x+"|"+I;return E.capture?`(${w})`:E.wrap===!1?w:`(?:${w})`}let K=C(x)||C(I),W={min:x,max:I,a:F,b:U},z=[],ne=[];if(K&&(W.isPadded=K,W.maxLen=String(W.max).length),F<0){let w=U<0?Math.abs(U):1;ne=d(w,Math.abs(F),W,E),F=W.a=0}return U>=0&&(z=d(F,U,W,E)),W.negatives=ne,W.positives=z,W.result=u(ne,z),E.capture===!0?W.result=`(${W.result})`:E.wrap!==!1&&z.length+ne.length>1&&(W.result=`(?:${W.result})`),l.cache[q]=W,W.result};function u(x,I,$){let E=m(x,I,"-",!1)||[],N=m(I,x,"",!1)||[],M=m(x,I,"-?",!0)||[];return E.concat(M).concat(N).join("|")}function p(x,I){let $=1,E=1,N=v(x,$),M=new Set([I]);for(;x<=N&&N<=I;)M.add(N),$+=1,N=v(x,$);for(N=A(I+1,E)-1;x<N&&N<=I;)M.add(N),E+=1,N=A(I+1,E)-1;return M=[...M],M.sort(y),M}function f(x,I,$){if(x===I)return{pattern:x,count:[],digits:0};let E=h(x,I),N=E.length,M="",B=0;for(let R=0;R<N;R++){let[q,F]=E[R];q===F?M+=q:q!=="0"||F!=="9"?M+=S(q,F):B++}return B&&(M+=$.shorthand===!0?"\\d":"[0-9]"),{pattern:M,count:[B],digits:N}}function d(x,I,$,E){let N=p(x,I),M=[],B=x,R;for(let q=0;q<N.length;q++){let F=N[q],U=f(String(B),String(F),E),K="";if(!$.isPadded&&R&&R.pattern===U.pattern){R.count.length>1&&R.count.pop(),R.count.push(U.count[0]),R.string=R.pattern+_(R.count),B=F+1;continue}$.isPadded&&(K=j(F,$,E)),U.string=K+U.pattern+_(U.count),M.push(U),B=F+1,R=U}return M}function m(x,I,$,E,N){let M=[];for(let B of x){let{string:R}=B;!E&&!g(I,"string",R)&&M.push($+R),E&&g(I,"string",R)&&M.push($+R)}return M}function h(x,I){let $=[];for(let E=0;E<x.length;E++)$.push([x[E],I[E]]);return $}function y(x,I){return x>I?1:I>x?-1:0}function g(x,I,$){return x.some(E=>E[I]===$)}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,$=""]=x;return $||I>1?`{${I+($?","+$:"")}}`:""}function S(x,I,$){return`[${x}${I-x===1?"":"-"}${I}]`}function C(x){return/^-?(0+)\d/.test(x)}function j(x,I,$){if(!I.isPadded)return x;let E=Math.abs(I.maxLen-String(x).length),N=$.relaxZeros!==!1;switch(E){case 0:return"";case 1:return N?"0?":"0";case 2:return N?"0{0,2}":"00";default:return N?`0{0,${E}}`:`0{${E}}`}}l.cache={},l.clearCache=()=>l.cache={},o.exports=l},17:o=>{o.exports=cp},837:o=>{o.exports=Up()}},t={};function r(o){var i=t[o];if(i!==void 0)return i.exports;var s=t[o]={exports:{}},c=!0;try{e[o](s,s.exports,r),c=!1}finally{c&&delete t[o]}return s.exports}typeof r<"u"&&(r.ab=__dirname+"/");var n=r(971);Mr.exports=n})()),Mr.exports}var Pa;function Wp(){return Pa||(Pa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var c in s)Object.defineProperty(i,c,{enumerable:!0,get:s[c]})}t(e,{matchRemotePattern:function(){return n},hasMatch:function(){return o}});const r=Gp();function n(i,s){if(i.protocol!==void 0){const l=s.protocol.slice(0,-1);if(i.protocol!==l)return!1}if(i.port!==void 0&&i.port!==s.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(s.hostname))return!1;var c;return!!(0,r.makeRe)((c=i.pathname)!=null?c:"**").test(s.pathname)}function o(i,s,c){return i.some(l=>c.hostname===l)||s.some(l=>n(l,c))}}(kr)),kr}var Ia;function ul(){return Ia||(Ia=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:s,quality:c}=n;if(process.env.NODE_ENV!=="production"){const l=[];if(i||l.push("src"),s||l.push("width"),l.length>0)throw new Error("Next Image Optimization requires "+l.join(", ")+" to be provided. Make sure you pass them as props to the `next/image` component. Received: "+JSON.stringify({src:i,width:s,quality:c}));if(i.startsWith("//"))throw new Error('Failed to parse src "'+i+'" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)');if(!i.startsWith("/")&&(o.domains||o.remotePatterns)){let u;try{u=new URL(i)}catch(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}=Wp();if(!p(o.domains,o.remotePatterns,u))throw new Error("Invalid src prop ("+i+') on `next/image`, hostname "'+u.hostname+'" is not configured under images in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host')}}}return o.path+"?url="+encodeURIComponent(i)+"&w="+s+"&q="+(c||75)+(process.env.NEXT_DEPLOYMENT_ID?"&dpl="+process.env.NEXT_DEPLOYMENT_ID:"")}t.__next_img_default=!0;const r=t}(Tr)),Tr}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return A}});const r=Re,o=Je._(P),i=r._(La),s=r._(ap()),c=Co,l=Vt,u=sp(),p=ht,f=rc(),d=r._(ul()),m=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function h(_,S,C,j,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 M=!1,B=!1;C.current({...N,nativeEvent:N,currentTarget:_,target:_,isDefaultPrevented:()=>M,isPropagationStopped:()=>B,persist:()=>{},preventDefault:()=>{M=!0,N.preventDefault()},stopPropagation:()=>{B=!0,N.stopPropagation()}})}if(j!=null&&j.current&&j.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:R}=window.getComputedStyle(_.parentElement),q=["absolute","fixed","relative"];q.includes(R)||(0,p.warnOnce)('Image with src "'+N+'" has "fill" and parent element with invalid "position". Provided "'+R+'" 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 M=_.height.toString()!==_.getAttribute("height"),B=_.width.toString()!==_.getAttribute("width");(M&&!B||!M&&B)&&(0,p.warnOnce)('Image with src "'+N+`" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`)}}})}function 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:$,decoding:E,className:N,style:M,fetchPriority:B,placeholder:R,loading:q,unoptimized:F,fill:U,onLoadRef:K,onLoadingCompleteRef:W,setBlurComplete:z,setShowAltText:ne,onLoad:w,onError:T,...D}=_;return o.default.createElement("img",{...D,...y(B),loading:q,width:$,height:I,decoding:E,"data-nimg":U?"fill":"1",className:N,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&&(T&&(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,R,K,W,z,F))},[C,R,K,W,z,T,F,S]),onLoad:X=>{const te=X.currentTarget;h(te,R,K,W,z,F)},onError:X=>{ne(!0),R!=="empty"&&z(!0),T&&T(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(s.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)(f.RouterContext),x=(0,o.useContext)(u.ImageConfigContext),I=(0,o.useMemo)(()=>{const W=m||x||l.imageConfigDefault,z=[...W.deviceSizes,...W.imageSizes].sort((w,T)=>w-T),ne=W.deviceSizes.sort((w,T)=>w-T);return{...W,allSizes:z,deviceSizes:ne}},[x]),{onLoad:$,onLoadingComplete:E}=_,N=(0,o.useRef)($);(0,o.useEffect)(()=>{N.current=$},[$]);const M=(0,o.useRef)(E);(0,o.useEffect)(()=>{M.current=E},[E]);const[B,R]=(0,o.useState)(!1),[q,F]=(0,o.useState)(!1),{props:U,meta:K}=(0,c.getImgProps)(_,{defaultLoader:d.default,imgConf:I,blurComplete:B,showAltText:q});return o.default.createElement(o.default.Fragment,null,o.default.createElement(g,{...U,unoptimized:K.unoptimized,placeholder:K.placeholder,fill:K.fill,onLoadRef:N,onLoadingCompleteRef:M,setBlurComplete:R,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)})(Jn,Jn.exports);var Vp=Jn.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,p){for(var f in p)Object.defineProperty(u,f,{enumerable:!0,get:p[f]})}t(e,{unstable_getImgProps:function(){return c},default:function(){return l}});const r=Re,n=Co,o=ht,i=Vp,s=r._(ul()),c=u=>{(0,o.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");const{props:p}=(0,n.getImgProps)(u,{defaultLoader:s.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[f,d]of Object.entries(p))d===void 0&&delete p[f];return{props:p}},l=i.Image})(Zc);var Kp=Zc;const Na=Ft(Kp),Xp=({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?a.jsxs(je,{href:e.link,target:"_blank",rel:"noopener noreferrer",className:pe["support-item"],children:[e.image&&a.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?a.jsx(Na,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):a.jsx(b.Icon,{size:"small",name:n})]}):a.jsxs("div",{className:pe["support-item"],children:[e.image&&a.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?a.jsx(Na,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):a.jsx(b.Icon,{size:"small",name:n})]})},Qp=({content:e,CONSTANTS:t})=>a.jsx("div",{className:pe["support-container"],children:e==null?void 0:e.map((r,n)=>a.jsxs("div",{"data-device":r.device,className:pe["support-section"],children:[a.jsxs("div",{className:pe["support-text"],children:[r.title&&a.jsx("h3",{children:r.title}),r.description&&a.jsx("p",{children:r.description})]}),r.items.length&&a.jsx("div",{className:pe["support-items"],"data-gap":r.gap,children:r.items.map((o,i)=>a.jsx(Xp,{item:o,CONSTANTS:t},`footer-support-item-${i}`))})]},`footer-support-${n}`))}),Yp=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:n,columnAlignContent:o,columnAlignItems:i,textAlignContent:s,textAlignItems:c,children:l})=>a.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:n,alignItems:n},columnWrapper:{alignContent:o,alignItems:i}},children:a.jsxs(b.TextStructure.DivWrapper,{alignContent:s,alignItems:c,className:pe.footer__column,children:[a.jsxs("div",{className:t?pe.footer__columnTitleIcon:pe.footer__columnTitle,children:[a.jsx(b.Icon,{name:`${t}`,size:"small"}),e&&a.jsx("div",{children:e})]}),a.jsx("div",{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:l})]})}),Zp=({name:e,nameIcon:t,maxWidth:r,children:n,ICONS:o,...i})=>a.jsxs(b.Accordion.Wrapper,{className:pe.accordionWrapper,title:"accordion-wrapper",...i,children:[a.jsx(b.Accordion.Header,{id:(i==null?void 0:i.id)??"",className:pe.accordionHeader,closeIndicator:a.jsx(b.Icon,{name:o.arrow_up,size:"medium"}),openIndicator:a.jsx(b.Icon,{name:o.arrow_down,size:"medium"}),title:"accordion-header",children:a.jsx(b.TextStructure.Root,{children:a.jsxs(b.TextStructure.DivWrapper,{className:t?pe.accordionTextWrapper:"",children:[a.jsx(b.Icon,{name:`${t}`,size:"medium"}),a.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),a.jsx(b.Accordion.Body,{title:"accordion-body",children:a.jsx(b.TextStructure.Root,{children:a.jsx(b.TextStructure.DivWrapper,{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:n})})})]}),Dn=e=>{const{isMobile:t}=Ie();return t?a.jsx(Zp,{...e}):a.jsx(Yp,{...e})},Dt=({type:e,children:t,className:r,collumnName:n,collumnNameIcon:o,icons:i,iconLink:s,iconSize:c,link:l,paymentDisclaimer:u,paymentTitle:p,rowAlignContent:f,columnAlignContent:d,columnAlignItems:m,textAlignContent:h,textAlignItems:y,...g})=>{let v;const{handleSelectContent:A}=ge(),{nextimage:_}=Te();switch(e){case"menu":v=a.jsx(je,{className:pe.footer__itemLink,href:l??"#",prefetch:!1,children:a.jsx("span",{onClick:()=>{A({content:`footer:${n}:${t}`})},children:t})});break;case"payment":v=a.jsxs("div",{className:b.helpers.classNameConcat(pe.payment,pe.footer__itemSmallText),...g,children:[u,a.jsxs("div",{className:b.helpers.classNameConcat(pe.footer__iconContainer,pe.footer__iconListSubHeader),children:[p,a.jsx("div",{className:pe.footer__iconList,children:i==null?void 0:i.map((S,C)=>a.jsx(_,{alt:S,src:`/assets/${S}.svg`,width:c??20,height:c??20},C))})]})]});break;case"social-media":v=a.jsx("div",{className:pe.footer__iconContainer,...g,children:a.jsx("div",{className:pe.footer__iconList,children:s==null?void 0:s.map((S,C)=>a.jsx(je,{prefetch:!1,href:S.link??"#",target:"_blank",children:a.jsx(b.Icon,{size:"medium",name:S.icon,onClick:()=>A({content:`footer:redes-sociais:${S.icon}`})})},C))})});break;default:v=a.jsx("div",{className:r,...g,children:t})}return a.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:f,alignItems:f},columnWrapper:{alignContent:d,alignItems:m}},...g,children:a.jsx(b.TextStructure.DivWrapper,{alignContent:h,alignItems:y,className:b.helpers.classNameConcat(pe.footer__item,r),children:v})})},Jp=({className:e,text:t,...r})=>a.jsx("div",{...r,className:b.helpers.classNameConcat(pe.footer__legalInformation,e),children:a.jsx("span",{children:t})}),dl=()=>{const{nextimage:e}=Te();return a.jsx("div",{className:pe["footer--stamps"],children:a.jsx(e,{alt:"Empresa B",className:pe["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};dl.displayName="Footer.Stamps";const fl=({children:e,legalTextSlot:t,adornment:r,className:n,...o})=>{const{isMobile:i}=Ie(),s=P.Children.toArray(e).filter(Boolean),c=s.length;return a.jsxs("div",{className:pe.footer__main,children:[(r==null?void 0:r.top)&&a.jsx("div",{className:pe.footer__top,children:r==null?void 0:r.top}),c>0&&a.jsx("div",{...o,className:b.helpers.classNameConcat(pe.footer__wrapper,n),children:s.map((l,u)=>a.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${i?1:"fit-content"})`},children:l},u))}),(r==null?void 0:r.bottom)&&a.jsx("div",{className:pe.footer__bottom,children:r.bottom}),t&&a.jsx("div",{className:pe.footer__legalText,children:t})]})};fl.displayName="Footer.Wrapper";const pl=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:n,adornment:o,LEGAL_INFORMATION_TEXT:i,ICONS:s})=>{var c;return a.jsxs(fl,{adornment:o,legalTextSlot:a.jsx(Jp,{text:i}),children:[Array.isArray(e.column)&&e.column.map((l,u)=>a.jsx(Dn,{id:`${u}column-menu`,name:l.name,nameIcon:l.nameIcon,ICONS:s,children:l.items.map((p,f)=>a.jsx(Dt,{type:"menu",link:p.link,collumnName:l.name,collumnNameIcon:l.nameIcon,children:p.text},f))},u)),t&&((c=t.acceptedFlags)==null?void 0:c.length)>0&&a.jsx(Dn,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:s,children:a.jsx(Dt,{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})}),a.jsxs(Dn,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:s,children:[r!=null&&r.subTitle?a.jsx(Dt,{children:r==null?void 0:r.subTitle}):null,a.jsx(Dt,{type:"social-media",iconSize:24,iconLink:n}),a.jsx(dl,{})]})]})};pl.displayName="Footer";const em=Object.freeze(Object.defineProperty({__proto__:null,Footer:pl,FooterSupport:Qp},Symbol.toStringTag,{value:"Module"})),Oa=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:n})=>{const o=Fa(e.imageUrl,n.pdp),{nextimage:i}=Te();return a.jsx(i,{src:o,alt:e.imageLabel,objectFit:"contain",...n.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},tm=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:n}=ge(),o=P.useRef(!1);return a.jsx(ke.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})},rm={"gallery-carousel-modifier":"_gallery-carousel-modifier_1dxfy_92"},ml=({images:e,video:t,handleZoom:r,productName:n,PRODUCT_IMAGE_DIMENSIONS:o})=>{var u,p;const{initialize:i,pagination:s,controller:c,itemsStyles:l}=b.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return a.jsxs(b.Carousel.Root,{innerRef:f=>{i(f)},className:rm["gallery-carousel-modifier"],children:[a.jsx(b.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:a.jsx(b.Carousel.Bullets,{page:s.currentPage,total:e.length,onBulletClick:f=>c==null?void 0:c.navigateTo(f)})}),a.jsxs(b.Carousel.Body,{children:[a.jsx(b.Carousel.Item,{style:l,children:a.jsx(Oa,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},"PDP_gallery_0"),t&&a.jsx(b.Carousel.Item,{style:l,children:a.jsx(tm,{video:t,productName:n,...((u=e[1])==null?void 0:u.imageUrl)&&{poster:(p=e[1])==null?void 0:p.imageUrl}})},"PDP_gallery_video"),e.map((f,d)=>d===0?null:a.jsx(b.Carousel.Item,{style:l,children:a.jsx(Oa,{image:f,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},`PDP_gallery_${d}`))]})]})};ml.displayName="PDP.Carousel";const nm=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{video:r,productName:n}=ao(),[o,i]=P.useState({show:!1,initialIndex:0});P.useEffect(()=>(o.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[o]);const s=c=>{i({show:!0,initialIndex:c})};return a.jsx(a.Fragment,{children:a.jsx(ml,{images:e,video:r,handleZoom:s,productName:n,PRODUCT_IMAGE_DIMENSIONS:t})})},hl=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{images:r}=ao(),n=P.useMemo(()=>{const o=r.filter(i=>!e.includes(i.imageLabel));return o.length>0?o:r},[]);return a.jsx(nm,{productImgs:n,PRODUCT_IMAGE_DIMENSIONS:t})};hl.displayName="PDP.Gallery";const om=Object.freeze(Object.defineProperty({__proto__:null,Gallery:hl},Symbol.toStringTag,{value:"Module"})),gl=P.createContext({}),im=({data:e,children:t,...r})=>{var h,y,g,v,A,_,S,C,j,x,I,$,E;const[n,o]=P.useState(!0),{initialize:i,controller:s,itemsStyles:c}=b.Carousel.useCarousel({gap:0,itemsPerPage:1}),l={slideTranstionTimer:(y=(h=e==null?void 0:e.staticConfig)==null?void 0:h.staticConfig)==null?void 0:y.slideTranstionTimer,showCarouselArrows:(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:(($=(I=e==null?void 0:e.content)==null?void 0:I.content)==null?void 0:$.items)??[]},u=(E=l.content)==null?void 0:E.filter(N=>!N.countDownEndDate||new Date(N.countDownEndDate)>new Date),p=u.length>1,f={...l.backgroundColor?{backgroundColor:l.backgroundColor}:{}},d=()=>{o(!1)},m=b.helpers.ValidateProp({fieldTypes:Qe.Mode,property:l.textColorVariant,fallback:"default"});return a.jsx(gl.Provider,{value:{isOpen:n,setIsOpen:o,hasCarousel:p,backgroundStyle:f,handleCloseTipbar:d,mode:m,slideTranstionTimer:l.slideTranstionTimer,showCarouselArrows:l.showCarouselArrows,hasCloseBtn:l.hasCloseBtn,slices:u,carouselProps:{initialize:i,controller:s,itemsStyles:c},...r},children:t})},De=()=>P.useContext(gl),am=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=De();return a.jsx(Kn,{dateEnd:new Date(e),TIME_ZONE:r,...t})},sm="_tipbar_bt3p0_1",cm="_tipbar__carousel_bt3p0_15",vt={tipbar:sm,tipbar__carousel:cm,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},lm={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},ct=({size:e,adornment:t,title:r,subtitle:n,supportChildren:o,className:i,Z_INDEX_WAR:s,...c})=>a.jsxs(b.SnackBar.Structure,{...c,size:e,className:b.helpers.classNameConcat(lm["snackbar-modifier"],i),width:360,style:{zIndex:s.snackbar},children:[a.jsx(b.SnackBar.Content,{adornment:t,title:r,subtitle:n}),o&&a.jsx(b.SnackBar.Support,{children:o})]});ct.displayName="SnackBar";const um=({coupon:e,feedbackTitle:t,feedbackDescription:r,...n})=>{const{CONSTANTS:o}=De(),{addCouponSeller:i,cartStore:s}=He(),[c,l]=P.useState({status:!1,showSnackBar:!1}),[u,p]=P.useState(!1),[f,d]=P.useState(!1),m=async()=>{if(!s.items.length){d(!0);return}(await i(e,"coupon")).code===200?l({status:!0,showSnackBar:!0}):p(!0)};return P.useEffect(()=>{c.showSnackBar&&setTimeout(()=>{l(h=>({...h,showSnackBar:!1}))},o.TIPBAR_CONFIGS.snackbar_timeout)},[c.showSnackBar]),P.useEffect(()=>{u&&setTimeout(()=>{p(!1)},o.TIPBAR_CONFIGS.snackbar_timeout)},[u]),P.useEffect(()=>{f&&setTimeout(()=>{d(!1)},o.TIPBAR_CONFIGS.snackbar_timeout)},[f]),a.jsxs(a.Fragment,{children:[a.jsx(b.Button,{...n,onClick:m,disabled:c.status,className:vt["tipbar-item__coupon"],children:c.status?`${o.TIPBAR_CONFIGS.coupon_applied_message}`:`${o.TIPBAR_CONFIGS.coupon_default_message}`}),c.showSnackBar&&(t||r)&&a.jsx(ct,{title:t,subtitle:r,Z_INDEX_WAR:o.Z_INDEX_WAR},`feedback-coupon-${e}`),u&&a.jsx(ct,{title:o.TIPBAR_CONFIGS.coupon_error_title,subtitle:o.TIPBAR_CONFIGS.coupon_error_message,Z_INDEX_WAR:o.Z_INDEX_WAR},`error-coupon-${e}`),f&&a.jsx(ct,{title:o.TIPBAR_CONFIGS.coupon_cart_empty_title,subtitle:o.TIPBAR_CONFIGS.coupon_cart_empty_message,Z_INDEX_WAR:o.Z_INDEX_WAR},`error-cart-empty-${e}`)]})},dm=({title:e,description:t,style:r,mode:n,className:o})=>a.jsx(b.TextStructure.Root,{children:a.jsxs(b.TextStructure.DivWrapper,{mode:n,className:o,children:[e&&a.jsx("h3",{className:"typography-style-body-sm",style:r,children:e}),t&&a.jsx("p",{className:"typography-style-caption",style:r,children:t})]})}),fm=({coupon:e,...t})=>{const{CONSTANTS:r}=De();return a.jsx(b.Copy,{...t,iconCopy:r.ICONS.copy,iconSuccess:r.ICONS.check,children:e})},pm=({staticZone:e,type:t,className:r,description:n,title:o})=>{const{mode:i}=De();if(t==="countdown")return a.jsx(am,{dateEnd:e.countDownEndDate,size:"x-small",mode:i});if(t==="coupon"){const s=b.helpers.ValidateProp({fieldTypes:Qe.Mode,property:e.couponButtonMode,fallback:"default"}),c=b.helpers.ValidateProp({fieldTypes:Qe.VariantsExtended,property:e.couponButtonVariant,fallback:"primary"});return e.coupon?a.jsx(um,{coupon:e.coupon,mode:s,variant:c,feedbackTitle:e.couponFeedbackTitle,feedbackDescription:e.couponFeedbackDescription}):null}if(t==="copy"){const s=b.helpers.ValidateProp({fieldTypes:Qe.Mode,property:e.couponButtonMode,fallback:"default"});return e.coupon?a.jsx(fm,{coupon:e.coupon,mode:s}):null}return a.jsx(dm,{title:o,description:n,mode:i,className:r})},Ta=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=De();return a.jsx(b.Button,{title:"fechar tipbar",className:vt["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:a.jsx(b.Icon,{name:r.ICONS.close})}})},mm=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:n})=>{const{carouselProps:o,CONSTANTS:i}=De(),s=P.useRef(null),c=(u,p)=>{var f,d;u.stopPropagation(),u.preventDefault(),p==="prev"?(f=o.controller)==null||f.prevPage():(d=o.controller)==null||d.nextPage(),s.current&&(clearInterval(s.current),l())},l=P.useCallback(()=>{if(n&&o.controller){const u=setInterval(()=>{var p;(p=o.controller)==null||p.nextPage()},n);s.current=u}},[n,o]);return P.useEffect(()=>(l(),()=>{s.current&&clearInterval(s.current)}),[n,l]),a.jsxs(b.Carousel.Root,{innerRef:u=>{o.initialize(u)},className:vt.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[r&&a.jsx(b.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"prev"),adornment:{start:a.jsx(b.Icon,{name:i.ICONS.arrow_left})}}),a.jsx(b.Carousel.Body,{children:e}),r&&a.jsx(b.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"next"),adornment:{start:a.jsx(b.Icon,{name:i.ICONS.arrow_right})}})]})},hm=({children:e,className:t})=>{const{hasCarousel:r,mode:n,hasCloseBtn:o,backgroundStyle:i,showCarouselArrows:s,slideTranstionTimer:c,handleCloseTipbar:l}=De(),u=r&&s;return a.jsx("div",{style:i,"data-hasclosebtn":o,className:b.helpers.classNameConcat(vt.tipbar,t),children:r?a.jsxs(a.Fragment,{children:[a.jsx(mm,{mode:n,showCarouselArrows:u,slideTranstionTimer:c,children:e}),o&&a.jsx(Ta,{handleCloseTipbar:l,showCarouselArrows:u,mode:n})]}):a.jsxs(a.Fragment,{children:[e,o&&a.jsx(Ta,{handleCloseTipbar:l,mode:n})]})})},gm=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:n,carouselProps:o}=De(),i=a.jsx("div",{...r,className:vt["tipbar-item"],children:e});return n?a.jsx(b.Carousel.Item,{style:o.itemsStyles,children:i}):i},yl=({className:e})=>{const{isOpen:t,slices:r}=De();return r.length&&t?a.jsx(hm,{children:r.map((n,o)=>{var i;return a.jsx(a.Fragment,{children:a.jsx(mt,{href:n.link,children:a.jsx(gm,{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((s,c)=>a.jsx(pm,{staticZone:n,type:s.type,title:s.title,description:s.description,className:e},`tipbar-slice-field-${c}`)):null})})},`tipbar-slice-${o}`)})}):null};yl.displayName="TipBar.Root";const _l=({className:e,...t})=>a.jsx(im,{...t,children:a.jsx(yl,{className:e})});_l.displayName="TipBar";const ym="_container_1sy8s_16",Be={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:ym,"add-itens-to-cart-container":"_add-itens-to-cart-container_1sy8s_38","add-itens-to-cart-container-values":"_add-itens-to-cart-container-values_1sy8s_45","add-itens-to-cart-qty-products":"_add-itens-to-cart-qty-products_1sy8s_50","add-itens-to-cart-total":"_add-itens-to-cart-total_1sy8s_60","add-button":"_add-button_1sy8s_70"},_m=({selectedProducts:e,handleAddAllToCart:t,CONSTANTS:r})=>{const n=Object.values(e.products).length;return a.jsxs("div",{className:Be["add-itens-to-cart-container"],children:[a.jsxs("div",{className:Be["add-itens-to-cart-container-values"],children:[a.jsx("div",{className:Be["add-itens-to-cart-qty-products"],children:a.jsx("span",{children:n===0?r.BUY_PACKAGE.group_cart.select_all_product:`${n} ${n===1?r.BUY_PACKAGE.group_cart.select_product:r.BUY_PACKAGE.group_cart.select_product+"s"}`})}),a.jsx("div",{className:Be["add-itens-to-cart-total"],children:a.jsx("span",{children:no({valueInCents:e.totalPrice*100,hasFree:!1,freeTaxMessage:r.FREIGHT_CALCULATION.messages.free_tax})})})]}),a.jsx(b.Button,{onClick:t,className:Be["add-button"],size:"large",disabled:n===0,variant:"primary",children:r.BUY_BUTTON_LABELS.add_to_cart})]})},vm=e=>e.reduce((t,r)=>{var o;const n=t.find(i=>i.node.id===r.node.id);if(!n)return[...t,r];if((o=n==null?void 0:n.node.isVariantOf)!=null&&o.hasVariant){const i=n.node.isVariantOf.hasVariant,s=r.node.isVariantOf.hasVariant;i&&s&&(n.node.isVariantOf.hasVariant=[...i,...s])}return t},[]),bm=({selectedProduct:e,productId:t,prevState:r,mainSellerId:n})=>{const{products:o,totalPrice:i}=r;try{if(!e){const{[t]:u,...p}=o;return{...r,totalPrice:i-u.price,products:p}}const s=io(e.offers.offers,n);if(!s)return r;const c=s.seller.identifier,l=s.price;if(o[t]){const{price:u}=o[t];return o[t]={...o[t],price:l,id:e.sku,seller:c},{totalPrice:i+l-u,products:{...o}}}return{totalPrice:i+l,products:{...o,[t]:{id:e.sku,price:l,seller:c,productId:t}}}}catch(s){return console.error("Error handling SKU selection:",s),r}},xm="_carousel_245ib_1",Cm="_shelf__container_245ib_14",Sm="_shelf_without_carousel_245ib_34",st={carousel:xm,"custom-controllers":"_custom-controllers_245ib_5",shelf__container:Cm,"controllers-arrows-bullets":"_controllers-arrows-bullets_245ib_23",shelf_without_carousel:Sm},ka=({title:e})=>a.jsx("div",{className:st.shelf__container,children:e&&a.jsx(b.TextStructure.Root,{children:a.jsxs(b.TextStructure.DivWrapper,{children:[a.jsx("h2",{className:b.helpers.classNameConcat("typography-style-body-md",et["responsive-mobile-flex"]),children:e}),a.jsx("h2",{className:b.helpers.classNameConcat("typography-style-heading-md",et["responsive-desktop-flex"]),children:e})]})})}),Am=({children:e,ICONS:t,itemsPerPage:r,title:n})=>{const{isMobile:o}=Ie(),i=r[o?"mobile":"desktop"],{initialize:s,controller:c,itemsStyles:l,pagination:u}=b.Carousel.useCarousel({itemsPerPage:i,gap:10,loop:!0,direction:"row"}),p=P.Children.toArray(e).length;return o||p>=4?a.jsxs(b.Carousel.Root,{innerRef:d=>{s(d)},className:st.carousel,children:[a.jsxs("div",{className:st["custom-controllers"],children:[n&&a.jsx(ka,{title:n}),i<p&&a.jsxs(b.Carousel.Controller,{className:st["controllers-arrows-bullets"],children:[a.jsxs(b.Carousel.Arrows,{children:[a.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:a.jsx(b.Icon,{name:t.arrow_left})}}),a.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:a.jsx(b.Icon,{name:t.arrow_right})}})]}),!o&&i>2&&a.jsx(b.Carousel.Bullets,{page:u.currentPage,total:u.totalPages,onBulletClick:d=>c==null?void 0:c.navigateTo(d)})]})]}),a.jsx(b.Carousel.Body,{children:P.Children.map(e,(d,m)=>a.jsx(b.Carousel.Item,{style:{...l,overflow:"hidden"},children:d},`${n}_${m}`))})]}):a.jsxs(a.Fragment,{children:[n&&a.jsx(ka,{title:n}),a.jsx("div",{className:st.shelf_without_carousel,children:e})]})},Em={Shelf:Am},Rm=({CONSTANTS:e,inView:t,products:r,innerRef:n,WishListToggle:o})=>{const i=P.useMemo(()=>vm(r),[r]),{isMobile:s}=Ie(),{addItemsToCart:c}=He(),{sendDataLayerEvent:l}=ge(),{getAvailableProductTag:u}=ro(),[p,f]=P.useState({totalPrice:0,products:{}}),d=()=>{const h=Object.values(p.products);c(h),l({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:h.map(y=>{const g=i.find(v=>v.node.id===y.productId);return g==null?void 0:g.node})},supportData:{selectedSkus:h,price:p.totalPrice}}})},m=({selectedProduct:h,productId:y})=>{const g=bm({selectedProduct:h,productId:y,prevState:p,mainSellerId:e.StoreConfig_MainSellerId});f(g)};return P.useEffect(()=>{if(!t||i.length===0)return;const h=e.BUY_PACKAGE.header.title;l({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:i},customData:{item_list_name:h},outsideEcommerceData:{item_list_name:h}}})},[t]),a.jsxs("div",{className:Be.container,ref:n,children:[a.jsx("div",{className:Be["carousel-container"],style:{width:i.length<=3?"max-content":"75%"},children:a.jsx(Em.Shelf,{title:e.BUY_PACKAGE.header.title,itemsPerPage:{desktop:3,mobile:i.length>=3?2.2:i.length},ICONS:e.ICONS,children:Array.isArray(i)&&i.map(({node:h},y)=>{var A,_,S;const g=u(h.cluster.highlights),{availability:{status:v}}=h;return v?a.jsxs(we.Root,{item:{...h,image:po.helpers.product.getFirstImages({images:h.image,label:{first:e.MAIN_IMAGE,second:e.SECOND_IMAGE}})},isMobile:s,size:"medium",index:y,shelfTitle:e.BUY_PACKAGE.header.title,CONSTANTS:e,WishListToggle:o,children:[a.jsx(we.Header,{product:h,tag:g.commercial}),a.jsx(we.Media,{}),a.jsxs(we.Wrapper,{type:"body",children:[a.jsx(we.Title,{tag:{value:(A=g.institucional)==null?void 0:A.value,enableIcon:(_=g.institucional)==null?void 0:_.enableIcon,icon:(S=g.institucional)==null?void 0:S.icon}}),a.jsx(we.Actions,{children:a.jsx(we.SizeSelector,{callback:C=>m({selectedProduct:C,productId:h.id})})})]})]},h.id):null})})}),a.jsx("div",{className:Be["add-cart-container"],children:a.jsx(_m,{handleAddAllToCart:d,selectedProducts:p,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},wm=({page:e,data:t})=>{const{pathname:r}=Te(),n=P.useRef(null),{sendDataLayerEvent:o,currentLocalRef:i,itemListRef:s,promotionEventRef:c}=ge();return P.useEffect(()=>{const l=Gs("login_event")||"{}",u=JSON.parse(l);if(u.name||u.method){const p=new Date(0);o({functionKey:"readyEvents",data:{event:u.name,readyData:{method:u.method}}}),Ws("login_event","",{expires:p})}},[]),P.useEffect(()=>{if(n.current===r)return;n.current=r;let l={};switch(e){case"PDP":{const p=t,f={};if(!p){l={page_category:"pdp"};break}p.items.forEach(({itemId:d,sellers:m})=>f[d]=m[0].commertialOffer.AvailableQuantity),l={page_category:"pdp",seller_ids:p.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:f,product_reference_id:p.productReference};break}case"PDC":{const{page_category:p,page_departament:f,id:d,name:m}=Ya(),h=m,y=d;l={page_category:"lista_produtos",...f&&{page_departament:f}},s.current={item_list_name:r==="/search"?"busca":h??void 0,item_list_id:r==="/search"?void 0:y??void 0},f&&o({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:p,page_departament:f}}});break}default:l={page_category:e},c.current={},s.current={};break}const u={region:e,...l};i.current=e,o({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...u}},timeout:0})},[r]),null};var eo={exports:{}},$t={exports:{}},Ma;function jm(){return Ma||(Ma=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(l,u){for(var p in u)Object.defineProperty(l,p,{enumerable:!0,get:u[p]})}r(t,{DOMAttributeNames:function(){return n},isEqualNode:function(){return i},default:function(){return c}});const n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function o(l){let{type:u,props:p}=l;const f=document.createElement(u);for(const h in p){if(!p.hasOwnProperty(h)||h==="children"||h==="dangerouslySetInnerHTML"||p[h]===void 0)continue;const y=n[h]||h.toLowerCase();u==="script"&&(y==="async"||y==="defer"||y==="noModule")?f[y]=!!p[h]:f.setAttribute(y,p[h])}const{children:d,dangerouslySetInnerHTML:m}=p;return m?f.innerHTML=m.__html||"":d&&(f.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),f}function i(l,u){if(l instanceof HTMLElement&&u instanceof HTMLElement){const p=u.getAttribute("nonce");if(p&&!l.getAttribute("nonce")){const f=u.cloneNode(!0);return f.setAttribute("nonce",""),f.nonce=p,p===l.nonce&&l.isEqualNode(f)}}return l.isEqualNode(u)}let s;process.env.__NEXT_STRICT_NEXT_HEAD?s=(l,u)=>{const p=document.querySelector("head");if(!p)return;const f=p.querySelectorAll('meta[name="next-head"]')||[],d=[];if(l==="meta"){const y=p.querySelector("meta[charset]");y&&d.push(y)}for(let y=0;y<f.length;y++){var m;const v=f[y].nextSibling;(v==null||(m=v.tagName)==null?void 0:m.toLowerCase())===l&&d.push(v)}const h=u.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)})}:s=(l,u)=>{const p=document.getElementsByTagName("head")[0],f=p.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!f){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(f.content),m=[];for(let g=0,v=f.previousElementSibling;g<d;g++,v=(v==null?void 0:v.previousElementSibling)||null){var h;(v==null||(h=v.tagName)==null?void 0:h.toLowerCase())===l&&m.push(v)}const y=u.map(o).filter(g=>{for(let v=0,A=m.length;v<A;v++){const _=m[v];if(i(_,g))return m.splice(v,1),!1}return!0});m.forEach(g=>{var v;return(v=g.parentNode)==null?void 0:v.removeChild(g)}),y.forEach(g=>p.insertBefore(g,f)),f.content=(d-m.length+y.length).toString()};function c(){return{mountedInstances:new Set,updateHead:l=>{const u={};l.forEach(d=>{if(d.type==="link"&&d.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+d.props["data-href"]+'"]'))return;d.props.href=d.props["data-href"],d.props["data-href"]=void 0}const m=u[d.type]||[];m.push(d),u[d.type]=m});const p=u.title?u.title[0]:null;let f="";if(p){const{children:d}=p.props;f=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}f!==document.title&&(document.title=f),["meta","base","link","style","script"].forEach(d=>{s(d,u[d]||[])})}}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}($t,$t.exports)),$t.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=Re,o=Je,i=n._(La),s=o._(P),c=el(),l=jm(),u=nc(),p=new Map,f=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],m=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:$=null,dangerouslySetInnerHTML:E,children:N="",strategy:M="afterInteractive",onError:B,stylesheets:R}=C,q=x||j;if(q&&f.has(q))return;if(p.has(j)){f.add(q),p.get(j).then(I,B);return}const F=()=>{$&&$(),f.add(q)},U=document.createElement("script"),K=new Promise((W,z)=>{U.addEventListener("load",function(ne){W(),I&&I.call(this,ne),F()}),U.addEventListener("error",function(ne){z(ne)})}).catch(function(W){B&&B(W)});E?(U.innerHTML=E.__html||"",F()):N?(U.textContent=typeof N=="string"?N:Array.isArray(N)?N.join(""):"",F()):j&&(U.src=j,p.set(j,K));for(const[W,z]of Object.entries(C)){if(z===void 0||d.includes(W))continue;const ne=l.DOMAttributeNames[W]||W.toLowerCase();U.setAttribute(ne,z)}M==="worker"&&U.setAttribute("type","text/partytown"),U.setAttribute("data-nscript",M),R&&m(R),document.body.appendChild(U)};function y(C){const{strategy:j="afterInteractive"}=C;j==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(C))}):h(C)}function g(C){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>h(C)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(C))})}function v(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(j=>{const x=j.id||j.getAttribute("src");f.add(x)})}function A(C){C.forEach(y),v()}function _(C){const{id:j,src:x="",onLoad:I=()=>{},onReady:$=null,strategy:E="afterInteractive",onError:N,stylesheets:M,...B}=C,{updateScripts:R,scripts:q,getIsSsr:F,appDir:U,nonce:K}=(0,s.useContext)(c.HeadManagerContext),W=(0,s.useRef)(!1);(0,s.useEffect)(()=>{const ne=j||x;W.current||($&&ne&&f.has(ne)&&$(),W.current=!0)},[$,j,x]);const z=(0,s.useRef)(!1);if((0,s.useEffect)(()=>{z.current||(E==="afterInteractive"?h(C):E==="lazyOnload"&&g(C),z.current=!0)},[C,E]),(E==="beforeInteractive"||E==="worker")&&(R?(q[E]=(q[E]||[]).concat([{id:j,src:x,onLoad:I,onReady:$,onError:N,...B}]),R(q)):F&&F()?f.add(j||x):F&&!F()&&h(C)),U){if(M&&M.forEach(ne=>{i.default.preinit(ne,{as:"style"})}),E==="beforeInteractive")return x?(i.default.preload(x,B.integrity?{as:"script",integrity:B.integrity}:{as:"script"}),s.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([x])+")"}})):(B.dangerouslySetInnerHTML&&(B.children=B.dangerouslySetInnerHTML.__html,delete B.dangerouslySetInnerHTML),s.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...B}])+")"}}));E==="afterInteractive"&&x&&i.default.preload(x,B.integrity?{as:"script",integrity:B.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)})(eo,eo.exports);var Pm=eo.exports,Im=Pm;const Nm=Ft(Im),Om=({children:e,ONE_TRUST:t})=>a.jsxs(a.Fragment,{children:[a.jsx(Nm,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),Tm=xo(()=>Promise.resolve(Om),{ssr:!1}),km={teamComponents:{AddToCart:yo,BackToTop:Gd,BuyPackage:Rm,...em,FreightCalculation:Lf,Header:Lc,Link:rt,Media:ke,ProductCard:we,TipBar:_l},template:{pdp:om},utils:{EventCollector:wm,ExternalScripts:Tm,LinkOrNotLink:mt,ObserverWrapper:Wt,SnackBarComponent:ct}};exports.cms=Bd;exports.contexts=Iu;exports.data=po;exports.layout=km;
40
+ */const c=s(357),u=(x,I,$)=>{if(c(x)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(I===void 0||x===I)return String(x);if(c(I)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let E={relaxZeros:!0,...$};typeof E.strictZeros=="boolean"&&(E.relaxZeros=E.strictZeros===!1);let N=String(E.relaxZeros),k=String(E.shorthand),B=String(E.capture),R=String(E.wrap),q=x+":"+I+"="+N+k+B+R;if(u.cache.hasOwnProperty(q))return u.cache[q].result;let F=Math.min(x,I),U=Math.max(x,I);if(Math.abs(F-U)===1){let w=x+"|"+I;return E.capture?`(${w})`:E.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,E),F=G.a=0}return U>=0&&(z=d(F,U,G,E)),G.negatives=ne,G.positives=z,G.result=l(ne,z),E.capture===!0?G.result=`(${G.result})`:E.wrap!==!1&&z.length+ne.length>1&&(G.result=`(?:${G.result})`),u.cache[q]=G,G.result};function l(x,I,$){let E=m(x,I,"-",!1)||[],N=m(I,x,"",!1)||[],k=m(x,I,"-?",!0)||[];return E.concat(k).concat(N).join("|")}function p(x,I){let $=1,E=1,N=v(x,$),k=new Set([I]);for(;x<=N&&N<=I;)k.add(N),$+=1,N=v(x,$);for(N=A(I+1,E)-1;x<N&&N<=I;)k.add(N),E+=1,N=A(I+1,E)-1;return k=[...k],k.sort(y),k}function f(x,I,$){if(x===I)return{pattern:x,count:[],digits:0};let E=h(x,I),N=E.length,k="",B=0;for(let R=0;R<N;R++){let[q,F]=E[R];q===F?k+=q:q!=="0"||F!=="9"?k+=S(q,F):B++}return B&&(k+=$.shorthand===!0?"\\d":"[0-9]"),{pattern:k,count:[B],digits:N}}function d(x,I,$,E){let N=p(x,I),k=[],B=x,R;for(let q=0;q<N.length;q++){let F=N[q],U=f(String(B),String(F),E),K="";if(!$.isPadded&&R&&R.pattern===U.pattern){R.count.length>1&&R.count.pop(),R.count.push(U.count[0]),R.string=R.pattern+_(R.count),B=F+1;continue}$.isPadded&&(K=j(F,$,E)),U.string=K+U.pattern+_(U.count),k.push(U),B=F+1,R=U}return k}function m(x,I,$,E,N){let k=[];for(let B of x){let{string:R}=B;!E&&!g(I,"string",R)&&k.push($+R),E&&g(I,"string",R)&&k.push($+R)}return k}function h(x,I){let $=[];for(let E=0;E<x.length;E++)$.push([x[E],I[E]]);return $}function y(x,I){return x>I?1:I>x?-1:0}function g(x,I,$){return x.some(E=>E[I]===$)}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,$=""]=x;return $||I>1?`{${I+($?","+$:"")}}`:""}function S(x,I,$){return`[${x}${I-x===1?"":"-"}${I}]`}function C(x){return/^-?(0+)\d/.test(x)}function j(x,I,$){if(!I.isPadded)return x;let E=Math.abs(I.maxLen-String(x).length),N=$.relaxZeros!==!1;switch(E){case 0:return"";case 1:return N?"0?":"0";case 2:return N?"0{0,2}":"00";default:return N?`0{0,${E}}`:`0{${E}}`}}u.cache={},u.clearCache=()=>u.cache={},o.exports=u},17:o=>{o.exports=Zf},837:o=>{o.exports=Mp()}},t={};function r(o){var i=t[o];if(i!==void 0)return i.exports;var s=t[o]={exports:{}},c=!0;try{e[o](s,s.exports,r),c=!1}finally{c&&delete t[o]}return s.exports}typeof r<"u"&&(r.ab=__dirname+"/");var n=r(971);Lr.exports=n})()),Lr.exports}var Aa;function Lp(){return Aa||(Aa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var c in s)Object.defineProperty(i,c,{enumerable:!0,get:s[c]})}t(e,{matchRemotePattern:function(){return n},hasMatch:function(){return o}});const r=kp();function n(i,s){if(i.protocol!==void 0){const u=s.protocol.slice(0,-1);if(i.protocol!==u)return!1}if(i.port!==void 0&&i.port!==s.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(s.hostname))return!1;var c;return!!(0,r.makeRe)((c=i.pathname)!=null?c:"**").test(s.pathname)}function o(i,s,c){return i.some(u=>c.hostname===u)||s.some(u=>n(u,c))}}(kr)),kr}var Ea;function uu(){return Ea||(Ea=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:s,quality:c}=n;if(process.env.NODE_ENV!=="production"){const u=[];if(i||u.push("src"),s||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:s,quality:c}));if(i.startsWith("//"))throw new Error('Failed to parse src "'+i+'" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)');if(!i.startsWith("/")&&(o.domains||o.remotePatterns)){let 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}=Lp();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="+s+"&q="+(c||75)+(process.env.NEXT_DEPLOYMENT_ID?"&dpl="+process.env.NEXT_DEPLOYMENT_ID:"")}t.__next_img_default=!0;const r=t}(Mr)),Mr}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return A}});const r=Re,o=et._(P),i=r._(Da),s=r._(Qf()),c=bo,u=Xt,l=Yf(),p=ht,f=hc(),d=r._(uu()),m=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function h(_,S,C,j,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 k=!1,B=!1;C.current({...N,nativeEvent:N,currentTarget:_,target:_,isDefaultPrevented:()=>k,isPropagationStopped:()=>B,persist:()=>{},preventDefault:()=>{k=!0,N.preventDefault()},stopPropagation:()=>{B=!0,N.stopPropagation()}})}if(j!=null&&j.current&&j.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:R}=window.getComputedStyle(_.parentElement),q=["absolute","fixed","relative"];q.includes(R)||(0,p.warnOnce)('Image with src "'+N+'" has "fill" and parent element with invalid "position". Provided "'+R+'" 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 k=_.height.toString()!==_.getAttribute("height"),B=_.width.toString()!==_.getAttribute("width");(k&&!B||!k&&B)&&(0,p.warnOnce)('Image with src "'+N+`" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`)}}})}function 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:$,decoding:E,className:N,style:k,fetchPriority:B,placeholder:R,loading:q,unoptimized:F,fill:U,onLoadRef:K,onLoadingCompleteRef:G,setBlurComplete:z,setShowAltText:ne,onLoad:w,onError:T,...D}=_;return o.default.createElement("img",{...D,...y(B),loading:q,width:$,height:I,decoding:E,"data-nimg":U?"fill":"1",className:N,style:k,sizes:x,srcSet:j,src:C,ref:(0,o.useCallback)(X=>{S&&(typeof S=="function"?S(X):typeof S=="object"&&(S.current=X)),X&&(T&&(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,R,K,G,z,F))},[C,R,K,G,z,T,F,S]),onLoad:X=>{const te=X.currentTarget;h(te,R,K,G,z,F)},onError:X=>{ne(!0),R!=="empty"&&z(!0),T&&T(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(s.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)(f.RouterContext),x=(0,o.useContext)(l.ImageConfigContext),I=(0,o.useMemo)(()=>{const G=m||x||u.imageConfigDefault,z=[...G.deviceSizes,...G.imageSizes].sort((w,T)=>w-T),ne=G.deviceSizes.sort((w,T)=>w-T);return{...G,allSizes:z,deviceSizes:ne}},[x]),{onLoad:$,onLoadingComplete:E}=_,N=(0,o.useRef)($);(0,o.useEffect)(()=>{N.current=$},[$]);const k=(0,o.useRef)(E);(0,o.useEffect)(()=>{k.current=E},[E]);const[B,R]=(0,o.useState)(!1),[q,F]=(0,o.useState)(!1),{props:U,meta:K}=(0,c.getImgProps)(_,{defaultLoader:d.default,imgConf:I,blurComplete:B,showAltText:q});return o.default.createElement(o.default.Fragment,null,o.default.createElement(g,{...U,unoptimized:K.unoptimized,placeholder:K.placeholder,fill:K.fill,onLoadRef:N,onLoadingCompleteRef:k,setBlurComplete:R,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)})(Xn,Xn.exports);var Dp=Xn.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,p){for(var f in p)Object.defineProperty(l,f,{enumerable:!0,get:p[f]})}t(e,{unstable_getImgProps:function(){return c},default:function(){return u}});const r=Re,n=bo,o=ht,i=Dp,s=r._(uu()),c=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:s.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[f,d]of Object.entries(p))d===void 0&&delete p[f];return{props:p}},u=i.Image})(Yc);var $p=Yc;const Ra=Wt($p),Bp=({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?a.jsxs(Pe,{href:e.link,target:"_blank",rel:"noopener noreferrer",className:pe["support-item"],children:[e.image&&a.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?a.jsx(Ra,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):a.jsx(b.Icon,{size:"small",name:n})]}):a.jsxs("div",{className:pe["support-item"],children:[e.image&&a.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?a.jsx(Ra,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):a.jsx(b.Icon,{size:"small",name:n})]})},qp=({content:e,CONSTANTS:t})=>a.jsx("div",{className:pe["support-container"],children:e==null?void 0:e.map((r,n)=>a.jsxs("div",{"data-device":r.device,className:pe["support-section"],children:[a.jsxs("div",{className:pe["support-text"],children:[r.title&&a.jsx("h3",{children:r.title}),r.description&&a.jsx("p",{children:r.description})]}),r.items.length&&a.jsx("div",{className:pe["support-items"],"data-gap":r.gap,children:r.items.map((o,i)=>a.jsx(Bp,{item:o,CONSTANTS:t},`footer-support-item-${i}`))})]},`footer-support-${n}`))}),Hp=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:n,columnAlignContent:o,columnAlignItems:i,textAlignContent:s,textAlignItems:c,children:u})=>a.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:n,alignItems:n},columnWrapper:{alignContent:o,alignItems:i}},children:a.jsxs(b.TextStructure.DivWrapper,{alignContent:s,alignItems:c,className:pe.footer__column,children:[a.jsxs("div",{className:t?pe.footer__columnTitleIcon:pe.footer__columnTitle,children:[a.jsx(b.Icon,{name:`${t}`,size:"small"}),e&&a.jsx("div",{children:e})]}),a.jsx("div",{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:u})]})}),zp=({name:e,nameIcon:t,maxWidth:r,children:n,ICONS:o,...i})=>a.jsxs(b.Accordion.Wrapper,{className:pe.accordionWrapper,title:"accordion-wrapper",...i,children:[a.jsx(b.Accordion.Header,{id:(i==null?void 0:i.id)??"",className:pe.accordionHeader,closeIndicator:a.jsx(b.Icon,{name:o.arrow_up,size:"medium"}),openIndicator:a.jsx(b.Icon,{name:o.arrow_down,size:"medium"}),title:"accordion-header",children:a.jsx(b.TextStructure.Root,{children:a.jsxs(b.TextStructure.DivWrapper,{className:t?pe.accordionTextWrapper:"",children:[a.jsx(b.Icon,{name:`${t}`,size:"medium"}),a.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),a.jsx(b.Accordion.Body,{title:"accordion-body",children:a.jsx(b.TextStructure.Root,{children:a.jsx(b.TextStructure.DivWrapper,{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:n})})})]}),$n=e=>{const{isMobile:t}=Ie();return t?a.jsx(zp,{...e}):a.jsx(Hp,{...e})},Lt=({type:e,children:t,className:r,collumnName:n,collumnNameIcon:o,icons:i,iconLink:s,iconSize:c,link:u,paymentDisclaimer:l,paymentTitle:p,rowAlignContent:f,columnAlignContent:d,columnAlignItems:m,textAlignContent:h,textAlignItems:y,...g})=>{let v;const{handleSelectContent:A}=ge(),{nextimage:_}=Me();switch(e){case"menu":v=a.jsx(Pe,{className:pe.footer__itemLink,href:u??"#",prefetch:!1,children:a.jsx("span",{onClick:()=>{A({content:`footer:${n}:${t}`})},children:t})});break;case"payment":v=a.jsxs("div",{className:b.helpers.classNameConcat(pe.payment,pe.footer__itemSmallText),...g,children:[l,a.jsxs("div",{className:b.helpers.classNameConcat(pe.footer__iconContainer,pe.footer__iconListSubHeader),children:[p,a.jsx("div",{className:pe.footer__iconList,children:i==null?void 0:i.map((S,C)=>a.jsx(_,{alt:S,src:`/assets/${S}.svg`,width:c??20,height:c??20},C))})]})]});break;case"social-media":v=a.jsx("div",{className:pe.footer__iconContainer,...g,children:a.jsx("div",{className:pe.footer__iconList,children:s==null?void 0:s.map((S,C)=>a.jsx(Pe,{prefetch:!1,href:S.link??"#",target:"_blank",children:a.jsx(b.Icon,{size:"medium",name:S.icon,onClick:()=>A({content:`footer:redes-sociais:${S.icon}`})})},C))})});break;default:v=a.jsx("div",{className:r,...g,children:t})}return a.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:f,alignItems:f},columnWrapper:{alignContent:d,alignItems:m}},...g,children:a.jsx(b.TextStructure.DivWrapper,{alignContent:h,alignItems:y,className:b.helpers.classNameConcat(pe.footer__item,r),children:v})})},Fp=({className:e,text:t,...r})=>a.jsx("div",{...r,className:b.helpers.classNameConcat(pe.footer__legalInformation,e),children:a.jsx("span",{children:t})}),lu=()=>{const{nextimage:e}=Me();return a.jsx("div",{className:pe["footer--stamps"],children:a.jsx(e,{alt:"Empresa B",className:pe["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};lu.displayName="Footer.Stamps";const du=({children:e,legalTextSlot:t,adornment:r,className:n,...o})=>{const{isMobile:i}=Ie(),s=P.Children.toArray(e).filter(Boolean),c=s.length;return a.jsxs("div",{className:pe.footer__main,children:[(r==null?void 0:r.top)&&a.jsx("div",{className:pe.footer__top,children:r==null?void 0:r.top}),c>0&&a.jsx("div",{...o,className:b.helpers.classNameConcat(pe.footer__wrapper,n),children:s.map((u,l)=>a.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${i?1:"fit-content"})`},children:u},l))}),(r==null?void 0:r.bottom)&&a.jsx("div",{className:pe.footer__bottom,children:r.bottom}),t&&a.jsx("div",{className:pe.footer__legalText,children:t})]})};du.displayName="Footer.Wrapper";const fu=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:n,adornment:o,LEGAL_INFORMATION_TEXT:i,ICONS:s})=>{var c;return a.jsxs(du,{adornment:o,legalTextSlot:a.jsx(Fp,{text:i}),children:[Array.isArray(e.column)&&e.column.map((u,l)=>a.jsx($n,{id:`${l}column-menu`,name:u.name,nameIcon:u.nameIcon,ICONS:s,children:u.items.map((p,f)=>a.jsx(Lt,{type:"menu",link:p.link,collumnName:u.name,collumnNameIcon:u.nameIcon,children:p.text},f))},l)),t&&((c=t.acceptedFlags)==null?void 0:c.length)>0&&a.jsx($n,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:s,children:a.jsx(Lt,{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})}),a.jsxs($n,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:s,children:[r!=null&&r.subTitle?a.jsx(Lt,{children:r==null?void 0:r.subTitle}):null,a.jsx(Lt,{type:"social-media",iconSize:24,iconLink:n}),a.jsx(lu,{})]})]})};fu.displayName="Footer";const Up=Object.freeze(Object.defineProperty({__proto__:null,Footer:fu,FooterSupport:qp},Symbol.toStringTag,{value:"Module"})),wa=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:n})=>{const o=Ua(e.imageUrl,n.pdp),{nextimage:i}=Me();return a.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=P.useRef(!1);return a.jsx(ke.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})},Gp={"gallery-carousel-modifier":"_gallery-carousel-modifier_1dxfy_92"},pu=({images:e,video:t,handleZoom:r,productName:n,PRODUCT_IMAGE_DIMENSIONS:o})=>{var l,p;const{initialize:i,pagination:s,controller:c,itemsStyles:u}=b.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return a.jsxs(b.Carousel.Root,{innerRef:f=>{i(f)},className:Gp["gallery-carousel-modifier"],children:[a.jsx(b.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:a.jsx(b.Carousel.Bullets,{page:s.currentPage,total:e.length,onBulletClick:f=>c==null?void 0:c.navigateTo(f)})}),a.jsxs(b.Carousel.Body,{children:[a.jsx(b.Carousel.Item,{style:u,children:a.jsx(wa,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},"PDP_gallery_0"),t&&a.jsx(b.Carousel.Item,{style:u,children:a.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((f,d)=>d===0?null:a.jsx(b.Carousel.Item,{style:u,children:a.jsx(wa,{image:f,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},`PDP_gallery_${d}`))]})]})};pu.displayName="PDP.Carousel";const Vp=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{video:r,productName:n}=ao(),[o,i]=P.useState({show:!1,initialIndex:0});P.useEffect(()=>(o.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[o]);const s=c=>{i({show:!0,initialIndex:c})};return a.jsx(a.Fragment,{children:a.jsx(pu,{images:e,video:r,handleZoom:s,productName:n,PRODUCT_IMAGE_DIMENSIONS:t})})},mu=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{images:r}=ao(),n=P.useMemo(()=>{const o=r.filter(i=>!e.includes(i.imageLabel));return o.length>0?o:r},[]);return a.jsx(Vp,{productImgs:n,PRODUCT_IMAGE_DIMENSIONS:t})};mu.displayName="PDP.Gallery";const Kp=Object.freeze(Object.defineProperty({__proto__:null,Gallery:mu},Symbol.toStringTag,{value:"Module"})),hu=P.createContext({}),Xp=({data:e,children:t,...r})=>{var h,y,g,v,A,_,S,C,j,x,I,$,E;const[n,o]=P.useState(!0),{initialize:i,controller:s,itemsStyles:c}=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:(($=(I=e==null?void 0:e.content)==null?void 0:I.content)==null?void 0:$.items)??[]},l=(E=u.content)==null?void 0:E.filter(N=>!N.countDownEndDate||new Date(N.countDownEndDate)>new Date),p=l.length>1,f={...u.backgroundColor?{backgroundColor:u.backgroundColor}:{}},d=()=>{o(!1)},m=b.helpers.ValidateProp({fieldTypes:Ye.Mode,property:u.textColorVariant,fallback:"default"});return a.jsx(hu.Provider,{value:{isOpen:n,setIsOpen:o,hasCarousel:p,backgroundStyle:f,handleCloseTipbar:d,mode:m,slideTranstionTimer:u.slideTranstionTimer,showCarouselArrows:u.showCarouselArrows,hasCloseBtn:u.hasCloseBtn,slices:l,carouselProps:{initialize:i,controller:s,itemsStyles:c},...r},children:t})},De=()=>P.useContext(hu),Qn=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...n})=>{const[o,i]=P.useState(Ks(new wo.TZDate(Date.now(),r),new wo.TZDate(e,r))),[s,c]=P.useState(!1);P.useEffect(()=>{s||c(!0);const l=setInterval(()=>{if(o<=0){clearInterval(l);return}i(o-1e3)},1e3);return()=>{clearInterval(l)}},[o,i,s]);const u=at(o,"days");return s&&o>0?a.jsxs(b.Timer.Root,{...n,children:[u?a.jsxs(a.Fragment,{children:[a.jsx(b.Timer.Digit,{label:"dias",value:u}),a.jsx(b.Timer.Separator,{})]}):null,a.jsx(b.Timer.Digit,{label:"horas",value:at(o,"hours")}),a.jsx(b.Timer.Separator,{}),a.jsx(b.Timer.Digit,{label:"min",value:at(o,"minutes")}),a.jsx(b.Timer.Separator,{}),a.jsx(b.Timer.Digit,{label:"segs",value:at(o),suppressHydrationWarning:!0})]}):a.jsx(a.Fragment,{})},Qp=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=De();return a.jsx(Qn,{dateEnd:new Date(e),TIME_ZONE:r,...t})},Yp="_tipbar_bt3p0_1",Zp="_tipbar__carousel_bt3p0_15",vt={tipbar:Yp,tipbar__carousel:Zp,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},Jp={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},ct=({size:e,adornment:t,title:r,subtitle:n,supportChildren:o,className:i,Z_INDEX_WAR:s,...c})=>a.jsxs(b.SnackBar.Structure,{...c,size:e,className:b.helpers.classNameConcat(Jp["snackbar-modifier"],i),width:360,style:{zIndex:s.snackbar},children:[a.jsx(b.SnackBar.Content,{adornment:t,title:r,subtitle:n}),o&&a.jsx(b.SnackBar.Support,{children:o})]});ct.displayName="SnackBar";const em=({coupon:e,feedbackTitle:t,feedbackDescription:r,...n})=>{const{CONSTANTS:o}=De(),{addCouponSeller:i,cartStore:s}=He(),[c,u]=P.useState({status:!1,showSnackBar:!1}),[l,p]=P.useState(!1),[f,d]=P.useState(!1),m=async()=>{if(!s.items.length){d(!0);return}(await i(e,"coupon")).code===200?u({status:!0,showSnackBar:!0}):p(!0)};return P.useEffect(()=>{c.showSnackBar&&setTimeout(()=>{u(h=>({...h,showSnackBar:!1}))},o.TIPBAR_CONFIGS.snackbar_timeout)},[c.showSnackBar]),P.useEffect(()=>{l&&setTimeout(()=>{p(!1)},o.TIPBAR_CONFIGS.snackbar_timeout)},[l]),P.useEffect(()=>{f&&setTimeout(()=>{d(!1)},o.TIPBAR_CONFIGS.snackbar_timeout)},[f]),a.jsxs(a.Fragment,{children:[a.jsx(b.Button,{...n,onClick:m,disabled:c.status,className:vt["tipbar-item__coupon"],children:c.status?`${o.TIPBAR_CONFIGS.coupon_applied_message}`:`${o.TIPBAR_CONFIGS.coupon_default_message}`}),c.showSnackBar&&(t||r)&&a.jsx(ct,{title:t,subtitle:r,Z_INDEX_WAR:o.Z_INDEX_WAR},`feedback-coupon-${e}`),l&&a.jsx(ct,{title:o.TIPBAR_CONFIGS.coupon_error_title,subtitle:o.TIPBAR_CONFIGS.coupon_error_message,Z_INDEX_WAR:o.Z_INDEX_WAR},`error-coupon-${e}`),f&&a.jsx(ct,{title:o.TIPBAR_CONFIGS.coupon_cart_empty_title,subtitle:o.TIPBAR_CONFIGS.coupon_cart_empty_message,Z_INDEX_WAR:o.Z_INDEX_WAR},`error-cart-empty-${e}`)]})},tm=({title:e,description:t,style:r,mode:n,className:o})=>a.jsx(b.TextStructure.Root,{children:a.jsxs(b.TextStructure.DivWrapper,{mode:n,className:o,children:[e&&a.jsx("h3",{className:"typography-style-body-sm",style:r,children:e}),t&&a.jsx("p",{className:"typography-style-caption",style:r,children:t})]})}),rm=({coupon:e,...t})=>{const{CONSTANTS:r}=De();return a.jsx(b.Copy,{...t,iconCopy:r.ICONS.copy,iconSuccess:r.ICONS.check,children:e})},nm=({staticZone:e,type:t,className:r,description:n,title:o})=>{const{mode:i}=De();if(t==="countdown")return a.jsx(Qp,{dateEnd:e.countDownEndDate,size:"x-small",mode:i});if(t==="coupon"){const s=b.helpers.ValidateProp({fieldTypes:Ye.Mode,property:e.couponButtonMode,fallback:"default"}),c=b.helpers.ValidateProp({fieldTypes:Ye.VariantsExtended,property:e.couponButtonVariant,fallback:"primary"});return e.coupon?a.jsx(em,{coupon:e.coupon,mode:s,variant:c,feedbackTitle:e.couponFeedbackTitle,feedbackDescription:e.couponFeedbackDescription}):null}if(t==="copy"){const s=b.helpers.ValidateProp({fieldTypes:Ye.Mode,property:e.couponButtonMode,fallback:"default"});return e.coupon?a.jsx(rm,{coupon:e.coupon,mode:s}):null}return a.jsx(tm,{title:o,description:n,mode:i,className:r})},ja=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=De();return a.jsx(b.Button,{title:"fechar tipbar",className:vt["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:a.jsx(b.Icon,{name:r.ICONS.close})}})},om=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:n})=>{const{carouselProps:o,CONSTANTS:i}=De(),s=P.useRef(null),c=(l,p)=>{var f,d;l.stopPropagation(),l.preventDefault(),p==="prev"?(f=o.controller)==null||f.prevPage():(d=o.controller)==null||d.nextPage(),s.current&&(clearInterval(s.current),u())},u=P.useCallback(()=>{if(n&&o.controller){const l=setInterval(()=>{var p;(p=o.controller)==null||p.nextPage()},n);s.current=l}},[n,o]);return P.useEffect(()=>(u(),()=>{s.current&&clearInterval(s.current)}),[n,u]),a.jsxs(b.Carousel.Root,{innerRef:l=>{o.initialize(l)},className:vt.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[r&&a.jsx(b.Button,{variant:"tertiary",mode:t,onClick:l=>c(l,"prev"),adornment:{start:a.jsx(b.Icon,{name:i.ICONS.arrow_left})}}),a.jsx(b.Carousel.Body,{children:e}),r&&a.jsx(b.Button,{variant:"tertiary",mode:t,onClick:l=>c(l,"next"),adornment:{start:a.jsx(b.Icon,{name:i.ICONS.arrow_right})}})]})},im=({children:e,className:t})=>{const{hasCarousel:r,mode:n,hasCloseBtn:o,backgroundStyle:i,showCarouselArrows:s,slideTranstionTimer:c,handleCloseTipbar:u}=De(),l=r&&s;return a.jsx("div",{style:i,"data-hasclosebtn":o,className:b.helpers.classNameConcat(vt.tipbar,t),children:r?a.jsxs(a.Fragment,{children:[a.jsx(om,{mode:n,showCarouselArrows:l,slideTranstionTimer:c,children:e}),o&&a.jsx(ja,{handleCloseTipbar:u,showCarouselArrows:l,mode:n})]}):a.jsxs(a.Fragment,{children:[e,o&&a.jsx(ja,{handleCloseTipbar:u,mode:n})]})})},am=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:n,carouselProps:o}=De(),i=a.jsx("div",{...r,className:vt["tipbar-item"],children:e});return n?a.jsx(b.Carousel.Item,{style:o.itemsStyles,children:i}):i},gu=({className:e})=>{const{isOpen:t,slices:r}=De();return r.length&&t?a.jsx(im,{children:r.map((n,o)=>{var i;return a.jsx(a.Fragment,{children:a.jsx(mt,{href:n.link,children:a.jsx(am,{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((s,c)=>a.jsx(nm,{staticZone:n,type:s.type,title:s.title,description:s.description,className:e},`tipbar-slice-field-${c}`)):null})})},`tipbar-slice-${o}`)})}):null};gu.displayName="TipBar.Root";const yu=({className:e,...t})=>a.jsx(Xp,{...t,children:a.jsx(gu,{className:e})});yu.displayName="TipBar";const sm="_container_1sy8s_16",Be={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:sm,"add-itens-to-cart-container":"_add-itens-to-cart-container_1sy8s_38","add-itens-to-cart-container-values":"_add-itens-to-cart-container-values_1sy8s_45","add-itens-to-cart-qty-products":"_add-itens-to-cart-qty-products_1sy8s_50","add-itens-to-cart-total":"_add-itens-to-cart-total_1sy8s_60","add-button":"_add-button_1sy8s_70"},cm=({selectedProducts:e,handleAddAllToCart:t,CONSTANTS:r})=>{const n=Object.values(e.products).length;return a.jsxs("div",{className:Be["add-itens-to-cart-container"],children:[a.jsxs("div",{className:Be["add-itens-to-cart-container-values"],children:[a.jsx("div",{className:Be["add-itens-to-cart-qty-products"],children:a.jsx("span",{children:n===0?r.BUY_PACKAGE.group_cart.select_all_product:`${n} ${n===1?r.BUY_PACKAGE.group_cart.select_product:r.BUY_PACKAGE.group_cart.select_product+"s"}`})}),a.jsx("div",{className:Be["add-itens-to-cart-total"],children:a.jsx("span",{children:no({valueInCents:e.totalPrice*100,hasFree:!1,freeTaxMessage:r.FREIGHT_CALCULATION.messages.free_tax})})})]}),a.jsx(b.Button,{onClick:t,className:Be["add-button"],size:"large",disabled:n===0,variant:"primary",children:r.BUY_BUTTON_LABELS.add_to_cart})]})},um=e=>e.reduce((t,r)=>{var o;const n=t.find(i=>i.node.id===r.node.id);if(!n)return[...t,r];if((o=n==null?void 0:n.node.isVariantOf)!=null&&o.hasVariant){const i=n.node.isVariantOf.hasVariant,s=r.node.isVariantOf.hasVariant;i&&s&&(n.node.isVariantOf.hasVariant=[...i,...s])}return t},[]),lm=({selectedProduct:e,productId:t,prevState:r,mainSellerId:n})=>{const{products:o,totalPrice:i}=r;try{if(!e){const{[t]:l,...p}=o;return{...r,totalPrice:i-l.price,products:p}}const s=io(e.offers.offers,n);if(!s)return r;const c=s.seller.identifier,u=s.price;if(o[t]){const{price:l}=o[t];return o[t]={...o[t],price:u,id:e.sku,seller:c},{totalPrice:i+u-l,products:{...o}}}return{totalPrice:i+u,products:{...o,[t]:{id:e.sku,price:u,seller:c,productId:t}}}}catch(s){return console.error("Error handling SKU selection:",s),r}},dm="_carousel_245ib_1",fm="_shelf__container_245ib_14",pm="_shelf_without_carousel_245ib_34",st={carousel:dm,"custom-controllers":"_custom-controllers_245ib_5",shelf__container:fm,"controllers-arrows-bullets":"_controllers-arrows-bullets_245ib_23",shelf_without_carousel:pm},Pa=({title:e})=>a.jsx("div",{className:st.shelf__container,children:e&&a.jsx(b.TextStructure.Root,{children:a.jsxs(b.TextStructure.DivWrapper,{children:[a.jsx("h2",{className:b.helpers.classNameConcat("typography-style-body-md",Ue.responsive["responsive-mobile-flex"]),children:e}),a.jsx("h2",{className:b.helpers.classNameConcat("typography-style-heading-md",Ue.responsive["responsive-desktop-flex"]),children:e})]})})}),mm=({children:e,ICONS:t,itemsPerPage:r,title:n})=>{const{isMobile:o}=Ie(),i=r[o?"mobile":"desktop"],{initialize:s,controller:c,itemsStyles:u,pagination:l}=b.Carousel.useCarousel({itemsPerPage:i,gap:10,loop:!0,direction:"row"}),p=P.Children.toArray(e).length;return o||p>=4?a.jsxs(b.Carousel.Root,{innerRef:d=>{s(d)},className:st.carousel,children:[a.jsxs("div",{className:st["custom-controllers"],children:[n&&a.jsx(Pa,{title:n}),i<p&&a.jsxs(b.Carousel.Controller,{className:st["controllers-arrows-bullets"],children:[a.jsxs(b.Carousel.Arrows,{children:[a.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:a.jsx(b.Icon,{name:t.arrow_left})}}),a.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:a.jsx(b.Icon,{name:t.arrow_right})}})]}),!o&&i>2&&a.jsx(b.Carousel.Bullets,{page:l.currentPage,total:l.totalPages,onBulletClick:d=>c==null?void 0:c.navigateTo(d)})]})]}),a.jsx(b.Carousel.Body,{children:P.Children.map(e,(d,m)=>a.jsx(b.Carousel.Item,{style:{...u,overflow:"hidden"},children:d},`${n}_${m}`))})]}):a.jsxs(a.Fragment,{children:[n&&a.jsx(Pa,{title:n}),a.jsx("div",{className:st.shelf_without_carousel,children:e})]})},hm={Shelf:mm},gm=({CONSTANTS:e,inView:t,products:r,innerRef:n,WishListToggle:o})=>{const i=P.useMemo(()=>um(r),[r]),{isMobile:s}=Ie(),{addItemsToCart:c}=He(),{sendDataLayerEvent:u}=ge(),{getAvailableProductTag:l}=ro(),[p,f]=P.useState({totalPrice:0,products:{}}),d=()=>{const h=Object.values(p.products);c(h),u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:h.map(y=>{const g=i.find(v=>v.node.id===y.productId);return g==null?void 0:g.node})},supportData:{selectedSkus:h,price:p.totalPrice}}})},m=({selectedProduct:h,productId:y})=>{const g=lm({selectedProduct:h,productId:y,prevState:p,mainSellerId:e.StoreConfig_MainSellerId});f(g)};return P.useEffect(()=>{if(!t||i.length===0)return;const h=e.BUY_PACKAGE.header.title;u({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:i},customData:{item_list_name:h},outsideEcommerceData:{item_list_name:h}}})},[t]),a.jsxs("div",{className:Be.container,ref:n,children:[a.jsx("div",{className:Be["carousel-container"],style:{width:i.length<=3?"max-content":"75%"},children:a.jsx(hm.Shelf,{title:e.BUY_PACKAGE.header.title,itemsPerPage:{desktop:3,mobile:i.length>=3?2.2:i.length},ICONS:e.ICONS,children:Array.isArray(i)&&i.map(({node:h},y)=>{var A,_,S;const g=l(h.cluster.highlights),{availability:{status:v}}=h;return v?a.jsxs(we.Root,{item:{...h,image:po.helpers.product.getFirstImages({images:h.image,label:{first:e.MAIN_IMAGE,second:e.SECOND_IMAGE}})},isMobile:s,size:"medium",index:y,shelfTitle:e.BUY_PACKAGE.header.title,CONSTANTS:e,WishListToggle:o,children:[a.jsx(we.Header,{product:h,tag:g.commercial}),a.jsx(we.Media,{}),a.jsxs(we.Wrapper,{type:"body",children:[a.jsx(we.Title,{tag:{value:(A=g.institucional)==null?void 0:A.value,enableIcon:(_=g.institucional)==null?void 0:_.enableIcon,icon:(S=g.institucional)==null?void 0:S.icon}}),a.jsx(we.Actions,{children:a.jsx(we.SizeSelector,{callback:C=>m({selectedProduct:C,productId:h.id})})})]})]},h.id):null})})}),a.jsx("div",{className:Be["add-cart-container"],children:a.jsx(cm,{handleAddAllToCart:d,selectedProducts:p,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},ym=({page:e,data:t})=>{const{pathname:r}=Me(),n=P.useRef(null),{sendDataLayerEvent:o,currentLocalRef:i,itemListRef:s,promotionEventRef:c}=ge();return P.useEffect(()=>{const u=Gs("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}}}),Vs("login_event","",{expires:p})}},[]),P.useEffect(()=>{if(n.current===r)return;n.current=r;let u={};switch(e){case"PDP":{const p=t,f={};if(!p){u={page_category:"pdp"};break}p.items.forEach(({itemId:d,sellers:m})=>f[d]=m[0].commertialOffer.AvailableQuantity),u={page_category:"pdp",seller_ids:p.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:f,product_reference_id:p.productReference};break}case"PDC":{const{page_category:p,page_departament:f,id:d,name:m}=Za(),h=m,y=d;u={page_category:"lista_produtos",...f&&{page_departament:f}},s.current={item_list_name:r==="/search"?"busca":h??void 0,item_list_id:r==="/search"?void 0:y??void 0},f&&o({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:p,page_departament:f}}});break}default:u={page_category:e},c.current={},s.current={};break}const l={region:e,...u};i.current=e,o({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...l}},timeout:0})},[r]),null};var Yn={exports:{}},Dt={exports:{}},Ia;function _m(){return Ia||(Ia=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 c}});const n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function o(u){let{type:l,props:p}=u;const f=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")?f[y]=!!p[h]:f.setAttribute(y,p[h])}const{children:d,dangerouslySetInnerHTML:m}=p;return m?f.innerHTML=m.__html||"":d&&(f.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),f}function i(u,l){if(u instanceof HTMLElement&&l instanceof HTMLElement){const p=l.getAttribute("nonce");if(p&&!u.getAttribute("nonce")){const f=l.cloneNode(!0);return f.setAttribute("nonce",""),f.nonce=p,p===u.nonce&&u.isEqualNode(f)}}return u.isEqualNode(l)}let s;process.env.__NEXT_STRICT_NEXT_HEAD?s=(u,l)=>{const p=document.querySelector("head");if(!p)return;const f=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<f.length;y++){var m;const v=f[y].nextSibling;(v==null||(m=v.tagName)==null?void 0:m.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)})}:s=(u,l)=>{const p=document.getElementsByTagName("head")[0],f=p.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!f){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(f.content),m=[];for(let g=0,v=f.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&&m.push(v)}const y=l.map(o).filter(g=>{for(let v=0,A=m.length;v<A;v++){const _=m[v];if(i(_,g))return m.splice(v,1),!1}return!0});m.forEach(g=>{var v;return(v=g.parentNode)==null?void 0:v.removeChild(g)}),y.forEach(g=>p.insertBefore(g,f)),f.content=(d-m.length+y.length).toString()};function c(){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 m=l[d.type]||[];m.push(d),l[d.type]=m});const p=l.title?l.title[0]:null;let f="";if(p){const{children:d}=p.props;f=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}f!==document.title&&(document.title=f),["meta","base","link","style","script"].forEach(d=>{s(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)}(Dt,Dt.exports)),Dt.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=Re,o=et,i=n._(Da),s=o._(P),c=Jc(),u=_m(),l=gc(),p=new Map,f=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],m=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:$=null,dangerouslySetInnerHTML:E,children:N="",strategy:k="afterInteractive",onError:B,stylesheets:R}=C,q=x||j;if(q&&f.has(q))return;if(p.has(j)){f.add(q),p.get(j).then(I,B);return}const F=()=>{$&&$(),f.add(q)},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){B&&B(G)});E?(U.innerHTML=E.__html||"",F()):N?(U.textContent=typeof N=="string"?N:Array.isArray(N)?N.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)}k==="worker"&&U.setAttribute("type","text/partytown"),U.setAttribute("data-nscript",k),R&&m(R),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");f.add(x)})}function A(C){C.forEach(y),v()}function _(C){const{id:j,src:x="",onLoad:I=()=>{},onReady:$=null,strategy:E="afterInteractive",onError:N,stylesheets:k,...B}=C,{updateScripts:R,scripts:q,getIsSsr:F,appDir:U,nonce:K}=(0,s.useContext)(c.HeadManagerContext),G=(0,s.useRef)(!1);(0,s.useEffect)(()=>{const ne=j||x;G.current||($&&ne&&f.has(ne)&&$(),G.current=!0)},[$,j,x]);const z=(0,s.useRef)(!1);if((0,s.useEffect)(()=>{z.current||(E==="afterInteractive"?h(C):E==="lazyOnload"&&g(C),z.current=!0)},[C,E]),(E==="beforeInteractive"||E==="worker")&&(R?(q[E]=(q[E]||[]).concat([{id:j,src:x,onLoad:I,onReady:$,onError:N,...B}]),R(q)):F&&F()?f.add(j||x):F&&!F()&&h(C)),U){if(k&&k.forEach(ne=>{i.default.preinit(ne,{as:"style"})}),E==="beforeInteractive")return x?(i.default.preload(x,B.integrity?{as:"script",integrity:B.integrity}:{as:"script"}),s.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([x])+")"}})):(B.dangerouslySetInnerHTML&&(B.children=B.dangerouslySetInnerHTML.__html,delete B.dangerouslySetInnerHTML),s.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...B}])+")"}}));E==="afterInteractive"&&x&&i.default.preload(x,B.integrity?{as:"script",integrity:B.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)})(Yn,Yn.exports);var vm=Yn.exports,bm=vm;const xm=Wt(bm),Cm=({children:e,ONE_TRUST:t})=>a.jsxs(a.Fragment,{children:[a.jsx(xm,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),Sm=vo(()=>Promise.resolve(Cm),{ssr:!1}),_u=({children:e,contentState:t,entityKey:r})=>{const{url:n}=t.getEntity(r).getData();return n?a.jsx(Pe,{href:n,children:e}):e},Am={teamComponents:{AddToCart:mo,BackToTop:ed,BuyPackage:gm,...Up,FreightCalculation:Rf,Header:kc,Link:rt,Media:ke,ProductCard:we,TipBar:yu},template:{pdp:Kp},utils:{EventCollector:ym,ExternalScripts:Sm,LinkOrNotLink:mt,ObserverWrapper:Kt,SnackBarComponent:ct,DraftJsLinkWrapper:_u}},Em=(e,t)=>{const r=e.map(o=>`'${o.source}'`).join(`,
42
+ `);return`
43
+ import type { NextRequest } from 'next/server'
44
+ import { NextResponse } from 'next/server'
45
+
46
+ import { redirectMap } from './redirectMap'
47
+
48
+ interface RedirectItem {
49
+ source: string
50
+ destination: string
51
+ permanent: boolean
52
+ }
53
+
54
+ export function middleware(req: NextRequest) {
55
+ try {
56
+ const { pathname } = req.nextUrl
57
+ const redirect = (redirectMap as RedirectItem[]).find(item => item.source === pathname)
58
+
59
+ if (redirect?.destination) {
60
+ try {
61
+ const redirectUrl = new URL(redirect.destination, '${t}')
62
+ return NextResponse.redirect(redirectUrl, 301)
63
+ } catch (e) {
64
+ console.error('[ERROR INVALID URL]:', redirect.destination)
65
+ return NextResponse.error()
66
+ }
67
+ }
68
+
69
+ return NextResponse.next()
70
+ } catch (e) {
71
+ console.error('NEXT MIDDLEWARE ERROR:', e)
72
+ return NextResponse.error()
73
+ }
74
+ }
75
+
76
+ export const config = {
77
+ matcher: [
78
+ ${r}
79
+ ]
80
+ }
81
+ `},Rm=Object.freeze(Object.defineProperty({__proto__:null,generateMiddleware:Em},Symbol.toStringTag,{value:"Module"})),wm={helpers:Rm},jm=(e,t,r)=>{e.findEntityRanges(n=>{const o=n.getEntity();return o===null?!1:r.getEntity(o).getType()==="LINK"},t)},qt=e=>{const t=new Te.CompositeDecorator([{strategy:jm,component:_u}]),r=Te.convertFromRaw(e);return Te.EditorState.createWithContent(r,t)},Pm=e=>Te.convertFromRaw(e),Ht=Te.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),Na="superior-direita",$t="dentro-inferior-centro",Im="inferior-direita",Bn="dentro-inferior-esquerda",vu=e=>({position:e===$t||e===Bn?"absolute":"default",shouldRender:[Na,$t,Bn].includes(e)?"top":"bottom",alignItems:[$t].includes(e)?"center":[Na,Im].includes(e)?"flex-end":"flex-start",left:e===Bn?"16px":e===$t?"45%":"unset"}),Nm=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:qt,EXTENDED_BLOCK_RENDER_MAP:Ht,GET_CONTENT_STATE:Pm,controllersPositionsAdapter:vu},Symbol.toStringTag,{value:"Module"})),Xe=e=>({centro:"center",esquerda:"start",direita:"end"})[e],Om=({expanded:e,content:t})=>a.jsxs("details",{open:e,children:[t.textStructureReduced?a.jsx("summary",{onClick:r=>r.preventDefault(),children:a.jsx(Te.Editor,{editorKey:"draft-editor-1",blockRenderMap:Ht,editorState:t!=null&&t.textStructureReduced?qt(JSON.parse(t.textStructureReduced)):Te.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):a.jsx(a.Fragment,{}),t.showTextStructureExpander&&t.textStructure?a.jsx(a.Fragment,{children:a.jsx(Te.Editor,{editorKey:"draft-editor-1",blockRenderMap:Ht,editorState:t.textStructure?qt(JSON.parse(t.textStructure)):Te.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):a.jsx(a.Fragment,{})]}),Zn={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},Tm="_textContentWrapper_1bigo_5",Mm="_textContentSection_1bigo_13",Jn={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:Tm,textContentSection:Mm},bu=({data:e,ICONS:t})=>{var o;const[r,n]=P.useState(!1);return a.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:Xe(e.textStructureAlignment),alignItems:Xe(e.textStructureAlignment)},columnWrapper:{alignContent:Xe(e.textStructureAlignment),alignItems:Xe(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?a.jsx(b.Button,{variant:"tertiary",adornment:{end:a.jsx(b.Icon,{name:r?`${t.arrow_up}`:`${t.arrow_down}`})},onClick:()=>n(i=>!i),size:"small",children:r?"Ver Menos":"Ver Mais"}):a.jsx(a.Fragment,{})},children:a.jsxs(b.Utils.Column,{className:Jn.textContentWrapper,style:{alignItems:Xe(e.textStructureAlignment)},children:[a.jsx(b.TextStructure.DivWrapper,{style:{textAlign:Xe(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:Zn["draftjs-text-modifier"],children:e.textStructureReduced?a.jsx(Om,{content:e,expanded:r}):a.jsx(a.Fragment,{})}),e.textStructureButtonLabel?a.jsx(rt,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:Jn["link-modifier"],adornments:(o=e.textStructureButtonIcon)!=null&&o.length&&e.enableIcon?{end:a.jsx(b.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):a.jsx(a.Fragment,{})]})})},km=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],Oa=e=>({centro:"center",esquerda:"start",direita:"end"})[e],Ta={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},Ma=({data:e,videoUrl:t,priority:r,videoRef:n,ICONS:o,...i})=>{const{video:s,image:c,imageHref:u,imageOpacity:l,altImage:p,backgroundColor:f,position:d,contentAlignment:m,showTimer:h,contentOrder:y,timerMode:g,timerEnd:v,timerInit:A,textStructure:_,textStructureReduced:S}=e.banner,C=(u==null?void 0:u.trim())||(c==null?void 0:c.trim())||null,{nextimage:j}=Me();return a.jsxs(b.Banner.Container,{...i,children:[a.jsxs(b.Banner.ImageWrapper,{className:Ta["banner-image-wrapper-modifier"],style:l?{background:f}:void 0,children:[s&&a.jsx(ke.Video,{videoRef:n,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),C&&!(s!=null&&s.length)&&a.jsx(j,{src:C,width:"1920",height:"1080",alt:p??c??"",...r?{priority:r}:{},style:l?{opacity:"0"}:void 0}),!c&&!(s!=null&&s.length)&&a.jsx("div",{style:{background:f}})]}),h||S||_?a.jsx(b.Banner.Slot,{...km(d??"centro"),className:Ta["content-modifier"],style:{textAlign:Oa(m)},children:a.jsxs(b.Utils.Column,{gap:"16px",alignItems:Oa(m),children:[h&&y==="timer-first"&&a.jsx(Qn,{mode:g??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:A?new Date(A):new Date}),a.jsx(bu,{data:e.banner,ICONS:o}),h&&y!=="timer-first"&&a.jsx(Qn,{mode:g??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:A?new Date(A):new Date})]})}):a.jsx(a.Fragment,{})]})},Eo=({data:e,className:t,priority:r,creative:n,...o})=>{const{handleSelectPromotionEvent:i,currentLocalRef:s}=ge(),{banner:{promotion_name:c},index:u,componentIndex:l}=e,p=typeof u=="number"?`:${u+1}`:"",f={creative_name:n,creative_slot:`${n}-${s.current}:${l+1}${p}`,promotion_id:e.banner.href,promotion_name:c},d=P.useRef(null),m=P.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 a.jsx(Kt,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...f,index:u}}}},observerOptions:{delay:100,...m&&{threshold:.1}},...m&&{callBackWhenVisible:h},children:e.banner.href?a.jsx(Pe,{href:e.banner.href,onClick:()=>{i({updatePromotionRef:!0,promotion:f,index:u})},children:a.jsx(Ma,{data:e,videoUrl:m,priority:r,videoRef:d,...o})}):a.jsx(Ma,{data:e,videoUrl:m,priority:r,videoRef:d,...o})})},xu=e=>a.jsx(Eo,{...e}),eo={"custom-carousel":"_custom-carousel_t5fgp_1","carrousel-arrows-display-controller":"_carrousel-arrows-display-controller_t5fgp_10","carousel-controllers-modifier":"_carousel-controllers-modifier_t5fgp_19"};function Lm(e,t){const{mediatorRef:r}=Ie();P.useEffect(()=>r.current.subscribe(e,t),[e,t])}const ka=({prevOnClick:e,nextOnClick:t,onBulletClick:r,currentPage:n,totalPages:o,position:i,hideControllers:s,left:c,isFirst:u,ICONS:l})=>{const[p,f]=P.useState("default");return Lm("herobanner:change_controllers_variant",d=>{u&&f(d.includes("white")?"inverse":"default")}),a.jsxs(b.Carousel.Controller,{className:eo["carousel-controllers-modifier"],position:i??"absolute","data-hide-controllers":s,bottom:"16px",top:"unset",left:c,children:[a.jsxs(b.Carousel.Arrows,{className:eo["carrousel-arrows-display-controller"],children:[a.jsx(b.Button,{variant:"tertiary",onClick:e,adornment:{start:a.jsx(b.Icon,{name:l.arrow_left})},mode:p}),a.jsx(b.Button,{variant:"tertiary",onClick:t,adornment:{start:a.jsx(b.Icon,{name:l.arrow_right})},mode:p})]}),a.jsx(b.Carousel.Bullets,{page:n,total:o,onBulletClick:r,mode:p})]})},Dm=({children:e,data:t,banner:r,...n})=>{const{mediatorRef:o}=Ie();return t.data.first?a.jsx(Kt,{observerOptions:{threshold:.51},stopOnIntersection:!1,callBackWhenVisible:()=>{o.current.publish("header:change_variant",r.headerVariant)},...n,children:e}):a.jsx(a.Fragment,{children:e})},$m=e=>{var p;const{initialize:t,pagination:r,controller:n,itemsStyles:o}=b.Carousel.useCarousel({gap:e.data.config.gap,itemsPerPage:e.data.config.slidesPerView,direction:"row"}),i=P.useRef(void 0),s=P.useMemo(()=>vu(e.data.config.controllerPosition??"dentro-inferior-centro"),[e]),c=P.useCallback(()=>{e.data.config.slideDuration&&r.totalPages>1&&(i.current=setInterval(()=>{n==null||n.nextPage()},e.data.config.slideDuration*1e3))},[n,e.data.config.slideDuration,r.totalPages]),u=P.useCallback(f=>{clearInterval(i.current),c(),f()},[c]),l=P.useMemo(()=>{var f;return{nextOnClick:()=>u(()=>n==null?void 0:n.nextPage()),prevOnClick:()=>u(()=>n==null?void 0:n.prevPage()),onBulletClick:d=>u(()=>n==null?void 0:n.navigateTo(d)),currentPage:r.currentPage,totalPages:r.totalPages,position:s.position,hideControllers:((f=e.data.config)==null?void 0:f.hideControllers)??!1,left:s.left}},[r.currentPage,r.totalPages,s.position,e.data.config.hideControllers,u,n]);return P.useEffect(()=>(c(),()=>clearInterval(i.current)),[c]),a.jsxs(b.Carousel.Root,{innerRef:f=>{t(f)},className:b.helpers.classNameConcat(eo["custom-carousel"],e.data.config.fullWidth?"":"common-section"),"data-infinity-border":!0,style:{...e.data.config.marginTop!=="0px"&&{marginTop:`-${e.data.config.marginTop}`},...e.data.config.marginBottom!=="0px"&&{marginBottom:`-${e.data.config.marginBottom}`}},children:[s.shouldRender==="top"&&r.totalPages>1?a.jsx(ka,{ICONS:e.data.icons,...l,isFirst:e.data.first}):a.jsx(a.Fragment,{}),a.jsx(b.Carousel.Body,{children:(p=e==null?void 0:e.data)==null?void 0:p.banners.map((f,d)=>a.jsx(b.Carousel.Item,{style:o,children:a.jsx(Dm,{data:e,banner:f,children:a.jsx(Eo,{ICONS:e.data.icons,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,data:{banner:f,index:d,componentIndex:e.data.componentIndex},creative:"banner-carousel",...e.data.first&&d===0&&{priority:!0}})})},`hero-banner-item-${d}`))}),s.shouldRender==="bottom"&&r.totalPages>1?a.jsx(ka,{ICONS:e.data.icons,...l}):a.jsx(a.Fragment,{})]})},Bm={Banner:xu},ot={"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"},qm=({data:e,CONSTANTS:t})=>{var l;const{isMobile:r}=Ie(),n=e.config.size??"medium",o=e.config.disableCarouselMobile??!1,{initialize:i,pagination:s,controller:c,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 a.jsx(b.Utils.Column,{style:{width:n==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:a.jsxs(b.Carousel.Root,{innerRef:p=>{i(p)},className:b.helpers.classNameConcat(ot["carousel-modifier"],"common-section"),children:[n==="medium"?a.jsxs(b.TextStructure.Root,{children:[a.jsx(b.TextStructure.DivWrapper,{className:ot["carousel-title-modifier"],children:a.jsx("h2",{className:"typography-style-body-lg",children:t.BENNEFITS_BAR_TITLE})}),r&&s.totalPages>1?a.jsx(b.Carousel.Controller,{className:ot["row-controller-modifier"],children:a.jsxs(b.Carousel.Arrows,{children:[a.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:a.jsx(b.Icon,{name:t.ICONS.arrow_left})}}),a.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:a.jsx(b.Icon,{name:t.ICONS.arrow_right})}})]})}):a.jsx(a.Fragment,{})]}):a.jsx(a.Fragment,{}),a.jsx(b.Carousel.Body,{children:e.bennefit.map((p,f)=>a.jsx(b.Carousel.Item,{className:ot["card-modifier"],style:u,children:a.jsx(b.Card,{stroke:!0,padding:"small",children:a.jsx(b.TextStructure.Root,{layoutProps:{columnWrapper:{alignContent:"start",alignItems:"start",justifyContent:"start"},textRow:{alignContent:"center",alignItems:"center",justifyContent:"center"}},adornment:{[n==="medium"?"top":"start"]:a.jsx(b.Icon,{name:p.icon,size:n==="medium"?"medium":"small"})},children:a.jsxs(b.TextStructure.DivWrapper,{alignItems:"start",children:[a.jsx("h3",{className:"typography-style-body-md",children:p.title}),p.subtitle&&p.subtitle.length?a.jsx("p",{className:"typography-style-body-xs",children:p.subtitle}):a.jsx(a.Fragment,{})]})})})},`bennefit=${f}`))}),!r&&s.totalPages>1?a.jsxs(b.Carousel.Controller,{className:ot["row-controller-modifier"],children:[a.jsxs(b.Carousel.Arrows,{children:[a.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:a.jsx(b.Icon,{name:t.ICONS.arrow_left})}}),a.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:a.jsx(b.Icon,{name:t.ICONS.arrow_right})}})]}),a.jsx(b.Carousel.Bullets,{page:s.currentPage,total:s.totalPages,onBulletClick:p=>c==null?void 0:c.navigateTo(p)})]}):a.jsx(a.Fragment,{})]})})},Hm=({data:e,ICONS:t})=>a.jsx("div",{className:b.helpers.classNameConcat(Jn.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:a.jsx(bu,{data:e,ICONS:t})}),La={"accordion-modifier":"_accordion-modifier_1we16_1","accordion-body-modifier":"_accordion-body-modifier_1we16_7"},zm=({data:e,id:t,ICONS:r})=>{var i;const[n,o]=P.useState([]);return a.jsxs(b.Utils.Column,{gap:"var(--gap-vertical-sm)",children:[e.titleAccordion?a.jsx(b.TextStructure.Root,{children:a.jsx(b.TextStructure.DivWrapper,{children:a.jsx("h2",{className:b.helpers.classNameConcat("typography-style-heading-sm","common-section"),style:{fontWeight:500},children:e.titleAccordion})})}):a.jsx(a.Fragment,{}),(i=e.accordions)==null?void 0:i.map((s,c)=>a.jsxs(b.Accordion.Wrapper,{className:La["accordion-modifier"],children:[a.jsx(b.Accordion.Header,{id:`${t}-text-accordion-${c}`,openIndicator:a.jsx(b.Icon,{name:r.arrow_down}),closeIndicator:a.jsx(b.Icon,{name:r.arrow_up}),startOpen:n.includes(c),onClick:()=>o(u=>u.includes(c)?u.filter(l=>l!==c):[...u,c]),children:a.jsx(b.TextStructure.Root,{children:a.jsxs(b.TextStructure.DivWrapper,{className:Zn["draftjs-text-modifier"],children:[a.jsx("h3",{className:"typography-style-body-md-strong",children:s.title}),s.subtitle&&s.subtitle.length?a.jsx("h2",{children:s.subtitle}):a.jsx(a.Fragment,{})]})})}),a.jsx(b.Accordion.Body,{children:a.jsx(b.TextStructure.Root,{children:a.jsx(b.TextStructure.DivWrapper,{className:b.helpers.classNameConcat(La["accordion-body-modifier"],Zn["draftjs-text-modifier"]),children:a.jsx(Te.Editor,{editorKey:`${t}-editor-${c}`,blockRenderMap:Ht,editorState:s.text?qt(JSON.parse(s.text)):Te.EditorState.createEmpty(),onChange:()=>null})})})})]},`${t}-accordion-${c}-${n.includes(c)}`))]})},Fm={Banner:Bm,BannerSection:Eo,BennefitsBarSection:qm,SingleBannerSection:xu,TextContentSection:Hm,BannerCarousel:$m,TextAccordionSection:zm},Um={Components:Fm,helpers:Nm};exports.cms=Um;exports.contexts=kl;exports.data=po;exports.layout=Am;exports.scripts=wm;