@soma-vertical-web/multi-lib 1.0.32 → 1.0.34

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 (57) hide show
  1. package/contexts/contexts/plp/FilterContext.d.ts +1 -1
  2. package/contexts/contexts/plp/PLPContext.d.ts +1 -1
  3. package/contexts/contexts/search/Facets.d.ts +1 -1
  4. package/contexts/contexts/search/Products.d.ts +1 -1
  5. package/contexts/contexts/search/QueryFacets.d.ts +5 -0
  6. package/contexts/contexts/search/QueryProducts.d.ts +5 -0
  7. package/contexts/contexts/search/RootTank.d.ts +9 -0
  8. package/contexts/contexts/search/Search.d.ts +1 -1
  9. package/contexts/hooks/useScrollRestorationInfinite.d.ts +1 -1
  10. package/contexts/index.d.ts +3 -15
  11. package/contexts/store/plp-scroll.d.ts +3 -0
  12. package/contexts/store/plp.d.ts +2 -2
  13. package/data/api/fetchProxy.d.ts +9 -0
  14. package/data/helpers/plp/index.d.ts +4 -13
  15. package/data/helpers/search/facets.d.ts +1 -0
  16. package/data/helpers/search/index.d.ts +4 -0
  17. package/data/helpers/search/product/index.d.ts +13 -1
  18. package/data/helpers/search/search.d.ts +1 -0
  19. package/data/index.d.ts +2 -0
  20. package/index-AgO_aUeQ.mjs +2371 -0
  21. package/index-BFjIPkXv.js +4 -0
  22. package/{index-BM8vTUKg.mjs → index-CIVkR1d_.mjs} +776 -712
  23. package/index-CXSKhXO3.js +4 -0
  24. package/index-D0PGMDh5.js +4 -0
  25. package/index-ekZLWJ5-.mjs +2686 -0
  26. package/index.js +17 -17
  27. package/index.mjs +10513 -8429
  28. package/index2.js +2 -2
  29. package/index2.mjs +338 -343
  30. package/layout/index.d.ts +5 -5
  31. package/layout/template/PDC/Composite/Grid/Grid.d.ts +1 -1
  32. package/layout/template/PDC/Composite/InfiniteScroller/Banners/Banners.d.ts +1 -1
  33. package/layout/template/PDC/Composite/InfiniteScroller/Filters/Filters.d.ts +7 -0
  34. package/layout/template/PDC/Composite/InfiniteScroller/Filters/index.d.ts +1 -0
  35. package/layout/template/PDC/Composite/InfiniteScroller/InfiniteScroller.d.ts +3 -1
  36. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/AnchorPDP.d.ts +7 -0
  37. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Card.d.ts +1 -1
  38. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Loader.d.ts +1 -1
  39. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/NextPage.d.ts +4 -1
  40. package/layout/template/PDC/Composite/InfiniteScroller/Page/Page.d.ts +2 -2
  41. package/layout/template/PDC/Composite/InfiniteScroller/Page/index.d.ts +10 -3
  42. package/layout/template/PDC/Composite/Pagination/Pagination.d.ts +1 -1
  43. package/layout/template/PDC/PDC.d.ts +1 -1
  44. package/layout/template/PDC/index.d.ts +3 -3
  45. package/layout/template/SearchResult/Composite/Products.d.ts +7 -0
  46. package/layout/template/SearchResult/SearchContent.d.ts +1 -1
  47. package/layout/template/SearchResult/SearchResult.d.ts +1 -1
  48. package/package.json +1 -1
  49. package/server.d.ts +4 -0
  50. package/style.css +1 -1
  51. package/types/contexts/contexts/plp.d.ts +63 -21
  52. package/types/contexts/contexts/search.d.ts +30 -28
  53. package/types/contexts/hooks/index.d.ts +0 -2
  54. package/types/layout/team-components/PLPNavigation/index.d.ts +0 -2
  55. package/types/layout/templates/PLP/index.d.ts +20 -4
  56. package/types/layout/templates/SearchResult/index.d.ts +3 -0
  57. 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,"&quot;")}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;
@@ -0,0 +1,4 @@
1
+ "use strict";const _n=require("yup"),R=require("react/jsx-runtime"),En=require("@soma-vertical-web/core-components");function An(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 $=An(_n),Pe=(t,e=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:e?2:0}).format(t),nr=({valueInCents:t,hasFree:e,freeTaxMessage:r})=>t===0?e?r:Pe(0):Pe(t/100),or=(t,e)=>{const n=(t-e)*100/t;return Math.floor(n)},ft=(t,e)=>{const[r,n]=t.split(e);return{name:r.trim(),size:n?n.trim():""}},ar=(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()}},ir=(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},lr=(t,e)=>t.replace(e,"").trim(),Pn=t=>t.replace(/\//g,""),cr=({items:t,NAME_SPLIT_SYMBOL:e})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(i,l)=>{var f;l&&(l.sellerId=i.sellerId,l.sellerName=i.sellerName,l.available=!0,l.isSellerDefault=i.sellerDefault);const{Price:u,ListPrice:s,PaymentOptions:{installmentOptions:c}}=i.commertialOffer;r.price=u,r.listPrice=s;const p=(f=c==null?void 0:c[0])==null?void 0:f.installments;if(p){const{count:d,value:y}=p[p.length-1];r.installments={count:d,value:y/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])??ft(l.nameComplete??l.name,e).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},s=l.sellers.filter(p=>(p.sellerDefault&&p.commertialOffer.IsAvailable&&(u.available=!0,n(p,u)),p.commertialOffer.IsAvailable));return!u.isSellerDefault&&s.length>0&&(u.available=!0,n(s[0],{...u,sellerId:s[0].sellerId,sellerName:s[0].sellerName})),u.available===!1&&(o=!1),i.push(u),i},[]);return{...r,sizes:a,allSizesAvailable:o}},ur=t=>t?!t.offers.offers.find(({quantity:e=0})=>e>0):!1,fr=(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)},sr=({images:t,TEXTURE_IMAGE:e})=>t.find(r=>e.includes(r.imageLabel))??t[0],pr=(t,e)=>{const r=/\/ids\/(\d+)\//,n=t.match(r);return n?t.replace(`/${n[1]}/`,`/${n[1]}-${e.width}-${e.height}/`):t},yr=(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},dr=({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},On=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},vr=(t,e,r)=>{e&&(t?(e.getAttribute("src")||(e.src=r??""),e.play()):e.pause())},Rn=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:ur,formatPriceToCurrency:Pe,freightParsePrice:nr,getAspectRatio:On,getColorAndSizeFromSkuName:ar,getDiscountPercent:or,getFirstImages:dr,getProductNameWithoutSku:lr,getSKUName:ir,getSkuInfos:cr,getThumbImage:sr,getValidOffer:fr,removeSlashes:Pn,resizingImg:pr,setVideoPlay:vr,splitNameAndSizeFromFullName:ft,updatedResizedImg:yr},Symbol.toStringTag,{value:"Module"})),Rt="fuzzy",bt="operator",bn=t=>({isDepartment:t!=null&&t.length?t[0].key==="category-1":!1}),gr=(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})},hr=(t,e)=>e?t==="category-1":!1,In=t=>t.key==="operator"&&(t.value==="and"||t.value==="or"),Tn=t=>t.type==="TEXT",wn=t=>t.key==="fuzzy"&&(t.value==="0"||t.value==="1"||t.value==="auto"),Cn=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))}},Nn=({key:t,values:e})=>({__typename:"FacetRange",key:t,values:e}),Dn=(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||!hr(i.key,o)).map(i=>Tn(i)?Cn(i):Nn(i))},xn=(t,e)=>{const r=t.find(({key:o})=>o===Rt)??null,n=t.find(({key:o})=>o===bt)??null;r&&wn(r)&&e.append(Rt,r.value),n&&In(n)&&e.append(bt,n.value)},st=t=>t.map(e=>{const[r,n]=e.split("/");return{key:r,value:n}}),mr=(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}=bn(n);return n==null?void 0:n.filter(a=>!hr(a.key,o))},Fn=t=>t.getAll("facets").flatMap(e=>{const[r,...n]=e.split("/");return!r||n.length===0?[]:[{key:r,value:n.join("/")}]}),Mn=({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:st(r),term:o,base:o?"":t,page:a}},$n=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},Ln=(t,e,r=24,n=1,o)=>{const a=`/search?query=${e??""}&count=${r}&page=${n}${o?`&sort=${o.replace("_",":")}`:""}`;t.push(a)},Sr={parseSearchState:Mn,convertSearchParams:$n,filterNonRootFacets:mr,selectedFacets:st,filterNonCategorySelected:gr},Un=Object.freeze(Object.defineProperty({__proto__:null,default:Sr},Symbol.toStringTag,{value:"Module"}));var It=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Bn(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 Er={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return e}});function e(r){return r.replace(/\/$/,"")||"/"}})(Er);var we={};(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:""}}})(we);var pt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const e=we;function r(n,o){if(typeof n!="string")return!1;const{pathname:a}=(0,e.parsePath)(n);return a===o||a.startsWith(o+"/")}})(pt);var Ar={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(Sn,Pt){for(var Ot in Pt)Object.defineProperty(Sn,Ot,{enumerable:!0,get:Pt[Ot]})}e(t,{ACTION_SUFFIX:function(){return u},APP_DIR_ALIAS:function(){return K},CACHE_ONE_YEAR:function(){return T},DOT_NEXT_ALIAS:function(){return M},ESLINT_DEFAULT_DIRS:function(){return vn},GSP_NO_RETURNED_VALUE:function(){return un},GSSP_COMPONENT_MEMBER_ERROR:function(){return pn},GSSP_NO_RETURNED_VALUE:function(){return fn},INSTRUMENTATION_HOOK_FILENAME:function(){return U},MIDDLEWARE_FILENAME:function(){return w},MIDDLEWARE_LOCATION_REGEXP:function(){return k},NEXT_BODY_SUFFIX:function(){return p},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return g},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return y},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return h},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return d},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return I},NEXT_CACHE_TAGS_HEADER:function(){return f},NEXT_CACHE_TAG_MAX_ITEMS:function(){return S},NEXT_CACHE_TAG_MAX_LENGTH:function(){return P},NEXT_DATA_SUFFIX:function(){return s},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 yn},PAGES_DIR_ALIAS:function(){return z},PRERENDER_REVALIDATE_HEADER:function(){return o},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return a},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return ne},ROOT_DIR_ALIAS:function(){return C},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return W},RSC_ACTION_ENCRYPTION_ALIAS:function(){return b},RSC_ACTION_PROXY_ALIAS:function(){return N},RSC_ACTION_VALIDATE_ALIAS:function(){return O},RSC_MOD_REF_PROXY_ALIAS:function(){return B},RSC_PREFETCH_SUFFIX:function(){return i},RSC_SUFFIX:function(){return l},SERVER_PROPS_EXPORT_ERROR:function(){return cn},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return ge},SERVER_PROPS_SSG_CONFLICT:function(){return oe},SERVER_RUNTIME:function(){return gn},SSG_FALLBACK_EXPORT_ERROR:function(){return dn},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return $e},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return ln},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return sn},WEBPACK_LAYERS:function(){return hn},WEBPACK_RESOURCE_QUERIES:function(){return mn}});const r="nxtP",n="nxtI",o="x-prerender-revalidate",a="x-prerender-revalidate-if-generated",i=".prefetch.rsc",l=".rsc",u=".action",s=".json",c=".meta",p=".body",f="x-next-cache-tags",d="x-next-cache-soft-tags",y="x-next-revalidated-tags",h="x-next-revalidate-tag-token",S=128,P=256,I=1024,g="_N_T_",T=31536e3,w="middleware",k=`(?:src/)?${w}`,U="instrumentation",z="private-next-pages",M="private-dot-next",C="private-next-root-dir",K="private-next-app-dir",B="private-next-rsc-mod-ref-proxy",O="private-next-rsc-action-validate",N="private-next-rsc-server-reference",b="private-next-rsc-action-encryption",W="private-next-rsc-action-client-wrapper",ne="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",$e="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",ge="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",oe="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",ln="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",cn="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",un="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",fn="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",sn="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",pn="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",yn='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',dn="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",vn=["app","pages","components","lib","src"],gn={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"},hn={...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]}},mn={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}})(Ar);var Pr={},yt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return r}});const e=we;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}})(yt);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const e=yt,r=pt;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)}})(Pr);var Or={};(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}}})(Or);var Rr={};(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(s=>s.toLowerCase()===o))return l}}}})(Rr);const Gn=(t="")=>t.charAt(0).toUpperCase()+t.slice(1),Tt=(t,e=" ")=>!t||typeof t=="string"&&t.length===0?t:(Array.isArray(t)?t:t.split("-")).map(Gn).join(e),jn=({canonical:t,seo:e,slug:r})=>{const n=Array.isArray(r)?r.join(", "):r;return{id:0,Title:`${Array.isArray(r)?r.map(a=>Tt(a)).join(","):Tt(r)} - ${e.title}`,MetaTagDescription:e.description,name:n,hasChildren:!1,url:t,children:[]}},Hn=({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]:[]}}),kn=({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},Wn=t=>{t instanceof Error?(console.error(`[ERROR CATEGORY INFO]: ${t.message}`),console.error(t.stack)):console.error("[ERROR CATEGORY INFO]: Unknown error",t)},Xn=new Set(["brand","category","department","subcategory","collection","cluster"]),qn=t=>typeof(t==null?void 0:t.pageType)=="string"&&Xn.has(t==null?void 0:t.pageType.toLowerCase()),Vn=t=>({collection:t.Coleção,categoryId:t.categoryId,current_collection:t["Coleção Atual"],items:t.items}),br=(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},[]),zn=Object.freeze(Object.defineProperty({__proto__:null,createEmptySeoCategory:jn,createSeoCategory:Hn,findCategory:kn,formattedSimilars:br,isCollectionPageType:qn,notFindCategoryError:Wn,responseAdapter:Vn},Symbol.toStringTag,{value:"Module"})),le={"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"},dt=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)})},ae=new Map;async function Kn(t,e={}){var r;try{const{abort:n=!1}=e,o=new AbortController;n&&(ae.has(t)&&((r=ae.get(t))==null||r.abort(),ae.delete(t)),ae.set(t,o));const a=dt(t,{...e,...n?{signal:o.signal}:{}});return n&&ae.delete(t),a}catch(n){if(n.name==="AbortError"){console.log(`[REQUEST CANCELLED]: ${t}`);return}throw console.error(`[ERROR API]: ${n.message}`),n}}const Yn=$.object({orderFormId:$.string().required(),coupon:$.string().nullable(),utmSource:$.string().optional(),utmMedium:$.string().optional(),utmCampaign:$.string().optional(),utmiCampaign:$.string().optional(),utmiPart:$.string().optional(),utmipage:$.string().optional()});async function Ir({apiUrl:t,body:e}){if(!e){console.error("[ERROR FETCHING] Body is required");return}await Yn.validate(e);const{orderFormId:r,utmiPart:n,coupon:o,...a}=e,i=`${t}/api/checkout/pub/orderForm/${r}/attachments/marketingData`;return dt(i,{method:"POST",body:{orderFormId:r,utmiPart:n??r,coupon:o??null,...a}})}const Qn=Object.freeze(Object.defineProperty({__proto__:null,postMediaData:Ir},Symbol.toStringTag,{value:"Module"})),Jn=({children:t,data:e,SectionZone:r,className:n})=>{var c,p;const o=((c=e==null?void 0:e.filter(f=>{var d,y;return((y=(d=f.config)==null?void 0:d.responsive)==null?void 0:y.deviceType)==="mobile"})[0])==null?void 0:c.sections)||[],a=((p=e==null?void 0:e.filter(f=>{var d,y;return((y=(d=f.config)==null?void 0:d.responsive)==null?void 0:y.deviceType)==="desktop"})[0])==null?void 0:p.sections)||[],i=o.slice(0,1),l=o.slice(1,o.length),u=a.slice(0,1),s=a.slice(1,a.length);return R.jsxs(R.Fragment,{children:[R.jsxs("div",{className:n,children:[R.jsx("div",{className:le["responsive-mobile-flex"],children:R.jsx(r,{data:i??[]})}),R.jsx("div",{className:le["responsive-desktop-flex"],children:R.jsx(r,{data:u??[]})})]}),t,R.jsx("div",{className:le["responsive-mobile-flex"],children:R.jsx(r,{data:l??[]})}),R.jsx("div",{className:le["responsive-desktop-flex"],children:R.jsx(r,{data:s??[]})}),R.jsx(En.Utils.Divider,{})]})};var re=TypeError;const Zn={},eo=Object.freeze(Object.defineProperty({__proto__:null,default:Zn},Symbol.toStringTag,{value:"Module"})),to=Bn(eo);var vt=typeof Map=="function"&&Map.prototype,Le=Object.getOwnPropertyDescriptor&&vt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Oe=vt&&Le&&typeof Le.get=="function"?Le.get:null,wt=vt&&Map.prototype.forEach,gt=typeof Set=="function"&&Set.prototype,Ue=Object.getOwnPropertyDescriptor&&gt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Re=gt&&Ue&&typeof Ue.get=="function"?Ue.get:null,Ct=gt&&Set.prototype.forEach,ro=typeof WeakMap=="function"&&WeakMap.prototype,ce=ro?WeakMap.prototype.has:null,no=typeof WeakSet=="function"&&WeakSet.prototype,ue=no?WeakSet.prototype.has:null,oo=typeof WeakRef=="function"&&WeakRef.prototype,Nt=oo?WeakRef.prototype.deref:null,ao=Boolean.prototype.valueOf,io=Object.prototype.toString,lo=Function.prototype.toString,co=String.prototype.match,ht=String.prototype.slice,G=String.prototype.replace,uo=String.prototype.toUpperCase,Dt=String.prototype.toLowerCase,Tr=RegExp.prototype.test,xt=Array.prototype.concat,F=Array.prototype.join,fo=Array.prototype.slice,Ft=Math.floor,ot=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Be=Object.getOwnPropertySymbols,at=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ee=typeof Symbol=="function"&&typeof Symbol.iterator=="object",fe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ee||!0)?Symbol.toStringTag:null,wr=Object.prototype.propertyIsEnumerable,Mt=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function $t(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Tr.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Ft(-t):Ft(t);if(n!==t){var o=String(n),a=ht.call(e,o.length+1);return G.call(o,r,"$&_")+"."+G.call(G.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return G.call(e,r,"$&_")}var it=to,Lt=it.custom,Ut=Dr(Lt)?Lt:null,Cr={__proto__:null,double:'"',single:"'"},so={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Ce=function t(e,r,n,o){var a=r||{};if(L(a,"quoteStyle")&&!L(Cr,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(L(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=L(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(L(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(L(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 Fr(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var u=String(e);return l?$t(e,u):u}if(typeof e=="bigint"){var s=String(e)+"n";return l?$t(e,s):s}var c=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof e=="object")return lt(e)?"[Array]":"[Object]";var p=Co(a,n);if(typeof o>"u")o=[];else if(xr(o,e)>=0)return"[Circular]";function f(O,N,b){if(N&&(o=fo.call(o),o.push(N)),b){var W={depth:a.depth};return L(a,"quoteStyle")&&(W.quoteStyle=a.quoteStyle),t(O,W,n+1,o)}return t(O,a,n+1,o)}if(typeof e=="function"&&!Bt(e)){var d=Eo(e),y=he(e,f);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(y.length>0?" { "+F.call(y,", ")+" }":"")}if(Dr(e)){var h=ee?G.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):at.call(e);return typeof e=="object"&&!ee?ie(h):h}if(Io(e)){for(var S="<"+Dt.call(String(e.nodeName)),P=e.attributes||[],I=0;I<P.length;I++)S+=" "+P[I].name+"="+Nr(po(P[I].value),"double",a);return S+=">",e.childNodes&&e.childNodes.length&&(S+="..."),S+="</"+Dt.call(String(e.nodeName))+">",S}if(lt(e)){if(e.length===0)return"[]";var g=he(e,f);return p&&!wo(g)?"["+ct(g,p)+"]":"[ "+F.call(g,", ")+" ]"}if(vo(e)){var T=he(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!wr.call(e,"cause")?"{ ["+String(e)+"] "+F.call(xt.call("[cause]: "+f(e.cause),T),", ")+" }":T.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+F.call(T,", ")+" }"}if(typeof e=="object"&&i){if(Ut&&typeof e[Ut]=="function"&&it)return it(e,{depth:c-n});if(i!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Ao(e)){var w=[];return wt&&wt.call(e,function(O,N){w.push(f(N,e,!0)+" => "+f(O,e))}),Gt("Map",Oe.call(e),w,p)}if(Ro(e)){var k=[];return Ct&&Ct.call(e,function(O){k.push(f(O,e))}),Gt("Set",Re.call(e),k,p)}if(Po(e))return Ge("WeakMap");if(bo(e))return Ge("WeakSet");if(Oo(e))return Ge("WeakRef");if(ho(e))return ie(f(Number(e)));if(So(e))return ie(f(ot.call(e)));if(mo(e))return ie(ao.call(e));if(go(e))return ie(f(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof It<"u"&&e===It)return"{ [object globalThis] }";if(!yo(e)&&!Bt(e)){var U=he(e,f),z=Mt?Mt(e)===Object.prototype:e instanceof Object||e.constructor===Object,M=e instanceof Object?"":"null prototype",C=!z&&fe&&Object(e)===e&&fe in e?ht.call(H(e),8,-1):M?"Object":"",K=z||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",B=K+(C||M?"["+F.call(xt.call([],C||[],M||[]),": ")+"] ":"");return U.length===0?B+"{}":p?B+"{"+ct(U,p)+"}":B+"{ "+F.call(U,", ")+" }"}return String(e)};function Nr(t,e,r){var n=r.quoteStyle||e,o=Cr[n];return o+t+o}function po(t){return G.call(String(t),/"/g,"&quot;")}function V(t){return!fe||!(typeof t=="object"&&(fe in t||typeof t[fe]<"u"))}function lt(t){return H(t)==="[object Array]"&&V(t)}function yo(t){return H(t)==="[object Date]"&&V(t)}function Bt(t){return H(t)==="[object RegExp]"&&V(t)}function vo(t){return H(t)==="[object Error]"&&V(t)}function go(t){return H(t)==="[object String]"&&V(t)}function ho(t){return H(t)==="[object Number]"&&V(t)}function mo(t){return H(t)==="[object Boolean]"&&V(t)}function Dr(t){if(ee)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!at)return!1;try{return at.call(t),!0}catch{}return!1}function So(t){if(!t||typeof t!="object"||!ot)return!1;try{return ot.call(t),!0}catch{}return!1}var _o=Object.prototype.hasOwnProperty||function(t){return t in this};function L(t,e){return _o.call(t,e)}function H(t){return io.call(t)}function Eo(t){if(t.name)return t.name;var e=co.call(lo.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function xr(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 Ao(t){if(!Oe||!t||typeof t!="object")return!1;try{Oe.call(t);try{Re.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Po(t){if(!ce||!t||typeof t!="object")return!1;try{ce.call(t,ce);try{ue.call(t,ue)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Oo(t){if(!Nt||!t||typeof t!="object")return!1;try{return Nt.call(t),!0}catch{}return!1}function Ro(t){if(!Re||!t||typeof t!="object")return!1;try{Re.call(t);try{Oe.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function bo(t){if(!ue||!t||typeof t!="object")return!1;try{ue.call(t,ue);try{ce.call(t,ce)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function Io(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Fr(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Fr(ht.call(t,0,e.maxStringLength),e)+n}var o=so[e.quoteStyle||"single"];o.lastIndex=0;var a=G.call(G.call(t,o,"\\$1"),/[\x00-\x1f]/g,To);return Nr(a,"single",e)}function To(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":"")+uo.call(e.toString(16))}function ie(t){return"Object("+t+")"}function Ge(t){return t+" { ? }"}function Gt(t,e,r,n){var o=n?ct(r,n):F.call(r,", ");return t+" ("+e+") {"+o+"}"}function wo(t){for(var e=0;e<t.length;e++)if(xr(t[e],`
2
+ `)>=0)return!1;return!0}function Co(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=F.call(Array(t.indent+1)," ");else return null;return{base:r,prev:F.call(Array(e+1),r)}}function ct(t,e){if(t.length===0)return"";var r=`
3
+ `+e.prev+e.base;return r+F.call(t,","+r)+`
4
+ `+e.prev}function he(t,e){var r=lt(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=L(t,o)?e(t[o],t):""}var a=typeof Be=="function"?Be(t):[],i;if(ee){i={};for(var l=0;l<a.length;l++)i["$"+a[l]]=a[l]}for(var u in t)L(t,u)&&(r&&String(Number(u))===u&&u<t.length||ee&&i["$"+u]instanceof Symbol||(Tr.call(/[^\w$]/,u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if(typeof Be=="function")for(var s=0;s<a.length;s++)wr.call(t,a[s])&&n.push("["+e(a[s])+"]: "+e(t[a[s]],t));return n}var No=Ce,Do=re,Ne=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},xo=function(t,e){if(t){var r=Ne(t,e);return r&&r.value}},Fo=function(t,e,r){var n=Ne(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},Mo=function(t,e){return t?!!Ne(t,e):!1},$o=function(t,e){if(t)return Ne(t,e,!0)},Lo=function(){var e,r={assert:function(n){if(!r.has(n))throw new Do("Side channel does not contain "+No(n))},delete:function(n){var o=e&&e.next,a=$o(e,n);return a&&o&&o===a&&(e=void 0),!!a},get:function(n){return xo(e,n)},has:function(n){return Mo(e,n)},set:function(n,o){e||(e={next:void 0}),Fo(e,n,o)}};return r},Mr=Object,Uo=Error,Bo=EvalError,Go=RangeError,jo=ReferenceError,Ho=SyntaxError,ko=URIError,Wo=Math.abs,Xo=Math.floor,qo=Math.max,Vo=Math.min,zo=Math.pow,Ko=Math.round,Yo=Number.isNaN||function(e){return e!==e},Qo=Yo,Jo=function(e){return Qo(e)||e===0?e:e<0?-1:1},Zo=Object.getOwnPropertyDescriptor,Se=Zo;if(Se)try{Se([],"length")}catch{Se=null}var $r=Se,_e=Object.defineProperty||!1;if(_e)try{_e({},"a",{value:1})}catch{_e=!1}var ea=_e,je,jt;function ta(){return jt||(jt=1,je=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}),je}var He,Ht;function ra(){if(Ht)return He;Ht=1;var t=typeof Symbol<"u"&&Symbol,e=ta();return He=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},He}var ke,kt;function Lr(){return kt||(kt=1,ke=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),ke}var We,Wt;function Ur(){if(Wt)return We;Wt=1;var t=Mr;return We=t.getPrototypeOf||null,We}var Xe,Xt;function na(){if(Xt)return Xe;Xt=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(u,s){for(var c=[],p=0;p<u.length;p+=1)c[p]=u[p];for(var f=0;f<s.length;f+=1)c[f+u.length]=s[f];return c},a=function(u,s){for(var c=[],p=s,f=0;p<u.length;p+=1,f+=1)c[f]=u[p];return c},i=function(l,u){for(var s="",c=0;c<l.length;c+=1)s+=l[c],c+1<l.length&&(s+=u);return s};return Xe=function(u){var s=this;if(typeof s!="function"||e.apply(s)!==n)throw new TypeError(t+s);for(var c=a(arguments,1),p,f=function(){if(this instanceof p){var P=s.apply(this,o(c,arguments));return Object(P)===P?P:this}return s.apply(u,o(c,arguments))},d=r(0,s.length-c.length),y=[],h=0;h<d;h++)y[h]="$"+h;if(p=Function("binder","return function ("+i(y,",")+"){ return binder.apply(this,arguments); }")(f),s.prototype){var S=function(){};S.prototype=s.prototype,p.prototype=new S,S.prototype=null}return p},Xe}var qe,qt;function De(){if(qt)return qe;qt=1;var t=na();return qe=Function.prototype.bind||t,qe}var Ve,Vt;function mt(){return Vt||(Vt=1,Ve=Function.prototype.call),Ve}var ze,zt;function Br(){return zt||(zt=1,ze=Function.prototype.apply),ze}var oa=typeof Reflect<"u"&&Reflect&&Reflect.apply,aa=De(),ia=Br(),la=mt(),ca=oa,ua=ca||aa.call(la,ia),fa=De(),sa=re,pa=mt(),ya=ua,Gr=function(e){if(e.length<1||typeof e[0]!="function")throw new sa("a function is required");return ya(fa,pa,e)},Ke,Kt;function da(){if(Kt)return Ke;Kt=1;var t=Gr,e=$r,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 Ke=n&&typeof n.get=="function"?t([n.get]):typeof a=="function"?function(l){return a(l==null?l:o(l))}:!1,Ke}var Ye,Yt;function va(){if(Yt)return Ye;Yt=1;var t=Lr(),e=Ur(),r=da();return Ye=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,Ye}var Qe,Qt;function ga(){if(Qt)return Qe;Qt=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=De();return Qe=r.call(t,e),Qe}var v,ha=Mr,ma=Uo,Sa=Bo,_a=Go,Ea=jo,te=Ho,Z=re,Aa=ko,Pa=Wo,Oa=Xo,Ra=qo,ba=Vo,Ia=zo,Ta=Ko,wa=Jo,jr=Function,Je=function(t){try{return jr('"use strict"; return ('+t+").constructor;")()}catch{}},pe=$r,Ca=ea,Ze=function(){throw new Z},Na=pe?function(){try{return arguments.callee,Ze}catch{try{return pe(arguments,"callee").get}catch{return Ze}}}():Ze,Y=ra()(),A=va(),Da=Ur(),xa=Lr(),Hr=Br(),ye=mt(),J={},Fa=typeof Uint8Array>"u"||!A?v:A(Uint8Array),q={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?v:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?v:ArrayBuffer,"%ArrayIteratorPrototype%":Y&&A?A([][Symbol.iterator]()):v,"%AsyncFromSyncIteratorPrototype%":v,"%AsyncFunction%":J,"%AsyncGenerator%":J,"%AsyncGeneratorFunction%":J,"%AsyncIteratorPrototype%":J,"%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%":ma,"%eval%":eval,"%EvalError%":Sa,"%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%":jr,"%GeneratorFunction%":J,"%Int8Array%":typeof Int8Array>"u"?v:Int8Array,"%Int16Array%":typeof Int16Array>"u"?v:Int16Array,"%Int32Array%":typeof Int32Array>"u"?v:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Y&&A?A(A([][Symbol.iterator]())):v,"%JSON%":typeof JSON=="object"?JSON:v,"%Map%":typeof Map>"u"?v:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Y||!A?v:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":ha,"%Object.getOwnPropertyDescriptor%":pe,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?v:Promise,"%Proxy%":typeof Proxy>"u"?v:Proxy,"%RangeError%":_a,"%ReferenceError%":Ea,"%Reflect%":typeof Reflect>"u"?v:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?v:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Y||!A?v:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?v:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Y&&A?A(""[Symbol.iterator]()):v,"%Symbol%":Y?Symbol:v,"%SyntaxError%":te,"%ThrowTypeError%":Na,"%TypedArray%":Fa,"%TypeError%":Z,"%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%":Aa,"%WeakMap%":typeof WeakMap>"u"?v:WeakMap,"%WeakRef%":typeof WeakRef>"u"?v:WeakRef,"%WeakSet%":typeof WeakSet>"u"?v:WeakSet,"%Function.prototype.call%":ye,"%Function.prototype.apply%":Hr,"%Object.defineProperty%":Ca,"%Object.getPrototypeOf%":Da,"%Math.abs%":Pa,"%Math.floor%":Oa,"%Math.max%":Ra,"%Math.min%":ba,"%Math.pow%":Ia,"%Math.round%":Ta,"%Math.sign%":wa,"%Reflect.getPrototypeOf%":xa};if(A)try{null.error}catch(t){var Ma=A(A(t));q["%Error.prototype%"]=Ma}var $a=function t(e){var r;if(e==="%AsyncFunction%")r=Je("async function () {}");else if(e==="%GeneratorFunction%")r=Je("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Je("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 q[e]=r,r},Jt={__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"]},de=De(),be=ga(),La=de.call(ye,Array.prototype.concat),Ua=de.call(Hr,Array.prototype.splice),Zt=de.call(ye,String.prototype.replace),Ie=de.call(ye,String.prototype.slice),Ba=de.call(ye,RegExp.prototype.exec),Ga=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ja=/\\(\\)?/g,Ha=function(e){var r=Ie(e,0,1),n=Ie(e,-1);if(r==="%"&&n!=="%")throw new te("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new te("invalid intrinsic syntax, expected opening `%`");var o=[];return Zt(e,Ga,function(a,i,l,u){o[o.length]=l?Zt(u,ja,"$1"):i||a}),o},ka=function(e,r){var n=e,o;if(be(Jt,n)&&(o=Jt[n],n="%"+o[0]+"%"),be(q,n)){var a=q[n];if(a===J&&(a=$a(n)),typeof a>"u"&&!r)throw new Z("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new te("intrinsic "+e+" does not exist!")},St=function(e,r){if(typeof e!="string"||e.length===0)throw new Z("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Z('"allowMissing" argument must be a boolean');if(Ba(/^%?[^%]*%?$/,e)===null)throw new te("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Ha(e),o=n.length>0?n[0]:"",a=ka("%"+o+"%",r),i=a.name,l=a.value,u=!1,s=a.alias;s&&(o=s[0],Ua(n,La([0,1],s)));for(var c=1,p=!0;c<n.length;c+=1){var f=n[c],d=Ie(f,0,1),y=Ie(f,-1);if((d==='"'||d==="'"||d==="`"||y==='"'||y==="'"||y==="`")&&d!==y)throw new te("property names with quotes must have matching quotes");if((f==="constructor"||!p)&&(u=!0),o+="."+f,i="%"+o+"%",be(q,i))l=q[i];else if(l!=null){if(!(f in l)){if(!r)throw new Z("base intrinsic for "+e+" exists, but the property is not available.");return}if(pe&&c+1>=n.length){var h=pe(l,f);p=!!h,p&&"get"in h&&!("originalValue"in h.get)?l=h.get:l=l[f]}else p=be(l,f),l=l[f];p&&!u&&(q[i]=l)}}return l},kr=St,Wr=Gr,Wa=Wr([kr("%String.prototype.indexOf%")]),Xr=function(e,r){var n=kr(e,!!r);return typeof n=="function"&&Wa(e,".prototype.")>-1?Wr([n]):n},Xa=St,ve=Xr,qa=Ce,Va=re,er=Xa("%Map%",!0),za=ve("Map.prototype.get",!0),Ka=ve("Map.prototype.set",!0),Ya=ve("Map.prototype.has",!0),Qa=ve("Map.prototype.delete",!0),Ja=ve("Map.prototype.size",!0),qr=!!er&&function(){var e,r={assert:function(n){if(!r.has(n))throw new Va("Side channel does not contain "+qa(n))},delete:function(n){if(e){var o=Qa(e,n);return Ja(e)===0&&(e=void 0),o}return!1},get:function(n){if(e)return za(e,n)},has:function(n){return e?Ya(e,n):!1},set:function(n,o){e||(e=new er),Ka(e,n,o)}};return r},Za=St,xe=Xr,ei=Ce,me=qr,ti=re,Q=Za("%WeakMap%",!0),ri=xe("WeakMap.prototype.get",!0),ni=xe("WeakMap.prototype.set",!0),oi=xe("WeakMap.prototype.has",!0),ai=xe("WeakMap.prototype.delete",!0),ii=Q?function(){var e,r,n={assert:function(o){if(!n.has(o))throw new ti("Side channel does not contain "+ei(o))},delete:function(o){if(Q&&o&&(typeof o=="object"||typeof o=="function")){if(e)return ai(e,o)}else if(me&&r)return r.delete(o);return!1},get:function(o){return Q&&o&&(typeof o=="object"||typeof o=="function")&&e?ri(e,o):r&&r.get(o)},has:function(o){return Q&&o&&(typeof o=="object"||typeof o=="function")&&e?oi(e,o):!!r&&r.has(o)},set:function(o,a){Q&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new Q),ni(e,o,a)):me&&(r||(r=me()),r.set(o,a))}};return n}:me,li=re,ci=Ce,ui=Lo,fi=qr,si=ii,pi=si||fi||ui,Vr=function(){var e,r={assert:function(n){if(!r.has(n))throw new li("Side channel does not contain "+ci(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=pi()),e.set(n,o)}};return r},yi=String.prototype.replace,di=/%20/g,et={RFC1738:"RFC1738",RFC3986:"RFC3986"},_t={default:et.RFC3986,formatters:{RFC1738:function(t){return yi.call(t,di,"+")},RFC3986:function(t){return String(t)}},RFC1738:et.RFC1738,RFC3986:et.RFC3986},vi=_t,gi=Vr,tt=Object.prototype.hasOwnProperty,X=Array.isArray,Fe=gi(),zr=function(e,r){return Fe.set(e,r),e},Te=function(e){return Fe.has(e)},ut=function(e){return Fe.get(e)},Kr=function(e,r){Fe.set(e,r)},D=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),hi=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(X(n)){for(var o=[],a=0;a<n.length;++a)typeof n[a]<"u"&&o.push(n[a]);r.obj[r.prop]=o}}},Et=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},mi=function t(e,r,n){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(X(e))e.push(r);else if(e&&typeof e=="object")if(Te(e)){var o=ut(e)+1;e[o]=r,Kr(e,o)}else(n&&(n.plainObjects||n.allowPrototypes)||!tt.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object"){if(Te(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 zr(i,ut(r)+1)}return[e].concat(r)}var s=e;return X(e)&&!X(r)&&(s=Et(e,n)),X(e)&&X(r)?(r.forEach(function(c,p){if(tt.call(e,p)){var f=e[p];f&&typeof f=="object"&&c&&typeof c=="object"?e[p]=t(f,c,n):e.push(c)}else e[p]=c}),e):Object.keys(r).reduce(function(c,p){var f=r[p];return tt.call(c,p)?c[p]=t(c[p],f,n):c[p]=f,c},s)},Si=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},_i=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}},rt=1024,Ei=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(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var l="",u=0;u<i.length;u+=rt){for(var s=i.length>=rt?i.slice(u,u+rt):i,c=[],p=0;p<s.length;++p){var f=s.charCodeAt(p);if(f===45||f===46||f===95||f===126||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||a===vi.RFC1738&&(f===40||f===41)){c[c.length]=s.charAt(p);continue}if(f<128){c[c.length]=D[f];continue}if(f<2048){c[c.length]=D[192|f>>6]+D[128|f&63];continue}if(f<55296||f>=57344){c[c.length]=D[224|f>>12]+D[128|f>>6&63]+D[128|f&63];continue}p+=1,f=65536+((f&1023)<<10|s.charCodeAt(p)&1023),c[c.length]=D[240|f>>18]+D[128|f>>12&63]+D[128|f>>6&63]+D[128|f&63]}l+=c.join("")}return l},Ai=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 s=l[u],c=i[s];typeof c=="object"&&c!==null&&n.indexOf(c)===-1&&(r.push({obj:i,prop:s}),n.push(c))}return hi(r),e},Pi=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Oi=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Ri=function(e,r,n,o){if(Te(e)){var a=ut(e)+1;return e[a]=r,Kr(e,a),e}var i=[].concat(e,r);return i.length>n?zr(Et(i,{plainObjects:o}),i.length-1):i},bi=function(e,r){if(X(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(r(e[o]));return n}return r(e)},Yr={arrayToObject:Et,assign:Si,combine:Ri,compact:Ai,decode:_i,encode:Ei,isBuffer:Oi,isOverflow:Te,isRegExp:Pi,maybeMap:bi,merge:mi},Qr=Vr,Ee=Yr,se=_t,Ii=Object.prototype.hasOwnProperty,Jr={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},x=Array.isArray,Ti=Array.prototype.push,Zr=function(t,e){Ti.apply(t,x(e)?e:[e])},wi=Date.prototype.toISOString,tr=se.default,_={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Ee.encode,encodeValuesOnly:!1,filter:void 0,format:tr,formatter:se.formatters[tr],indices:!1,serializeDate:function(e){return wi.call(e)},skipNulls:!1,strictNullHandling:!1},Ci=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},nt={},Ni=function t(e,r,n,o,a,i,l,u,s,c,p,f,d,y,h,S,P,I){for(var g=e,T=I,w=0,k=!1;(T=T.get(nt))!==void 0&&!k;){var U=T.get(e);if(w+=1,typeof U<"u"){if(U===w)throw new RangeError("Cyclic object value");k=!0}typeof T.get(nt)>"u"&&(w=0)}if(typeof c=="function"?g=c(r,g):g instanceof Date?g=d(g):n==="comma"&&x(g)&&(g=Ee.maybeMap(g,function(oe){return oe instanceof Date?d(oe):oe})),g===null){if(i)return s&&!S?s(r,_.encoder,P,"key",y):r;g=""}if(Ci(g)||Ee.isBuffer(g)){if(s){var z=S?r:s(r,_.encoder,P,"key",y);return[h(z)+"="+h(s(g,_.encoder,P,"value",y))]}return[h(r)+"="+h(String(g))]}var M=[];if(typeof g>"u")return M;var C;if(n==="comma"&&x(g))S&&s&&(g=Ee.maybeMap(g,s)),C=[{value:g.length>0?g.join(",")||null:void 0}];else if(x(c))C=c;else{var K=Object.keys(g);C=p?K.sort(p):K}var B=u?String(r).replace(/\./g,"%2E"):String(r),O=o&&x(g)&&g.length===1?B+"[]":B;if(a&&x(g)&&g.length===0)return O+"[]";for(var N=0;N<C.length;++N){var b=C[N],W=typeof b=="object"&&b&&typeof b.value<"u"?b.value:g[b];if(!(l&&W===null)){var ne=f&&u?String(b).replace(/\./g,"%2E"):String(b),$e=x(g)?typeof n=="function"?n(O,ne):O:O+(f?"."+ne:"["+ne+"]");I.set(e,w);var ge=Qr();ge.set(nt,I),Zr(M,t(W,$e,n,o,a,i,l,u,n==="comma"&&S&&x(g)?null:s,c,p,f,d,y,h,S,P,ge))}}return M},Di=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=se.default;if(typeof e.format<"u"){if(!Ii.call(se.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=se.formatters[n],a=_.filter;(typeof e.filter=="function"||x(e.filter))&&(a=e.filter);var i;if(e.arrayFormat in Jr?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}},xi=function(t,e){var r=t,n=Di(e),o,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):x(n.filter)&&(a=n.filter,o=a);var i=[];if(typeof r!="object"||r===null)return"";var l=Jr[n.arrayFormat],u=l==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var s=Qr(),c=0;c<o.length;++c){var p=o[c],f=r[p];n.skipNulls&&f===null||Zr(i,Ni(f,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,s))}var d=i.join(n.delimiter),y=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),d.length>0?y+d:""},j=Yr,Ae=Object.prototype.hasOwnProperty,rr=Array.isArray,m={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:j.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},Fi=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},en=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},Mi="utf8=%26%2310003%3B",$i="utf8=%E2%9C%93",Li=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,s=r.charset;if(r.charsetSentinel)for(u=0;u<i.length;++u)i[u].indexOf("utf8=")===0&&(i[u]===$i?s="utf-8":i[u]===Mi&&(s="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("]="),f=p===-1?c.indexOf("="):p+1,d,y;if(f===-1?(d=r.decoder(c,m.decoder,s,"key"),y=r.strictNullHandling?null:""):(d=r.decoder(c.slice(0,f),m.decoder,s,"key"),d!==null&&(y=j.maybeMap(en(c.slice(f+1),r,rr(n[d])?n[d].length:0),function(S){return r.decoder(S,m.decoder,s,"value")}))),y&&r.interpretNumericEntities&&s==="iso-8859-1"&&(y=Fi(String(y))),c.indexOf("[]=")>-1&&(y=rr(y)?[y]:y),d!==null){var h=Ae.call(n,d);h&&r.duplicates==="combine"?n[d]=j.combine(n[d],y,r.arrayLimit,r.plainObjects):(!h||r.duplicates==="last")&&(n[d]=y)}}return n},Ui=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:en(e,r,o),l=t.length-1;l>=0;--l){var u,s=t[l];if(s==="[]"&&r.parseArrays)j.isOverflow(i)?u=i:u=r.allowEmptyArrays&&(i===""||r.strictNullHandling&&i===null)?[]:j.combine([],i,r.arrayLimit,r.plainObjects);else{u=r.plainObjects?{__proto__:null}:{};var c=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,p=r.decodeDotInKeys?c.replace(/%2E/g,"."):c,f=parseInt(p,10);!r.parseArrays&&p===""?u={0:i}:!isNaN(f)&&s!==p&&String(f)===p&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(u=[],u[f]=i):p!=="__proto__"&&(u[p]=i)}i=u}return i},Bi=function(e,r){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(r.depth<=0)return!r.plainObjects&&Ae.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&&Ae.call(Object.prototype,l)&&!r.allowPrototypes)return;u.push(l)}for(var s=0;(i=a.exec(n))!==null&&s<r.depth;){s+=1;var c=i[1].slice(1,-1);if(!r.plainObjects&&Ae.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},Gi=function(e,r,n,o){if(e){var a=Bi(e,n);if(a)return Ui(a,r,n,o)}},ji=function(e){if(!e)return m;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"?m.charset:e.charset,n=typeof e.duplicates>"u"?m.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:m.allowDots:!!e.allowDots;return{allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:m.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:m.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:m.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:m.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:m.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:m.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:m.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:m.decoder,delimiter:typeof e.delimiter=="string"||j.isRegExp(e.delimiter)?e.delimiter:m.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:m.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:m.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:m.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:m.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:m.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:m.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},Hi=function(t,e){var r=ji(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?Li(t,r):t,o=r.plainObjects?{__proto__:null}:{},a=Object.keys(n),i=0;i<a.length;++i){var l=a[i],u=Gi(l,n[l],r,typeof t=="string");o=j.merge(o,u,r)}return r.allowSparse===!0?o:j.compact(o)},ki=xi,Wi=Hi,Xi=_t,qi={formats:Xi,parse:Wi,stringify:ki};const Vi=_r(qi);async function Me(t,e={},r){const{cms:n="cms"}=e;return fetch(`${t.href}?${Vi.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 At(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 tn(t){return Array.isArray(t)&&t.length>0?t[0]:Array.isArray(t)?null:t}async function rn(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(At(`${t}${i}`,r)),u=await Me(l,r,o);if(!u.ok)return console.error(`[Error fetching preview data]: ${t} - status: ${u.statusText}`),[];const s=await u.json(),c=e.findIndex(p=>p.documentId===s.id);return c!==-1?(e[c]=s,[...e]):[s,...e]}return e}const zi=Object.freeze(Object.defineProperty({__proto__:null,createUrl:At,fetchCMS:Me,mergePreviewDocument:rn,spreadStrapiData:tn},Symbol.toStringTag,{value:"Module"}));async function nn(t,e={},r){const n=!!(e!=null&&e.previewMode),o=await Me(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?tn(a):a}:{status:404,data:[],error:"No data found"}}async function on(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,s=!0;try{do{const c=await Me(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),s=!!(c!=null&&c.hasNextPage),l++}while(s&&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 rn(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 Ki=Object.freeze(Object.defineProperty({__proto__:null,strapiCMSData:nn,vtexCMSData:on},Symbol.toStringTag,{value:"Module"}));async function Yi({contentType:t,documentId:e,versionId:r,storeId:n,CMS_PROJECT_NAME:o}){const a=e&&e.length?`/${e}`:"",i=r&&r.length?`?versionId=${r}`:"";return fetch(`https://${n}.myvtex.com/_v/cms/api/${o}/${t}${a}${i}`,{cache:"no-cache"})}async function an(t,e={},r){const{cms:n="vtex"}=e??{};try{const o=new URL(At(t,e));return n!=="vtex"?nn(o,e,r):on(t,o,e)}catch(o){return console.error(`[Fetch ContentType Error CMS ${n}]`,o),r?{status:400,data:null}:{status:200,data:[]}}}const Qi=Object.freeze(Object.defineProperty({__proto__:null,fetchContentType:an,getCMSContentType:Yi},Symbol.toStringTag,{value:"Module"}));exports.SearchPageScreening=Jn;exports.addLocale=Pr;exports.addPathPrefix=yt;exports.addSearchParamsFacets=xn;exports.catalogHelpers=zn;exports.cms=Qi;exports.cmsHelpers=Ki;exports.cmsUtils=zi;exports.constants=Ar;exports.detectDomainLocale=Rr;exports.disableSKU=ur;exports.fetchContentType=an;exports.fetchVtex=dt;exports.fetchVtexWithAbortController=Kn;exports.filterNonCategorySelected=gr;exports.filterNonRootFacets=mr;exports.formatPriceToCurrency=Pe;exports.formattedFacets=Dn;exports.formattedSimilars=br;exports.freightParsePrice=nr;exports.getColorAndSizeFromSkuName=ar;exports.getDefaultExportFromCjs=_r;exports.getDiscountPercent=or;exports.getFacetsActiveSearchParams=Fn;exports.getFirstImages=dr;exports.getProductNameWithoutSku=lr;exports.getSKUName=ir;exports.getSkuInfos=cr;exports.getThumbImage=sr;exports.getValidOffer=fr;exports.marketingdata=Qn;exports.navigateToSearchPage=Ln;exports.normalizeLocalePath=Or;exports.parsePath=we;exports.pathHasPrefix=pt;exports.postMediaData=Ir;exports.productHelpers=Rn;exports.removeTrailingSlash=Er;exports.resizingImg=pr;exports.responsive=le;exports.search=Un;exports.searchHelpers=Sr;exports.selectedFacets=st;exports.setVideoPlay=vr;exports.splitNameAndSizeFromFullName=ft;exports.updatedResizedImg=yr;