@soma-vertical-web/multi-lib 1.0.32 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cms/ContentTypes/Search/SearchContent.d.ts +1 -1
- package/cms/Sections/ProductCarousel/request.d.ts +0 -4
- package/cms/index.d.ts +1 -1
- package/contexts/contexts/GlobalContext.d.ts +1 -1
- package/contexts/contexts/plp/PLPInfiniteContext.tsx.d.ts +1 -1
- package/contexts/contexts/search/Facets.d.ts +1 -1
- package/contexts/contexts/search/Products.d.ts +1 -1
- package/contexts/contexts/search/QueryFacets.d.ts +5 -0
- package/contexts/contexts/search/QueryProducts.d.ts +5 -0
- package/contexts/contexts/search/RootTank.d.ts +9 -0
- package/contexts/contexts/search/TopSearches.d.ts +1 -1
- package/contexts/hooks/useOperations.d.ts +1 -1
- package/contexts/index.d.ts +4 -4
- package/contexts/store/plp-scroll.d.ts +3 -0
- package/data/api/cms/content-type/index.d.ts +1 -1
- package/data/api/fetchProxy.d.ts +9 -0
- package/data/api/user/index.d.ts +2 -2
- package/data/helpers/plp/index.d.ts +1 -2
- package/data/index.d.ts +6 -5
- package/index-BFjIPkXv.js +4 -0
- package/{index-BM8vTUKg.mjs → index-CIVkR1d_.mjs} +776 -712
- package/index-CXSKhXO3.js +4 -0
- package/index-ekZLWJ5-.mjs +2686 -0
- package/index.js +16 -16
- package/index.mjs +6518 -6803
- package/index2.js +2 -2
- package/index2.mjs +101 -97
- package/layout/index.d.ts +4 -4
- package/layout/team-component/AddToCart/AddToCart.d.ts +1 -1
- package/layout/team-component/AddToCart/Composite/Card/Card.d.ts +1 -1
- package/layout/team-component/AddToCart/Composite/Card/Content.d.ts +1 -1
- package/layout/team-component/AddToCart/Composite/Card/StyleSize.d.ts +1 -1
- package/layout/template/MiniCart/Composite/Card/Card.d.ts +1 -1
- package/layout/template/MiniCart/Composite/Card/Composite/Sku.d.ts +1 -1
- package/layout/template/MiniCart/Composite/Card/Composite/Style.d.ts +1 -1
- package/layout/template/MiniCart/Composite/Card/index.d.ts +2 -2
- package/layout/template/MiniCart/Composite/Modal/Body/Body.d.ts +1 -1
- package/layout/template/MiniCart/MiniCart.d.ts +1 -1
- package/layout/template/MiniCart/index.d.ts +2 -2
- package/layout/template/PDC/Composite/InfiniteScroller/Filters/Filters.d.ts +11 -0
- package/layout/template/PDC/Composite/InfiniteScroller/Filters/index.d.ts +1 -0
- package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/AnchorPDP.d.ts +7 -0
- package/layout/template/PDC/Composite/Products/Products.d.ts +1 -1
- package/layout/template/PDC/index.d.ts +1 -1
- package/layout/template/QuickShop/Composite/Body.d.ts +1 -1
- package/layout/template/QuickShop/Composite/Similars.d.ts +1 -1
- package/layout/template/SearchModal/SearchModal.d.ts +1 -1
- package/layout/template/SearchResult/Composite/Products.d.ts +7 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/cms/Sections/SectionZone/index.d.ts +0 -1
- package/types/contexts/contexts/global.d.ts +1 -0
- package/types/contexts/contexts/plp.d.ts +3 -4
- package/types/contexts/contexts/search.d.ts +2 -7
- package/types/contexts/hooks/index.d.ts +1 -3
- package/types/layout/team-components/AddToCart/index.d.ts +1 -5
- package/types/layout/team-components/HelpButton/index.d.ts +2 -4
- package/types/layout/team-components/ProductCard/index.d.ts +0 -1
- package/types/layout/team-components/ProductList/index.d.ts +1 -2
- package/types/layout/templates/MiniCart/index.d.ts +0 -2
- package/types/layout/templates/PLP/index.d.ts +0 -1
- package/types/layout/templates/QuickShop/index.d.ts +1 -2
- package/types/layout/templates/SearchModal/index.d.ts +1 -2
- package/index-CZjoMPpQ.js +0 -4
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";const Gn=require("yup"),w=require("react/jsx-runtime"),kn=require("@soma-vertical-web/core-components");function Hn(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const B=Hn(Gn),Oe=(t,e=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:e?2:0}).format(t),cr=({valueInCents:t,hasFree:e,freeTaxMessage:r})=>t===0?e?r:Oe(0):Oe(t/100),ur=(t,e)=>{const n=(t-e)*100/t;return Math.floor(n)},dt=(t,e)=>{const[r,n]=t.split(e);return{name:r.trim(),size:n?n.trim():""}},sr=(t,e)=>{if(!t)return{};const[r,n]=t.split(e);return{color:r==null?void 0:r.trim(),size:n==null?void 0:n.trim()}},fr=(t,e="tamanho")=>{if(t.additionalProperty){const[r]=t.additionalProperty;return r!=null&&r.name?r.name.toLocaleLowerCase()===e?r.value:t.name:""}return t.name},pr=(t,e)=>t.replace(e,"").trim(),qn=t=>t.replace(/\//g,""),dr=({items:t,NAME_SPLIT_SYMBOL:e})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(i,l)=>{var s;l&&(l.sellerId=i.sellerId,l.sellerName=i.sellerName,l.available=!0,l.isSellerDefault=i.sellerDefault);const{Price:u,ListPrice:f,PaymentOptions:{installmentOptions:c}}=i.commertialOffer;r.price=u,r.listPrice=f;const p=(s=c==null?void 0:c[0])==null?void 0:s.installments;if(p){const{count:y,value:d}=p[p.length-1];r.installments={count:y,value:d/100}}};let o=!0;const a=t.reduce((i,l)=>{var c;const u={name:l.name,sku:l.itemId,value:((c=l.Tamanho)==null?void 0:c[0])??dt(l.nameComplete??l.name,e).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},f=l.sellers.filter(p=>(p.sellerDefault&&p.commertialOffer.IsAvailable&&(u.available=!0,n(p,u)),p.commertialOffer.IsAvailable));return!u.isSellerDefault&&f.length>0&&(u.available=!0,n(f[0],{...u,sellerId:f[0].sellerId,sellerName:f[0].sellerName})),u.available===!1&&(o=!1),i.push(u),i},[]);return{...r,sizes:a,allSizesAvailable:o}},yr=t=>t?!t.offers.offers.find(({quantity:e=0})=>e>0):!1,vr=(t,e)=>{const r=t.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0&&n.seller.identifier===e);return r||t.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0)},mr=({images:t,TEXTURE_IMAGE:e})=>t.find(r=>e.includes(r.imageLabel))??t[0],gr=(t,e)=>{const r=/\/ids\/(\d+)\//,n=t.match(r);return n?t.replace(`/${n[1]}/`,`/${n[1]}-${e.width}-${e.height}/`):t},hr=(t,e)=>{const r=/\/ids\/(\d+)-(\d+)-(\d+)\//,n=t.match(r);return n?t.replace(`/${n[1]}-${n[2]}-${n[3]}/`,`/${n[1]}-${e.width}-${e.height}/`):t},Sr=({images:t,label:e})=>{const r=t.filter(n=>n.keywords===e.first||n.keywords===e.second||n.alternateName===e.first||n.alternateName===e.second);return r.length===0?t.slice(0,2):r},Wn=t=>{const[e,r]=t.split("/").map(Number);if(Number.isNaN(e)||Number.isNaN(r))throw new Error("[ERROR ASPECT RATIO IMAGE]: Invalid aspect ratio format");return r/e},_r=(t,e,r)=>{e&&(t?(e.getAttribute("src")||(e.src=r??""),e.play()):e.pause())},Xn=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:yr,formatPriceToCurrency:Oe,freightParsePrice:cr,getAspectRatio:Wn,getColorAndSizeFromSkuName:sr,getDiscountPercent:ur,getFirstImages:Sr,getProductNameWithoutSku:pr,getSKUName:fr,getSkuInfos:dr,getThumbImage:mr,getValidOffer:vr,removeSlashes:qn,resizingImg:gr,setVideoPlay:_r,splitNameAndSizeFromFullName:dt,updatedResizedImg:hr},Symbol.toStringTag,{value:"Module"})),Vn={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},T=Promise.resolve(!1),Er={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>T,addItem:()=>T,addSellerCode:()=>T,addMarketingData:()=>T,emptyCart:()=>({}),removeItem:()=>T,setIsOpen:()=>({}),shipping:()=>T,shippingUpdate:()=>T,toggleServiceToProduct:()=>T,updateItemQuantity:()=>T,insertProfileEmail:()=>T,setRecentlyAddedProducts:()=>({})},yt=t=>t===0,Ar=(t,e)=>{if(!t||t.length===0)return[];let r="";const n=[],o=t.match(/\d+/g)??[];for(const a of o){const i=e[Number(a)];i&&(r+=(r?"/":"")+i,n.push(r))}return n},Pr=(t,e)=>{const{availability:r,additionalInfo:{brandName:n},bundleItems:o,id:a,uniqueId:i,detailUrl:l,ean:u,imageUrl:f,name:c,listPrice:p,quantity:s,price:y,priceDefinition:d,productCategories:g,productCategoryIds:h,productId:P,refId:O,seller:m,referenceId:R,offerings:I,productRefId:L,skuName:N,sellingPrice:G}=t;return{availability:r,bundleItems:o,referenceId:R,productRefId:L,id:a,ean:u,uniqueId:i,itemOffered:{additionalProperty:[],brand:{name:n},categories:Ar(h,g),categoriesIds:h,gtin:O,image:[{alternateName:(e==null?void 0:e.MAIN_IMAGE)??"1",url:f}],name:c,isVariationOf:{name:c,productGroupID:P},sku:a,slug:l,skuName:N},listPrice:p,quantity:s,offerings:I,price:y,priceDefinition:d,sellingPrice:G,seller:m}},br=(t,e)=>{const r=t.map(n=>({id:n.uniqueId,quantity:n.quantity,seller:n.seller}));return Array.isArray(e)?[...r,...e]:[...r,e]},Or=(t,e)=>{const r=t.find(n=>n.id===e);if(r){const n=t.map((o,a)=>{var i,l;return{id:((i=o.itemOffered)==null?void 0:i.sku)??"",index:a,quantity:(r==null?void 0:r.id)===((l=o.itemOffered)==null?void 0:l.sku)?0:o.quantity,seller:o.seller??""}});return{updateItems:n,filterItems:n.filter(o=>o.id!==e)}}return{updateItems:[],filterItems:[]}},Rr=(t,e,r)=>t.filter(n=>n.availability!=="withoutStock"&&n.availability!=="https://schema.org/OutOfStock").map((n,o)=>{var a,i;return n.id===e?{id:n.id,index:o,quantity:r,seller:n.seller,sku:((a=n.itemOffered)==null?void 0:a.sku)??""}:{id:n.id,index:o,quantity:n.quantity,seller:n.seller,sku:((i=n.itemOffered)==null?void 0:i.sku)??""}}),Ir=(t,e)=>t.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===e),zn=(t,e)=>{var r;return Array.isArray(t)?(((r=t==null?void 0:t.find(n=>{var o;return((o=n==null?void 0:n.id)==null?void 0:o.toLowerCase())===e}))==null?void 0:r.value)??0)/100:0},Kn=t=>{const e=t.reduce((o,a)=>{const i=yt(a.price)?0:a.quantity;return o+i},0),r=t.reduce((o,a)=>o+a.price*a.quantity,0),n=t.reduce((o,a)=>o+a.listPrice*a.quantity,0);return{totalItems:e,total:r,subTotal:n}},Yn=t=>Array.isArray(t)?t.filter(e=>e.availability!=="withoutStock").reduce((e,r)=>e+(yt(r==null?void 0:r.price)?0:r.quantity),0):0,vt=(t,e)=>{const{items:r,orderFormId:n,...o}=t;return{...o,id:n,items:Array.isArray(r)?r.map(a=>Pr(a,e)):[]}},wr=(t,e)=>{const r=t.find(n=>n.id===e);return r?r.availability==="unavailableItemFulfillment":!1},Qn=(t,e)=>{const r=t.sku,n=t.isVariantOf.hasVariant.find(o=>o.sku===r);return n?n.name.split(e)[1]:"--"},Tr=(t,e,r=!1)=>!t&&e!==""?{code:300,value:e,statusOk:r}:t===e?{code:200,value:e,statusOk:r}:{code:400,value:e,statusOk:r},Jn=(t,e)=>{const r=new Set;return[t,...e].filter(n=>!r.has(n)&&r.add(n),r)},Cr=(t,e)=>e&&Array.isArray(e)&&e.find(n=>n.id===t)?Promise.resolve(t):Promise.resolve(!1),Nr=(t,e)=>e?Promise.resolve(t[e]):Promise.resolve(!1),Dr=async t=>{try{const e=await t();if(typeof e!="boolean")return e}catch(e){console.error(`[Error orderForm]: ${e}`)}return!1},xr=(t,e)=>{if(e!==-1){const r=Number(t);return r?r+1:1}return t??1},Fr=(t,e)=>Array.isArray(t)?t.filter(r=>e==null?void 0:e.some(n=>n.id===r.id)):[],Mr=async(t,e)=>t.then(r=>[...r??[],...e??[]]),Zn=async(t,e,r,n)=>{const{priority:o="auto",body:a}=e;return fetch(t,{headers:{"Content-Type":"application/json"},priority:o,method:"POST",body:JSON.stringify(a)}).then(async i=>{const l=await i.json();return r?l:vt(l,n)})},$r=(t,e,r)=>({notifications:[...t.notifications,{id:Date.now(),message:e,callback:r}]}),Lr=t=>[...Array.isArray(t)?t:[t],"faststore"],Ur=t=>{const e=t.get("utm_source")||V("utm_source"),r=t.get("utm_campaign")||V("utm_campaign"),n=t.get("utm_medium")||V("utm_medium"),o=t.get("utmi_cp")||V("utmi_cp"),a=t.get("utmi_pc")||V("utmi_pc"),i=t.get("utmi_p")||V("utmi_p");return{...e&&{utmSource:e},...n&&{utmMedium:n},...r&&{utmCampaign:r},...o&&{utmiCampaign:o},...a&&{utmiPart:a},...i&&{utmipage:i}}},V=t=>{if(!t||typeof window>"u")return;const e=window.location.href;t=t.replace(/[[\]]/g,"\\$&");const r=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)"),n=r.exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},Br=(t,e,r="BR")=>{const n=e,o={country:r,addressType:"",postalCode:t||null,city:"",state:"",street:"",number:"",neighborhood:"",complement:"",reference:"",geoCoordinates:[]};if(n){const a=typeof n=="object"&&"latitude"in n?n.latitude:null,i=typeof n=="object"&&"longitude"in n?n.longitude:null;o.geoCoordinates=typeof a=="number"&&typeof i=="number"?{latitude:a,longitude:i}:null}return[o]},eo=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:Vn,addItemOrder:br,addNotification:$r,createItemOrder:Pr,createNewAddress:Br,fetchCartAPI:Zn,findItemIndex:Ir,findOptions:Fr,findTotalizerValue:zn,getCategories:Ar,getCode:Tr,getQuantity:xr,getRemoveId:Cr,getSize:Qn,getTotalItems:Yn,getTotalizer:Kn,getUrlParameter:V,getValue:Nr,initialState:Er,isGift:yt,marketingTagsBuilder:Lr,mergeOptionsPromise:Mr,mountMarketingData:Ur,orderFormValues:vt,promiseDefault:T,removeQuantity:Or,updateItemSellerExternal:wr,updateOrderFormPromise:Dr,updateQuantity:Rr,wishlistArray:Jn},Symbol.toStringTag,{value:"Module"})),it={baseUrl:""},to=t=>{it.baseUrl||Object.defineProperty(it,"baseUrl",{value:`https://${t}.myvtex.com`,writable:!1,configurable:!1})},mt=(t,e)=>fetch(`${it.baseUrl}${t}`,e),ro=async(t,e,r=!1,n)=>{const{priority:o="auto",body:a}=e,i=await mt(t,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(a),priority:o});if(!i.ok){const u=await i.json().catch(()=>({message:"Unknown error"}));throw new Error(u.message||`HTTP ${i.status}`)}const l=await i.json();return r?l:vt(l,n)},Ct="fuzzy",Nt="operator",no=t=>({isDepartment:t!=null&&t.length?t[0].key==="category-1":!1}),oo=(t,e)=>{const r=decodeURIComponent(e??"").slice(1).split("/");return t.map(n=>{if(n.key==="category-2"&&n.__typename==="FacetBoolean"){const o=n.values;return{...n,values:o.filter(a=>!r.find(i=>i.toLowerCase()===a.value||i.toLowerCase()===a.name.toLowerCase()))}}return n})},jr=(t,e)=>e?t==="category-1":!1,ao=t=>t.key==="operator"&&(t.value==="and"||t.value==="or"),io=t=>t.type==="TEXT",lo=t=>t.key==="fuzzy"&&(t.value==="0"||t.value==="1"||t.value==="auto"),co=t=>{const{key:e,name:r,values:n}=t;return{__typename:"FacetBoolean",key:e,label:r,values:n.slice().sort((o,a)=>o.name.localeCompare(a.name))}},uo=({key:t,values:e})=>({__typename:"FacetRange",key:t,values:e}),so=(t,e,r)=>{if(!(t instanceof Object)||!("facets"in t))return[];const{facets:n=[]}=t,o=e!=null&&e.length?e[0].key==="category-1":!1;return n.filter(i=>!r||!jr(i.key,o)).map(i=>io(i)?co(i):uo(i))},fo=(t,e)=>{const r=t.find(({key:o})=>o===Ct)??null,n=t.find(({key:o})=>o===Nt)??null;r&&lo(r)&&e.append(Ct,r.value),n&&ao(n)&&e.append(Nt,n.value)},po=t=>t.map(e=>{const[r,n]=e.split("/");return{key:r,value:n}}),yo=(t,e)=>{const r=decodeURIComponent(e??"").slice(1).split("/"),n=t.filter(({value:a})=>!r.includes(decodeURIComponent(a))).map(a=>({...a,value:decodeURIComponent(a.value)})),{isDepartment:o}=no(n);return n==null?void 0:n.filter(a=>!jr(a.key,o))},vo=({pathname:t,searchParams:e},r)=>{const n=e.get("sort")??"",o=e.get("query")??null,a=parseInt(e.get("page")??"1",10);return{sort:n,facets:po(r),term:o,base:o?"":t,page:a}},mo=t=>{const e=new URLSearchParams;return Object.entries(t).forEach(([r,n])=>{Array.isArray(n)?n.forEach(o=>e.append(r,o)):n!==void 0&&e.append(r,n)}),e},go=(t,e,r=24,n=1,o)=>{const a=`/search?query=${e??""}&count=${r}&page=${n}${o?`&sort=${o.replace("_",":")}`:""}`;t.push(a)};var Dt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ho(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}var kr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return e}});function e(r){return r.replace(/\/$/,"")||"/"}})(kr);var Ne={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return e}});function e(r){const n=r.indexOf("#"),o=r.indexOf("?"),a=o>-1&&(n<0||o<n);return a||n>-1?{pathname:r.substring(0,a?o:n),query:a?r.substring(o,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}})(Ne);var gt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const e=Ne;function r(n,o){if(typeof n!="string")return!1;const{pathname:a}=(0,e.parsePath)(n);return a===o||a.startsWith(o+"/")}})(gt);var Hr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(jn,wt){for(var Tt in wt)Object.defineProperty(jn,Tt,{enumerable:!0,get:wt[Tt]})}e(t,{ACTION_SUFFIX:function(){return u},APP_DIR_ALIAS:function(){return Q},CACHE_ONE_YEAR:function(){return R},DOT_NEXT_ALIAS:function(){return U},ESLINT_DEFAULT_DIRS:function(){return $n},GSP_NO_RETURNED_VALUE:function(){return Cn},GSSP_COMPONENT_MEMBER_ERROR:function(){return xn},GSSP_NO_RETURNED_VALUE:function(){return Nn},INSTRUMENTATION_HOOK_FILENAME:function(){return N},MIDDLEWARE_FILENAME:function(){return I},MIDDLEWARE_LOCATION_REGEXP:function(){return L},NEXT_BODY_SUFFIX:function(){return p},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return m},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return d},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return g},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return y},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return O},NEXT_CACHE_TAGS_HEADER:function(){return s},NEXT_CACHE_TAG_MAX_ITEMS:function(){return h},NEXT_CACHE_TAG_MAX_LENGTH:function(){return P},NEXT_DATA_SUFFIX:function(){return f},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return n},NEXT_META_SUFFIX:function(){return c},NEXT_QUERY_PARAM_PREFIX:function(){return r},NON_STANDARD_NODE_ENV:function(){return Fn},PAGES_DIR_ALIAS:function(){return G},PRERENDER_REVALIDATE_HEADER:function(){return o},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return a},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return ae},ROOT_DIR_ALIAS:function(){return D},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return X},RSC_ACTION_ENCRYPTION_ALIAS:function(){return C},RSC_ACTION_PROXY_ALIAS:function(){return x},RSC_ACTION_VALIDATE_ALIAS:function(){return b},RSC_MOD_REF_PROXY_ALIAS:function(){return k},RSC_PREFETCH_SUFFIX:function(){return i},RSC_SUFFIX:function(){return l},SERVER_PROPS_EXPORT_ERROR:function(){return Tn},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return he},SERVER_PROPS_SSG_CONFLICT:function(){return ie},SERVER_RUNTIME:function(){return Ln},SSG_FALLBACK_EXPORT_ERROR:function(){return Mn},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return Ue},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return wn},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return Dn},WEBPACK_LAYERS:function(){return Un},WEBPACK_RESOURCE_QUERIES:function(){return Bn}});const r="nxtP",n="nxtI",o="x-prerender-revalidate",a="x-prerender-revalidate-if-generated",i=".prefetch.rsc",l=".rsc",u=".action",f=".json",c=".meta",p=".body",s="x-next-cache-tags",y="x-next-cache-soft-tags",d="x-next-revalidated-tags",g="x-next-revalidate-tag-token",h=128,P=256,O=1024,m="_N_T_",R=31536e3,I="middleware",L=`(?:src/)?${I}`,N="instrumentation",G="private-next-pages",U="private-dot-next",D="private-next-root-dir",Q="private-next-app-dir",k="private-next-rsc-mod-ref-proxy",b="private-next-rsc-action-validate",x="private-next-rsc-server-reference",C="private-next-rsc-action-encryption",X="private-next-rsc-action-client-wrapper",ae="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",Ue="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",he="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",ie="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",wn="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",Tn="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",Cn="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",Nn="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",Dn="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",xn="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",Fn='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',Mn="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",$n=["app","pages","components","lib","src"],Ln={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},E={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",appMetadataRoute:"app-metadata-route",appRouteHandler:"app-route-handler"},Un={...E,GROUP:{serverOnly:[E.reactServerComponents,E.actionBrowser,E.appMetadataRoute,E.appRouteHandler,E.instrument],clientOnly:[E.serverSideRendering,E.appPagesBrowser],nonClientServerTarget:[E.middleware,E.api],app:[E.reactServerComponents,E.actionBrowser,E.appMetadataRoute,E.appRouteHandler,E.serverSideRendering,E.appPagesBrowser,E.shared,E.instrument]}},Bn={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}})(Hr);var qr={},ht={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return r}});const e=Ne;function r(n,o){if(!n.startsWith("/")||!o)return n;const{pathname:a,query:i,hash:l}=(0,e.parsePath)(n);return""+o+a+i+l}})(ht);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const e=ht,r=gt;function n(o,a,i,l){if(!a||a===i)return o;const u=o.toLowerCase();return!l&&((0,r.pathHasPrefix)(u,"/api")||(0,r.pathHasPrefix)(u,"/"+a.toLowerCase()))?o:(0,e.addPathPrefix)(o,"/"+a)}})(qr);var Wr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return e}});function e(r,n){let o;const a=r.split("/");return(n||[]).some(i=>a[1]&&a[1].toLowerCase()===i.toLowerCase()?(o=i,a.splice(1,1),r=a.join("/")||"/",!0):!1),{pathname:r,detectedLocale:o}}})(Wr);var Xr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return e}});function e(r,n,o){if(r){o&&(o=o.toLowerCase());for(const l of r){var a,i;const u=(a=l.domain)==null?void 0:a.split(":",1)[0].toLowerCase();if(n===u||o===l.defaultLocale.toLowerCase()||(i=l.locales)!=null&&i.some(f=>f.toLowerCase()===o))return l}}}})(Xr);const So=(t="")=>t.charAt(0).toUpperCase()+t.slice(1),xt=(t,e=" ")=>!t||typeof t=="string"&&t.length===0?t:(Array.isArray(t)?t:t.split("-")).map(So).join(e),_o=({canonical:t,seo:e,slug:r})=>{const n=Array.isArray(r)?r.join(", "):r;return{id:0,Title:`${Array.isArray(r)?r.map(a=>xt(a)).join(","):xt(r)} - ${e.title}`,MetaTagDescription:e.description,name:n,hasChildren:!1,url:t,children:[]}},Eo=({canonical:t,category:e,previousImages:r,seo:n})=>({category:String(e==null?void 0:e.id),title:(e==null?void 0:e.Title)??n.title,description:(e==null?void 0:e.MetaTagDescription)??n.description,alternates:{canonical:t},openGraph:{type:"website",title:(e==null?void 0:e.Title)??n.title,description:(e==null?void 0:e.MetaTagDescription)??n.description,images:Array.isArray(r)?[...r]:[]}}),Ao=({items:t,parent:e,apiUrl:r,find:n})=>{const o=t.find(i=>i.url.replace(r,"")===decodeURIComponent(e.toLowerCase()));return(o==null?void 0:o.children.find(i=>i.name.toLowerCase()===decodeURIComponent(String(n))))??o},Po=t=>{t instanceof Error?(console.error(`[ERROR CATEGORY INFO]: ${t.message}`),console.error(t.stack)):console.error("[ERROR CATEGORY INFO]: Unknown error",t)},bo=new Set(["brand","category","department","subcategory","collection","cluster"]),Oo=t=>typeof(t==null?void 0:t.pageType)=="string"&&bo.has(t==null?void 0:t.pageType.toLowerCase()),Ro=t=>({collection:t.Coleção,categoryId:t.categoryId,current_collection:t["Coleção Atual"],items:t.items}),Vr=(t,e)=>t.reduce((r,n)=>{if(n.items.filter(i=>i.sellers.find(l=>l.commertialOffer.IsAvailable)).length===0||(r==null?void 0:r.find(i=>(i==null?void 0:i.productId)===(n==null?void 0:n.productId)))!==void 0)return r;const a=n.items[0].images.find(i=>e.includes(i.imageLabel));return r.push({slug:`/${n.linkText}/p`,productId:n==null?void 0:n.productId,textureImage:(a==null?void 0:a.imageUrl)??"",textureAlt:(a==null?void 0:a.imageText)??""}),r},[]),Io=Object.freeze(Object.defineProperty({__proto__:null,createEmptySeoCategory:_o,createSeoCategory:Eo,findCategory:Ao,formattedSimilars:Vr,isCollectionPageType:Oo,notFindCategoryError:Po,responseAdapter:Ro},Symbol.toStringTag,{value:"Module"})),ue={"responsive-mobile-flex":"_responsive-mobile-flex_1e0ai_1","responsive-desktop-flex":"_responsive-desktop-flex_1e0ai_15","responsive-mobile-block":"_responsive-mobile-block_1e0ai_30","responsive-desktop-block":"_responsive-desktop-block_1e0ai_41"},St=async(t,e={})=>{const{method:r="GET",body:n,headers:o={},priority:a="auto",cache:i="default"}=e;return fetch(t,{method:r,headers:{...o,Accept:"application/json","Content-Type":"application/json"},priority:a,cache:i,...n?{body:JSON.stringify(n)}:{}}).then(l=>l.json()).catch(l=>{console.error("[ERROR FETCH VTEX]",l)})},le=new Map;async function wo(t,e={}){var r;try{const{abort:n=!1}=e,o=new AbortController;n&&(le.has(t)&&((r=le.get(t))==null||r.abort(),le.delete(t)),le.set(t,o));const a=St(t,{...e,...n?{signal:o.signal}:{}});return n&&le.delete(t),a}catch(n){if(n.name==="AbortError"){console.log(`[REQUEST CANCELLED]: ${t}`);return}throw console.error(`[ERROR API]: ${n.message}`),n}}const To=B.object({orderFormId:B.string().required(),coupon:B.string().nullable(),utmSource:B.string().optional(),utmMedium:B.string().optional(),utmCampaign:B.string().optional(),utmiCampaign:B.string().optional(),utmiPart:B.string().optional(),utmipage:B.string().optional()});async function zr({apiUrl:t,body:e}){if(!e){console.error("[ERROR FETCHING] Body is required");return}await To.validate(e);const{orderFormId:r,utmiPart:n,coupon:o,...a}=e,i=`${t}/api/checkout/pub/orderForm/${r}/attachments/marketingData`;return St(i,{method:"POST",body:{orderFormId:r,utmiPart:n??r,coupon:o??null,...a}})}const Co=Object.freeze(Object.defineProperty({__proto__:null,postMediaData:zr},Symbol.toStringTag,{value:"Module"})),No=({children:t,data:e,SectionZone:r,className:n})=>{var c,p;const o=((c=e==null?void 0:e.filter(s=>{var y,d;return((d=(y=s.config)==null?void 0:y.responsive)==null?void 0:d.deviceType)==="mobile"})[0])==null?void 0:c.sections)||[],a=((p=e==null?void 0:e.filter(s=>{var y,d;return((d=(y=s.config)==null?void 0:y.responsive)==null?void 0:d.deviceType)==="desktop"})[0])==null?void 0:p.sections)||[],i=o.slice(0,1),l=o.slice(1,o.length),u=a.slice(0,1),f=a.slice(1,a.length);return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:n,children:[w.jsx("div",{className:ue["responsive-mobile-flex"],children:w.jsx(r,{data:i??[]})}),w.jsx("div",{className:ue["responsive-desktop-flex"],children:w.jsx(r,{data:u??[]})})]}),t,w.jsx("div",{className:ue["responsive-mobile-flex"],children:w.jsx(r,{data:l??[]})}),w.jsx("div",{className:ue["responsive-desktop-flex"],children:w.jsx(r,{data:f??[]})}),w.jsx(kn.Utils.Divider,{})]})};var oe=TypeError;const Do={},xo=Object.freeze(Object.defineProperty({__proto__:null,default:Do},Symbol.toStringTag,{value:"Module"})),Fo=ho(xo);var _t=typeof Map=="function"&&Map.prototype,Be=Object.getOwnPropertyDescriptor&&_t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Re=_t&&Be&&typeof Be.get=="function"?Be.get:null,Ft=_t&&Map.prototype.forEach,Et=typeof Set=="function"&&Set.prototype,je=Object.getOwnPropertyDescriptor&&Et?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ie=Et&&je&&typeof je.get=="function"?je.get:null,Mt=Et&&Set.prototype.forEach,Mo=typeof WeakMap=="function"&&WeakMap.prototype,se=Mo?WeakMap.prototype.has:null,$o=typeof WeakSet=="function"&&WeakSet.prototype,fe=$o?WeakSet.prototype.has:null,Lo=typeof WeakRef=="function"&&WeakRef.prototype,$t=Lo?WeakRef.prototype.deref:null,Uo=Boolean.prototype.valueOf,Bo=Object.prototype.toString,jo=Function.prototype.toString,Go=String.prototype.match,At=String.prototype.slice,H=String.prototype.replace,ko=String.prototype.toUpperCase,Lt=String.prototype.toLowerCase,Kr=RegExp.prototype.test,Ut=Array.prototype.concat,$=Array.prototype.join,Ho=Array.prototype.slice,Bt=Math.floor,lt=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ge=Object.getOwnPropertySymbols,ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,re=typeof Symbol=="function"&&typeof Symbol.iterator=="object",pe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===re||!0)?Symbol.toStringTag:null,Yr=Object.prototype.propertyIsEnumerable,jt=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Gt(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Kr.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Bt(-t):Bt(t);if(n!==t){var o=String(n),a=At.call(e,o.length+1);return H.call(o,r,"$&_")+"."+H.call(H.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return H.call(e,r,"$&_")}var ut=Fo,kt=ut.custom,Ht=Zr(kt)?kt:null,Qr={__proto__:null,double:'"',single:"'"},qo={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},De=function t(e,r,n,o){var a=r||{};if(j(a,"quoteStyle")&&!j(Qr,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(j(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=j(a,"customInspect")?a.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(j(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(j(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=a.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return tn(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var u=String(e);return l?Gt(e,u):u}if(typeof e=="bigint"){var f=String(e)+"n";return l?Gt(e,f):f}var c=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof e=="object")return st(e)?"[Array]":"[Object]";var p=ca(a,n);if(typeof o>"u")o=[];else if(en(o,e)>=0)return"[Circular]";function s(b,x,C){if(x&&(o=Ho.call(o),o.push(x)),C){var X={depth:a.depth};return j(a,"quoteStyle")&&(X.quoteStyle=a.quoteStyle),t(b,X,n+1,o)}return t(b,a,n+1,o)}if(typeof e=="function"&&!qt(e)){var y=Zo(e),d=Se(e,s);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(d.length>0?" { "+$.call(d,", ")+" }":"")}if(Zr(e)){var g=re?H.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):ct.call(e);return typeof e=="object"&&!re?ce(g):g}if(aa(e)){for(var h="<"+Lt.call(String(e.nodeName)),P=e.attributes||[],O=0;O<P.length;O++)h+=" "+P[O].name+"="+Jr(Wo(P[O].value),"double",a);return h+=">",e.childNodes&&e.childNodes.length&&(h+="..."),h+="</"+Lt.call(String(e.nodeName))+">",h}if(st(e)){if(e.length===0)return"[]";var m=Se(e,s);return p&&!la(m)?"["+ft(m,p)+"]":"[ "+$.call(m,", ")+" ]"}if(Vo(e)){var R=Se(e,s);return!("cause"in Error.prototype)&&"cause"in e&&!Yr.call(e,"cause")?"{ ["+String(e)+"] "+$.call(Ut.call("[cause]: "+s(e.cause),R),", ")+" }":R.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+$.call(R,", ")+" }"}if(typeof e=="object"&&i){if(Ht&&typeof e[Ht]=="function"&&ut)return ut(e,{depth:c-n});if(i!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(ea(e)){var I=[];return Ft&&Ft.call(e,function(b,x){I.push(s(x,e,!0)+" => "+s(b,e))}),Wt("Map",Re.call(e),I,p)}if(na(e)){var L=[];return Mt&&Mt.call(e,function(b){L.push(s(b,e))}),Wt("Set",Ie.call(e),L,p)}if(ta(e))return ke("WeakMap");if(oa(e))return ke("WeakSet");if(ra(e))return ke("WeakRef");if(Ko(e))return ce(s(Number(e)));if(Qo(e))return ce(s(lt.call(e)));if(Yo(e))return ce(Uo.call(e));if(zo(e))return ce(s(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof Dt<"u"&&e===Dt)return"{ [object globalThis] }";if(!Xo(e)&&!qt(e)){var N=Se(e,s),G=jt?jt(e)===Object.prototype:e instanceof Object||e.constructor===Object,U=e instanceof Object?"":"null prototype",D=!G&&pe&&Object(e)===e&&pe in e?At.call(W(e),8,-1):U?"Object":"",Q=G||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",k=Q+(D||U?"["+$.call(Ut.call([],D||[],U||[]),": ")+"] ":"");return N.length===0?k+"{}":p?k+"{"+ft(N,p)+"}":k+"{ "+$.call(N,", ")+" }"}return String(e)};function Jr(t,e,r){var n=r.quoteStyle||e,o=Qr[n];return o+t+o}function Wo(t){return H.call(String(t),/"/g,""")}function Y(t){return!pe||!(typeof t=="object"&&(pe in t||typeof t[pe]<"u"))}function st(t){return W(t)==="[object Array]"&&Y(t)}function Xo(t){return W(t)==="[object Date]"&&Y(t)}function qt(t){return W(t)==="[object RegExp]"&&Y(t)}function Vo(t){return W(t)==="[object Error]"&&Y(t)}function zo(t){return W(t)==="[object String]"&&Y(t)}function Ko(t){return W(t)==="[object Number]"&&Y(t)}function Yo(t){return W(t)==="[object Boolean]"&&Y(t)}function Zr(t){if(re)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!ct)return!1;try{return ct.call(t),!0}catch{}return!1}function Qo(t){if(!t||typeof t!="object"||!lt)return!1;try{return lt.call(t),!0}catch{}return!1}var Jo=Object.prototype.hasOwnProperty||function(t){return t in this};function j(t,e){return Jo.call(t,e)}function W(t){return Bo.call(t)}function Zo(t){if(t.name)return t.name;var e=Go.call(jo.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function en(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function ea(t){if(!Re||!t||typeof t!="object")return!1;try{Re.call(t);try{Ie.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function ta(t){if(!se||!t||typeof t!="object")return!1;try{se.call(t,se);try{fe.call(t,fe)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function ra(t){if(!$t||!t||typeof t!="object")return!1;try{return $t.call(t),!0}catch{}return!1}function na(t){if(!Ie||!t||typeof t!="object")return!1;try{Ie.call(t);try{Re.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function oa(t){if(!fe||!t||typeof t!="object")return!1;try{fe.call(t,fe);try{se.call(t,se)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function aa(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function tn(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return tn(At.call(t,0,e.maxStringLength),e)+n}var o=qo[e.quoteStyle||"single"];o.lastIndex=0;var a=H.call(H.call(t,o,"\\$1"),/[\x00-\x1f]/g,ia);return Jr(a,"single",e)}function ia(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+ko.call(e.toString(16))}function ce(t){return"Object("+t+")"}function ke(t){return t+" { ? }"}function Wt(t,e,r,n){var o=n?ft(r,n):$.call(r,", ");return t+" ("+e+") {"+o+"}"}function la(t){for(var e=0;e<t.length;e++)if(en(t[e],`
|
|
2
|
+
`)>=0)return!1;return!0}function ca(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=$.call(Array(t.indent+1)," ");else return null;return{base:r,prev:$.call(Array(e+1),r)}}function ft(t,e){if(t.length===0)return"";var r=`
|
|
3
|
+
`+e.prev+e.base;return r+$.call(t,","+r)+`
|
|
4
|
+
`+e.prev}function Se(t,e){var r=st(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=j(t,o)?e(t[o],t):""}var a=typeof Ge=="function"?Ge(t):[],i;if(re){i={};for(var l=0;l<a.length;l++)i["$"+a[l]]=a[l]}for(var u in t)j(t,u)&&(r&&String(Number(u))===u&&u<t.length||re&&i["$"+u]instanceof Symbol||(Kr.call(/[^\w$]/,u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if(typeof Ge=="function")for(var f=0;f<a.length;f++)Yr.call(t,a[f])&&n.push("["+e(a[f])+"]: "+e(t[a[f]],t));return n}var ua=De,sa=oe,xe=function(t,e,r){for(var n=t,o;(o=n.next)!=null;n=o)if(o.key===e)return n.next=o.next,r||(o.next=t.next,t.next=o),o},fa=function(t,e){if(t){var r=xe(t,e);return r&&r.value}},pa=function(t,e,r){var n=xe(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},da=function(t,e){return t?!!xe(t,e):!1},ya=function(t,e){if(t)return xe(t,e,!0)},va=function(){var e,r={assert:function(n){if(!r.has(n))throw new sa("Side channel does not contain "+ua(n))},delete:function(n){var o=e&&e.next,a=ya(e,n);return a&&o&&o===a&&(e=void 0),!!a},get:function(n){return fa(e,n)},has:function(n){return da(e,n)},set:function(n,o){e||(e={next:void 0}),pa(e,n,o)}};return r},rn=Object,ma=Error,ga=EvalError,ha=RangeError,Sa=ReferenceError,_a=SyntaxError,Ea=URIError,Aa=Math.abs,Pa=Math.floor,ba=Math.max,Oa=Math.min,Ra=Math.pow,Ia=Math.round,wa=Number.isNaN||function(e){return e!==e},Ta=wa,Ca=function(e){return Ta(e)||e===0?e:e<0?-1:1},Na=Object.getOwnPropertyDescriptor,Ee=Na;if(Ee)try{Ee([],"length")}catch{Ee=null}var nn=Ee,Ae=Object.defineProperty||!1;if(Ae)try{Ae({},"a",{value:1})}catch{Ae=!1}var Da=Ae,He,Xt;function xa(){return Xt||(Xt=1,He=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},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;e[r]=o;for(var a in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(e,r);if(l.value!==o||l.enumerable!==!0)return!1}return!0}),He}var qe,Vt;function Fa(){if(Vt)return qe;Vt=1;var t=typeof Symbol<"u"&&Symbol,e=xa();return qe=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},qe}var We,zt;function on(){return zt||(zt=1,We=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),We}var Xe,Kt;function an(){if(Kt)return Xe;Kt=1;var t=rn;return Xe=t.getPrototypeOf||null,Xe}var Ve,Yt;function Ma(){if(Yt)return Ve;Yt=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(u,f){for(var c=[],p=0;p<u.length;p+=1)c[p]=u[p];for(var s=0;s<f.length;s+=1)c[s+u.length]=f[s];return c},a=function(u,f){for(var c=[],p=f,s=0;p<u.length;p+=1,s+=1)c[s]=u[p];return c},i=function(l,u){for(var f="",c=0;c<l.length;c+=1)f+=l[c],c+1<l.length&&(f+=u);return f};return Ve=function(u){var f=this;if(typeof f!="function"||e.apply(f)!==n)throw new TypeError(t+f);for(var c=a(arguments,1),p,s=function(){if(this instanceof p){var P=f.apply(this,o(c,arguments));return Object(P)===P?P:this}return f.apply(u,o(c,arguments))},y=r(0,f.length-c.length),d=[],g=0;g<y;g++)d[g]="$"+g;if(p=Function("binder","return function ("+i(d,",")+"){ return binder.apply(this,arguments); }")(s),f.prototype){var h=function(){};h.prototype=f.prototype,p.prototype=new h,h.prototype=null}return p},Ve}var ze,Qt;function Fe(){if(Qt)return ze;Qt=1;var t=Ma();return ze=Function.prototype.bind||t,ze}var Ke,Jt;function Pt(){return Jt||(Jt=1,Ke=Function.prototype.call),Ke}var Ye,Zt;function ln(){return Zt||(Zt=1,Ye=Function.prototype.apply),Ye}var $a=typeof Reflect<"u"&&Reflect&&Reflect.apply,La=Fe(),Ua=ln(),Ba=Pt(),ja=$a,Ga=ja||La.call(Ba,Ua),ka=Fe(),Ha=oe,qa=Pt(),Wa=Ga,cn=function(e){if(e.length<1||typeof e[0]!="function")throw new Ha("a function is required");return Wa(ka,qa,e)},Qe,er;function Xa(){if(er)return Qe;er=1;var t=cn,e=nn,r;try{r=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var n=!!r&&e&&e(Object.prototype,"__proto__"),o=Object,a=o.getPrototypeOf;return Qe=n&&typeof n.get=="function"?t([n.get]):typeof a=="function"?function(l){return a(l==null?l:o(l))}:!1,Qe}var Je,tr;function Va(){if(tr)return Je;tr=1;var t=on(),e=an(),r=Xa();return Je=t?function(o){return t(o)}:e?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return e(o)}:r?function(o){return r(o)}:null,Je}var Ze,rr;function za(){if(rr)return Ze;rr=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=Fe();return Ze=r.call(t,e),Ze}var v,Ka=rn,Ya=ma,Qa=ga,Ja=ha,Za=Sa,ne=_a,te=oe,ei=Ea,ti=Aa,ri=Pa,ni=ba,oi=Oa,ai=Ra,ii=Ia,li=Ca,un=Function,et=function(t){try{return un('"use strict"; return ('+t+").constructor;")()}catch{}},ye=nn,ci=Da,tt=function(){throw new te},ui=ye?function(){try{return arguments.callee,tt}catch{try{return ye(arguments,"callee").get}catch{return tt}}}():tt,J=Fa()(),A=Va(),si=an(),fi=on(),sn=ln(),ve=Pt(),ee={},pi=typeof Uint8Array>"u"||!A?v:A(Uint8Array),K={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?v:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?v:ArrayBuffer,"%ArrayIteratorPrototype%":J&&A?A([][Symbol.iterator]()):v,"%AsyncFromSyncIteratorPrototype%":v,"%AsyncFunction%":ee,"%AsyncGenerator%":ee,"%AsyncGeneratorFunction%":ee,"%AsyncIteratorPrototype%":ee,"%Atomics%":typeof Atomics>"u"?v:Atomics,"%BigInt%":typeof BigInt>"u"?v:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?v:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?v:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?v:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Ya,"%eval%":eval,"%EvalError%":Qa,"%Float16Array%":typeof Float16Array>"u"?v:Float16Array,"%Float32Array%":typeof Float32Array>"u"?v:Float32Array,"%Float64Array%":typeof Float64Array>"u"?v:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?v:FinalizationRegistry,"%Function%":un,"%GeneratorFunction%":ee,"%Int8Array%":typeof Int8Array>"u"?v:Int8Array,"%Int16Array%":typeof Int16Array>"u"?v:Int16Array,"%Int32Array%":typeof Int32Array>"u"?v:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":J&&A?A(A([][Symbol.iterator]())):v,"%JSON%":typeof JSON=="object"?JSON:v,"%Map%":typeof Map>"u"?v:Map,"%MapIteratorPrototype%":typeof Map>"u"||!J||!A?v:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Ka,"%Object.getOwnPropertyDescriptor%":ye,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?v:Promise,"%Proxy%":typeof Proxy>"u"?v:Proxy,"%RangeError%":Ja,"%ReferenceError%":Za,"%Reflect%":typeof Reflect>"u"?v:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?v:Set,"%SetIteratorPrototype%":typeof Set>"u"||!J||!A?v:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?v:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":J&&A?A(""[Symbol.iterator]()):v,"%Symbol%":J?Symbol:v,"%SyntaxError%":ne,"%ThrowTypeError%":ui,"%TypedArray%":pi,"%TypeError%":te,"%Uint8Array%":typeof Uint8Array>"u"?v:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?v:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?v:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?v:Uint32Array,"%URIError%":ei,"%WeakMap%":typeof WeakMap>"u"?v:WeakMap,"%WeakRef%":typeof WeakRef>"u"?v:WeakRef,"%WeakSet%":typeof WeakSet>"u"?v:WeakSet,"%Function.prototype.call%":ve,"%Function.prototype.apply%":sn,"%Object.defineProperty%":ci,"%Object.getPrototypeOf%":si,"%Math.abs%":ti,"%Math.floor%":ri,"%Math.max%":ni,"%Math.min%":oi,"%Math.pow%":ai,"%Math.round%":ii,"%Math.sign%":li,"%Reflect.getPrototypeOf%":fi};if(A)try{null.error}catch(t){var di=A(A(t));K["%Error.prototype%"]=di}var yi=function t(e){var r;if(e==="%AsyncFunction%")r=et("async function () {}");else if(e==="%GeneratorFunction%")r=et("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=et("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&A&&(r=A(o.prototype))}return K[e]=r,r},nr={__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"]},me=Fe(),we=za(),vi=me.call(ve,Array.prototype.concat),mi=me.call(sn,Array.prototype.splice),or=me.call(ve,String.prototype.replace),Te=me.call(ve,String.prototype.slice),gi=me.call(ve,RegExp.prototype.exec),hi=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Si=/\\(\\)?/g,_i=function(e){var r=Te(e,0,1),n=Te(e,-1);if(r==="%"&&n!=="%")throw new ne("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ne("invalid intrinsic syntax, expected opening `%`");var o=[];return or(e,hi,function(a,i,l,u){o[o.length]=l?or(u,Si,"$1"):i||a}),o},Ei=function(e,r){var n=e,o;if(we(nr,n)&&(o=nr[n],n="%"+o[0]+"%"),we(K,n)){var a=K[n];if(a===ee&&(a=yi(n)),typeof a>"u"&&!r)throw new te("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new ne("intrinsic "+e+" does not exist!")},bt=function(e,r){if(typeof e!="string"||e.length===0)throw new te("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new te('"allowMissing" argument must be a boolean');if(gi(/^%?[^%]*%?$/,e)===null)throw new ne("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=_i(e),o=n.length>0?n[0]:"",a=Ei("%"+o+"%",r),i=a.name,l=a.value,u=!1,f=a.alias;f&&(o=f[0],mi(n,vi([0,1],f)));for(var c=1,p=!0;c<n.length;c+=1){var s=n[c],y=Te(s,0,1),d=Te(s,-1);if((y==='"'||y==="'"||y==="`"||d==='"'||d==="'"||d==="`")&&y!==d)throw new ne("property names with quotes must have matching quotes");if((s==="constructor"||!p)&&(u=!0),o+="."+s,i="%"+o+"%",we(K,i))l=K[i];else if(l!=null){if(!(s in l)){if(!r)throw new te("base intrinsic for "+e+" exists, but the property is not available.");return}if(ye&&c+1>=n.length){var g=ye(l,s);p=!!g,p&&"get"in g&&!("originalValue"in g.get)?l=g.get:l=l[s]}else p=we(l,s),l=l[s];p&&!u&&(K[i]=l)}}return l},fn=bt,pn=cn,Ai=pn([fn("%String.prototype.indexOf%")]),dn=function(e,r){var n=fn(e,!!r);return typeof n=="function"&&Ai(e,".prototype.")>-1?pn([n]):n},Pi=bt,ge=dn,bi=De,Oi=oe,ar=Pi("%Map%",!0),Ri=ge("Map.prototype.get",!0),Ii=ge("Map.prototype.set",!0),wi=ge("Map.prototype.has",!0),Ti=ge("Map.prototype.delete",!0),Ci=ge("Map.prototype.size",!0),yn=!!ar&&function(){var e,r={assert:function(n){if(!r.has(n))throw new Oi("Side channel does not contain "+bi(n))},delete:function(n){if(e){var o=Ti(e,n);return Ci(e)===0&&(e=void 0),o}return!1},get:function(n){if(e)return Ri(e,n)},has:function(n){return e?wi(e,n):!1},set:function(n,o){e||(e=new ar),Ii(e,n,o)}};return r},Ni=bt,Me=dn,Di=De,_e=yn,xi=oe,Z=Ni("%WeakMap%",!0),Fi=Me("WeakMap.prototype.get",!0),Mi=Me("WeakMap.prototype.set",!0),$i=Me("WeakMap.prototype.has",!0),Li=Me("WeakMap.prototype.delete",!0),Ui=Z?function(){var e,r,n={assert:function(o){if(!n.has(o))throw new xi("Side channel does not contain "+Di(o))},delete:function(o){if(Z&&o&&(typeof o=="object"||typeof o=="function")){if(e)return Li(e,o)}else if(_e&&r)return r.delete(o);return!1},get:function(o){return Z&&o&&(typeof o=="object"||typeof o=="function")&&e?Fi(e,o):r&&r.get(o)},has:function(o){return Z&&o&&(typeof o=="object"||typeof o=="function")&&e?$i(e,o):!!r&&r.has(o)},set:function(o,a){Z&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new Z),Mi(e,o,a)):_e&&(r||(r=_e()),r.set(o,a))}};return n}:_e,Bi=oe,ji=De,Gi=va,ki=yn,Hi=Ui,qi=Hi||ki||Gi,vn=function(){var e,r={assert:function(n){if(!r.has(n))throw new Bi("Side channel does not contain "+ji(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,o){e||(e=qi()),e.set(n,o)}};return r},Wi=String.prototype.replace,Xi=/%20/g,rt={RFC1738:"RFC1738",RFC3986:"RFC3986"},Ot={default:rt.RFC3986,formatters:{RFC1738:function(t){return Wi.call(t,Xi,"+")},RFC3986:function(t){return String(t)}},RFC1738:rt.RFC1738,RFC3986:rt.RFC3986},Vi=Ot,zi=vn,nt=Object.prototype.hasOwnProperty,z=Array.isArray,$e=zi(),mn=function(e,r){return $e.set(e,r),e},Ce=function(e){return $e.has(e)},pt=function(e){return $e.get(e)},gn=function(e,r){$e.set(e,r)},F=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),Ki=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(z(n)){for(var o=[],a=0;a<n.length;++a)typeof n[a]<"u"&&o.push(n[a]);r.obj[r.prop]=o}}},Rt=function(e,r){for(var n=r&&r.plainObjects?{__proto__:null}:{},o=0;o<e.length;++o)typeof e[o]<"u"&&(n[o]=e[o]);return n},Yi=function t(e,r,n){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(z(e))e.push(r);else if(e&&typeof e=="object")if(Ce(e)){var o=pt(e)+1;e[o]=r,gn(e,o)}else(n&&(n.plainObjects||n.allowPrototypes)||!nt.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object"){if(Ce(r)){for(var a=Object.keys(r),i=n&&n.plainObjects?{__proto__:null,0:e}:{0:e},l=0;l<a.length;l++){var u=parseInt(a[l],10);i[u+1]=r[a[l]]}return mn(i,pt(r)+1)}return[e].concat(r)}var f=e;return z(e)&&!z(r)&&(f=Rt(e,n)),z(e)&&z(r)?(r.forEach(function(c,p){if(nt.call(e,p)){var s=e[p];s&&typeof s=="object"&&c&&typeof c=="object"?e[p]=t(s,c,n):e.push(c)}else e[p]=c}),e):Object.keys(r).reduce(function(c,p){var s=r[p];return nt.call(c,p)?c[p]=t(c[p],s,n):c[p]=s,c},f)},Qi=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},Ji=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},ot=1024,Zi=function(e,r,n,o,a){if(e.length===0)return e;var i=e;if(typeof e=="symbol"?i=Symbol.prototype.toString.call(e):typeof e!="string"&&(i=String(e)),n==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(y){return"%26%23"+parseInt(y.slice(2),16)+"%3B"});for(var l="",u=0;u<i.length;u+=ot){for(var f=i.length>=ot?i.slice(u,u+ot):i,c=[],p=0;p<f.length;++p){var s=f.charCodeAt(p);if(s===45||s===46||s===95||s===126||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||a===Vi.RFC1738&&(s===40||s===41)){c[c.length]=f.charAt(p);continue}if(s<128){c[c.length]=F[s];continue}if(s<2048){c[c.length]=F[192|s>>6]+F[128|s&63];continue}if(s<55296||s>=57344){c[c.length]=F[224|s>>12]+F[128|s>>6&63]+F[128|s&63];continue}p+=1,s=65536+((s&1023)<<10|f.charCodeAt(p)&1023),c[c.length]=F[240|s>>18]+F[128|s>>12&63]+F[128|s>>6&63]+F[128|s&63]}l+=c.join("")}return l},el=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o<r.length;++o)for(var a=r[o],i=a.obj[a.prop],l=Object.keys(i),u=0;u<l.length;++u){var f=l[u],c=i[f];typeof c=="object"&&c!==null&&n.indexOf(c)===-1&&(r.push({obj:i,prop:f}),n.push(c))}return Ki(r),e},tl=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},rl=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},nl=function(e,r,n,o){if(Ce(e)){var a=pt(e)+1;return e[a]=r,gn(e,a),e}var i=[].concat(e,r);return i.length>n?mn(Rt(i,{plainObjects:o}),i.length-1):i},ol=function(e,r){if(z(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(r(e[o]));return n}return r(e)},hn={arrayToObject:Rt,assign:Qi,combine:nl,compact:el,decode:Ji,encode:Zi,isBuffer:rl,isOverflow:Ce,isRegExp:tl,maybeMap:ol,merge:Yi},Sn=vn,Pe=hn,de=Ot,al=Object.prototype.hasOwnProperty,_n={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},M=Array.isArray,il=Array.prototype.push,En=function(t,e){il.apply(t,M(e)?e:[e])},ll=Date.prototype.toISOString,ir=de.default,_={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Pe.encode,encodeValuesOnly:!1,filter:void 0,format:ir,formatter:de.formatters[ir],indices:!1,serializeDate:function(e){return ll.call(e)},skipNulls:!1,strictNullHandling:!1},cl=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},at={},ul=function t(e,r,n,o,a,i,l,u,f,c,p,s,y,d,g,h,P,O){for(var m=e,R=O,I=0,L=!1;(R=R.get(at))!==void 0&&!L;){var N=R.get(e);if(I+=1,typeof N<"u"){if(N===I)throw new RangeError("Cyclic object value");L=!0}typeof R.get(at)>"u"&&(I=0)}if(typeof c=="function"?m=c(r,m):m instanceof Date?m=y(m):n==="comma"&&M(m)&&(m=Pe.maybeMap(m,function(ie){return ie instanceof Date?y(ie):ie})),m===null){if(i)return f&&!h?f(r,_.encoder,P,"key",d):r;m=""}if(cl(m)||Pe.isBuffer(m)){if(f){var G=h?r:f(r,_.encoder,P,"key",d);return[g(G)+"="+g(f(m,_.encoder,P,"value",d))]}return[g(r)+"="+g(String(m))]}var U=[];if(typeof m>"u")return U;var D;if(n==="comma"&&M(m))h&&f&&(m=Pe.maybeMap(m,f)),D=[{value:m.length>0?m.join(",")||null:void 0}];else if(M(c))D=c;else{var Q=Object.keys(m);D=p?Q.sort(p):Q}var k=u?String(r).replace(/\./g,"%2E"):String(r),b=o&&M(m)&&m.length===1?k+"[]":k;if(a&&M(m)&&m.length===0)return b+"[]";for(var x=0;x<D.length;++x){var C=D[x],X=typeof C=="object"&&C&&typeof C.value<"u"?C.value:m[C];if(!(l&&X===null)){var ae=s&&u?String(C).replace(/\./g,"%2E"):String(C),Ue=M(m)?typeof n=="function"?n(b,ae):b:b+(s?"."+ae:"["+ae+"]");O.set(e,I);var he=Sn();he.set(at,O),En(U,t(X,Ue,n,o,a,i,l,u,n==="comma"&&h&&M(m)?null:f,c,p,s,y,d,g,h,P,he))}}return U},sl=function(e){if(!e)return _;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||_.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=de.default;if(typeof e.format<"u"){if(!al.call(de.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=de.formatters[n],a=_.filter;(typeof e.filter=="function"||M(e.filter))&&(a=e.filter);var i;if(e.arrayFormat in _n?i=e.arrayFormat:"indices"in e?i=e.indices?"indices":"repeat":i=_.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:_.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:_.addQueryPrefix,allowDots:l,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:_.allowEmptyArrays,arrayFormat:i,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:_.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?_.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:_.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:_.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:_.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:_.encodeValuesOnly,filter:a,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:_.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:_.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:_.strictNullHandling}},fl=function(t,e){var r=t,n=sl(e),o,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):M(n.filter)&&(a=n.filter,o=a);var i=[];if(typeof r!="object"||r===null)return"";var l=_n[n.arrayFormat],u=l==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var f=Sn(),c=0;c<o.length;++c){var p=o[c],s=r[p];n.skipNulls&&s===null||En(i,ul(s,p,l,u,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,f))}var y=i.join(n.delimiter),d=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),y.length>0?d+y:""},q=hn,be=Object.prototype.hasOwnProperty,lr=Array.isArray,S={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:q.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},pl=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},An=function(t,e,r){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},dl="utf8=%26%2310003%3B",yl="utf8=%E2%9C%93",vl=function(e,r){var n={__proto__:null},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a=r.parameterLimit===1/0?void 0:r.parameterLimit,i=o.split(r.delimiter,r.throwOnLimitExceeded?a+1:a);if(r.throwOnLimitExceeded&&i.length>a)throw new RangeError("Parameter limit exceeded. Only "+a+" parameter"+(a===1?"":"s")+" allowed.");var l=-1,u,f=r.charset;if(r.charsetSentinel)for(u=0;u<i.length;++u)i[u].indexOf("utf8=")===0&&(i[u]===yl?f="utf-8":i[u]===dl&&(f="iso-8859-1"),l=u,u=i.length);for(u=0;u<i.length;++u)if(u!==l){var c=i[u],p=c.indexOf("]="),s=p===-1?c.indexOf("="):p+1,y,d;if(s===-1?(y=r.decoder(c,S.decoder,f,"key"),d=r.strictNullHandling?null:""):(y=r.decoder(c.slice(0,s),S.decoder,f,"key"),y!==null&&(d=q.maybeMap(An(c.slice(s+1),r,lr(n[y])?n[y].length:0),function(h){return r.decoder(h,S.decoder,f,"value")}))),d&&r.interpretNumericEntities&&f==="iso-8859-1"&&(d=pl(String(d))),c.indexOf("[]=")>-1&&(d=lr(d)?[d]:d),y!==null){var g=be.call(n,y);g&&r.duplicates==="combine"?n[y]=q.combine(n[y],d,r.arrayLimit,r.plainObjects):(!g||r.duplicates==="last")&&(n[y]=d)}}return n},ml=function(t,e,r,n){var o=0;if(t.length>0&&t[t.length-1]==="[]"){var a=t.slice(0,-1).join("");o=Array.isArray(e)&&e[a]?e[a].length:0}for(var i=n?e:An(e,r,o),l=t.length-1;l>=0;--l){var u,f=t[l];if(f==="[]"&&r.parseArrays)q.isOverflow(i)?u=i:u=r.allowEmptyArrays&&(i===""||r.strictNullHandling&&i===null)?[]:q.combine([],i,r.arrayLimit,r.plainObjects);else{u=r.plainObjects?{__proto__:null}:{};var c=f.charAt(0)==="["&&f.charAt(f.length-1)==="]"?f.slice(1,-1):f,p=r.decodeDotInKeys?c.replace(/%2E/g,"."):c,s=parseInt(p,10);!r.parseArrays&&p===""?u={0:i}:!isNaN(s)&&f!==p&&String(s)===p&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(u=[],u[s]=i):p!=="__proto__"&&(u[p]=i)}i=u}return i},gl=function(e,r){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(r.depth<=0)return!r.plainObjects&&be.call(Object.prototype,n)&&!r.allowPrototypes?void 0:[n];var o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,i=o.exec(n),l=i?n.slice(0,i.index):n,u=[];if(l){if(!r.plainObjects&&be.call(Object.prototype,l)&&!r.allowPrototypes)return;u.push(l)}for(var f=0;(i=a.exec(n))!==null&&f<r.depth;){f+=1;var c=i[1].slice(1,-1);if(!r.plainObjects&&be.call(Object.prototype,c)&&!r.allowPrototypes)return;u.push(i[1])}if(i){if(r.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");u.push("["+n.slice(i.index)+"]")}return u},hl=function(e,r,n,o){if(e){var a=gl(e,n);if(a)return ml(a,r,n,o)}},Sl=function(e){if(!e)return S;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=typeof e.charset>"u"?S.charset:e.charset,n=typeof e.duplicates>"u"?S.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:S.allowDots:!!e.allowDots;return{allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:S.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:S.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:S.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:S.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:S.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:S.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:S.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:S.decoder,delimiter:typeof e.delimiter=="string"||q.isRegExp(e.delimiter)?e.delimiter:S.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:S.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:S.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:S.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:S.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:S.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:S.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},_l=function(t,e){var r=Sl(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?vl(t,r):t,o=r.plainObjects?{__proto__:null}:{},a=Object.keys(n),i=0;i<a.length;++i){var l=a[i],u=hl(l,n[l],r,typeof t=="string");o=q.merge(o,u,r)}return r.allowSparse===!0?o:q.compact(o)},El=fl,Al=_l,Pl=Ot,bl={formats:Pl,parse:Al,stringify:El};const Ol=Gr(bl);async function Le(t,e={},r){const{cms:n="cms"}=e;return fetch(`${t.href}?${Ol.stringify(e)}`,{method:"GET",cache:r?"no-store":"default",headers:{Accept:"application/json","Content-Type":"application/json","strapi-encode-source-maps":n==="strapi"&&r?"true":"false"}})}function It(t,e){return!(e!=null&&e.cms)||(e==null?void 0:e.cms)==="vtex"?`https://${e==null?void 0:e.storeId}.myvtex.com/_v/cms/api/${e==null?void 0:e.name}/${t}`:String(new URL(`api/${t}`,process.env.NEXT_PUBLIC_API_URL))}function Pn(t){return Array.isArray(t)&&t.length>0?t[0]:Array.isArray(t)?null:t}async function bn(t,e=[],r={}){var n;if((r==null?void 0:r.contentType)===t){const o=(r==null?void 0:r.previewMode)==="true",a=(r==null?void 0:r.documentId)??"",i=a&&((n=String(a))!=null&&n.length)?`/${r.documentId}`:"",l=new URL(It(`${t}${i}`,r)),u=await Le(l,r,o);if(!u.ok)return console.error(`[Error fetching preview data]: ${t} - status: ${u.statusText}`),[];const f=await u.json(),c=e.findIndex(p=>p.documentId===f.id);return c!==-1?(e[c]=f,[...e]):[f,...e]}return e}const Rl=Object.freeze(Object.defineProperty({__proto__:null,createUrl:It,fetchCMS:Le,mergePreviewDocument:bn,spreadStrapiData:Pn},Symbol.toStringTag,{value:"Module"}));async function On(t,e={},r){const n=!!(e!=null&&e.previewMode),o=await Le(t,e,n);if(!o.ok)return console.log(`Failed to fetch Strapi (url=${String(t)}, status=${o.status})`),{status:404,data:[],error:String(o.status)};const{data:a}=await o.json();return a?{status:200,data:r?Pn(a):a}:{status:404,data:[],error:"No data found"}}async function Rn(t,e,r={}){const n=(r==null?void 0:r.previewId)??"",o=(r==null?void 0:r.previewMode)==="true",a={...r,versionId:n},i=[];let l=1,u=0,f=!0;try{do{const c=await Le(e,{...a,page:l},o).then(p=>p.json()).catch(p=>(console.error("Error fetching VTEX CMS data:",p),console.error("Error URL:",e.toString()),null));l===1&&(u=c.totalItems),Array.isArray(c==null?void 0:c.data)&&i.push(...c.data),f=!!(c!=null&&c.hasNextPage),l++}while(f&&i.length<u);if(o&&i.length>0){if(!t||!n)throw new Error("contentType and previewId are required for preview mode in vtexCMSData");const c=await bn(t,i,a);return{status:c.length>0?200:404,data:c}}return{status:i.length?200:404,data:i}}catch(c){return{status:500,data:[],error:c instanceof Error?c.message:String(c)}}}const Il=Object.freeze(Object.defineProperty({__proto__:null,strapiCMSData:On,vtexCMSData:Rn},Symbol.toStringTag,{value:"Module"}));async function wl({contentType:t,documentId:e,versionId:r,CMS_PROJECT_NAME:n}){const o=e&&e.length?`/${e}`:"",a=r&&r.length?`?versionId=${r}`:"";return mt(`/cms/api/${n}/${t}${o}${a}`,{cache:"no-cache"})}async function In(t,e={},r){const{cms:n="vtex"}=e??{};try{const o=new URL(It(t,e));return n!=="vtex"?On(o,e,r):Rn(t,o,e)}catch(o){return console.error(`[Fetch ContentType Error CMS ${n}]`,o),r?{status:400,data:null}:{status:200,data:[]}}}const Tl=Object.freeze(Object.defineProperty({__proto__:null,fetchContentType:In,getCMSContentType:wl},Symbol.toStringTag,{value:"Module"}));exports.SearchPageScreening=No;exports.addItemOrder=br;exports.addLocale=qr;exports.addNotification=$r;exports.addPathPrefix=ht;exports.addSearchParamsFacets=fo;exports.cart=eo;exports.catalogHelpers=Io;exports.cms=Tl;exports.cmsHelpers=Il;exports.cmsUtils=Rl;exports.configureFetchProxy=to;exports.constants=Hr;exports.convertSearchParams=mo;exports.createNewAddress=Br;exports.detectDomainLocale=Xr;exports.disableSKU=yr;exports.fetchContentType=In;exports.fetchProxy=mt;exports.fetchVtex=St;exports.fetchVtexWithAbortController=wo;exports.filterNonCategorySelected=oo;exports.filterNonRootFacets=yo;exports.findItemIndex=Ir;exports.findOptions=Fr;exports.formatPriceToCurrency=Oe;exports.formattedFacets=so;exports.formattedSimilars=Vr;exports.freightParsePrice=cr;exports.getCode=Tr;exports.getColorAndSizeFromSkuName=sr;exports.getDefaultExportFromCjs=Gr;exports.getDiscountPercent=ur;exports.getFirstImages=Sr;exports.getProductNameWithoutSku=pr;exports.getQuantity=xr;exports.getRemoveId=Cr;exports.getSKUName=fr;exports.getSkuInfos=dr;exports.getThumbImage=mr;exports.getValidOffer=vr;exports.getValue=Nr;exports.initialState=Er;exports.marketingTagsBuilder=Lr;exports.marketingdata=Co;exports.mergeOptionsPromise=Mr;exports.mountMarketingData=Ur;exports.navigateToSearchPage=go;exports.normalizeLocalePath=Wr;exports.parsePath=Ne;exports.parseSearchState=vo;exports.pathHasPrefix=gt;exports.postMediaData=zr;exports.productHelpers=Xn;exports.promiseDefault=T;exports.proxyCartAPI=ro;exports.removeQuantity=Or;exports.removeTrailingSlash=kr;exports.resizingImg=gr;exports.responsive=ue;exports.setVideoPlay=_r;exports.splitNameAndSizeFromFullName=dt;exports.updateItemSellerExternal=wr;exports.updateOrderFormPromise=Dr;exports.updateQuantity=Rr;exports.updatedResizedImg=hr;
|