@soma-vertical-web/multi-lib 0.0.23 → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/cms/ContentTypes/CommonPage/CommonPage.d.ts +3 -0
  2. package/cms/ContentTypes/CommonPage/DataScreening.d.ts +6 -0
  3. package/cms/ContentTypes/CommonPage/index.d.ts +2 -0
  4. package/cms/ContentTypes/FlagsAndTags/index.d.ts +1 -0
  5. package/cms/ContentTypes/index.d.ts +6 -0
  6. package/cms/Factories/common.d.ts +7 -0
  7. package/cms/Factories/contentType.d.ts +9 -0
  8. package/cms/Factories/index.d.ts +2 -0
  9. package/cms/Factories/section.d.ts +7 -0
  10. package/cms/Sections/Banner/Component.d.ts +7 -0
  11. package/cms/Sections/Banner/Composite/Content.d.ts +4 -0
  12. package/cms/Sections/Banner/Composite/Slot.d.ts +0 -0
  13. package/cms/Sections/Banner/adapter.d.ts +32 -0
  14. package/cms/Sections/Banner/index.d.ts +8 -0
  15. package/cms/Sections/BennefitsBar/Component.d.ts +3 -0
  16. package/cms/Sections/BennefitsBar/index.d.ts +8 -0
  17. package/cms/Sections/TextContent/Component.d.ts +4 -0
  18. package/cms/Sections/TextContent/Composite/Content.d.ts +6 -0
  19. package/cms/Sections/TextContent/Composite/ContentWrapper.d.ts +3 -0
  20. package/cms/Sections/TextContent/adapter.d.ts +3 -0
  21. package/cms/Sections/TextContent/index.d.ts +5 -0
  22. package/cms/Sections/_common/Accordion.d.ts +2 -0
  23. package/cms/Sections/_common/BannerItem.d.ts +5 -0
  24. package/cms/Sections/_common/TextStructure.d.ts +17 -0
  25. package/cms/Sections/_common/interfaces.d.ts +8 -0
  26. package/cms/Sections/index.d.ts +10 -0
  27. package/cms/helpers/index.d.ts +4 -1
  28. package/cms/index.d.ts +13 -7
  29. package/cms/ui/ContentTypes/CommonPage/CommonPage.d.ts +3 -0
  30. package/cms/ui/ContentTypes/CommonPage/DataScreening.d.ts +6 -0
  31. package/cms/ui/ContentTypes/CommonPage/index.d.ts +2 -0
  32. package/cms/ui/ContentTypes/index.d.ts +1 -0
  33. package/cms/ui/Factories/section.d.ts +7 -0
  34. package/cms/ui/Sections/Banner/Component.d.ts +7 -0
  35. package/cms/ui/Sections/Banner/Composite/Content.d.ts +4 -0
  36. package/cms/ui/Sections/Banner/Composite/Slot.d.ts +0 -0
  37. package/cms/ui/Sections/Banner/adapter.d.ts +32 -0
  38. package/cms/ui/Sections/Banner/index.d.ts +8 -0
  39. package/cms/ui/Sections/TextContent/Component.d.ts +4 -0
  40. package/cms/ui/Sections/TextContent/Composite/Content.d.ts +3 -0
  41. package/cms/ui/Sections/TextContent/Composite/ContentWrapper.d.ts +3 -0
  42. package/cms/ui/Sections/TextContent/adapter.d.ts +3 -0
  43. package/cms/ui/Sections/TextContent/index.d.ts +8 -0
  44. package/cms/ui/Sections/_common/Accordion.d.ts +2 -0
  45. package/cms/ui/Sections/_common/BannerItem.d.ts +5 -0
  46. package/cms/ui/Sections/_common/TextStructure.d.ts +17 -0
  47. package/cms/ui/Sections/_common/interfaces.d.ts +8 -0
  48. package/cms/ui/Sections/index.d.ts +4 -0
  49. package/data/api/cms/index.d.ts +1 -1
  50. package/data/helpers/product/generalInfo.d.ts +1 -0
  51. package/index-BCZReEF1.js +4 -0
  52. package/index-BI5_UgNN.mjs +3210 -0
  53. package/index-BaPdEOcD.js +4 -0
  54. package/index-C7gBx1Sj.js +4 -0
  55. package/index-CAM8BZOC.mjs +3509 -0
  56. package/index-CG59Ho-O.mjs +3514 -0
  57. package/index-CWsS9JhJ.mjs +69 -0
  58. package/index-CqPFy76Q.mjs +3531 -0
  59. package/index-DVeRXseR.js +4 -0
  60. package/index-DXjpbLiy.js +4 -0
  61. package/index-DmJIk8vB.mjs +3210 -0
  62. package/index-KIgYoXyH.mjs +3526 -0
  63. package/index-NWyULgUV.js +4 -0
  64. package/index-T-_Ys9t7.mjs +3483 -0
  65. package/index-T1F-4OSy.js +4 -0
  66. package/index-dgE7GGD0.js +4 -0
  67. package/index-fnNrOQ41.js +1 -0
  68. package/index-tKMO8iJa.mjs +3215 -0
  69. package/index.d.ts +1 -1
  70. package/index.js +41 -4
  71. package/index.mjs +8776 -4553
  72. package/index2.js +1 -1
  73. package/index2.mjs +97 -34
  74. package/layout/index.d.ts +11 -10
  75. package/layout/team-component/Footer/Composite/Devices/Column.Mobile.d.ts +1 -1
  76. package/layout/team-component/Footer/Composite/Support/index.d.ts +3 -0
  77. package/layout/team-component/Footer/Composite/Support/item.d.ts +3 -0
  78. package/layout/team-component/Footer/Footer.d.ts +1 -1
  79. package/layout/team-component/Footer/index.d.ts +4 -1
  80. package/layout/team-component/TipBar/Composite/Fields/FieldsScreening.d.ts +1 -1
  81. package/layout/team-component/TipBar/Composite/Fields/TextContent.d.ts +1 -1
  82. package/layout/team-component/TipBar/Composite/Root.d.ts +3 -1
  83. package/layout/team-component/TipBar/index.d.ts +1 -1
  84. package/layout/utils/DraftJsLinkWrapper/index.d.ts +5 -0
  85. package/package.json +1 -1
  86. package/server.d.ts +4 -3
  87. package/style.css +1 -1
  88. package/types/cms/ContentTypes/CommonPage/index.d.ts +6 -2
  89. package/types/cms/ContentTypes/FlagsAndTags/index.d.ts +1 -1
  90. package/types/cms/ContentTypes/Footer/index.d.ts +31 -1
  91. package/types/cms/ContentTypes/Header/index.d.ts +1 -1
  92. package/types/cms/ContentTypes/LookbookPage/index.d.ts +1 -1
  93. package/types/cms/ContentTypes/Multimarcas/index.d.ts +1 -1
  94. package/types/cms/ContentTypes/NotFoundPage/index.d.ts +2 -3
  95. package/types/cms/Sections/Banner/index.d.ts +5 -1
  96. package/types/cms/Sections/BennefitsBar/index.d.ts +5 -0
  97. package/types/cms/Sections/TextContent/index.d.ts +9 -2
  98. package/types/cms/api/index.d.ts +0 -11
  99. package/types/constants.d.ts +8 -1
  100. package/types/contexts/contexts/cart/index.d.ts +1 -2
  101. package/types/contexts/store/cart.d.ts +3 -2
  102. package/types/data/api/cms/index.d.ts +11 -0
  103. package/types/data/api/search/product/index.d.ts +1 -1
  104. package/types/layout/team-components/Footer/index.d.ts +3 -0
  105. package/types/layout/team-components/Timer/index.d.ts +1 -1
  106. package/types/layout/team-components/TipBar/index.d.ts +6 -1
  107. package/types/layout/utils/index.d.ts +6 -0
package/index.js CHANGED
@@ -1,4 +1,41 @@
1
- "use strict";var Da=Object.defineProperty;var qa=(e,t,r)=>t in e?Da(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var pt=(e,t,r)=>qa(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),b=require("react"),Se=require("idb-keyval"),qe=require("zustand"),m=require("@soma-vertical-web/core-components"),za=require("./index-BK5yScKK.js"),$a=require("react-dom"),Le=require("@soma-vertical-web/foundations"),Cr=require("axios"),jr=require("@date-fns/tz"),er=b.createContext({}),Fa=({data:e,children:t})=>o.jsx(er.Provider,{value:{tags:e==null?void 0:e.config},children:t}),gn=()=>{const{tags:e}=b.useContext(er),t=b.useCallback(r=>{var i,c,l,u;const n=(c=(i=e==null?void 0:e.commercial)==null?void 0:i.items)==null?void 0:c.find(p=>{var f;return(f=r??[])==null?void 0:f.find(d=>d.id===p.key)}),a=(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)}),s=e==null?void 0:e.flagPdp;return{commercial:n,institucional:a,flagPdp:s}},[e]);return{tags:e,getAvailableProductTag:t}},yn=({gridScrollBack:e})=>{b.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},vn=b.createContext({}),Ba=({children:e,gridScrollBack:t})=>{const r=b.useRef(null);return yn({gridScrollBack:t}),o.jsx(vn.Provider,{value:{sizesContainerRef:r},children:e})},Ha=()=>{const e=b.useContext(vn);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},me=(e,t=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:t?2:0}).format(e),bn=({valueInCents:e,hasFree:t,freeTaxMessage:r})=>e===0?t?r:"R$ 0,00":me(e/100),tr=(e,t)=>{const[r,n]=e.split(t);return{name:r.trim(),size:n?n.trim():""}},rr=(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()}},xn=(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},Ua=e=>e.replace(/\//g,""),Cn=({items:e,NAME_SPLIT_SYMBOL:t})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(i,c)=>{var d;c&&(c.sellerId=i.sellerId,c.sellerName=i.sellerName,c.available=!0,c.isSellerDefault=i.sellerDefault);const{Price:l,ListPrice:u,PaymentOptions:{installmentOptions:p}}=i.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:_,value:y}=f[f.length-1];r.installments={count:_,value:y/100}}};let a=!0;const s=e.reduce((i,c)=>{var p;const l={name:c.name,sku:c.itemId,value:((p=c.Tamanho)==null?void 0:p[0])??tr(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&&(a=!1),i.push(l),i},[]);return{...r,sizes:s,allSizesAvailable:a}},jn=e=>e?!e.offers.offers.find(({quantity:t=0})=>t>0):!1,In=(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)},Sn=e=>e.find(t=>t.imageLabel==="10"),Nn=(e,t)=>{const r=/\/ids\/(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},Pn=(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},Tn=({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},Wa=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},En=(e,t,r)=>{t&&(e?(t.getAttribute("src")||(t.src=r??""),t.play()):t.pause())},Va=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:jn,formatPriceToCurrency:me,freightParsePrice:bn,getAspectRatio:Wa,getColorAndSizeFromSkuName:rr,getFirstImages:Tn,getSKUName:xn,getSkuInfos:Cn,getThumbImage:Sn,getValidOffer:In,removeSlashes:Ua,resizingImg:Nn,setVideoPlay:En,splitNameAndSizeFromFullName:tr,updatedResizedImg:Pn},Symbol.toStringTag,{value:"Module"})),pe=({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})},U={configs:{PLP_FILTERS:[{key:"",label:"",eventLabel:"",order:0}],currency:"BRL",categoryOff:"bazar",storeUrl:"https://www.example.com",MAIN_IMAGE:"1",NAME_SPLIT_SYMBOL:"-"},productEvents:(e,t)=>{const{event:r,commonData:n,customData:a,promotionInfo:s,itemList:i,outsideEcommerceData:c}=e,{availableSizes:l,sizes:u,price:p}=n,f={...r==="view_item"?{currency:U.configs.currency,value:p,grade_disponivel:l??(u?wn(u):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:p,currency:U.configs.currency}:{}},d=Ge({data:n,customData:{...a,...i,...s},configs:U.configs});pe({event:r,data:{...c,ecommerce:{...i,...f,items:[d]}}}),typeof t=="function"&&t(d,f)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:r,itemList:n,outsideEcommerceData:a,customData:s}=e;if(t.length===0)return;const i=t.map(({node:c},l)=>Ge({data:{...c},customData:{...r,index:l,...s!=null&&s.item_list_name?{item_list_name:s==null?void 0:s.item_list_name}:n},configs:U.configs}));pe({event:"view_item_list",data:{...a,ecommerce:{...s!=null&&s.item_list_name?{item_list_name:s==null?void 0:s.item_list_name}:n,items:i}}})},skuEvents:e=>{const{event:t,commonData:{products:r},customData:n,supportData:{selectedSkus:a,price:s},promotionInfo:i,itemList:c,outsideEcommerceData:l}=e;let u=0;const p=r.map(f=>{var h,g,v,N,S,C,x,j,I;const d=a==null?void 0:a.find(P=>(f.productId??f.id)===P.productId);let _={...i,...c};if(d){const P=On(),w=An(P,d);w&&(_={..._,...w}),t==="add_to_cart"&&(i||c)&&Wt({persistedData:P,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:i,itemList:c}}),t==="remove_from_cart"&&Wt({persistedData:P,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}u+=f.price??((v=(g=(h=d==null?void 0:d.offers)==null?void 0:h.offers)==null?void 0:g[0])==null?void 0:v.price)??0;const y=(d==null?void 0:d.size)??rr((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((N=f.itemOffered)==null?void 0:N.skuName),U.configs.NAME_SPLIT_SYMBOL).size;return Ge({data:f,customData:{...n,..._??{...i,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((S=f.itemOffered)==null?void 0:S.sku),quantity:(n==null?void 0:n.quantity)??f.quantity??1,item_variant2:y,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((I=(j=(x=(C=d==null?void 0:d.offers)==null?void 0:C.offers)==null?void 0:x[0])==null?void 0:j.seller)==null?void 0:I.identifier)??f.seller},configs:U.configs})});pe({event:t,data:{...l,ecommerce:{value:s??u,currency:U.configs.currency,items:p}}})},filterEvent:e=>{var i;const{commonData:t,customData:r,outsideEcommerceData:n}=e,a={},s={};Array.isArray(t==null?void 0:t.selectedFacets)&&((i=t==null?void 0:t.selectedFacets)!=null&&i.length)&&((t==null?void 0:t.selectedFacets).forEach(({key:c,value:l})=>{var f;const u=((f=U.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:f.eventLabel)??c,p=(a==null?void 0:a[u])||[];u==="price_range"&&l.replace(":","-"),a[u]=[...p,l]}),Object.keys(a).forEach(c=>s[c]=a[c].join(", "))),pe({event:"filter",data:{...n,...s,...r}})},viewCartEvent:e=>{var p,f,d,_,y,h,g,v,N,S;const{commonData:t,outsideEcommerceData:r}=e,{cartStore:n}=t;if(!n)return;const a=window.localStorage.getItem("persistedCartEventsData"),s=a?JSON.parse(a):{},i=n.items.map(C=>{const{promotionInfo:x,itemList:j}=s[C.id]??{};return Ge({data:{...C,price:C.price/100,listPrice:C.listPrice/100},customData:{...x,...j,item_sku:C.id??C.itemOffered.sku,quantity:C.quantity??1},configs:U.configs})}),c=(((p=n.totalizers.find(C=>C.name==="Total dos Itens"))==null?void 0:p.value)??0)/100,l=(((f=n.totalizers.find(C=>C.name==="Total dos Descontos"))==null?void 0:f.value)??0)/100,u=((d=n.marketingData)==null?void 0:d.utmiCampaign)==="codigodavendedora"?(_=n.marketingData)==null?void 0:_.utmCampaign:(h=String((y=n.openTextField)==null?void 0:y.value))==null?void 0:h.split(" - ")[0];pe({event:"view_cart",data:{...r,ecommerce:{currency:U.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}:{},...((N=n.marketingData)==null?void 0:N.coupon)&&{sale_coupon_name:(S=n.marketingData)==null?void 0:S.coupon},subtotal:c,items:i}}})},readyEvents:e=>{const{event:t,readyData:r}=e;pe({event:t,data:{...r}})}},wn=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),Ga=e=>{const t=e.length;return{...e&&e.length>0?{item_category:e[0].includes(U.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},Ge=({data:e,customData:t,configs:r})=>({...Ka(e,r==null?void 0:r.MAIN_IMAGE),...Xa(e),...Qa(e),...Ya(e),...t}),Rn=()=>{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("_"))??[]:[]},On=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},An=(e,t)=>e==null?void 0:e[t],Wt=({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)))},Ka=(e,t="1")=>{var s,i,c,l,u,p,f,d,_,y,h;const r=e.productReference??e.gtin??e.productRefId,n=e.image??((i=(s=e.items)==null?void 0:s[0])==null?void 0:i.images)??((c=e.itemOffered)==null?void 0:c.image),a=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??tr((d=e.itemOffered)==null?void 0:d.name,U.configs.NAME_SPLIT_SYMBOL).name,item_brand:((_=e.brand)==null?void 0:_.brandName)??((y=e.brand)==null?void 0:y.name)??e.brand??((h=e.itemOffered)==null?void 0:h.brand.name),item_url:`${U.configs.storeUrl}${e.linkText}/p`,item_image:(a==null?void 0:a.url)??(a==null?void 0:a.imageUrl)}},Ir=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,Xa=e=>{var u,p;const{categories:t,categoriesIds:r}=e,n=t??((u=e.itemOffered)==null?void 0:u.categories),a=r??((p=e.itemOffered)==null?void 0:p.categoriesIds),s=Ir(n),i=Ir(a),c=s.slice(1,-1).split("/"),l=i.slice(1,-1).split("/");return{item_category:c[0].toLowerCase().includes(U.configs.categoryOff)?"Bazar":"Coleção",...c[1]&&{item_category2:c[1]},...c.length>2&&{item_category3:c[c.length-1]},item_category_id:l[l.length-1],...l.length>1&&{item_parent_category_id:l[l.length-2]}}},Qa=e=>{var a,s,i,c,l,u;const t=((a=e.itemOffered)==null?void 0:a.skuName)??((c=(i=(s=e.isVariantOf)==null?void 0:s.hasVariant)==null?void 0:i[0])==null?void 0:c.name)??((u=(l=e.items)==null?void 0:l[0])==null?void 0:u.name),{color:r,size:n}=rr(t,U.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:n}}},Ya=e=>{var l,u;const{price:t,listPrice:r,installments:n}=e,a=t??((l=e.offers)==null?void 0:l.lowPrice)??0,s=r??((u=e.offers)==null?void 0:u.highPrice)??0,i=s?s-a:0,c=i%1===0?i:Number(i.toFixed(2));return{...t&&{price:a??s},...s&&{list_price:s,discount:c},...n&&{installments:n==null?void 0:n.count,installment_value:n==null?void 0:n.value},item_currency:U.configs.currency}},Mn=()=>{const[e,t]=Rn(),[r,n]=e.split("-"),a=r.includes("shop")||r.includes("sale")?r:"";return{page_category:a&&n?n:"",page_departament:a,id:t,name:e}},Za=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:U,findDataInPersistedData:An,getAvailablesSizes:wn,getCategories:Ga,getPageCategoryAndDepartmentFromSlug:Mn,getPersistedData:On,getProductListInfoFromHead:Rn,pushDatalayer:pe,updatePersistedData:Wt},Symbol.toStringTag,{value:"Module"})),kn=b.createContext({}),Ja=({children:e,evtFunctionsConfigs:t})=>{const r=b.useRef({}),n=b.useRef(null),a=b.useRef(null),s=b.useRef({}),i=b.useRef({trigger:!1,index:0}),c=({functionKey:p,data:f,callBack:d,timeout:_=100})=>{window.dataLayer||(window.dataLayer=[]),U.configs=t;try{typeof U[p]=="function"&&setTimeout(()=>{var y;f.promotionInfo=r.current,(y=a.current)!=null&&y.item_list_name&&(f.itemList=a.current),U[p](f,d)},_)}catch(y){pe({event:"error_event",data:{error_message:(y==null?void 0:y.message)??y}})}},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 o.jsx(kn.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:i,promotionEventRef:r,currentLocalRef:n,itemListRef:a,cartProductsFullDataRef:s,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},H=()=>b.useContext(kn),Ln=b.createContext({}),es=({children:e,productData:t,isKit:r,PDP_INFO:n,NAME_SPLIT_SYMBOL:a})=>{var R,M;const{sendDataLayerEvent:s,triggerSelectItemEventRef:i}=H(),{productId:c,productName:l,items:u,items:[{images:p,Videos:f}],description:d,["Composição"]:_="",productReference:y,categories:[h]}=t,{getAvailableProductTag:g}=gn(),v=g(Object.entries(t.clusterHighlights).map(T=>({id:T[0],name:T[1]}))),N=h.slice(1,-1).split("/"),{installments:S,price:C,listPrice:x,sizes:j,allSizesAvailable:I}=Cn({items:u,NAME_SPLIT_SYMBOL:a}),P=Sn(p),w=[{label:`${n.product.description}`,value:"description",content:d},{label:`${n.product.materiais}`,value:"composition",content:_}],O=((M=(R=t.items)==null?void 0:R[0].name.split("-"))==null?void 0:M[0].trim())??t["Cores Filtráveis"]??[],q=()=>({commonData:{...t,sizes:j,price:C,listPrice:x,installments:S},customData:{installments:S==null?void 0:S.count,installment_value:Number(S==null?void 0:S.value).toFixed(2)}}),E=({sku:T,size:k})=>{const{commonData:z,customData:$}=q();s({functionKey:"productEvents",data:{event:"view_item",commonData:z,customData:{...$,...T&&{item_sku:T},...k&&{item_variant2:k}}}})};return b.useEffect(()=>{if(i.current.trigger){const{commonData:T,customData:k}=q();s({functionKey:"productEvents",data:{event:"select_item",commonData:T,customData:{...k,index:i.current.index}}}),i.current.trigger=!1}E({})},[]),o.jsx(Ln.Provider,{value:{productData:t,productId:c,productName:l,productReference:y,tag:v,items:u,sizes:j,allSizesAvailable:I,installments:S,price:C,listPrice:x,thumbImage:P,images:p,video:f[0],descriptionContent:w,breadcrumbList:N,isKit:r,colorName:O,handleViewItemEvent:E},children:e})},nr=()=>{const e=b.useContext(Ln);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},ts={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},oe=Promise.resolve(!1),Vt={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>oe,addItem:()=>oe,addSellerCode:()=>oe,emptyCart:()=>{},removeItem:()=>oe,setIsOpen:()=>{},shipping:()=>oe,shippingUpdate:()=>oe,toggleServiceToProduct:()=>oe,updateItemQuantity:()=>oe,insertProfileEmail:()=>oe,setRecentlyAddedProducts:()=>{}},or=e=>e===0,Dn=(e,t)=>{if(!e||e.length===0)return[];let r="";const n=[],a=e.match(/\d+/g)??[];for(const s of a){const i=t[Number(s)];i&&(r+=(r?"/":"")+i,n.push(r))}return n},qn=e=>{const{availability:t,additionalInfo:{brandName:r},bundleItems:n,id:a,detailUrl:s,ean:i,imageUrl:c,name:l,listPrice:u,quantity:p,price:f,priceDefinition:d,productCategories:_,productCategoryIds:y,productId:h,refId:g,seller:v,referenceId:N,offerings:S,productRefId:C,skuName:x,sellingPrice:j}=e;return{availability:t,bundleItems:n,referenceId:N,productRefId:C,id:a,ean:i,itemOffered:{additionalProperty:[],brand:{name:r},categories:Dn(y,_),categoriesIds:y,gtin:g,image:[{alternateName:"1",url:c}],name:l,isVariationOf:{name:l,productGroupID:h},sku:a,slug:s,skuName:x},listPrice:u,quantity:p,offerings:S,price:f,priceDefinition:d,sellingPrice:j,seller:v}},zn=(e,t)=>{const r=e.map(n=>({id:n.id,quantity:n.quantity,seller:n.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},$n=(e,t)=>{const r=e.find(n=>n.id===t);if(r){const n=e.map((a,s)=>{var i,c;return{id:((i=a.itemOffered)==null?void 0:i.sku)??"",index:s,quantity:(r==null?void 0:r.id)===((c=a.itemOffered)==null?void 0:c.sku)?0:a.quantity,seller:a.seller??""}});return{updateItems:n,filterItems:n.filter(a=>a.id!==t)}}return{updateItems:[],filterItems:[]}},Fn=(e,t,r)=>e.filter(n=>n.availability!=="withoutStock"&&n.availability!=="https://schema.org/OutOfStock").map((n,a)=>{var s,i;return n.id===t?{id:n.id,index:a,quantity:r,seller:n.seller,sku:((s=n.itemOffered)==null?void 0:s.sku)??""}:{id:n.id,index:a,quantity:n.quantity,seller:n.seller,sku:((i=n.itemOffered)==null?void 0:i.sku)??""}}),Gt=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),rs=(e,t)=>{var r;return Array.isArray(e)?(((r=e==null?void 0:e.find(n=>{var a;return((a=n==null?void 0:n.id)==null?void 0:a.toLowerCase())===t}))==null?void 0:r.value)??0)/100:0},ns=e=>{const t=e.reduce((a,s)=>{const i=or(s.price)?0:s.quantity;return a+i},0),r=e.reduce((a,s)=>a+s.price*s.quantity,0),n=e.reduce((a,s)=>a+s.listPrice*s.quantity,0);return{totalItems:t,total:r,subTotal:n}},os=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(or(r==null?void 0:r.price)?0:r.quantity),0):0,Bn=e=>{const{items:t,itemMetadata:r,marketingData:n,messages:a,orderFormId:s,openTextField:i,paymentData:c,shippingData:l,totalizers:u}=e;return{id:s,itemMetadata:r,items:Array.isArray(t)?t.map(qn):[],marketingData:n,messages:a,openTextField:i,paymentData:c,shippingData:l,totalizers:u}},Hn=(e,t)=>{const r=e.find(n=>n.id===t);return r?r.availability==="unavailableItemFulfillment":!1},as=(e,t)=>{const r=e.sku,n=e.isVariantOf.hasVariant.find(a=>a.sku===r);return n?n.name.split(t)[1]:"--"},Ne=(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},ss=(e,t)=>{const r=new Set;return[e,...t].filter(n=>!r.has(n)&&r.add(n),r)},Un=(e,t)=>t&&Array.isArray(t)&&t.find(n=>n.id===e)?Promise.resolve(e):Promise.resolve(!1),Wn=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),Vn=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},Gn=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},Kn=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(n=>n.id===r.id)):[],Xn=async(e,t)=>e.then(r=>[...r??[],...t??[]]),Q=async(e,t,r)=>{const{priority:n="auto",body:a}=t;return fetch(e,{headers:{"Content-Type":"application/json"},priority:n,method:"POST",body:JSON.stringify(a)}).then(async s=>{const i=await s.json();return r?i:Bn(i)})},Qn=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),is=e=>[...Array.isArray(e)?e:[e],"faststore"],cs=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:ts,addItemOrder:zn,addNotification:Qn,createItemOrder:qn,fetchCartAPI:Q,findItemIndex:Gt,findOptions:Kn,findTotalizerValue:rs,getCategories:Dn,getCode:Ne,getQuantity:Gn,getRemoveId:Un,getSize:as,getTotalItems:os,getTotalizer:ns,getValue:Wn,initialState:Vt,isGift:or,marketingTagsBuilder:is,mergeOptionsPromise:Xn,orderFormValues:Bn,promiseDefault:oe,removeQuantity:$n,updateItemSellerExternal:Hn,updateOrderFormPromise:Vn,updateQuantity:Fn,wishlistArray:ss},Symbol.toStringTag,{value:"Module"})),ls=()=>{const e=async(d,_)=>Q("/api/checkout/order-form/coupon",{body:{orderFormId:d,coupon:_}}),t=async(d,_)=>{if(_){const y=_.includes(" - ")?_.split(" - ")[0]:_,h=await Q("/api/checkout/order-form/seller-code",{body:{orderFormId:d,sellerCode:y}},!0);return Q("/api/checkout/order-form/attachments",{body:{orderFormId:d,sellerCode:y,sellerName:h instanceof Object&&"nome"in h?h==null?void 0:h.nome:""}}).then(g=>({...g,openTextField:{...(g==null?void 0:g.openTextField)??{},statusOk:(h==null?void 0:h.status)??!1}}))}else return Q("/api/checkout/order-form/attachments",{body:{orderFormId:d,sellerCode:"",sellerName:""}})},r=async(d,_,y)=>Q("/api/checkout/order-form/items",{body:{orderFormId:d,orderItems:zn(_,y)}}),n=async(d,_,y,h)=>Q("/api/checkout/order-form/offerings",{body:{id:_,itemIndex:y,orderFormId:d,remove:h}}),a=async d=>Q("/api/checkout/order-form/items/remove-all",{body:{orderFormId:d}}),s=async(d,_="low")=>Q("/api/checkout/order-form",{priority:_,body:{orderFormId:d??""}}),i=async(d,_)=>Q("/api/checkout/order-form/profile",{body:{orderFormId:d,email:_}}),c=async(d,_,y)=>{const h=$n(_,y);return Q("/api/checkout/order-form/items/update",{body:{orderItems:h.updateItems,orderFormId:d}})},l=async(d,_,y)=>Q("/api/checkout/order-form/shipping",{body:{orderFormId:d,country:y,postalCode:_}}),u=async(d,_,y)=>Q("/api/checkout/order-form/shipping/update",{body:{orderFormId:d,options:_,selectedAddresses:y}}),p=async(d,_,y,h)=>{const g=Fn(_,y,h);return Q("/api/checkout/order-form/items/update",{body:{orderFormId:d,orderItems:g}})};return{addCoupon:e,addItem:r,addSellerCode:t,giftItem:n,emptyCart:a,getOrderForm:s,insertProfileEmail:i,removeItem:c,shipping:l,shippingUpdate:u,updateItemQuantity:async(d,_,y,h,g)=>p(d,_,y,h).then(v=>v&&Array.isArray(v.items)?Hn(v.items,y)?p(d,_,y,g):v:!1)}},Kt="soma::cart",Me="soma::options",Te=qe.create((e,t)=>{const r=ls(),n=async(a,s,i)=>{e({loading:!0});const c=await Vn(a);if(typeof c!="boolean"){e({...c});const l=await Xn(Se.get(Me),i);return Se.set(Me,l),Wn(c,s).finally(()=>e({loading:!1,options:l}))}return oe};if(typeof window<"u"){const a=async s=>{if(s){const i=await Se.get(Me).then(u=>Kn(u,s.items));Se.set(Kt,s),Se.set(Me,i),e({...s,options:i});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 Se.get(Kt).then(s=>r.getOrderForm(s?s.id:"").then(a)),{...Vt,addCoupon:async s=>n(()=>r.addCoupon(t().id,s),"marketingData"),addItem:(s,i)=>{n(()=>r.addItem(t().id,t().items,s),"items",i)},addSellerCode:async s=>n(()=>r.addSellerCode(t().id,s),"openTextField"),emptyCart:()=>{n(()=>r.emptyCart(t().id))},removeItem:async s=>{const i=await n(()=>r.removeItem(t().id,t().items,s),"items");return Un(s,i)},shipping:async(s,i="BR")=>n(()=>r.shipping(t().id,s,i),"shippingData"),shippingUpdate:async s=>n(()=>{var i;return r.shippingUpdate(t().id,s,(i=t().shippingData)==null?void 0:i.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(s,i,c)=>n(()=>r.giftItem(t().id,s,i,c),"items"),updateItemQuantity:async(s,i,c)=>{const{id:l,items:u}=t();return n(()=>{var p;return r.updateItemQuantity(l,u,s,i,((p=u.find(f=>f.id===s))==null?void 0:p.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async s=>n(()=>r.insertProfileEmail(t().id,s),"clientProfileData"),setIsOpen:s=>e({isOpen:s})}}return Vt}),us=()=>Te(e=>e),Yn=qe.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(n=>Qn(n,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(n=>n.id!==t)}))}})),Zn=()=>Yn(e=>e.notifications),Jn=()=>Yn(e=>e.actions),ds=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:Me,KEY_INDEXED_STORE:Kt,useCartStore:Te,useGetCartStoreState:us,useGetNotificationActions:Jn,useGetNotificationsStore:Zn},Symbol.toStringTag,{value:"Module"})),fs=6e3,eo=b.createContext({}),to=({children:e,...t})=>{const{items:r}=Te(),[n,a]=b.useState([]),s=b.useRef(null),i=b.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 b.useEffect(()=>{n.length&&(clearTimeout(s.current??0),s.current=setTimeout(()=>{a([])},fs))},[n]),o.jsx(eo.Provider,{value:b.useMemo(()=>({...t,setRecentlyAdded:a,recentlyAddedProducts:i}),[t,a,i]),children:e})},ze=()=>{const e=b.useContext(eo);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class ro{constructor(){pt(this,"events",{});pt(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 no=b.createContext({}),ps=({children:e,headerConfigs:t,pathname:r,...n})=>{const[a,s]=b.useState(!0),i=r==="/",c=b.useRef(new ro),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(i),p=b.useRef(u);return b.useEffect(()=>{const f=()=>{const d=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,_=window.innerWidth<1024||!!d.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);a!==_&&s(_)};return f(),window.addEventListener("resize",f,{passive:!0}),()=>window.removeEventListener("resize",f)},[a]),b.useEffect(()=>{const f=l(i);c.current.publish("header:change_variant",f.headerVariant),c.current.publish("header:change_position",f.position),p.current=f},[i]),o.jsx(no.Provider,{value:{isMobile:a,mediatorRef:c,currentHeaderConfigsRef:p,...n},children:o.jsx(to,{children:e})})},he=()=>b.useContext(no),oo=b.createContext({}),ms=({children:e,...t})=>o.jsx(oo.Provider,{value:{...t},children:e}),de=()=>b.useContext(oo),be=(e,t)=>qe.create(r=>{const n=()=>r({value:e});return t&&t instanceof Set&&t.add(n),{value:e,actions:{setValue:a=>r({value:a}),reset:n}}}),De={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},$e=new Set,hs=()=>{$e.forEach(e=>{e()})},ao=qe.create((e,t)=>{const r=()=>e({value:De.category});return $e.add(r),{value:De.category,actions:{reset:r,setValue:n=>e(()=>({value:n})),updateValue:n=>{t().value!==n&&e({value:n})}}}}),ut=()=>ao(e=>e.value),_e=()=>ao(e=>e.actions),so=be(De.menuMobileIsOpen,$e),ar=()=>so(e=>e.value),xe=()=>so(e=>e.actions),io=be(De.searchModalIsOpen,$e),_s=()=>io(e=>e.value),sr=()=>io(e=>e.actions),co=be(De.userMenuIsOpen,$e),gs=()=>co(e=>e.value),ir=()=>co(e=>e.actions),ys=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:hs,useActionsHeaderCategory:_e,useActionsMenuMobileIsOpen:xe,useActionsSearchModalIsOpen:sr,useActionsUserMenuIsOpen:ir,useGetHeaderCategoryStore:ut,useGetMenuMobileIsOpen:ar,useGetSearchModalIsOpen:_s,useGetUserMenuIsOpen:gs},Symbol.toStringTag,{value:"Module"})),Ee={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},we=new Set,vs=()=>{we.forEach(e=>{e()})},lo=qe.create(e=>{const t=()=>e({value:Ee.selectedSkuInfo});return we.add(t),{value:Ee.selectedSkuInfo,actions:{setValue:r=>e(n=>({value:{...n,...r}})),reset:t}}}),bs=()=>lo(e=>e.value),xs=()=>lo(e=>e.actions),uo=be(Ee.openLetMeKnow,we),Cs=()=>uo(e=>e.value),js=()=>uo(e=>e.actions),fo=be(Ee.showNotify,we),Is=()=>fo(e=>e.value),Ss=()=>fo(e=>e.actions),po=be(Ee.showBottomNavigation,we),Ns=()=>po(e=>e.value),Ps=()=>po(e=>e.actions),mo=be(Ee.openMeasurements,we),Ts=()=>mo(e=>e.value),Es=()=>mo(e=>e.actions),ws=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:vs,useActionsPDPOpenLetMeKnow:js,useActionsPDPOpenMeasurements:Es,useActionsPDPSelectedSkuInfo:xs,useActionsPDPShowBottomNavigation:Ps,useActionsPDPShowNotify:Ss,useGetPDPOpenLetMeKnow:Cs,useGetPDPOpenMeasurements:Ts,useGetPDPSelectedSkuInfo:bs,useGetPDPShowBottomNavigation:Ns,useGetPDPShowNotify:Is},Symbol.toStringTag,{value:"Module"})),ho=b.createContext({}),Rs=({children:e,headerData:t,...r})=>{var l,u;const n=b.useRef(null),a=b.useRef(null),s=b.useRef(null),{mediatorRef:i,currentHeaderConfigsRef:c}=he();return(l=i.current)==null||l.subscribe("header:change_variant",p=>{var h,g,v;if(p&&c.current&&(c.current.bannerVariant=p),!n.current)return;const d=document.body.scrollTop>0,_=n.current.getAttribute("data-interactiveVariant"),y=d?_:p??((h=c.current)==null?void 0:h.bannerVariant)??"default";y!==((g=c.current)==null?void 0:g.headerVariant)&&(n.current.setAttribute("data-bottomdivider",String(d)),n.current.setAttribute("data-variant",String(y)),(v=i.current)==null||v.publish("herobanner:change_controllers_variant",y),c.current&&(c.current.headerVariant=y))}),(u=i.current)==null||u.subscribe("header:change_position",p=>{n.current&&(n.current.style.position=p)}),b.useEffect(()=>{const p=new AbortController,f=m.helpers.throttle(()=>{var _;return(_=i.current)==null?void 0:_.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",f,{passive:!0,signal:p.signal});const d=_=>{var h;(h=_.target.closest("a"))==null||h.blur()};return n.current&&(n.current.addEventListener("click",d,{signal:p.signal}),n.current.addEventListener("touchend",d,{signal:p.signal})),()=>{p.abort()}},[]),o.jsx(ho.Provider,{value:{headerData:t,structureRef:a,rootRef:n,tipbarRef:s,...r},children:e})},G=()=>b.useContext(ho),_o=b.createContext({}),go=({children:e})=>{const t=b.useRef(null),r=b.useRef(null),n=ar(),a=b.useCallback(()=>{var s;{const i=(s=t.current)==null?void 0:s.querySelector("dialog");if(i){i.dataset.animation="out";const c=i.children[0];c.dataset.animation="out"}}},[]);return b.useEffect(()=>{var s;if(n)document.body.dataset.modalopen="true";else{document.body.dataset.modalopen="false";const i=(s=r.current)==null?void 0:s.querySelector("dialog");if(i){i.dataset.animation="out";const c=i.children[0];c.dataset.animation="out"}}},[n]),b.useEffect(()=>{r.current=document.body},[]),o.jsx(_o.Provider,{value:{bodyRef:t,handleCloseSubMenu:a,documentBodyRef:r},children:e})},Fe=()=>b.useContext(_o),Os=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},As=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const n=t.getBoundingClientRect(),a=e.getBoundingClientRect(),s=e!=null&&e.parentElement?Os(e==null?void 0:e.parentElement):0;return{left:n.left+n.width/2-(a.width+s),top:n.top+n.height+r}},yo=b.createContext({}),vo=({children:e,delay:t=600,gap:r=20,...n})=>{const[a,s]=b.useState(!1),i=b.useRef(null),[c,l]=b.useState(!1),[u,p]=b.useState({left:0,top:0}),f=b.useCallback(()=>{l(!0),typeof window<"u"&&(i.current=window.setTimeout(()=>{s(!1),l(!1)},t))},[l,s,t]);return b.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),_=window.document.querySelector("#add-to-cart--tooltip");if(d&&_){const{left:y,top:h}=As(_,d,r??0);p({left:y,top:h}),l(!1)}},[r,a]),o.jsx(yo.Provider,{value:b.useMemo(()=>({...n,...u,handleClose:f,isLeaving:c,isOpen:a,setIsOpen:s,setIsLeaving:l}),[n,u,f,c,a,s,l]),children:e})},Ce=()=>{const e=b.useContext(yo);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},bo=b.createContext({}),Ms=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const n=Te(),{setRecentlyAdded:a}=ze(),s=Zn(),{addNotification:i,removeNotification:c}=Jn(),{addCoupon:l,addItem:u,addSellerCode:p,emptyCart:f,isOpen:d,removeItem:_,shipping:y,shippingUpdate:h,toggleServiceToProduct:g,updateItemQuantity:v}=n,N=b.useCallback(async(E,R)=>(R==="coupon"?l(E):p(E)).then(T=>{if(typeof T!="boolean"&&T instanceof Object){if(R==="seller"&&"value"in T){const{statusOk:k,value:z}=T,$=String(z??"").split(" - ");return Ne(($==null?void 0:$[0])??"",E,!!k)}return Ne(String(T.coupon),E,!0)}return Ne("","")}).catch(()=>Promise.resolve({code:400})),[l,p]),S=b.useCallback((E,R,M)=>{const{id:T}=E;v(T,R,M)},[v]),C=b.useCallback((E,R,M=!1)=>{if(!E)return;const{id:T}=E,k=Gt(n.items,T);if(k!==-1&&!M){const z=Number(n.items[k].quantity),$=n.items[k]?z+1:1;S(E,$,R)}else u({id:T,quantity:(E==null?void 0:E.quantity)??1,seller:E.seller});d||a(z=>[...z,E])},[u,S,n.items,d,a]),x=b.useCallback((E,R)=>{if(!E||!Array.isArray(E))return;a(T=>[...T,...E]);const M=E.map(T=>{const{id:k,quantity:z,seller:$}=T,W=Gt(n.items,k),Y=Gn(z??1,W);return{id:k,quantity:Y,seller:$}});u(M,R)},[u,n.items,a]),j=b.useCallback(async(E,R,M)=>E?_(E).then(()=>(i(R??`${t}`,M),Ne(E,E))):Promise.resolve(Ne("","Product id required")),[i,_]),I=b.useCallback(()=>{n.items.length>0&&f()},[f,n.items]),P=b.useCallback((E,R="BRA")=>y(E,R),[y]),w=b.useCallback(E=>{E&&h(E)},[h]),O=b.useCallback(async(E,R,M)=>{const T=n.items.findIndex(z=>z.id===E);return n.items[T]&&T>=0?g(R,T,M??!1):!1},[n.items,g]),q=b.useCallback(async(E,R)=>v(E,R).then(M=>{if(Array.isArray(M)){const T=M.find(k=>k.id===E);if(T&&(T==null?void 0:T.quantity)<R)return String(T.quantity)}return!1}),[v]);return o.jsx(bo.Provider,{value:b.useMemo(()=>({...r,addCouponSeller:N,addToCart:C,addItemsToCart:x,cartStore:n,notifications:s,clearCart:I,addNotification:i,isOpen:n.isOpen,removeNotification:c,removeToCart:j,setIsOpen:n.setIsOpen,shipping:P,shippingUpdateOption:w,toggleGiftItemCart:O,updateItemQuantity:q}),[r,N,C,x,s,I,i,n,c,j,P,w,O,q]),children:e})},Re=()=>{const e=b.useContext(bo);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},ks={contexts:{addToCart:{hook:Ce,provider:vo},cart:{hook:Re,provider:Ms},cms:{FlagsAndTags:{context:er,hook:gn,provider:Fa}},events:{hook:H,provider:Ja},global:{hook:he,provider:ps,mediator:ro},header:{hook:G,provider:Rs},menuMobile:{hook:Fe,provider:go},next:{hook:de,provider:ms},pdp:{provider:Ba,hook:Ha},pdpdata:{hook:nr,provider:es},ui:{hook:ze,provider:to}},hooks:{useBackPDC:yn},stores:{cart:ds,header:ys,pdp:ws}};function xo(e){const r=decodeURIComponent(window.document.cookie).split(";");for(const n of r){const[a,s]=n.trim().split("=");if(a===e)return s}}function Co(e,t,r={}){const a={...{path:"/",expires:new Date(Date.now()+36e5)},...r};let s=`${encodeURIComponent(e)}=${encodeURIComponent(t??"")}`;for(const i in a)a[i]!==void 0&&(s+=`; ${i}`,i==="expires"?s+=`=${a[i].toUTCString()}`:typeof a[i]=="boolean"?s+=`; ${a[i]?"true":"false"}`:s+=`=${a[i]}`);window.document.cookie=s}const Ls=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function Ds(e,t=1e3){let r=!1;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>{r=!1},t))}}function qs(e,t=1e3){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}const jo=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,ke=(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),zs=Object.freeze(Object.defineProperty({__proto__:null,debounce:qs,getCookie:xo,getDaysHoursMinutesSeconds:ke,getMilliSeconds:jo,removeAccentsAndReplaceSpaces:Ls,setCookie:Co,throttle:Ds},Symbol.toStringTag,{value:"Module"})),$s={cart:cs,events:Za,product:Va,utils:zs},Io={helpers:$s},Fs=e=>e,Bs=e=>e,Hs=e=>e,Us=e=>e,ye={base:Us,configurationSchemaSet:Hs,configuration:Bs,schema:Fs},Ws=e=>e,Vs=e=>({...e.uiWidget?{"ui:widget":e.uiWidget}:{},...e.uiObjectFieldTemplate?{"ui:ObjectFieldTemplate":e.uiObjectFieldTemplate}:{}}),te={property:Ws,widget:Vs},Gs=Object.freeze(Object.defineProperty({__proto__:null,Common:te,ContentType:ye},Symbol.toStringTag,{value:"Module"}));function Ks(e){const t={value:te.property({type:"string",title:"Label da flag a ser mostrado"}),textColor:te.property({type:"string",title:"Cor do texto"}),tagColor:te.property({type:"string",title:"Cor de fundo da tag"}),enableIcon:te.property({type:"boolean",title:"Ativar ícone"}),icon:te.property({type:"string",title:"Ícone",enum:Object.values(e),enumNames:Object.keys(e)}),iconColor:te.property({type:"string",title:"Cor do Ícone"})};return ye.base({id:"flags_and_tags",name:"Flags And Tags",scopes:["flags_and_tags"],configurationSchemaSets:[ye.configurationSchemaSet({name:"config",configurations:[{name:"commercial",schema:ye.schema({title:"Items - Commercial",description:"Flags e Tags comerciais em Produtos",type:"object",properties:{items:{title:"Flags e Tags",type:"array",items:te.property({title:"Flags e Tags",type:"object",properties:{key:te.property({type:"string",title:"chave (id do cluster)"}),...t}})}}})},{name:"institucional",schema:ye.schema({title:"Items - Institucional",description:"Flags e Tags comerciais em Produtos",type:"object",properties:{items:{title:"Flags e Tags",type:"array",items:te.property({title:"Flags e Tags",type:"object",properties:{key:te.property({type:"string",title:"chave (id do cluster)"}),...t}})}}})},{name:"flag_cart",schema:ye.schema({title:"Flags Sacola",description:"Flags da Sacola",type:"object",properties:{flagHeader:te.property({type:"object",title:"Flag exibida abaixo do Header da Sacola",properties:t}),flagTotal:{title:"Flag exibida ao lado do Total da Sacola",type:"string"}}})},{name:"flag_pdp",schema:ye.schema({title:"Flag PDP",description:"Flag Cashback PDP",type:"object",properties:t})}]})]})}const Xs={generateFlagsAndTags:Ks},Qs=e=>{const t=e.getBlocksAsArray(),r=[];return t.forEach(n=>{const a=n.getType(),s=n.getText();let i;const c=n.getInlineStyleAt(0).toArray();c.length>0&&(i=c.map(u=>{switch(u){case"BOLD":return"font-weight: bold;";case"ITALIC":return"font-style: italic;";case"UNDERLINE":return"text-decoration: underline;";default:return""}}).join(" "));const l={type:"p",text:s,...i&&{styleText:i}};switch(a){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},Ys=Object.freeze(Object.defineProperty({__proto__:null,convertDraftToHTML:Qs},Symbol.toStringTag,{value:"Module"})),Zs={ContentTypes:Xs,Factories:Gs,CMSApi:za.cms,helpers:Ys},ee={"add-to-cart--card":"_add-to-cart--card_4v41y_1","add-to-cart--card--content":"_add-to-cart--card--content_4v41y_7","add-to-cart--card--name":"_add-to-cart--card--name_4v41y_16","add-to-cart--card--price-quantity":"_add-to-cart--card--price-quantity_4v41y_46","add-to-cart--card--style-size":"_add-to-cart--card--style-size_4v41y_53","add-to-cart--content":"_add-to-cart--content_4v41y_71","add-to-cart--content--title":"_add-to-cart--content--title_4v41y_78","add-to-cart--footer":"_add-to-cart--footer_4v41y_102","add-to-cart--footer--total":"_add-to-cart--footer--total_4v41y_108","add-to-cart--items":"_add-to-cart--items_4v41y_148","add-to-cart--tooltip":"_add-to-cart--tooltip_4v41y_198","add-to-cart__modal":"_add-to-cart__modal_4v41y_211"},So=({brand:e,className:t,name:r,...n})=>o.jsxs("div",{...n,className:m.helpers.classNameConcat(ee["add-to-cart--card--name"],t),children:[o.jsx(m.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),o.jsx(m.TextStructure.Root,{children:o.jsx(m.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:o.jsx("p",{className:"typography-style-body-md",children:r})})})]});So.displayName="AddToCart.Card.Name";const No=({className:e,listPrice:t,price:r,quantity:n,productId:a,...s})=>{const i=me(r/100),c=me(t/100);return o.jsx("div",{...s,className:m.helpers.classNameConcat(ee["add-to-cart--card--price-quantity"],e),children:o.jsx(m.ProductInfo.Root,{size:"small",layout:"vertical",children:o.jsx(m.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:o.jsx(m.ProductInfo.ValuesWrapper,{children:r!==t?o.jsxs(o.Fragment,{children:[o.jsx(m.ProductInfo.Price,{label:"originalPrice",value:i,size:"small"},"price-list"),o.jsx(m.ProductInfo.Price,{label:"discountPrice",value:c,size:"small"},"price-low")]}):o.jsx(m.ProductInfo.Price,{label:"defaultPrice",value:c,size:"small"},"price-low")})})})})};No.displayName="AddToCart.Card.PriceQuantity";const Js="_skeleton_12b79_1",ei={skeleton:Js},ti=({style:e})=>o.jsx("div",{style:e,className:ei.skeleton}),ri="_image_lypfr_1",ni={image:ri},oi=({alt:e,className:t,objectFit:r,...n})=>{const{nextimage:a}=de();return o.jsx(a,{quality:90,...n,alt:e??"",className:m.helpers.classNameConcat(ni.image,t),"data-object-fit":r??"cover"})},ai=({videoRef:e,...t})=>o.jsx("video",{...t,ref:e,children:o.jsx("track",{kind:"captions"})}),fe={Image:oi,Video:ai},Po=({className:e,productGroupID:t,size:r,texture:n,...a})=>{const{CONSTANTS:{TEXTURE_IMAGE:s,TOGGLE_STYLE_MODIFIER:i}}=Ce(),[c,l]=b.useState(n??"");return b.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=>s.includes(d.imageLabel));f!=null&&f.imageUrl?l(f.imageUrl):l(p.images[0].imageUrl)}}).catch(u=>{console.error(u)})},[c,t]),o.jsxs("div",{...a,className:m.helpers.classNameConcat(ee["add-to-cart--card--style-size"],e),children:[o.jsx(m.ToggleStyle.Wrapper,{size:"x-small",style:i,children:o.jsx(m.ToggleStyle.Texture,{children:c?o.jsx(fe.Image,{alt:"",src:c??"",width:164,height:164,style:i}):o.jsx(ti,{})})}),o.jsx(m.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),r&&o.jsxs(m.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[o.jsx(m.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),o.jsx(m.ToggleSize.Text,{children:r})]})]})};Po.displayName="AddToCart.Card.StyleSize";const{helpers:si}=Io,To=({className:e,item:t,texture:r,...n})=>{const{itemOffered:{name:a,brand:s,skuName:i,isVariationOf:{productGroupID:c}},quantity:l,price:u,sellingPrice:p}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:f}}=Ce(),{size:d}=si.product.getColorAndSizeFromSkuName(i??a,f);return console.log("value size, skuName",{size:d,skuName:i,name:a}),o.jsxs("div",{...n,className:m.helpers.classNameConcat(ee["add-to-cart--card--content"],e),children:[o.jsx(So,{brand:s.name,name:a}),o.jsx(No,{price:u,listPrice:p,quantity:l,productId:t.id}),o.jsx(Po,{size:d,texture:r,productGroupID:c})]})};To.displayName="AddToCart.Card.Content";const Eo=({image:e,thumbnail:t=!1})=>o.jsx(fe.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});Eo.displayName="AddToCart.Card";const wo=({className:e,item:t,texture:r,thumbnail:n,...a})=>{const{itemOffered:{image:[s]}}=t,i=Pn(s.url,{width:200,height:300});return o.jsxs("div",{...a,className:m.helpers.classNameConcat(ee["add-to-cart--card"],e),children:[o.jsx(Eo,{image:{alternateName:s.alternateName||"Produto",url:i||""},thumbnail:n}),!n&&o.jsx(To,{item:t,texture:r})]})};wo.displayName="AddToCart.Card";const Ro=({className:e,children:t,title:r,...n})=>o.jsxs("div",{...n,className:m.helpers.classNameConcat(ee["add-to-cart--content"],e),children:[o.jsx("div",{className:ee["add-to-cart--content--title"],children:r&&o.jsx("h2",{children:r})}),t,o.jsx(ve.Footer,{})]});Ro.displayName="AddToCart.Layout.Content";const Oo=({className:e,...t})=>{var _,y;const{isMobile:r,handleClose:n,CONSTANTS:{ADD_TO_CART:a}}=Ce(),{cartStore:{totalizers:s},setIsOpen:i}=Re(),c=(_=s.find(h=>h.id==="Discounts"))==null?void 0:_.value,l=((y=s.find(h=>h.id==="Items"))==null?void 0:y.value)??0,u=s.find(h=>h.id==="Shipping"),f=(l-Math.abs(c??0)+((u==null?void 0:u.value)??0))/100,d=me(f??0);return o.jsxs("div",{...t,className:m.helpers.classNameConcat(ee["add-to-cart--footer"],e),children:[o.jsxs("div",{className:ee["add-to-cart--footer--total"],children:[o.jsx("span",{children:"Subtotal:"}),o.jsx("span",{children:d})]}),o.jsx(m.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>i(!0),children:a.footer.bag}),r?o.jsx(m.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:a.footer.keep_buying}):o.jsx(m.Button,{onClick:()=>n(),size:"medium",variant:"tertiary",children:a.footer.keep_buying})]})};Oo.displayName="AddToCart.Layout.Footer";const Ao=({children:e,className:t,thumbnail:r=!1,...n})=>{const{cartStore:{options:a}}=Re(),{recentlyAddedProducts:s}=ze(),i=s.length>3?4:s.length;return o.jsxs("div",{...n,className:ee["add-to-cart--items"],"data-thumbnail":r,children:[Array.isArray(s)&&s.filter((c,l)=>l<i).map(c=>{var u;const l=(u=a==null?void 0:a.find(p=>p.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:u.texture;return o.jsx(ve.Card,{item:c,thumbnail:r,texture:l},c.itemOffered.sku)}),e]})};Ao.displayName="AddToCart.Layout.Items";const Mo=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:n}=Ce(),{isMobile:a}=he();return o.jsxs(m.Modal.Root,{"data-modal":"add-to-cart--modal",className:ee["add-to-cart__modal"],isMobile:a??!1,isOpen:r,setIsOpen:n,variant:"sideBottom",style:{zIndex:t.modal},children:[o.jsx(m.Modal.Header,{navigation:"top",children:o.jsx(m.Modal.Controls,{navigation:"top",isMobile:!0})}),o.jsx(m.Modal.Body,{children:e})]})};Mo.displayName="AddToCart.Modal";const ii=({children:e})=>{const{count:t,handleClose:r,setIsOpen:n}=Ce(),a=b.useRef(t);return b.useEffect(()=>{t>a.current&&n(!0),t<a.current&&a.current>=1&&r(),a.current=t},[t,r,n]),o.jsx(o.Fragment,{children:e})},ko=({children:e,component:t,CONSTANTS:r,...n})=>{const{recentlyAddedProducts:a}=ze(),{isMobile:s}=he(),i=a.length>3?4:a.length;return o.jsx(vo,{...n,count:i,isMobile:s,CONSTANTS:r,children:o.jsx(ii,{children:s?o.jsxs(o.Fragment,{children:[o.jsx(ve.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):o.jsx(ve.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};ko.displayName="AddToCart.Root";const Lo=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:a,left:s,isLeaving:i,target:c,isOpen:l,top:u}=Ce();return o.jsx(m.Tooltip.Root,{arrow:"top-right",component:o.jsx("div",{...n,ref:a,children:t}),id:"add-to-cart--tooltip",className:ee["add-to-cart--tooltip"],style:{zIndex:r.modal},isLeaving:i,isOpen:l,left:s,size:"medium",position:"top",top:u,children:o.jsx("div",{className:ee["add-to-cart--tooltip"],ref:c,children:e})})};Lo.displayName="AddToCart.Tooltip";const ve={Card:wo,Content:Ro,Footer:Oo,Items:Ao,Modal:Mo,Root:ko,Tooltip:Lo},cr=({title:e,...t})=>{const{recentlyAddedProducts:r}=ze(),{isMobile:n}=he(),a=r.length>3?4:r.length,s=r.length>(a??1),i=r.length>1;return o.jsx(ve.Root,{isMobile:n,count:r.length,component:o.jsx(ve.Content,{title:e,children:o.jsx(ve.Items,{thumbnail:i,children:s&&o.jsx(m.Badge.Count,{count:r.length-a,size:"medium",variant:"secondary"})})}),...t})};cr.displayName="AddToCart";const Sr={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},ci=({children:e,className:t,adornment:r,iconPosition:n,scrollToOptions:a,style:s,...i})=>{const c={top:(a==null?void 0:a.top)??0,left:(a==null?void 0:a.left)??0,behavior:(a==null?void 0:a.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 o.jsx(m.Card,{...i,shadow:!0,padding:"small",className:m.helpers.classNameConcat(Sr["card-modifier"],t),style:{...s,padding:0},children:o.jsxs("button",{className:Sr["backtotop-btn"],onClick:p,style:{...u},"data-orientation":n,children:[r,e]})})},li=({page:e,data:t})=>{const{pathname:r}=de(),n=b.useRef(null),{sendDataLayerEvent:a,currentLocalRef:s,itemListRef:i,promotionEventRef:c}=H();return b.useEffect(()=>{const l=xo("login_event")||"{}",u=JSON.parse(l);if(u.name||u.method){const p=new Date(0);a({functionKey:"readyEvents",data:{event:u.name,readyData:{method:u.method}}}),Co("login_event","",{expires:p})}},[]),b.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:_})=>f[d]=_[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:_}=Mn(),y=_,h=d;l={page_category:"lista_produtos",...f&&{page_departament:f}},i.current={item_list_name:r==="/search"?"busca":y??void 0,item_list_id:r==="/search"?void 0:h??void 0},f&&a({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:p,page_departament:f}}});break}default:l={page_category:e},c.current={},i.current={};break}const u={region:e,...l};s.current=e,a({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...u}},timeout:0})},[r]),null};function lr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xt={exports:{}},ae={};ae._=ae._interop_require_default=ui;function ui(e){return e&&e.__esModule?e:{default:e}}function di(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 mt={},ht={},Nr;function fi(){return Nr||(Nr=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return n}});const n=ae._(b).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="LoadableContext")}(ht)),ht}var Pr;function pi(){return Pr||(Pr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return _}});const r=ae._(b),n=fi();function a(y){return y&&y.default?y.default:y}const s=[],i=[];let c=!1;function l(y){let h=y(),g={loading:!0,loaded:null,error:null};return g.promise=h.then(v=>(g.loading=!1,g.loaded=v,v)).catch(v=>{throw g.loading=!1,g.error=v,v}),g}function u(y,h){let g=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},h),v=null;function N(){if(!v){const x=new p(y,g);v={getCurrentValue:x.getCurrentValue.bind(x),subscribe:x.subscribe.bind(x),retry:x.retry.bind(x),promise:x.promise.bind(x)}}return v.promise()}if(typeof window>"u"&&s.push(N),!c&&typeof window<"u"){const x=g.webpack&&typeof di.resolveWeak=="function"?g.webpack():g.modules;x&&i.push(j=>{for(const I of x)if(j.includes(I))return N()})}function S(){N();const x=r.default.useContext(n.LoadableContext);x&&Array.isArray(g.modules)&&g.modules.forEach(j=>{x(j)})}function C(x,j){S();const I=r.default.useSyncExternalStore(v.subscribe,v.getCurrentValue,v.getCurrentValue);return r.default.useImperativeHandle(j,()=>({retry:v.retry}),[]),r.default.useMemo(()=>I.loading||I.error?r.default.createElement(g.loading,{isLoading:I.loading,pastDelay:I.pastDelay,timedOut:I.timedOut,error:I.error,retry:v.retry}):I.loaded?r.default.createElement(a(I.loaded),x):null,[x,I])}return C.preload=()=>N(),C.displayName="LoadableComponent",r.default.forwardRef(C)}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:h,_opts:g}=this;h.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(h){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...h},this._callbacks.forEach(g=>g())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(h){return this._callbacks.add(h),()=>{this._callbacks.delete(h)}}constructor(h,g){this._loadFn=h,this._opts=g,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function f(y){return u(l,y)}function d(y,h){let g=[];for(;y.length;){let v=y.pop();g.push(v(h))}return Promise.all(g).then(()=>{if(y.length)return d(y,h)})}f.preloadAll=()=>new Promise((y,h)=>{d(s).then(y,h)}),f.preloadReady=y=>(y===void 0&&(y=[]),new Promise(h=>{const g=()=>(c=!0,h());d(i,y).then(g,g)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=f.preloadReady);const _=f}(mt)),mt}(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=ae,a=n._(b),s=n._(pi()),i=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,!i)return p(f);const d=f.loading;return()=>a.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(p,f){let d=s.default,_={loading:g=>{let{error:v,isLoading:N,pastDelay:S}=g;if(!S)return null;if(process.env.NODE_ENV!=="production"){if(N)return null;if(v)return a.default.createElement("p",null,v.message,a.default.createElement("br",null),v.stack)}return null}};p instanceof Promise?_.loader=()=>p:typeof p=="function"?_.loader=p:typeof p=="object"&&(_={..._,...p}),_={..._,...f};const y=_.loader,h=()=>y!=null?y().then(c):Promise.resolve(c(()=>null));return _.loadableGenerated&&(_={..._,..._.loadableGenerated},delete _.loadableGenerated),typeof _.ssr=="boolean"&&!_.ssr?(delete _.webpack,delete _.modules,l(d,_)):d({..._,loader:h})}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Xt,Xt.exports);var mi=Xt.exports,hi=mi;const ur=lr(hi);var Qt={exports:{}},lt={};function Do(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Do=function(n){return n?r:t})(e)}lt._=lt._interop_require_wildcard=_i;function _i(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Do(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var i=a?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(n,s,i):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}var _t={},Tr;function gi(){return Tr||(Tr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=ae._(b).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="HeadManagerContext")}(_t)),_t}var Ke={exports:{}},Er;function yi(){return Er||(Er=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 s},default:function(){return c}});const n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function a(l){let{type:u,props:p}=l;const f=document.createElement(u);for(const y in p){if(!p.hasOwnProperty(y)||y==="children"||y==="dangerouslySetInnerHTML"||p[y]===void 0)continue;const h=n[y]||y.toLowerCase();u==="script"&&(h==="async"||h==="defer"||h==="noModule")?f[h]=!!p[y]:f.setAttribute(h,p[y])}const{children:d,dangerouslySetInnerHTML:_}=p;return _?f.innerHTML=_.__html||"":d&&(f.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),f}function s(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 i;process.env.__NEXT_STRICT_NEXT_HEAD?i=(l,u)=>{const p=document.querySelector("head");if(!p)return;const f=p.querySelectorAll('meta[name="next-head"]')||[],d=[];if(l==="meta"){const h=p.querySelector("meta[charset]");h&&d.push(h)}for(let h=0;h<f.length;h++){var _;const v=f[h].nextSibling;(v==null||(_=v.tagName)==null?void 0:_.toLowerCase())===l&&d.push(v)}const y=u.map(a).filter(h=>{for(let g=0,v=d.length;g<v;g++){const N=d[g];if(s(N,h))return d.splice(g,1),!1}return!0});d.forEach(h=>{var g;const v=h.previousSibling;if(v&&v.getAttribute("name")==="next-head"){var N;(N=h.parentNode)==null||N.removeChild(v)}(g=h.parentNode)==null||g.removeChild(h)}),y.forEach(h=>{var g;const v=document.createElement("meta");v.name="next-head",v.content="1",((g=h.tagName)==null?void 0:g.toLowerCase())==="meta"&&h.getAttribute("charset")||p.appendChild(v),p.appendChild(h)})}:i=(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),_=[];for(let g=0,v=f.previousElementSibling;g<d;g++,v=(v==null?void 0:v.previousElementSibling)||null){var y;(v==null||(y=v.tagName)==null?void 0:y.toLowerCase())===l&&_.push(v)}const h=u.map(a).filter(g=>{for(let v=0,N=_.length;v<N;v++){const S=_[v];if(s(S,g))return _.splice(v,1),!1}return!0});_.forEach(g=>{var v;return(v=g.parentNode)==null?void 0:v.removeChild(g)}),h.forEach(g=>p.insertBefore(g,f)),f.content=(d-_.length+h.length).toString()};function c(){return{mountedInstances:new Set,updateHead:l=>{const u={};l.forEach(d=>{if(d.type==="link"&&d.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+d.props["data-href"]+'"]'))return;d.props.href=d.props["data-href"],d.props["data-href"]=void 0}const _=u[d.type]||[];_.push(d),u[d.type]=_});const 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=>{i(d,u[d]||[])})}}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ke,Ke.exports)),Ke.exports}var Xe={exports:{}},wr;function qo(){return wr||(wr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(s,i){for(var c in i)Object.defineProperty(s,c,{enumerable:!0,get:i[c]})}r(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return a}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(s){let i=Date.now();return self.setTimeout(function(){s({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-i))}})},1)},a=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(s){return clearTimeout(s)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Xe,Xe.exports)),Xe.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(x,j){for(var I in j)Object.defineProperty(x,I,{enumerable:!0,get:j[I]})}r(t,{handleClientScriptLoad:function(){return h},initScriptLoader:function(){return N},default:function(){return C}});const n=ae,a=lt,s=n._($a),i=a._(b),c=gi(),l=yi(),u=qo(),p=new Map,f=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],_=x=>{if(s.default.preinit){x.forEach(j=>{s.default.preinit(j,{as:"style"})});return}if(typeof window<"u"){let j=document.head;x.forEach(I=>{let P=document.createElement("link");P.type="text/css",P.rel="stylesheet",P.href=I,j.appendChild(P)})}},y=x=>{const{src:j,id:I,onLoad:P=()=>{},onReady:w=null,dangerouslySetInnerHTML:O,children:q="",strategy:E="afterInteractive",onError:R,stylesheets:M}=x,T=I||j;if(T&&f.has(T))return;if(p.has(j)){f.add(T),p.get(j).then(P,R);return}const k=()=>{w&&w(),f.add(T)},z=document.createElement("script"),$=new Promise((W,Y)=>{z.addEventListener("load",function(Z){W(),P&&P.call(this,Z),k()}),z.addEventListener("error",function(Z){Y(Z)})}).catch(function(W){R&&R(W)});O?(z.innerHTML=O.__html||"",k()):q?(z.textContent=typeof q=="string"?q:Array.isArray(q)?q.join(""):"",k()):j&&(z.src=j,p.set(j,$));for(const[W,Y]of Object.entries(x)){if(Y===void 0||d.includes(W))continue;const Z=l.DOMAttributeNames[W]||W.toLowerCase();z.setAttribute(Z,Y)}E==="worker"&&z.setAttribute("type","text/partytown"),z.setAttribute("data-nscript",E),M&&_(M),document.body.appendChild(z)};function h(x){const{strategy:j="afterInteractive"}=x;j==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>y(x))}):y(x)}function g(x){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>y(x)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>y(x))})}function v(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(j=>{const I=j.id||j.getAttribute("src");f.add(I)})}function N(x){x.forEach(h),v()}function S(x){const{id:j,src:I="",onLoad:P=()=>{},onReady:w=null,strategy:O="afterInteractive",onError:q,stylesheets:E,...R}=x,{updateScripts:M,scripts:T,getIsSsr:k,appDir:z,nonce:$}=(0,i.useContext)(c.HeadManagerContext),W=(0,i.useRef)(!1);(0,i.useEffect)(()=>{const Z=j||I;W.current||(w&&Z&&f.has(Z)&&w(),W.current=!0)},[w,j,I]);const Y=(0,i.useRef)(!1);if((0,i.useEffect)(()=>{Y.current||(O==="afterInteractive"?y(x):O==="lazyOnload"&&g(x),Y.current=!0)},[x,O]),(O==="beforeInteractive"||O==="worker")&&(M?(T[O]=(T[O]||[]).concat([{id:j,src:I,onLoad:P,onReady:w,onError:q,...R}]),M(T)):k&&k()?f.add(j||I):k&&!k()&&y(x)),z){if(E&&E.forEach(Z=>{s.default.preinit(Z,{as:"style"})}),O==="beforeInteractive")return I?(s.default.preload(I,R.integrity?{as:"script",integrity:R.integrity}:{as:"script"}),i.default.createElement("script",{nonce:$,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([I])+")"}})):(R.dangerouslySetInnerHTML&&(R.children=R.dangerouslySetInnerHTML.__html,delete R.dangerouslySetInnerHTML),i.default.createElement("script",{nonce:$,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...R}])+")"}}));O==="afterInteractive"&&I&&s.default.preload(I,R.integrity?{as:"script",integrity:R.integrity}:{as:"script"})}return null}Object.defineProperty(S,"__nextScript",{value:!0});const C=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)})(Qt,Qt.exports);var vi=Qt.exports,bi=vi;const xi=lr(bi),Ci=({children:e,ONE_TRUST:t})=>o.jsxs(o.Fragment,{children:[o.jsx(xi,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),ji=ur(()=>Promise.resolve(Ci),{ssr:!1}),Ii="_footer__bottom_1otu7_1",Si="_footer__wrapper_1otu7_9",Ni="_footer__main_1otu7_41",Pi="_footer__legalInformation_1otu7_48",Ti="_footer__column_1otu7_70",Ei="_footer__columnContent_1otu7_80",wi="_footer__item_1otu7_84",Ri="_footer__itemLink_1otu7_100",Oi="_footer__columnTitle_1otu7_115",Ai="_footer__columnTitleIcon_1otu7_127",Mi="_footer__iconList_1otu7_140",ki="_footer__itemSmallText_1otu7_150",Li="_payment_1otu7_161",Di="_footer__iconContainer_1otu7_166",qi="_footer__iconListSubHeader_1otu7_171",zi="_accordionWrapper_1otu7_193",$i="_accordionHeader_1otu7_197",Fi="_accordionTextWrapper_1otu7_201",F={footer__bottom:Ii,footer__wrapper:Si,footer__main:Ni,footer__legalInformation:Pi,footer__column:Ti,footer__columnContent:Ei,footer__item:wi,footer__itemLink:Ri,footer__columnTitle:Oi,footer__columnTitleIcon:Ai,footer__iconList:Mi,footer__itemSmallText:ki,payment:Li,footer__iconContainer:Di,footer__iconListSubHeader:qi,accordionWrapper:zi,accordionHeader:$i,accordionTextWrapper:Fi,"footer--stamps":"_footer--stamps_1otu7_240","footer--stamps--company":"_footer--stamps--company_1otu7_247"},Bi=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:n,columnAlignContent:a,columnAlignItems:s,textAlignContent:i,textAlignItems:c,children:l})=>o.jsx(m.TextStructure.Root,{layoutProps:{textRow:{alignContent:n,alignItems:n},columnWrapper:{alignContent:a,alignItems:s}},children:o.jsxs(m.TextStructure.DivWrapper,{alignContent:i,alignItems:c,className:F.footer__column,children:[o.jsxs("div",{className:t?F.footer__columnTitleIcon:F.footer__columnTitle,children:[o.jsx(m.Icon,{name:`${t}`,size:"small"}),e&&o.jsx("div",{children:e})]}),o.jsx("div",{className:F.footer__columnContent,style:{maxWidth:`${r}px`},children:l})]})}),Hi=({name:e,nameIcon:t,maxWidth:r,children:n,...a})=>o.jsxs(m.Accordion.Wrapper,{className:F.accordionWrapper,title:"accordion-wrapper",...a,children:[o.jsx(m.Accordion.Header,{id:(a==null?void 0:a.id)??"",className:F.accordionHeader,closeIndicator:o.jsx(m.Icon,{name:"arrow-up",size:"medium"}),openIndicator:o.jsx(m.Icon,{name:"arrow-down",size:"medium"}),title:"accordion-header",children:o.jsx(m.TextStructure.Root,{children:o.jsxs(m.TextStructure.DivWrapper,{className:t?F.accordionTextWrapper:"",children:[o.jsx(m.Icon,{name:`${t}`,size:"medium"}),o.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),o.jsx(m.Accordion.Body,{title:"accordion-body",children:o.jsx(m.TextStructure.Root,{children:o.jsx(m.TextStructure.DivWrapper,{className:F.footer__columnContent,style:{maxWidth:`${r}px`},children:n})})})]}),gt=e=>{const{isMobile:t}=he();return t?o.jsx(Hi,{...e}):o.jsx(Bi,{...e})};var Yt={exports:{}},Qe={exports:{}},yt={},Rr;function zo(){return Rr||(Rr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,c){for(var l in c)Object.defineProperty(i,l,{enumerable:!0,get:c[l]})}t(e,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return a},assign:function(){return s}});function r(i){const c={};return i.forEach((l,u)=>{typeof c[u]>"u"?c[u]=l:Array.isArray(c[u])?c[u].push(l):c[u]=[c[u],l]}),c}function n(i){return typeof i=="string"||typeof i=="number"&&!isNaN(i)||typeof i=="boolean"?String(i):""}function a(i){const c=new URLSearchParams;return Object.entries(i).forEach(l=>{let[u,p]=l;Array.isArray(p)?p.forEach(f=>c.append(u,n(f))):c.set(u,n(p))}),c}function s(i){for(var c=arguments.length,l=new Array(c>1?c-1:0),u=1;u<c;u++)l[u-1]=arguments[u];return l.forEach(p=>{Array.from(p.keys()).forEach(f=>i.delete(f)),p.forEach((f,d)=>i.append(d,f))}),i}}(yt)),yt}var vt={},Or;function $o(){return Or||(Or=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 s},urlObjectKeys:function(){return i},formatWithValidation:function(){return c}});const n=lt._(zo()),a=/https?|ftp|gopher|file/;function s(l){let{auth:u,hostname:p}=l,f=l.protocol||"",d=l.pathname||"",_=l.hash||"",y=l.query||"",h=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?h=u+l.host:p&&(h=u+(~p.indexOf(":")?"["+p+"]":p),l.port&&(h+=":"+l.port)),y&&typeof y=="object"&&(y=String(n.urlQueryToSearchParams(y)));let g=l.search||y&&"?"+y||"";return f&&!f.endsWith(":")&&(f+=":"),l.slashes||(!f||a.test(f))&&h!==!1?(h="//"+(h||""),d&&d[0]!=="/"&&(d="/"+d)):h||(h=""),_&&_[0]!=="#"&&(_="#"+_),g&&g[0]!=="?"&&(g="?"+g),d=d.replace(/[?#]/g,encodeURIComponent),g=g.replace("#","%23"),""+f+h+d+g+_}const i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(l){return process.env.NODE_ENV==="development"&&l!==null&&typeof l=="object"&&Object.keys(l).forEach(u=>{i.includes(u)||console.warn("Unknown key passed via urlObject into url.format: "+u)}),s(l)}}(vt)),vt}var bt={},Ar;function Ui(){return Ar||(Ar=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(r,n){const a={};return Object.keys(r).forEach(s=>{n.includes(s)||(a[s]=r[s])}),a}}(bt)),bt}var xt={},Mr;function dt(){return Mr||(Mr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,x){for(var j in x)Object.defineProperty(C,j,{enumerable:!0,get:x[j]})}t(e,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return s},getLocationOrigin:function(){return i},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 _},DecodeError:function(){return y},NormalizeError:function(){return h},PageNotFoundError:function(){return g},MissingStaticPage:function(){return v},MiddlewareNotFoundError:function(){return N},stringifyError:function(){return S}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(C){let x=!1,j;return function(){for(var I=arguments.length,P=new Array(I),w=0;w<I;w++)P[w]=arguments[w];return x||(x=!0,j=C(...P)),j}}const a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=C=>a.test(C);function i(){const{protocol:C,hostname:x,port:j}=window.location;return C+"//"+x+(j?":"+j:"")}function c(){const{href:C}=window.location,x=i();return C.substring(x.length)}function l(C){return typeof C=="string"?C:C.displayName||C.name||"Unknown"}function u(C){return C.finished||C.headersSent}function p(C){const x=C.split("?");return x[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(x[1]?"?"+x.slice(1).join("?"):"")}async function f(C,x){if(process.env.NODE_ENV!=="production"){var j;if((j=C.prototype)!=null&&j.getInitialProps){const w='"'+l(C)+'.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(w)}}const I=x.res||x.ctx&&x.ctx.res;if(!C.getInitialProps)return x.ctx&&x.Component?{pageProps:await f(x.Component,x.ctx)}:{};const P=await C.getInitialProps(x);if(I&&u(I))return P;if(!P){const w='"'+l(C)+'.getInitialProps()" should resolve to an object. But found "'+P+'" instead.';throw new Error(w)}return process.env.NODE_ENV!=="production"&&Object.keys(P).length===0&&!x.ctx&&console.warn(""+l(C)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),P}const d=typeof performance<"u",_=d&&["mark","measure","getEntriesByName"].every(C=>typeof performance[C]=="function");class y extends Error{}class h extends Error{}class g extends Error{constructor(x){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+x}}class v extends Error{constructor(x,j){super(),this.message="Failed to load static file for page: "+x+" "+j}}class N extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function S(C){return JSON.stringify({message:C.message,stack:C.stack})}}(xt)),xt}var Ye={exports:{}},Ct={},kr;function Fo(){return kr||(kr=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(/\/$/,"")||"/"}}(Ct)),Ct}var jt={},Lr;function dr(){return Lr||(Lr=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("#"),a=r.indexOf("?"),s=a>-1&&(n<0||a<n);return s||n>-1?{pathname:r.substring(0,s?a:n),query:s?r.substring(a,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}}(jt)),jt}var Dr;function ft(){return Dr||(Dr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return a}});const r=Fo(),n=dr(),a=s=>{if(!s.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return s;const{pathname:i,query:c,hash:l}=(0,n.parsePath)(s);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(i)?""+(0,r.removeTrailingSlash)(i)+c+l:i.endsWith("/")?""+i+c+l:i+"/"+c+l:""+(0,r.removeTrailingSlash)(i)+c+l};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ye,Ye.exports)),Ye.exports}var It={},Ze={exports:{}},St={},qr;function Bo(){return qr||(qr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=dr();function r(n,a){if(typeof n!="string")return!1;const{pathname:s}=(0,t.parsePath)(n);return s===a||s.startsWith(a+"/")}}(St)),St}var zr;function Wi(){return zr||(zr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return a}});const r=Bo(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function a(s){return(0,r.pathHasPrefix)(s,n)}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ze,Ze.exports)),Ze.exports}var $r;function Ho(){return $r||($r=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=dt(),r=Wi();function n(a){if(!(0,t.isAbsoluteUrl)(a))return!0;try{const s=(0,t.getLocationOrigin)(),i=new URL(a,s);return i.origin===s&&(0,r.hasBasePath)(i.pathname)}catch{return!1}}}(It)),It}var Nt={},Pt={},Fr;function Vi(){return Fr||(Fr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class t{insert(a){this._insert(a.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(a){a===void 0&&(a="/");const s=[...this.children.keys()].sort();this.slugName!==null&&s.splice(s.indexOf("[]"),1),this.restSlugName!==null&&s.splice(s.indexOf("[...]"),1),this.optionalRestSlugName!==null&&s.splice(s.indexOf("[[...]]"),1);const i=s.map(c=>this.children.get(c)._smoosh(""+a+c+"/")).reduce((c,l)=>[...c,...l],[]);if(this.slugName!==null&&i.push(...this.children.get("[]")._smoosh(a+"["+this.slugName+"]/")),!this.placeholder){const c=a==="/"?"/":a.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+c+'" and "'+c+"[[..."+this.optionalRestSlugName+']]").');i.unshift(c)}return this.restSlugName!==null&&i.push(...this.children.get("[...]")._smoosh(a+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&i.push(...this.children.get("[[...]]")._smoosh(a+"[[..."+this.optionalRestSlugName+"]]/")),i}_insert(a,s,i){if(a.length===0){this.placeholder=!1;return}if(i)throw new Error("Catch-all must be the last part of the URL.");let c=a[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+"').");s.forEach(_=>{if(_===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(_.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+_+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),s.push(d)},l=c.slice(1,-1),u=!1;if(l.startsWith("[")&&l.endsWith("]")&&(l=l.slice(1,-1),u=!0),l.startsWith("...")&&(l=l.substring(3),i=!0),l.startsWith("[")||l.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+l+"').");if(l.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+l+"').");if(i)if(u){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+a[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 "'+a[0]+'").');p(this.restSlugName,l),this.restSlugName=l,c="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+a[0]+'").');p(this.slugName,l),this.slugName=l,c="[]"}}this.children.has(c)||this.children.set(c,new t),this.children.get(c)._insert(a.slice(1),s,i)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(n){const a=new t;return n.forEach(s=>a.insert(s)),a.smoosh()}}(Pt)),Pt}var Tt={},Br;function Gi(){return Br||(Br=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)}}(Tt)),Tt}var Hr;function Ki(){return Hr||(Hr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,s){for(var i in s)Object.defineProperty(a,i,{enumerable:!0,get:s[i]})}t(e,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=Vi(),n=Gi()}(Nt)),Nt}var Et={},wt={},Ur;function Xi(){return Ur||(Ur=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=dt();function r(n){let{re:a,groups:s}=n;return i=>{const c=a.exec(i);if(!c)return!1;const l=p=>{try{return decodeURIComponent(p)}catch{throw new t.DecodeError("failed to decode param")}},u={};return Object.keys(s).forEach(p=>{const f=s[p],d=c[f.pos];d!==void 0&&(u[p]=~d.indexOf("/")?d.split("/").map(_=>l(_)):f.repeat?[l(d)]:l(d))}),u}}}(wt)),wt}var Rt={},Ot={},At={},Mt={},Wr;function Qi(){return Wr||(Wr=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}}(Mt)),Mt}var kt={},Vr;function Yi(){return Vr||(Vr=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(")")}}(kt)),kt}var Gr;function Zi(){return Gr||(Gr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,c){for(var l in c)Object.defineProperty(i,l,{enumerable:!0,get:c[l]})}t(e,{normalizeAppPath:function(){return a},normalizeRscPath:function(){return s}});const r=Qi(),n=Yi();function a(i){return(0,r.ensureLeadingSlash)(i.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 s(i,c){return c?i.replace(/\.rsc($|\?)/,"$1"):i}}(At)),At}var Kr;function Ji(){return Kr||(Kr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,c){for(var l in c)Object.defineProperty(i,l,{enumerable:!0,get:c[l]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return n},isInterceptionRouteAppPath:function(){return a},extractInterceptionRouteInformation:function(){return s}});const r=Zi(),n=["(..)(..)","(.)","(..)","(...)"];function a(i){return i.split("/").find(c=>n.find(l=>c.startsWith(l)))!==void 0}function s(i){let c,l,u;for(const p of i.split("/"))if(l=n.find(f=>p.startsWith(f)),l){[c,u]=i.split(l,2);break}if(!c||!l||!u)throw new Error(`Invalid interception route: ${i}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(c=(0,r.normalizeAppPath)(c),l){case"(.)":c==="/"?u=`/${u}`:u=c+"/"+u;break;case"(..)":if(c==="/")throw new Error(`Invalid interception route: ${i}. Cannot use (..) marker at the root level, use (.) instead.`);u=c.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":const p=c.split("/");if(p.length<=2)throw new Error(`Invalid interception route: ${i}. 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}}}(Ot)),Ot}var Lt={},Xr;function ec(){return Xr||(Xr=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(a){return t.test(a)?a.replace(r,"\\$&"):a}}(Lt)),Lt}var Qr;function tc(){return Qr||(Qr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,g){for(var v in g)Object.defineProperty(h,v,{enumerable:!0,get:g[v]})}t(e,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return _},getNamedMiddlewareRegex:function(){return y}});const r=Ji(),n=ec(),a=Fo(),s="nxtP",i="nxtI";function c(h){const g=h.startsWith("[")&&h.endsWith("]");g&&(h=h.slice(1,-1));const v=h.startsWith("...");return v&&(h=h.slice(3)),{key:h,repeat:v,optional:g}}function l(h){const g=(0,a.removeTrailingSlash)(h).slice(1).split("/"),v={};let N=1;return{parameterizedRoute:g.map(S=>{const C=r.INTERCEPTION_ROUTE_MARKERS.find(j=>S.startsWith(j)),x=S.match(/\[((?:\[.*\])|.+)\]/);if(C&&x){const{key:j,optional:I,repeat:P}=c(x[1]);return v[j]={pos:N++,repeat:P,optional:I},"/"+(0,n.escapeStringRegexp)(C)+"([^/]+?)"}else if(x){const{key:j,repeat:I,optional:P}=c(x[1]);return v[j]={pos:N++,repeat:I,optional:P},I?P?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,n.escapeStringRegexp)(S)}).join(""),groups:v}}function u(h){const{parameterizedRoute:g,groups:v}=l(h);return{re:new RegExp("^"+g+"(?:/)?$"),groups:v}}function p(){let h=0;return()=>{let g="",v=++h;for(;v>0;)g+=String.fromCharCode(97+(v-1)%26),v=Math.floor((v-1)/26);return g}}function f(h){let{getSafeRouteKey:g,segment:v,routeKeys:N,keyPrefix:S}=h;const{key:C,optional:x,repeat:j}=c(v);let I=C.replace(/\W/g,"");S&&(I=""+S+I);let P=!1;return(I.length===0||I.length>30)&&(P=!0),isNaN(parseInt(I.slice(0,1)))||(P=!0),P&&(I=g()),S?N[I]=""+S+C:N[I]=""+C,j?x?"(?:/(?<"+I+">.+?))?":"/(?<"+I+">.+?)":"/(?<"+I+">[^/]+?)"}function d(h,g){const v=(0,a.removeTrailingSlash)(h).slice(1).split("/"),N=p(),S={};return{namedParameterizedRoute:v.map(C=>{const x=r.INTERCEPTION_ROUTE_MARKERS.some(I=>C.startsWith(I)),j=C.match(/\[((?:\[.*\])|.+)\]/);return x&&j?f({getSafeRouteKey:N,segment:j[1],routeKeys:S,keyPrefix:g?i:void 0}):j?f({getSafeRouteKey:N,segment:j[1],routeKeys:S,keyPrefix:g?s:void 0}):"/"+(0,n.escapeStringRegexp)(C)}).join(""),routeKeys:S}}function _(h,g){const v=d(h,g);return{...u(h),namedRegex:"^"+v.namedParameterizedRoute+"(?:/)?$",routeKeys:v.routeKeys}}function y(h,g){const{parameterizedRoute:v}=l(h),{catchAll:N=!0}=g;if(v==="/")return{namedRegex:"^/"+(N?".*":"")+"$"};const{namedParameterizedRoute:S}=d(h,!1);let C=N?"(?:(/.*)?)":"";return{namedRegex:"^"+S+C+"$"}}}(Rt)),Rt}var Yr;function rc(){return Yr||(Yr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=Xi(),r=tc();function n(a,s,i){let c="";const l=(0,r.getRouteRegex)(a),u=l.groups,p=(s!==a?(0,t.getRouteMatcher)(l)(s):"")||i;c=a;const f=Object.keys(u);return f.every(d=>{let _=p[d]||"";const{repeat:y,optional:h}=u[d];let g="["+(y?"...":"")+d+"]";return h&&(g=(_?"":"/")+"["+g+"]"),y&&!Array.isArray(_)&&(_=[_]),(h||d in p)&&(c=c.replace(g,y?_.map(v=>encodeURIComponent(v)).join("/"):encodeURIComponent(_))||"/")})||(c=""),{params:f,result:c}}}(Et)),Et}var Zr;function nc(){return Zr||(Zr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return p}});const r=zo(),n=$o(),a=Ui(),s=dt(),i=ft(),c=Ho(),l=Ki(),u=rc();function p(f,d,_){let y,h=typeof d=="string"?d:(0,n.formatWithValidation)(d);const g=h.match(/^[a-zA-Z]{1,}:\/\//),v=g?h.slice(g[0].length):h;if((v.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+h+"' passed to next/router in page: '"+f.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const S=(0,s.normalizeRepeatedSlashes)(v);h=(g?g[0]:"")+S}if(!(0,c.isLocalURL)(h))return _?[h]:h;try{y=new URL(h.startsWith("#")?f.asPath:f.pathname,"http://n")}catch{y=new URL("/","http://n")}try{const S=new URL(h,y);S.pathname=(0,i.normalizePathTrailingSlash)(S.pathname);let C="";if((0,l.isDynamicRoute)(S.pathname)&&S.searchParams&&_){const j=(0,r.searchParamsToUrlQuery)(S.searchParams),{result:I,params:P}=(0,u.interpolateAs)(S.pathname,S.pathname,j);I&&(C=(0,n.formatWithValidation)({pathname:I,hash:S.hash,query:(0,a.omit)(j,P)}))}const x=S.origin===y.origin?S.href.slice(S.origin.length):S.href;return _?[x,C||x]:x}catch{return _?[h]:h}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Qe,Qe.exports)),Qe.exports}var Je={exports:{}},Dt={},qt={},Jr;function Uo(){return Jr||(Jr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=dr();function r(n,a){if(!n.startsWith("/")||!a)return n;const{pathname:s,query:i,hash:c}=(0,t.parsePath)(n);return""+a+s+i+c}}(qt)),qt}var en;function oc(){return en||(en=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=Uo(),r=Bo();function n(a,s,i,c){if(!s||s===i)return a;const l=a.toLowerCase();return!c&&((0,r.pathHasPrefix)(l,"/api")||(0,r.pathHasPrefix)(l,"/"+s.toLowerCase()))?a:(0,t.addPathPrefix)(a,"/"+s)}}(Dt)),Dt}var tn;function ac(){return tn||(tn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=ft(),n=function(a){for(var s=arguments.length,i=new Array(s>1?s-1:0),c=1;c<s;c++)i[c-1]=arguments[c];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(oc().addLocale(a,...i)):a};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Je,Je.exports)),Je.exports}var zt={},rn;function sc(){return rn||(rn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=ae._(b).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(zt)),zt}var $t={},nn;function ic(){return nn||(nn=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 a},AppRouterContext:function(){return s},LayoutRouterContext:function(){return i},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return l}});const n=ae._(b);var a;(function(u){u.LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY"})(a||(a={}));const s=n.default.createContext(null),i=n.default.createContext(null),c=n.default.createContext(null),l=n.default.createContext(null);process.env.NODE_ENV!=="production"&&(s.displayName="AppRouterContext",i.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",l.displayName="TemplateContext")}($t)),$t}var et={exports:{}},on;function cc(){return on||(on=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const r=b,n=qo(),a=typeof IntersectionObserver=="function",s=new Map,i=[];function c(p){const f={root:p.root||null,margin:p.rootMargin||""},d=i.find(g=>g.root===f.root&&g.margin===f.margin);let _;if(d&&(_=s.get(d),_))return _;const y=new Map,h=new IntersectionObserver(g=>{g.forEach(v=>{const N=y.get(v.target),S=v.isIntersecting||v.intersectionRatio>0;N&&S&&N(S)})},p);return _={id:f,observer:h,elements:y},i.push(f),s.set(f,_),_}function l(p,f,d){const{id:_,observer:y,elements:h}=c(d);return h.set(p,f),y.observe(p),function(){if(h.delete(p),y.unobserve(p),h.size===0){y.disconnect(),s.delete(_);const v=i.findIndex(N=>N.root===_.root&&N.margin===_.margin);v>-1&&i.splice(v,1)}}}function u(p){let{rootRef:f,rootMargin:d,disabled:_}=p;const y=_||!a,[h,g]=(0,r.useState)(!1),v=(0,r.useRef)(null),N=(0,r.useCallback)(C=>{v.current=C},[]);(0,r.useEffect)(()=>{if(a){if(y||h)return;const C=v.current;if(C&&C.tagName)return l(C,j=>j&&g(j),{root:f==null?void 0:f.current,rootMargin:d})}else if(!h){const C=(0,n.requestIdleCallback)(()=>g(!0));return()=>(0,n.cancelIdleCallback)(C)}},[y,d,f,h,v.current]);const S=(0,r.useCallback)(()=>{g(!1)},[]);return[N,h,S]}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(et,et.exports)),et.exports}var tt={exports:{}},rt={exports:{}},Ft={},an;function lc(){return an||(an=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(r,n){let a;const s=r.split("/");return(n||[]).some(i=>s[1]&&s[1].toLowerCase()===i.toLowerCase()?(a=i,s.splice(1,1),r=s.join("/")||"/",!0):!1),{pathname:r,detectedLocale:a}}}(Ft)),Ft}var sn;function uc(){return sn||(sn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(n,a)=>process.env.__NEXT_I18N_SUPPORT?lc().normalizeLocalePath(n,a):{pathname:n,detectedLocale:void 0};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(rt,rt.exports)),rt.exports}var nt={exports:{}},Bt={},cn;function dc(){return cn||(cn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,n,a){if(r){a&&(a=a.toLowerCase());for(const c of r){var s,i;const l=(s=c.domain)==null?void 0:s.split(":")[0].toLowerCase();if(n===l||a===c.defaultLocale.toLowerCase()||(i=c.locales)!=null&&i.some(u=>u.toLowerCase()===a))return c}}}}(Bt)),Bt}var ln;function fc(){return ln||(ln=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,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];if(process.env.__NEXT_I18N_SUPPORT)return dc().detectDomainLocale(...a)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(nt,nt.exports)),nt.exports}var un;function pc(){return un||(un=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return a}});const r=ft(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function a(s,i,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=uc().normalizeLocalePath,p=fc().detectDomainLocale,f=i||u(s,c).detectedLocale,d=p(l,void 0,f);if(d){const _="http"+(d.http?"":"s")+"://",y=f===d.defaultLocale?"":"/"+f;return""+_+d.domain+(0,r.normalizePathTrailingSlash)(""+n+y+s)}return!1}else return!1}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(tt,tt.exports)),tt.exports}var ot={exports:{}},dn;function mc(){return dn||(dn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return s}});const r=Uo(),n=ft(),a=process.env.__NEXT_ROUTER_BASEPATH||"";function s(i,c){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?i:(0,r.addPathPrefix)(i,a))}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ot,ot.exports)),ot.exports}var at={exports:{}},fn;function hc(){return fn||(fn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(f,d){for(var _ in d)Object.defineProperty(f,_,{enumerable:!0,get:d[_]})}r(t,{PrefetchKind:function(){return p},ACTION_REFRESH:function(){return n},ACTION_NAVIGATE:function(){return a},ACTION_RESTORE:function(){return s},ACTION_SERVER_PATCH:function(){return i},ACTION_PREFETCH:function(){return c},ACTION_FAST_REFRESH:function(){return l},ACTION_SERVER_ACTION:function(){return u}});const n="refresh",a="navigate",s="restore",i="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)}(at,at.exports)),at.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});const n=ae._(b),a=nc(),s=Ho(),i=$o(),c=dt(),l=ac(),u=sc(),p=ic(),f=cc(),d=pc(),_=mc(),y=hc(),h=new Set;function g(j,I,P,w,O,q){if(typeof window>"u"||!q&&!(0,s.isLocalURL)(I))return;if(!w.bypassPrefetchedCheck){const R=typeof w.locale<"u"?w.locale:"locale"in j?j.locale:void 0,M=I+"%"+P+"%"+R;if(h.has(M))return;h.add(M)}const E=q?j.prefetch(I,O):j.prefetch(I,P,w);Promise.resolve(E).catch(R=>{if(process.env.NODE_ENV!=="production")throw R})}function v(j){const P=j.currentTarget.getAttribute("target");return P&&P!=="_self"||j.metaKey||j.ctrlKey||j.shiftKey||j.altKey||j.nativeEvent&&j.nativeEvent.which===2}function N(j,I,P,w,O,q,E,R,M,T){const{nodeName:k}=j.currentTarget;if(k.toUpperCase()==="A"&&(v(j)||!M&&!(0,s.isLocalURL)(P)))return;j.preventDefault();const $=()=>{const W=E??!0;"beforePopState"in I?I[O?"replace":"push"](P,w,{shallow:q,locale:R,scroll:W}):I[O?"replace":"push"](w||P,{forceOptimisticNavigation:!T,scroll:W})};M?n.default.startTransition($):$()}function S(j){return typeof j=="string"?j:(0,i.formatUrl)(j)}const x=n.default.forwardRef(function(I,P){let w;const{href:O,as:q,children:E,prefetch:R=null,passHref:M,replace:T,shallow:k,scroll:z,locale:$,onClick:W,onMouseEnter:Y,onTouchStart:Z,legacyBehavior:ne=!1,...Ma}=I;w=E,ne&&(typeof w=="string"||typeof w=="number")&&(w=n.default.createElement("a",null,w));const V=n.default.useContext(u.RouterContext),ka=n.default.useContext(p.AppRouterContext),ie=V??ka,ce=!V,Oe=R!==!1,We=R===null?y.PrefetchKind.AUTO:y.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let A=function(L){return new Error("Failed prop type: The prop `"+L.key+"` expects a "+L.expected+" in `<Link>`, but got `"+L.actual+"` instead."+(typeof window<"u"?`
2
- Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(L=>{if(L==="href"&&(I[L]==null||typeof I[L]!="string"&&typeof I[L]!="object"))throw A({key:L,expected:"`string` or `object`",actual:I[L]===null?"null":typeof I[L]})}),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(L=>{const ue=typeof I[L];if(L==="as"){if(I[L]&&ue!=="string"&&ue!=="object")throw A({key:L,expected:"`string` or `object`",actual:ue})}else if(L==="locale"){if(I[L]&&ue!=="string")throw A({key:L,expected:"`string`",actual:ue})}else if(L==="onClick"||L==="onMouseEnter"||L==="onTouchStart"){if(I[L]&&ue!=="function")throw A({key:L,expected:"`function`",actual:ue})}else if((L==="replace"||L==="scroll"||L==="shallow"||L==="passHref"||L==="prefetch"||L==="legacyBehavior")&&I[L]!=null&&ue!=="boolean")throw A({key:L,expected:"`boolean`",actual:ue})});const xr=n.default.useRef(!1);I.prefetch&&!xr.current&&!ce&&(xr.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"&&ce&&!q){let A;if(typeof O=="string"?A=O:typeof O=="object"&&typeof O.pathname=="string"&&(A=O.pathname),A&&A.split("/").some(Ie=>Ie.startsWith("[")&&Ie.endsWith("]")))throw new Error("Dynamic href `"+A+"` 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:le,as:J}=n.default.useMemo(()=>{if(!V){const Ie=S(O);return{href:Ie,as:q?S(q):Ie}}const[A,Ae]=(0,a.resolveHref)(V,O,!0);return{href:A,as:q?(0,a.resolveHref)(V,q):Ae||A}},[V,O,q]),_r=n.default.useRef(le),gr=n.default.useRef(J);let K;if(ne)if(process.env.NODE_ENV==="development"){W&&console.warn('"onClick" was passed to <Link> with `href` of `'+O+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),Y&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+O+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{K=n.default.Children.only(w)}catch{throw w?new Error("Multiple children were passed to <Link> with `href` of `"+O+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
3
- Open your browser's console to view the Component stack trace.`:"")):new Error("No children were passed to <Link> with `href` of `"+O+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else K=n.default.Children.only(w);else if(process.env.NODE_ENV==="development"&&(w==null?void 0:w.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 je=ne?K&&typeof K=="object"&&K.ref:P,[yr,vr,br]=(0,f.useIntersection)({rootMargin:"200px"}),La=n.default.useCallback(A=>{(gr.current!==J||_r.current!==le)&&(br(),gr.current=J,_r.current=le),yr(A),je&&(typeof je=="function"?je(A):typeof je=="object"&&(je.current=A))},[J,je,le,br,yr]);n.default.useEffect(()=>{process.env.NODE_ENV==="production"&&ie&&(!vr||!Oe||g(ie,le,J,{locale:$},{kind:We},ce))},[J,le,vr,$,Oe,V==null?void 0:V.locale,ie,ce,We]);const Ve={ref:La,onClick(A){if(process.env.NODE_ENV!=="production"&&!A)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!ne&&typeof W=="function"&&W(A),ne&&K.props&&typeof K.props.onClick=="function"&&K.props.onClick(A),ie&&(A.defaultPrevented||N(A,ie,le,J,T,k,z,$,ce,Oe))},onMouseEnter(A){!ne&&typeof Y=="function"&&Y(A),ne&&K.props&&typeof K.props.onMouseEnter=="function"&&K.props.onMouseEnter(A),ie&&((!Oe||process.env.NODE_ENV==="development")&&ce||g(ie,le,J,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:We},ce))},onTouchStart(A){!ne&&typeof Z=="function"&&Z(A),ne&&K.props&&typeof K.props.onTouchStart=="function"&&K.props.onTouchStart(A),ie&&(!Oe&&ce||g(ie,le,J,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:We},ce))}};if((0,c.isAbsoluteUrl)(J))Ve.href=J;else if(!ne||M||K.type==="a"&&!("href"in K.props)){const A=typeof $<"u"?$:V==null?void 0:V.locale,Ae=(V==null?void 0:V.isLocaleDomain)&&(0,d.getDomainLocale)(J,A,V==null?void 0:V.locales,V==null?void 0:V.domainLocales);Ve.href=Ae||(0,_.addBasePath)((0,l.addLocale)(J,A,V==null?void 0:V.defaultLocale))}return ne?n.default.cloneElement(K,Ve):n.default.createElement("a",{...Ma,...Ve},w)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Yt,Yt.exports);var _c=Yt.exports,gc=_c;const se=lr(gc),st=({type:e,children:t,className:r,collumnName:n,collumnNameIcon:a,icons:s,iconLink:i,iconSize:c,link:l,paymentDisclaimer:u,paymentTitle:p,rowAlignContent:f,columnAlignContent:d,columnAlignItems:_,textAlignContent:y,textAlignItems:h,...g})=>{let v;const{handleSelectContent:N}=H(),{nextimage:S}=de();switch(e){case"menu":v=o.jsx(se,{className:F.footer__itemLink,href:l??"#",prefetch:!1,children:o.jsx("span",{onClick:()=>{N({content:`footer:${n}:${t}`})},children:t})});break;case"payment":v=o.jsxs("div",{className:m.helpers.classNameConcat(F.payment,F.footer__itemSmallText),...g,children:[u,o.jsxs("div",{className:m.helpers.classNameConcat(F.footer__iconContainer,F.footer__iconListSubHeader),children:[p,o.jsx("div",{className:F.footer__iconList,children:s==null?void 0:s.map((C,x)=>o.jsx(S,{alt:C,src:`/assets/${C}.svg`,width:c??20,height:c??20},x))})]})]});break;case"social-media":v=o.jsx("div",{className:F.footer__iconContainer,...g,children:o.jsx("div",{className:F.footer__iconList,children:i==null?void 0:i.map((C,x)=>o.jsx(se,{prefetch:!1,href:C.link??"#",children:o.jsx(m.Icon,{size:"medium",name:C.icon,onClick:()=>N({content:`footer:redes-sociais:${C.icon}`})})},x))})});break;default:v=o.jsx("div",{className:r,...g,children:t})}return o.jsx(m.TextStructure.Root,{layoutProps:{textRow:{alignContent:f,alignItems:f},columnWrapper:{alignContent:d,alignItems:_}},...g,children:o.jsx(m.TextStructure.DivWrapper,{alignContent:y,alignItems:h,className:m.helpers.classNameConcat(F.footer__item,r),children:v})})},yc=({className:e,text:t,...r})=>o.jsx("div",{...r,className:m.helpers.classNameConcat(F.footer__legalInformation,e),children:o.jsx("span",{children:t})}),Wo=()=>{const{nextimage:e}=de();return o.jsx("div",{className:F["footer--stamps"],children:o.jsx(e,{alt:"Empresa B",className:F["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};Wo.displayName="Footer.Stamps";const Vo=({children:e,legalTextSlot:t,adornment:r,className:n,...a})=>{const{isMobile:s}=he(),i=b.Children.toArray(e).filter(Boolean),c=i.length;return o.jsxs("div",{className:F.footer__main,children:[(r==null?void 0:r.top)&&o.jsx("div",{className:F.footer__top,children:r==null?void 0:r.top}),c>0&&o.jsx("div",{...a,className:m.helpers.classNameConcat(F.footer__wrapper,n),children:i.map((l,u)=>o.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${s?1:"fit-content"})`},children:l},u))}),(r==null?void 0:r.bottom)&&o.jsx("div",{className:F.footer__bottom,children:r.bottom}),t&&o.jsx("div",{className:F.footer__legalText,children:t})]})};Vo.displayName="Footer.Wrapper";const Go=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:n,adornment:a,LEGAL_INFORMATION_TEXT:s})=>{var i;return o.jsxs(Vo,{adornment:a,legalTextSlot:o.jsx(yc,{text:s}),children:[Array.isArray(e.column)&&e.column.map((c,l)=>o.jsx(gt,{id:`${l}column-menu`,name:c.name,nameIcon:c.nameIcon,children:c.items.map((u,p)=>o.jsx(st,{type:"menu",link:u.link,collumnName:c.name,collumnNameIcon:c.nameIcon,children:u.text},p))},l)),t&&((i=t.acceptedFlags)==null?void 0:i.length)>0&&o.jsx(gt,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,children:o.jsx(st,{type:"payment",paymentDisclaimer:t==null?void 0:t.text,paymentTitle:t==null?void 0:t.flagsTitle,iconSize:16,icons:t==null?void 0:t.acceptedFlags})}),o.jsxs(gt,{id:"social-media-column",name:r==null?void 0:r.title,children:[o.jsx(st,{children:r==null?void 0:r.subTitle}),o.jsx(st,{type:"social-media",iconSize:24,iconLink:n}),o.jsx(Wo,{})]})]})};Go.displayName="Footer";const pn={"responsive-mobile-block":"_responsive-mobile-block_t5bry_24","responsive-desktop-block":"_responsive-desktop-block_t5bry_35"},fr={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},pr=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=Re(),{handleSelectContent:n}=H(),{CONSTANTS:a}=G();return o.jsx(m.Header.SupportItem,{onClick:()=>{t(!0),n({content:"header:minicart"})},id:e,children:o.jsxs(m.Badge.AutoPositioner,{children:[o.jsx(m.Badge.Count,{count:r.length,size:"medium",variant:"primary",style:{backgroundColor:"black",display:r.length>0?"flex":"none"}}),o.jsx(m.Icon,{name:a.header.ICONS.bag,size:"medium"})]})})};pr.displayName="Header.Bag";const Be=({children:e,href:t,...r})=>t&&t!=="#"?o.jsx(se,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,Ko=()=>{const{headerData:e}=G(),{handleSelectContent:t}=H(),{reset:r,updateValue:n}=_e(),a=s=>{s?n(s):r()};return o.jsx(m.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((s,i)=>o.jsx(Be,{href:s.link,onMouseEnter:()=>a(s.submenuId),onFocus:()=>a(s.submenuId),children:o.jsx(m.Header.CategoryItem,{className:fr["btn-header"],value:s.submenuId??null,adornment:{start:o.jsx(m.Icon,{name:s.iconStart}),end:o.jsx(m.Icon,{name:s.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${s.label}`})},children:s.label})},`category-${s.label}-${i}`))})};Ko.displayName="Header.Categories";function vc({SearchModal:e}){const{handleSelectContent:t}=H(),{CONSTANTS:r}=G(),{setValue:n}=sr();return o.jsxs(o.Fragment,{children:[o.jsx(m.Header.SupportItem,{onClick:()=>{n(!0),t({content:"header:search"})},children:o.jsx(m.Icon,{name:r.header.ICONS.search,size:"medium"})}),o.jsx(e,{recommendations:!1,trends:!0})]})}const bc={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},xc={"observer-wrapper":"_observer-wrapper_r43gk_1"};function Cc(e,t,r){const[n,a]=b.useState(!1),{threshold:s}=r||{};return b.useEffect(()=>{if(!e.current)return()=>{};let i=null;const c=new IntersectionObserver(([l])=>{if(r!=null&&r.delay){i&&clearTimeout(i),i=setTimeout(()=>{a(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},r.delay);return}a(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},{threshold:s||1});return c.observe(e.current),()=>{c.disconnect()}},[e]),n}const Xo=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:n,stopOnIntersection:a=!0,className:s,...i})=>{const c=b.useRef(null),l=Cc(c,a,r),{sendDataLayerEvent:u}=H();return b.useEffect(()=>{l&&(typeof n=="function"&&n(),t&&u({...t}))},[l]),o.jsx("div",{...i,ref:c,className:m.helpers.classNameConcat(xc["observer-wrapper"],s),children:e})},mr=({thumbnails:e,category:t,isMobile:r=!0,callBack:n})=>{const{handleSelectPromotionEvent:a}=H(),s=50/e.length;return o.jsx("div",{className:bc["menu-subcategories-container"],children:e.map((i,c)=>{const l=r?i.srcMobile:i.srcDesk;if(!l)return null;const u={creative_name:"banner-menu",creative_slot:`banner-menu:${t}:${c+1}`,promotion_id:l,promotion_name:i.promotion_name};return o.jsx(Xo,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...u}}}},observerOptions:{delay:1e3},children:o.jsxs(se,{href:i.link??"#",onClick:()=>{typeof n=="function"&&n(),a({updatePromotionRef:!0,promotion:u})},children:[o.jsx(fe.Image,{src:l,alt:i.label??l,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${s}vw`}),i.label&&o.jsx("p",{children:i.label})]})},`thumb-${i.label}-${c}`)})})};mr.displayName="Menu.Thumbnail";const Zt={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},jc="_link_w24h0_1",Ic="_wrapper_w24h0_98",Sc="_text_w24h0_106",Ht={link:jc,wrapper:Ic,text:Sc},He=({children:e,adornments:t,className:r,disableUnderline:n,href:a,mode:s,size:i,title:c,onClick:l,disablePadding:u,...p})=>{const f=m.helpers.ValidateProp({fieldTypes:Le.SizesSmallExtended,property:i,fallback:"medium"}),d=m.helpers.ValidateProp({fieldTypes:Le.Mode,property:s,fallback:"default"});return o.jsx(se,{...p,className:m.helpers.classNameConcat(Ht.link,r),href:a&&a.length>0?a:"#","data-size":f,"data-variant":d,title:c||"NextLink","data-disable-underline":n??!1,"data-disable-padding":u??!0,children:o.jsxs("div",{className:Ht.wrapper,onClick:l,children:[t==null?void 0:t.start,o.jsx("p",{className:Ht.text,"data-size":f,children:e}),t==null?void 0:t.end]})})},Qo=({children:e,dividerOnRight:t=!0,subMenu:r,...n})=>{var l;const{router:a}=de(),{reset:s}=_e(),{handleSelectContent:i}=H(),{CONSTANTS:c}=G();return o.jsxs("div",{...n,className:Zt["menu-categories"],children:[(l=r==null?void 0:r.subCategories)==null?void 0:l.map((u,p)=>{var _,y,h;const f=u.listCollapseDesk&&!((_=u.see_all)!=null&&_.link)?{expandAfterRowsQty:u.rowsToShowDesk}:{},d=u.listCollapseDesk&&!((y=u.see_all)!=null&&y.link)?{expansivesAdornments:{open:c.header.ICONS.add,close:c.header.ICONS.minus},expansivesLabels:{open:c.header.COMPONENT_LIST.listExpandLabel,close:c.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:o.jsx(m.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return o.jsxs(m.ComponentList.Structure,{children:[o.jsx(Be,{href:u.linkLabel,title:u.label,onClick:()=>{u.linkLabel&&(s(),i({content:`menu:${u.label??""}:${r.label??""}`}))},children:o.jsx(m.TextStructure.Root,{children:o.jsx(m.TextStructure.DivWrapper,{children:o.jsx("h2",{children:u.label})})})}),o.jsx(m.ComponentList.List,{columns:1,...f,className:Zt["submenu-categories"],children:u.items.map((g,v)=>o.jsx(m.ComponentList.ListItem,{id:`list-item-${g.label}-${v}`,children:o.jsx(He,{href:g.link??"#",size:"x-small",title:g.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{s(),i({content:`menu:${u.label??""}:${g.label??""}:${r.label??""}`})},children:g.label})},`list-item-${g.label}-${v}`))}),((h=u.see_all)==null?void 0:h.link)&&o.jsx(m.ComponentList.Support,{...d,size:"small",onClick:()=>{var g;(g=u.see_all)!=null&&g.link&&(s(),i({content:`menu:${u.label??""}:${r.label}`}),a.push(u.see_all.link))},children:u.see_all.link&&u.see_all.label})]},`list-${u.label}-${p}`)}),t&&o.jsx(m.Utils.Divider,{size:"small",direction:"vertical"})]})};Qo.displayName="Menu.Categories";const Yo=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:n}=G();return o.jsxs(o.Fragment,{children:[o.jsx("div",{...r,className:Zt["menu-desktop"],style:{...r.style,justifyContent:n.header.ALIGNMENT_MENU},children:e}),t&&o.jsx(m.Utils.Divider,{size:"small"})]})};Yo.displayName="Menu.MenuRoot";const Nc=ur(()=>Promise.resolve(Yo),{ssr:!1}),Ut={Root:Nc,Categories:Qo,Thumbnail:mr},Zo=()=>{const{headerData:e,CONSTANTS:t}=G(),r=ut(),{reset:n}=_e();return o.jsx(m.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((a,s)=>{const{thumbnails:i,label:c,id:l}=a,u=l===r,p=i==null?void 0:i.some(f=>!!f.srcDesk);return o.jsxs(Ut.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[o.jsx(Ut.Categories,{dividerOnRight:!!p,subMenu:a}),Array.isArray(i)&&o.jsx(Ut.Thumbnail,{thumbnails:i,isMobile:!1,category:c,callBack:n})]},`submenu-${l}-${s}`)})})};Zo.displayName="Header.SubMenu";const Jo=()=>{const{handleSelectContent:e}=H(),{CONSTANTS:t}=G();return o.jsx(se,{href:"/favoritos",children:o.jsx(m.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:o.jsx(m.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};Jo.displayName="Header.WishList";const ea=({UserMenu:e,SearchModal:t})=>{const r=b.useRef(null),{CONSTANTS:n}=G(),{handleSelectContent:a}=H(),{reset:s}=_e(),{setValue:i}=ir();return o.jsxs(o.Fragment,{children:[o.jsxs(m.Header.Wrapper,{children:[o.jsx(m.Header.Logo,{style:{width:"100%"},children:o.jsx(se,{href:"/",onMouseEnter:s,children:o.jsx(m.Icon,{name:n.header.ICONS.logo,size:"x-large",onClick:()=>{a({content:"header:logo"})}})})}),o.jsx(Ko,{}),o.jsxs(m.Header.Support,{onMouseEnter:s,style:{justifyContent:"flex-end"},children:[o.jsx(vc,{SearchModal:t}),o.jsx(e,{target:r.current,children:o.jsx(m.Header.SupportItem,{onClick:()=>{i(!0),a({content:"header:user_menu"})},className:fr["btn-login"],innerRef:r,children:o.jsx(m.Icon,{name:n.header.ICONS.person,size:"medium"})})}),o.jsx(Jo,{}),o.jsx(pr,{id:"cart-button"})]})]}),o.jsx(Zo,{})]})};ea.displayName="Header.HeaderDesktopWrapper";const Pc="_divider_1lexj_199",B={"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:Pc,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},ta=({children:e,mobileBannerAlt:t,mobileBannerSrc:r,onClick:n,textColor:a,...s})=>o.jsx("button",{onClick:n,className:B["menu-categories-btn"],children:r?o.jsxs(m.Banner.Container,{...s,className:B["menu-body-banner-container-modifier"],children:[o.jsx(m.Banner.ImageWrapper,{style:{width:"100%"},children:o.jsx(fe.Image,{src:r,alt:t??r,className:B["menu-categories__banner"],width:343,height:128,unoptimized:!0})}),o.jsx(m.Banner.Slot,{verticalAlignment:"center",horizontalAlignment:"start",children:o.jsx(m.TextStructure.Root,{children:o.jsx(m.TextStructure.DivWrapper,{className:B["menu-categories-textstructure-modifier"],children:o.jsx("h2",{className:"typography-style-body-xs",style:a?{color:a}:{},children:e})})})})]}):o.jsx("h2",{...s,children:e})});ta.displayName="Menu.MenuCategories";const ra=({children:e,link:t})=>{const{reset:r}=xe();return t?o.jsx(se,{href:t??"#",onClick:r,children:e}):e};ra.displayName="Menu.MenuCategoriesWrapper";const na=({subcategory:e,submenuLabel:t})=>{var l,u,p;const{router:r}=de(),{reset:n}=xe(),{handleSelectContent:a}=H(),{CONSTANTS:s}=G(),i=e.listCollapseMobile&&!((l=e.see_all)!=null&&l.link)?{expandAfterRowsQty:e.rowsToShowMobile}:{},c=e.listCollapseMobile&&!((u=e.see_all)!=null&&u.link)?{expansivesAdornments:{open:s.header.ICONS.add,close:s.header.ICONS.minus},expansivesLabels:{open:s.header.COMPONENT_LIST.listExpandLabel,close:s.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:o.jsx(m.Icon,{name:s.header.ICONS.arrow_right,size:"small"})}};return o.jsxs(m.ComponentList.Structure,{className:B["menu-submenu--component-list-modifier"],children:[o.jsx(Be,{href:e.linkLabel,title:e.label,onClick:()=>{n(),a({content:`menu:${e.label??""}:${t}`})},children:o.jsx(m.TextStructure.Root,{children:o.jsx(m.TextStructure.DivWrapper,{children:o.jsx("h2",{className:"typography-style-body-sm-strong",children:e.label})})})}),o.jsx(m.ComponentList.List,{columns:1,...i,className:B["submenu-categories"],children:e.items.map((f,d)=>o.jsx(m.ComponentList.ListItem,{id:`list-item-${f.label}-${d}`,divider:!0,children:o.jsx(He,{href:f.link??"#",size:"x-small",title:f.label??"",disableUnderline:!0,onClick:()=>{n(),a({content:`menu:${e.label??""}:${f.label}:${t}`})},children:f.label})},`list-item-${f.label}-${d}`))}),((p=e.see_all)==null?void 0:p.link)&&o.jsx(m.ComponentList.Support,{...c,size:"small",onClick:()=>{var f;n(),a({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})]})};na.displayName="Menu.SubMenuSubCategory";const oa=({submenu:e})=>{var s;const t=ut(),{handleCloseSubMenu:r}=Fe(),{reset:n}=_e(),{CONSTANTS:a}=G();return o.jsxs("div",{className:B["menu-submenu--item"],style:{display:t===e.id?"flex":"none"},children:[o.jsx(m.TextStructure.Root,{adornment:{start:o.jsx(m.Icon,{name:a.header.ICONS.arrow_back,size:"medium",onClick:r})},layoutProps:{textRow:{alignItems:"center",style:{width:"100%",position:"relative"}},columnWrapper:{alignContent:"center",style:{width:"100%"}}},children:e.label&&o.jsx(m.TextStructure.DivWrapper,{style:{position:"absolute",left:"50%",transform:"translate(-50%)"},children:o.jsx("h2",{className:"typography-style-body-md-strong",children:e.label})})}),o.jsx("div",{className:B["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&o.jsx(mr,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:n})}),(s=e==null?void 0:e.subCategories)==null?void 0:s.map((i,c)=>o.jsx(na,{subcategory:i,submenuLabel:e.label},`list-${i.label}-${c}`))]})};oa.displayName="Menu.SubMenuItem";const aa=()=>{const{headerData:e}=G(),t=ut(),{reset:r}=_e(),{bodyRef:n}=Fe();return o.jsx(m.Modal.RootWithoutPortal,{isOpen:!!t,setIsOpen:r,parent:n.current,variant:"sideLeft",style:{position:"absolute",width:"100%"},className:B["menu-submenu-modal-modifiier"],children:o.jsx("div",{className:B["menu-submenu"],children:e.subMenus.map((a,s)=>o.jsx(oa,{submenu:a},`submenu-${a.id}-${s}`))})})};aa.displayName="Menu.SubMenu";const sa=({className:e,...t})=>{const{headerData:r}=G(),{setValue:n}=_e(),{bodyRef:a}=Fe(),{handleSelectContent:s}=H();return o.jsxs("div",{...t,ref:a,id:"menu-body",className:B["menu-body"],children:[o.jsx("div",{className:B["menu-categories-container"],children:r.categories.map((i,c)=>{const l=i.submenuId?{}:{"data-close":!0};return o.jsx(ra,{link:i.submenuId?null:i.link,children:o.jsx(ta,{onClick:()=>{n(i.submenuId??null),s({content:`menu:${i.label}`})},mobileBannerSrc:i.mobileBannerSrc,mobileBannerAlt:i.mobileBannerAlt,textColor:i.textColor,...l,children:i.mobileBannerAlt})},`menu-categories-${c}`)})}),o.jsx(aa,{})]})};sa.displayName="Menu.MenuBody";const ia=({title:e,subtitle:t})=>{const{CONSTANTS:r}=G();return o.jsxs("div",{className:B["menu-header-wrapper"],style:t?{alignItems:"start"}:{alignItems:"center"},children:[(e||t)&&o.jsx(m.TextStructure.Root,{children:o.jsxs(m.TextStructure.DivWrapper,{children:[e&&o.jsx("h2",{className:"typography-style-body-md",children:e}),t&&o.jsx("h3",{children:t})]})}),o.jsx(m.Button,{adornment:{end:o.jsx(m.Icon,{name:r.header.ICONS.close})},variant:"tertiary",className:B["menu-close"],"data-close":!0})]})};ia.displayName="Menu.MenuHeaderWrapper";const ca=({navigationLinks:e})=>{const{reset:t}=xe(),{handleSelectContent:r}=H();return e?o.jsx("nav",{className:B["menu-header-navlinks"],children:e.map((n,a)=>o.jsx(He,{href:n.link??"#",adornments:{start:n.iconStart&&o.jsx(m.Icon,{name:n.iconStart}),end:n.iconEnd&&o.jsx(m.Icon,{name:n.iconEnd})},onClick:()=>{t(),r({content:`menu:navigationlinks-${n.label}`})},children:n.label},a))}):null};ca.displayName="Menu.MenuHeaderNavLinks";const la=()=>{const{headerData:e}=G();return o.jsxs("div",{className:B["menu-header-container"],children:[o.jsx(ia,{title:e.title,subtitle:e.subtitle}),o.jsx(ca,{navigationLinks:e.navigationLinks})]})};la.displayName="Menu.MenuHeaderContainer";const ua=({children:e})=>{const{documentBodyRef:t}=Fe(),{CONSTANTS:r}=G(),n=ar(),{setValue:a}=xe();return o.jsx(m.Modal.RootWithoutPortal,{isOpen:n,setIsOpen:a,parent:t.current,variant:"sideLeft",style:{position:"fixed",zIndex:r.header.Z_INDEX_WAR.menu_mobile,bottom:"unset",top:0,overflowY:"hidden"},className:B["modal-modifier"],children:o.jsx("div",{className:B["menu-mobile"],children:e})})};ua.displayName="Menu.MenuRoot";const Tc=ur(()=>Promise.resolve(ua),{ssr:!1}),ct=({children:e,...t})=>o.jsxs(o.Fragment,{children:[o.jsx(m.Button,{...t,className:B["menu-navigationbar-item"],children:e}),o.jsx(m.Utils.Divider,{direction:"vertical",size:"small",className:B.divider})]});ct.displayName="Menu.NavigationBarItem";const da=()=>{const{setIsOpen:e}=Re(),{reset:t}=xe(),{setValue:r}=ir(),{handleSelectContent:n}=H(),{CONSTANTS:a}=G(),{router:s}=de();return o.jsxs(m.Card,{id:"menu-navigationbar",shadow:!0,className:B["menu-navigationbar"],style:{zIndex:a.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:[o.jsx(ct,{size:"small",variant:"tertiary",iconNameStart:a.header.MENU_INFO.login.button_icon,onClick:()=>{t(),r(!0),n({content:"menu:user_menu"})},children:a.header.MENU_INFO.login.button_text}),o.jsx(ct,{size:"small",variant:"tertiary",iconNameStart:a.header.MENU_INFO.bag.button_icon,onClick:()=>{t(),e(!0),n({content:"menu:minicart"})},children:a.header.MENU_INFO.bag.button_text}),o.jsx(ct,{size:"small",variant:"tertiary",iconNameStart:a.header.MENU_INFO.store.button_icon,onClick:()=>{s.push("/institucional/lojas"),t(),n({content:"menu:store"})},children:a.header.MENU_INFO.store.button_text})]})};da.displayName="Menu.NavigationBar";const it={Root:Tc,NavigationBar:da,Header:la,Body:sa},fa=({UserMenu:e,SearchModal:t})=>{const r=b.useRef(null),{CONSTANTS:n}=G(),{MENU_NAVIGATION_BAR_ALLOWED:a,ICONS:s}=n.header,{handleSelectContent:i}=H(),{setValue:c}=sr(),{setValue:l}=xe();return o.jsxs(o.Fragment,{children:[o.jsxs(m.Header.Wrapper,{children:[o.jsx(m.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:o.jsx(se,{href:"/",children:o.jsx(m.Icon,{name:s.logo,size:"x-large",onClick:()=>{i({content:"header:logo"})}})})}),o.jsxs(m.Header.Support,{children:[o.jsx(m.Header.SupportItem,{onClick:()=>{c(!0),i({content:"header:search"})},children:o.jsx(m.Icon,{name:s.search,size:"medium"})}),o.jsx(pr,{}),o.jsxs(m.Header.SupportItem,{onClick:()=>l(!0),children:[o.jsx("span",{ref:r}),o.jsx(m.Icon,{name:s.menu,size:"medium"})]})]})]}),o.jsx(t,{recommendations:!1,trends:!0}),o.jsx(go,{children:o.jsx(e,{target:r==null?void 0:r.current,children:o.jsxs(it.Root,{children:[o.jsx(it.Header,{}),o.jsx(it.Body,{}),a?o.jsx(it.NavigationBar,{}):o.jsx(o.Fragment,{})]})})})]})};fa.displayName="Header.HeaderMobileWrapper";const pa=({tipBar:e,miniCart:t,UserMenu:r,SearchModal:n})=>{const{structureRef:a,rootRef:s,CONSTANTS:i}=G(),{header:{HEADER_CONFIGS:c,Z_INDEX_WAR:l}}=i;return o.jsx(m.Header.Structure,{innerRef:a,adornment:{start:e},style:{position:"sticky",top:0,zIndex:l.header},className:fr["header-animation"],children:o.jsxs(m.Header.Root,{innerRef:s,style:{zIndex:l.header},variant:c.default_variant,interactiveVariant:c.interactive_variant,children:[o.jsx("div",{className:pn["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:l.header_mobile},children:o.jsx(fa,{UserMenu:r,SearchModal:n})}),o.jsx("div",{className:pn["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:l.header_desktop},children:o.jsx(ea,{UserMenu:r,SearchModal:n})}),t,o.jsx(cr,{title:"Produto adicionado à sua sacola!",CONSTANTS:i.addToCart})]})})};pa.displayName="Header";const Ec="_shippingFreight_6z8rf_6",wc="_shippingFreight__postalCodeGrid_6z8rf_10",Rc="_shippingFreight__grid_6z8rf_14",Oc="_shippingFreight__grid__title_6z8rf_18",Ac="_shippingFreight__grid__remember_6z8rf_29",Mc="_postalCodeContainer_6z8rf_44",kc="_deliveryStatusBar__tag_6z8rf_49",Lc="_deliveryStatusBarError__tag_6z8rf_66",Dc="_deliveryInfo_6z8rf_74",qc="_deliveryInfo__content_6z8rf_78",zc="_deliveryInfo__text_6z8rf_84",$c="_deliveryInfo__title_6z8rf_89",Fc="_deliveryInfo__subtitle_6z8rf_99",Bc="_deliveryInfo__tooltipIcon_6z8rf_109",Hc="_deliveryInfo__tooltip_6z8rf_109",Uc="_freightGrid_6z8rf_148",Wc="_freightContainer_6z8rf_155",Vc="_freightOption__content_6z8rf_160",Gc="_freightOption__value_6z8rf_166",Kc="_freightOption__title_6z8rf_177",Xc="_freightOption__title_item_6z8rf_181",Qc="_freightOption__paragraph_6z8rf_192",D={shippingFreight:Ec,shippingFreight__postalCodeGrid:wc,shippingFreight__grid:Rc,shippingFreight__grid__title:Oc,shippingFreight__grid__remember:Ac,postalCodeContainer:Mc,deliveryStatusBar__tag:kc,deliveryStatusBarError__tag:Lc,deliveryInfo:Dc,deliveryInfo__content:qc,deliveryInfo__text:zc,deliveryInfo__title:$c,deliveryInfo__subtitle:Fc,deliveryInfo__tooltipIcon:Bc,deliveryInfo__tooltip:Hc,freightGrid:Uc,freightContainer:Wc,freightOption__content:Vc,freightOption__value:Gc,freightOption__title:Kc,freightOption__title_item:Xc,freightOption__paragraph:Qc,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},Yc=({icon:e,title:t,subtitle:r,packageCount:n,packageUnit:a="",labelDescription:s,freightConfig:i,toolTipZIndex:c})=>{const[l,u]=b.useState(!1),p=b.useRef(null),f=()=>u(d=>!d);return o.jsxs("div",{className:D.deliveryInfo,ref:p,children:[o.jsx(m.Tooltip.Root,{arrow:"bottom",component:o.jsx("div",{children:o.jsx("p",{children:i.messages.select_size_tag})}),id:"freight--tooltip",className:D["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:p.current}),o.jsxs("div",{className:D.deliveryInfo__content,children:[o.jsx("div",{className:D.deliveryInfo__icon,children:o.jsx(m.Icon,{name:e,size:"medium"})}),o.jsxs("div",{className:D.deliveryInfo__text,children:[o.jsxs("span",{className:D.deliveryInfo__title,children:[t," ",n," ",a]}),r&&o.jsx("span",{className:D.deliveryInfo__subtitle,children:r})]}),s&&o.jsxs("div",{className:D.deliveryInfo__tooltipIcon,onMouseEnter:f,onMouseLeave:f,"aria-label":"Mostrar descrição",children:[o.jsx("span",{children:o.jsx(m.Icon,{name:i.icons.feedback_help,size:"small"})}),l&&o.jsx("div",{className:D.deliveryInfo__tooltip,children:s})]})]})]})},Zc=({value:e,title:t,paragraph:r})=>o.jsx("div",{className:D.freightOption,children:o.jsxs("div",{className:D.freightOption__content,children:[o.jsx("span",{className:D.freightOption__value,children:e}),o.jsx("span",{className:D.freightOption__title,children:o.jsx(m.TextStructure.Root,{children:o.jsxs(m.TextStructure.DivWrapper,{className:D.footer__item,children:[o.jsx("span",{className:D.freightOption__title_item,children:t}),r&&o.jsx("span",{className:D.freightOption__paragraph,children:r})]})})})]})}),Jc=({children:e})=>o.jsx("div",{className:D.freightContainer,children:e}),el=({children:e})=>o.jsx("div",{className:D.freightGrid,children:e}),tl=({children:e})=>o.jsx("div",{className:D.postalCodeContainer,children:e}),mn=({message:e,seller:t="",size:r="small",setError:n})=>o.jsx("div",{className:n?D.deliveryStatusBarError:D.deliveryStatusBar,children:o.jsxs(m.Tag,{title:e,className:n?D.deliveryStatusBarError__tag:D.deliveryStatusBar__tag,size:r,children:[e," ",!n&&t]})}),rl=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},nl=e=>{var r,n,a;const t=[];return(a=(n=(r=e==null?void 0:e.logisticsInfo)==null?void 0:r[0])==null?void 0:n.slas)==null||a.forEach(s=>{t.push({id:s.id,name:s.name,price:s.price,shippingEstimate:s.shippingEstimate})}),t},ol=({component:e,parent:t,top:r,left:n,target:a,contentRef:s,freightConfig:i,toolTipZIndex:c=999,...l})=>{const{isMobile:u}=he();return o.jsx(o.Fragment,{children:u?o.jsx(m.Tooltip.Root,{arrow:"bottom",component:o.jsxs("div",{...l,ref:s,children:[e,o.jsx("p",{children:i.messages.select_size_tag})]}),id:"freight--tooltip",className:D["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:t}):o.jsx(m.Tooltip.Root,{arrow:"bottom",component:o.jsxs("div",{...l,ref:s,children:[e,o.jsx("p",{children:i.messages.select_size_tag})]}),id:"freight--tooltip",className:D["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:t})})},al=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:n,quantity:a,setError:s,setIsButtonClicked:i,component:c,freightConfig:l,toolTipZIndex:u})=>{var q,E,R,M;const p=Te(),f=Te(T=>T.shipping),[d,_]=b.useState(),[y,h]=b.useState(!1),[g,v]=b.useState(!1),[N,S]=b.useState(!1),C=(E=(q=p.shippingData)==null?void 0:q.address)==null?void 0:E.postalCode,x=!(d!=null&&d.length)&&C?C:d,j=b.useRef(null),I=async T=>{const z=T.target.value.replace(/\D/g,"").slice(0,8);z.length>5?_(z.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):_(z)},P=async T=>{const k=T.target.value.replace(/\D/g,"");try{if((await Cr.get(`https://viacep.com.br/ws/${k}/json/`)).data.erro){s&&s(l.messages.cep_not_found),i(!1),v(!0);return}s&&s(""),v(!1)}catch{console.log("Erro ao validar o CEP. Tente novamente mais tarde.")}},w=async()=>{h(!0);try{const T=await Cr.post("/api/checkout/simulation",{items:[{id:n,quantity:a,seller:t}],country:"BRA",postalCode:x});e(nl(T.data))}catch(T){console.error("Erro ao atualizar o documento:",T)}finally{h(!1),f(x,"BRA")}},O=async()=>{if(!n){S(!0),setTimeout(()=>S(!1),1500);return}await P({target:{value:x}}),y||(w(),i(!0))};return o.jsxs("div",{ref:j,style:{position:"relative"},children:[!n&&N?o.jsx(ol,{component:c,isOpen:N,parent:j.current,toolTipZIndex:u,freightConfig:l}):o.jsx(o.Fragment,{}),o.jsx("div",{style:{position:"relative"},children:o.jsx(m.TextField.Structure,{title:"structure",style:{width:"100%"},input:o.jsx(m.TextField.Input,{defaultValue:(M=(R=p.shippingData)==null?void 0:R.address)==null?void 0:M.postalCode,label:l.messages.text_input_label,title:"textfield",value:d,sizeVariant:r,onMouseOver:()=>n?null:S(!0),onMouseOut:()=>n?null:S(!1),mode:"simple",onChange:I,onKeyDown:T=>{T.key==="Enter"&&O()},className:D["input-modifier"],feedback:g?"error":"none"}),right:o.jsx(m.Button,{onClick:O,size:r,title:"button",children:y?o.jsx(m.Spinner,{size:"small",indicatorColor:"#ffffff"}):l.messages.text_input_btn})})})]})},sl=({children:e,freightConfig:t})=>o.jsxs("div",{className:D.shippingFreight,children:[o.jsxs("div",{className:D.shippingFreight__grid,children:[o.jsx("span",{className:D.shippingFreight__grid__title,children:t.messages.title}),o.jsx("span",{className:D.shippingFreight__grid__remember,children:o.jsx(He,{href:"https://buscacepinter.correios.com.br/app/endereco/index.php",passHref:!0,target:"_blank",rel:"noopener noreferrer",size:"x-small",disablePadding:!1,title:t.messages.remember_cep,children:t.messages.remember_cep})})]}),o.jsx("div",{className:D.shippingFreight__postalCodeGrid,children:e})]}),il=({children:e})=>o.jsx("div",{className:D.freightContainer,children:e}),cl=({className:e,sellerId:t,skuId:r,quantity:n,size:a,seller:s,local:i,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:l}=H(),[u,p]=b.useState(""),[f,d]=b.useState([]),[_,y]=b.useState(""),[h,g]=b.useState(!1),v=S=>p(S),N=S=>{d(S),l({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:{shippings:S.map(C=>({shipping_tier:C.id,delivery_time:C.shippingEstimate.replace("bd",""),flag_pickup:C.name.toLowerCase().includes("retirada")?"true":"false",shipping:C.price,currency:c.currency||"BRL"}))}}})};return o.jsxs(il,{className:e,children:[o.jsxs(sl,{freightConfig:c.freightConfig,children:[o.jsx(tl,{children:o.jsx(al,{onUpdateFreightItems:N,skuId:r,quantity:n,size:a,sellerId:t,local:i,setError:y,setIsButtonClicked:g,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),_?o.jsx(mn,{size:a,message:_,setError:y}):f.length>0&&o.jsx(mn,{size:a,message:c.freightConfig.messages.delivered_by,seller:s})]}),h&&!_?f.length>0&&o.jsxs(Jc,{children:[o.jsx(el,{children:f.filter(({id:S})=>!S.includes("Retirada")).map(S=>o.jsx(Zc,{id:S.id,value:bn({valueInCents:S.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:S.name,paragraph:`${c.freightConfig.messages.prefix_days}${rl(S.shippingEstimate)}`,radioValue:u,changeValue:v},S.id))}),c.deliveryInfoBoxesAllowed?o.jsx(Yc,{icon:c.freightConfig.icons.delivery_truck,packageUnit:c.freightConfig.messages.unit_amout,title:c.freightConfig.messages.delivered_amount_packages,subtitle:"",packageCount:1,labelDescription:"Label",freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex??999}):o.jsx(o.Fragment,{})]}):null]})},ma=b.createContext({}),ll=({children:e,item:t,index:r,shelfTitle:n,...a})=>{const[s,i]=b.useState(null),c=b.useRef(null),l=b.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:u,itemListRef:p}=H(),f=h=>{u({functionKey:"productEvents",data:{commonData:{...t,availableSizes:l.current.availableSkus,...l.current.priceInfo},customData:{index:r+1},event:h}})},d=()=>{f("add_to_wishlist")},_=()=>{u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...l.current.priceInfo}]},supportData:{selectedSku:s,selectedSkus:[s]},customData:{index:r}}})},y=()=>{n&&(p.current={item_list_name:n}),f("select_item")};return o.jsx(ma.Provider,{value:b.useMemo(()=>({...a,index:r,item:t,element:c,selectedSku:s,setSelectedSku:i,eventDataRef:l,sendAddToWishlistEvent:d,sendSelectItemEvent:y,sendAddToCartEvent:_}),[a,t,c,s]),children:e})},re=()=>{const e=b.useContext(ma);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},X={"product-card--actions":"_product-card--actions_qxtc1_1","product-card--actions--group":"_product-card--actions--group_qxtc1_9","product-card--actions--selectors":"_product-card--actions--selectors_qxtc1_21","product-card--body":"_product-card--body_qxtc1_33","product-card--header":"_product-card--header_qxtc1_47","product-card--footer":"_product-card--footer_qxtc1_67","product-card--image":"_product-card--image_qxtc1_90","product-card--image--container":"_product-card--image--container_qxtc1_97","product-card--outstock":"_product-card--outstock_qxtc1_133","product-card--price":"_product-card--price_qxtc1_155","product-card--title":"_product-card--title_qxtc1_180","product-card--title--tag":"_product-card--title--tag_qxtc1_186","product-card--title--content":"_product-card--title--content_qxtc1_203","product-card--selectors--size":"_product-card--selectors--size_qxtc1_243","product-card--selectors--size--button":"_product-card--selectors--size--button_qxtc1_269","product-card--selectors--size--skus":"_product-card--selectors--size--skus_qxtc1_278","product-card--selectors--style":"_product-card--selectors--style_qxtc1_292","product-card--selectors--style--more":"_product-card--selectors--style--more_qxtc1_302","product-card--video":"_product-card--video_qxtc1_319","product-card--wrapper":"_product-card--wrapper_qxtc1_345"},ha=({callback:e,children:t,className:r,data:n,isKit:a,...s})=>{const{item:{availability:{status:i},image:c}}=re();return i?o.jsxs("div",{...s,className:m.helpers.classNameConcat(X["product-card--actions"],r),children:[o.jsxs(Pe.Wrapper,{type:"actions--group",children:[o.jsx(Pe.Price,{}),o.jsx("div",{className:X["product-card--actions--selectors"],children:!a&&o.jsx(Pe.StyleSelector,{data:n,images:c,callback:e})})]}),t]}):null};ha.displayName="ProductCard.Actions";const _a=({className:e,isKit:t,...r})=>{const{addToCart:n}=Re(),{isMobile:a=!1,selectedSku:s,outStock:i,item:c,sendAddToCartEvent:l,CONSTANTS:u}=re(),p=()=>{var _;if(!s)return;const d=In(s.offers.offers,u.StoreConfig_MainSellerId);d&&n({id:s==null?void 0:s.sku,quantity:1,seller:d.seller.identifier},{id:c.id,texture:(_=c==null?void 0:c.image.find(y=>u.TEXTURE_IMAGE.includes(y.alternateName)))==null?void 0:_.url}),l()},f=s?u.BUY_BUTTON_LABELS.add_to_cart:u.BUY_BUTTON_LABELS.select_size;return o.jsx(m.Button,{...r,className:m.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!s&&!i,size:a?"medium":"large",variant:i?"secondary":"primary",onClick:i?r.onClick:p,children:i?"Avise-me quando chegar":f})};_a.displayName="ProductCard.Actions.BuyButton";const ga=({product:e,tag:t,size:r="small"})=>{const n=e.offers.offers[0],{CONSTANTS:a,WishListToggle:s}=re();return o.jsxs(Pe.Wrapper,{type:"header",style:{zIndex:a.Z_INDEX_WAR.product_card_header},children:[t?o.jsx(m.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?o.jsx(m.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,a.PRODUCT_CARD_TOP_WISHLIST_TOGGLE&&o.jsx(s,{product:e,priceInfo:{price:n.price,listPrice:n.listPrice},variant:"card"})]})};ga.displayName="ProductCard.Actions.Header";const ya=({className:e,children:t,hasPriority:r=!1,showVideo:n=!1,...a})=>{const{element:s,index:i,item:{image:c,slug:l,video:u},sendSelectItemEvent:p,order:f,CONSTANTS:d}=re(),_=Tn({images:c,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return o.jsxs("div",{...a,className:m.helpers.classNameConcat(X["product-card--image"],e),ref:s,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[o.jsx(se,{href:`/${l}/p`,onClick:p,onMouseUp:y=>{y.button===1&&p(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(f))},children:o.jsx("div",{className:X["product-card--image--container"],children:Array.isArray(_)&&_.map(({url:y,alternateName:h},g)=>b.createElement(fe.Image,{...d.PRODUCT_IMAGE_DIMENSIONS.product_card,style:d.PRODUCT_IMAGE_DIMENSIONS.product_card,alt:h??"product image",key:g,...r&&{priority:g===0&&i<4},objectFit:"cover",src:y}))})}),d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&n&&u&&o.jsx(Pe.Video,{url:u,poster:_[0].url}),t]})};ya.displayName="ProductCard.Media.Media";const va=({className:e,callback:t,children:r,...n})=>{const{isMobile:a,item:s,CONSTANTS:{PRODUCT_CARD_TEXTS:i}}=re(),{availability:{status:c}}=s;return c?null:o.jsxs("div",{...n,className:m.helpers.classNameConcat(X["product-card--outstock"],e),children:[o.jsx(m.Tag,{size:"small",variant:"secondary",title:i.disabled,children:i.disabled}),o.jsx(m.Button,{className:m.helpers.classNameConcat(e,"buy-button"),size:a?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(s)},children:i.notify})]})};va.displayName="ProductCard.OutStock";const ba=({children:e,className:t="",index:r,isMobile:n=!1,item:a,size:s,order:i,outStock:c,shelfTitle:l,CONSTANTS:u,WishListToggle:p,...f})=>o.jsx(ll,{item:a,isMobile:n,outStock:c,order:i,size:s,index:r,shelfTitle:l,CONSTANTS:u,WishListToggle:p,children:o.jsx("div",{...f,className:m.helpers.classNameConcat(X["product-card--wrapper"],t),"data-size":s,children:e})});ba.displayName="ProductCard.Root";const xa=({disabled:e,label:t,size:r,value:n,onClick:a,...s})=>o.jsxs(m.ToggleSize.Wrapper,{...s,disabled:!1,outOfStock:e,size:r,onClick:a,children:[o.jsx(m.ToggleSize.DisabledAdornment,{}),o.jsx(m.ToggleSize.Text,{children:t})]});xa.displayName="ProductCard.SizeSelector.Item";const Ca=({active:e=!1,callback:t,selectedSku:r=null,item:n,setNotify:a})=>{const{item:s,isMobile:i,setSelectedSku:c,eventDataRef:l}=re();n.productId=s.id;const u=jn(n),p=xn(n,"tamanho");!u&&!l.current.availableSkus.includes(p)&&l.current.availableSkus.push(p);const f=b.useCallback(_=>{const y=r===_?null:_;typeof c=="function"&&c(y),typeof t=="function"&&t(y)},[t,c,r]),d=b.useCallback(()=>{if(u&&typeof a=="function"){a(s,n);return}f(n)},[n,a,f,u,s]);return o.jsx(xa,{active:e,disabled:u,label:p,onClick:()=>d(),size:i?"x-small":"small",value:n})};Ca.displayName="ProductCard.SizeSelector.SkuItem";const ja=({callback:e,className:t="",children:r,setNotify:n,...a})=>{const{isMobile:s,item:{isVariantOf:{hasVariant:i}},selectedSku:c}=re();return o.jsxs("div",{...a,className:m.helpers.classNameConcat(X["product-card--selectors--size"],t),"data-mobile":s,children:[o.jsx("div",{className:X["product-card--selectors--size--skus"],children:Array.isArray(i)&&i.map((l,u)=>o.jsx(Ca,{active:c===l,callback:e,item:l,selectedSku:c,setNotify:n},`size--${u}--${l.sku}`))}),o.jsx("div",{className:X["product-card--selectors--size--button"],children:r})]})};ja.displayName="ProductCard.SizeSelector";const Jt=({alt:e="",callback:t,more:r,total:n=4,src:a,url:s,...i})=>o.jsxs(m.ToggleStyle.Wrapper,{...i,onClick:()=>{typeof t=="function"&&t(s)},children:[o.jsx(m.ToggleStyle.DisabledAdornment,{}),o.jsxs(m.ToggleStyle.Texture,{children:[a&&o.jsx(fe.Image,{alt:e??a,src:a,height:34,width:34}),r&&o.jsx(m.TextStructure.DivWrapper,{className:X["product-card--selectors--style--more"],children:o.jsxs("p",{children:["+ ",n]})})]})]}),ul=({children:e,callback:t,data:r,total:n=4,size:a,...s})=>{const{index:i}=re(),{triggerSelectItemEventRef:c}=H();return o.jsxs("div",{...s,children:[e,Array.isArray(r)&&r.slice(0,n).map((l,u)=>o.jsx(Jt,{callback:p=>{c.current.trigger=!0,c.current.index=i,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:a},u)),Array.isArray(r)&&(r==null?void 0:r.length)>n&&o.jsx(Jt,{size:a,total:r.length-n,more:!0})]})},Ia=({callback:e,className:t,data:r,images:n=[],findTexture:a,...s})=>{const{CONSTANTS:i}=re(),c=a||i.TEXTURE_IMAGE,l=n==null?void 0:n.find(u=>c.includes(u.alternateName));return o.jsx(ul,{...s,callback:e,className:m.helpers.classNameConcat(X["product-card--selectors--style"],t),data:r,size:"x-small",children:l&&o.jsx(Jt,{active:!0,size:"x-small",src:l.url})})};Ia.displayName="ProductCard.StyleSelector";const Sa=({className:e,hasDecimal:t,...r})=>{const{isMobile:n,item:{offers:{lowPrice:a,highPrice:s},installments:{count:i,value:c}},eventDataRef:l}=re();l.current.priceInfo={price:a,listPrice:s};const u=me(s,t),p=me(a,t),f=me(c??0),d=n?"horizontal":"stacked";return o.jsx("div",{...r,className:m.helpers.classNameConcat(X["product-card--price"],e),"data-mobile":n,children:o.jsx(m.ProductInfo.Root,{size:"small",layout:d,children:o.jsxs(m.ProductInfo.Wrapper,{size:"small",layout:d,children:[o.jsx(m.ProductInfo.ValuesWrapper,{children:p!==u?o.jsxs(o.Fragment,{children:[o.jsx(m.ProductInfo.Price,{label:"originalPrice",value:u,size:"small"}),o.jsx(m.ProductInfo.Price,{label:"discountPrice",value:p,size:"small"})]}):o.jsx(m.ProductInfo.Price,{label:"defaultPrice",value:p,size:"small"})}),i&&i>1&&c?o.jsx(m.ProductInfo.Price,{label:"installment",value:`${i}x ${f}`,size:"small"}):null]})})})};Sa.displayName="ProductCard.Price";const Na=({tag:e,className:t})=>{const{item:{name:r}}=re();return o.jsxs("div",{className:m.helpers.classNameConcat(X["product-card--title"],t),children:[o.jsx("div",{className:X["product-card--title--tag"],children:e?o.jsx(m.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?o.jsx(m.Icon,{name:e.icon,style:{color:e.iconColor}}):null},style:{background:e.tagColor,color:e.textColor},children:e.value}):o.jsx("div",{})}),o.jsx("div",{className:X["product-card--title--content"],children:r&&o.jsx(m.TextStructure.Root,{children:o.jsx(m.TextStructure.DivWrapper,{children:o.jsx("h3",{children:r})})})})]})};Na.displayName="ProductCard.Title";const Pa=({className:e,url:t,poster:r,...n})=>{const{element:a}=re();return b.useEffect(()=>{if(!(a!=null&&a.current))return;const s=a.current,i=s.querySelector("video");if(i){const c=new IntersectionObserver(p=>{p.forEach(f=>{En(f.isIntersecting,i,t)})},{root:null,rootMargin:"0px",threshold:.5}),l=()=>{i.setAttribute("data-loaded","true")},u=()=>{s&&(c.observe(s),i.addEventListener("loadeddata",l))};return document.readyState==="complete"?u():window.addEventListener("load",u),()=>{c.disconnect(),window.removeEventListener("load",u)}}return()=>null},[t,a]),o.jsx("div",{...n,className:m.helpers.classNameConcat(X["product-card--video"],e),children:t&&o.jsx(fe.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};Pa.displayName="ProductCard.Media.Video";const Ta=({children:e,className:t,type:r,...n})=>o.jsx("div",{...n,className:m.helpers.classNameConcat(X[`product-card--${r}`],t),children:e});Ta.displayName="ProductCard.Wrapper";const Pe={Actions:ha,BuyButton:_a,Header:ga,Media:ya,Root:ba,OutStock:va,Price:Sa,SizeSelector:ja,StyleSelector:Ia,Title:Na,Video:Pa,Wrapper:Ta},hn=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:n})=>{const a=Nn(e.imageUrl,n.pdp),{nextimage:s}=de();return o.jsx(s,{src:a,alt:e.imageLabel,objectFit:"contain",...n.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},dl=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:n}=H(),a=b.useRef(!1);return o.jsx(fe.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{a.current||(a.current=!0,n({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:t}}}))},poster:r})},fl={"gallery-carousel-modifier":"_gallery-carousel-modifier_1pjec_92"},Ea=({images:e,video:t,handleZoom:r,productName:n,PRODUCT_IMAGE_DIMENSIONS:a})=>{var u,p;const{initialize:s,pagination:i,controller:c,itemsStyles:l}=m.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return o.jsxs(m.Carousel.Root,{innerRef:f=>{s(f)},className:fl["gallery-carousel-modifier"],children:[o.jsx(m.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:o.jsx(m.Carousel.Bullets,{page:i.currentPage,total:e.length,onBulletClick:f=>c==null?void 0:c.navigateTo(f)})}),o.jsxs(m.Carousel.Body,{children:[o.jsx(m.Carousel.Item,{style:l,children:o.jsx(hn,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:a})},"PDP_gallery_0"),t&&o.jsx(m.Carousel.Item,{style:l,children:o.jsx(dl,{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:o.jsx(m.Carousel.Item,{style:l,children:o.jsx(hn,{image:f,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:a})},`PDP_gallery_${d}`))]})]})};Ea.displayName="PDP.Carousel";const pl=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{video:r,productName:n}=nr(),[a,s]=b.useState({show:!1,initialIndex:0});b.useEffect(()=>(a.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[a]);const i=c=>{s({show:!0,initialIndex:c})};return o.jsx(o.Fragment,{children:o.jsx(Ea,{images:e,video:r,handleZoom:i,productName:n,PRODUCT_IMAGE_DIMENSIONS:t})})},wa=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{images:r}=nr(),n=b.useMemo(()=>{const a=r.filter(s=>!e.includes(s.imageLabel));return a.length>0?a:r},[]);return o.jsx(pl,{productImgs:n,PRODUCT_IMAGE_DIMENSIONS:t})};wa.displayName="PDP.Gallery";const ml=Object.freeze(Object.defineProperty({__proto__:null,Gallery:wa},Symbol.toStringTag,{value:"Module"})),hl={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},hr=({size:e,adornment:t,title:r,subtitle:n,supportChildren:a,className:s,Z_INDEX_WAR:i,...c})=>o.jsxs(m.SnackBar.Structure,{...c,size:e,className:m.helpers.classNameConcat(hl["snackbar-modifier"],s),width:360,style:{zIndex:i.snackbar},children:[o.jsx(m.SnackBar.Content,{adornment:t,title:r,subtitle:n}),a&&o.jsx(m.SnackBar.Support,{children:a})]});hr.displayName="SnackBar";const Ra=b.createContext({}),_l=({data:e,children:t,...r})=>{var y,h,g,v,N,S,C,x,j,I,P,w,O;const[n,a]=b.useState(!0),{initialize:s,controller:i,itemsStyles:c}=m.Carousel.useCarousel({gap:0,itemsPerPage:1}),l={slideTranstionTimer:(h=(y=e==null?void 0:e.staticConfig)==null?void 0:y.staticConfig)==null?void 0:h.slideTranstionTimer,showCarouselArrows:(v=(g=e==null?void 0:e.staticConfig)==null?void 0:g.staticConfig)==null?void 0:v.showCarouselArrows,hasCloseBtn:(S=(N=e==null?void 0:e.staticConfig)==null?void 0:N.staticConfig)==null?void 0:S.hasCloseBtn,backgroundColor:(x=(C=e==null?void 0:e.staticConfig)==null?void 0:C.staticConfig)==null?void 0:x.backgroundColor,textColorVariant:(I=(j=e==null?void 0:e.staticConfig)==null?void 0:j.staticConfig)==null?void 0:I.textColorVariant,content:((w=(P=e==null?void 0:e.content)==null?void 0:P.content)==null?void 0:w.items)??[]},u=(O=l.content)==null?void 0:O.filter(q=>!q.countDownEndDate||new Date(q.countDownEndDate)>new Date),p=u.length>1,f={...l.backgroundColor?{backgroundColor:l.backgroundColor}:{}},d=()=>{a(!1)},_=m.helpers.ValidateProp({fieldTypes:Le.Mode,property:l.textColorVariant,fallback:"default"});return o.jsx(Ra.Provider,{value:{isOpen:n,setIsOpen:a,hasCarousel:p,backgroundStyle:f,handleCloseTipbar:d,mode:_,slideTranstionTimer:l.slideTranstionTimer,showCarouselArrows:l.showCarouselArrows,hasCloseBtn:l.hasCloseBtn,slices:u,carouselProps:{initialize:s,controller:i,itemsStyles:c},...r},children:t})},ge=()=>b.useContext(Ra),gl=({dateEnd:e,dateInit:t,TIME_ZONE:r,...n})=>{const[a,s]=b.useState(jo(new jr.TZDate(Date.now(),r),new jr.TZDate(e,r))),[i,c]=b.useState(!1);b.useEffect(()=>{i||c(!0);const u=setInterval(()=>{if(a<=0){clearInterval(u);return}s(a-1e3)},1e3);return()=>{clearInterval(u)}},[a,s,i]);const l=ke(a,"days");return i&&a>0?o.jsxs(m.Timer.Root,{...n,children:[l?o.jsxs(o.Fragment,{children:[o.jsx(m.Timer.Digit,{label:"dias",value:l}),o.jsx(m.Timer.Separator,{})]}):null,o.jsx(m.Timer.Digit,{label:"horas",value:ke(a,"hours")}),o.jsx(m.Timer.Separator,{}),o.jsx(m.Timer.Digit,{label:"min",value:ke(a,"minutes")}),o.jsx(m.Timer.Separator,{}),o.jsx(m.Timer.Digit,{label:"segs",value:ke(a),suppressHydrationWarning:!0})]}):o.jsx(o.Fragment,{})},yl=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=ge();return o.jsx(gl,{dateEnd:new Date(e),TIME_ZONE:r,...t})},vl="_tipbar_bt3p0_1",bl="_tipbar__carousel_bt3p0_15",Ue={tipbar:vl,tipbar__carousel:bl,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},xl=({coupon:e,feedbackTitle:t,feedbackDescription:r,...n})=>{const{CONSTANTS:a}=ge(),[s,i]=b.useState({status:!1,showSnackBar:!1}),c=()=>{i({status:!0,showSnackBar:!0})};return b.useEffect(()=>{s.status&&setTimeout(()=>{i({status:!0,showSnackBar:!1})},a.TIPBAR_CONFIGS.snackbar_timeout)},[s]),o.jsxs(o.Fragment,{children:[o.jsx(m.Button,{...n,onClick:c,disabled:s.status,className:Ue["tipbar-item__coupon"],children:s.status?"Cupom aplicado":"Aplicar cupom"}),s.showSnackBar&&(t||r)&&o.jsx(hr,{title:t,subtitle:r,Z_INDEX_WAR:a.Z_INDEX_WAR},`feedback-coupon-${e}`)]})},Cl=({title:e,description:t,style:r,mode:n})=>o.jsx(m.TextStructure.Root,{children:o.jsxs(m.TextStructure.DivWrapper,{mode:n,children:[e&&o.jsx("h3",{className:"typography-style-body-sm",style:r,children:e}),t&&o.jsx("p",{className:"typography-style-caption",style:r,children:t})]})}),jl=({staticZone:e,type:t,title:r,description:n})=>{const{mode:a}=ge();if(t==="countdown")return o.jsx(yl,{dateEnd:e.countDownEndDate,size:"x-small",mode:a});if(t==="coupon"){const s=m.helpers.ValidateProp({fieldTypes:Le.Mode,property:e.couponButtonMode,fallback:"default"}),i=m.helpers.ValidateProp({fieldTypes:Le.VariantsExtended,property:e.couponButtonVariant,fallback:"primary"});return e.coupon?o.jsx(xl,{coupon:e.coupon,mode:s,variant:i,feedbackTitle:e.couponFeedbackTitle,feedbackDescription:e.couponFeedbackDescription}):null}return o.jsx(Cl,{title:r,description:n,mode:a})},Il=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:n})=>{const{carouselProps:a,CONSTANTS:s}=ge(),i=b.useRef(null),c=(u,p)=>{var f,d;u.stopPropagation(),u.preventDefault(),p==="prev"?(f=a.controller)==null||f.prevPage():(d=a.controller)==null||d.nextPage(),i.current&&(clearInterval(i.current),l())},l=b.useCallback(()=>{if(n&&a.controller){const u=setInterval(()=>{var p;(p=a.controller)==null||p.nextPage()},n);i.current=u}},[n,a]);return b.useEffect(()=>(l(),()=>{i.current&&clearInterval(i.current)}),[n,l]),o.jsxs(m.Carousel.Root,{innerRef:u=>{a.initialize(u)},className:Ue.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[r&&o.jsx(m.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"prev"),adornment:{start:o.jsx(m.Icon,{name:s.ICONS.arrow_left})}}),o.jsx(m.Carousel.Body,{children:e}),r&&o.jsx(m.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"next"),adornment:{start:o.jsx(m.Icon,{name:s.ICONS.arrow_right})}})]})},_n=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=ge();return o.jsx(m.Button,{title:"fechar tipbar",className:Ue["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:o.jsx(m.Icon,{name:r.ICONS.close})}})},Sl=({children:e})=>{const{hasCarousel:t,mode:r,hasCloseBtn:n,backgroundStyle:a,showCarouselArrows:s,slideTranstionTimer:i,handleCloseTipbar:c}=ge(),l=t&&s;return o.jsx("div",{style:a,"data-hasclosebtn":n,className:Ue.tipbar,children:t?o.jsxs(o.Fragment,{children:[o.jsx(Il,{mode:r,showCarouselArrows:l,slideTranstionTimer:i,children:e}),n&&o.jsx(_n,{handleCloseTipbar:c,showCarouselArrows:l,mode:r})]}):o.jsxs(o.Fragment,{children:[e,n&&o.jsx(_n,{handleCloseTipbar:c,mode:r})]})})},Nl=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:n,carouselProps:a}=ge(),s=o.jsx("div",{...r,className:Ue["tipbar-item"],children:e});return n?o.jsx(m.Carousel.Item,{style:a.itemsStyles,children:s}):s},Oa=()=>{const{isOpen:e,slices:t}=ge();return t.length&&e?o.jsx(Sl,{children:t.map((r,n)=>{var a;return o.jsx(o.Fragment,{children:o.jsx(Be,{href:r.link,children:o.jsx(Nl,{highlightFirstSection:r.highlightFirstSection,"data-justifyhighlightedsection":r.horizontalAlignHighlightedSection?r.horizontalAlignHighlightedSection:"center",children:r&&((a=r==null?void 0:r.items)!=null&&a.length)?r.items.map((s,i)=>o.jsx(jl,{staticZone:r,type:s.type,title:s.title,description:s.description},`tipbar-slice-field-${i}`)):null})})},`tipbar-slice-${n}`)})}):null};Oa.displayName="TipBar.Root";const Aa=e=>o.jsx(_l,{...e,children:o.jsx(Oa,{})});Aa.displayName="TipBar";const Pl={teamComponents:{AddToCart:cr,BackToTop:ci,Footer:Go,FreightCalculation:cl,Header:pa,Link:He,Media:fe,ProductCard:Pe,TipBar:Aa},template:{pdp:ml},utils:{EventCollector:li,ExternalScripts:ji,LinkOrNotLink:Be,ObserverWrapper:Xo,SnackBarComponent:hr}};exports.cms=Zs;exports.contexts=ks;exports.data=Io;exports.layout=Pl;
1
+ "use strict";var Yc=Object.defineProperty;var Zc=(e,t,r)=>t in e?Yc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ut=(e,t,r)=>Zc(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),B=require("react"),Fe=require("idb-keyval"),it=require("zustand"),b=require("@soma-vertical-web/core-components"),Te=require("draft-js"),nt=require("@soma-vertical-web/foundations"),fo=require("@date-fns/tz"),_a=require("react-dom"),po=require("axios"),Un=B.createContext({}),Jc=({data:e,children:t})=>c.jsx(Un.Provider,{value:{tags:e==null?void 0:e.config},children:t}),va=()=>{const{tags:e}=B.useContext(Un),t=B.useCallback(r=>{var a,s,u,l;const n=(s=(a=e==null?void 0:e.commercial)==null?void 0:a.items)==null?void 0:s.find(p=>{var m;return(m=r??[])==null?void 0:m.find(d=>d.id===p.key)}),o=(l=(u=e==null?void 0:e.institucional)==null?void 0:u.items)==null?void 0:l.find(p=>{var m;return(m=r??[])==null?void 0:m.find(d=>d.id===p.key)}),i=e==null?void 0:e.flagPdp;return{commercial:n,institucional:o,flagPdp:i}},[e]);return{tags:e,getAvailableProductTag:t}},ba=({gridScrollBack:e})=>{B.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},xa=B.createContext({}),eu=({children:e,gridScrollBack:t})=>{const r=B.useRef(null);return ba({gridScrollBack:t}),c.jsx(xa.Provider,{value:{sizesContainerRef:r},children:e})},tu=()=>{const e=B.useContext(xa);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},Me=(e,t=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:t?2:0}).format(e),Ca=({valueInCents:e,hasFree:t,freeTaxMessage:r})=>e===0?t?r:Me(0):Me(e/100),Wn=(e,t)=>{const[r,n]=e.split(t);return{name:r.trim(),size:n?n.trim():""}},kt=(e,t)=>{if(!e)return{};const[r,n]=e.split(t);return{color:r==null?void 0:r.trim(),size:n==null?void 0:n.trim()}},Sa=(e,t="tamanho")=>{if(e.additionalProperty){const[r]=e.additionalProperty;return r!=null&&r.name?r.name.toLocaleLowerCase()===t?r.value:e.name:""}return e.name},ru=(e,t)=>e.replace(t,"").trim(),nu=e=>e.replace(/\//g,""),Aa=({items:e,NAME_SPLIT_SYMBOL:t})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(a,s)=>{var d;s&&(s.sellerId=a.sellerId,s.sellerName=a.sellerName,s.available=!0,s.isSellerDefault=a.sellerDefault);const{Price:u,ListPrice:l,PaymentOptions:{installmentOptions:p}}=a.commertialOffer;r.price=u,r.listPrice=l;const m=(d=p==null?void 0:p[0])==null?void 0:d.installments;if(m){const{count:f,value:h}=m[m.length-1];r.installments={count:f,value:h/100}}};let o=!0;const i=e.reduce((a,s)=>{var p;const u={name:s.name,sku:s.itemId,value:((p=s.Tamanho)==null?void 0:p[0])??Wn(s.nameComplete??s.name,t).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},l=s.sellers.filter(m=>(m.sellerDefault&&m.commertialOffer.IsAvailable&&(u.available=!0,n(m,u)),m.commertialOffer.IsAvailable));return!u.isSellerDefault&&l.length>0&&(u.available=!0,n(l[0],{...u,sellerId:l[0].sellerId,sellerName:l[0].sellerName})),u.available===!1&&(o=!1),a.push(u),a},[]);return{...r,sizes:i,allSizesAvailable:o}},Ra=e=>e?!e.offers.offers.find(({quantity:t=0})=>t>0):!1,Ea=(e,t)=>{const r=e.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0&&n.seller.identifier===t);return r||e.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0)},wa=e=>e.find(t=>t.imageLabel==="10"),ja=(e,t)=>{const r=/\/ids\/(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},Ia=(e,t)=>{const r=/\/ids\/(\d+)-(\d+)-(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}-${n[2]}-${n[3]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},Pa=({images:e,label:t})=>{const r=e.filter(n=>n.keywords===t.first||n.keywords===t.second||n.alternateName===t.first||n.alternateName===t.second);return r.length===0?[e[0]]:r},ou=e=>{const[t,r]=e.split("/").map(Number);if(Number.isNaN(t)||Number.isNaN(r))throw new Error("[ERROR ASPECT RATIO IMAGE]: Invalid aspect ratio format");return r/t},Na=(e,t,r)=>{t&&(e?(t.getAttribute("src")||(t.src=r??""),t.play()):t.pause())},iu=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Ra,formatPriceToCurrency:Me,freightParsePrice:Ca,getAspectRatio:ou,getColorAndSizeFromSkuName:kt,getFirstImages:Pa,getProductNameWithoutSku:ru,getSKUName:Sa,getSkuInfos:Aa,getThumbImage:wa,getValidOffer:Ea,removeSlashes:nu,resizingImg:ja,setVideoPlay:Na,splitNameAndSizeFromFullName:Wn,updatedResizedImg:Ia},Symbol.toStringTag,{value:"Module"})),Le=({event:e,data:t})=>{const r=(window==null?void 0:window.dataLayer)||[];t.ecommerce&&r.push({ecommerce:null}),r.push({...e&&{event:`custom_${e}`},...t})},ve={configs:{PLP_FILTERS:[{key:"",label:"",eventLabel:"",order:0}],currency:"BRL",categoryOff:"bazar",storeUrl:"https://www.example.com",MAIN_IMAGE:"1",NAME_SPLIT_SYMBOL:"-"},productEvents:(e,t)=>{const{event:r,commonData:n,customData:o,promotionInfo:i,itemList:a,outsideEcommerceData:s}=e,{availableSizes:u,sizes:l,price:p}=n,m={...r==="view_item"?{currency:ve.configs.currency,value:p,grade_disponivel:u??(l?Oa(l):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:p,currency:ve.configs.currency}:{}},d=gt({data:n,customData:{...o,...a,...i},configs:ve.configs});Le({event:r,data:{...s,ecommerce:{...a,...m,items:[d]}}}),typeof t=="function"&&t(d,m)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:r,itemList:n,outsideEcommerceData:o,customData:i}=e;if(t.length===0)return;const a=t.map(({node:s},u)=>gt({data:{...s},customData:{...r,index:u,...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:n},configs:ve.configs}));Le({event:"view_item_list",data:{...o,ecommerce:{...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:n,items:a}}})},skuEvents:e=>{const{event:t,commonData:{products:r},customData:n,supportData:{selectedSkus:o,price:i},promotionInfo:a,itemList:s,outsideEcommerceData:u}=e;let l=0;const p=r.map(m=>{var y,g,v,R,_,S,C,w,x;const d=o==null?void 0:o.find(I=>(m.productId??m.id)===I.productId);let f={...a,...s};if(d){const I=Ma(),$=ka(I,d);$&&(f={...f,...$}),t==="add_to_cart"&&(a||s)&&Pn({persistedData:I,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:a,itemList:s}}),t==="remove_from_cart"&&Pn({persistedData:I,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}l+=m.price??((v=(g=(y=d==null?void 0:d.offers)==null?void 0:y.offers)==null?void 0:g[0])==null?void 0:v.price)??0;const h=(d==null?void 0:d.size)??kt((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((R=m.itemOffered)==null?void 0:R.skuName),ve.configs.NAME_SPLIT_SYMBOL).size;return gt({data:m,customData:{...n,...f??{...a,...s},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((_=m.itemOffered)==null?void 0:_.sku),quantity:(n==null?void 0:n.quantity)??m.quantity??1,item_variant2:h,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((x=(w=(C=(S=d==null?void 0:d.offers)==null?void 0:S.offers)==null?void 0:C[0])==null?void 0:w.seller)==null?void 0:x.identifier)??m.seller},configs:ve.configs})});Le({event:t,data:{...u,ecommerce:{value:i??l,currency:ve.configs.currency,items:p}}})},filterEvent:e=>{var a;const{commonData:t,customData:r,outsideEcommerceData:n}=e,o={},i={};Array.isArray(t==null?void 0:t.selectedFacets)&&((a=t==null?void 0:t.selectedFacets)!=null&&a.length)&&((t==null?void 0:t.selectedFacets).forEach(({key:s,value:u})=>{var m;const l=((m=ve.configs.PLP_FILTERS.find(d=>d.key===s))==null?void 0:m.eventLabel)??s,p=(o==null?void 0:o[l])||[];l==="price_range"&&u.replace(":","-"),o[l]=[...p,u]}),Object.keys(o).forEach(s=>i[s]=o[s].join(", "))),Le({event:"filter",data:{...n,...i,...r}})},viewCartEvent:e=>{var p,m,d,f,h,y,g,v,R,_;const{commonData:t,outsideEcommerceData:r}=e,{cartStore:n}=t;if(!n)return;const o=window.localStorage.getItem("persistedCartEventsData"),i=o?JSON.parse(o):{},a=n.items.map(S=>{const{promotionInfo:C,itemList:w}=i[S.id]??{};return gt({data:{...S,price:S.price/100,listPrice:S.listPrice/100},customData:{...C,...w,item_sku:S.id??S.itemOffered.sku,quantity:S.quantity??1},configs:ve.configs})}),s=(((p=n.totalizers.find(S=>S.name==="Total dos Itens"))==null?void 0:p.value)??0)/100,u=(((m=n.totalizers.find(S=>S.name==="Total dos Descontos"))==null?void 0:m.value)??0)/100,l=((d=n.marketingData)==null?void 0:d.utmiCampaign)==="codigodavendedora"?(f=n.marketingData)==null?void 0:f.utmCampaign:(y=String((h=n.openTextField)==null?void 0:h.value))==null?void 0:y.split(" - ")[0];Le({event:"view_cart",data:{...r,ecommerce:{currency:ve.configs.currency,value:s+u,total_discount:Math.abs(u),cep_preenchido:!!((v=(g=n.shippingData)==null?void 0:g.address)!=null&&v.postalCode),...l?{seller_coupon_name:l}:{},...((R=n.marketingData)==null?void 0:R.coupon)&&{sale_coupon_name:(_=n.marketingData)==null?void 0:_.coupon},subtotal:s,items:a}}})},readyEvents:e=>{const{event:t,readyData:r}=e;Le({event:t,data:{...r}})}},Oa=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),au=e=>{const t=e.length;return{...e&&e.length>0?{item_category:e[0].includes(ve.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},gt=({data:e,customData:t,configs:r})=>({...su(e,r==null?void 0:r.MAIN_IMAGE),...cu(e),...uu(e),...lu(e),...t}),Ta=()=>{var e,t;return document?((t=(e=window.document.head.querySelector('meta[name="category"]'))==null?void 0:e.getAttribute("content"))==null?void 0:t.split("_"))??[]:[]},Ma=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},ka=(e,t)=>e==null?void 0:e[t],Pn=({persistedData:e,type:t,sku:r,newData:n})=>{if(!e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({[r]:n}));return}if(e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({...e,[r]:n}));return}e&&t==="remove"&&(delete e[r],window.localStorage.setItem("persistedCartEventsData",JSON.stringify(e)))},su=(e,t="1")=>{var i,a,s,u,l,p,m,d,f,h,y;const r=e.productReference??e.gtin??e.productRefId,n=e.image??((a=(i=e.items)==null?void 0:i[0])==null?void 0:a.images)??((s=e.itemOffered)==null?void 0:s.image),o=n==null?void 0:n.find(g=>g.alternateName===t||g.imageLabel===t||g.keywords===t);return{item_id:e.productId??((u=e.isVariantOf)==null?void 0:u.productGroupID)??((l=e.isVariationOf)==null?void 0:l.productGroupID)??((m=(p=e.itemOffered)==null?void 0:p.isVariationOf)==null?void 0:m.productGroupID),item_ref:/_\d$/.test(r)?r.slice(0,-2):r,item_name:e.productTitle??e.productName??e.name??Wn((d=e.itemOffered)==null?void 0:d.name,ve.configs.NAME_SPLIT_SYMBOL).name,item_brand:((f=e.brand)==null?void 0:f.brandName)??((h=e.brand)==null?void 0:h.name)??e.brand??((y=e.itemOffered)==null?void 0:y.brand.name),item_url:`${ve.configs.storeUrl}${e.linkText}/p`,item_image:(o==null?void 0:o.url)??(o==null?void 0:o.imageUrl)}},mo=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,cu=e=>{var l,p;const{categories:t,categoriesIds:r}=e,n=t??((l=e.itemOffered)==null?void 0:l.categories),o=r??((p=e.itemOffered)==null?void 0:p.categoriesIds),i=mo(n),a=mo(o),s=i.slice(1,-1).split("/"),u=a.slice(1,-1).split("/");return{item_category:s[0].toLowerCase().includes(ve.configs.categoryOff)?"Bazar":"Coleção",...s[1]&&{item_category2:s[1]},...s.length>2&&{item_category3:s[s.length-1]},item_category_id:u[u.length-1],...u.length>1&&{item_parent_category_id:u[u.length-2]}}},uu=e=>{var o,i,a,s,u,l;const t=((o=e.itemOffered)==null?void 0:o.skuName)??((s=(a=(i=e.isVariantOf)==null?void 0:i.hasVariant)==null?void 0:a[0])==null?void 0:s.name)??((l=(u=e.items)==null?void 0:u[0])==null?void 0:l.name),{color:r,size:n}=kt(t,ve.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:n}}},lu=e=>{var u,l;const{price:t,listPrice:r,installments:n}=e,o=t??((u=e.offers)==null?void 0:u.lowPrice)??0,i=r??((l=e.offers)==null?void 0:l.highPrice)??0,a=i?i-o:0,s=a%1===0?a:Number(a.toFixed(2));return{...t&&{price:o??i},...i&&{list_price:i,discount:s},...n&&{installments:n==null?void 0:n.count,installment_value:n==null?void 0:n.value},item_currency:ve.configs.currency}},La=()=>{const[e,t]=Ta(),[r,n]=e.split("-"),o=r.includes("shop")||r.includes("sale")?r:"";return{page_category:o&&n?n:"",page_departament:o,id:t,name:e}},du=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:ve,findDataInPersistedData:ka,getAvailablesSizes:Oa,getCategories:au,getPageCategoryAndDepartmentFromSlug:La,getPersistedData:Ma,getProductListInfoFromHead:Ta,pushDatalayer:Le,updatePersistedData:Pn},Symbol.toStringTag,{value:"Module"})),Da=B.createContext({}),fu=({children:e,evtFunctionsConfigs:t})=>{const r=B.useRef({}),n=B.useRef(null),o=B.useRef(null),i=B.useRef({}),a=B.useRef({trigger:!1,index:0}),s=({functionKey:p,data:m,callBack:d,timeout:f=100})=>{window.dataLayer||(window.dataLayer=[]),ve.configs=t;try{typeof ve[p]=="function"&&setTimeout(()=>{var h;m.promotionInfo=r.current,(h=o.current)!=null&&h.item_list_name&&(m.itemList=o.current),ve[p](m,d)},f)}catch(h){Le({event:"error_event",data:{error_message:(h==null?void 0:h.message)??h}})}},u=({content:p})=>{s({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:p.replace("::",":")}}})},l=({updatePromotionRef:p,promotion:m,index:d})=>{p&&(r.current={...m}),s({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...m,...d!==void 0&&{index:d}}}}})};return c.jsx(Da.Provider,{value:{sendDataLayerEvent:s,triggerSelectItemEventRef:a,promotionEventRef:r,currentLocalRef:n,itemListRef:o,cartProductsFullDataRef:i,handleSelectContent:u,handleSelectPromotionEvent:l},children:e})},ge=()=>B.useContext(Da),$a=B.createContext({}),pu=({children:e,productData:t,isKit:r,PDP_INFO:n,NAME_SPLIT_SYMBOL:o})=>{var k,P;const{sendDataLayerEvent:i,triggerSelectItemEventRef:a}=ge(),{productId:s,productName:u,items:l,items:[{images:p,Videos:m}],description:d,["Composição"]:f="",productReference:h,categories:[y]}=t,{getAvailableProductTag:g}=va(),v=g(Object.entries(t.clusterHighlights).map(q=>({id:q[0],name:q[1]}))),R=y.slice(1,-1).split("/"),{installments:_,price:S,listPrice:C,sizes:w,allSizesAvailable:x}=Aa({items:l,NAME_SPLIT_SYMBOL:o}),I=wa(p),$=[{label:`${n.product.description}`,value:"description",content:d},{label:`${n.product.materiais}`,value:"composition",content:f}],A=((P=kt((k=t.items)==null?void 0:k[0].name,o))==null?void 0:P.color)??t["Cores Filtráveis"][0]??"",N=()=>({commonData:{...t,sizes:w,price:S,listPrice:C,installments:_},customData:{installments:_==null?void 0:_.count,installment_value:Number(_==null?void 0:_.value).toFixed(2)}}),j=({sku:q,size:z})=>{const{commonData:G,customData:Y}=N();i({functionKey:"productEvents",data:{event:"view_item",commonData:G,customData:{...Y,...q&&{item_sku:q},...z&&{item_variant2:z}}}})};return B.useEffect(()=>{if(a.current.trigger){const{commonData:q,customData:z}=N();i({functionKey:"productEvents",data:{event:"select_item",commonData:q,customData:{...z,index:a.current.index}}}),a.current.trigger=!1}j({})},[]),c.jsx($a.Provider,{value:{productData:t,productId:s,productName:u,productReference:h,tag:v,items:l,sizes:w,allSizesAvailable:x,installments:_,price:S,listPrice:C,thumbImage:I,images:p,video:m[0],descriptionContent:$,breadcrumbList:R,isKit:r,colorName:A,handleViewItemEvent:j},children:e})},Gn=()=>{const e=B.useContext($a);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},mu={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},Pe=Promise.resolve(!1),Nn={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>Pe,addItem:()=>Pe,addSellerCode:()=>Pe,emptyCart:()=>{},removeItem:()=>Pe,setIsOpen:()=>{},shipping:()=>Pe,shippingUpdate:()=>Pe,toggleServiceToProduct:()=>Pe,updateItemQuantity:()=>Pe,insertProfileEmail:()=>Pe,setRecentlyAddedProducts:()=>{}},Vn=e=>e===0,qa=(e,t)=>{if(!e||e.length===0)return[];let r="";const n=[],o=e.match(/\d+/g)??[];for(const i of o){const a=t[Number(i)];a&&(r+=(r?"/":"")+a,n.push(r))}return n},Ba=e=>{const{availability:t,additionalInfo:{brandName:r},bundleItems:n,id:o,uniqueId:i,detailUrl:a,ean:s,imageUrl:u,name:l,listPrice:p,quantity:m,price:d,priceDefinition:f,productCategories:h,productCategoryIds:y,productId:g,refId:v,seller:R,referenceId:_,offerings:S,productRefId:C,skuName:w,sellingPrice:x}=e;return{availability:t,bundleItems:n,referenceId:_,productRefId:C,id:o,ean:s,uniqueId:i,itemOffered:{additionalProperty:[],brand:{name:r},categories:qa(y,h),categoriesIds:y,gtin:v,image:[{alternateName:"1",url:u}],name:l,isVariationOf:{name:l,productGroupID:g},sku:o,slug:a,skuName:w},listPrice:p,quantity:m,offerings:S,price:d,priceDefinition:f,sellingPrice:x,seller:R}},Ha=(e,t)=>{const r=e.map(n=>({id:n.id,quantity:n.quantity,seller:n.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},za=(e,t)=>{const r=e.find(n=>n.id===t);if(r){const n=e.map((o,i)=>{var a,s;return{id:((a=o.itemOffered)==null?void 0:a.sku)??"",index:i,quantity:(r==null?void 0:r.id)===((s=o.itemOffered)==null?void 0:s.sku)?0:o.quantity,seller:o.seller??""}});return{updateItems:n,filterItems:n.filter(o=>o.id!==t)}}return{updateItems:[],filterItems:[]}},Fa=(e,t,r)=>e.filter(n=>n.availability!=="withoutStock"&&n.availability!=="https://schema.org/OutOfStock").map((n,o)=>{var i,a;return n.id===t?{id:n.id,index:o,quantity:r,seller:n.seller,sku:((i=n.itemOffered)==null?void 0:i.sku)??""}:{id:n.id,index:o,quantity:n.quantity,seller:n.seller,sku:((a=n.itemOffered)==null?void 0:a.sku)??""}}),On=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),hu=(e,t)=>{var r;return Array.isArray(e)?(((r=e==null?void 0:e.find(n=>{var o;return((o=n==null?void 0:n.id)==null?void 0:o.toLowerCase())===t}))==null?void 0:r.value)??0)/100:0},gu=e=>{const t=e.reduce((o,i)=>{const a=Vn(i.price)?0:i.quantity;return o+a},0),r=e.reduce((o,i)=>o+i.price*i.quantity,0),n=e.reduce((o,i)=>o+i.listPrice*i.quantity,0);return{totalItems:t,total:r,subTotal:n}},yu=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(Vn(r==null?void 0:r.price)?0:r.quantity),0):0,Ua=e=>{const{items:t,itemMetadata:r,marketingData:n,messages:o,orderFormId:i,openTextField:a,paymentData:s,shippingData:u,totalizers:l}=e;return{id:i,itemMetadata:r,items:Array.isArray(t)?t.map(Ba):[],marketingData:n,messages:o,openTextField:a,paymentData:s,shippingData:u,totalizers:l}},Wa=(e,t)=>{const r=e.find(n=>n.id===t);return r?r.availability==="unavailableItemFulfillment":!1},_u=(e,t)=>{const r=e.sku,n=e.isVariantOf.hasVariant.find(o=>o.sku===r);return n?n.name.split(t)[1]:"--"},We=(e,t,r=!1)=>!e&&t!==""?{code:300,value:t,statusOk:r}:e===t?{code:200,value:t,statusOk:r}:{code:400,value:t,statusOk:r},vu=(e,t)=>{const r=new Set;return[e,...t].filter(n=>!r.has(n)&&r.add(n),r)},Ga=(e,t)=>t&&Array.isArray(t)&&t.find(n=>n.id===e)?Promise.resolve(e):Promise.resolve(!1),Va=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),Ka=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},Xa=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},Qa=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(n=>n.id===r.id)):[],Ya=async(e,t)=>e.then(r=>[...r??[],...t??[]]),Ee=async(e,t,r)=>{const{priority:n="auto",body:o}=t;return fetch(e,{headers:{"Content-Type":"application/json"},priority:n,method:"POST",body:JSON.stringify(o)}).then(async i=>{const a=await i.json();return r?a:Ua(a)})},Za=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),bu=e=>[...Array.isArray(e)?e:[e],"faststore"],xu=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:mu,addItemOrder:Ha,addNotification:Za,createItemOrder:Ba,fetchCartAPI:Ee,findItemIndex:On,findOptions:Qa,findTotalizerValue:hu,getCategories:qa,getCode:We,getQuantity:Xa,getRemoveId:Ga,getSize:_u,getTotalItems:yu,getTotalizer:gu,getValue:Va,initialState:Nn,isGift:Vn,marketingTagsBuilder:bu,mergeOptionsPromise:Ya,orderFormValues:Ua,promiseDefault:Pe,removeQuantity:za,updateItemSellerExternal:Wa,updateOrderFormPromise:Ka,updateQuantity:Fa,wishlistArray:vu},Symbol.toStringTag,{value:"Module"})),Cu=()=>{const e=async(d,f)=>Ee("/api/checkout/order-form/coupon",{body:{orderFormId:d,coupon:f}}),t=async(d,f)=>{if(f){const h=f.includes(" - ")?f.split(" - ")[0]:f,y=await Ee("/api/checkout/order-form/seller-code",{body:{orderFormId:d,sellerCode:h}},!0);return Ee("/api/checkout/order-form/attachments",{body:{orderFormId:d,sellerCode:h,sellerName:y instanceof Object&&"name"in y?y==null?void 0:y.name:""}}).then(g=>({...g,openTextField:{...(g==null?void 0:g.openTextField)??{},statusOk:(y==null?void 0:y.ativo)??!1}}))}else return Ee("/api/checkout/order-form/attachments",{body:{orderFormId:d,sellerCode:"",sellerName:""}})},r=async(d,f,h)=>Ee("/api/checkout/order-form/items",{body:{orderFormId:d,orderItems:Ha(f,h)}}),n=async(d,f,h,y)=>Ee("/api/checkout/order-form/offerings",{body:{id:f,itemIndex:h,orderFormId:d,remove:y}}),o=async d=>Ee("/api/checkout/order-form/items/remove-all",{body:{orderFormId:d}}),i=async(d,f="low")=>Ee("/api/checkout/order-form",{priority:f,body:{orderFormId:d??""}}),a=async(d,f)=>Ee("/api/checkout/order-form/profile",{body:{orderFormId:d,email:f}}),s=async(d,f,h)=>{const y=za(f,h);return Ee("/api/checkout/order-form/items/update",{body:{orderItems:y.updateItems,orderFormId:d}})},u=async(d,f,h)=>Ee("/api/checkout/order-form/shipping",{body:{orderFormId:d,country:h,postalCode:f}}),l=async(d,f,h)=>Ee("/api/checkout/order-form/shipping/update",{body:{orderFormId:d,options:f,selectedAddresses:h}}),p=async(d,f,h,y)=>{const g=Fa(f,h,y);return Ee("/api/checkout/order-form/items/update",{body:{orderFormId:d,orderItems:g}})};return{addCoupon:e,addItem:r,addSellerCode:t,giftItem:n,emptyCart:o,getOrderForm:i,insertProfileEmail:a,removeItem:s,shipping:u,shippingUpdate:l,updateItemQuantity:async(d,f,h,y,g)=>p(d,f,h,y).then(v=>v&&Array.isArray(v.items)?Wa(v.items,h)?p(d,f,h,g):v:!1)}},Tn="soma::cart",tt="soma::options",Ve=it.create((e,t)=>{const r=Cu(),n=async(o,i,a)=>{e({loading:!0});const s=await Ka(o);if(typeof s!="boolean"){e({...s});const u=await Ya(Fe.get(tt),a);return Fe.set(tt,u),Va(s,i).finally(()=>e({loading:!1,options:u}))}return Pe};if(typeof window<"u"){const o=async i=>{if(i){const a=await Fe.get(tt).then(l=>Qa(l,i.items));Fe.set(Tn,i),Fe.set(tt,a),e({...i,options:a});const s=new URLSearchParams(window.location.search),u=s.get("utm_campaign")||s.get("utmi_campaign")||"";u&&n(()=>r.addSellerCode(t().id,u.toUpperCase()),"openTextField")}};return Fe.get(Tn).then(i=>r.getOrderForm(i?i.id:"").then(o)),{...Nn,addCoupon:async i=>n(()=>r.addCoupon(t().id,i),"marketingData"),addItem:(i,a)=>{n(()=>r.addItem(t().id,t().items,i),"items",a)},addSellerCode:async i=>n(()=>r.addSellerCode(t().id,i),"openTextField"),emptyCart:()=>{n(()=>r.emptyCart(t().id))},removeItem:async i=>{const a=await n(()=>r.removeItem(t().id,t().items,i),"items");return Ga(i,a)},shipping:async(i,a="BR")=>n(()=>r.shipping(t().id,i,a),"shippingData"),shippingUpdate:async i=>n(()=>{var a;return r.shippingUpdate(t().id,i,(a=t().shippingData)==null?void 0:a.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(i,a,s)=>n(()=>r.giftItem(t().id,i,a,s),"items"),updateItemQuantity:async(i,a,s)=>{const{id:u,items:l}=t();return n(()=>{var p;return r.updateItemQuantity(u,l,i,a,((p=l.find(m=>m.id===i))==null?void 0:p.quantity)??1)},"items",s?[s]:void 0)},insertProfileEmail:async i=>n(()=>r.insertProfileEmail(t().id,i),"clientProfileData"),setIsOpen:i=>e({isOpen:i})}}return Nn}),Su=()=>Ve(e=>e),Ja=it.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(n=>Za(n,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(n=>n.id!==t)}))}})),es=()=>Ja(e=>e.notifications),ts=()=>Ja(e=>e.actions),Au=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:tt,KEY_INDEXED_STORE:Tn,useCartStore:Ve,useGetCartStoreState:Su,useGetNotificationActions:ts,useGetNotificationsStore:es},Symbol.toStringTag,{value:"Module"})),Ru=6e3,rs=B.createContext({}),ns=({children:e,...t})=>{const{items:r}=Ve(),[n,o]=B.useState([]),i=B.useRef(null),a=B.useMemo(()=>Array.isArray(n)&&n.length>0?n.map(s=>r.find(u=>u.id===s.id)).filter(s=>s!==void 0):[],[r,n]);return B.useEffect(()=>{n.length&&(clearTimeout(i.current??0),i.current=setTimeout(()=>{o([])},Ru))},[n]),c.jsx(rs.Provider,{value:B.useMemo(()=>({...t,setRecentlyAdded:o,recentlyAddedProducts:a}),[t,o,a]),children:e})},at=()=>{const e=B.useContext(rs);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class os{constructor(){Ut(this,"events",{});Ut(this,"prevData",{})}subscribe(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),()=>{this.events[t]=this.events[t].filter(n=>n!==r)}}publish(t,r){this.events[t]&&this.events[t].forEach(n=>{this.prevData[t]=r,n(r)})}}const is=B.createContext({}),Eu=({children:e,headerConfigs:t,pathname:r,...n})=>{const[o,i]=B.useState(!0),a=r==="/",s=B.useRef(new os),u=m=>m?{headerVariant:t.home_default_variant,bannerVariant:t.home_default_variant,position:t.home_default_position}:{headerVariant:t.default_variant,bannerVariant:t.default_variant,position:t.default_position},l=u(a),p=B.useRef(l);return B.useEffect(()=>{const m=()=>{const d=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,f=window.innerWidth<1024||!!d.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);o!==f&&i(f)};return m(),window.addEventListener("resize",m,{passive:!0}),()=>window.removeEventListener("resize",m)},[o]),B.useEffect(()=>{const m=u(a);s.current.publish("header:change_variant",m.headerVariant),s.current.publish("header:change_position",m.position),p.current=m},[a]),c.jsx(is.Provider,{value:{isMobile:o,mediatorRef:s,currentHeaderConfigsRef:p,...n},children:c.jsx(ns,{children:e})})},ke=()=>B.useContext(is),as=B.createContext({}),wu=({children:e,...t})=>c.jsx(as.Provider,{value:{...t},children:e}),Ne=()=>B.useContext(as),Be=(e,t)=>it.create(r=>{const n=()=>r({value:e});return t&&t instanceof Set&&t.add(n),{value:e,actions:{setValue:o=>r({value:o}),reset:n}}}),ot={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},st=new Set,ju=()=>{st.forEach(e=>{e()})},ss=it.create((e,t)=>{const r=()=>e({value:ot.category});return st.add(r),{value:ot.category,actions:{reset:r,setValue:n=>e(()=>({value:n})),updateValue:n=>{t().value!==n&&e({value:n})}}}}),Lt=()=>ss(e=>e.value),De=()=>ss(e=>e.actions),cs=Be(ot.menuMobileIsOpen,st),Kn=()=>cs(e=>e.value),He=()=>cs(e=>e.actions),us=Be(ot.searchModalIsOpen,st),Iu=()=>us(e=>e.value),Xn=()=>us(e=>e.actions),ls=Be(ot.userMenuIsOpen,st),Pu=()=>ls(e=>e.value),Qn=()=>ls(e=>e.actions),Nu=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:ju,useActionsHeaderCategory:De,useActionsMenuMobileIsOpen:He,useActionsSearchModalIsOpen:Xn,useActionsUserMenuIsOpen:Qn,useGetHeaderCategoryStore:Lt,useGetMenuMobileIsOpen:Kn,useGetSearchModalIsOpen:Iu,useGetUserMenuIsOpen:Pu},Symbol.toStringTag,{value:"Module"})),Ke={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},Qe=new Set,Ou=()=>{Qe.forEach(e=>{e()})},ds=it.create(e=>{const t=()=>e({value:Ke.selectedSkuInfo});return Qe.add(t),{value:Ke.selectedSkuInfo,actions:{setValue:r=>e(n=>({value:{...n,...r}})),reset:t}}}),Tu=()=>ds(e=>e.value),Mu=()=>ds(e=>e.actions),fs=Be(Ke.openLetMeKnow,Qe),ku=()=>fs(e=>e.value),Lu=()=>fs(e=>e.actions),ps=Be(Ke.showNotify,Qe),Du=()=>ps(e=>e.value),$u=()=>ps(e=>e.actions),ms=Be(Ke.showBottomNavigation,Qe),qu=()=>ms(e=>e.value),Bu=()=>ms(e=>e.actions),hs=Be(Ke.openMeasurements,Qe),Hu=()=>hs(e=>e.value),zu=()=>hs(e=>e.actions),Fu=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:Ou,useActionsPDPOpenLetMeKnow:Lu,useActionsPDPOpenMeasurements:zu,useActionsPDPSelectedSkuInfo:Mu,useActionsPDPShowBottomNavigation:Bu,useActionsPDPShowNotify:$u,useGetPDPOpenLetMeKnow:ku,useGetPDPOpenMeasurements:Hu,useGetPDPSelectedSkuInfo:Tu,useGetPDPShowBottomNavigation:qu,useGetPDPShowNotify:Du},Symbol.toStringTag,{value:"Module"})),gs=B.createContext({}),Uu=({children:e,headerData:t,...r})=>{var u,l;const n=B.useRef(null),o=B.useRef(null),i=B.useRef(null),{mediatorRef:a,currentHeaderConfigsRef:s}=ke();return(u=a.current)==null||u.subscribe("header:change_variant",p=>{var y,g,v;if(p&&s.current&&(s.current.bannerVariant=p),!n.current)return;const d=document.body.scrollTop>0,f=n.current.getAttribute("data-interactiveVariant"),h=d?f:p??((y=s.current)==null?void 0:y.bannerVariant)??"default";h!==((g=s.current)==null?void 0:g.headerVariant)&&(n.current.setAttribute("data-bottomdivider",String(d)),n.current.setAttribute("data-variant",String(h)),(v=a.current)==null||v.publish("herobanner:change_controllers_variant",h),s.current&&(s.current.headerVariant=h))}),(l=a.current)==null||l.subscribe("header:change_position",p=>{n.current&&(n.current.style.position=p)}),B.useEffect(()=>{const p=new AbortController,m=b.helpers.throttle(()=>{var f;return(f=a.current)==null?void 0:f.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",m,{passive:!0,signal:p.signal});const d=f=>{var y;(y=f.target.closest("a"))==null||y.blur()};return n.current&&(n.current.addEventListener("click",d,{signal:p.signal}),n.current.addEventListener("touchend",d,{signal:p.signal})),()=>{p.abort()}},[]),c.jsx(gs.Provider,{value:{headerData:t,structureRef:o,rootRef:n,tipbarRef:i,...r},children:e})},xe=()=>B.useContext(gs),ys=B.createContext({}),_s=({children:e})=>{const t=B.useRef(null),r=B.useRef(null),n=Kn(),o=B.useCallback(()=>{var i;{const a=(i=t.current)==null?void 0:i.querySelector("dialog");if(a){a.dataset.animation="out";const s=a.children[0];s.dataset.animation="out"}}},[]);return B.useEffect(()=>{var i;if(n)document.body.dataset.modalopen="true";else{document.body.dataset.modalopen="false";const a=(i=r.current)==null?void 0:i.querySelector("dialog");if(a){a.dataset.animation="out";const s=a.children[0];s.dataset.animation="out"}}},[n]),B.useEffect(()=>{r.current=document.body},[]),c.jsx(ys.Provider,{value:{bodyRef:t,handleCloseSubMenu:o,documentBodyRef:r},children:e})},ct=()=>B.useContext(ys),Wu=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Gu=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const n=t.getBoundingClientRect(),o=e.getBoundingClientRect(),i=e!=null&&e.parentElement?Wu(e==null?void 0:e.parentElement):0;return{left:n.left+n.width/2-(o.width+i),top:n.top+n.height+r}},vs=B.createContext({}),bs=({children:e,delay:t=600,gap:r=20,...n})=>{const[o,i]=B.useState(!1),a=B.useRef(null),[s,u]=B.useState(!1),[l,p]=B.useState({left:0,top:0}),m=B.useCallback(()=>{u(!0),typeof window<"u"&&(a.current=window.setTimeout(()=>{i(!1),u(!1)},t))},[u,i,t]);return B.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),f=window.document.querySelector("#add-to-cart--tooltip");if(d&&f){const{left:h,top:y}=Gu(f,d,r??0);p({left:h,top:y}),u(!1)}},[r,o]),c.jsx(vs.Provider,{value:B.useMemo(()=>({...n,...l,handleClose:m,isLeaving:s,isOpen:o,setIsOpen:i,setIsLeaving:u}),[n,l,m,s,o,i,u]),children:e})},ze=()=>{const e=B.useContext(vs);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},xs=B.createContext({}),Vu=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const n=Ve(),{setRecentlyAdded:o}=at(),i=es(),{addNotification:a,removeNotification:s}=ts(),{addCoupon:u,addItem:l,addSellerCode:p,emptyCart:m,isOpen:d,removeItem:f,shipping:h,shippingUpdate:y,toggleServiceToProduct:g,updateItemQuantity:v}=n,R=B.useCallback(async(j,k)=>(k==="coupon"?u(j):p(j)).then(q=>{if(typeof q!="boolean"&&q instanceof Object){if(k==="seller"&&"value"in q){const{statusOk:z,value:G}=q,Y=String(G??"").split(" - ");return We((Y==null?void 0:Y[0])??"",j,!!z)}return We(String(q.coupon),j,!0)}return We("","")}).catch(()=>Promise.resolve({code:400})),[u,p]),_=B.useCallback((j,k,P)=>{const{id:q}=j;v(q,k,P)},[v]),S=B.useCallback((j,k,P=!1)=>{if(!j)return;const{id:q}=j,z=On(n.items,q);if(z!==-1&&!P){const G=Number(n.items[z].quantity),Y=n.items[z]?G+1:1;_(j,Y,k)}else l({id:q,quantity:(j==null?void 0:j.quantity)??1,seller:j.seller});d||o(G=>[...G,j])},[l,_,n.items,d,o]),C=B.useCallback((j,k)=>{if(!j||!Array.isArray(j))return;o(q=>[...q,...j]);const P=j.map(q=>{const{id:z,quantity:G,seller:Y}=q,V=On(n.items,z),F=Xa(G??1,V);return{id:z,quantity:F,seller:Y}});l(P,k)},[l,n.items,o]),w=B.useCallback(async(j,k,P)=>j?f(j).then(()=>(a(k??`${t}`,P),We(j,j))):Promise.resolve(We("","Product id required")),[a,f]),x=B.useCallback(()=>{n.items.length>0&&m()},[m,n.items]),I=B.useCallback((j,k="BRA")=>h(j,k),[h]),$=B.useCallback(j=>{j&&y(j)},[y]),A=B.useCallback(async(j,k,P)=>{const q=n.items.findIndex(G=>G.id===j);return n.items[q]&&q>=0?g(k,q,P??!1):!1},[n.items,g]),N=B.useCallback(async(j,k)=>v(j,k).then(P=>{if(Array.isArray(P)){const q=P.find(z=>z.id===j);if(q&&(q==null?void 0:q.quantity)<k)return String(q.quantity)}return!1}),[v]);return c.jsx(xs.Provider,{value:B.useMemo(()=>({...r,addCouponSeller:R,addToCart:S,addItemsToCart:C,cartStore:n,notifications:i,clearCart:x,addNotification:a,isOpen:n.isOpen,removeNotification:s,removeToCart:w,setIsOpen:n.setIsOpen,shipping:I,shippingUpdateOption:$,toggleGiftItemCart:A,updateItemQuantity:N}),[r,R,S,C,i,x,a,n,s,w,I,$,A,N]),children:e})},Ye=()=>{const e=B.useContext(xs);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},Ku={contexts:{addToCart:{hook:ze,provider:bs},cart:{hook:Ye,provider:Vu},cms:{FlagsAndTags:{context:Un,hook:va,provider:Jc}},events:{hook:ge,provider:fu},global:{hook:ke,provider:Eu,mediator:os},header:{hook:xe,provider:Uu},menuMobile:{hook:ct,provider:_s},next:{hook:Ne,provider:wu},pdp:{provider:eu,hook:tu},pdpdata:{hook:Gn,provider:pu},ui:{hook:at,provider:ns}},hooks:{useBackPDC:ba},stores:{cart:Au,header:Nu,pdp:Fu}};function Cs(e){const r=decodeURIComponent(window.document.cookie).split(";");for(const n of r){const[o,i]=n.trim().split("=");if(o===e)return i}}function Ss(e,t,r={}){const o={...{path:"/",expires:new Date(Date.now()+36e5)},...r};let i=`${encodeURIComponent(e)}=${encodeURIComponent(t??"")}`;for(const a in o)o[a]!==void 0&&(i+=`; ${a}`,a==="expires"?i+=`=${o[a].toUTCString()}`:typeof o[a]=="boolean"?i+=`; ${o[a]?"true":"false"}`:i+=`=${o[a]}`);window.document.cookie=i}const Xu=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function Qu(e,t=1e3){let r=!1;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>{r=!1},t))}}function Yu(e,t=1e3){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}const As=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,rt=(e,t)=>Math.floor(t==="days"?e/(1e3*60*60*24):t==="hours"?e%(1e3*60*60*24)/(1e3*60*60):t==="minutes"?e%(1e3*60*60)/(1e3*60):e%(1e3*60)/1e3),Zu=Object.freeze(Object.defineProperty({__proto__:null,debounce:Yu,getCookie:Cs,getDaysHoursMinutesSeconds:rt,getMilliSeconds:As,removeAccentsAndReplaceSpaces:Xu,setCookie:Ss,throttle:Qu},Symbol.toStringTag,{value:"Module"})),Ju={cart:xu,events:du,product:iu,utils:Zu},Rs={helpers:Ju};var Es=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Dt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function el(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Mn={exports:{}},Re={};Re._=Re._interop_require_default=tl;function tl(e){return e&&e.__esModule?e:{default:e}}var yt={exports:{}},Wt={},ho;function ws(){return ho||(ho=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,s){for(var u in s)Object.defineProperty(a,u,{enumerable:!0,get:s[u]})}t(e,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o},assign:function(){return i}});function r(a){const s={};return a.forEach((u,l)=>{typeof s[l]>"u"?s[l]=u:Array.isArray(s[l])?s[l].push(u):s[l]=[s[l],u]}),s}function n(a){return typeof a=="string"||typeof a=="number"&&!isNaN(a)||typeof a=="boolean"?String(a):""}function o(a){const s=new URLSearchParams;return Object.entries(a).forEach(u=>{let[l,p]=u;Array.isArray(p)?p.forEach(m=>s.append(l,n(m))):s.set(l,n(p))}),s}function i(a){for(var s=arguments.length,u=new Array(s>1?s-1:0),l=1;l<s;l++)u[l-1]=arguments[l];return u.forEach(p=>{Array.from(p.keys()).forEach(m=>a.delete(m)),p.forEach((m,d)=>a.append(d,m))}),a}}(Wt)),Wt}var Gt={},Xe={};function js(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(js=function(n){return n?r:t})(e)}Xe._=Xe._interop_require_wildcard=rl;function rl(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=js(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}var go;function Is(){return go||(go=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,l){for(var p in l)Object.defineProperty(u,p,{enumerable:!0,get:l[p]})}t(e,{formatUrl:function(){return i},urlObjectKeys:function(){return a},formatWithValidation:function(){return s}});const n=Xe._(ws()),o=/https?|ftp|gopher|file/;function i(u){let{auth:l,hostname:p}=u,m=u.protocol||"",d=u.pathname||"",f=u.hash||"",h=u.query||"",y=!1;l=l?encodeURIComponent(l).replace(/%3A/i,":")+"@":"",u.host?y=l+u.host:p&&(y=l+(~p.indexOf(":")?"["+p+"]":p),u.port&&(y+=":"+u.port)),h&&typeof h=="object"&&(h=String(n.urlQueryToSearchParams(h)));let g=u.search||h&&"?"+h||"";return m&&!m.endsWith(":")&&(m+=":"),u.slashes||(!m||o.test(m))&&y!==!1?(y="//"+(y||""),d&&d[0]!=="/"&&(d="/"+d)):y||(y=""),f&&f[0]!=="#"&&(f="#"+f),g&&g[0]!=="?"&&(g="?"+g),d=d.replace(/[?#]/g,encodeURIComponent),g=g.replace("#","%23"),""+m+y+d+g+f}const a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(u){return process.env.NODE_ENV==="development"&&u!==null&&typeof u=="object"&&Object.keys(u).forEach(l=>{a.includes(l)||console.warn("Unknown key passed via urlObject into url.format: "+l)}),i(u)}}(Gt)),Gt}var Vt={},yo;function nl(){return yo||(yo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(r,n){const o={};return Object.keys(r).forEach(i=>{n.includes(i)||(o[i]=r[i])}),o}}(Vt)),Vt}var Kt={},_o;function $t(){return _o||(_o=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,C){for(var w in C)Object.defineProperty(S,w,{enumerable:!0,get:C[w]})}t(e,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return i},getLocationOrigin:function(){return a},getURL:function(){return s},getDisplayName:function(){return u},isResSent:function(){return l},normalizeRepeatedSlashes:function(){return p},loadGetInitialProps:function(){return m},SP:function(){return d},ST:function(){return f},DecodeError:function(){return h},NormalizeError:function(){return y},PageNotFoundError:function(){return g},MissingStaticPage:function(){return v},MiddlewareNotFoundError:function(){return R},stringifyError:function(){return _}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(S){let C=!1,w;return function(){for(var x=arguments.length,I=new Array(x),$=0;$<x;$++)I[$]=arguments[$];return C||(C=!0,w=S(...I)),w}}const o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=S=>o.test(S);function a(){const{protocol:S,hostname:C,port:w}=window.location;return S+"//"+C+(w?":"+w:"")}function s(){const{href:S}=window.location,C=a();return S.substring(C.length)}function u(S){return typeof S=="string"?S:S.displayName||S.name||"Unknown"}function l(S){return S.finished||S.headersSent}function p(S){const C=S.split("?");return C[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(C[1]?"?"+C.slice(1).join("?"):"")}async function m(S,C){if(process.env.NODE_ENV!=="production"){var w;if((w=S.prototype)!=null&&w.getInitialProps){const $='"'+u(S)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error($)}}const x=C.res||C.ctx&&C.ctx.res;if(!S.getInitialProps)return C.ctx&&C.Component?{pageProps:await m(C.Component,C.ctx)}:{};const I=await S.getInitialProps(C);if(x&&l(x))return I;if(!I){const $='"'+u(S)+'.getInitialProps()" should resolve to an object. But found "'+I+'" instead.';throw new Error($)}return process.env.NODE_ENV!=="production"&&Object.keys(I).length===0&&!C.ctx&&console.warn(""+u(S)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),I}const d=typeof performance<"u",f=d&&["mark","measure","getEntriesByName"].every(S=>typeof performance[S]=="function");class h extends Error{}class y extends Error{}class g extends Error{constructor(C){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+C}}class v extends Error{constructor(C,w){super(),this.message="Failed to load static file for page: "+C+" "+w}}class R extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function _(S){return JSON.stringify({message:S.message,stack:S.stack})}}(Kt)),Kt}var _t={exports:{}},Xt={},vo;function Ps(){return vo||(vo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}});function t(r){return r.replace(/\/$/,"")||"/"}}(Xt)),Xt}var Qt={},bo;function Yn(){return bo||(bo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(r){const n=r.indexOf("#"),o=r.indexOf("?"),i=o>-1&&(n<0||o<n);return i||n>-1?{pathname:r.substring(0,i?o:n),query:i?r.substring(o,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}}(Qt)),Qt}var xo;function qt(){return xo||(xo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const r=Ps(),n=Yn(),o=i=>{if(!i.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return i;const{pathname:a,query:s,hash:u}=(0,n.parsePath)(i);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(a)?""+(0,r.removeTrailingSlash)(a)+s+u:a.endsWith("/")?""+a+s+u:a+"/"+s+u:""+(0,r.removeTrailingSlash)(a)+s+u};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(_t,_t.exports)),_t.exports}var Yt={},vt={exports:{}},Zt={},Co;function Ns(){return Co||(Co=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=Yn();function r(n,o){if(typeof n!="string")return!1;const{pathname:i}=(0,t.parsePath)(n);return i===o||i.startsWith(o+"/")}}(Zt)),Zt}var So;function ol(){return So||(So=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});const r=Ns(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i){return(0,r.pathHasPrefix)(i,n)}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(vt,vt.exports)),vt.exports}var Ao;function Os(){return Ao||(Ao=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=$t(),r=ol();function n(o){if(!(0,t.isAbsoluteUrl)(o))return!0;try{const i=(0,t.getLocationOrigin)(),a=new URL(o,i);return a.origin===i&&(0,r.hasBasePath)(a.pathname)}catch{return!1}}}(Yt)),Yt}var Jt={},er={},Ro;function il(){return Ro||(Ro=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class t{insert(o){this._insert(o.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(o){o===void 0&&(o="/");const i=[...this.children.keys()].sort();this.slugName!==null&&i.splice(i.indexOf("[]"),1),this.restSlugName!==null&&i.splice(i.indexOf("[...]"),1),this.optionalRestSlugName!==null&&i.splice(i.indexOf("[[...]]"),1);const a=i.map(s=>this.children.get(s)._smoosh(""+o+s+"/")).reduce((s,u)=>[...s,...u],[]);if(this.slugName!==null&&a.push(...this.children.get("[]")._smoosh(o+"["+this.slugName+"]/")),!this.placeholder){const s=o==="/"?"/":o.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+s+'" and "'+s+"[[..."+this.optionalRestSlugName+']]").');a.unshift(s)}return this.restSlugName!==null&&a.push(...this.children.get("[...]")._smoosh(o+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&a.push(...this.children.get("[[...]]")._smoosh(o+"[[..."+this.optionalRestSlugName+"]]/")),a}_insert(o,i,a){if(o.length===0){this.placeholder=!1;return}if(a)throw new Error("Catch-all must be the last part of the URL.");let s=o[0];if(s.startsWith("[")&&s.endsWith("]")){let p=function(m,d){if(m!==null&&m!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+m+"' !== '"+d+"').");i.forEach(f=>{if(f===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(f.replace(/\W/g,"")===s.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+f+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),i.push(d)},u=s.slice(1,-1),l=!1;if(u.startsWith("[")&&u.endsWith("]")&&(u=u.slice(1,-1),l=!0),u.startsWith("...")&&(u=u.substring(3),a=!0),u.startsWith("[")||u.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+u+"').");if(u.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+u+"').");if(a)if(l){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+o[0]+'" ).');p(this.optionalRestSlugName,u),this.optionalRestSlugName=u,s="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+o[0]+'").');p(this.restSlugName,u),this.restSlugName=u,s="[...]"}else{if(l)throw new Error('Optional route parameters are not yet supported ("'+o[0]+'").');p(this.slugName,u),this.slugName=u,s="[]"}}this.children.has(s)||this.children.set(s,new t),this.children.get(s)._insert(o.slice(1),i,a)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(n){const o=new t;return n.forEach(i=>o.insert(i)),o.smoosh()}}(er)),er}var tr={},Eo;function al(){return Eo||(Eo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return r}});const t=/\/\[[^/]+?\](?=\/|$)/;function r(n){return t.test(n)}}(tr)),tr}var wo;function sl(){return wo||(wo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,i){for(var a in i)Object.defineProperty(o,a,{enumerable:!0,get:i[a]})}t(e,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=il(),n=al()}(Jt)),Jt}var rr={},nr={},jo;function cl(){return jo||(jo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=$t();function r(n){let{re:o,groups:i}=n;return a=>{const s=o.exec(a);if(!s)return!1;const u=p=>{try{return decodeURIComponent(p)}catch{throw new t.DecodeError("failed to decode param")}},l={};return Object.keys(i).forEach(p=>{const m=i[p],d=s[m.pos];d!==void 0&&(l[p]=~d.indexOf("/")?d.split("/").map(f=>u(f)):m.repeat?[u(d)]:u(d))}),l}}}(nr)),nr}var or={},ir={},ar={},sr={},Io;function ul(){return Io||(Io=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureLeadingSlash",{enumerable:!0,get:function(){return t}});function t(r){return r.startsWith("/")?r:"/"+r}}(sr)),sr}var cr={},Po;function ll(){return Po||(Po=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isGroupSegment",{enumerable:!0,get:function(){return t}});function t(r){return r[0]==="("&&r.endsWith(")")}}(cr)),cr}var No;function dl(){return No||(No=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,s){for(var u in s)Object.defineProperty(a,u,{enumerable:!0,get:s[u]})}t(e,{normalizeAppPath:function(){return o},normalizeRscPath:function(){return i}});const r=ul(),n=ll();function o(a){return(0,r.ensureLeadingSlash)(a.split("/").reduce((s,u,l,p)=>!u||(0,n.isGroupSegment)(u)||u[0]==="@"||(u==="page"||u==="route")&&l===p.length-1?s:s+"/"+u,""))}function i(a,s){return s?a.replace(/\.rsc($|\?)/,"$1"):a}}(ar)),ar}var Oo;function fl(){return Oo||(Oo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,s){for(var u in s)Object.defineProperty(a,u,{enumerable:!0,get:s[u]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return n},isInterceptionRouteAppPath:function(){return o},extractInterceptionRouteInformation:function(){return i}});const r=dl(),n=["(..)(..)","(.)","(..)","(...)"];function o(a){return a.split("/").find(s=>n.find(u=>s.startsWith(u)))!==void 0}function i(a){let s,u,l;for(const p of a.split("/"))if(u=n.find(m=>p.startsWith(m)),u){[s,l]=a.split(u,2);break}if(!s||!u||!l)throw new Error(`Invalid interception route: ${a}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(s=(0,r.normalizeAppPath)(s),u){case"(.)":s==="/"?l=`/${l}`:l=s+"/"+l;break;case"(..)":if(s==="/")throw new Error(`Invalid interception route: ${a}. Cannot use (..) marker at the root level, use (.) instead.`);l=s.split("/").slice(0,-1).concat(l).join("/");break;case"(...)":l="/"+l;break;case"(..)(..)":const p=s.split("/");if(p.length<=2)throw new Error(`Invalid interception route: ${a}. Cannot use (..)(..) marker at the root level or one level up.`);l=p.slice(0,-2).concat(l).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:s,interceptedRoute:l}}}(ir)),ir}var ur={},To;function pl(){return To||(To=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return n}});const t=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function n(o){return t.test(o)?o.replace(r,"\\$&"):o}}(ur)),ur}var Mo;function ml(){return Mo||(Mo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,g){for(var v in g)Object.defineProperty(y,v,{enumerable:!0,get:g[v]})}t(e,{getRouteRegex:function(){return l},getNamedRouteRegex:function(){return f},getNamedMiddlewareRegex:function(){return h}});const r=fl(),n=pl(),o=Ps(),i="nxtP",a="nxtI";function s(y){const g=y.startsWith("[")&&y.endsWith("]");g&&(y=y.slice(1,-1));const v=y.startsWith("...");return v&&(y=y.slice(3)),{key:y,repeat:v,optional:g}}function u(y){const g=(0,o.removeTrailingSlash)(y).slice(1).split("/"),v={};let R=1;return{parameterizedRoute:g.map(_=>{const S=r.INTERCEPTION_ROUTE_MARKERS.find(w=>_.startsWith(w)),C=_.match(/\[((?:\[.*\])|.+)\]/);if(S&&C){const{key:w,optional:x,repeat:I}=s(C[1]);return v[w]={pos:R++,repeat:I,optional:x},"/"+(0,n.escapeStringRegexp)(S)+"([^/]+?)"}else if(C){const{key:w,repeat:x,optional:I}=s(C[1]);return v[w]={pos:R++,repeat:x,optional:I},x?I?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,n.escapeStringRegexp)(_)}).join(""),groups:v}}function l(y){const{parameterizedRoute:g,groups:v}=u(y);return{re:new RegExp("^"+g+"(?:/)?$"),groups:v}}function p(){let y=0;return()=>{let g="",v=++y;for(;v>0;)g+=String.fromCharCode(97+(v-1)%26),v=Math.floor((v-1)/26);return g}}function m(y){let{getSafeRouteKey:g,segment:v,routeKeys:R,keyPrefix:_}=y;const{key:S,optional:C,repeat:w}=s(v);let x=S.replace(/\W/g,"");_&&(x=""+_+x);let I=!1;return(x.length===0||x.length>30)&&(I=!0),isNaN(parseInt(x.slice(0,1)))||(I=!0),I&&(x=g()),_?R[x]=""+_+S:R[x]=""+S,w?C?"(?:/(?<"+x+">.+?))?":"/(?<"+x+">.+?)":"/(?<"+x+">[^/]+?)"}function d(y,g){const v=(0,o.removeTrailingSlash)(y).slice(1).split("/"),R=p(),_={};return{namedParameterizedRoute:v.map(S=>{const C=r.INTERCEPTION_ROUTE_MARKERS.some(x=>S.startsWith(x)),w=S.match(/\[((?:\[.*\])|.+)\]/);return C&&w?m({getSafeRouteKey:R,segment:w[1],routeKeys:_,keyPrefix:g?a:void 0}):w?m({getSafeRouteKey:R,segment:w[1],routeKeys:_,keyPrefix:g?i:void 0}):"/"+(0,n.escapeStringRegexp)(S)}).join(""),routeKeys:_}}function f(y,g){const v=d(y,g);return{...l(y),namedRegex:"^"+v.namedParameterizedRoute+"(?:/)?$",routeKeys:v.routeKeys}}function h(y,g){const{parameterizedRoute:v}=u(y),{catchAll:R=!0}=g;if(v==="/")return{namedRegex:"^/"+(R?".*":"")+"$"};const{namedParameterizedRoute:_}=d(y,!1);let S=R?"(?:(/.*)?)":"";return{namedRegex:"^"+_+S+"$"}}}(or)),or}var ko;function hl(){return ko||(ko=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=cl(),r=ml();function n(o,i,a){let s="";const u=(0,r.getRouteRegex)(o),l=u.groups,p=(i!==o?(0,t.getRouteMatcher)(u)(i):"")||a;s=o;const m=Object.keys(l);return m.every(d=>{let f=p[d]||"";const{repeat:h,optional:y}=l[d];let g="["+(h?"...":"")+d+"]";return y&&(g=(f?"":"/")+"["+g+"]"),h&&!Array.isArray(f)&&(f=[f]),(y||d in p)&&(s=s.replace(g,h?f.map(v=>encodeURIComponent(v)).join("/"):encodeURIComponent(f))||"/")})||(s=""),{params:m,result:s}}}(rr)),rr}var Lo;function gl(){return Lo||(Lo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return p}});const r=ws(),n=Is(),o=nl(),i=$t(),a=qt(),s=Os(),u=sl(),l=hl();function p(m,d,f){let h,y=typeof d=="string"?d:(0,n.formatWithValidation)(d);const g=y.match(/^[a-zA-Z]{1,}:\/\//),v=g?y.slice(g[0].length):y;if((v.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+y+"' passed to next/router in page: '"+m.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const _=(0,i.normalizeRepeatedSlashes)(v);y=(g?g[0]:"")+_}if(!(0,s.isLocalURL)(y))return f?[y]:y;try{h=new URL(y.startsWith("#")?m.asPath:m.pathname,"http://n")}catch{h=new URL("/","http://n")}try{const _=new URL(y,h);_.pathname=(0,a.normalizePathTrailingSlash)(_.pathname);let S="";if((0,u.isDynamicRoute)(_.pathname)&&_.searchParams&&f){const w=(0,r.searchParamsToUrlQuery)(_.searchParams),{result:x,params:I}=(0,l.interpolateAs)(_.pathname,_.pathname,w);x&&(S=(0,n.formatWithValidation)({pathname:x,hash:_.hash,query:(0,o.omit)(w,I)}))}const C=_.origin===h.origin?_.href.slice(_.origin.length):_.href;return f?[C,S||C]:C}catch{return f?[y]:y}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(yt,yt.exports)),yt.exports}var bt={exports:{}},lr={},dr={},Do;function Ts(){return Do||(Do=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=Yn();function r(n,o){if(!n.startsWith("/")||!o)return n;const{pathname:i,query:a,hash:s}=(0,t.parsePath)(n);return""+o+i+a+s}}(dr)),dr}var $o;function yl(){return $o||($o=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=Ts(),r=Ns();function n(o,i,a,s){if(!i||i===a)return o;const u=o.toLowerCase();return!s&&((0,r.pathHasPrefix)(u,"/api")||(0,r.pathHasPrefix)(u,"/"+i.toLowerCase()))?o:(0,t.addPathPrefix)(o,"/"+i)}}(lr)),lr}var qo;function _l(){return qo||(qo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=qt(),n=function(o){for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(yl().addLocale(o,...a)):o};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(bt,bt.exports)),bt.exports}var fr={},Bo;function Ms(){return Bo||(Bo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=Re._(B).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(fr)),fr}var pr={},Ho;function vl(){return Ho||(Ho=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(l,p){for(var m in p)Object.defineProperty(l,m,{enumerable:!0,get:p[m]})}t(e,{CacheStates:function(){return o},AppRouterContext:function(){return i},LayoutRouterContext:function(){return a},GlobalLayoutRouterContext:function(){return s},TemplateContext:function(){return u}});const n=Re._(B);var o;(function(l){l.LAZY_INITIALIZED="LAZYINITIALIZED",l.DATA_FETCH="DATAFETCH",l.READY="READY"})(o||(o={}));const i=n.default.createContext(null),a=n.default.createContext(null),s=n.default.createContext(null),u=n.default.createContext(null);process.env.NODE_ENV!=="production"&&(i.displayName="AppRouterContext",a.displayName="LayoutRouterContext",s.displayName="GlobalLayoutRouterContext",u.displayName="TemplateContext")}(pr)),pr}var xt={exports:{}},Ct={exports:{}},zo;function ks(){return zo||(zo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(i,a){for(var s in a)Object.defineProperty(i,s,{enumerable:!0,get:a[s]})}r(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return o}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(i){let a=Date.now();return self.setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-a))}})},1)},o=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(i){return clearTimeout(i)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ct,Ct.exports)),Ct.exports}var Fo;function bl(){return Fo||(Fo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});const r=B,n=ks(),o=typeof IntersectionObserver=="function",i=new Map,a=[];function s(p){const m={root:p.root||null,margin:p.rootMargin||""},d=a.find(g=>g.root===m.root&&g.margin===m.margin);let f;if(d&&(f=i.get(d),f))return f;const h=new Map,y=new IntersectionObserver(g=>{g.forEach(v=>{const R=h.get(v.target),_=v.isIntersecting||v.intersectionRatio>0;R&&_&&R(_)})},p);return f={id:m,observer:y,elements:h},a.push(m),i.set(m,f),f}function u(p,m,d){const{id:f,observer:h,elements:y}=s(d);return y.set(p,m),h.observe(p),function(){if(y.delete(p),h.unobserve(p),y.size===0){h.disconnect(),i.delete(f);const v=a.findIndex(R=>R.root===f.root&&R.margin===f.margin);v>-1&&a.splice(v,1)}}}function l(p){let{rootRef:m,rootMargin:d,disabled:f}=p;const h=f||!o,[y,g]=(0,r.useState)(!1),v=(0,r.useRef)(null),R=(0,r.useCallback)(S=>{v.current=S},[]);(0,r.useEffect)(()=>{if(o){if(h||y)return;const S=v.current;if(S&&S.tagName)return u(S,w=>w&&g(w),{root:m==null?void 0:m.current,rootMargin:d})}else if(!y){const S=(0,n.requestIdleCallback)(()=>g(!0));return()=>(0,n.cancelIdleCallback)(S)}},[h,d,m,y,v.current]);const _=(0,r.useCallback)(()=>{g(!1)},[]);return[R,y,_]}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(xt,xt.exports)),xt.exports}var St={exports:{}},At={exports:{}},mr={},Uo;function xl(){return Uo||(Uo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(r,n){let o;const i=r.split("/");return(n||[]).some(a=>i[1]&&i[1].toLowerCase()===a.toLowerCase()?(o=a,i.splice(1,1),r=i.join("/")||"/",!0):!1),{pathname:r,detectedLocale:o}}}(mr)),mr}var Wo;function Cl(){return Wo||(Wo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(n,o)=>process.env.__NEXT_I18N_SUPPORT?xl().normalizeLocalePath(n,o):{pathname:n,detectedLocale:void 0};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(At,At.exports)),At.exports}var Rt={exports:{}},hr={},Go;function Sl(){return Go||(Go=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,n,o){if(r){o&&(o=o.toLowerCase());for(const s of r){var i,a;const u=(i=s.domain)==null?void 0:i.split(":")[0].toLowerCase();if(n===u||o===s.defaultLocale.toLowerCase()||(a=s.locales)!=null&&a.some(l=>l.toLowerCase()===o))return s}}}}(hr)),hr}var Vo;function Al(){return Vo||(Vo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});const r=function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];if(process.env.__NEXT_I18N_SUPPORT)return Sl().detectDomainLocale(...o)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Rt,Rt.exports)),Rt.exports}var Ko;function Rl(){return Ko||(Ko=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}});const r=qt(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i,a,s,u){if(process.env.__NEXT_I18N_SUPPORT){const l=Cl().normalizeLocalePath,p=Al().detectDomainLocale,m=a||l(i,s).detectedLocale,d=p(u,void 0,m);if(d){const f="http"+(d.http?"":"s")+"://",h=m===d.defaultLocale?"":"/"+m;return""+f+d.domain+(0,r.normalizePathTrailingSlash)(""+n+h+i)}return!1}else return!1}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(St,St.exports)),St.exports}var Et={exports:{}},Xo;function El(){return Xo||(Xo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return i}});const r=Ts(),n=qt(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function i(a,s){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!s?a:(0,r.addPathPrefix)(a,o))}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Et,Et.exports)),Et.exports}var wt={exports:{}},Qo;function wl(){return Qo||(Qo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(m,d){for(var f in d)Object.defineProperty(m,f,{enumerable:!0,get:d[f]})}r(t,{PrefetchKind:function(){return p},ACTION_REFRESH:function(){return n},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return i},ACTION_SERVER_PATCH:function(){return a},ACTION_PREFETCH:function(){return s},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return l}});const n="refresh",o="navigate",i="restore",a="server-patch",s="prefetch",u="fast-refresh",l="server-action";var p;(function(m){m.AUTO="auto",m.FULL="full",m.TEMPORARY="temporary"})(p||(p={})),(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(wt,wt.exports)),wt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return C}});const n=Re._(B),o=gl(),i=Os(),a=Is(),s=$t(),u=_l(),l=Ms(),p=vl(),m=bl(),d=Rl(),f=El(),h=wl(),y=new Set;function g(w,x,I,$,A,N){if(typeof window>"u"||!N&&!(0,i.isLocalURL)(x))return;if(!$.bypassPrefetchedCheck){const k=typeof $.locale<"u"?$.locale:"locale"in w?w.locale:void 0,P=x+"%"+I+"%"+k;if(y.has(P))return;y.add(P)}const j=N?w.prefetch(x,A):w.prefetch(x,I,$);Promise.resolve(j).catch(k=>{if(process.env.NODE_ENV!=="production")throw k})}function v(w){const I=w.currentTarget.getAttribute("target");return I&&I!=="_self"||w.metaKey||w.ctrlKey||w.shiftKey||w.altKey||w.nativeEvent&&w.nativeEvent.which===2}function R(w,x,I,$,A,N,j,k,P,q){const{nodeName:z}=w.currentTarget;if(z.toUpperCase()==="A"&&(v(w)||!P&&!(0,i.isLocalURL)(I)))return;w.preventDefault();const Y=()=>{const V=j??!0;"beforePopState"in x?x[A?"replace":"push"](I,$,{shallow:N,locale:k,scroll:V}):x[A?"replace":"push"]($||I,{forceOptimisticNavigation:!q,scroll:V})};P?n.default.startTransition(Y):Y()}function _(w){return typeof w=="string"?w:(0,a.formatUrl)(w)}const C=n.default.forwardRef(function(x,I){let $;const{href:A,as:N,children:j,prefetch:k=null,passHref:P,replace:q,shallow:z,scroll:G,locale:Y,onClick:V,onMouseEnter:F,onTouchStart:oe,legacyBehavior:E=!1,...T}=x;$=j,E&&(typeof $=="string"||typeof $=="number")&&($=n.default.createElement("a",null,$));const D=n.default.useContext(l.RouterContext),K=n.default.useContext(p.AppRouterContext),te=D??K,Z=!D,M=k!==!1,J=k===null?h.PrefetchKind.AUTO:h.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let ie=function(ne){return new Error("Failed prop type: The prop `"+ne.key+"` expects a "+ne.expected+" in `<Link>`, but got `"+ne.actual+"` instead."+(typeof window<"u"?`
2
+ Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(ne=>{if(ne==="href"&&(x[ne]==null||typeof x[ne]!="string"&&typeof x[ne]!="object"))throw ie({key:ne,expected:"`string` or `object`",actual:x[ne]===null?"null":typeof x[ne]})}),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(ne=>{const W=typeof x[ne];if(ne==="as"){if(x[ne]&&W!=="string"&&W!=="object")throw ie({key:ne,expected:"`string` or `object`",actual:W})}else if(ne==="locale"){if(x[ne]&&W!=="string")throw ie({key:ne,expected:"`string`",actual:W})}else if(ne==="onClick"||ne==="onMouseEnter"||ne==="onTouchStart"){if(x[ne]&&W!=="function")throw ie({key:ne,expected:"`function`",actual:W})}else if((ne==="replace"||ne==="scroll"||ne==="shallow"||ne==="passHref"||ne==="prefetch"||ne==="legacyBehavior")&&x[ne]!=null&&W!=="boolean")throw ie({key:ne,expected:"`boolean`",actual:W})});const X=n.default.useRef(!1);x.prefetch&&!X.current&&!Z&&(X.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 A=="string"?ie=A:typeof A=="object"&&typeof A.pathname=="string"&&(ie=A.pathname),ie&&ie.split("/").some(U=>U.startsWith("[")&&U.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:Q,as:ee}=n.default.useMemo(()=>{if(!D){const U=_(A);return{href:U,as:N?_(N):U}}const[ie,me]=(0,o.resolveHref)(D,A,!0);return{href:ie,as:N?(0,o.resolveHref)(D,N):me||ie}},[D,A,N]),L=n.default.useRef(Q),O=n.default.useRef(ee);let re;if(E)if(process.env.NODE_ENV==="development"){V&&console.warn('"onClick" was passed to <Link> with `href` of `'+A+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),F&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+A+'` 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 `"+A+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
3
+ Open your browser's console to view the Component stack trace.`:"")):new Error("No children were passed to <Link> with `href` of `"+A+"` 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=E?re&&typeof re=="object"&&re.ref:I,[ce,ue,se]=(0,m.useIntersection)({rootMargin:"200px"}),H=n.default.useCallback(ie=>{(O.current!==ee||L.current!==Q)&&(se(),O.current=ee,L.current=Q),ce(ie),ae&&(typeof ae=="function"?ae(ie):typeof ae=="object"&&(ae.current=ie))},[ee,ae,Q,se,ce]);n.default.useEffect(()=>{process.env.NODE_ENV==="production"&&te&&(!ue||!M||g(te,Q,ee,{locale:Y},{kind:J},Z))},[ee,Q,ue,Y,M,D==null?void 0:D.locale,te,Z,J]);const he={ref:H,onClick(ie){if(process.env.NODE_ENV!=="production"&&!ie)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!E&&typeof V=="function"&&V(ie),E&&re.props&&typeof re.props.onClick=="function"&&re.props.onClick(ie),te&&(ie.defaultPrevented||R(ie,te,Q,ee,q,z,G,Y,Z,M))},onMouseEnter(ie){!E&&typeof F=="function"&&F(ie),E&&re.props&&typeof re.props.onMouseEnter=="function"&&re.props.onMouseEnter(ie),te&&((!M||process.env.NODE_ENV==="development")&&Z||g(te,Q,ee,{locale:Y,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))},onTouchStart(ie){!E&&typeof oe=="function"&&oe(ie),E&&re.props&&typeof re.props.onTouchStart=="function"&&re.props.onTouchStart(ie),te&&(!M&&Z||g(te,Q,ee,{locale:Y,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))}};if((0,s.isAbsoluteUrl)(ee))he.href=ee;else if(!E||P||re.type==="a"&&!("href"in re.props)){const ie=typeof Y<"u"?Y:D==null?void 0:D.locale,me=(D==null?void 0:D.isLocaleDomain)&&(0,d.getDomainLocale)(ee,ie,D==null?void 0:D.locales,D==null?void 0:D.domainLocales);he.href=me||(0,f.addBasePath)((0,u.addLocale)(ee,ie,D==null?void 0:D.defaultLocale))}return E?n.default.cloneElement(re,he):n.default.createElement("a",{...T,...he},$)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Mn,Mn.exports);var jl=Mn.exports,Il=jl;const we=Dt(Il),Pl=e=>{const t=e.getBlocksAsArray(),r=[];return t.forEach(n=>{const o=n.getType(),i=n.getText();let a;const s=n.getInlineStyleAt(0).toArray();s.length>0&&(a=s.map(l=>{switch(l){case"BOLD":return"font-weight: bold;";case"ITALIC":return"font-style: italic;";case"UNDERLINE":return"text-decoration: underline;";default:return""}}).join(" "));const u={type:"p",text:i,...a&&{styleText:a}};switch(o){case"header-one":u.type="h1";break;case"header-two":u.type="h2";break;case"header-three":u.type="h3";break;case"unordered-list-item":u.type="li";break;case"ordered-list-item":u.type="li";break;case"blockquote":u.type="blockquote";break;case"code-block":u.type="pre";break;default:u.type="p"}r.push(u)}),r},Nl=(e,t,r)=>{e.findEntityRanges(n=>{const o=n.getEntity();return o===null?!1:r.getEntity(o).getType()==="LINK"},t)},kn=e=>{const t=new Te.CompositeDecorator([{strategy:Nl,component:we}]),r=Te.convertFromRaw(e);return Te.EditorState.createWithContent(r,t)},Ol=e=>Te.convertFromRaw(e),Ln=Te.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),Tl=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:kn,EXTENDED_BLOCK_RENDER_MAP:Ln,GET_CONTENT_STATE:Ol,convertDraftToHTML:Pl},Symbol.toStringTag,{value:"Module"})),Mt={"responsive-mobile-flex":"_responsive-mobile-flex_t5bry_2","responsive-desktop-flex":"_responsive-desktop-flex_t5bry_13","responsive-mobile-block":"_responsive-mobile-block_t5bry_24","responsive-desktop-block":"_responsive-desktop-block_t5bry_35"},Ml=({slug:e,data:t,SectionZone:r,COMMON_PAGE_COLUMN_GAP:n})=>{const o=t==null?void 0:t.find(p=>{var m,d,f,h;return((d=(m=p.config)==null?void 0:m.responsive)==null?void 0:d.deviceType)==="desktop"&&((h=(f=p.config)==null?void 0:f.seo)==null?void 0:h.slug)===e}),i=o==null?void 0:o.config.responsive.gapCustom,a=o==null?void 0:o.config.responsive.gapSections,s=t==null?void 0:t.find(p=>{var m,d,f,h;return((d=(m=p.config)==null?void 0:m.responsive)==null?void 0:d.deviceType)==="mobile"&&((h=(f=p.config)==null?void 0:f.seo)==null?void 0:h.slug)===e}),u=s==null?void 0:s.config.responsive.gapCustom,l=s==null?void 0:s.config.responsive.gapSections;return c.jsxs(c.Fragment,{children:[c.jsx(b.Utils.Column,{gap:i&&a?a:n,className:b.helpers.classNameConcat(Mt["responsive-desktop-flex"],"utils-column-modifier"),children:c.jsx(r,{data:(o==null?void 0:o.sections)??[]})}),c.jsx(b.Utils.Column,{gap:u&&l?l:n,className:b.helpers.classNameConcat(Mt["responsive-mobile-flex"],"utils-column-modifier"),children:c.jsx(r,{data:(s==null?void 0:s.sections)??[]})})]})},Ue=e=>({centro:"center",esquerda:"start",direita:"end"})[e],kl=({expanded:e,content:t})=>c.jsxs("details",{open:e,children:[t.textStructureReduced?c.jsx("summary",{onClick:r=>r.preventDefault(),children:c.jsx(Te.Editor,{editorKey:"draft-editor-1",blockRenderMap:Ln,editorState:t!=null&&t.textStructureReduced?kn(JSON.parse(t.textStructureReduced)):Te.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):c.jsx(c.Fragment,{}),t.showTextStructureExpander&&t.textStructure?c.jsx(c.Fragment,{children:c.jsx(Te.Editor,{editorKey:"draft-editor-1",blockRenderMap:Ln,editorState:t.textStructure?kn(JSON.parse(t.textStructure)):Te.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):c.jsx(c.Fragment,{})]}),Ll={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},Dl="_textContentWrapper_1bigo_5",$l="_textContentSection_1bigo_13",Dn={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:Dl,textContentSection:$l},ql="_link_w24h0_1",Bl="_wrapper_w24h0_98",Hl="_text_w24h0_106",gr={link:ql,wrapper:Bl,text:Hl},Ze=({children:e,adornments:t,className:r,disableUnderline:n,href:o,mode:i,size:a,title:s,onClick:u,disablePadding:l,...p})=>{const m=b.helpers.ValidateProp({fieldTypes:nt.SizesSmallExtended,property:a,fallback:"medium"}),d=b.helpers.ValidateProp({fieldTypes:nt.Mode,property:i,fallback:"default"});return c.jsx(we,{...p,className:b.helpers.classNameConcat(gr.link,r),href:o&&o.length>0?o:"#","data-size":m,"data-variant":d,title:s||"NextLink","data-disable-underline":n??!1,"data-disable-padding":l??!0,children:c.jsxs("div",{className:gr.wrapper,onClick:u,children:[t==null?void 0:t.start,c.jsx("p",{className:gr.text,"data-size":m,children:e}),t==null?void 0:t.end]})})},Zn=({data:e,ICONS:t})=>{var o;const[r,n]=B.useState(!1);return c.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:Ue(e.textStructureAlignment),alignItems:Ue(e.textStructureAlignment)},columnWrapper:{alignContent:Ue(e.textStructureAlignment),alignItems:Ue(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?c.jsx(b.Button,{variant:"tertiary",adornment:{end:c.jsx(b.Icon,{name:r?`${t.arrow_up}`:`${t.arrow_down}`})},onClick:()=>n(i=>!i),size:"small",children:r?"Ver Menos":"Ver Mais"}):c.jsx(c.Fragment,{})},children:c.jsxs(b.Utils.Column,{className:Dn.textContentWrapper,style:{alignItems:Ue(e.textStructureAlignment)},children:[c.jsx(b.TextStructure.DivWrapper,{style:{textAlign:Ue(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:Ll["draftjs-text-modifier"],children:e.textStructureReduced?c.jsx(kl,{content:e,expanded:r}):c.jsx(c.Fragment,{})}),e.textStructureButtonLabel?c.jsx(Ze,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:Dn["link-modifier"],adornments:(o=e.textStructureButtonIcon)!=null&&o.length&&e.enableIcon?{end:c.jsx(b.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):c.jsx(c.Fragment,{})]})})},zl=e=>({centro:{verticalAlignment:"center",horizontalAlignment:"center"},"centro-esquerda":{verticalAlignment:"center",horizontalAlignment:"start"},"centro-direita":{verticalAlignment:"center",horizontalAlignment:"end"},"superior-centro":{verticalAlignment:"start",horizontalAlignment:"center"},"superior-esquerda":{verticalAlignment:"start",horizontalAlignment:"start"},"superior-direita":{verticalAlignment:"start",horizontalAlignment:"end"},"inferior-centro":{verticalAlignment:"end",horizontalAlignment:"center"},"inferior-esquerda":{verticalAlignment:"end",horizontalAlignment:"start"},"inferior-direita":{verticalAlignment:"end",horizontalAlignment:"end"}})[e],Yo=e=>({centro:"center",esquerda:"start",direita:"end"})[e],Fl="_image_lypfr_1",Ul={image:Fl},Wl=({alt:e,className:t,objectFit:r,...n})=>{const{nextimage:o}=Ne();return c.jsx(o,{quality:90,...n,alt:e??"",className:b.helpers.classNameConcat(Ul.image,t),"data-object-fit":r??"cover"})},Gl=({videoRef:e,...t})=>c.jsx("video",{...t,ref:e,children:c.jsx("track",{kind:"captions"})}),Oe={Image:Wl,Video:Gl},$n=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...n})=>{const[o,i]=B.useState(As(new fo.TZDate(Date.now(),r),new fo.TZDate(e,r))),[a,s]=B.useState(!1);B.useEffect(()=>{a||s(!0);const l=setInterval(()=>{if(o<=0){clearInterval(l);return}i(o-1e3)},1e3);return()=>{clearInterval(l)}},[o,i,a]);const u=rt(o,"days");return a&&o>0?c.jsxs(b.Timer.Root,{...n,children:[u?c.jsxs(c.Fragment,{children:[c.jsx(b.Timer.Digit,{label:"dias",value:u}),c.jsx(b.Timer.Separator,{})]}):null,c.jsx(b.Timer.Digit,{label:"horas",value:rt(o,"hours")}),c.jsx(b.Timer.Separator,{}),c.jsx(b.Timer.Digit,{label:"min",value:rt(o,"minutes")}),c.jsx(b.Timer.Separator,{}),c.jsx(b.Timer.Digit,{label:"segs",value:rt(o),suppressHydrationWarning:!0})]}):c.jsx(c.Fragment,{})},Zo={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},Jo=({data:e,videoUrl:t,priority:r,videoRef:n,ICONS:o,...i})=>{const{video:a,image:s,imageHref:u,imageOpacity:l,altImage:p,backgroundColor:m,position:d,contentAlignment:f,showTimer:h,contentOrder:y,timerMode:g,timerEnd:v,timerInit:R,textStructure:_,textStructureReduced:S}=e.banner,C=(u==null?void 0:u.trim())||(s==null?void 0:s.trim())||null,{nextimage:w}=Ne();return c.jsxs(b.Banner.Container,{...i,children:[c.jsxs(b.Banner.ImageWrapper,{className:Zo["banner-image-wrapper-modifier"],style:l?{background:m}:void 0,children:[a&&c.jsx(Oe.Video,{videoRef:n,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),C&&!(a!=null&&a.length)&&c.jsx(w,{src:C,width:"1920",height:"1080",alt:p??s??"",...r?{priority:r}:{},style:l?{opacity:"0"}:void 0}),!s&&!(a!=null&&a.length)&&c.jsx("div",{style:{background:m}})]}),h||S||_?c.jsx(b.Banner.Slot,{...zl(d??"centro"),className:Zo["content-modifier"],style:{textAlign:Yo(f)},children:c.jsxs(b.Utils.Column,{gap:"16px",alignItems:Yo(f),children:[h&&y==="timer-first"&&c.jsx($n,{mode:g??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:R?new Date(R):new Date}),c.jsx(Zn,{data:e.banner,ICONS:o}),h&&y!=="timer-first"&&c.jsx($n,{mode:g??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:R?new Date(R):new Date})]})}):c.jsx(c.Fragment,{})]})},Vl={"observer-wrapper":"_observer-wrapper_r43gk_1"};function Kl(e,t,r){const[n,o]=B.useState(!1),{threshold:i}=r||{};return B.useEffect(()=>{if(!e.current)return()=>null;let a=null;const s=new IntersectionObserver(([u])=>{if(r!=null&&r.delay){a&&clearTimeout(a),a=setTimeout(()=>{o(u.isIntersecting),t&&u.isIntersecting&&s.unobserve(e.current)},r.delay);return}o(u.isIntersecting),t&&u.isIntersecting&&s.unobserve(e.current)},{threshold:i||1});return s.observe(e.current),()=>{s.disconnect()}},[e]),n}const Jn=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:n,stopOnIntersection:o=!0,className:i,...a})=>{const s=B.useRef(null),u=Kl(s,o,r),{sendDataLayerEvent:l}=ge();return B.useEffect(()=>{u&&(typeof n=="function"&&n(),t&&l({...t}))},[u]),c.jsx("div",{...a,ref:s,className:b.helpers.classNameConcat(Vl["observer-wrapper"],i),children:e})},Ls=({data:e,className:t,priority:r,creative:n,...o})=>{const{handleSelectPromotionEvent:i,currentLocalRef:a}=ge(),{banner:{promotion_name:s},index:u,componentIndex:l}=e,p=typeof u=="number"?`:${u+1}`:"",m={creative_name:n,creative_slot:`${n}-${a.current}:${l+1}${p}`,promotion_id:e.banner.href,promotion_name:s},d=B.useRef(null),f=B.useMemo(()=>{var y;if((y=e.banner.video)!=null&&y.includes("player.vimeo")){const g=e.banner.video.split("?")[1],v=g==null?void 0:g.split("&"),R=v==null?void 0:v.filter(S=>S.includes("loc")||S.includes("signature")||S.includes("user_id")),_=R==null?void 0:R.join("&");return`${e.banner.video.split("?")[0]}?${_}`}return e.banner.video},[e]),h=()=>{var y;(y=d.current)!=null&&y.paused&&d.current.play()};return c.jsx(Jn,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...m,index:u}}}},observerOptions:{delay:100,...f&&{threshold:.1}},...f&&{callBackWhenVisible:h},children:e.banner.href?c.jsx(we,{href:e.banner.href,onClick:()=>{i({updatePromotionRef:!0,promotion:m,index:u})},children:c.jsx(Jo,{data:e,videoUrl:f,priority:r,videoRef:d,...o})}):c.jsx(Jo,{data:e,videoUrl:f,priority:r,videoRef:d,...o})})},Ds=e=>c.jsx(Ls,{...e}),Xl={Banner:Ds},et={"row-controller-modifier":"_row-controller-modifier_co4wb_1","carousel-title-modifier":"_carousel-title-modifier_co4wb_18","carousel-modifier":"_carousel-modifier_co4wb_22","card-modifier":"_card-modifier_co4wb_26"},Ql=({data:e,CONSTANTS:t})=>{var l;const{isMobile:r}=ke(),n=e.config.size??"medium",o=e.config.disableCarouselMobile??!1,{initialize:i,pagination:a,controller:s,itemsStyles:u}=b.Carousel.useCarousel({itemsPerPage:r?e==null?void 0:e.config.slidesPerViewMobile:(l=e==null?void 0:e.config)==null?void 0:l.slidesPerView,gap:r?e.config.gapMobile:e.config.gap,direction:r&&o?"column":"row"});return c.jsx(b.Utils.Column,{style:{width:n==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:c.jsxs(b.Carousel.Root,{innerRef:p=>{i(p)},className:b.helpers.classNameConcat(et["carousel-modifier"],"common-section"),children:[n==="medium"?c.jsxs(b.TextStructure.Root,{children:[c.jsx(b.TextStructure.DivWrapper,{className:et["carousel-title-modifier"],children:c.jsx("h2",{className:"typography-style-body-lg",children:t.BENNEFITS_BAR_TITLE})}),r&&a.totalPages>1?c.jsx(b.Carousel.Controller,{className:et["row-controller-modifier"],children:c.jsxs(b.Carousel.Arrows,{children:[c.jsx(b.Button,{variant:"tertiary",onClick:()=>s==null?void 0:s.prevPage(),adornment:{start:c.jsx(b.Icon,{name:t.ICONS.arrow_left})}}),c.jsx(b.Button,{variant:"tertiary",onClick:()=>s==null?void 0:s.nextPage(),adornment:{start:c.jsx(b.Icon,{name:t.ICONS.arrow_right})}})]})}):c.jsx(c.Fragment,{})]}):c.jsx(c.Fragment,{}),c.jsx(b.Carousel.Body,{children:e.bennefit.map((p,m)=>c.jsx(b.Carousel.Item,{className:et["card-modifier"],style:u,children:c.jsx(b.Card,{stroke:!0,padding:"small",children:c.jsx(b.TextStructure.Root,{layoutProps:{columnWrapper:{alignContent:"start",alignItems:"start",justifyContent:"start"},textRow:{alignContent:"center",alignItems:"center",justifyContent:"center"}},adornment:{[n==="medium"?"top":"start"]:c.jsx(b.Icon,{name:p.icon,size:n==="medium"?"medium":"small"})},children:c.jsxs(b.TextStructure.DivWrapper,{alignItems:"start",children:[c.jsx("h3",{className:"typography-style-body-md",children:p.title}),p.subtitle&&p.subtitle.length?c.jsx("p",{className:"typography-style-body-xs",children:p.subtitle}):c.jsx(c.Fragment,{})]})})})},`bennefit=${m}`))}),!r&&a.totalPages>1?c.jsxs(b.Carousel.Controller,{className:et["row-controller-modifier"],children:[c.jsxs(b.Carousel.Arrows,{children:[c.jsx(b.Button,{variant:"tertiary",onClick:()=>s==null?void 0:s.prevPage(),adornment:{start:c.jsx(b.Icon,{name:t.ICONS.arrow_left})}}),c.jsx(b.Button,{variant:"tertiary",onClick:()=>s==null?void 0:s.nextPage(),adornment:{start:c.jsx(b.Icon,{name:t.ICONS.arrow_right})}})]}),c.jsx(b.Carousel.Bullets,{page:a.currentPage,total:a.totalPages,onBulletClick:p=>s==null?void 0:s.navigateTo(p)})]}):c.jsx(c.Fragment,{})]})})},Yl=({data:e,ICONS:t})=>c.jsx("div",{className:b.helpers.classNameConcat(Dn.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:c.jsx(Zn,{data:e,ICONS:t})}),Zl={Banner:Xl,BannerSection:Ls,BennefitsBarSection:Ql,DataScreening:Ml,SingleBannerSection:Ds,TextContentSection:Yl,TextContent:Zn},Jl={Components:Zl,helpers:Tl},je={"add-to-cart--card":"_add-to-cart--card_4v41y_1","add-to-cart--card--content":"_add-to-cart--card--content_4v41y_7","add-to-cart--card--name":"_add-to-cart--card--name_4v41y_16","add-to-cart--card--price-quantity":"_add-to-cart--card--price-quantity_4v41y_46","add-to-cart--card--style-size":"_add-to-cart--card--style-size_4v41y_53","add-to-cart--content":"_add-to-cart--content_4v41y_71","add-to-cart--content--title":"_add-to-cart--content--title_4v41y_78","add-to-cart--footer":"_add-to-cart--footer_4v41y_102","add-to-cart--footer--total":"_add-to-cart--footer--total_4v41y_108","add-to-cart--items":"_add-to-cart--items_4v41y_148","add-to-cart--tooltip":"_add-to-cart--tooltip_4v41y_198","add-to-cart__modal":"_add-to-cart__modal_4v41y_211"},$s=({brand:e,className:t,name:r,...n})=>c.jsxs("div",{...n,className:b.helpers.classNameConcat(je["add-to-cart--card--name"],t),children:[c.jsx(b.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),c.jsx(b.TextStructure.Root,{children:c.jsx(b.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:c.jsx("p",{className:"typography-style-body-md",children:r})})})]});$s.displayName="AddToCart.Card.Name";const qs=({className:e,listPrice:t,price:r,quantity:n,productId:o,...i})=>{const a=Me(r/100),s=Me(t/100);return c.jsx("div",{...i,className:b.helpers.classNameConcat(je["add-to-cart--card--price-quantity"],e),children:c.jsx(b.ProductInfo.Root,{size:"small",layout:"vertical",children:c.jsx(b.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:c.jsx(b.ProductInfo.ValuesWrapper,{children:r!==t?c.jsxs(c.Fragment,{children:[c.jsx(b.ProductInfo.Price,{label:"originalPrice",value:a,size:"small"},"price-list"),c.jsx(b.ProductInfo.Price,{label:"discountPrice",value:s,size:"small"},"price-low")]}):c.jsx(b.ProductInfo.Price,{label:"defaultPrice",value:s,size:"small"},"price-low")})})})})};qs.displayName="AddToCart.Card.PriceQuantity";const ed="_skeleton_12b79_1",td={skeleton:ed},rd=({style:e})=>c.jsx("div",{style:e,className:td.skeleton}),Bs=({className:e,productGroupID:t,size:r,texture:n,...o})=>{const{CONSTANTS:{TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a}}=ze(),[s,u]=B.useState(n??"");return B.useEffect(()=>{s||fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[t]})}).then(l=>l.json()).then(l=>{const p=l.data[0].items[0];if(p){const m=p.images.find(d=>i.includes(d.imageLabel));m!=null&&m.imageUrl?u(m.imageUrl):u(p.images[0].imageUrl)}}).catch(l=>{console.error(l)})},[s,t]),c.jsxs("div",{...o,className:b.helpers.classNameConcat(je["add-to-cart--card--style-size"],e),children:[c.jsx(b.ToggleStyle.Wrapper,{size:"x-small",style:a,children:c.jsx(b.ToggleStyle.Texture,{children:s?c.jsx(Oe.Image,{alt:"",src:s??"",width:164,height:164,style:a}):c.jsx(rd,{})})}),c.jsx(b.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),r&&c.jsxs(b.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[c.jsx(b.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),c.jsx(b.ToggleSize.Text,{children:r})]})]})};Bs.displayName="AddToCart.Card.StyleSize";const{helpers:nd}=Rs,Hs=({className:e,item:t,texture:r,...n})=>{const{itemOffered:{name:o,brand:i,skuName:a,isVariationOf:{productGroupID:s}},quantity:u,price:l,sellingPrice:p}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:m}}=ze(),{size:d}=nd.product.getColorAndSizeFromSkuName(a??o,m);return console.log("value size, skuName",{size:d,skuName:a,name:o}),c.jsxs("div",{...n,className:b.helpers.classNameConcat(je["add-to-cart--card--content"],e),children:[c.jsx($s,{brand:i.name,name:o}),c.jsx(qs,{price:l,listPrice:p,quantity:u,productId:t.id}),c.jsx(Bs,{size:d,texture:r,productGroupID:s})]})};Hs.displayName="AddToCart.Card.Content";const zs=({image:e,thumbnail:t=!1})=>c.jsx(Oe.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});zs.displayName="AddToCart.Card";const Fs=({className:e,item:t,texture:r,thumbnail:n,...o})=>{const{itemOffered:{image:[i]}}=t,a=Ia(i.url,{width:200,height:300});return c.jsxs("div",{...o,className:b.helpers.classNameConcat(je["add-to-cart--card"],e),children:[c.jsx(zs,{image:{alternateName:i.alternateName||"Produto",url:a||""},thumbnail:n}),!n&&c.jsx(Hs,{item:t,texture:r})]})};Fs.displayName="AddToCart.Card";const Us=({className:e,children:t,title:r,...n})=>c.jsxs("div",{...n,className:b.helpers.classNameConcat(je["add-to-cart--content"],e),children:[c.jsx("div",{className:je["add-to-cart--content--title"],children:r&&c.jsx("h2",{children:r})}),t,c.jsx(qe.Footer,{})]});Us.displayName="AddToCart.Layout.Content";const Ws=({className:e,...t})=>{var f,h;const{isMobile:r,handleClose:n,CONSTANTS:{ADD_TO_CART:o}}=ze(),{cartStore:{totalizers:i},setIsOpen:a}=Ye(),s=(f=i.find(y=>y.id==="Discounts"))==null?void 0:f.value,u=((h=i.find(y=>y.id==="Items"))==null?void 0:h.value)??0,l=i.find(y=>y.id==="Shipping"),m=(u-Math.abs(s??0)+((l==null?void 0:l.value)??0))/100,d=Me(m??0);return c.jsxs("div",{...t,className:b.helpers.classNameConcat(je["add-to-cart--footer"],e),children:[c.jsxs("div",{className:je["add-to-cart--footer--total"],children:[c.jsx("span",{children:"Subtotal:"}),c.jsx("span",{children:d})]}),c.jsx(b.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>a(!0),children:o.footer.bag}),r?c.jsx(b.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:o.footer.keep_buying}):c.jsx(b.Button,{onClick:()=>n(),size:"medium",variant:"tertiary",children:o.footer.keep_buying})]})};Ws.displayName="AddToCart.Layout.Footer";const Gs=({children:e,className:t,thumbnail:r=!1,...n})=>{const{cartStore:{options:o}}=Ye(),{recentlyAddedProducts:i}=at(),a=i.length>3?4:i.length;return c.jsxs("div",{...n,className:je["add-to-cart--items"],"data-thumbnail":r,children:[Array.isArray(i)&&i.filter((s,u)=>u<a).map(s=>{var l;const u=(l=o==null?void 0:o.find(p=>p.id===s.itemOffered.isVariationOf.productGroupID))==null?void 0:l.texture;return c.jsx(qe.Card,{item:s,thumbnail:r,texture:u},s.itemOffered.sku)}),e]})};Gs.displayName="AddToCart.Layout.Items";const Vs=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:n}=ze(),{isMobile:o}=ke();return c.jsxs(b.Modal.Root,{"data-modal":"add-to-cart--modal",className:je["add-to-cart__modal"],isMobile:o??!1,isOpen:r,setIsOpen:n,variant:"sideBottom",style:{zIndex:t.modal},children:[c.jsx(b.Modal.Header,{navigation:"top",children:c.jsx(b.Modal.Controls,{navigation:"top",isMobile:!0})}),c.jsx(b.Modal.Body,{children:e})]})};Vs.displayName="AddToCart.Modal";const od=({children:e})=>{const{count:t,handleClose:r,setIsOpen:n}=ze(),o=B.useRef(t);return B.useEffect(()=>{t>o.current&&n(!0),t<o.current&&o.current>=1&&r(),o.current=t},[t,r,n]),c.jsx(c.Fragment,{children:e})},Ks=({children:e,component:t,CONSTANTS:r,...n})=>{const{recentlyAddedProducts:o}=at(),{isMobile:i}=ke(),a=o.length>3?4:o.length;return c.jsx(bs,{...n,count:a,isMobile:i,CONSTANTS:r,children:c.jsx(od,{children:i?c.jsxs(c.Fragment,{children:[c.jsx(qe.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):c.jsx(qe.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};Ks.displayName="AddToCart.Root";const Xs=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:o,left:i,isLeaving:a,target:s,isOpen:u,top:l}=ze();return c.jsx(b.Tooltip.Root,{arrow:"top-right",component:c.jsx("div",{...n,ref:o,children:t}),id:"add-to-cart--tooltip",className:je["add-to-cart--tooltip"],style:{zIndex:r.modal},isLeaving:a,isOpen:u,left:i,size:"medium",position:"top",top:l,children:c.jsx("div",{className:je["add-to-cart--tooltip"],ref:s,children:e})})};Xs.displayName="AddToCart.Tooltip";const qe={Card:Fs,Content:Us,Footer:Ws,Items:Gs,Modal:Vs,Root:Ks,Tooltip:Xs},eo=({title:e,...t})=>{const{recentlyAddedProducts:r}=at(),{isMobile:n}=ke(),o=r.length>3?4:r.length,i=r.length>(o??1),a=r.length>1;return c.jsx(qe.Root,{isMobile:n,count:r.length,component:c.jsx(qe.Content,{title:e,children:c.jsx(qe.Items,{thumbnail:a,children:i&&c.jsx(b.Badge.Count,{count:r.length-o,size:"medium",variant:"secondary"})})}),...t})};eo.displayName="AddToCart";const ei={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},id=({children:e,className:t,adornment:r,iconPosition:n,scrollToOptions:o,style:i,...a})=>{const s={top:(o==null?void 0:o.top)??0,left:(o==null?void 0:o.left)??0,behavior:(o==null?void 0:o.behavior)??"smooth"},l=n&&r?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[n]}:{},p=()=>{window&&window.document.body.scrollTo({...s})};return c.jsx(b.Card,{...a,shadow:!0,padding:"small",className:b.helpers.classNameConcat(ei["card-modifier"],t),style:{...i,padding:0},children:c.jsxs("button",{className:ei["backtotop-btn"],onClick:p,style:{...l},"data-orientation":n,children:[r,e]})})},ad=({page:e,data:t})=>{const{pathname:r}=Ne(),n=B.useRef(null),{sendDataLayerEvent:o,currentLocalRef:i,itemListRef:a,promotionEventRef:s}=ge();return B.useEffect(()=>{const u=Cs("login_event")||"{}",l=JSON.parse(u);if(l.name||l.method){const p=new Date(0);o({functionKey:"readyEvents",data:{event:l.name,readyData:{method:l.method}}}),Ss("login_event","",{expires:p})}},[]),B.useEffect(()=>{if(n.current===r)return;n.current=r;let u={};switch(e){case"PDP":{const p=t,m={};if(!p){u={page_category:"pdp"};break}p.items.forEach(({itemId:d,sellers:f})=>m[d]=f[0].commertialOffer.AvailableQuantity),u={page_category:"pdp",seller_ids:p.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:m,product_reference_id:p.productReference};break}case"PDC":{const{page_category:p,page_departament:m,id:d,name:f}=La(),h=f,y=d;u={page_category:"lista_produtos",...m&&{page_departament:m}},a.current={item_list_name:r==="/search"?"busca":h??void 0,item_list_id:r==="/search"?void 0:y??void 0},m&&o({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:p,page_departament:m}}});break}default:u={page_category:e},s.current={},a.current={};break}const l={region:e,...u};i.current=e,o({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...l}},timeout:0})},[r]),null};var qn={exports:{}};function sd(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var yr={},_r={},ti;function cd(){return ti||(ti=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return n}});const n=Re._(B).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="LoadableContext")}(_r)),_r}var ri;function ud(){return ri||(ri=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});const r=Re._(B),n=cd();function o(h){return h&&h.default?h.default:h}const i=[],a=[];let s=!1;function u(h){let y=h(),g={loading:!0,loaded:null,error:null};return g.promise=y.then(v=>(g.loading=!1,g.loaded=v,v)).catch(v=>{throw g.loading=!1,g.error=v,v}),g}function l(h,y){let g=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},y),v=null;function R(){if(!v){const C=new p(h,g);v={getCurrentValue:C.getCurrentValue.bind(C),subscribe:C.subscribe.bind(C),retry:C.retry.bind(C),promise:C.promise.bind(C)}}return v.promise()}if(typeof window>"u"&&i.push(R),!s&&typeof window<"u"){const C=g.webpack&&typeof sd.resolveWeak=="function"?g.webpack():g.modules;C&&a.push(w=>{for(const x of C)if(w.includes(x))return R()})}function _(){R();const C=r.default.useContext(n.LoadableContext);C&&Array.isArray(g.modules)&&g.modules.forEach(w=>{C(w)})}function S(C,w){_();const x=r.default.useSyncExternalStore(v.subscribe,v.getCurrentValue,v.getCurrentValue);return r.default.useImperativeHandle(w,()=>({retry:v.retry}),[]),r.default.useMemo(()=>x.loading||x.error?r.default.createElement(g.loading,{isLoading:x.loading,pastDelay:x.pastDelay,timedOut:x.timedOut,error:x.error,retry:v.retry}):x.loaded?r.default.createElement(o(x.loaded),C):null,[C,x])}return S.preload=()=>R(),S.displayName="LoadableComponent",r.default.forwardRef(S)}class p{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:y,_opts:g}=this;y.loading&&(typeof g.delay=="number"&&(g.delay===0?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},g.delay)),typeof g.timeout=="number"&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},g.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(v=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(y){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...y},this._callbacks.forEach(g=>g())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(y){return this._callbacks.add(y),()=>{this._callbacks.delete(y)}}constructor(y,g){this._loadFn=y,this._opts=g,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function m(h){return l(u,h)}function d(h,y){let g=[];for(;h.length;){let v=h.pop();g.push(v(y))}return Promise.all(g).then(()=>{if(h.length)return d(h,y)})}m.preloadAll=()=>new Promise((h,y)=>{d(i).then(h,y)}),m.preloadReady=h=>(h===void 0&&(h=[]),new Promise(y=>{const g=()=>(s=!0,y());d(a,h).then(g,g)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=m.preloadReady);const f=m}(yr)),yr}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(p,m){for(var d in m)Object.defineProperty(p,d,{enumerable:!0,get:m[d]})}r(t,{noSSR:function(){return u},default:function(){return l}});const n=Re,o=n._(B),i=n._(ud()),a=typeof window>"u";function s(p){return{default:(p==null?void 0:p.default)||p}}function u(p,m){if(delete m.webpack,delete m.modules,!a)return p(m);const d=m.loading;return()=>o.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function l(p,m){let d=i.default,f={loading:g=>{let{error:v,isLoading:R,pastDelay:_}=g;if(!_)return null;if(process.env.NODE_ENV!=="production"){if(R)return null;if(v)return o.default.createElement("p",null,v.message,o.default.createElement("br",null),v.stack)}return null}};p instanceof Promise?f.loader=()=>p:typeof p=="function"?f.loader=p:typeof p=="object"&&(f={...f,...p}),f={...f,...m};const h=f.loader,y=()=>h!=null?h().then(s):Promise.resolve(s(()=>null));return f.loadableGenerated&&(f={...f,...f.loadableGenerated},delete f.loadableGenerated),typeof f.ssr=="boolean"&&!f.ssr?(delete f.webpack,delete f.modules,u(d,f)):d({...f,loader:y})}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(qn,qn.exports);var ld=qn.exports,dd=ld;const to=Dt(dd);var Bn={exports:{}},vr={},ni;function Qs(){return ni||(ni=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=Re._(B).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="HeadManagerContext")}(vr)),vr}var jt={exports:{}},oi;function fd(){return oi||(oi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(u,l){for(var p in l)Object.defineProperty(u,p,{enumerable:!0,get:l[p]})}r(t,{DOMAttributeNames:function(){return n},isEqualNode:function(){return i},default:function(){return s}});const n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function o(u){let{type:l,props:p}=u;const m=document.createElement(l);for(const h in p){if(!p.hasOwnProperty(h)||h==="children"||h==="dangerouslySetInnerHTML"||p[h]===void 0)continue;const y=n[h]||h.toLowerCase();l==="script"&&(y==="async"||y==="defer"||y==="noModule")?m[y]=!!p[h]:m.setAttribute(y,p[h])}const{children:d,dangerouslySetInnerHTML:f}=p;return f?m.innerHTML=f.__html||"":d&&(m.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),m}function i(u,l){if(u instanceof HTMLElement&&l instanceof HTMLElement){const p=l.getAttribute("nonce");if(p&&!u.getAttribute("nonce")){const m=l.cloneNode(!0);return m.setAttribute("nonce",""),m.nonce=p,p===u.nonce&&u.isEqualNode(m)}}return u.isEqualNode(l)}let a;process.env.__NEXT_STRICT_NEXT_HEAD?a=(u,l)=>{const p=document.querySelector("head");if(!p)return;const m=p.querySelectorAll('meta[name="next-head"]')||[],d=[];if(u==="meta"){const y=p.querySelector("meta[charset]");y&&d.push(y)}for(let y=0;y<m.length;y++){var f;const v=m[y].nextSibling;(v==null||(f=v.tagName)==null?void 0:f.toLowerCase())===u&&d.push(v)}const h=l.map(o).filter(y=>{for(let g=0,v=d.length;g<v;g++){const R=d[g];if(i(R,y))return d.splice(g,1),!1}return!0});d.forEach(y=>{var g;const v=y.previousSibling;if(v&&v.getAttribute("name")==="next-head"){var R;(R=y.parentNode)==null||R.removeChild(v)}(g=y.parentNode)==null||g.removeChild(y)}),h.forEach(y=>{var g;const v=document.createElement("meta");v.name="next-head",v.content="1",((g=y.tagName)==null?void 0:g.toLowerCase())==="meta"&&y.getAttribute("charset")||p.appendChild(v),p.appendChild(y)})}:a=(u,l)=>{const p=document.getElementsByTagName("head")[0],m=p.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!m){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(m.content),f=[];for(let g=0,v=m.previousElementSibling;g<d;g++,v=(v==null?void 0:v.previousElementSibling)||null){var h;(v==null||(h=v.tagName)==null?void 0:h.toLowerCase())===u&&f.push(v)}const y=l.map(o).filter(g=>{for(let v=0,R=f.length;v<R;v++){const _=f[v];if(i(_,g))return f.splice(v,1),!1}return!0});f.forEach(g=>{var v;return(v=g.parentNode)==null?void 0:v.removeChild(g)}),y.forEach(g=>p.insertBefore(g,m)),m.content=(d-f.length+y.length).toString()};function s(){return{mountedInstances:new Set,updateHead:u=>{const l={};u.forEach(d=>{if(d.type==="link"&&d.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+d.props["data-href"]+'"]'))return;d.props.href=d.props["data-href"],d.props["data-href"]=void 0}const f=l[d.type]||[];f.push(d),l[d.type]=f});const p=l.title?l.title[0]:null;let m="";if(p){const{children:d}=p.props;m=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}m!==document.title&&(document.title=m),["meta","base","link","style","script"].forEach(d=>{a(d,l[d]||[])})}}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(jt,jt.exports)),jt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(C,w){for(var x in w)Object.defineProperty(C,x,{enumerable:!0,get:w[x]})}r(t,{handleClientScriptLoad:function(){return y},initScriptLoader:function(){return R},default:function(){return S}});const n=Re,o=Xe,i=n._(_a),a=o._(B),s=Qs(),u=fd(),l=ks(),p=new Map,m=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],f=C=>{if(i.default.preinit){C.forEach(w=>{i.default.preinit(w,{as:"style"})});return}if(typeof window<"u"){let w=document.head;C.forEach(x=>{let I=document.createElement("link");I.type="text/css",I.rel="stylesheet",I.href=x,w.appendChild(I)})}},h=C=>{const{src:w,id:x,onLoad:I=()=>{},onReady:$=null,dangerouslySetInnerHTML:A,children:N="",strategy:j="afterInteractive",onError:k,stylesheets:P}=C,q=x||w;if(q&&m.has(q))return;if(p.has(w)){m.add(q),p.get(w).then(I,k);return}const z=()=>{$&&$(),m.add(q)},G=document.createElement("script"),Y=new Promise((V,F)=>{G.addEventListener("load",function(oe){V(),I&&I.call(this,oe),z()}),G.addEventListener("error",function(oe){F(oe)})}).catch(function(V){k&&k(V)});A?(G.innerHTML=A.__html||"",z()):N?(G.textContent=typeof N=="string"?N:Array.isArray(N)?N.join(""):"",z()):w&&(G.src=w,p.set(w,Y));for(const[V,F]of Object.entries(C)){if(F===void 0||d.includes(V))continue;const oe=u.DOMAttributeNames[V]||V.toLowerCase();G.setAttribute(oe,F)}j==="worker"&&G.setAttribute("type","text/partytown"),G.setAttribute("data-nscript",j),P&&f(P),document.body.appendChild(G)};function y(C){const{strategy:w="afterInteractive"}=C;w==="lazyOnload"?window.addEventListener("load",()=>{(0,l.requestIdleCallback)(()=>h(C))}):h(C)}function g(C){document.readyState==="complete"?(0,l.requestIdleCallback)(()=>h(C)):window.addEventListener("load",()=>{(0,l.requestIdleCallback)(()=>h(C))})}function v(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(w=>{const x=w.id||w.getAttribute("src");m.add(x)})}function R(C){C.forEach(y),v()}function _(C){const{id:w,src:x="",onLoad:I=()=>{},onReady:$=null,strategy:A="afterInteractive",onError:N,stylesheets:j,...k}=C,{updateScripts:P,scripts:q,getIsSsr:z,appDir:G,nonce:Y}=(0,a.useContext)(s.HeadManagerContext),V=(0,a.useRef)(!1);(0,a.useEffect)(()=>{const oe=w||x;V.current||($&&oe&&m.has(oe)&&$(),V.current=!0)},[$,w,x]);const F=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{F.current||(A==="afterInteractive"?h(C):A==="lazyOnload"&&g(C),F.current=!0)},[C,A]),(A==="beforeInteractive"||A==="worker")&&(P?(q[A]=(q[A]||[]).concat([{id:w,src:x,onLoad:I,onReady:$,onError:N,...k}]),P(q)):z&&z()?m.add(w||x):z&&!z()&&h(C)),G){if(j&&j.forEach(oe=>{i.default.preinit(oe,{as:"style"})}),A==="beforeInteractive")return x?(i.default.preload(x,k.integrity?{as:"script",integrity:k.integrity}:{as:"script"}),a.default.createElement("script",{nonce:Y,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([x])+")"}})):(k.dangerouslySetInnerHTML&&(k.children=k.dangerouslySetInnerHTML.__html,delete k.dangerouslySetInnerHTML),a.default.createElement("script",{nonce:Y,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...k}])+")"}}));A==="afterInteractive"&&x&&i.default.preload(x,k.integrity?{as:"script",integrity:k.integrity}:{as:"script"})}return null}Object.defineProperty(_,"__nextScript",{value:!0});const S=_;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Bn,Bn.exports);var pd=Bn.exports,md=pd;const hd=Dt(md),gd=({children:e,ONE_TRUST:t})=>c.jsxs(c.Fragment,{children:[c.jsx(hd,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),yd=to(()=>Promise.resolve(gd),{ssr:!1}),_d="_footer__bottom_1o9af_2",vd="_footer__wrapper_1o9af_10",bd="_footer__main_1o9af_39",xd="_footer__legalInformation_1o9af_55",Cd="_footer__column_1o9af_77",Sd="_footer__columnContent_1o9af_87",Ad="_footer__item_1o9af_91",Rd="_footer__itemLink_1o9af_107",Ed="_footer__columnTitle_1o9af_122",wd="_footer__columnTitleIcon_1o9af_134",jd="_footer__iconList_1o9af_147",Id="_footer__itemSmallText_1o9af_157",Pd="_payment_1o9af_168",Nd="_footer__iconContainer_1o9af_173",Od="_footer__iconListSubHeader_1o9af_178",Td="_accordionWrapper_1o9af_200",Md="_accordionHeader_1o9af_204",kd="_accordionTextWrapper_1o9af_208",pe={footer__bottom:_d,footer__wrapper:vd,footer__main:bd,footer__legalInformation:xd,footer__column:Cd,footer__columnContent:Sd,footer__item:Ad,footer__itemLink:Rd,footer__columnTitle:Ed,footer__columnTitleIcon:wd,footer__iconList:jd,footer__itemSmallText:Id,payment:Pd,footer__iconContainer:Nd,footer__iconListSubHeader:Od,accordionWrapper:Td,accordionHeader:Md,accordionTextWrapper:kd,"footer--stamps":"_footer--stamps_1o9af_247","footer--stamps--company":"_footer--stamps--company_1o9af_254","support-container":"_support-container_1o9af_258","support-section":"_support-section_1o9af_277","support-text":"_support-text_1o9af_319","support-items":"_support-items_1o9af_329","support-item":"_support-item_1o9af_329"};var Ys={},ro={},ut={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"warnOnce",{enumerable:!0,get:function(){return t}});let t=r=>{};if(process.env.NODE_ENV!=="production"){const r=new Set;t=n=>{r.has(n)||console.warn(n),r.add(n)}}})(ut);var Zs={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return t}});function t(r){let{widthInt:n,heightInt:o,blurWidth:i,blurHeight:a,blurDataURL:s,objectFit:u}=r;const l=20,p=i?i*40:n,m=a?a*40:o,d=p&&m?"viewBox='0 0 "+p+" "+m+"'":"",f=d?"none":u==="contain"?"xMidYMid":u==="cover"?"xMidYMid slice":"none";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+d+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+l+"'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='"+l+"'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+f+"' style='filter: url(%23b);' href='"+s+"'/%3E%3C/svg%3E"}})(Zs);var Bt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,i){for(var a in i)Object.defineProperty(o,a,{enumerable:!0,get:i[a]})}t(e,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});const r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}})(Bt);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return f}});const t=ut,r=Zs,n=Bt,o=["lazy","eager",void 0];function i(h){return h.default!==void 0}function a(h){return h.src!==void 0}function s(h){return typeof h=="object"&&(i(h)||a(h))}const u=new Map;let l;function p(h){return typeof h>"u"?h:typeof h=="number"?Number.isFinite(h)?h:NaN:typeof h=="string"&&/^[0-9]+$/.test(h)?parseInt(h,10):NaN}function m(h,y,g){let{deviceSizes:v,allSizes:R}=h;if(g){const S=/(^|\s)(1?\d?\d)vw/g,C=[];for(let w;w=S.exec(g);w)C.push(parseInt(w[2]));if(C.length){const w=Math.min(...C)*.01;return{widths:R.filter(x=>x>=v[0]*w),kind:"w"}}return{widths:R,kind:"w"}}return typeof y!="number"?{widths:v,kind:"w"}:{widths:[...new Set([y,y*2].map(S=>R.find(C=>C>=S)||R[R.length-1]))],kind:"x"}}function d(h){let{config:y,src:g,unoptimized:v,width:R,quality:_,sizes:S,loader:C}=h;if(v)return{src:g,srcSet:void 0,sizes:void 0};const{widths:w,kind:x}=m(y,R,S),I=w.length-1;return{sizes:!S&&x==="w"?"100vw":S,srcSet:w.map(($,A)=>C({config:y,src:g,quality:_,width:$})+" "+(x==="w"?$:A+1)+x).join(", "),src:C({config:y,src:g,quality:_,width:w[I]})}}function f(h,y){let{src:g,sizes:v,unoptimized:R=!1,priority:_=!1,loading:S,className:C,quality:w,width:x,height:I,fill:$=!1,style:A,onLoad:N,onLoadingComplete:j,placeholder:k="empty",blurDataURL:P,fetchPriority:q,layout:z,objectFit:G,objectPosition:Y,lazyBoundary:V,lazyRoot:F,...oe}=h;const{imgConf:E,showAltText:T,blurComplete:D,defaultLoader:K}=y;let te,Z=E||n.imageConfigDefault;if("allSizes"in Z)te=Z;else{const U=[...Z.deviceSizes,...Z.imageSizes].sort((Ce,X)=>Ce-X),le=Z.deviceSizes.sort((Ce,X)=>Ce-X);te={...Z,allSizes:U,deviceSizes:le}}let M=oe.loader||K;delete oe.loader,delete oe.srcSet;const J="__next_img_default"in M;if(J){if(te.loader==="custom")throw new Error('Image with src "'+g+`" is missing "loader" prop.
5
+ Read more: https://nextjs.org/docs/messages/next-image-missing-loader`)}else{const U=M;M=le=>{const{config:Ce,...X}=le;return U(X)}}if(z){z==="fill"&&($=!0);const U={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},le={responsive:"100vw",fill:"100vw"},Ce=U[z];Ce&&(A={...A,...Ce});const X=le[z];X&&!v&&(v=X)}let Q="",ee=p(x),L=p(I),O,re;if(s(g)){const U=i(g)?g.default:g;if(!U.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(U));if(!U.height||!U.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(U));if(O=U.blurWidth,re=U.blurHeight,P=P||U.blurDataURL,Q=U.src,!$){if(!ee&&!L)ee=U.width,L=U.height;else if(ee&&!L){const le=ee/U.width;L=Math.round(U.height*le)}else if(!ee&&L){const le=L/U.height;ee=Math.round(U.width*le)}}}g=typeof g=="string"?g:Q;let ae=!_&&(S==="lazy"||typeof S>"u");(!g||g.startsWith("data:")||g.startsWith("blob:"))&&(R=!0,ae=!1),te.unoptimized&&(R=!0),J&&g.endsWith(".svg")&&!te.dangerouslyAllowSVG&&(R=!0),_&&(q="high");const ce=p(w);if(process.env.NODE_ENV!=="production"){if(te.output==="export"&&J&&!R)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)R=!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(A!=null&&A.position&&A.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(A!=null&&A.width&&A.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(A!=null&&A.height&&A.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(k!=="empty"&&k!=="blur"&&!k.startsWith("data:image/"))throw new Error('Image with src "'+g+'" has invalid "placeholder" property "'+k+'".');if(k!=="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.'),k==="blur"&&!P){const U=["jpeg","png","webp","avif"];throw new Error('Image with src "'+g+`" has "placeholder='blur'" property but is missing the "blurDataURL" property.
6
+ Possible solutions:
7
+ - Add a "blurDataURL" property, the contents should be a small Data URL to represent the image
8
+ - Change the "src" property to a static import with one of the supported file types: `+U.join(",")+` (animated images not supported)
9
+ - Remove the "placeholder" property, effectively no blur effect
10
+ Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`)}if("ref"in oe&&(0,t.warnOnce)('Image with src "'+g+'" is using unsupported "ref" property. Consider using the "onLoadingComplete" property instead.'),!R&&!J){const U=M({config:te,src:g,width:ee||400,quality:ce||75});let le;try{le=new URL(U)}catch{}(U===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[U,le]of Object.entries({layout:z,objectFit:G,objectPosition:Y,lazyBoundary:V,lazyRoot:F}))le&&(0,t.warnOnce)('Image with src "'+g+'" has legacy prop "'+U+`". 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(U=>{for(const Ce of U.getEntries()){var le;const X=(Ce==null||(le=Ce.element)==null?void 0:le.src)||"",ne=u.get(X);ne&&!ne.priority&&ne.placeholder==="empty"&&!ne.src.startsWith("data:")&&!ne.src.startsWith("blob:")&&(0,t.warnOnce)('Image with src "'+ne.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(U){console.error(U)}}}const ue=Object.assign($?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:G,objectPosition:Y}:{},T?{}:{color:"transparent"},A),se=!D&&k!=="empty"?k==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:ee,heightInt:L,blurWidth:O,blurHeight:re,blurDataURL:P||"",objectFit:ue.objectFit})+'")':'url("'+k+'")':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&&k==="blur"&&P!=null&&P.startsWith("/")&&(H.backgroundImage='url("'+P+'")');const he=d({config:te,src:g,unoptimized:R,width:ee,quality:ce,sizes:v,loader:M});if(process.env.NODE_ENV!=="production"&&typeof window<"u"){let U;try{U=new URL(he.src)}catch{U=new URL(he.src,window.location.href)}u.set(U.href,{src:g,priority:_,placeholder:k})}return{props:{...oe,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:R,priority:_,placeholder:k,fill:$}}}})(ro);var Hn={exports:{}},It={exports:{}},br={},ii;function Ld(){return ii||(ii=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});const t=B,r=typeof window>"u",n=r?()=>{}:t.useLayoutEffect,o=r?()=>{}:t.useEffect;function i(a){const{headManager:s,reduceComponentsToState:u}=a;function l(){if(s&&s.mountedInstances){const m=t.Children.toArray(Array.from(s.mountedInstances).filter(Boolean));s.updateHead(u(m,a))}}if(r){var p;s==null||(p=s.mountedInstances)==null||p.add(a.children),l()}return n(()=>{var m;return s==null||(m=s.mountedInstances)==null||m.add(a.children),()=>{var d;s==null||(d=s.mountedInstances)==null||d.delete(a.children)}}),n(()=>(s&&(s._pendingUpdate=l),()=>{s&&(s._pendingUpdate=l)})),o(()=>(s&&s._pendingUpdate&&(s._pendingUpdate(),s._pendingUpdate=null),()=>{s&&s._pendingUpdate&&(s._pendingUpdate(),s._pendingUpdate=null)})),null}}(br)),br}var xr={},ai;function Dd(){return ai||(ai=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return n}});const n=Re._(B).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="AmpStateContext")}(xr)),xr}var Cr={},si;function $d(){return si||(si=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}}(Cr)),Cr}var ci;function qd(){return ci||(ci=1,function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(R,_){for(var S in _)Object.defineProperty(R,S,{enumerable:!0,get:_[S]})}r(t,{defaultHead:function(){return m},default:function(){return v}});const n=Re,i=Xe._(B),a=n._(Ld()),s=Dd(),u=Qs(),l=$d(),p=ut;function m(R){R===void 0&&(R=!1);const _=[i.default.createElement("meta",{charSet:"utf-8"})];return R||_.push(i.default.createElement("meta",{name:"viewport",content:"width=device-width"})),_}function d(R,_){return typeof _=="string"||typeof _=="number"?R:_.type===i.default.Fragment?R.concat(i.default.Children.toArray(_.props.children).reduce((S,C)=>typeof C=="string"||typeof C=="number"?S:S.concat(C),[])):R.concat(_)}const f=["name","httpEquiv","charSet","itemProp"];function h(){const R=new Set,_=new Set,S=new Set,C={};return w=>{let x=!0,I=!1;if(w.key&&typeof w.key!="number"&&w.key.indexOf("$")>0){I=!0;const $=w.key.slice(w.key.indexOf("$")+1);R.has($)?x=!1:R.add($)}switch(w.type){case"title":case"base":_.has(w.type)?x=!1:_.add(w.type);break;case"meta":for(let $=0,A=f.length;$<A;$++){const N=f[$];if(w.props.hasOwnProperty(N))if(N==="charSet")S.has(N)?x=!1:S.add(N);else{const j=w.props[N],k=C[N]||new Set;(N!=="name"||!I)&&k.has(j)?x=!1:(k.add(j),C[N]=k)}}break}return x}}function y(R,_){const{inAmpMode:S}=_;return R.reduce(d,[]).reverse().concat(m(S).reverse()).filter(h()).reverse().map((C,w)=>{const x=C.key||w;if(process.env.NODE_ENV!=="development"&&process.env.__NEXT_OPTIMIZE_FONTS&&!S&&C.type==="link"&&C.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(I=>C.props.href.startsWith(I))){const I={...C.props||{}};return I["data-href"]=I.href,I.href=void 0,I["data-optimized-fonts"]=!0,i.default.cloneElement(C,I)}if(process.env.NODE_ENV==="development")if(C.type==="script"&&C.props.type!=="application/ld+json"){const I=C.props.src?'<script> tag with src="'+C.props.src+'"':"inline <script>";(0,p.warnOnce)("Do not add <script> tags using next/head (see "+I+`). Use next/script instead.
14
+ See more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`)}else C.type==="link"&&C.props.rel==="stylesheet"&&(0,p.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="'+C.props.href+`"). Use Document instead.
15
+ See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);return i.default.cloneElement(C,{key:x})})}function g(R){let{children:_}=R;const S=(0,i.useContext)(s.AmpStateContext),C=(0,i.useContext)(u.HeadManagerContext);return i.default.createElement(a.default,{reduceComponentsToState:y,headManager:C,inAmpMode:(0,l.isInAmpMode)(S)},_)}const v=g;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(It,It.exports)),It.exports}var Sr={},ui;function Bd(){return ui||(ui=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return o}});const r=Re._(B),n=Bt,o=r.default.createContext(n.imageConfigDefault);process.env.NODE_ENV!=="production"&&(o.displayName="ImageConfigContext")}(Sr)),Sr}var Ar={},Rr={},Er={exports:{}};const Hd={},zd=Object.freeze(Object.defineProperty({__proto__:null,default:Hd},Symbol.toStringTag,{value:"Module"})),Fd=el(zd);var wr={},jr={},Ir,li;function Js(){return li||(li=1,Ir=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==o||s.enumerable!==!0)return!1}return!0}),Ir}var Pr,di;function Ht(){if(di)return Pr;di=1;var e=Js();return Pr=function(){return e()&&!!Symbol.toStringTag},Pr}var Nr,fi;function ec(){return fi||(fi=1,Nr=Object),Nr}var Or,pi;function Ud(){return pi||(pi=1,Or=Error),Or}var Tr,mi;function Wd(){return mi||(mi=1,Tr=EvalError),Tr}var Mr,hi;function Gd(){return hi||(hi=1,Mr=RangeError),Mr}var kr,gi;function Vd(){return gi||(gi=1,kr=ReferenceError),kr}var Lr,yi;function tc(){return yi||(yi=1,Lr=SyntaxError),Lr}var Dr,_i;function lt(){return _i||(_i=1,Dr=TypeError),Dr}var $r,vi;function Kd(){return vi||(vi=1,$r=URIError),$r}var qr,bi;function Xd(){return bi||(bi=1,qr=Math.abs),qr}var Br,xi;function Qd(){return xi||(xi=1,Br=Math.floor),Br}var Hr,Ci;function Yd(){return Ci||(Ci=1,Hr=Math.max),Hr}var zr,Si;function Zd(){return Si||(Si=1,zr=Math.min),zr}var Fr,Ai;function Jd(){return Ai||(Ai=1,Fr=Math.pow),Fr}var Ur,Ri;function ef(){return Ri||(Ri=1,Ur=Math.round),Ur}var Wr,Ei;function tf(){return Ei||(Ei=1,Wr=Number.isNaN||function(t){return t!==t}),Wr}var Gr,wi;function rf(){if(wi)return Gr;wi=1;var e=tf();return Gr=function(r){return e(r)||r===0?r:r<0?-1:1},Gr}var Vr,ji;function nf(){return ji||(ji=1,Vr=Object.getOwnPropertyDescriptor),Vr}var Kr,Ii;function Je(){if(Ii)return Kr;Ii=1;var e=nf();if(e)try{e([],"length")}catch{e=null}return Kr=e,Kr}var Xr,Pi;function zt(){if(Pi)return Xr;Pi=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Xr=e,Xr}var Qr,Ni;function of(){if(Ni)return Qr;Ni=1;var e=typeof Symbol<"u"&&Symbol,t=Js();return Qr=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Qr}var Yr,Oi;function rc(){return Oi||(Oi=1,Yr=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Yr}var Zr,Ti;function nc(){if(Ti)return Zr;Ti=1;var e=ec();return Zr=e.getPrototypeOf||null,Zr}var Jr,Mi;function af(){if(Mi)return Jr;Mi=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(u,l){for(var p=[],m=0;m<u.length;m+=1)p[m]=u[m];for(var d=0;d<l.length;d+=1)p[d+u.length]=l[d];return p},i=function(u,l){for(var p=[],m=l,d=0;m<u.length;m+=1,d+=1)p[d]=u[m];return p},a=function(s,u){for(var l="",p=0;p<s.length;p+=1)l+=s[p],p+1<s.length&&(l+=u);return l};return Jr=function(u){var l=this;if(typeof l!="function"||t.apply(l)!==n)throw new TypeError(e+l);for(var p=i(arguments,1),m,d=function(){if(this instanceof m){var v=l.apply(this,o(p,arguments));return Object(v)===v?v:this}return l.apply(u,o(p,arguments))},f=r(0,l.length-p.length),h=[],y=0;y<f;y++)h[y]="$"+y;if(m=Function("binder","return function ("+a(h,",")+"){ return binder.apply(this,arguments); }")(d),l.prototype){var g=function(){};g.prototype=l.prototype,m.prototype=new g,g.prototype=null}return m},Jr}var en,ki;function dt(){if(ki)return en;ki=1;var e=af();return en=Function.prototype.bind||e,en}var tn,Li;function no(){return Li||(Li=1,tn=Function.prototype.call),tn}var rn,Di;function oo(){return Di||(Di=1,rn=Function.prototype.apply),rn}var nn,$i;function sf(){return $i||($i=1,nn=typeof Reflect<"u"&&Reflect&&Reflect.apply),nn}var on,qi;function oc(){if(qi)return on;qi=1;var e=dt(),t=oo(),r=no(),n=sf();return on=n||e.call(r,t),on}var an,Bi;function io(){if(Bi)return an;Bi=1;var e=dt(),t=lt(),r=no(),n=oc();return an=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},an}var sn,Hi;function cf(){if(Hi)return sn;Hi=1;var e=io(),t=Je(),r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!r&&t&&t(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return sn=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(s){return i(s==null?s:o(s))}:!1,sn}var cn,zi;function ao(){if(zi)return cn;zi=1;var e=rc(),t=nc(),r=cf();return cn=e?function(o){return e(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:r?function(o){return r(o)}:null,cn}var un,Fi;function ic(){if(Fi)return un;Fi=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=dt();return un=r.call(e,t),un}var ln,Ui;function ac(){if(Ui)return ln;Ui=1;var e,t=ec(),r=Ud(),n=Wd(),o=Gd(),i=Vd(),a=tc(),s=lt(),u=Kd(),l=Xd(),p=Qd(),m=Yd(),d=Zd(),f=Jd(),h=ef(),y=rf(),g=Function,v=function(J){try{return g('"use strict"; return ('+J+").constructor;")()}catch{}},R=Je(),_=zt(),S=function(){throw new s},C=R?function(){try{return arguments.callee,S}catch{try{return R(arguments,"callee").get}catch{return S}}}():S,w=of()(),x=ao(),I=nc(),$=rc(),A=oo(),N=no(),j={},k=typeof Uint8Array>"u"||!x?e:x(Uint8Array),P={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":w&&x?x([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":j,"%AsyncGenerator%":j,"%AsyncGeneratorFunction%":j,"%AsyncIteratorPrototype%":j,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":j,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&x?x(x([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!w||!x?e:x(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":R,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!w||!x?e:x(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&x?x(""[Symbol.iterator]()):e,"%Symbol%":w?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":C,"%TypedArray%":k,"%TypeError%":s,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":N,"%Function.prototype.apply%":A,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":I,"%Math.abs%":l,"%Math.floor%":p,"%Math.max%":m,"%Math.min%":d,"%Math.pow%":f,"%Math.round%":h,"%Math.sign%":y,"%Reflect.getPrototypeOf%":$};if(x)try{null.error}catch(J){var q=x(x(J));P["%Error.prototype%"]=q}var z=function J(Q){var ee;if(Q==="%AsyncFunction%")ee=v("async function () {}");else if(Q==="%GeneratorFunction%")ee=v("function* () {}");else if(Q==="%AsyncGeneratorFunction%")ee=v("async function* () {}");else if(Q==="%AsyncGenerator%"){var L=J("%AsyncGeneratorFunction%");L&&(ee=L.prototype)}else if(Q==="%AsyncIteratorPrototype%"){var O=J("%AsyncGenerator%");O&&x&&(ee=x(O.prototype))}return P[Q]=ee,ee},G={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Y=dt(),V=ic(),F=Y.call(N,Array.prototype.concat),oe=Y.call(A,Array.prototype.splice),E=Y.call(N,String.prototype.replace),T=Y.call(N,String.prototype.slice),D=Y.call(N,RegExp.prototype.exec),K=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,te=/\\(\\)?/g,Z=function(Q){var ee=T(Q,0,1),L=T(Q,-1);if(ee==="%"&&L!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(L==="%"&&ee!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var O=[];return E(Q,K,function(re,ae,ce,ue){O[O.length]=ce?E(ue,te,"$1"):ae||re}),O},M=function(Q,ee){var L=Q,O;if(V(G,L)&&(O=G[L],L="%"+O[0]+"%"),V(P,L)){var re=P[L];if(re===j&&(re=z(L)),typeof re>"u"&&!ee)throw new s("intrinsic "+Q+" exists, but is not available. Please file an issue!");return{alias:O,name:L,value:re}}throw new a("intrinsic "+Q+" does not exist!")};return ln=function(Q,ee){if(typeof Q!="string"||Q.length===0)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ee!="boolean")throw new s('"allowMissing" argument must be a boolean');if(D(/^%?[^%]*%?$/,Q)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var L=Z(Q),O=L.length>0?L[0]:"",re=M("%"+O+"%",ee),ae=re.name,ce=re.value,ue=!1,se=re.alias;se&&(O=se[0],oe(L,F([0,1],se)));for(var H=1,he=!0;H<L.length;H+=1){var ie=L[H],me=T(ie,0,1),U=T(ie,-1);if((me==='"'||me==="'"||me==="`"||U==='"'||U==="'"||U==="`")&&me!==U)throw new a("property names with quotes must have matching quotes");if((ie==="constructor"||!he)&&(ue=!0),O+="."+ie,ae="%"+O+"%",V(P,ae))ce=P[ae];else if(ce!=null){if(!(ie in ce)){if(!ee)throw new s("base intrinsic for "+Q+" exists, but the property is not available.");return}if(R&&H+1>=L.length){var le=R(ce,ie);he=!!le,he&&"get"in le&&!("originalValue"in le.get)?ce=le.get:ce=ce[ie]}else he=V(ce,ie),ce=ce[ie];he&&!ue&&(P[ae]=ce)}}return ce},ln}var dn,Wi;function ft(){if(Wi)return dn;Wi=1;var e=ac(),t=io(),r=t([e("%String.prototype.indexOf%")]);return dn=function(o,i){var a=e(o,!!i);return typeof a=="function"&&r(o,".prototype.")>-1?t([a]):a},dn}var fn,Gi;function uf(){if(Gi)return fn;Gi=1;var e=Ht()(),t=ft(),r=t("Object.prototype.toString"),n=function(s){return e&&s&&typeof s=="object"&&Symbol.toStringTag in s?!1:r(s)==="[object Arguments]"},o=function(s){return n(s)?!0:s!==null&&typeof s=="object"&&"length"in s&&typeof s.length=="number"&&s.length>=0&&r(s)!=="[object Array]"&&"callee"in s&&r(s.callee)==="[object Function]"},i=function(){return n(arguments)}();return n.isLegacyArguments=o,fn=i?n:o,fn}var pn,Vi;function lf(){if(Vi)return pn;Vi=1;var e=ft(),t=Ht()(),r=ic(),n=Je(),o;if(t){var i=e("RegExp.prototype.exec"),a={},s=function(){throw a},u={toString:s,valueOf:s};typeof Symbol.toPrimitive=="symbol"&&(u[Symbol.toPrimitive]=s),o=function(d){if(!d||typeof d!="object")return!1;var f=n(d,"lastIndex"),h=f&&r(f,"value");if(!h)return!1;try{i(d,u)}catch(y){return y===a}}}else{var l=e("Object.prototype.toString"),p="[object RegExp]";o=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:l(d)===p}}return pn=o,pn}var mn,Ki;function df(){if(Ki)return mn;Ki=1;var e=ft(),t=lf(),r=e("RegExp.prototype.exec"),n=lt();return mn=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(s){return r(i,s)!==null}},mn}var hn,Xi;function ff(){if(Xi)return hn;Xi=1;var e=ft(),t=df(),r=t(/^\s*(?:function)?\*/),n=Ht()(),o=ao(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),s=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},u;return hn=function(p){if(typeof p!="function")return!1;if(r(a(p)))return!0;if(!n){var m=i(p);return m==="[object GeneratorFunction]"}if(!o)return!1;if(typeof u>"u"){var d=s();u=d?o(d):!1}return o(p)===u},hn}var gn,Qi;function pf(){if(Qi)return gn;Qi=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(R){R!==n&&(t=null)}else t=null;var o=/^\s*class\b/,i=function(_){try{var S=e.call(_);return o.test(S)}catch{return!1}},a=function(_){try{return i(_)?!1:(e.call(_),!0)}catch{return!1}},s=Object.prototype.toString,u="[object Object]",l="[object Function]",p="[object GeneratorFunction]",m="[object HTMLAllCollection]",d="[object HTML document.all class]",f="[object HTMLCollection]",h=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),g=function(){return!1};if(typeof document=="object"){var v=document.all;s.call(v)===s.call(document.all)&&(g=function(_){if((y||!_)&&(typeof _>"u"||typeof _=="object"))try{var S=s.call(_);return(S===m||S===d||S===f||S===u)&&_("")==null}catch{}return!1})}return gn=t?function(_){if(g(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;try{t(_,null,r)}catch(S){if(S!==n)return!1}return!i(_)&&a(_)}:function(_){if(g(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;if(h)return a(_);if(i(_))return!1;var S=s.call(_);return S!==l&&S!==p&&!/^\[object HTML/.test(S)?!1:a(_)},gn}var yn,Yi;function mf(){if(Yi)return yn;Yi=1;var e=pf(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(u,l,p){for(var m=0,d=u.length;m<d;m++)r.call(u,m)&&(p==null?l(u[m],m,u):l.call(p,u[m],m,u))},o=function(u,l,p){for(var m=0,d=u.length;m<d;m++)p==null?l(u.charAt(m),m,u):l.call(p,u.charAt(m),m,u)},i=function(u,l,p){for(var m in u)r.call(u,m)&&(p==null?l(u[m],m,u):l.call(p,u[m],m,u))};function a(s){return t.call(s)==="[object Array]"}return yn=function(u,l,p){if(!e(l))throw new TypeError("iterator must be a function");var m;arguments.length>=3&&(m=p),a(u)?n(u,l,m):typeof u=="string"?o(u,l,m):i(u,l,m)},yn}var _n,Zi;function hf(){return Zi||(Zi=1,_n=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),_n}var vn,Ji;function gf(){if(Ji)return vn;Ji=1;var e=hf(),t=typeof globalThis>"u"?Es:globalThis;return vn=function(){for(var n=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(n[n.length]=e[o]);return n},vn}var bn={exports:{}},xn,ea;function yf(){if(ea)return xn;ea=1;var e=zt(),t=tc(),r=lt(),n=Je();return xn=function(i,a,s){if(!i||typeof i!="object"&&typeof i!="function")throw new r("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,p=arguments.length>5?arguments[5]:null,m=arguments.length>6?arguments[6]:!1,d=!!n&&n(i,a);if(e)e(i,a,{configurable:p===null&&d?d.configurable:!p,enumerable:u===null&&d?d.enumerable:!u,value:s,writable:l===null&&d?d.writable:!l});else if(m||!u&&!l&&!p)i[a]=s;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},xn}var Cn,ta;function _f(){if(ta)return Cn;ta=1;var e=zt(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Cn=t,Cn}var Sn,ra;function vf(){if(ra)return Sn;ra=1;var e=ac(),t=yf(),r=_f()(),n=Je(),o=lt(),i=e("%Math.floor%");return Sn=function(s,u){if(typeof s!="function")throw new o("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||i(u)!==u)throw new o("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],p=!0,m=!0;if("length"in s&&n){var d=n(s,"length");d&&!d.configurable&&(p=!1),d&&!d.writable&&(m=!1)}return(p||m||!l)&&(r?t(s,"length",u,!0,!0):t(s,"length",u)),s},Sn}var An,na;function bf(){if(na)return An;na=1;var e=dt(),t=oo(),r=oc();return An=function(){return r(e,t,arguments)},An}var oa;function xf(){return oa||(oa=1,function(e){var t=vf(),r=zt(),n=io(),o=bf();e.exports=function(a){var s=n(arguments),u=a.length-(arguments.length-1);return t(s,1+(u>0?u:0),!0)},r?r(e.exports,"apply",{value:o}):e.exports.apply=o}(bn)),bn.exports}var Rn,ia;function sc(){if(ia)return Rn;ia=1;var e=mf(),t=gf(),r=xf(),n=ft(),o=Je(),i=ao(),a=n("Object.prototype.toString"),s=Ht()(),u=typeof globalThis>"u"?Es:globalThis,l=t(),p=n("String.prototype.slice"),m=n("Array.prototype.indexOf",!0)||function(g,v){for(var R=0;R<g.length;R+=1)if(g[R]===v)return R;return-1},d={__proto__:null};s&&o&&i?e(l,function(y){var g=new u[y];if(Symbol.toStringTag in g&&i){var v=i(g),R=o(v,Symbol.toStringTag);if(!R&&v){var _=i(v);R=o(_,Symbol.toStringTag)}d["$"+y]=r(R.get)}}):e(l,function(y){var g=new u[y],v=g.slice||g.set;v&&(d["$"+y]=r(v))});var f=function(g){var v=!1;return e(d,function(R,_){if(!v)try{"$"+R(g)===_&&(v=p(_,1))}catch{}}),v},h=function(g){var v=!1;return e(d,function(R,_){if(!v)try{R(g),v=p(_,1)}catch{}}),v};return Rn=function(g){if(!g||typeof g!="object")return!1;if(!s){var v=p(a(g),8,-1);return m(l,v)>-1?v:v!=="Object"?!1:h(g)}return o?f(g):null},Rn}var En,aa;function Cf(){if(aa)return En;aa=1;var e=sc();return En=function(r){return!!e(r)},En}var sa;function Sf(){return sa||(sa=1,function(e){var t=uf(),r=ff(),n=sc(),o=Cf();function i(H){return H.call.bind(H)}var a=typeof BigInt<"u",s=typeof Symbol<"u",u=i(Object.prototype.toString),l=i(Number.prototype.valueOf),p=i(String.prototype.valueOf),m=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(s)var f=i(Symbol.prototype.valueOf);function h(H,he){if(typeof H!="object")return!1;try{return he(H),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=o;function y(H){return typeof Promise<"u"&&H instanceof Promise||H!==null&&typeof H=="object"&&typeof H.then=="function"&&typeof H.catch=="function"}e.isPromise=y;function g(H){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(H):o(H)||T(H)}e.isArrayBufferView=g;function v(H){return n(H)==="Uint8Array"}e.isUint8Array=v;function R(H){return n(H)==="Uint8ClampedArray"}e.isUint8ClampedArray=R;function _(H){return n(H)==="Uint16Array"}e.isUint16Array=_;function S(H){return n(H)==="Uint32Array"}e.isUint32Array=S;function C(H){return n(H)==="Int8Array"}e.isInt8Array=C;function w(H){return n(H)==="Int16Array"}e.isInt16Array=w;function x(H){return n(H)==="Int32Array"}e.isInt32Array=x;function I(H){return n(H)==="Float32Array"}e.isFloat32Array=I;function $(H){return n(H)==="Float64Array"}e.isFloat64Array=$;function A(H){return n(H)==="BigInt64Array"}e.isBigInt64Array=A;function N(H){return n(H)==="BigUint64Array"}e.isBigUint64Array=N;function j(H){return u(H)==="[object Map]"}j.working=typeof Map<"u"&&j(new Map);function k(H){return typeof Map>"u"?!1:j.working?j(H):H instanceof Map}e.isMap=k;function P(H){return u(H)==="[object Set]"}P.working=typeof Set<"u"&&P(new Set);function q(H){return typeof Set>"u"?!1:P.working?P(H):H instanceof Set}e.isSet=q;function z(H){return u(H)==="[object WeakMap]"}z.working=typeof WeakMap<"u"&&z(new WeakMap);function G(H){return typeof WeakMap>"u"?!1:z.working?z(H):H instanceof WeakMap}e.isWeakMap=G;function Y(H){return u(H)==="[object WeakSet]"}Y.working=typeof WeakSet<"u"&&Y(new WeakSet);function V(H){return Y(H)}e.isWeakSet=V;function F(H){return u(H)==="[object ArrayBuffer]"}F.working=typeof ArrayBuffer<"u"&&F(new ArrayBuffer);function oe(H){return typeof ArrayBuffer>"u"?!1:F.working?F(H):H instanceof ArrayBuffer}e.isArrayBuffer=oe;function E(H){return u(H)==="[object DataView]"}E.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&E(new DataView(new ArrayBuffer(1),0,1));function T(H){return typeof DataView>"u"?!1:E.working?E(H):H instanceof DataView}e.isDataView=T;var D=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function K(H){return u(H)==="[object SharedArrayBuffer]"}function te(H){return typeof D>"u"?!1:(typeof K.working>"u"&&(K.working=K(new D)),K.working?K(H):H instanceof D)}e.isSharedArrayBuffer=te;function Z(H){return u(H)==="[object AsyncFunction]"}e.isAsyncFunction=Z;function M(H){return u(H)==="[object Map Iterator]"}e.isMapIterator=M;function J(H){return u(H)==="[object Set Iterator]"}e.isSetIterator=J;function Q(H){return u(H)==="[object Generator]"}e.isGeneratorObject=Q;function ee(H){return u(H)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=ee;function L(H){return h(H,l)}e.isNumberObject=L;function O(H){return h(H,p)}e.isStringObject=O;function re(H){return h(H,m)}e.isBooleanObject=re;function ae(H){return a&&h(H,d)}e.isBigIntObject=ae;function ce(H){return s&&h(H,f)}e.isSymbolObject=ce;function ue(H){return L(H)||O(H)||re(H)||ae(H)||ce(H)}e.isBoxedPrimitive=ue;function se(H){return typeof Uint8Array<"u"&&(oe(H)||te(H))}e.isAnyArrayBuffer=se,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(H){Object.defineProperty(e,H,{enumerable:!1,value:function(){throw new Error(H+" is not supported in userland")}})})}(jr)),jr}var wn,ca;function Af(){return ca||(ca=1,wn=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),wn}var Pt={exports:{}},ua;function Rf(){return ua||(ua=1,typeof Object.create=="function"?Pt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Pt.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),Pt.exports}var la;function Ef(){return la||(la=1,function(e){var t=Object.getOwnPropertyDescriptors||function(T){for(var D=Object.keys(T),K={},te=0;te<D.length;te++)K[D[te]]=Object.getOwnPropertyDescriptor(T,D[te]);return K},r=/%[sdj%]/g;e.format=function(E){if(!C(E)){for(var T=[],D=0;D<arguments.length;D++)T.push(a(arguments[D]));return T.join(" ")}for(var D=1,K=arguments,te=K.length,Z=String(E).replace(r,function(J){if(J==="%%")return"%";if(D>=te)return J;switch(J){case"%s":return String(K[D++]);case"%d":return Number(K[D++]);case"%j":try{return JSON.stringify(K[D++])}catch{return"[Circular]"}default:return J}}),M=K[D];D<te;M=K[++D])R(M)||!$(M)?Z+=" "+M:Z+=" "+a(M);return Z},e.deprecate=function(E,T){if(typeof process<"u"&&process.noDeprecation===!0)return E;if(typeof process>"u")return function(){return e.deprecate(E,T).apply(this,arguments)};var D=!1;function K(){if(!D){if(process.throwDeprecation)throw new Error(T);process.traceDeprecation?console.trace(T):console.error(T),D=!0}return E.apply(this,arguments)}return K};var n={},o=/^$/;if(process.env.NODE_DEBUG){var i=process.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+i+"$","i")}e.debuglog=function(E){if(E=E.toUpperCase(),!n[E])if(o.test(E)){var T=process.pid;n[E]=function(){var D=e.format.apply(e,arguments);console.error("%s %d: %s",E,T,D)}}else n[E]=function(){};return n[E]};function a(E,T){var D={seen:[],stylize:u};return arguments.length>=3&&(D.depth=arguments[2]),arguments.length>=4&&(D.colors=arguments[3]),v(T)?D.showHidden=T:T&&e._extend(D,T),x(D.showHidden)&&(D.showHidden=!1),x(D.depth)&&(D.depth=2),x(D.colors)&&(D.colors=!1),x(D.customInspect)&&(D.customInspect=!0),D.colors&&(D.stylize=s),p(D,E,D.depth)}e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s(E,T){var D=a.styles[T];return D?"\x1B["+a.colors[D][0]+"m"+E+"\x1B["+a.colors[D][1]+"m":E}function u(E,T){return E}function l(E){var T={};return E.forEach(function(D,K){T[D]=!0}),T}function p(E,T,D){if(E.customInspect&&T&&j(T.inspect)&&T.inspect!==e.inspect&&!(T.constructor&&T.constructor.prototype===T)){var K=T.inspect(D,E);return C(K)||(K=p(E,K,D)),K}var te=m(E,T);if(te)return te;var Z=Object.keys(T),M=l(Z);if(E.showHidden&&(Z=Object.getOwnPropertyNames(T)),N(T)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return d(T);if(Z.length===0){if(j(T)){var J=T.name?": "+T.name:"";return E.stylize("[Function"+J+"]","special")}if(I(T))return E.stylize(RegExp.prototype.toString.call(T),"regexp");if(A(T))return E.stylize(Date.prototype.toString.call(T),"date");if(N(T))return d(T)}var Q="",ee=!1,L=["{","}"];if(g(T)&&(ee=!0,L=["[","]"]),j(T)){var O=T.name?": "+T.name:"";Q=" [Function"+O+"]"}if(I(T)&&(Q=" "+RegExp.prototype.toString.call(T)),A(T)&&(Q=" "+Date.prototype.toUTCString.call(T)),N(T)&&(Q=" "+d(T)),Z.length===0&&(!ee||T.length==0))return L[0]+Q+L[1];if(D<0)return I(T)?E.stylize(RegExp.prototype.toString.call(T),"regexp"):E.stylize("[Object]","special");E.seen.push(T);var re;return ee?re=f(E,T,D,M,Z):re=Z.map(function(ae){return h(E,T,D,M,ae,ee)}),E.seen.pop(),y(re,Q,L)}function m(E,T){if(x(T))return E.stylize("undefined","undefined");if(C(T)){var D="'"+JSON.stringify(T).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return E.stylize(D,"string")}if(S(T))return E.stylize(""+T,"number");if(v(T))return E.stylize(""+T,"boolean");if(R(T))return E.stylize("null","null")}function d(E){return"["+Error.prototype.toString.call(E)+"]"}function f(E,T,D,K,te){for(var Z=[],M=0,J=T.length;M<J;++M)Y(T,String(M))?Z.push(h(E,T,D,K,String(M),!0)):Z.push("");return te.forEach(function(Q){Q.match(/^\d+$/)||Z.push(h(E,T,D,K,Q,!0))}),Z}function h(E,T,D,K,te,Z){var M,J,Q;if(Q=Object.getOwnPropertyDescriptor(T,te)||{value:T[te]},Q.get?Q.set?J=E.stylize("[Getter/Setter]","special"):J=E.stylize("[Getter]","special"):Q.set&&(J=E.stylize("[Setter]","special")),Y(K,te)||(M="["+te+"]"),J||(E.seen.indexOf(Q.value)<0?(R(D)?J=p(E,Q.value,null):J=p(E,Q.value,D-1),J.indexOf(`
16
+ `)>-1&&(Z?J=J.split(`
17
+ `).map(function(ee){return" "+ee}).join(`
18
+ `).slice(2):J=`
19
+ `+J.split(`
20
+ `).map(function(ee){return" "+ee}).join(`
21
+ `))):J=E.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=E.stylize(M,"name")):(M=M.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),M=E.stylize(M,"string"))}return M+": "+J}function y(E,T,D){var K=E.reduce(function(te,Z){return Z.indexOf(`
22
+ `)>=0,te+Z.replace(/\u001b\[\d\d?m/g,"").length+1},0);return K>60?D[0]+(T===""?"":T+`
23
+ `)+" "+E.join(`,
24
+ `)+" "+D[1]:D[0]+T+" "+E.join(", ")+" "+D[1]}e.types=Sf();function g(E){return Array.isArray(E)}e.isArray=g;function v(E){return typeof E=="boolean"}e.isBoolean=v;function R(E){return E===null}e.isNull=R;function _(E){return E==null}e.isNullOrUndefined=_;function S(E){return typeof E=="number"}e.isNumber=S;function C(E){return typeof E=="string"}e.isString=C;function w(E){return typeof E=="symbol"}e.isSymbol=w;function x(E){return E===void 0}e.isUndefined=x;function I(E){return $(E)&&P(E)==="[object RegExp]"}e.isRegExp=I,e.types.isRegExp=I;function $(E){return typeof E=="object"&&E!==null}e.isObject=$;function A(E){return $(E)&&P(E)==="[object Date]"}e.isDate=A,e.types.isDate=A;function N(E){return $(E)&&(P(E)==="[object Error]"||E instanceof Error)}e.isError=N,e.types.isNativeError=N;function j(E){return typeof E=="function"}e.isFunction=j;function k(E){return E===null||typeof E=="boolean"||typeof E=="number"||typeof E=="string"||typeof E=="symbol"||typeof E>"u"}e.isPrimitive=k,e.isBuffer=Af();function P(E){return Object.prototype.toString.call(E)}function q(E){return E<10?"0"+E.toString(10):E.toString(10)}var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function G(){var E=new Date,T=[q(E.getHours()),q(E.getMinutes()),q(E.getSeconds())].join(":");return[E.getDate(),z[E.getMonth()],T].join(" ")}e.log=function(){console.log("%s - %s",G(),e.format.apply(e,arguments))},e.inherits=Rf(),e._extend=function(E,T){if(!T||!$(T))return E;for(var D=Object.keys(T),K=D.length;K--;)E[D[K]]=T[D[K]];return E};function Y(E,T){return Object.prototype.hasOwnProperty.call(E,T)}var V=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(V&&T[V]){var D=T[V];if(typeof D!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(D,V,{value:D,enumerable:!1,writable:!1,configurable:!0}),D}function D(){for(var K,te,Z=new Promise(function(Q,ee){K=Q,te=ee}),M=[],J=0;J<arguments.length;J++)M.push(arguments[J]);M.push(function(Q,ee){Q?te(Q):K(ee)});try{T.apply(this,M)}catch(Q){te(Q)}return Z}return Object.setPrototypeOf(D,Object.getPrototypeOf(T)),V&&Object.defineProperty(D,V,{value:D,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(D,t(T))},e.promisify.custom=V;function F(E,T){if(!E){var D=new Error("Promise was rejected with a falsy value");D.reason=E,E=D}return T(E)}function oe(E){if(typeof E!="function")throw new TypeError('The "original" argument must be of type Function');function T(){for(var D=[],K=0;K<arguments.length;K++)D.push(arguments[K]);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)};E.apply(this,D).then(function(J){process.nextTick(M.bind(null,null,J))},function(J){process.nextTick(F.bind(null,J,M))})}return Object.setPrototypeOf(T,Object.getPrototypeOf(E)),Object.defineProperties(T,t(E)),T}e.callbackify=oe}(wr)),wr}var da;function wf(){return da||(da=1,(()=>{var e={333:(o,i,a)=>{const s=a(137),u=a(179),l=a(13),p=a(719),m=(d,f={})=>{let h=[];if(Array.isArray(d))for(let y of d){let g=m.create(y,f);Array.isArray(g)?h.push(...g):h.push(g)}else h=[].concat(m.create(d,f));return f&&f.expand===!0&&f.nodupes===!0&&(h=[...new Set(h)]),h};m.parse=(d,f={})=>p(d,f),m.stringify=(d,f={})=>s(typeof d=="string"?m.parse(d,f):d,f),m.compile=(d,f={})=>(typeof d=="string"&&(d=m.parse(d,f)),u(d,f)),m.expand=(d,f={})=>{typeof d=="string"&&(d=m.parse(d,f));let h=l(d,f);return f.noempty===!0&&(h=h.filter(Boolean)),f.nodupes===!0&&(h=[...new Set(h)]),h},m.create=(d,f={})=>d===""||d.length<3?[d]:f.expand!==!0?m.compile(d,f):m.expand(d,f),o.exports=m},179:(o,i,a)=>{const s=a(783),u=a(617),l=(p,m={})=>{let d=(f,h={})=>{let y=u.isInvalidBrace(h),g=f.invalid===!0&&m.escapeInvalid===!0,v=y===!0||g===!0,R=m.escapeInvalid===!0?"\\":"",_="";if(f.isOpen===!0||f.isClose===!0)return R+f.value;if(f.type==="open")return v?R+f.value:"(";if(f.type==="close")return v?R+f.value:")";if(f.type==="comma")return f.prev.type==="comma"?"":v?f.value:"|";if(f.value)return f.value;if(f.nodes&&f.ranges>0){let S=u.reduce(f.nodes),C=s(...S,{...m,wrap:!1,toRegex:!0});if(C.length!==0)return S.length>1&&C.length>1?`(${C})`:C}if(f.nodes)for(let S of f.nodes)_+=d(S,f);return _};return d(p)};o.exports=l},457:o=>{o.exports={MAX_LENGTH:65536,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
25
+ `,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}},13:(o,i,a)=>{const s=a(783),u=a(137),l=a(617),p=(d="",f="",h=!1)=>{let y=[];if(d=[].concat(d),f=[].concat(f),!f.length)return d;if(!d.length)return h?l.flatten(f).map(g=>`{${g}}`):f;for(let g of d)if(Array.isArray(g))for(let v of g)y.push(p(v,f,h));else for(let v of f)h===!0&&typeof v=="string"&&(v=`{${v}}`),y.push(Array.isArray(v)?p(g,v,h):g+v);return l.flatten(y)},m=(d,f={})=>{let h=f.rangeLimit===void 0?1e3:f.rangeLimit,y=(g,v={})=>{g.queue=[];let R=v,_=v.queue;for(;R.type!=="brace"&&R.type!=="root"&&R.parent;)R=R.parent,_=R.queue;if(g.invalid||g.dollar){_.push(p(_.pop(),u(g,f)));return}if(g.type==="brace"&&g.invalid!==!0&&g.nodes.length===2){_.push(p(_.pop(),["{}"]));return}if(g.nodes&&g.ranges>0){let x=l.reduce(g.nodes);if(l.exceedsLimit(...x,f.step,h))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let I=s(...x,f);I.length===0&&(I=u(g,f)),_.push(p(_.pop(),I)),g.nodes=[];return}let S=l.encloseBrace(g),C=g.queue,w=g;for(;w.type!=="brace"&&w.type!=="root"&&w.parent;)w=w.parent,C=w.queue;for(let x=0;x<g.nodes.length;x++){let I=g.nodes[x];if(I.type==="comma"&&g.type==="brace"){x===1&&C.push(""),C.push("");continue}if(I.type==="close"){_.push(p(_.pop(),C,S));continue}if(I.value&&I.type!=="open"){C.push(p(C.pop(),I.value));continue}I.nodes&&y(I,g)}return C};return l.flatten(y(d))};o.exports=m},719:(o,i,a)=>{const s=a(137),{MAX_LENGTH:u,CHAR_BACKSLASH:l,CHAR_BACKTICK:p,CHAR_COMMA:m,CHAR_DOT:d,CHAR_LEFT_PARENTHESES:f,CHAR_RIGHT_PARENTHESES:h,CHAR_LEFT_CURLY_BRACE:y,CHAR_RIGHT_CURLY_BRACE:g,CHAR_LEFT_SQUARE_BRACKET:v,CHAR_RIGHT_SQUARE_BRACKET:R,CHAR_DOUBLE_QUOTE:_,CHAR_SINGLE_QUOTE:S,CHAR_NO_BREAK_SPACE:C,CHAR_ZERO_WIDTH_NOBREAK_SPACE:w}=a(457),x=(I,$={})=>{if(typeof I!="string")throw new TypeError("Expected a string");let A=$||{},N=typeof A.maxLength=="number"?Math.min(u,A.maxLength):u;if(I.length>N)throw new SyntaxError(`Input length (${I.length}), exceeds max characters (${N})`);let j={type:"root",input:I,nodes:[]},k=[j],P=j,q=j,z=0,G=I.length,Y=0,V=0,F;const oe=()=>I[Y++],E=T=>{if(T.type==="text"&&q.type==="dot"&&(q.type="text"),q&&q.type==="text"&&T.type==="text"){q.value+=T.value;return}return P.nodes.push(T),T.parent=P,T.prev=q,q=T,T};for(E({type:"bos"});Y<G;)if(P=k[k.length-1],F=oe(),!(F===w||F===C)){if(F===l){E({type:"text",value:($.keepEscaping?F:"")+oe()});continue}if(F===R){E({type:"text",value:"\\"+F});continue}if(F===v){z++;let T;for(;Y<G&&(T=oe());){if(F+=T,T===v){z++;continue}if(T===l){F+=oe();continue}if(T===R&&(z--,z===0))break}E({type:"text",value:F});continue}if(F===f){P=E({type:"paren",nodes:[]}),k.push(P),E({type:"text",value:F});continue}if(F===h){if(P.type!=="paren"){E({type:"text",value:F});continue}P=k.pop(),E({type:"text",value:F}),P=k[k.length-1];continue}if(F===_||F===S||F===p){let T=F,D;for($.keepQuotes!==!0&&(F="");Y<G&&(D=oe());){if(D===l){F+=D+oe();continue}if(D===T){$.keepQuotes===!0&&(F+=D);break}F+=D}E({type:"text",value:F});continue}if(F===y){V++;let D={type:"brace",open:!0,close:!1,dollar:q.value&&q.value.slice(-1)==="$"||P.dollar===!0,depth:V,commas:0,ranges:0,nodes:[]};P=E(D),k.push(P),E({type:"open",value:F});continue}if(F===g){if(P.type!=="brace"){E({type:"text",value:F});continue}let T="close";P=k.pop(),P.close=!0,E({type:T,value:F}),V--,P=k[k.length-1];continue}if(F===m&&V>0){if(P.ranges>0){P.ranges=0;let T=P.nodes.shift();P.nodes=[T,{type:"text",value:s(P)}]}E({type:"comma",value:F}),P.commas++;continue}if(F===d&&V>0&&P.commas===0){let T=P.nodes;if(V===0||T.length===0){E({type:"text",value:F});continue}if(q.type==="dot"){if(P.range=[],q.value+=F,q.type="range",P.nodes.length!==3&&P.nodes.length!==5){P.invalid=!0,P.ranges=0,q.type="text";continue}P.ranges++,P.args=[];continue}if(q.type==="range"){T.pop();let D=T[T.length-1];D.value+=q.value+F,q=D,P.ranges--;continue}E({type:"dot",value:F});continue}E({type:"text",value:F})}do if(P=k.pop(),P.type!=="root"){P.nodes.forEach(K=>{K.nodes||(K.type==="open"&&(K.isOpen=!0),K.type==="close"&&(K.isClose=!0),K.nodes||(K.type="text"),K.invalid=!0)});let T=k[k.length-1],D=T.nodes.indexOf(P);T.nodes.splice(D,1,...P.nodes)}while(k.length>0);return E({type:"eos"}),j};o.exports=x},137:(o,i,a)=>{const s=a(617);o.exports=(u,l={})=>{let p=(m,d={})=>{let f=l.escapeInvalid&&s.isInvalidBrace(d),h=m.invalid===!0&&l.escapeInvalid===!0,y="";if(m.value)return(f||h)&&s.isOpenOrClose(m)?"\\"+m.value:m.value;if(m.value)return m.value;if(m.nodes)for(let g of m.nodes)y+=p(g);return y};return p(u)}},617:(o,i)=>{i.isInteger=a=>typeof a=="number"?Number.isInteger(a):typeof a=="string"&&a.trim()!==""?Number.isInteger(Number(a)):!1,i.find=(a,s)=>a.nodes.find(u=>u.type===s),i.exceedsLimit=(a,s,u=1,l)=>l===!1||!i.isInteger(a)||!i.isInteger(s)?!1:(Number(s)-Number(a))/Number(u)>=l,i.escapeNode=(a,s=0,u)=>{let l=a.nodes[s];l&&(u&&l.type===u||l.type==="open"||l.type==="close")&&l.escaped!==!0&&(l.value="\\"+l.value,l.escaped=!0)},i.encloseBrace=a=>a.type!=="brace"||a.commas>>0+a.ranges>>0?!1:(a.invalid=!0,!0),i.isInvalidBrace=a=>a.type!=="brace"?!1:a.invalid===!0||a.dollar?!0:!(a.commas>>0+a.ranges>>0)||a.open!==!0||a.close!==!0?(a.invalid=!0,!0):!1,i.isOpenOrClose=a=>a.type==="open"||a.type==="close"?!0:a.open===!0||a.close===!0,i.reduce=a=>a.reduce((s,u)=>(u.type==="text"&&s.push(u.value),u.type==="range"&&(u.type="text"),s),[]),i.flatten=(...a)=>{const s=[],u=l=>{for(let p=0;p<l.length;p++){let m=l[p];Array.isArray(m)?u(m):m!==void 0&&s.push(m)}return s};return u(a),s}},783:(o,i,a)=>{/*!
26
+ * fill-range <https://github.com/jonschlinkert/fill-range>
27
+ *
28
+ * Copyright (c) 2014-present, Jon Schlinkert.
29
+ * Licensed under the MIT License.
30
+ */const s=a(837),u=a(492),l=A=>A!==null&&typeof A=="object"&&!Array.isArray(A),p=A=>N=>A===!0?Number(N):String(N),m=A=>typeof A=="number"||typeof A=="string"&&A!=="",d=A=>Number.isInteger(+A),f=A=>{let N=`${A}`,j=-1;if(N[0]==="-"&&(N=N.slice(1)),N==="0")return!1;for(;N[++j]==="0";);return j>0},h=(A,N,j)=>typeof A=="string"||typeof N=="string"?!0:j.stringify===!0,y=(A,N,j)=>{if(N>0){let k=A[0]==="-"?"-":"";k&&(A=A.slice(1)),A=k+A.padStart(k?N-1:N,"0")}return j===!1?String(A):A},g=(A,N)=>{let j=A[0]==="-"?"-":"";for(j&&(A=A.slice(1),N--);A.length<N;)A="0"+A;return j?"-"+A:A},v=(A,N)=>{A.negatives.sort((z,G)=>z<G?-1:z>G?1:0),A.positives.sort((z,G)=>z<G?-1:z>G?1:0);let j=N.capture?"":"?:",k="",P="",q;return A.positives.length&&(k=A.positives.join("|")),A.negatives.length&&(P=`-(${j}${A.negatives.join("|")})`),k&&P?q=`${k}|${P}`:q=k||P,N.wrap?`(${j}${q})`:q},R=(A,N,j,k)=>{if(j)return u(A,N,{wrap:!1,...k});let P=String.fromCharCode(A);if(A===N)return P;let q=String.fromCharCode(N);return`[${P}-${q}]`},_=(A,N,j)=>{if(Array.isArray(A)){let k=j.wrap===!0,P=j.capture?"":"?:";return k?`(${P}${A.join("|")})`:A.join("|")}return u(A,N,j)},S=(...A)=>new RangeError("Invalid range arguments: "+s.inspect(...A)),C=(A,N,j)=>{if(j.strictRanges===!0)throw S([A,N]);return[]},w=(A,N)=>{if(N.strictRanges===!0)throw new TypeError(`Expected step "${A}" to be a number`);return[]},x=(A,N,j=1,k={})=>{let P=Number(A),q=Number(N);if(!Number.isInteger(P)||!Number.isInteger(q)){if(k.strictRanges===!0)throw S([A,N]);return[]}P===0&&(P=0),q===0&&(q=0);let z=P>q,G=String(A),Y=String(N),V=String(j);j=Math.max(Math.abs(j),1);let F=f(G)||f(Y)||f(V),oe=F?Math.max(G.length,Y.length,V.length):0,E=F===!1&&h(A,N,k)===!1,T=k.transform||p(E);if(k.toRegex&&j===1)return R(g(A,oe),g(N,oe),!0,k);let D={negatives:[],positives:[]},K=M=>D[M<0?"negatives":"positives"].push(Math.abs(M)),te=[],Z=0;for(;z?P>=q:P<=q;)k.toRegex===!0&&j>1?K(P):te.push(y(T(P,Z),oe,E)),P=z?P-j:P+j,Z++;return k.toRegex===!0?j>1?v(D,k):_(te,null,{wrap:!1,...k}):te},I=(A,N,j=1,k={})=>{if(!d(A)&&A.length>1||!d(N)&&N.length>1)return C(A,N,k);let P=k.transform||(E=>String.fromCharCode(E)),q=`${A}`.charCodeAt(0),z=`${N}`.charCodeAt(0),G=q>z,Y=Math.min(q,z),V=Math.max(q,z);if(k.toRegex&&j===1)return R(Y,V,!1,k);let F=[],oe=0;for(;G?q>=z:q<=z;)F.push(P(q,oe)),q=G?q-j:q+j,oe++;return k.toRegex===!0?_(F,null,{wrap:!1,options:k}):F},$=(A,N,j,k={})=>{if(N==null&&m(A))return[A];if(!m(A)||!m(N))return C(A,N,k);if(typeof j=="function")return $(A,N,1,{transform:j});if(l(j))return $(A,N,0,j);let P={...k};return P.capture===!0&&(P.wrap=!0),j=j||P.step||1,d(j)?d(A)&&d(N)?x(A,N,j,P):I(A,N,Math.max(Math.abs(j),1),P):j!=null&&!l(j)?w(j,P):$(A,N,1,j)};o.exports=$},357:o=>{/*!
31
+ * is-number <https://github.com/jonschlinkert/is-number>
32
+ *
33
+ * Copyright (c) 2014-present, Jon Schlinkert.
34
+ * Released under the MIT License.
35
+ */o.exports=function(i){return typeof i=="number"?i-i===0:typeof i=="string"&&i.trim()!==""?Number.isFinite?Number.isFinite(+i):isFinite(+i):!1}},971:(o,i,a)=>{const s=a(837),u=a(333),l=a(251),p=a(513),m=f=>f===""||f==="./",d=(f,h,y)=>{h=[].concat(h),f=[].concat(f);let g=new Set,v=new Set,R=new Set,_=0,S=x=>{R.add(x.output),y&&y.onResult&&y.onResult(x)};for(let x=0;x<h.length;x++){let I=l(String(h[x]),{...y,onResult:S},!0),$=I.state.negated||I.state.negatedExtglob;$&&_++;for(let A of f){let N=I(A,!0);($?!N.isMatch:N.isMatch)&&($?g.add(N.output):(g.delete(N.output),v.add(N.output)))}}let w=(_===h.length?[...R]:[...v]).filter(x=>!g.has(x));if(y&&w.length===0){if(y.failglob===!0)throw new Error(`No matches found for "${h.join(", ")}"`);if(y.nonull===!0||y.nullglob===!0)return y.unescape?h.map(x=>x.replace(/\\/g,"")):h}return w};d.match=d,d.matcher=(f,h)=>l(f,h),d.isMatch=(f,h,y)=>l(h,y)(f),d.any=d.isMatch,d.not=(f,h,y={})=>{h=[].concat(h).map(String);let g=new Set,v=[],_=d(f,h,{...y,onResult:S=>{y.onResult&&y.onResult(S),v.push(S.output)}});for(let S of v)_.includes(S)||g.add(S);return[...g]},d.contains=(f,h,y)=>{if(typeof f!="string")throw new TypeError(`Expected a string: "${s.inspect(f)}"`);if(Array.isArray(h))return h.some(g=>d.contains(f,g,y));if(typeof h=="string"){if(m(f)||m(h))return!1;if(f.includes(h)||f.startsWith("./")&&f.slice(2).includes(h))return!0}return d.isMatch(f,h,{...y,contains:!0})},d.matchKeys=(f,h,y)=>{if(!p.isObject(f))throw new TypeError("Expected the first argument to be an object");let g=d(Object.keys(f),h,y),v={};for(let R of g)v[R]=f[R];return v},d.some=(f,h,y)=>{let g=[].concat(f);for(let v of[].concat(h)){let R=l(String(v),y);if(g.some(_=>R(_)))return!0}return!1},d.every=(f,h,y)=>{let g=[].concat(f);for(let v of[].concat(h)){let R=l(String(v),y);if(!g.every(_=>R(_)))return!1}return!0},d.all=(f,h,y)=>{if(typeof f!="string")throw new TypeError(`Expected a string: "${s.inspect(f)}"`);return[].concat(h).every(g=>l(g,y)(f))},d.capture=(f,h,y)=>{let g=p.isWindows(y),R=l.makeRe(String(f),{...y,capture:!0}).exec(g?p.toPosixSlashes(h):h);if(R)return R.slice(1).map(_=>_===void 0?"":_)},d.makeRe=(...f)=>l.makeRe(...f),d.scan=(...f)=>l.scan(...f),d.parse=(f,h)=>{let y=[];for(let g of[].concat(f||[]))for(let v of u(String(g),h))y.push(l.parse(v,h));return y},d.braces=(f,h)=>{if(typeof f!="string")throw new TypeError("Expected a string");return h&&h.nobrace===!0||!/\{.*\}/.test(f)?[f]:u(f,h)},d.braceExpand=(f,h)=>{if(typeof f!="string")throw new TypeError("Expected a string");return d.braces(f,{...h,expand:!0})},o.exports=d},251:(o,i,a)=>{o.exports=a(683)},356:(o,i,a)=>{const s=a(17),u="\\\\/",l=`[^${u}]`,p="\\.",m="\\+",d="\\?",f="\\/",h="(?=.)",y="[^/]",g=`(?:${f}|$)`,v=`(?:^|${f})`,R=`${p}{1,2}${g}`,_=`(?!${p})`,S=`(?!${v}${R})`,C=`(?!${p}{0,1}${g})`,w=`(?!${R})`,x=`[^.${f}]`,I=`${y}*?`,$={DOT_LITERAL:p,PLUS_LITERAL:m,QMARK_LITERAL:d,SLASH_LITERAL:f,ONE_CHAR:h,QMARK:y,END_ANCHOR:g,DOTS_SLASH:R,NO_DOT:_,NO_DOTS:S,NO_DOT_SLASH:C,NO_DOTS_SLASH:w,QMARK_NO_DOT:x,STAR:I,START_ANCHOR:v},A={...$,SLASH_LITERAL:`[${u}]`,QMARK:l,STAR:`${l}*?`,DOTS_SLASH:`${p}{1,2}(?:[${u}]|$)`,NO_DOT:`(?!${p})`,NO_DOTS:`(?!(?:^|[${u}])${p}{1,2}(?:[${u}]|$))`,NO_DOT_SLASH:`(?!${p}{0,1}(?:[${u}]|$))`,NO_DOTS_SLASH:`(?!${p}{1,2}(?:[${u}]|$))`,QMARK_NO_DOT:`[^.${u}]`,START_ANCHOR:`(?:^|[${u}])`,END_ANCHOR:`(?:[${u}]|$)`},N={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};o.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:N,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:s.sep,extglobChars(j){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${j.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(j){return j===!0?A:$}}},754:(o,i,a)=>{const s=a(356),u=a(513),{MAX_LENGTH:l,POSIX_REGEX_SOURCE:p,REGEX_NON_SPECIAL_CHARS:m,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:f}=s,h=(v,R)=>{if(typeof R.expandRange=="function")return R.expandRange(...v,R);v.sort();const _=`[${v.join("-")}]`;try{new RegExp(_)}catch{return v.map(C=>u.escapeRegex(C)).join("..")}return _},y=(v,R)=>`Missing ${v}: "${R}" - use "\\\\${R}" to match literal characters`,g=(v,R)=>{if(typeof v!="string")throw new TypeError("Expected a string");v=f[v]||v;const _={...R},S=typeof _.maxLength=="number"?Math.min(l,_.maxLength):l;let C=v.length;if(C>S)throw new SyntaxError(`Input length: ${C}, exceeds maximum allowed length: ${S}`);const w={type:"bos",value:"",output:_.prepend||""},x=[w],I=_.capture?"":"?:",$=u.isWindows(R),A=s.globChars($),N=s.extglobChars(A),{DOT_LITERAL:j,PLUS_LITERAL:k,SLASH_LITERAL:P,ONE_CHAR:q,DOTS_SLASH:z,NO_DOT:G,NO_DOT_SLASH:Y,NO_DOTS_SLASH:V,QMARK:F,QMARK_NO_DOT:oe,STAR:E,START_ANCHOR:T}=A,D=X=>`(${I}(?:(?!${T}${X.dot?z:j}).)*?)`,K=_.dot?"":G,te=_.dot?F:oe;let Z=_.bash===!0?D(_):E;_.capture&&(Z=`(${Z})`),typeof _.noext=="boolean"&&(_.noextglob=_.noext);const M={input:v,index:-1,start:0,dot:_.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:x};v=u.removePrefix(v,M),C=v.length;const J=[],Q=[],ee=[];let L=w,O;const re=()=>M.index===C-1,ae=M.peek=(X=1)=>v[M.index+X],ce=M.advance=()=>v[++M.index],ue=()=>v.slice(M.index+1),se=(X="",ne=0)=>{M.consumed+=X,M.index+=ne},H=X=>{M.output+=X.output!=null?X.output:X.value,se(X.value)},he=()=>{let X=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)ce(),M.start++,X++;return X%2===0?!1:(M.negated=!0,M.start++,!0)},ie=X=>{M[X]++,ee.push(X)},me=X=>{M[X]--,ee.pop()},U=X=>{if(L.type==="globstar"){const ne=M.braces>0&&(X.type==="comma"||X.type==="brace"),W=X.extglob===!0||J.length&&(X.type==="pipe"||X.type==="paren");X.type!=="slash"&&X.type!=="paren"&&!ne&&!W&&(M.output=M.output.slice(0,-L.output.length),L.type="star",L.value="*",L.output=Z,M.output+=L.output)}if(J.length&&X.type!=="paren"&&!N[X.value]&&(J[J.length-1].inner+=X.value),(X.value||X.output)&&H(X),L&&L.type==="text"&&X.type==="text"){L.value+=X.value,L.output=(L.output||"")+X.value;return}X.prev=L,x.push(X),L=X},le=(X,ne)=>{const W={...N[ne],conditions:1,inner:""};W.prev=L,W.parens=M.parens,W.output=M.output;const de=(_.capture?"(":"")+W.open;ie("parens"),U({type:X,value:ne,output:M.output?"":q}),U({type:"paren",extglob:!0,value:ce(),output:de}),J.push(W)},Ce=X=>{let ne=X.close+(_.capture?")":"");if(X.type==="negate"){let W=Z;X.inner&&X.inner.length>1&&X.inner.includes("/")&&(W=D(_)),(W!==Z||re()||/^\)+$/.test(ue()))&&(ne=X.close=`)$))${W}`),X.prev.type==="bos"&&(M.negatedExtglob=!0)}U({type:"paren",extglob:!0,value:O,output:ne}),me("parens")};if(_.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(v)){let X=!1,ne=v.replace(d,(W,de,ye,Ae,be,Ft)=>Ae==="\\"?(X=!0,W):Ae==="?"?de?de+Ae+(be?F.repeat(be.length):""):Ft===0?te+(be?F.repeat(be.length):""):F.repeat(ye.length):Ae==="."?j.repeat(ye.length):Ae==="*"?de?de+Ae+(be?Z:""):Z:de?W:`\\${W}`);return X===!0&&(_.unescape===!0?ne=ne.replace(/\\/g,""):ne=ne.replace(/\\+/g,W=>W.length%2===0?"\\\\":W?"\\":"")),ne===v&&_.contains===!0?(M.output=v,M):(M.output=u.wrapOutput(ne,M,R),M)}for(;!re();){if(O=ce(),O==="\0")continue;if(O==="\\"){const W=ae();if(W==="/"&&_.bash!==!0||W==="."||W===";")continue;if(!W){O+="\\",U({type:"text",value:O});continue}const de=/^\\+/.exec(ue());let ye=0;if(de&&de[0].length>2&&(ye=de[0].length,M.index+=ye,ye%2!==0&&(O+="\\")),_.unescape===!0?O=ce()||"":O+=ce()||"",M.brackets===0){U({type:"text",value:O});continue}}if(M.brackets>0&&(O!=="]"||L.value==="["||L.value==="[^")){if(_.posix!==!1&&O===":"){const W=L.value.slice(1);if(W.includes("[")&&(L.posix=!0,W.includes(":"))){const de=L.value.lastIndexOf("["),ye=L.value.slice(0,de),Ae=L.value.slice(de+2),be=p[Ae];if(be){L.value=ye+be,M.backtrack=!0,ce(),!w.output&&x.indexOf(L)===1&&(w.output=q);continue}}}(O==="["&&ae()!==":"||O==="-"&&ae()==="]")&&(O=`\\${O}`),O==="]"&&(L.value==="["||L.value==="[^")&&(O=`\\${O}`),_.posix===!0&&O==="!"&&L.value==="["&&(O="^"),L.value+=O,H({value:O});continue}if(M.quotes===1&&O!=='"'){O=u.escapeRegex(O),L.value+=O,H({value:O});continue}if(O==='"'){M.quotes=M.quotes===1?0:1,_.keepQuotes===!0&&U({type:"text",value:O});continue}if(O==="("){ie("parens"),U({type:"paren",value:O});continue}if(O===")"){if(M.parens===0&&_.strictBrackets===!0)throw new SyntaxError(y("opening","("));const W=J[J.length-1];if(W&&M.parens===W.parens+1){Ce(J.pop());continue}U({type:"paren",value:O,output:M.parens?")":"\\)"}),me("parens");continue}if(O==="["){if(_.nobracket===!0||!ue().includes("]")){if(_.nobracket!==!0&&_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));O=`\\${O}`}else ie("brackets");U({type:"bracket",value:O});continue}if(O==="]"){if(_.nobracket===!0||L&&L.type==="bracket"&&L.value.length===1){U({type:"text",value:O,output:`\\${O}`});continue}if(M.brackets===0){if(_.strictBrackets===!0)throw new SyntaxError(y("opening","["));U({type:"text",value:O,output:`\\${O}`});continue}me("brackets");const W=L.value.slice(1);if(L.posix!==!0&&W[0]==="^"&&!W.includes("/")&&(O=`/${O}`),L.value+=O,H({value:O}),_.literalBrackets===!1||u.hasRegexChars(W))continue;const de=u.escapeRegex(L.value);if(M.output=M.output.slice(0,-L.value.length),_.literalBrackets===!0){M.output+=de,L.value=de;continue}L.value=`(${I}${de}|${L.value})`,M.output+=L.value;continue}if(O==="{"&&_.nobrace!==!0){ie("braces");const W={type:"brace",value:O,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};Q.push(W),U(W);continue}if(O==="}"){const W=Q[Q.length-1];if(_.nobrace===!0||!W){U({type:"text",value:O,output:O});continue}let de=")";if(W.dots===!0){const ye=x.slice(),Ae=[];for(let be=ye.length-1;be>=0&&(x.pop(),ye[be].type!=="brace");be--)ye[be].type!=="dots"&&Ae.unshift(ye[be].value);de=h(Ae,_),M.backtrack=!0}if(W.comma!==!0&&W.dots!==!0){const ye=M.output.slice(0,W.outputIndex),Ae=M.tokens.slice(W.tokensIndex);W.value=W.output="\\{",O=de="\\}",M.output=ye;for(const be of Ae)M.output+=be.output||be.value}U({type:"brace",value:O,output:de}),me("braces"),Q.pop();continue}if(O==="|"){J.length>0&&J[J.length-1].conditions++,U({type:"text",value:O});continue}if(O===","){let W=O;const de=Q[Q.length-1];de&&ee[ee.length-1]==="braces"&&(de.comma=!0,W="|"),U({type:"comma",value:O,output:W});continue}if(O==="/"){if(L.type==="dot"&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",x.pop(),L=w;continue}U({type:"slash",value:O,output:P});continue}if(O==="."){if(M.braces>0&&L.type==="dot"){L.value==="."&&(L.output=j);const W=Q[Q.length-1];L.type="dots",L.output+=O,L.value+=O,W.dots=!0;continue}if(M.braces+M.parens===0&&L.type!=="bos"&&L.type!=="slash"){U({type:"text",value:O,output:j});continue}U({type:"dot",value:O,output:j});continue}if(O==="?"){if(!(L&&L.value==="(")&&_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){le("qmark",O);continue}if(L&&L.type==="paren"){const de=ae();let ye=O;if(de==="<"&&!u.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(L.value==="("&&!/[!=<:]/.test(de)||de==="<"&&!/<([!=]|\w+>)/.test(ue()))&&(ye=`\\${O}`),U({type:"text",value:O,output:ye});continue}if(_.dot!==!0&&(L.type==="slash"||L.type==="bos")){U({type:"qmark",value:O,output:oe});continue}U({type:"qmark",value:O,output:F});continue}if(O==="!"){if(_.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){le("negate",O);continue}if(_.nonegate!==!0&&M.index===0){he();continue}}if(O==="+"){if(_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){le("plus",O);continue}if(L&&L.value==="("||_.regex===!1){U({type:"plus",value:O,output:k});continue}if(L&&(L.type==="bracket"||L.type==="paren"||L.type==="brace")||M.parens>0){U({type:"plus",value:O});continue}U({type:"plus",value:k});continue}if(O==="@"){if(_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){U({type:"at",extglob:!0,value:O,output:""});continue}U({type:"text",value:O});continue}if(O!=="*"){(O==="$"||O==="^")&&(O=`\\${O}`);const W=m.exec(ue());W&&(O+=W[0],M.index+=W[0].length),U({type:"text",value:O});continue}if(L&&(L.type==="globstar"||L.star===!0)){L.type="star",L.star=!0,L.value+=O,L.output=Z,M.backtrack=!0,M.globstar=!0,se(O);continue}let X=ue();if(_.noextglob!==!0&&/^\([^?]/.test(X)){le("star",O);continue}if(L.type==="star"){if(_.noglobstar===!0){se(O);continue}const W=L.prev,de=W.prev,ye=W.type==="slash"||W.type==="bos",Ae=de&&(de.type==="star"||de.type==="globstar");if(_.bash===!0&&(!ye||X[0]&&X[0]!=="/")){U({type:"star",value:O,output:""});continue}const be=M.braces>0&&(W.type==="comma"||W.type==="brace"),Ft=J.length&&(W.type==="pipe"||W.type==="paren");if(!ye&&W.type!=="paren"&&!be&&!Ft){U({type:"star",value:O,output:""});continue}for(;X.slice(0,3)==="/**";){const ht=v[M.index+4];if(ht&&ht!=="/")break;X=X.slice(3),se("/**",3)}if(W.type==="bos"&&re()){L.type="globstar",L.value+=O,L.output=D(_),M.output=L.output,M.globstar=!0,se(O);continue}if(W.type==="slash"&&W.prev.type!=="bos"&&!Ae&&re()){M.output=M.output.slice(0,-(W.output+L.output).length),W.output=`(?:${W.output}`,L.type="globstar",L.output=D(_)+(_.strictSlashes?")":"|$)"),L.value+=O,M.globstar=!0,M.output+=W.output+L.output,se(O);continue}if(W.type==="slash"&&W.prev.type!=="bos"&&X[0]==="/"){const ht=X[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(W.output+L.output).length),W.output=`(?:${W.output}`,L.type="globstar",L.output=`${D(_)}${P}|${P}${ht})`,L.value+=O,M.output+=W.output+L.output,M.globstar=!0,se(O+ce()),U({type:"slash",value:"/",output:""});continue}if(W.type==="bos"&&X[0]==="/"){L.type="globstar",L.value+=O,L.output=`(?:^|${P}|${D(_)}${P})`,M.output=L.output,M.globstar=!0,se(O+ce()),U({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-L.output.length),L.type="globstar",L.output=D(_),L.value+=O,M.output+=L.output,M.globstar=!0,se(O);continue}const ne={type:"star",value:O,output:Z};if(_.bash===!0){ne.output=".*?",(L.type==="bos"||L.type==="slash")&&(ne.output=K+ne.output),U(ne);continue}if(L&&(L.type==="bracket"||L.type==="paren")&&_.regex===!0){ne.output=O,U(ne);continue}(M.index===M.start||L.type==="slash"||L.type==="dot")&&(L.type==="dot"?(M.output+=Y,L.output+=Y):_.dot===!0?(M.output+=V,L.output+=V):(M.output+=K,L.output+=K),ae()!=="*"&&(M.output+=q,L.output+=q)),U(ne)}for(;M.brackets>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));M.output=u.escapeLast(M.output,"["),me("brackets")}for(;M.parens>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing",")"));M.output=u.escapeLast(M.output,"("),me("parens")}for(;M.braces>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","}"));M.output=u.escapeLast(M.output,"{"),me("braces")}if(_.strictSlashes!==!0&&(L.type==="star"||L.type==="bracket")&&U({type:"maybe_slash",value:"",output:`${P}?`}),M.backtrack===!0){M.output="";for(const X of M.tokens)M.output+=X.output!=null?X.output:X.value,X.suffix&&(M.output+=X.suffix)}return M};g.fastpaths=(v,R)=>{const _={...R},S=typeof _.maxLength=="number"?Math.min(l,_.maxLength):l,C=v.length;if(C>S)throw new SyntaxError(`Input length: ${C}, exceeds maximum allowed length: ${S}`);v=f[v]||v;const w=u.isWindows(R),{DOT_LITERAL:x,SLASH_LITERAL:I,ONE_CHAR:$,DOTS_SLASH:A,NO_DOT:N,NO_DOTS:j,NO_DOTS_SLASH:k,STAR:P,START_ANCHOR:q}=s.globChars(w),z=_.dot?j:N,G=_.dot?k:N,Y=_.capture?"":"?:",V={negated:!1,prefix:""};let F=_.bash===!0?".*?":P;_.capture&&(F=`(${F})`);const oe=K=>K.noglobstar===!0?F:`(${Y}(?:(?!${q}${K.dot?A:x}).)*?)`,E=K=>{switch(K){case"*":return`${z}${$}${F}`;case".*":return`${x}${$}${F}`;case"*.*":return`${z}${F}${x}${$}${F}`;case"*/*":return`${z}${F}${I}${$}${G}${F}`;case"**":return z+oe(_);case"**/*":return`(?:${z}${oe(_)}${I})?${G}${$}${F}`;case"**/*.*":return`(?:${z}${oe(_)}${I})?${G}${F}${x}${$}${F}`;case"**/.*":return`(?:${z}${oe(_)}${I})?${x}${$}${F}`;default:{const te=/^(.*?)\.(\w+)$/.exec(K);if(!te)return;const Z=E(te[1]);return Z?Z+x+te[2]:void 0}}},T=u.removePrefix(v,V);let D=E(T);return D&&_.strictSlashes!==!0&&(D+=`${I}?`),D},o.exports=g},683:(o,i,a)=>{const s=a(17),u=a(700),l=a(754),p=a(513),m=a(356),d=h=>h&&typeof h=="object"&&!Array.isArray(h),f=(h,y,g=!1)=>{if(Array.isArray(h)){const I=h.map(A=>f(A,y,g));return A=>{for(const N of I){const j=N(A);if(j)return j}return!1}}const v=d(h)&&h.tokens&&h.input;if(h===""||typeof h!="string"&&!v)throw new TypeError("Expected pattern to be a non-empty string");const R=y||{},_=p.isWindows(y),S=v?f.compileRe(h,y):f.makeRe(h,y,!1,!0),C=S.state;delete S.state;let w=()=>!1;if(R.ignore){const I={...y,ignore:null,onMatch:null,onResult:null};w=f(R.ignore,I,g)}const x=(I,$=!1)=>{const{isMatch:A,match:N,output:j}=f.test(I,S,y,{glob:h,posix:_}),k={glob:h,state:C,regex:S,posix:_,input:I,output:j,match:N,isMatch:A};return typeof R.onResult=="function"&&R.onResult(k),A===!1?(k.isMatch=!1,$?k:!1):w(I)?(typeof R.onIgnore=="function"&&R.onIgnore(k),k.isMatch=!1,$?k:!1):(typeof R.onMatch=="function"&&R.onMatch(k),$?k:!0)};return g&&(x.state=C),x};f.test=(h,y,g,{glob:v,posix:R}={})=>{if(typeof h!="string")throw new TypeError("Expected input to be a string");if(h==="")return{isMatch:!1,output:""};const _=g||{},S=_.format||(R?p.toPosixSlashes:null);let C=h===v,w=C&&S?S(h):h;return C===!1&&(w=S?S(h):h,C=w===v),(C===!1||_.capture===!0)&&(_.matchBase===!0||_.basename===!0?C=f.matchBase(h,y,g,R):C=y.exec(w)),{isMatch:!!C,match:C,output:w}},f.matchBase=(h,y,g,v=p.isWindows(g))=>(y instanceof RegExp?y:f.makeRe(y,g)).test(s.basename(h)),f.isMatch=(h,y,g)=>f(y,g)(h),f.parse=(h,y)=>Array.isArray(h)?h.map(g=>f.parse(g,y)):l(h,{...y,fastpaths:!1}),f.scan=(h,y)=>u(h,y),f.compileRe=(h,y,g=!1,v=!1)=>{if(g===!0)return h.output;const R=y||{},_=R.contains?"":"^",S=R.contains?"":"$";let C=`${_}(?:${h.output})${S}`;h&&h.negated===!0&&(C=`^(?!${C}).*$`);const w=f.toRegex(C,y);return v===!0&&(w.state=h),w},f.makeRe=(h,y,g=!1,v=!1)=>{if(!h||typeof h!="string")throw new TypeError("Expected a non-empty string");const R=y||{};let _={negated:!1,fastpaths:!0},S="",C;return h.startsWith("./")&&(h=h.slice(2),S=_.prefix="./"),R.fastpaths!==!1&&(h[0]==="."||h[0]==="*")&&(C=l.fastpaths(h,y)),C===void 0?(_=l(h,y),_.prefix=S+(_.prefix||"")):_.output=C,f.compileRe(_,y,g,v)},f.toRegex=(h,y)=>{try{const g=y||{};return new RegExp(h,g.flags||(g.nocase?"i":""))}catch(g){if(y&&y.debug===!0)throw g;return/$^/}},f.constants=m,o.exports=f},700:(o,i,a)=>{const s=a(513),{CHAR_ASTERISK:u,CHAR_AT:l,CHAR_BACKWARD_SLASH:p,CHAR_COMMA:m,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:f,CHAR_FORWARD_SLASH:h,CHAR_LEFT_CURLY_BRACE:y,CHAR_LEFT_PARENTHESES:g,CHAR_LEFT_SQUARE_BRACKET:v,CHAR_PLUS:R,CHAR_QUESTION_MARK:_,CHAR_RIGHT_CURLY_BRACE:S,CHAR_RIGHT_PARENTHESES:C,CHAR_RIGHT_SQUARE_BRACKET:w}=a(356),x=A=>A===h||A===p,I=A=>{A.isPrefix!==!0&&(A.depth=A.isGlobstar?1/0:1)},$=(A,N)=>{const j=N||{},k=A.length-1,P=j.parts===!0||j.scanToEnd===!0,q=[],z=[],G=[];let Y=A,V=-1,F=0,oe=0,E=!1,T=!1,D=!1,K=!1,te=!1,Z=!1,M=!1,J=!1,Q=!1,ee=0,L,O,re={value:"",depth:0,isGlob:!1};const ae=()=>V>=k,ce=()=>Y.charCodeAt(V+1),ue=()=>(L=O,Y.charCodeAt(++V));for(;V<k;){O=ue();let me;if(O===p){M=re.backslashes=!0,O=ue(),O===y&&(Z=!0);continue}if(Z===!0||O===y){for(ee++;ae()!==!0&&(O=ue());){if(O===p){M=re.backslashes=!0,ue();continue}if(O===y){ee++;continue}if(Z!==!0&&O===d&&(O=ue())===d){if(E=re.isBrace=!0,D=re.isGlob=!0,Q=!0,P===!0)continue;break}if(Z!==!0&&O===m){if(E=re.isBrace=!0,D=re.isGlob=!0,Q=!0,P===!0)continue;break}if(O===S&&(ee--,ee===0)){Z=!1,E=re.isBrace=!0,Q=!0;break}}if(P===!0)continue;break}if(O===h){if(q.push(V),z.push(re),re={value:"",depth:0,isGlob:!1},Q===!0)continue;if(L===d&&V===F+1){F+=2;continue}oe=V+1;continue}if(j.noext!==!0&&(O===R||O===l||O===u||O===_||O===f)===!0&&ce()===g){if(D=re.isGlob=!0,K=re.isExtglob=!0,Q=!0,P===!0){for(;ae()!==!0&&(O=ue());){if(O===p){M=re.backslashes=!0,O=ue();continue}if(O===C){D=re.isGlob=!0,Q=!0;break}}continue}break}if(O===u){if(L===u&&(te=re.isGlobstar=!0),D=re.isGlob=!0,Q=!0,P===!0)continue;break}if(O===_){if(D=re.isGlob=!0,Q=!0,P===!0)continue;break}if(O===v){for(;ae()!==!0&&(me=ue());){if(me===p){M=re.backslashes=!0,ue();continue}if(me===w){T=re.isBracket=!0,D=re.isGlob=!0,Q=!0;break}}if(P===!0)continue;break}if(j.nonegate!==!0&&O===f&&V===F){J=re.negated=!0,F++;continue}if(j.noparen!==!0&&O===g){if(D=re.isGlob=!0,P===!0){for(;ae()!==!0&&(O=ue());){if(O===g){M=re.backslashes=!0,O=ue();continue}if(O===C){Q=!0;break}}continue}break}if(D===!0){if(Q=!0,P===!0)continue;break}}j.noext===!0&&(K=!1,D=!1);let se=Y,H="",he="";F>0&&(H=Y.slice(0,F),Y=Y.slice(F),oe-=F),se&&D===!0&&oe>0?(se=Y.slice(0,oe),he=Y.slice(oe)):D===!0?(se="",he=Y):se=Y,se&&se!==""&&se!=="/"&&se!==Y&&x(se.charCodeAt(se.length-1))&&(se=se.slice(0,-1)),j.unescape===!0&&(he&&(he=s.removeBackslashes(he)),se&&M===!0&&(se=s.removeBackslashes(se)));const ie={prefix:H,input:A,start:F,base:se,glob:he,isBrace:E,isBracket:T,isGlob:D,isExtglob:K,isGlobstar:te,negated:J};if(j.tokens===!0&&(ie.maxDepth=0,x(O)||z.push(re),ie.tokens=z),j.parts===!0||j.tokens===!0){let me;for(let U=0;U<q.length;U++){const le=me?me+1:F,Ce=q[U],X=A.slice(le,Ce);j.tokens&&(U===0&&F!==0?(z[U].isPrefix=!0,z[U].value=H):z[U].value=X,I(z[U]),ie.maxDepth+=z[U].depth),(U!==0||X!=="")&&G.push(X),me=Ce}if(me&&me+1<A.length){const U=A.slice(me+1);G.push(U),j.tokens&&(z[z.length-1].value=U,I(z[z.length-1]),ie.maxDepth+=z[z.length-1].depth)}ie.slashes=q,ie.parts=G}return ie};o.exports=$},513:(o,i,a)=>{const s=a(17),u=process.platform==="win32",{REGEX_BACKSLASH:l,REGEX_REMOVE_BACKSLASH:p,REGEX_SPECIAL_CHARS:m,REGEX_SPECIAL_CHARS_GLOBAL:d}=a(356);i.isObject=f=>f!==null&&typeof f=="object"&&!Array.isArray(f),i.hasRegexChars=f=>m.test(f),i.isRegexChar=f=>f.length===1&&i.hasRegexChars(f),i.escapeRegex=f=>f.replace(d,"\\$1"),i.toPosixSlashes=f=>f.replace(l,"/"),i.removeBackslashes=f=>f.replace(p,h=>h==="\\"?"":h),i.supportsLookbehinds=()=>{const f=process.version.slice(1).split(".").map(Number);return f.length===3&&f[0]>=9||f[0]===8&&f[1]>=10},i.isWindows=f=>f&&typeof f.windows=="boolean"?f.windows:u===!0||s.sep==="\\",i.escapeLast=(f,h,y)=>{const g=f.lastIndexOf(h,y);return g===-1?f:f[g-1]==="\\"?i.escapeLast(f,h,g-1):`${f.slice(0,g)}\\${f.slice(g)}`},i.removePrefix=(f,h={})=>{let y=f;return y.startsWith("./")&&(y=y.slice(2),h.prefix="./"),y},i.wrapOutput=(f,h={},y={})=>{const g=y.contains?"":"^",v=y.contains?"":"$";let R=`${g}(?:${f})${v}`;return h.negated===!0&&(R=`(?:^(?!${R}).*$)`),R}},492:(o,i,a)=>{/*!
36
+ * to-regex-range <https://github.com/micromatch/to-regex-range>
37
+ *
38
+ * Copyright (c) 2015-present, Jon Schlinkert.
39
+ * Released under the MIT License.
40
+ */const s=a(357),u=(x,I,$)=>{if(s(x)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(I===void 0||x===I)return String(x);if(s(I)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let A={relaxZeros:!0,...$};typeof A.strictZeros=="boolean"&&(A.relaxZeros=A.strictZeros===!1);let N=String(A.relaxZeros),j=String(A.shorthand),k=String(A.capture),P=String(A.wrap),q=x+":"+I+"="+N+j+k+P;if(u.cache.hasOwnProperty(q))return u.cache[q].result;let z=Math.min(x,I),G=Math.max(x,I);if(Math.abs(z-G)===1){let E=x+"|"+I;return A.capture?`(${E})`:A.wrap===!1?E:`(?:${E})`}let Y=C(x)||C(I),V={min:x,max:I,a:z,b:G},F=[],oe=[];if(Y&&(V.isPadded=Y,V.maxLen=String(V.max).length),z<0){let E=G<0?Math.abs(G):1;oe=d(E,Math.abs(z),V,A),z=V.a=0}return G>=0&&(F=d(z,G,V,A)),V.negatives=oe,V.positives=F,V.result=l(oe,F),A.capture===!0?V.result=`(${V.result})`:A.wrap!==!1&&F.length+oe.length>1&&(V.result=`(?:${V.result})`),u.cache[q]=V,V.result};function l(x,I,$){let A=f(x,I,"-",!1)||[],N=f(I,x,"",!1)||[],j=f(x,I,"-?",!0)||[];return A.concat(j).concat(N).join("|")}function p(x,I){let $=1,A=1,N=v(x,$),j=new Set([I]);for(;x<=N&&N<=I;)j.add(N),$+=1,N=v(x,$);for(N=R(I+1,A)-1;x<N&&N<=I;)j.add(N),A+=1,N=R(I+1,A)-1;return j=[...j],j.sort(y),j}function m(x,I,$){if(x===I)return{pattern:x,count:[],digits:0};let A=h(x,I),N=A.length,j="",k=0;for(let P=0;P<N;P++){let[q,z]=A[P];q===z?j+=q:q!=="0"||z!=="9"?j+=S(q,z):k++}return k&&(j+=$.shorthand===!0?"\\d":"[0-9]"),{pattern:j,count:[k],digits:N}}function d(x,I,$,A){let N=p(x,I),j=[],k=x,P;for(let q=0;q<N.length;q++){let z=N[q],G=m(String(k),String(z),A),Y="";if(!$.isPadded&&P&&P.pattern===G.pattern){P.count.length>1&&P.count.pop(),P.count.push(G.count[0]),P.string=P.pattern+_(P.count),k=z+1;continue}$.isPadded&&(Y=w(z,$,A)),G.string=Y+G.pattern+_(G.count),j.push(G),k=z+1,P=G}return j}function f(x,I,$,A,N){let j=[];for(let k of x){let{string:P}=k;!A&&!g(I,"string",P)&&j.push($+P),A&&g(I,"string",P)&&j.push($+P)}return j}function h(x,I){let $=[];for(let A=0;A<x.length;A++)$.push([x[A],I[A]]);return $}function y(x,I){return x>I?1:I>x?-1:0}function g(x,I,$){return x.some(A=>A[I]===$)}function v(x,I){return Number(String(x).slice(0,-I)+"9".repeat(I))}function R(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 w(x,I,$){if(!I.isPadded)return x;let A=Math.abs(I.maxLen-String(x).length),N=$.relaxZeros!==!1;switch(A){case 0:return"";case 1:return N?"0?":"0";case 2:return N?"0{0,2}":"00";default:return N?`0{0,${A}}`:`0{${A}}`}}u.cache={},u.clearCache=()=>u.cache={},o.exports=u},17:o=>{o.exports=Fd},837:o=>{o.exports=Ef()}},t={};function r(o){var i=t[o];if(i!==void 0)return i.exports;var a=t[o]={exports:{}},s=!0;try{e[o](a,a.exports,r),s=!1}finally{s&&delete t[o]}return a.exports}typeof r<"u"&&(r.ab=__dirname+"/");var n=r(971);Er.exports=n})()),Er.exports}var fa;function jf(){return fa||(fa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,a){for(var s in a)Object.defineProperty(i,s,{enumerable:!0,get:a[s]})}t(e,{matchRemotePattern:function(){return n},hasMatch:function(){return o}});const r=wf();function n(i,a){if(i.protocol!==void 0){const u=a.protocol.slice(0,-1);if(i.protocol!==u)return!1}if(i.port!==void 0&&i.port!==a.port)return!1;if(i.hostname===void 0)throw new Error(`Pattern should define hostname but found
41
+ `+JSON.stringify(i));if(!(0,r.makeRe)(i.hostname).test(a.hostname))return!1;var s;return!!(0,r.makeRe)((s=i.pathname)!=null?s:"**").test(a.pathname)}function o(i,a,s){return i.some(u=>s.hostname===u)||a.some(u=>n(u,s))}}(Rr)),Rr}var pa;function cc(){return pa||(pa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n){let{config:o,src:i,width:a,quality:s}=n;if(process.env.NODE_ENV!=="production"){const u=[];if(i||u.push("src"),a||u.push("width"),u.length>0)throw new Error("Next Image Optimization requires "+u.join(", ")+" to be provided. Make sure you pass them as props to the `next/image` component. Received: "+JSON.stringify({src:i,width:a,quality:s}));if(i.startsWith("//"))throw new Error('Failed to parse src "'+i+'" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)');if(!i.startsWith("/")&&(o.domains||o.remotePatterns)){let l;try{l=new URL(i)}catch(p){throw console.error(p),new Error('Failed to parse src "'+i+'" on `next/image`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)')}if(process.env.NODE_ENV!=="test"&&process.env.NEXT_RUNTIME!=="edge"){const{hasMatch:p}=jf();if(!p(o.domains,o.remotePatterns,l))throw new Error("Invalid src prop ("+i+') on `next/image`, hostname "'+l.hostname+'" is not configured under images in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host')}}}return o.path+"?url="+encodeURIComponent(i)+"&w="+a+"&q="+(s||75)+(process.env.NEXT_DEPLOYMENT_ID?"&dpl="+process.env.NEXT_DEPLOYMENT_ID:"")}t.__next_img_default=!0;const r=t}(Ar)),Ar}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return R}});const r=Re,o=Xe._(B),i=r._(_a),a=r._(qd()),s=ro,u=Bt,l=Bd(),p=ut,m=Ms(),d=r._(cc()),f=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function h(_,S,C,w,x,I){const $=_==null?void 0:_.src;if(!_||_["data-loaded-src"]===$)return;_["data-loaded-src"]=$,("decode"in _?_.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!_.parentElement||!_.isConnected)){if(S!=="empty"&&x(!0),C!=null&&C.current){const N=new Event("load");Object.defineProperty(N,"target",{writable:!1,value:_});let j=!1,k=!1;C.current({...N,nativeEvent:N,currentTarget:_,target:_,isDefaultPrevented:()=>j,isPropagationStopped:()=>k,persist:()=>{},preventDefault:()=>{j=!0,N.preventDefault()},stopPropagation:()=>{k=!0,N.stopPropagation()}})}if(w!=null&&w.current&&w.current(_),process.env.NODE_ENV!=="production"){const N=new URL($,"http://n").searchParams.get("url")||$;if(_.getAttribute("data-nimg")==="fill"){if(!I&&(!_.getAttribute("sizes")||_.getAttribute("sizes")==="100vw")&&_.getBoundingClientRect().width/window.innerWidth<.6&&(0,p.warnOnce)('Image with src "'+N+'" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes'),_.parentElement){const{position:P}=window.getComputedStyle(_.parentElement),q=["absolute","fixed","relative"];q.includes(P)||(0,p.warnOnce)('Image with src "'+N+'" has "fill" and parent element with invalid "position". Provided "'+P+'" should be one of '+q.map(String).join(",")+".")}_.height===0&&(0,p.warnOnce)('Image with src "'+N+'" has "fill" and a height value of 0. This is likely because the parent element of the image has not been styled to have a set height.')}const j=_.height.toString()!==_.getAttribute("height"),k=_.width.toString()!==_.getAttribute("width");(j&&!k||!j&&k)&&(0,p.warnOnce)('Image with src "'+N+`" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`)}}})}function y(_){const[S,C]=o.version.split("."),w=parseInt(S,10),x=parseInt(C,10);return w>18||w===18&&x>=3?{fetchPriority:_}:{fetchpriority:_}}const g=(0,o.forwardRef)((_,S)=>{let{src:C,srcSet:w,sizes:x,height:I,width:$,decoding:A,className:N,style:j,fetchPriority:k,placeholder:P,loading:q,unoptimized:z,fill:G,onLoadRef:Y,onLoadingCompleteRef:V,setBlurComplete:F,setShowAltText:oe,onLoad:E,onError:T,...D}=_;return o.default.createElement("img",{...D,...y(k),loading:q,width:$,height:I,decoding:A,"data-nimg":G?"fill":"1",className:N,style:j,sizes:x,srcSet:w,src:C,ref:(0,o.useCallback)(K=>{S&&(typeof S=="function"?S(K):typeof S=="object"&&(S.current=K)),K&&(T&&(K.src=K.src),process.env.NODE_ENV!=="production"&&(C||console.error('Image is missing required "src" property:',K),K.getAttribute("alt")===null&&console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.')),K.complete&&h(K,P,Y,V,F,z))},[C,P,Y,V,F,T,z,S]),onLoad:K=>{const te=K.currentTarget;h(te,P,Y,V,F,z)},onError:K=>{oe(!0),P!=="empty"&&F(!0),T&&T(K)}})});function v(_){let{isAppRouter:S,imgAttributes:C}=_;const w={as:"image",imageSrcSet:C.srcSet,imageSizes:C.sizes,crossOrigin:C.crossOrigin,referrerPolicy:C.referrerPolicy,...y(C.fetchPriority)};return S&&i.default.preload?(i.default.preload(C.src,w),null):o.default.createElement(a.default,null,o.default.createElement("link",{key:"__nimg-"+C.src+C.srcSet+C.sizes,rel:"preload",href:C.srcSet?void 0:C.src,...w}))}const R=(0,o.forwardRef)((_,S)=>{const w=!(0,o.useContext)(m.RouterContext),x=(0,o.useContext)(l.ImageConfigContext),I=(0,o.useMemo)(()=>{const V=f||x||u.imageConfigDefault,F=[...V.deviceSizes,...V.imageSizes].sort((E,T)=>E-T),oe=V.deviceSizes.sort((E,T)=>E-T);return{...V,allSizes:F,deviceSizes:oe}},[x]),{onLoad:$,onLoadingComplete:A}=_,N=(0,o.useRef)($);(0,o.useEffect)(()=>{N.current=$},[$]);const j=(0,o.useRef)(A);(0,o.useEffect)(()=>{j.current=A},[A]);const[k,P]=(0,o.useState)(!1),[q,z]=(0,o.useState)(!1),{props:G,meta:Y}=(0,s.getImgProps)(_,{defaultLoader:d.default,imgConf:I,blurComplete:k,showAltText:q});return o.default.createElement(o.default.Fragment,null,o.default.createElement(g,{...G,unoptimized:Y.unoptimized,placeholder:Y.placeholder,fill:Y.fill,onLoadRef:N,onLoadingCompleteRef:j,setBlurComplete:P,setShowAltText:z,ref:S}),Y.priority?o.default.createElement(v,{isAppRouter:w,imgAttributes:G}):null)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Hn,Hn.exports);var If=Hn.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,p){for(var m in p)Object.defineProperty(l,m,{enumerable:!0,get:p[m]})}t(e,{unstable_getImgProps:function(){return s},default:function(){return u}});const r=Re,n=ro,o=ut,i=If,a=r._(cc()),s=l=>{(0,o.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");const{props:p}=(0,n.getImgProps)(l,{defaultLoader:a.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[m,d]of Object.entries(p))d===void 0&&delete p[m];return{props:p}},u=i.Image})(Ys);var Pf=Ys;const ma=Dt(Pf),Nf=({item:e,CONSTANTS:t})=>{const r=e.icon?t.PAYMENT_FLAGS.includes(e.icon)?"payment":"social":null,n=r==="payment"?t.PAYMENT_FLAGS_DICTIONARY[e.icon]:e.icon;return e.link?c.jsxs(we,{href:e.link,target:"_blank",rel:"noopener noreferrer",className:pe["support-item"],children:[e.image&&c.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?c.jsx(ma,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):c.jsx(b.Icon,{size:"small",name:n})]}):c.jsxs("div",{className:pe["support-item"],children:[e.image&&c.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?c.jsx(ma,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):c.jsx(b.Icon,{size:"small",name:n})]})},Of=({content:e,CONSTANTS:t})=>c.jsx("div",{className:pe["support-container"],children:e==null?void 0:e.map((r,n)=>c.jsxs("div",{"data-device":r.device,className:pe["support-section"],children:[c.jsxs("div",{className:pe["support-text"],children:[r.title&&c.jsx("h3",{children:r.title}),r.description&&c.jsx("p",{children:r.description})]}),r.items.length&&c.jsx("div",{className:pe["support-items"],"data-gap":r.gap,children:r.items.map((o,i)=>c.jsx(Nf,{item:o,CONSTANTS:t},`footer-support-item-${i}`))})]},`footer-support-${n}`))}),Tf=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:n,columnAlignContent:o,columnAlignItems:i,textAlignContent:a,textAlignItems:s,children:u})=>c.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:n,alignItems:n},columnWrapper:{alignContent:o,alignItems:i}},children:c.jsxs(b.TextStructure.DivWrapper,{alignContent:a,alignItems:s,className:pe.footer__column,children:[c.jsxs("div",{className:t?pe.footer__columnTitleIcon:pe.footer__columnTitle,children:[c.jsx(b.Icon,{name:`${t}`,size:"small"}),e&&c.jsx("div",{children:e})]}),c.jsx("div",{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:u})]})}),Mf=({name:e,nameIcon:t,maxWidth:r,children:n,ICONS:o,...i})=>c.jsxs(b.Accordion.Wrapper,{className:pe.accordionWrapper,title:"accordion-wrapper",...i,children:[c.jsx(b.Accordion.Header,{id:(i==null?void 0:i.id)??"",className:pe.accordionHeader,closeIndicator:c.jsx(b.Icon,{name:o.arrow_up,size:"medium"}),openIndicator:c.jsx(b.Icon,{name:o.arrow_down,size:"medium"}),title:"accordion-header",children:c.jsx(b.TextStructure.Root,{children:c.jsxs(b.TextStructure.DivWrapper,{className:t?pe.accordionTextWrapper:"",children:[c.jsx(b.Icon,{name:`${t}`,size:"medium"}),c.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),c.jsx(b.Accordion.Body,{title:"accordion-body",children:c.jsx(b.TextStructure.Root,{children:c.jsx(b.TextStructure.DivWrapper,{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:n})})})]}),jn=e=>{const{isMobile:t}=ke();return t?c.jsx(Mf,{...e}):c.jsx(Tf,{...e})},Nt=({type:e,children:t,className:r,collumnName:n,collumnNameIcon:o,icons:i,iconLink:a,iconSize:s,link:u,paymentDisclaimer:l,paymentTitle:p,rowAlignContent:m,columnAlignContent:d,columnAlignItems:f,textAlignContent:h,textAlignItems:y,...g})=>{let v;const{handleSelectContent:R}=ge(),{nextimage:_}=Ne();switch(e){case"menu":v=c.jsx(we,{className:pe.footer__itemLink,href:u??"#",prefetch:!1,children:c.jsx("span",{onClick:()=>{R({content:`footer:${n}:${t}`})},children:t})});break;case"payment":v=c.jsxs("div",{className:b.helpers.classNameConcat(pe.payment,pe.footer__itemSmallText),...g,children:[l,c.jsxs("div",{className:b.helpers.classNameConcat(pe.footer__iconContainer,pe.footer__iconListSubHeader),children:[p,c.jsx("div",{className:pe.footer__iconList,children:i==null?void 0:i.map((S,C)=>c.jsx(_,{alt:S,src:`/assets/${S}.svg`,width:s??20,height:s??20},C))})]})]});break;case"social-media":v=c.jsx("div",{className:pe.footer__iconContainer,...g,children:c.jsx("div",{className:pe.footer__iconList,children:a==null?void 0:a.map((S,C)=>c.jsx(we,{prefetch:!1,href:S.link??"#",target:"_blank",children:c.jsx(b.Icon,{size:"medium",name:S.icon,onClick:()=>R({content:`footer:redes-sociais:${S.icon}`})})},C))})});break;default:v=c.jsx("div",{className:r,...g,children:t})}return c.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:m,alignItems:m},columnWrapper:{alignContent:d,alignItems:f}},...g,children:c.jsx(b.TextStructure.DivWrapper,{alignContent:h,alignItems:y,className:b.helpers.classNameConcat(pe.footer__item,r),children:v})})},kf=({className:e,text:t,...r})=>c.jsx("div",{...r,className:b.helpers.classNameConcat(pe.footer__legalInformation,e),children:c.jsx("span",{children:t})}),uc=()=>{const{nextimage:e}=Ne();return c.jsx("div",{className:pe["footer--stamps"],children:c.jsx(e,{alt:"Empresa B",className:pe["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};uc.displayName="Footer.Stamps";const lc=({children:e,legalTextSlot:t,adornment:r,className:n,...o})=>{const{isMobile:i}=ke(),a=B.Children.toArray(e).filter(Boolean),s=a.length;return c.jsxs("div",{className:pe.footer__main,children:[(r==null?void 0:r.top)&&c.jsx("div",{className:pe.footer__top,children:r==null?void 0:r.top}),s>0&&c.jsx("div",{...o,className:b.helpers.classNameConcat(pe.footer__wrapper,n),children:a.map((u,l)=>c.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${i?1:"fit-content"})`},children:u},l))}),(r==null?void 0:r.bottom)&&c.jsx("div",{className:pe.footer__bottom,children:r.bottom}),t&&c.jsx("div",{className:pe.footer__legalText,children:t})]})};lc.displayName="Footer.Wrapper";const dc=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:n,adornment:o,LEGAL_INFORMATION_TEXT:i,ICONS:a})=>{var s;return c.jsxs(lc,{adornment:o,legalTextSlot:c.jsx(kf,{text:i}),children:[Array.isArray(e.column)&&e.column.map((u,l)=>c.jsx(jn,{id:`${l}column-menu`,name:u.name,nameIcon:u.nameIcon,ICONS:a,children:u.items.map((p,m)=>c.jsx(Nt,{type:"menu",link:p.link,collumnName:u.name,collumnNameIcon:u.nameIcon,children:p.text},m))},l)),t&&((s=t.acceptedFlags)==null?void 0:s.length)>0&&c.jsx(jn,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:a,children:c.jsx(Nt,{type:"payment",paymentDisclaimer:t==null?void 0:t.text,paymentTitle:t==null?void 0:t.flagsTitle,iconSize:16,icons:t==null?void 0:t.acceptedFlags})}),c.jsxs(jn,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:a,children:[r!=null&&r.subTitle?c.jsx(Nt,{children:r==null?void 0:r.subTitle}):null,c.jsx(Nt,{type:"social-media",iconSize:24,iconLink:n}),c.jsx(uc,{})]})]})};dc.displayName="Footer";const Lf=Object.freeze(Object.defineProperty({__proto__:null,Footer:dc,FooterSupport:Of},Symbol.toStringTag,{value:"Module"})),so={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},co=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=Ye(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=xe(),i=r.reduce((a,s)=>a+(s.quantity??0),0);return c.jsx(b.Header.SupportItem,{onClick:()=>{t(!0),n({content:"header:minicart"})},id:e,children:c.jsxs(b.Badge.AutoPositioner,{children:[c.jsx(b.Badge.Count,{count:i,size:"medium",variant:"primary",style:{backgroundColor:"black",display:i>0?"flex":"none"}}),c.jsx(b.Icon,{name:o.header.ICONS.bag,size:"medium"})]})})};co.displayName="Header.Bag";const pt=({children:e,href:t,...r})=>t&&t!=="#"?c.jsx(we,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,fc=()=>{const{headerData:e}=xe(),{handleSelectContent:t}=ge(),{reset:r,updateValue:n}=De(),o=i=>{i?n(i):r()};return c.jsx(b.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((i,a)=>c.jsx(pt,{href:i.link,onMouseEnter:()=>o(i.submenuId),onFocus:()=>o(i.submenuId),children:c.jsx(b.Header.CategoryItem,{className:so["btn-header"],value:i.submenuId??null,adornment:{start:c.jsx(b.Icon,{name:i.iconStart}),end:c.jsx(b.Icon,{name:i.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${i.label}`})},children:i.label})},`category-${i.label}-${a}`))})};fc.displayName="Header.Categories";function Df({SearchModal:e}){const{handleSelectContent:t}=ge(),{CONSTANTS:r}=xe(),{setValue:n}=Xn();return c.jsxs(c.Fragment,{children:[c.jsx(b.Header.SupportItem,{onClick:()=>{n(!0),t({content:"header:search"})},children:c.jsx(b.Icon,{name:r.header.ICONS.search,size:"medium"})}),c.jsx(e,{recommendations:!1,trends:!0})]})}const $f={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},uo=({thumbnails:e,category:t,isMobile:r=!0,callBack:n})=>{const{handleSelectPromotionEvent:o}=ge(),i=50/e.length;return c.jsx("div",{className:$f["menu-subcategories-container"],children:e.map((a,s)=>{const u=r?a.srcMobile:a.srcDesk;if(!u)return null;const l={creative_name:"banner-menu",creative_slot:`banner-menu:${t}:${s+1}`,promotion_id:u,promotion_name:a.promotion_name};return c.jsx(Jn,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...l}}}},observerOptions:{delay:1e3},children:c.jsxs(we,{href:a.link??"#",onClick:()=>{typeof n=="function"&&n(),o({updatePromotionRef:!0,promotion:l})},children:[c.jsx(Oe.Image,{src:u,alt:a.label??u,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${i}vw`}),a.label&&c.jsx("p",{children:a.label})]})},`thumb-${a.label}-${s}`)})})};uo.displayName="Menu.Thumbnail";const zn={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},pc=({children:e,dividerOnRight:t=!0,subMenu:r,...n})=>{var u;const{router:o}=Ne(),{reset:i}=De(),{handleSelectContent:a}=ge(),{CONSTANTS:s}=xe();return c.jsxs("div",{...n,className:zn["menu-categories"],children:[(u=r==null?void 0:r.subCategories)==null?void 0:u.map((l,p)=>{var f,h,y;const m=l.listCollapseDesk&&!((f=l.see_all)!=null&&f.link)?{expandAfterRowsQty:l.rowsToShowDesk}:{},d=l.listCollapseDesk&&!((h=l.see_all)!=null&&h.link)?{expansivesAdornments:{open:s.header.ICONS.add,close:s.header.ICONS.minus},expansivesLabels:{open:s.header.COMPONENT_LIST.listExpandLabel,close:s.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:c.jsx(b.Icon,{name:s.header.ICONS.arrow_right,size:"small"})}};return c.jsxs(b.ComponentList.Structure,{children:[c.jsx(pt,{href:l.linkLabel,title:l.label,onClick:()=>{l.linkLabel&&(i(),a({content:`menu:${l.label??""}:${r.label??""}`}))},children:c.jsx(b.TextStructure.Root,{children:c.jsx(b.TextStructure.DivWrapper,{children:c.jsx("h2",{children:l.label})})})}),c.jsx(b.ComponentList.List,{columns:1,...m,className:zn["submenu-categories"],children:l.items.map((g,v)=>c.jsx(b.ComponentList.ListItem,{id:`list-item-${g.label}-${v}`,children:c.jsx(Ze,{href:g.link??"#",size:"x-small",title:g.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{i(),a({content:`menu:${l.label??""}:${g.label??""}:${r.label??""}`})},children:g.label})},`list-item-${g.label}-${v}`))}),((y=l.see_all)==null?void 0:y.link)&&c.jsx(b.ComponentList.Support,{...d,size:"small",onClick:()=>{var g;(g=l.see_all)!=null&&g.link&&(i(),a({content:`menu:${l.label??""}:${r.label}`}),o.push(l.see_all.link))},children:l.see_all.link&&l.see_all.label})]},`list-${l.label}-${p}`)}),t&&c.jsx(b.Utils.Divider,{size:"small",direction:"vertical"})]})};pc.displayName="Menu.Categories";const mc=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:n}=xe();return c.jsxs(c.Fragment,{children:[c.jsx("div",{...r,className:zn["menu-desktop"],style:{...r.style,justifyContent:n.header.ALIGNMENT_MENU},children:e}),t&&c.jsx(b.Utils.Divider,{size:"small"})]})};mc.displayName="Menu.MenuRoot";const qf=to(()=>Promise.resolve(mc),{ssr:!1}),In={Root:qf,Categories:pc,Thumbnail:uo},hc=()=>{const{headerData:e,CONSTANTS:t}=xe(),r=Lt(),{reset:n}=De();return c.jsx(b.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((o,i)=>{const{thumbnails:a,label:s,id:u}=o,l=u===r,p=a==null?void 0:a.some(m=>!!m.srcDesk);return c.jsxs(In.Root,{id:u,style:l?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:l,children:[c.jsx(In.Categories,{dividerOnRight:!!p,subMenu:o}),Array.isArray(a)&&c.jsx(In.Thumbnail,{thumbnails:a,isMobile:!1,category:s,callBack:n})]},`submenu-${u}-${i}`)})})};hc.displayName="Header.SubMenu";const gc=()=>{const{handleSelectContent:e}=ge(),{CONSTANTS:t}=xe();return c.jsx(we,{href:"/favoritos",children:c.jsx(b.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:c.jsx(b.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};gc.displayName="Header.WishList";const yc=({UserMenu:e,SearchModal:t})=>{const r=B.useRef(null),{CONSTANTS:n}=xe(),{handleSelectContent:o}=ge(),{reset:i}=De(),{setValue:a}=Qn();return c.jsxs(c.Fragment,{children:[c.jsxs(b.Header.Wrapper,{children:[c.jsx(b.Header.Logo,{style:{width:"100%"},children:c.jsx(we,{href:"/",onMouseEnter:i,children:c.jsx(b.Icon,{name:n.header.ICONS.logo,size:"x-large",onClick:()=>{o({content:"header:logo"})}})})}),c.jsx(fc,{}),c.jsxs(b.Header.Support,{onMouseEnter:i,style:{justifyContent:"flex-end"},children:[c.jsx(Df,{SearchModal:t}),c.jsx(e,{target:r.current,children:c.jsx(b.Header.SupportItem,{onClick:()=>{a(!0),o({content:"header:user_menu"})},className:so["btn-login"],innerRef:r,children:c.jsx(b.Icon,{name:n.header.ICONS.person,size:"medium"})})}),c.jsx(gc,{}),c.jsx(co,{id:"cart-button"})]})]}),c.jsx(hc,{})]})};yc.displayName="Header.HeaderDesktopWrapper";const Bf="_divider_1lexj_199",_e={"modal-modifier":"_modal-modifier_1lexj_1","menu-mobile":"_menu-mobile_1lexj_11","menu-header-container":"_menu-header-container_1lexj_26","menu-header-wrapper":"_menu-header-wrapper_1lexj_35","menu-header-navlinks":"_menu-header-navlinks_1lexj_41","menu-body":"_menu-body_1lexj_57","menu-categories-container":"_menu-categories-container_1lexj_74","menu-categories-btn":"_menu-categories-btn_1lexj_108","menu-body-banner-container-modifier":"_menu-body-banner-container-modifier_1lexj_121","menu-categories__banner":"_menu-categories__banner_1lexj_130","menu-submenu-modal-modifiier":"_menu-submenu-modal-modifiier_1lexj_135","menu-submenu":"_menu-submenu_1lexj_135","menu-submenu--item":"_menu-submenu--item_1lexj_150","menu-submenu--thumbnails":"_menu-submenu--thumbnails_1lexj_156","menu-submenu--component-list-modifier":"_menu-submenu--component-list-modifier_1lexj_184","submenu-categories":"_submenu-categories_1lexj_187","menu-navigationbar":"_menu-navigationbar_1lexj_191",divider:Bf,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},_c=({children:e,mobileBannerAlt:t,mobileBannerSrc:r,onClick:n,textColor:o,...i})=>c.jsx("button",{onClick:n,className:_e["menu-categories-btn"],children:r?c.jsxs(b.Banner.Container,{...i,className:_e["menu-body-banner-container-modifier"],children:[c.jsx(b.Banner.ImageWrapper,{style:{width:"100%"},children:c.jsx(Oe.Image,{src:r,alt:t??r,className:_e["menu-categories__banner"],width:343,height:128,unoptimized:!0})}),c.jsx(b.Banner.Slot,{verticalAlignment:"center",horizontalAlignment:"start",children:c.jsx(b.TextStructure.Root,{children:c.jsx(b.TextStructure.DivWrapper,{className:_e["menu-categories-textstructure-modifier"],children:c.jsx("h2",{className:"typography-style-body-xs",style:o?{color:o}:{},children:e})})})})]}):c.jsx("h2",{...i,children:e})});_c.displayName="Menu.MenuCategories";const vc=({children:e,link:t})=>{const{reset:r}=He();return t?c.jsx(we,{href:t??"#",onClick:r,children:e}):e};vc.displayName="Menu.MenuCategoriesWrapper";const bc=({subcategory:e,submenuLabel:t})=>{var u,l,p;const{router:r}=Ne(),{reset:n}=He(),{handleSelectContent:o}=ge(),{CONSTANTS:i}=xe(),a=e.listCollapseMobile&&!((u=e.see_all)!=null&&u.link)?{expandAfterRowsQty:e.rowsToShowMobile}:{},s=e.listCollapseMobile&&!((l=e.see_all)!=null&&l.link)?{expansivesAdornments:{open:i.header.ICONS.add,close:i.header.ICONS.minus},expansivesLabels:{open:i.header.COMPONENT_LIST.listExpandLabel,close:i.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:c.jsx(b.Icon,{name:i.header.ICONS.arrow_right,size:"small"})}};return c.jsxs(b.ComponentList.Structure,{className:_e["menu-submenu--component-list-modifier"],children:[c.jsx(pt,{href:e.linkLabel,title:e.label,onClick:()=>{n(),o({content:`menu:${e.label??""}:${t}`})},children:c.jsx(b.TextStructure.Root,{children:c.jsx(b.TextStructure.DivWrapper,{children:c.jsx("h2",{className:"typography-style-body-sm-strong",children:e.label})})})}),c.jsx(b.ComponentList.List,{columns:1,...a,className:_e["submenu-categories"],children:e.items.map((m,d)=>c.jsx(b.ComponentList.ListItem,{id:`list-item-${m.label}-${d}`,divider:!0,children:c.jsx(Ze,{href:m.link??"#",size:"x-small",title:m.label??"",disableUnderline:!0,onClick:()=>{n(),o({content:`menu:${e.label??""}:${m.label}:${t}`})},children:m.label})},`list-item-${m.label}-${d}`))}),((p=e.see_all)==null?void 0:p.link)&&c.jsx(b.ComponentList.Support,{...s,size:"small",onClick:()=>{var m;n(),o({content:`menu:${e.label??""}:${t}`}),(m=e.see_all)!=null&&m.link&&r.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};bc.displayName="Menu.SubMenuSubCategory";const xc=({submenu:e})=>{var i;const t=Lt(),{handleCloseSubMenu:r}=ct(),{reset:n}=De(),{CONSTANTS:o}=xe();return c.jsxs("div",{className:_e["menu-submenu--item"],style:{display:t===e.id?"flex":"none"},children:[c.jsx(b.TextStructure.Root,{adornment:{start:c.jsx(b.Icon,{name:o.header.ICONS.arrow_back,size:"medium",onClick:r})},layoutProps:{textRow:{alignItems:"center",style:{width:"100%",position:"relative"}},columnWrapper:{alignContent:"center",style:{width:"100%"}}},children:e.label&&c.jsx(b.TextStructure.DivWrapper,{style:{position:"absolute",left:"50%",transform:"translate(-50%)"},children:c.jsx("h2",{className:"typography-style-body-md-strong",children:e.label})})}),c.jsx("div",{className:_e["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&c.jsx(uo,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:n})}),(i=e==null?void 0:e.subCategories)==null?void 0:i.map((a,s)=>c.jsx(bc,{subcategory:a,submenuLabel:e.label},`list-${a.label}-${s}`))]})};xc.displayName="Menu.SubMenuItem";const Cc=()=>{const{headerData:e}=xe(),t=Lt(),{reset:r}=De(),{bodyRef:n}=ct();return c.jsx(b.Modal.RootWithoutPortal,{isOpen:!!t,setIsOpen:r,parent:n.current,variant:"sideLeft",style:{position:"absolute",width:"100%"},className:_e["menu-submenu-modal-modifiier"],children:c.jsx("div",{className:_e["menu-submenu"],children:e.subMenus.map((o,i)=>c.jsx(xc,{submenu:o},`submenu-${o.id}-${i}`))})})};Cc.displayName="Menu.SubMenu";const Sc=({className:e,...t})=>{const{headerData:r}=xe(),{setValue:n}=De(),{bodyRef:o}=ct(),{handleSelectContent:i}=ge();return c.jsxs("div",{...t,ref:o,id:"menu-body",className:_e["menu-body"],children:[c.jsx("div",{className:_e["menu-categories-container"],children:r.categories.map((a,s)=>{const u=a.submenuId?{}:{"data-close":!0};return c.jsx(vc,{link:a.submenuId?null:a.link,children:c.jsx(_c,{onClick:()=>{n(a.submenuId??null),i({content:`menu:${a.label}`})},mobileBannerSrc:a.mobileBannerSrc,mobileBannerAlt:a.mobileBannerAlt,textColor:a.textColor,...u,children:a.mobileBannerAlt})},`menu-categories-${s}`)})}),c.jsx(Cc,{})]})};Sc.displayName="Menu.MenuBody";const Ac=({title:e,subtitle:t})=>{const{CONSTANTS:r}=xe();return c.jsxs("div",{className:_e["menu-header-wrapper"],style:t?{alignItems:"start"}:{alignItems:"center"},children:[(e||t)&&c.jsx(b.TextStructure.Root,{children:c.jsxs(b.TextStructure.DivWrapper,{children:[e&&c.jsx("h2",{className:"typography-style-body-md",children:e}),t&&c.jsx("h3",{children:t})]})}),c.jsx(b.Button,{adornment:{end:c.jsx(b.Icon,{name:r.header.ICONS.close})},variant:"tertiary",className:_e["menu-close"],"data-close":!0})]})};Ac.displayName="Menu.MenuHeaderWrapper";const Rc=({navigationLinks:e})=>{const{reset:t}=He(),{handleSelectContent:r}=ge();return e?c.jsx("nav",{className:_e["menu-header-navlinks"],children:e.map((n,o)=>c.jsx(Ze,{href:n.link??"#",adornments:{start:n.iconStart&&c.jsx(b.Icon,{name:n.iconStart}),end:n.iconEnd&&c.jsx(b.Icon,{name:n.iconEnd})},onClick:()=>{t(),r({content:`menu:navigationlinks-${n.label}`})},children:n.label},o))}):null};Rc.displayName="Menu.MenuHeaderNavLinks";const Ec=()=>{const{headerData:e}=xe();return c.jsxs("div",{className:_e["menu-header-container"],children:[c.jsx(Ac,{title:e.title,subtitle:e.subtitle}),c.jsx(Rc,{navigationLinks:e.navigationLinks})]})};Ec.displayName="Menu.MenuHeaderContainer";const wc=({children:e})=>{const{documentBodyRef:t}=ct(),{CONSTANTS:r}=xe(),n=Kn(),{setValue:o}=He();return c.jsx(b.Modal.RootWithoutPortal,{isOpen:n,setIsOpen:o,parent:t.current,variant:"sideLeft",style:{position:"fixed",zIndex:r.header.Z_INDEX_WAR.menu_mobile,bottom:"unset",top:0,overflowY:"hidden"},className:_e["modal-modifier"],children:c.jsx("div",{className:_e["menu-mobile"],children:e})})};wc.displayName="Menu.MenuRoot";const Hf=to(()=>Promise.resolve(wc),{ssr:!1}),Tt=({children:e,...t})=>c.jsxs(c.Fragment,{children:[c.jsx(b.Button,{...t,className:_e["menu-navigationbar-item"],children:e}),c.jsx(b.Utils.Divider,{direction:"vertical",size:"small",className:_e.divider})]});Tt.displayName="Menu.NavigationBarItem";const jc=()=>{const{setIsOpen:e}=Ye(),{reset:t}=He(),{setValue:r}=Qn(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=xe(),{router:i}=Ne();return c.jsxs(b.Card,{id:"menu-navigationbar",shadow:!0,className:_e["menu-navigationbar"],style:{zIndex:o.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:[c.jsx(Tt,{size:"small",variant:"tertiary",iconNameStart:o.header.MENU_INFO.login.button_icon,onClick:()=>{t(),r(!0),n({content:"menu:user_menu"})},children:o.header.MENU_INFO.login.button_text}),c.jsx(Tt,{size:"small",variant:"tertiary",iconNameStart:o.header.MENU_INFO.bag.button_icon,onClick:()=>{t(),e(!0),n({content:"menu:minicart"})},children:o.header.MENU_INFO.bag.button_text}),c.jsx(Tt,{size:"small",variant:"tertiary",iconNameStart:o.header.MENU_INFO.store.button_icon,onClick:()=>{i.push("/institucional/lojas"),t(),n({content:"menu:store"})},children:o.header.MENU_INFO.store.button_text})]})};jc.displayName="Menu.NavigationBar";const Ot={Root:Hf,NavigationBar:jc,Header:Ec,Body:Sc},Ic=({UserMenu:e,SearchModal:t})=>{const r=B.useRef(null),{CONSTANTS:n}=xe(),{MENU_NAVIGATION_BAR_ALLOWED:o,ICONS:i}=n.header,{handleSelectContent:a}=ge(),{setValue:s}=Xn(),{setValue:u}=He();return c.jsxs(c.Fragment,{children:[c.jsxs(b.Header.Wrapper,{children:[c.jsx(b.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:c.jsx(we,{href:"/",children:c.jsx(b.Icon,{name:i.logo,size:"x-large",onClick:()=>{a({content:"header:logo"})}})})}),c.jsxs(b.Header.Support,{children:[c.jsx(b.Header.SupportItem,{onClick:()=>{s(!0),a({content:"header:search"})},children:c.jsx(b.Icon,{name:i.search,size:"medium"})}),c.jsx(co,{}),c.jsxs(b.Header.SupportItem,{onClick:()=>u(!0),children:[c.jsx("span",{ref:r}),c.jsx(b.Icon,{name:i.menu,size:"medium"})]})]})]}),c.jsx(t,{recommendations:!1,trends:!0}),c.jsx(_s,{children:c.jsx(e,{target:r==null?void 0:r.current,children:c.jsxs(Ot.Root,{children:[c.jsx(Ot.Header,{}),c.jsx(Ot.Body,{}),o?c.jsx(Ot.NavigationBar,{}):c.jsx(c.Fragment,{})]})})})]})};Ic.displayName="Header.HeaderMobileWrapper";const Pc=({tipBar:e,miniCart:t,UserMenu:r,SearchModal:n})=>{const{structureRef:o,rootRef:i,CONSTANTS:a}=xe(),{header:{HEADER_CONFIGS:s,Z_INDEX_WAR:u}}=a;return c.jsx(b.Header.Structure,{innerRef:o,adornment:{start:e},style:{position:"sticky",top:0,zIndex:u.header},className:so["header-animation"],children:c.jsxs(b.Header.Root,{innerRef:i,style:{zIndex:u.header},variant:s.default_variant,interactiveVariant:s.interactive_variant,children:[c.jsx("div",{className:Mt["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:u.header_mobile},children:c.jsx(Ic,{UserMenu:r,SearchModal:n})}),c.jsx("div",{className:Mt["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:u.header_desktop},children:c.jsx(yc,{UserMenu:r,SearchModal:n})}),t,c.jsx(eo,{title:"Produto adicionado à sua sacola!",CONSTANTS:a.addToCart})]})})};Pc.displayName="Header";const zf="_shippingFreight_6z8rf_6",Ff="_shippingFreight__postalCodeGrid_6z8rf_10",Uf="_shippingFreight__grid_6z8rf_14",Wf="_shippingFreight__grid__title_6z8rf_18",Gf="_shippingFreight__grid__remember_6z8rf_29",Vf="_postalCodeContainer_6z8rf_44",Kf="_deliveryStatusBar__tag_6z8rf_49",Xf="_deliveryStatusBarError__tag_6z8rf_66",Qf="_deliveryInfo_6z8rf_74",Yf="_deliveryInfo__content_6z8rf_78",Zf="_deliveryInfo__text_6z8rf_84",Jf="_deliveryInfo__title_6z8rf_89",ep="_deliveryInfo__subtitle_6z8rf_99",tp="_deliveryInfo__tooltipIcon_6z8rf_109",rp="_deliveryInfo__tooltip_6z8rf_109",np="_freightGrid_6z8rf_148",op="_freightContainer_6z8rf_155",ip="_freightOption__content_6z8rf_160",ap="_freightOption__value_6z8rf_166",sp="_freightOption__title_6z8rf_177",cp="_freightOption__title_item_6z8rf_181",up="_freightOption__paragraph_6z8rf_192",fe={shippingFreight:zf,shippingFreight__postalCodeGrid:Ff,shippingFreight__grid:Uf,shippingFreight__grid__title:Wf,shippingFreight__grid__remember:Gf,postalCodeContainer:Vf,deliveryStatusBar__tag:Kf,deliveryStatusBarError__tag:Xf,deliveryInfo:Qf,deliveryInfo__content:Yf,deliveryInfo__text:Zf,deliveryInfo__title:Jf,deliveryInfo__subtitle:ep,deliveryInfo__tooltipIcon:tp,deliveryInfo__tooltip:rp,freightGrid:np,freightContainer:op,freightOption__content:ip,freightOption__value:ap,freightOption__title:sp,freightOption__title_item:cp,freightOption__paragraph:up,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},lp=({icon:e,title:t,subtitle:r,packageCount:n,packageUnit:o="",labelDescription:i,freightConfig:a,toolTipZIndex:s})=>{const[u,l]=B.useState(!1),p=B.useRef(null),m=()=>l(d=>!d);return c.jsxs("div",{className:fe.deliveryInfo,ref:p,children:[c.jsx(b.Tooltip.Root,{arrow:"bottom",component:c.jsx("div",{children:c.jsx("p",{children:a.messages.select_size_tag})}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:s},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:p.current}),c.jsxs("div",{className:fe.deliveryInfo__content,children:[c.jsx("div",{className:fe.deliveryInfo__icon,children:c.jsx(b.Icon,{name:e,size:"medium"})}),c.jsxs("div",{className:fe.deliveryInfo__text,children:[c.jsxs("span",{className:fe.deliveryInfo__title,children:[t," ",n," ",o]}),r&&c.jsx("span",{className:fe.deliveryInfo__subtitle,children:r})]}),i&&c.jsxs("div",{className:fe.deliveryInfo__tooltipIcon,onMouseEnter:m,onMouseLeave:m,"aria-label":"Mostrar descrição",children:[c.jsx("span",{children:c.jsx(b.Icon,{name:a.icons.feedback_help,size:"small"})}),u&&c.jsx("div",{className:fe.deliveryInfo__tooltip,children:i})]})]})]})},dp=({value:e,title:t,paragraph:r})=>c.jsx("div",{className:fe.freightOption,children:c.jsxs("div",{className:fe.freightOption__content,children:[c.jsx("span",{className:fe.freightOption__value,children:e}),c.jsx("span",{className:fe.freightOption__title,children:c.jsx(b.TextStructure.Root,{children:c.jsxs(b.TextStructure.DivWrapper,{className:fe.footer__item,children:[c.jsx("span",{className:fe.freightOption__title_item,children:t}),r&&c.jsx("span",{className:fe.freightOption__paragraph,children:r})]})})})]})}),fp=({children:e})=>c.jsx("div",{className:fe.freightContainer,children:e}),pp=({children:e})=>c.jsx("div",{className:fe.freightGrid,children:e}),mp=({children:e})=>c.jsx("div",{className:fe.postalCodeContainer,children:e}),ha=({message:e,seller:t="",size:r="small",setError:n})=>c.jsx("div",{className:n?fe.deliveryStatusBarError:fe.deliveryStatusBar,children:c.jsxs(b.Tag,{title:e,className:n?fe.deliveryStatusBarError__tag:fe.deliveryStatusBar__tag,size:r,children:[e," ",!n&&t]})}),hp=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},gp=e=>{var r,n,o;const t=[];return(o=(n=(r=e==null?void 0:e.logisticsInfo)==null?void 0:r[0])==null?void 0:n.slas)==null||o.forEach(i=>{t.push({id:i.id,name:i.name,price:i.price,shippingEstimate:i.shippingEstimate})}),t},yp=({component:e,parent:t,top:r,left:n,target:o,contentRef:i,freightConfig:a,toolTipZIndex:s=999,...u})=>{const{isMobile:l}=ke();return c.jsx(c.Fragment,{children:l?c.jsx(b.Tooltip.Root,{arrow:"bottom",component:c.jsxs("div",{...u,ref:i,children:[e,c.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:s},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:t}):c.jsx(b.Tooltip.Root,{arrow:"bottom",component:c.jsxs("div",{...u,ref:i,children:[e,c.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:s},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:t})})},_p=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:n,quantity:o,setError:i,setIsButtonClicked:a,component:s,freightConfig:u,toolTipZIndex:l})=>{var N,j,k,P;const p=Ve(),m=Ve(q=>q.shipping),[d,f]=B.useState(),[h,y]=B.useState(!1),[g,v]=B.useState(!1),[R,_]=B.useState(!1),S=(j=(N=p.shippingData)==null?void 0:N.address)==null?void 0:j.postalCode,C=!(d!=null&&d.length)&&S?S:d,w=B.useRef(null),x=async q=>{const G=q.target.value.replace(/\D/g,"").slice(0,8);G.length>5?f(G.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):f(G)},I=async q=>{const z=q.target.value.replace(/\D/g,"");try{if((await po.get(`https://viacep.com.br/ws/${z}/json/`)).data.erro){i&&i(u.messages.cep_not_found),a(!1),v(!0);return}i&&i(""),v(!1)}catch{console.log("Erro ao validar o CEP. Tente novamente mais tarde.")}},$=async()=>{y(!0);try{const q=await po.post("/api/checkout/simulation",{items:[{id:n,quantity:o,seller:t}],country:"BRA",postalCode:C});e(gp(q.data))}catch(q){console.error("Erro ao atualizar o documento:",q)}finally{y(!1),m(C,"BRA")}},A=async()=>{if(!n){_(!0),setTimeout(()=>_(!1),1500);return}await I({target:{value:C}}),h||($(),a(!0))};return c.jsxs("div",{ref:w,style:{position:"relative"},children:[!n&&R?c.jsx(yp,{component:s,isOpen:R,parent:w.current,toolTipZIndex:l,freightConfig:u}):c.jsx(c.Fragment,{}),c.jsx("div",{style:{position:"relative"},children:c.jsx(b.TextField.Structure,{title:"structure",style:{width:"100%"},input:c.jsx(b.TextField.Input,{defaultValue:(P=(k=p.shippingData)==null?void 0:k.address)==null?void 0:P.postalCode,label:u.messages.text_input_label,title:"textfield",value:d,sizeVariant:r,onMouseOver:()=>n?null:_(!0),onMouseOut:()=>n?null:_(!1),mode:"simple",onChange:x,onKeyDown:q=>{q.key==="Enter"&&A()},className:fe["input-modifier"],feedback:g?"error":"none"}),right:c.jsx(b.Button,{onClick:A,size:r,title:"button",children:h?c.jsx(b.Spinner,{size:"small",indicatorColor:"#ffffff"}):u.messages.text_input_btn})})})]})},vp=({children:e,freightConfig:t})=>c.jsxs("div",{className:fe.shippingFreight,children:[c.jsxs("div",{className:fe.shippingFreight__grid,children:[c.jsx("span",{className:fe.shippingFreight__grid__title,children:t.messages.title}),c.jsx("span",{className:fe.shippingFreight__grid__remember,children:c.jsx(Ze,{href:"https://buscacepinter.correios.com.br/app/endereco/index.php",passHref:!0,target:"_blank",rel:"noopener noreferrer",size:"x-small",disablePadding:!1,title:t.messages.remember_cep,children:t.messages.remember_cep})})]}),c.jsx("div",{className:fe.shippingFreight__postalCodeGrid,children:e})]}),bp=({children:e})=>c.jsx("div",{className:fe.freightContainer,children:e}),xp=({className:e,sellerId:t,skuId:r,quantity:n,size:o,seller:i,local:a,CONSTANTS_PROPS:s})=>{const{sendDataLayerEvent:u}=ge(),[l,p]=B.useState(""),[m,d]=B.useState([]),[f,h]=B.useState(""),[y,g]=B.useState(!1),v=_=>p(_),R=_=>{d(_),u({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:{shippings:_.map(S=>({shipping_tier:S.id,delivery_time:S.shippingEstimate.replace("bd",""),flag_pickup:S.name.toLowerCase().includes("retirada")?"true":"false",shipping:S.price,currency:s.currency||"BRL"}))}}})};return c.jsxs(bp,{className:e,children:[c.jsxs(vp,{freightConfig:s.freightConfig,children:[c.jsx(mp,{children:c.jsx(_p,{onUpdateFreightItems:R,skuId:r,quantity:n,size:o,sellerId:t,local:a,setError:h,setIsButtonClicked:g,freightConfig:s.freightConfig,toolTipZIndex:s.toolTipZIndex})}),f?c.jsx(ha,{size:o,message:f,setError:h}):m.length>0&&c.jsx(ha,{size:o,message:s.freightConfig.messages.delivered_by,seller:i})]}),y&&!f?m.length>0&&c.jsxs(fp,{children:[c.jsx(pp,{children:m.filter(({id:_})=>!_.includes("Retirada")).map(_=>c.jsx(dp,{id:_.id,value:Ca({valueInCents:_.price,hasFree:!1,freeTaxMessage:s.freightConfig.messages.free_tax}),title:_.name,paragraph:`${s.freightConfig.messages.prefix_days}${hp(_.shippingEstimate)}`,radioValue:l,changeValue:v},_.id))}),s.deliveryInfoBoxesAllowed?c.jsx(lp,{icon:s.freightConfig.icons.delivery_truck,packageUnit:s.freightConfig.messages.unit_amout,title:s.freightConfig.messages.delivered_amount_packages,subtitle:"",packageCount:1,labelDescription:"Label",freightConfig:s.freightConfig,toolTipZIndex:s.toolTipZIndex??999}):c.jsx(c.Fragment,{})]}):null]})},Nc=B.createContext({}),Cp=({children:e,item:t,index:r,shelfTitle:n,...o})=>{const[i,a]=B.useState(null),s=B.useRef(null),u=B.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:l,itemListRef:p}=ge(),m=y=>{l({functionKey:"productEvents",data:{commonData:{...t,availableSizes:u.current.availableSkus,...u.current.priceInfo},customData:{index:r+1},event:y}})},d=()=>{m("add_to_wishlist")},f=()=>{l({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...u.current.priceInfo}]},supportData:{selectedSku:i,selectedSkus:[i]},customData:{index:r}}})},h=()=>{n&&(p.current={item_list_name:n}),m("select_item")};return c.jsx(Nc.Provider,{value:B.useMemo(()=>({...o,index:r,item:t,element:s,selectedSku:i,setSelectedSku:a,eventDataRef:u,sendAddToWishlistEvent:d,sendSelectItemEvent:h,sendAddToCartEvent:f}),[o,t,s,i]),children:e})},Ie=()=>{const e=B.useContext(Nc);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},Se={"product-card--actions":"_product-card--actions_5xa7u_1","product-card--actions--group":"_product-card--actions--group_5xa7u_9","product-card--actions--selectors":"_product-card--actions--selectors_5xa7u_21","product-card--body":"_product-card--body_5xa7u_33","product-card--header":"_product-card--header_5xa7u_47","product-card--footer":"_product-card--footer_5xa7u_67","product-card--image":"_product-card--image_5xa7u_90","product-card--image--container":"_product-card--image--container_5xa7u_97","product-card--outstock":"_product-card--outstock_5xa7u_133","product-card--price":"_product-card--price_5xa7u_155","product-card--title":"_product-card--title_5xa7u_180","product-card--title--tag":"_product-card--title--tag_5xa7u_186","product-card--title--content":"_product-card--title--content_5xa7u_203","product-card--selectors--size":"_product-card--selectors--size_5xa7u_243","product-card--selectors--size--button":"_product-card--selectors--size--button_5xa7u_269","product-card--selectors--size--skus":"_product-card--selectors--size--skus_5xa7u_278","product-card--selectors--style":"_product-card--selectors--style_5xa7u_292","product-card--selectors--style--more":"_product-card--selectors--style--more_5xa7u_302","product-card--video":"_product-card--video_5xa7u_319","product-card--wrapper":"_product-card--wrapper_5xa7u_345"},Oc=({callback:e,children:t,className:r,data:n,isKit:o,...i})=>{const{item:{availability:{status:a},image:s}}=Ie();return a?c.jsxs("div",{...i,className:b.helpers.classNameConcat(Se["product-card--actions"],r),children:[c.jsxs(Ge.Wrapper,{type:"actions--group",children:[c.jsx(Ge.Price,{}),c.jsx("div",{className:Se["product-card--actions--selectors"],children:!o&&c.jsx(Ge.StyleSelector,{data:n,images:s,callback:e})})]}),t]}):null};Oc.displayName="ProductCard.Actions";const Tc=({className:e,isKit:t,...r})=>{const{addToCart:n}=Ye(),{isMobile:o=!1,selectedSku:i,outStock:a,item:s,sendAddToCartEvent:u,CONSTANTS:l}=Ie(),p=()=>{var f;if(!i)return;const d=Ea(i.offers.offers,l.StoreConfig_MainSellerId);d&&n({id:i==null?void 0:i.sku,quantity:1,seller:d.seller.identifier},{id:s.id,texture:(f=s==null?void 0:s.image.find(h=>l.TEXTURE_IMAGE.includes(h.alternateName)))==null?void 0:f.url}),u()},m=i?l.BUY_BUTTON_LABELS.add_to_cart:l.BUY_BUTTON_LABELS.select_size;return c.jsx(b.Button,{...r,className:b.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!i&&!a,size:o?"medium":"large",variant:a?"secondary":"primary",onClick:a?r.onClick:p,children:a?"Avise-me quando chegar":m})};Tc.displayName="ProductCard.Actions.BuyButton";const Mc=({product:e,tag:t,size:r="small"})=>{const n=e.offers.offers[0],{CONSTANTS:o,WishListToggle:i}=Ie();return c.jsxs(Ge.Wrapper,{type:"header",style:{zIndex:o.Z_INDEX_WAR.product_card_header},children:[t?c.jsx(b.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?c.jsx(b.Icon,{name:t.icon,size:"small",style:{color:t.iconColor}}):null},size:r,variant:"quaternary",style:{background:t.tagColor,color:t.textColor},children:t.value}):null,o.PRODUCT_CARD_TOP_WISHLIST_TOGGLE&&c.jsx(i,{product:e,priceInfo:{price:n.price,listPrice:n.listPrice},variant:"card"})]})};Mc.displayName="ProductCard.Actions.Header";const kc=({className:e,children:t,hasPriority:r=!1,showVideo:n=!1,...o})=>{const{element:i,index:a,item:{image:s,slug:u,video:l},sendSelectItemEvent:p,order:m,CONSTANTS:d}=Ie(),f=Pa({images:s,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return c.jsxs("div",{...o,className:b.helpers.classNameConcat(Se["product-card--image"],e),ref:i,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[c.jsx(we,{href:`/${u}/p`,onClick:p,onMouseUp:h=>{h.button===1&&p(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(m))},children:c.jsx("div",{className:Se["product-card--image--container"],children:Array.isArray(f)&&f.map(({url:h,alternateName:y},g)=>B.createElement(Oe.Image,{...d.PRODUCT_IMAGE_DIMENSIONS.product_card,style:d.PRODUCT_IMAGE_DIMENSIONS.product_card,alt:y??"product image",key:g,...r&&{priority:g===0&&a<4},objectFit:"cover",src:h}))})}),d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&n&&l&&c.jsx(Ge.Video,{url:l,poster:f[0].url}),t]})};kc.displayName="ProductCard.Media.Media";const Lc=({className:e,callback:t,children:r,...n})=>{const{isMobile:o,item:i,CONSTANTS:{PRODUCT_CARD_TEXTS:a}}=Ie(),{availability:{status:s}}=i;return s?null:c.jsxs("div",{...n,className:b.helpers.classNameConcat(Se["product-card--outstock"],e),children:[c.jsx(b.Tag,{size:"small",variant:"secondary",title:a.disabled,children:a.disabled}),c.jsx(b.Button,{className:b.helpers.classNameConcat(e,"buy-button"),size:o?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(i)},children:a.notify})]})};Lc.displayName="ProductCard.OutStock";const Dc=({children:e,className:t="",index:r,isMobile:n=!1,item:o,size:i,order:a,outStock:s,shelfTitle:u,CONSTANTS:l,WishListToggle:p,...m})=>c.jsx(Cp,{item:o,isMobile:n,outStock:s,order:a,size:i,index:r,shelfTitle:u,CONSTANTS:l,WishListToggle:p,children:c.jsx("div",{...m,className:b.helpers.classNameConcat(Se["product-card--wrapper"],t),"data-size":i,children:e})});Dc.displayName="ProductCard.Root";const $c=({disabled:e,label:t,size:r,value:n,onClick:o,...i})=>c.jsxs(b.ToggleSize.Wrapper,{...i,disabled:!1,outOfStock:e,size:r,onClick:o,children:[c.jsx(b.ToggleSize.DisabledAdornment,{}),c.jsx(b.ToggleSize.Text,{children:t})]});$c.displayName="ProductCard.SizeSelector.Item";const qc=({active:e=!1,callback:t,selectedSku:r=null,item:n,setNotify:o})=>{const{item:i,isMobile:a,setSelectedSku:s,eventDataRef:u}=Ie();n.productId=i.id;const l=Ra(n),p=Sa(n,"tamanho");!l&&!u.current.availableSkus.includes(p)&&u.current.availableSkus.push(p);const m=B.useCallback(f=>{const h=r===f?null:f;typeof s=="function"&&s(h),typeof t=="function"&&t(h)},[t,s,r]),d=B.useCallback(()=>{if(l&&typeof o=="function"){o(i,n);return}m(n)},[n,o,m,l,i]);return c.jsx($c,{active:e,disabled:l,label:p,onClick:()=>d(),size:a?"x-small":"small",value:n})};qc.displayName="ProductCard.SizeSelector.SkuItem";const Bc=({callback:e,className:t="",children:r,setNotify:n,...o})=>{const{isMobile:i,item:{isVariantOf:{hasVariant:a}},selectedSku:s}=Ie();return c.jsxs("div",{...o,className:b.helpers.classNameConcat(Se["product-card--selectors--size"],t),"data-mobile":i,children:[c.jsx("div",{className:Se["product-card--selectors--size--skus"],children:Array.isArray(a)&&a.map((u,l)=>c.jsx(qc,{active:s===u,callback:e,item:u,selectedSku:s,setNotify:n},`size--${l}--${u.sku}`))}),c.jsx("div",{className:Se["product-card--selectors--size--button"],children:r})]})};Bc.displayName="ProductCard.SizeSelector";const Fn=({alt:e="",callback:t,more:r,total:n=4,src:o,url:i,...a})=>c.jsxs(b.ToggleStyle.Wrapper,{...a,onClick:()=>{typeof t=="function"&&t(i)},children:[c.jsx(b.ToggleStyle.DisabledAdornment,{}),c.jsxs(b.ToggleStyle.Texture,{children:[o&&c.jsx(Oe.Image,{alt:e??o,src:o,height:34,width:34}),r&&c.jsx(b.TextStructure.DivWrapper,{className:Se["product-card--selectors--style--more"],children:c.jsxs("p",{children:["+ ",n]})})]})]}),Sp=({children:e,callback:t,data:r,total:n=4,size:o,...i})=>{const{index:a}=Ie(),{triggerSelectItemEventRef:s}=ge();return c.jsxs("div",{...i,children:[e,Array.isArray(r)&&r.slice(0,n).map((u,l)=>c.jsx(Fn,{callback:p=>{s.current.trigger=!0,s.current.index=a,typeof t=="function"&&t(p)},src:(u==null?void 0:u.textureImage)??"",alt:u==null?void 0:u.textureAlt,url:u==null?void 0:u.slug,size:o},l)),Array.isArray(r)&&(r==null?void 0:r.length)>n&&c.jsx(Fn,{size:o,total:r.length-n,more:!0})]})},Hc=({callback:e,className:t,data:r,images:n=[],findTexture:o,...i})=>{const{CONSTANTS:a}=Ie(),s=o||a.TEXTURE_IMAGE,u=n==null?void 0:n.find(l=>s.includes(l.alternateName));return c.jsx(Sp,{...i,callback:e,className:b.helpers.classNameConcat(Se["product-card--selectors--style"],t),data:r,size:"x-small",children:u&&c.jsx(Fn,{active:!0,size:"x-small",src:u.url})})};Hc.displayName="ProductCard.StyleSelector";const zc=({className:e,hasDecimal:t,...r})=>{const{isMobile:n,item:{offers:{lowPrice:o,highPrice:i},installments:{count:a,value:s}},eventDataRef:u}=Ie();u.current.priceInfo={price:o,listPrice:i};const l=Me(i,t),p=Me(o,t),m=Me(s??0),d=n?"horizontal":"stacked";return c.jsx("div",{...r,className:b.helpers.classNameConcat(Se["product-card--price"],e),"data-mobile":n,children:c.jsx(b.ProductInfo.Root,{size:"small",layout:d,children:c.jsxs(b.ProductInfo.Wrapper,{size:"small",layout:d,children:[c.jsx(b.ProductInfo.ValuesWrapper,{children:p!==l?c.jsxs(c.Fragment,{children:[c.jsx(b.ProductInfo.Price,{label:"originalPrice",value:l,size:"small"}),c.jsx(b.ProductInfo.Price,{label:"discountPrice",value:p,size:"small"})]}):c.jsx(b.ProductInfo.Price,{label:"defaultPrice",value:p,size:"small"})}),a&&a>1&&s?c.jsx(b.ProductInfo.Price,{label:"installment",value:`${a}x ${m}`,size:"small"}):null]})})})};zc.displayName="ProductCard.Price";const Fc=({tag:e,className:t})=>{const{item:{name:r}}=Ie();return c.jsxs("div",{className:b.helpers.classNameConcat(Se["product-card--title"],t),children:[c.jsx("div",{className:Se["product-card--title--tag"],children:e?c.jsx(b.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?c.jsx(b.Icon,{name:e.icon,style:{color:e.iconColor}}):null},style:{background:e.tagColor,color:e.textColor},children:e.value}):c.jsx("div",{})}),c.jsx("div",{className:Se["product-card--title--content"],children:r&&c.jsx(b.TextStructure.Root,{children:c.jsx(b.TextStructure.DivWrapper,{children:c.jsx("h3",{children:r})})})})]})};Fc.displayName="ProductCard.Title";const Uc=({className:e,url:t,poster:r,...n})=>{const{element:o}=Ie();return B.useEffect(()=>{if(!(o!=null&&o.current))return;const i=o.current,a=i.querySelector("video");if(a){const s=new IntersectionObserver(p=>{p.forEach(m=>{Na(m.isIntersecting,a,t)})},{root:null,rootMargin:"0px",threshold:.5}),u=()=>{a.setAttribute("data-loaded","true")},l=()=>{i&&(s.observe(i),a.addEventListener("loadeddata",u))};return document.readyState==="complete"?l():window.addEventListener("load",l),()=>{s.disconnect(),window.removeEventListener("load",l)}}return()=>null},[t,o]),c.jsx("div",{...n,className:b.helpers.classNameConcat(Se["product-card--video"],e),children:t&&c.jsx(Oe.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};Uc.displayName="ProductCard.Media.Video";const Wc=({children:e,className:t,type:r,...n})=>c.jsx("div",{...n,className:b.helpers.classNameConcat(Se[`product-card--${r}`],t),children:e});Wc.displayName="ProductCard.Wrapper";const Ge={Actions:Oc,BuyButton:Tc,Header:Mc,Media:kc,Root:Dc,OutStock:Lc,Price:zc,SizeSelector:Bc,StyleSelector:Hc,Title:Fc,Video:Uc,Wrapper:Wc},ga=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:n})=>{const o=ja(e.imageUrl,n.pdp),{nextimage:i}=Ne();return c.jsx(i,{src:o,alt:e.imageLabel,objectFit:"contain",...n.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},Ap=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:n}=ge(),o=B.useRef(!1);return c.jsx(Oe.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{o.current||(o.current=!0,n({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:t}}}))},poster:r})},Rp={"gallery-carousel-modifier":"_gallery-carousel-modifier_1dxfy_92"},Gc=({images:e,video:t,handleZoom:r,productName:n,PRODUCT_IMAGE_DIMENSIONS:o})=>{var l,p;const{initialize:i,pagination:a,controller:s,itemsStyles:u}=b.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return c.jsxs(b.Carousel.Root,{innerRef:m=>{i(m)},className:Rp["gallery-carousel-modifier"],children:[c.jsx(b.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:c.jsx(b.Carousel.Bullets,{page:a.currentPage,total:e.length,onBulletClick:m=>s==null?void 0:s.navigateTo(m)})}),c.jsxs(b.Carousel.Body,{children:[c.jsx(b.Carousel.Item,{style:u,children:c.jsx(ga,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},"PDP_gallery_0"),t&&c.jsx(b.Carousel.Item,{style:u,children:c.jsx(Ap,{video:t,productName:n,...((l=e[1])==null?void 0:l.imageUrl)&&{poster:(p=e[1])==null?void 0:p.imageUrl}})},"PDP_gallery_video"),e.map((m,d)=>d===0?null:c.jsx(b.Carousel.Item,{style:u,children:c.jsx(ga,{image:m,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},`PDP_gallery_${d}`))]})]})};Gc.displayName="PDP.Carousel";const Ep=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{video:r,productName:n}=Gn(),[o,i]=B.useState({show:!1,initialIndex:0});B.useEffect(()=>(o.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[o]);const a=s=>{i({show:!0,initialIndex:s})};return c.jsx(c.Fragment,{children:c.jsx(Gc,{images:e,video:r,handleZoom:a,productName:n,PRODUCT_IMAGE_DIMENSIONS:t})})},Vc=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{images:r}=Gn(),n=B.useMemo(()=>{const o=r.filter(i=>!e.includes(i.imageLabel));return o.length>0?o:r},[]);return c.jsx(Ep,{productImgs:n,PRODUCT_IMAGE_DIMENSIONS:t})};Vc.displayName="PDP.Gallery";const wp=Object.freeze(Object.defineProperty({__proto__:null,Gallery:Vc},Symbol.toStringTag,{value:"Module"})),jp={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},lo=({size:e,adornment:t,title:r,subtitle:n,supportChildren:o,className:i,Z_INDEX_WAR:a,...s})=>c.jsxs(b.SnackBar.Structure,{...s,size:e,className:b.helpers.classNameConcat(jp["snackbar-modifier"],i),width:360,style:{zIndex:a.snackbar},children:[c.jsx(b.SnackBar.Content,{adornment:t,title:r,subtitle:n}),o&&c.jsx(b.SnackBar.Support,{children:o})]});lo.displayName="SnackBar";const Kc=B.createContext({}),Ip=({data:e,children:t,...r})=>{var h,y,g,v,R,_,S,C,w,x,I,$,A;const[n,o]=B.useState(!0),{initialize:i,controller:a,itemsStyles:s}=b.Carousel.useCarousel({gap:0,itemsPerPage:1}),u={slideTranstionTimer:(y=(h=e==null?void 0:e.staticConfig)==null?void 0:h.staticConfig)==null?void 0:y.slideTranstionTimer,showCarouselArrows:(v=(g=e==null?void 0:e.staticConfig)==null?void 0:g.staticConfig)==null?void 0:v.showCarouselArrows,hasCloseBtn:(_=(R=e==null?void 0:e.staticConfig)==null?void 0:R.staticConfig)==null?void 0:_.hasCloseBtn,backgroundColor:(C=(S=e==null?void 0:e.staticConfig)==null?void 0:S.staticConfig)==null?void 0:C.backgroundColor,textColorVariant:(x=(w=e==null?void 0:e.staticConfig)==null?void 0:w.staticConfig)==null?void 0:x.textColorVariant,content:(($=(I=e==null?void 0:e.content)==null?void 0:I.content)==null?void 0:$.items)??[]},l=(A=u.content)==null?void 0:A.filter(N=>!N.countDownEndDate||new Date(N.countDownEndDate)>new Date),p=l.length>1,m={...u.backgroundColor?{backgroundColor:u.backgroundColor}:{}},d=()=>{o(!1)},f=b.helpers.ValidateProp({fieldTypes:nt.Mode,property:u.textColorVariant,fallback:"default"});return c.jsx(Kc.Provider,{value:{isOpen:n,setIsOpen:o,hasCarousel:p,backgroundStyle:m,handleCloseTipbar:d,mode:f,slideTranstionTimer:u.slideTranstionTimer,showCarouselArrows:u.showCarouselArrows,hasCloseBtn:u.hasCloseBtn,slices:l,carouselProps:{initialize:i,controller:a,itemsStyles:s},...r},children:t})},$e=()=>B.useContext(Kc),Pp=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=$e();return c.jsx($n,{dateEnd:new Date(e),TIME_ZONE:r,...t})},Np="_tipbar_bt3p0_1",Op="_tipbar__carousel_bt3p0_15",mt={tipbar:Np,tipbar__carousel:Op,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},Tp=({coupon:e,feedbackTitle:t,feedbackDescription:r,...n})=>{const{CONSTANTS:o}=$e(),[i,a]=B.useState({status:!1,showSnackBar:!1}),s=()=>{a({status:!0,showSnackBar:!0})};return B.useEffect(()=>{i.status&&setTimeout(()=>{a({status:!0,showSnackBar:!1})},o.TIPBAR_CONFIGS.snackbar_timeout)},[i]),c.jsxs(c.Fragment,{children:[c.jsx(b.Button,{...n,onClick:s,disabled:i.status,className:mt["tipbar-item__coupon"],children:i.status?"Cupom aplicado":"Aplicar cupom"}),i.showSnackBar&&(t||r)&&c.jsx(lo,{title:t,subtitle:r,Z_INDEX_WAR:o.Z_INDEX_WAR},`feedback-coupon-${e}`)]})},Mp=({title:e,description:t,style:r,mode:n,className:o})=>c.jsx(b.TextStructure.Root,{children:c.jsxs(b.TextStructure.DivWrapper,{mode:n,className:o,children:[e&&c.jsx("h3",{className:"typography-style-body-sm",style:r,children:e}),t&&c.jsx("p",{className:"typography-style-caption",style:r,children:t})]})}),kp=({className:e,description:t,staticZone:r,title:n,type:o})=>{const{mode:i}=$e();if(o==="countdown")return c.jsx(Pp,{dateEnd:r.countDownEndDate,size:"x-small",mode:i});if(o==="coupon"){const a=b.helpers.ValidateProp({fieldTypes:nt.Mode,property:r.couponButtonMode,fallback:"default"}),s=b.helpers.ValidateProp({fieldTypes:nt.VariantsExtended,property:r.couponButtonVariant,fallback:"primary"});return r.coupon?c.jsx(Tp,{coupon:r.coupon,mode:a,variant:s,feedbackTitle:r.couponFeedbackTitle,feedbackDescription:r.couponFeedbackDescription}):null}return c.jsx(Mp,{title:n,description:t,mode:i,className:e})},Lp=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:n})=>{const{carouselProps:o,CONSTANTS:i}=$e(),a=B.useRef(null),s=(l,p)=>{var m,d;l.stopPropagation(),l.preventDefault(),p==="prev"?(m=o.controller)==null||m.prevPage():(d=o.controller)==null||d.nextPage(),a.current&&(clearInterval(a.current),u())},u=B.useCallback(()=>{if(n&&o.controller){const l=setInterval(()=>{var p;(p=o.controller)==null||p.nextPage()},n);a.current=l}},[n,o]);return B.useEffect(()=>(u(),()=>{a.current&&clearInterval(a.current)}),[n,u]),c.jsxs(b.Carousel.Root,{innerRef:l=>{o.initialize(l)},className:mt.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[r&&c.jsx(b.Button,{variant:"tertiary",mode:t,onClick:l=>s(l,"prev"),adornment:{start:c.jsx(b.Icon,{name:i.ICONS.arrow_left})}}),c.jsx(b.Carousel.Body,{children:e}),r&&c.jsx(b.Button,{variant:"tertiary",mode:t,onClick:l=>s(l,"next"),adornment:{start:c.jsx(b.Icon,{name:i.ICONS.arrow_right})}})]})},ya=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=$e();return c.jsx(b.Button,{title:"fechar tipbar",className:mt["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:c.jsx(b.Icon,{name:r.ICONS.close})}})},Dp=({children:e})=>{const{hasCarousel:t,mode:r,hasCloseBtn:n,backgroundStyle:o,showCarouselArrows:i,slideTranstionTimer:a,handleCloseTipbar:s}=$e(),u=t&&i;return c.jsx("div",{style:o,"data-hasclosebtn":n,className:mt.tipbar,children:t?c.jsxs(c.Fragment,{children:[c.jsx(Lp,{mode:r,showCarouselArrows:u,slideTranstionTimer:a,children:e}),n&&c.jsx(ya,{handleCloseTipbar:s,showCarouselArrows:u,mode:r})]}):c.jsxs(c.Fragment,{children:[e,n&&c.jsx(ya,{handleCloseTipbar:s,mode:r})]})})},$p=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:n,carouselProps:o}=$e(),i=c.jsx("div",{...r,className:mt["tipbar-item"],children:e});return n?c.jsx(b.Carousel.Item,{style:o.itemsStyles,children:i}):i},Xc=({className:e})=>{const{isOpen:t,slices:r}=$e();return r.length&&t?c.jsx(Dp,{children:r.map((n,o)=>{var i;return c.jsx(c.Fragment,{children:c.jsx(pt,{href:n.link,children:c.jsx($p,{highlightFirstSection:n.highlightFirstSection,"data-justifyhighlightedsection":n.horizontalAlignHighlightedSection?n.horizontalAlignHighlightedSection:"center",children:n&&((i=n==null?void 0:n.items)!=null&&i.length)?n.items.map((a,s)=>c.jsx(kp,{staticZone:n,type:a.type,title:a.title,description:a.description,className:e},`tipbar-slice-field-${s}`)):null})})},`tipbar-slice-${o}`)})}):null};Xc.displayName="TipBar.Root";const Qc=({className:e,...t})=>c.jsx(Ip,{...t,children:c.jsx(Xc,{className:e})});Qc.displayName="TipBar";const qp={teamComponents:{AddToCart:eo,BackToTop:id,...Lf,FreightCalculation:xp,Header:Pc,Link:Ze,Media:Oe,ProductCard:Ge,TipBar:Qc},template:{pdp:wp},utils:{EventCollector:ad,ExternalScripts:yd,LinkOrNotLink:pt,ObserverWrapper:Jn,SnackBarComponent:lo}};exports.cms=Jl;exports.contexts=Ku;exports.data=Rs;exports.layout=qp;