@soma-vertical-web/multi-lib-sacurai 0.0.2 → 0.0.3

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.
@@ -0,0 +1,4 @@
1
+ "use strict";const w=require("react/jsx-runtime"),$r=require("@soma-vertical-web/core-components"),me=(t,e=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:e?2:0}).format(t),Nt=({valueInCents:t,hasFree:e,freeTaxMessage:r})=>t===0?e?r:me(0):me(t/100),Dt=(t,e)=>{const n=(t-e)*100/t;return Math.floor(n)},Xe=(t,e)=>{const[r,n]=t.split(e);return{name:r.trim(),size:n?n.trim():""}},Mt=(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()}},jt=(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},Bt=(t,e)=>t.replace(e,"").trim(),Ir=t=>t.replace(/\//g,""),Ut=({items:t,NAME_SPLIT_SYMBOL:e})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(i,c)=>{var s;c&&(c.sellerId=i.sellerId,c.sellerName=i.sellerName,c.available=!0,c.isSellerDefault=i.sellerDefault);const{Price:l,ListPrice:u,PaymentOptions:{installmentOptions:f}}=i.commertialOffer;r.price=l,r.listPrice=u;const p=(s=f==null?void 0:f[0])==null?void 0:s.installments;if(p){const{count:v,value:d}=p[p.length-1];r.installments={count:v,value:d/100}}};let o=!0;const a=t.reduce((i,c)=>{var f;const l={name:c.name,sku:c.itemId,value:((f=c.Tamanho)==null?void 0:f[0])??Xe(c.nameComplete??c.name,e).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},u=c.sellers.filter(p=>(p.sellerDefault&&p.commertialOffer.IsAvailable&&(l.available=!0,n(p,l)),p.commertialOffer.IsAvailable));return!l.isSellerDefault&&u.length>0&&(l.available=!0,n(u[0],{...l,sellerId:u[0].sellerId,sellerName:u[0].sellerName})),l.available===!1&&(o=!1),i.push(l),i},[]);return{...r,sizes:a,allSizesAvailable:o}},Lt=t=>t?!t.offers.offers.find(({quantity:e=0})=>e>0):!1,zt=(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)},Wt=({images:t,TEXTURE_IMAGE:e})=>t.find(r=>e.includes(r.imageLabel))??t[0],qt=(t,e)=>{const r=/\/ids\/(\d+)\//,n=t.match(r);return n?t.replace(`/${n[1]}/`,`/${n[1]}-${e.width}-${e.height}/`):t},Gt=(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},Ht=({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},Rr=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},Kt=(t,e,r)=>{e&&(t?(e.getAttribute("src")||(e.src=r??""),e.play()):e.pause())},kr=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Lt,formatPriceToCurrency:me,freightParsePrice:Nt,getAspectRatio:Rr,getColorAndSizeFromSkuName:Mt,getDiscountPercent:Dt,getFirstImages:Ht,getProductNameWithoutSku:Bt,getSKUName:jt,getSkuInfos:Ut,getThumbImage:Wt,getValidOffer:zt,removeSlashes:Ir,resizingImg:qt,setVideoPlay:Kt,splitNameAndSizeFromFullName:Xe,updatedResizedImg:Gt},Symbol.toStringTag,{value:"Module"})),it="fuzzy",lt="operator",Tr=t=>({isDepartment:t!=null&&t.length?t[0].key==="category-1":!1}),Cr=(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})},Vt=(t,e)=>e?t==="category-1":!1,Fr=t=>t.key==="operator"&&(t.value==="and"||t.value==="or"),Nr=t=>t.type==="TEXT",Dr=t=>t.key==="fuzzy"&&(t.value==="0"||t.value==="1"||t.value==="auto"),Mr=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))}},jr=({key:t,values:e})=>({__typename:"FacetRange",key:t,values:e}),Br=(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||!Vt(i.key,o)).map(i=>Nr(i)?Mr(i):jr(i))},Ur=(t,e)=>{const r=t.find(({key:o})=>o===it)??null,n=t.find(({key:o})=>o===lt)??null;r&&Dr(r)&&e.append(it,r.value),n&&Fr(n)&&e.append(lt,n.value)},Lr=t=>t.map(e=>{const[r,n]=e.split("/");return{key:r,value:n}}),zr=(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}=Tr(n);return n==null?void 0:n.filter(a=>!Vt(a.key,o))},Wr=({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:Lr(r),term:o,base:o?"":t,page:a}},qr=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},Gr=(t,e,r=24,n=1,o)=>{const a=`/search?query=${e??""}&count=${r}&page=${n}${o?`&sort=${o.replace("_",":")}`:""}`;t.push(a)};var ct=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Hr(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}const Kr=(t="")=>t.charAt(0).toUpperCase()+t.slice(1),ft=(t,e=" ")=>!t||typeof t=="string"&&t.length===0?t:(Array.isArray(t)?t:t.split("-")).map(Kr).join(e),Vr=({canonical:t,seo:e,slug:r})=>{const n=Array.isArray(r)?r.join(", "):r;return{id:0,Title:`${Array.isArray(r)?r.map(a=>ft(a)).join(","):ft(r)} - ${e.title}`,MetaTagDescription:e.description,name:n,hasChildren:!1,url:t,children:[]}},Qr=({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]:[]}}),Jr=({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},Xr=t=>{t instanceof Error?(console.error(`[ERROR CATEGORY INFO]: ${t.message}`),console.error(t.stack)):console.error("[ERROR CATEGORY INFO]: Unknown error",t)},Yr=new Set(["brand","category","department","subcategory","collection","cluster"]),Zr=t=>typeof(t==null?void 0:t.pageType)=="string"&&Yr.has(t==null?void 0:t.pageType.toLowerCase()),en=t=>({collection:t.Coleção,categoryId:t.categoryId,current_collection:t["Coleção Atual"],items:t.items}),Jt=(t,e)=>t.reduce((r,n)=>{if(n.items.filter(i=>i.sellers.find(c=>c.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},[]),tn=Object.freeze(Object.defineProperty({__proto__:null,createEmptySeoCategory:Vr,createSeoCategory:Qr,findCategory:Jr,formattedSimilars:Jt,isCollectionPageType:Zr,notFindCategoryError:Xr,responseAdapter:en},Symbol.toStringTag,{value:"Module"})),rn=async({productId:t,TEXTURE_IMAGE:e,apiUrl:r})=>{try{const n=await fetch(`${r}/api/catalog_system/pub/products/crossselling/similars/${t}`,{priority:"low",headers:{"X-VTEX-API-AppKey":process.env.vtexAppKey??"","X-VTEX-API-AppToken":process.env.vtexAppToken??""}});if(!n.ok)throw new Error("Erro ao buscar similares.");const o=await n.json();return Jt(o,e)}catch(n){return console.error(n),[]}},ee={"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"},nn="_header_9xxjk_57",on="_actions_9xxjk_131",an="_breadcrumb_9xxjk_142",ln="_credits_9xxjk_157",cn="_pdplinks_9xxjk_185",fn="_similars_9xxjk_212",sn="_sizes_9xxjk_251",un="_measurementTable_9xxjk_267",pn="_measurementHead_9xxjk_280",yn="_measurementRows_9xxjk_285",dn="_measurementRowsTitle_9xxjk_302",vn="_measurementRowsText_9xxjk_314",mn="_measurementImage_9xxjk_325",gn="_measurementImageContainer_9xxjk_328",hn="_measurementContent_9xxjk_337",_n="_measurementTitle_9xxjk_341",bn="_measurementClose_9xxjk_352",Sn="_productref_9xxjk_417",wn="_slideOut_9xxjk_1",xn="_slideIn_9xxjk_1",An="_content_9xxjk_397",On="_pdp_9xxjk_185",Pn="_divider_9xxjk_575",En={"bottom-navigation":"_bottom-navigation_9xxjk_1","bottom-navigation__credits-modifier":"_bottom-navigation__credits-modifier_9xxjk_18","bottom-navigation__header":"_bottom-navigation__header_9xxjk_21","bottom-navigation__header-content":"_bottom-navigation__header-content_9xxjk_26","golden-tag-content":"_golden-tag-content_9xxjk_45","bottom-navigation__price-and-promo":"_bottom-navigation__price-and-promo_9xxjk_48",header:nn,"golden-tag":"_golden-tag_9xxjk_45","golden-tag-video":"_golden-tag-video_9xxjk_86","golden-tag-content-text":"_golden-tag-content-text_9xxjk_105",actions:on,"add-to-cart":"_add-to-cart_9xxjk_138",breadcrumb:an,"breadcrumb--active":"_breadcrumb--active_9xxjk_147",credits:ln,"gallery-carousel-modifier":"_gallery-carousel-modifier_9xxjk_162",pdplinks:cn,"links-wrapper":"_links-wrapper_9xxjk_195",similars:fn,"similars-info":"_similars-info_9xxjk_224","toggle-style-modifier":"_toggle-style-modifier_9xxjk_233","accessibility-info":"_accessibility-info_9xxjk_237",sizes:sn,"price-wrapper":"_price-wrapper_9xxjk_263",measurementTable:un,measurementHead:pn,measurementRows:yn,measurementRowsTitle:dn,measurementRowsText:vn,measurementImage:mn,measurementImageContainer:gn,measurementContent:hn,measurementTitle:_n,measurementClose:bn,"tabs-root-modifier":"_tabs-root-modifier_9xxjk_358","tabs-list-modifier":"_tabs-list-modifier_9xxjk_376","tabs-item-modifier":"_tabs-item-modifier_9xxjk_393","content-wrapper":"_content-wrapper_9xxjk_397",productref:Sn,"tabs-panel":"_tabs-panel_9xxjk_428","tabs-panel-exit":"_tabs-panel-exit_9xxjk_434",slideOut:wn,"tabs-panel-enter":"_tabs-panel-enter_9xxjk_438",slideIn:xn,content:An,pdp:On,"pdp-main":"_pdp-main_9xxjk_496","pdp-main__gallery-wrapper":"_pdp-main__gallery-wrapper_9xxjk_501","pdp-main__info":"_pdp-main__info_9xxjk_518","pdp-main__info-main-content":"_pdp-main__info-main-content_9xxjk_533","pdp-main__info-subsection":"_pdp-main__info-subsection_9xxjk_533","subsection-product-info":"_subsection-product-info_9xxjk_544","subsection-similars":"_subsection-similars_9xxjk_547","subsection-sizes":"_subsection-sizes_9xxjk_550","subsection-actions":"_subsection-actions_9xxjk_553","pdp-main__info-secondary-content":"_pdp-main__info-secondary-content_9xxjk_557","sections-title":"_sections-title_9xxjk_563",divider:Pn,"breadcrumbs-desktop":"_breadcrumbs-desktop_9xxjk_580","breadcrumbs-mobile":"_breadcrumbs-mobile_9xxjk_589"},$n=({children:t,data:e,SectionZone:r,className:n})=>{var f,p;const o=((f=e==null?void 0:e.filter(s=>{var v,d;return((d=(v=s.config)==null?void 0:v.responsive)==null?void 0:d.deviceType)==="mobile"})[0])==null?void 0:f.sections)||[],a=((p=e==null?void 0:e.filter(s=>{var v,d;return((d=(v=s.config)==null?void 0:v.responsive)==null?void 0:d.deviceType)==="desktop"})[0])==null?void 0:p.sections)||[],i=o.slice(0,1),c=o.slice(1,o.length),l=a.slice(0,1),u=a.slice(1,a.length);return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:n,children:[w.jsx("div",{className:ee["responsive-mobile-flex"],children:w.jsx(r,{data:i??[]})}),w.jsx("div",{className:ee["responsive-desktop-flex"],children:w.jsx(r,{data:l??[]})})]}),t,w.jsx("div",{className:ee["responsive-mobile-flex"],children:w.jsx(r,{data:c??[]})}),w.jsx("div",{className:ee["responsive-desktop-flex"],children:w.jsx(r,{data:u??[]})}),w.jsx($r.Utils.Divider,{})]})};var J=TypeError;const In={},Rn=Object.freeze(Object.defineProperty({__proto__:null,default:In},Symbol.toStringTag,{value:"Module"})),kn=Hr(Rn);var Ye=typeof Map=="function"&&Map.prototype,$e=Object.getOwnPropertyDescriptor&&Ye?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ge=Ye&&$e&&typeof $e.get=="function"?$e.get:null,st=Ye&&Map.prototype.forEach,Ze=typeof Set=="function"&&Set.prototype,Ie=Object.getOwnPropertyDescriptor&&Ze?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,he=Ze&&Ie&&typeof Ie.get=="function"?Ie.get:null,ut=Ze&&Set.prototype.forEach,Tn=typeof WeakMap=="function"&&WeakMap.prototype,te=Tn?WeakMap.prototype.has:null,Cn=typeof WeakSet=="function"&&WeakSet.prototype,re=Cn?WeakSet.prototype.has:null,Fn=typeof WeakRef=="function"&&WeakRef.prototype,pt=Fn?WeakRef.prototype.deref:null,Nn=Boolean.prototype.valueOf,Dn=Object.prototype.toString,Mn=Function.prototype.toString,jn=String.prototype.match,et=String.prototype.slice,F=String.prototype.replace,Bn=String.prototype.toUpperCase,yt=String.prototype.toLowerCase,Xt=RegExp.prototype.test,dt=Array.prototype.concat,P=Array.prototype.join,Un=Array.prototype.slice,vt=Math.floor,Ge=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Re=Object.getOwnPropertySymbols,He=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,V=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ne=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===V||!0)?Symbol.toStringTag:null,Yt=Object.prototype.propertyIsEnumerable,mt=(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||Xt.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-vt(-t):vt(t);if(n!==t){var o=String(n),a=et.call(e,o.length+1);return F.call(o,r,"$&_")+"."+F.call(F.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return F.call(e,r,"$&_")}var Ke=kn,ht=Ke.custom,_t=tr(ht)?ht:null,Zt={__proto__:null,double:'"',single:"'"},Ln={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Se=function t(e,r,n,o){var a=r||{};if($(a,"quoteStyle")&&!$(Zt,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if($(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=$(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($(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($(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=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 nr(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return c?gt(e,l):l}if(typeof e=="bigint"){var u=String(e)+"n";return c?gt(e,u):u}var f=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=f&&f>0&&typeof e=="object")return Ve(e)?"[Array]":"[Object]";var p=ao(a,n);if(typeof o>"u")o=[];else if(rr(o,e)>=0)return"[Circular]";function s(x,C,E){if(C&&(o=Un.call(o),o.push(C)),E){var Y={depth:a.depth};return $(a,"quoteStyle")&&(Y.quoteStyle=a.quoteStyle),t(x,Y,n+1,o)}return t(x,a,n+1,o)}if(typeof e=="function"&&!bt(e)){var v=Jn(e),d=ue(e,s);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(d.length>0?" { "+P.call(d,", ")+" }":"")}if(tr(e)){var b=V?F.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):He.call(e);return typeof e=="object"&&!V?Z(b):b}if(ro(e)){for(var S="<"+yt.call(String(e.nodeName)),I=e.attributes||[],R=0;R<I.length;R++)S+=" "+I[R].name+"="+er(zn(I[R].value),"double",a);return S+=">",e.childNodes&&e.childNodes.length&&(S+="..."),S+="</"+yt.call(String(e.nodeName))+">",S}if(Ve(e)){if(e.length===0)return"[]";var m=ue(e,s);return p&&!oo(m)?"["+Qe(m,p)+"]":"[ "+P.call(m,", ")+" ]"}if(qn(e)){var k=ue(e,s);return!("cause"in Error.prototype)&&"cause"in e&&!Yt.call(e,"cause")?"{ ["+String(e)+"] "+P.call(dt.call("[cause]: "+s(e.cause),k),", ")+" }":k.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+P.call(k,", ")+" }"}if(typeof e=="object"&&i){if(_t&&typeof e[_t]=="function"&&Ke)return Ke(e,{depth:f-n});if(i!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Xn(e)){var D=[];return st&&st.call(e,function(x,C){D.push(s(C,e,!0)+" => "+s(x,e))}),St("Map",ge.call(e),D,p)}if(eo(e)){var X=[];return ut&&ut.call(e,function(x){X.push(s(x,e))}),St("Set",he.call(e),X,p)}if(Yn(e))return ke("WeakMap");if(to(e))return ke("WeakSet");if(Zn(e))return ke("WeakRef");if(Hn(e))return Z(s(Number(e)));if(Vn(e))return Z(s(Ge.call(e)));if(Kn(e))return Z(Nn.call(e));if(Gn(e))return Z(s(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof ct<"u"&&e===ct)return"{ [object globalThis] }";if(!Wn(e)&&!bt(e)){var z=ue(e,s),fe=mt?mt(e)===Object.prototype:e instanceof Object||e.constructor===Object,M=e instanceof Object?"":"null prototype",T=!fe&&ne&&Object(e)===e&&ne in e?et.call(N(e),8,-1):M?"Object":"",se=fe||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",W=se+(T||M?"["+P.call(dt.call([],T||[],M||[]),": ")+"] ":"");return z.length===0?W+"{}":p?W+"{"+Qe(z,p)+"}":W+"{ "+P.call(z,", ")+" }"}return String(e)};function er(t,e,r){var n=r.quoteStyle||e,o=Zt[n];return o+t+o}function zn(t){return F.call(String(t),/"/g,"&quot;")}function L(t){return!ne||!(typeof t=="object"&&(ne in t||typeof t[ne]<"u"))}function Ve(t){return N(t)==="[object Array]"&&L(t)}function Wn(t){return N(t)==="[object Date]"&&L(t)}function bt(t){return N(t)==="[object RegExp]"&&L(t)}function qn(t){return N(t)==="[object Error]"&&L(t)}function Gn(t){return N(t)==="[object String]"&&L(t)}function Hn(t){return N(t)==="[object Number]"&&L(t)}function Kn(t){return N(t)==="[object Boolean]"&&L(t)}function tr(t){if(V)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!He)return!1;try{return He.call(t),!0}catch{}return!1}function Vn(t){if(!t||typeof t!="object"||!Ge)return!1;try{return Ge.call(t),!0}catch{}return!1}var Qn=Object.prototype.hasOwnProperty||function(t){return t in this};function $(t,e){return Qn.call(t,e)}function N(t){return Dn.call(t)}function Jn(t){if(t.name)return t.name;var e=jn.call(Mn.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function rr(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 Xn(t){if(!ge||!t||typeof t!="object")return!1;try{ge.call(t);try{he.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Yn(t){if(!te||!t||typeof t!="object")return!1;try{te.call(t,te);try{re.call(t,re)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Zn(t){if(!pt||!t||typeof t!="object")return!1;try{return pt.call(t),!0}catch{}return!1}function eo(t){if(!he||!t||typeof t!="object")return!1;try{he.call(t);try{ge.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function to(t){if(!re||!t||typeof t!="object")return!1;try{re.call(t,re);try{te.call(t,te)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function ro(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function nr(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return nr(et.call(t,0,e.maxStringLength),e)+n}var o=Ln[e.quoteStyle||"single"];o.lastIndex=0;var a=F.call(F.call(t,o,"\\$1"),/[\x00-\x1f]/g,no);return er(a,"single",e)}function no(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":"")+Bn.call(e.toString(16))}function Z(t){return"Object("+t+")"}function ke(t){return t+" { ? }"}function St(t,e,r,n){var o=n?Qe(r,n):P.call(r,", ");return t+" ("+e+") {"+o+"}"}function oo(t){for(var e=0;e<t.length;e++)if(rr(t[e],`
2
+ `)>=0)return!1;return!0}function ao(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=P.call(Array(t.indent+1)," ");else return null;return{base:r,prev:P.call(Array(e+1),r)}}function Qe(t,e){if(t.length===0)return"";var r=`
3
+ `+e.prev+e.base;return r+P.call(t,","+r)+`
4
+ `+e.prev}function ue(t,e){var r=Ve(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=$(t,o)?e(t[o],t):""}var a=typeof Re=="function"?Re(t):[],i;if(V){i={};for(var c=0;c<a.length;c++)i["$"+a[c]]=a[c]}for(var l in t)$(t,l)&&(r&&String(Number(l))===l&&l<t.length||V&&i["$"+l]instanceof Symbol||(Xt.call(/[^\w$]/,l)?n.push(e(l,t)+": "+e(t[l],t)):n.push(l+": "+e(t[l],t))));if(typeof Re=="function")for(var u=0;u<a.length;u++)Yt.call(t,a[u])&&n.push("["+e(a[u])+"]: "+e(t[a[u]],t));return n}var io=Se,lo=J,we=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},co=function(t,e){if(t){var r=we(t,e);return r&&r.value}},fo=function(t,e,r){var n=we(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},so=function(t,e){return t?!!we(t,e):!1},uo=function(t,e){if(t)return we(t,e,!0)},po=function(){var e,r={assert:function(n){if(!r.has(n))throw new lo("Side channel does not contain "+io(n))},delete:function(n){var o=e&&e.next,a=uo(e,n);return a&&o&&o===a&&(e=void 0),!!a},get:function(n){return co(e,n)},has:function(n){return so(e,n)},set:function(n,o){e||(e={next:void 0}),fo(e,n,o)}};return r},or=Object,yo=Error,vo=EvalError,mo=RangeError,go=ReferenceError,ho=SyntaxError,_o=URIError,bo=Math.abs,So=Math.floor,wo=Math.max,xo=Math.min,Ao=Math.pow,Oo=Math.round,Po=Number.isNaN||function(e){return e!==e},Eo=Po,$o=function(e){return Eo(e)||e===0?e:e<0?-1:1},Io=Object.getOwnPropertyDescriptor,ye=Io;if(ye)try{ye([],"length")}catch{ye=null}var ar=ye,de=Object.defineProperty||!1;if(de)try{de({},"a",{value:1})}catch{de=!1}var Ro=de,Te,wt;function ko(){return wt||(wt=1,Te=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 c=Object.getOwnPropertyDescriptor(e,r);if(c.value!==o||c.enumerable!==!0)return!1}return!0}),Te}var Ce,xt;function To(){if(xt)return Ce;xt=1;var t=typeof Symbol<"u"&&Symbol,e=ko();return Ce=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Ce}var Fe,At;function ir(){return At||(At=1,Fe=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Fe}var Ne,Ot;function lr(){if(Ot)return Ne;Ot=1;var t=or;return Ne=t.getPrototypeOf||null,Ne}var Co="Function.prototype.bind called on incompatible ",Fo=Object.prototype.toString,No=Math.max,Do="[object Function]",Pt=function(e,r){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var a=0;a<r.length;a+=1)n[a+e.length]=r[a];return n},Mo=function(e,r){for(var n=[],o=r,a=0;o<e.length;o+=1,a+=1)n[a]=e[o];return n},jo=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r},Bo=function(e){var r=this;if(typeof r!="function"||Fo.apply(r)!==Do)throw new TypeError(Co+r);for(var n=Mo(arguments,1),o,a=function(){if(this instanceof o){var f=r.apply(this,Pt(n,arguments));return Object(f)===f?f:this}return r.apply(e,Pt(n,arguments))},i=No(0,r.length-n.length),c=[],l=0;l<i;l++)c[l]="$"+l;if(o=Function("binder","return function ("+jo(c,",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var u=function(){};u.prototype=r.prototype,o.prototype=new u,u.prototype=null}return o},Uo=Bo,xe=Function.prototype.bind||Uo,tt=Function.prototype.call,cr=Function.prototype.apply,Lo=typeof Reflect<"u"&&Reflect&&Reflect.apply,zo=xe,Wo=cr,qo=tt,Go=Lo,Ho=Go||zo.call(qo,Wo),Ko=xe,Vo=J,Qo=tt,Jo=Ho,fr=function(e){if(e.length<1||typeof e[0]!="function")throw new Vo("a function is required");return Jo(Ko,Qo,e)},De,Et;function Xo(){if(Et)return De;Et=1;var t=fr,e=ar,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 De=n&&typeof n.get=="function"?t([n.get]):typeof a=="function"?function(c){return a(c==null?c:o(c))}:!1,De}var Me,$t;function Yo(){if($t)return Me;$t=1;var t=ir(),e=lr(),r=Xo();return Me=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,Me}var je,It;function Zo(){if(It)return je;It=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=xe;return je=r.call(t,e),je}var y,ea=or,ta=yo,ra=vo,na=mo,oa=go,Q=ho,K=J,aa=_o,ia=bo,la=So,ca=wo,fa=xo,sa=Ao,ua=Oo,pa=$o,sr=Function,Be=function(t){try{return sr('"use strict"; return ('+t+").constructor;")()}catch{}},ae=ar,ya=Ro,Ue=function(){throw new K},da=ae?function(){try{return arguments.callee,Ue}catch{try{return ae(arguments,"callee").get}catch{return Ue}}}():Ue,q=To()(),_=Yo(),va=lr(),ma=ir(),ur=cr,ie=tt,H={},ga=typeof Uint8Array>"u"||!_?y:_(Uint8Array),B={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?y:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?y:ArrayBuffer,"%ArrayIteratorPrototype%":q&&_?_([][Symbol.iterator]()):y,"%AsyncFromSyncIteratorPrototype%":y,"%AsyncFunction%":H,"%AsyncGenerator%":H,"%AsyncGeneratorFunction%":H,"%AsyncIteratorPrototype%":H,"%Atomics%":typeof Atomics>"u"?y:Atomics,"%BigInt%":typeof BigInt>"u"?y:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?y:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?y:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?y:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ta,"%eval%":eval,"%EvalError%":ra,"%Float16Array%":typeof Float16Array>"u"?y:Float16Array,"%Float32Array%":typeof Float32Array>"u"?y:Float32Array,"%Float64Array%":typeof Float64Array>"u"?y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?y:FinalizationRegistry,"%Function%":sr,"%GeneratorFunction%":H,"%Int8Array%":typeof Int8Array>"u"?y:Int8Array,"%Int16Array%":typeof Int16Array>"u"?y:Int16Array,"%Int32Array%":typeof Int32Array>"u"?y:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":q&&_?_(_([][Symbol.iterator]())):y,"%JSON%":typeof JSON=="object"?JSON:y,"%Map%":typeof Map>"u"?y:Map,"%MapIteratorPrototype%":typeof Map>"u"||!q||!_?y:_(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":ea,"%Object.getOwnPropertyDescriptor%":ae,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?y:Promise,"%Proxy%":typeof Proxy>"u"?y:Proxy,"%RangeError%":na,"%ReferenceError%":oa,"%Reflect%":typeof Reflect>"u"?y:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?y:Set,"%SetIteratorPrototype%":typeof Set>"u"||!q||!_?y:_(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?y:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":q&&_?_(""[Symbol.iterator]()):y,"%Symbol%":q?Symbol:y,"%SyntaxError%":Q,"%ThrowTypeError%":da,"%TypedArray%":ga,"%TypeError%":K,"%Uint8Array%":typeof Uint8Array>"u"?y:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?y:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?y:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?y:Uint32Array,"%URIError%":aa,"%WeakMap%":typeof WeakMap>"u"?y:WeakMap,"%WeakRef%":typeof WeakRef>"u"?y:WeakRef,"%WeakSet%":typeof WeakSet>"u"?y:WeakSet,"%Function.prototype.call%":ie,"%Function.prototype.apply%":ur,"%Object.defineProperty%":ya,"%Object.getPrototypeOf%":va,"%Math.abs%":ia,"%Math.floor%":la,"%Math.max%":ca,"%Math.min%":fa,"%Math.pow%":sa,"%Math.round%":ua,"%Math.sign%":pa,"%Reflect.getPrototypeOf%":ma};if(_)try{null.error}catch(t){var ha=_(_(t));B["%Error.prototype%"]=ha}var _a=function t(e){var r;if(e==="%AsyncFunction%")r=Be("async function () {}");else if(e==="%GeneratorFunction%")r=Be("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Be("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&_&&(r=_(o.prototype))}return B[e]=r,r},Rt={__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"]},le=xe,_e=Zo(),ba=le.call(ie,Array.prototype.concat),Sa=le.call(ur,Array.prototype.splice),kt=le.call(ie,String.prototype.replace),be=le.call(ie,String.prototype.slice),wa=le.call(ie,RegExp.prototype.exec),xa=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Aa=/\\(\\)?/g,Oa=function(e){var r=be(e,0,1),n=be(e,-1);if(r==="%"&&n!=="%")throw new Q("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Q("invalid intrinsic syntax, expected opening `%`");var o=[];return kt(e,xa,function(a,i,c,l){o[o.length]=c?kt(l,Aa,"$1"):i||a}),o},Pa=function(e,r){var n=e,o;if(_e(Rt,n)&&(o=Rt[n],n="%"+o[0]+"%"),_e(B,n)){var a=B[n];if(a===H&&(a=_a(n)),typeof a>"u"&&!r)throw new K("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new Q("intrinsic "+e+" does not exist!")},rt=function(e,r){if(typeof e!="string"||e.length===0)throw new K("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new K('"allowMissing" argument must be a boolean');if(wa(/^%?[^%]*%?$/,e)===null)throw new Q("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Oa(e),o=n.length>0?n[0]:"",a=Pa("%"+o+"%",r),i=a.name,c=a.value,l=!1,u=a.alias;u&&(o=u[0],Sa(n,ba([0,1],u)));for(var f=1,p=!0;f<n.length;f+=1){var s=n[f],v=be(s,0,1),d=be(s,-1);if((v==='"'||v==="'"||v==="`"||d==='"'||d==="'"||d==="`")&&v!==d)throw new Q("property names with quotes must have matching quotes");if((s==="constructor"||!p)&&(l=!0),o+="."+s,i="%"+o+"%",_e(B,i))c=B[i];else if(c!=null){if(!(s in c)){if(!r)throw new K("base intrinsic for "+e+" exists, but the property is not available.");return}if(ae&&f+1>=n.length){var b=ae(c,s);p=!!b,p&&"get"in b&&!("originalValue"in b.get)?c=b.get:c=c[s]}else p=_e(c,s),c=c[s];p&&!l&&(B[i]=c)}}return c},pr=rt,yr=fr,Ea=yr([pr("%String.prototype.indexOf%")]),dr=function(e,r){var n=pr(e,!!r);return typeof n=="function"&&Ea(e,".prototype.")>-1?yr([n]):n},$a=rt,ce=dr,Ia=Se,Ra=J,Tt=$a("%Map%",!0),ka=ce("Map.prototype.get",!0),Ta=ce("Map.prototype.set",!0),Ca=ce("Map.prototype.has",!0),Fa=ce("Map.prototype.delete",!0),Na=ce("Map.prototype.size",!0),vr=!!Tt&&function(){var e,r={assert:function(n){if(!r.has(n))throw new Ra("Side channel does not contain "+Ia(n))},delete:function(n){if(e){var o=Fa(e,n);return Na(e)===0&&(e=void 0),o}return!1},get:function(n){if(e)return ka(e,n)},has:function(n){return e?Ca(e,n):!1},set:function(n,o){e||(e=new Tt),Ta(e,n,o)}};return r},Da=rt,Ae=dr,Ma=Se,pe=vr,ja=J,G=Da("%WeakMap%",!0),Ba=Ae("WeakMap.prototype.get",!0),Ua=Ae("WeakMap.prototype.set",!0),La=Ae("WeakMap.prototype.has",!0),za=Ae("WeakMap.prototype.delete",!0),Wa=G?function(){var e,r,n={assert:function(o){if(!n.has(o))throw new ja("Side channel does not contain "+Ma(o))},delete:function(o){if(G&&o&&(typeof o=="object"||typeof o=="function")){if(e)return za(e,o)}else if(pe&&r)return r.delete(o);return!1},get:function(o){return G&&o&&(typeof o=="object"||typeof o=="function")&&e?Ba(e,o):r&&r.get(o)},has:function(o){return G&&o&&(typeof o=="object"||typeof o=="function")&&e?La(e,o):!!r&&r.has(o)},set:function(o,a){G&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new G),Ua(e,o,a)):pe&&(r||(r=pe()),r.set(o,a))}};return n}:pe,qa=J,Ga=Se,Ha=po,Ka=vr,Va=Wa,Qa=Va||Ka||Ha,Ja=function(){var e,r={assert:function(n){if(!r.has(n))throw new qa("Side channel does not contain "+Ga(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=Qa()),e.set(n,o)}};return r},Xa=String.prototype.replace,Ya=/%20/g,Le={RFC1738:"RFC1738",RFC3986:"RFC3986"},nt={default:Le.RFC3986,formatters:{RFC1738:function(t){return Xa.call(t,Ya,"+")},RFC3986:function(t){return String(t)}},RFC1738:Le.RFC1738,RFC3986:Le.RFC3986},Za=nt,ze=Object.prototype.hasOwnProperty,j=Array.isArray,A=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),ei=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(j(n)){for(var o=[],a=0;a<n.length;++a)typeof n[a]<"u"&&o.push(n[a]);r.obj[r.prop]=o}}},mr=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},ti=function t(e,r,n){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(j(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!ze.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var o=e;return j(e)&&!j(r)&&(o=mr(e,n)),j(e)&&j(r)?(r.forEach(function(a,i){if(ze.call(e,i)){var c=e[i];c&&typeof c=="object"&&a&&typeof a=="object"?e[i]=t(c,a,n):e.push(a)}else e[i]=a}),e):Object.keys(r).reduce(function(a,i){var c=r[i];return ze.call(a,i)?a[i]=t(a[i],c,n):a[i]=c,a},o)},ri=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},ni=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}},We=1024,oi=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(v){return"%26%23"+parseInt(v.slice(2),16)+"%3B"});for(var c="",l=0;l<i.length;l+=We){for(var u=i.length>=We?i.slice(l,l+We):i,f=[],p=0;p<u.length;++p){var s=u.charCodeAt(p);if(s===45||s===46||s===95||s===126||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||a===Za.RFC1738&&(s===40||s===41)){f[f.length]=u.charAt(p);continue}if(s<128){f[f.length]=A[s];continue}if(s<2048){f[f.length]=A[192|s>>6]+A[128|s&63];continue}if(s<55296||s>=57344){f[f.length]=A[224|s>>12]+A[128|s>>6&63]+A[128|s&63];continue}p+=1,s=65536+((s&1023)<<10|u.charCodeAt(p)&1023),f[f.length]=A[240|s>>18]+A[128|s>>12&63]+A[128|s>>6&63]+A[128|s&63]}c+=f.join("")}return c},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],c=Object.keys(i),l=0;l<c.length;++l){var u=c[l],f=i[u];typeof f=="object"&&f!==null&&n.indexOf(f)===-1&&(r.push({obj:i,prop:u}),n.push(f))}return ei(r),e},ii=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},li=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},ci=function(e,r){return[].concat(e,r)},fi=function(e,r){if(j(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(r(e[o]));return n}return r(e)},gr={arrayToObject:mr,assign:ri,combine:ci,compact:ai,decode:ni,encode:oi,isBuffer:li,isRegExp:ii,maybeMap:fi,merge:ti},hr=Ja,ve=gr,oe=nt,si=Object.prototype.hasOwnProperty,_r={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},O=Array.isArray,ui=Array.prototype.push,br=function(t,e){ui.apply(t,O(e)?e:[e])},pi=Date.prototype.toISOString,Ct=oe.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:ve.encode,encodeValuesOnly:!1,filter:void 0,format:Ct,formatter:oe.formatters[Ct],indices:!1,serializeDate:function(e){return pi.call(e)},skipNulls:!1,strictNullHandling:!1},yi=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},qe={},di=function t(e,r,n,o,a,i,c,l,u,f,p,s,v,d,b,S,I,R){for(var m=e,k=R,D=0,X=!1;(k=k.get(qe))!==void 0&&!X;){var z=k.get(e);if(D+=1,typeof z<"u"){if(z===D)throw new RangeError("Cyclic object value");X=!0}typeof k.get(qe)>"u"&&(D=0)}if(typeof f=="function"?m=f(r,m):m instanceof Date?m=v(m):n==="comma"&&O(m)&&(m=ve.maybeMap(m,function(Ee){return Ee instanceof Date?v(Ee):Ee})),m===null){if(i)return u&&!S?u(r,h.encoder,I,"key",d):r;m=""}if(yi(m)||ve.isBuffer(m)){if(u){var fe=S?r:u(r,h.encoder,I,"key",d);return[b(fe)+"="+b(u(m,h.encoder,I,"value",d))]}return[b(r)+"="+b(String(m))]}var M=[];if(typeof m>"u")return M;var T;if(n==="comma"&&O(m))S&&u&&(m=ve.maybeMap(m,u)),T=[{value:m.length>0?m.join(",")||null:void 0}];else if(O(f))T=f;else{var se=Object.keys(m);T=p?se.sort(p):se}var W=l?String(r).replace(/\./g,"%2E"):String(r),x=o&&O(m)&&m.length===1?W+"[]":W;if(a&&O(m)&&m.length===0)return x+"[]";for(var C=0;C<T.length;++C){var E=T[C],Y=typeof E=="object"&&E&&typeof E.value<"u"?E.value:m[E];if(!(c&&Y===null)){var Pe=s&&l?String(E).replace(/\./g,"%2E"):String(E),Er=O(m)?typeof n=="function"?n(x,Pe):x:x+(s?"."+Pe:"["+Pe+"]");R.set(e,D);var at=hr();at.set(qe,R),br(M,t(Y,Er,n,o,a,i,c,l,n==="comma"&&S&&O(m)?null:u,f,p,s,v,d,b,S,I,at))}}return M},vi=function(e){if(!e)return h;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||h.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=oe.default;if(typeof e.format<"u"){if(!si.call(oe.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=oe.formatters[n],a=h.filter;(typeof e.filter=="function"||O(e.filter))&&(a=e.filter);var i;if(e.arrayFormat in _r?i=e.arrayFormat:"indices"in e?i=e.indices?"indices":"repeat":i=h.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:h.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:h.addQueryPrefix,allowDots:c,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:i,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?h.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:h.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:h.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:h.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:h.encodeValuesOnly,filter:a,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:h.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:h.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:h.strictNullHandling}},mi=function(t,e){var r=t,n=vi(e),o,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):O(n.filter)&&(a=n.filter,o=a);var i=[];if(typeof r!="object"||r===null)return"";var c=_r[n.arrayFormat],l=c==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var u=hr(),f=0;f<o.length;++f){var p=o[f],s=r[p];n.skipNulls&&s===null||br(i,di(s,p,c,l,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,u))}var v=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&"),v.length>0?d+v:""},U=gr,Je=Object.prototype.hasOwnProperty,Ft=Array.isArray,g={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:U.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},gi=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},Sr=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},hi="utf8=%26%2310003%3B",_i="utf8=%E2%9C%93",bi=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 c=-1,l,u=r.charset;if(r.charsetSentinel)for(l=0;l<i.length;++l)i[l].indexOf("utf8=")===0&&(i[l]===_i?u="utf-8":i[l]===hi&&(u="iso-8859-1"),c=l,l=i.length);for(l=0;l<i.length;++l)if(l!==c){var f=i[l],p=f.indexOf("]="),s=p===-1?f.indexOf("="):p+1,v,d;s===-1?(v=r.decoder(f,g.decoder,u,"key"),d=r.strictNullHandling?null:""):(v=r.decoder(f.slice(0,s),g.decoder,u,"key"),d=U.maybeMap(Sr(f.slice(s+1),r,Ft(n[v])?n[v].length:0),function(S){return r.decoder(S,g.decoder,u,"value")})),d&&r.interpretNumericEntities&&u==="iso-8859-1"&&(d=gi(String(d))),f.indexOf("[]=")>-1&&(d=Ft(d)?[d]:d);var b=Je.call(n,v);b&&r.duplicates==="combine"?n[v]=U.combine(n[v],d):(!b||r.duplicates==="last")&&(n[v]=d)}return n},Si=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:Sr(e,r,o),c=t.length-1;c>=0;--c){var l,u=t[c];if(u==="[]"&&r.parseArrays)l=r.allowEmptyArrays&&(i===""||r.strictNullHandling&&i===null)?[]:U.combine([],i);else{l=r.plainObjects?{__proto__:null}:{};var f=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,p=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,s=parseInt(p,10);!r.parseArrays&&p===""?l={0:i}:!isNaN(s)&&u!==p&&String(s)===p&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(l=[],l[s]=i):p!=="__proto__"&&(l[p]=i)}i=l}return i},wi=function(e,r,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,c=/(\[[^[\]]*])/g,l=n.depth>0&&i.exec(a),u=l?a.slice(0,l.index):a,f=[];if(u){if(!n.plainObjects&&Je.call(Object.prototype,u)&&!n.allowPrototypes)return;f.push(u)}for(var p=0;n.depth>0&&(l=c.exec(a))!==null&&p<n.depth;){if(p+=1,!n.plainObjects&&Je.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;f.push(l[1])}if(l){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");f.push("["+a.slice(l.index)+"]")}return Si(f,r,n,o)}},xi=function(e){if(!e)return g;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"?g.charset:e.charset,n=typeof e.duplicates>"u"?g.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:g.allowDots:!!e.allowDots;return{allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:g.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:g.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:g.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:g.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:g.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:g.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:g.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:g.decoder,delimiter:typeof e.delimiter=="string"||U.isRegExp(e.delimiter)?e.delimiter:g.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:g.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:g.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:g.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:g.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:g.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:g.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},Ai=function(t,e){var r=xi(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?bi(t,r):t,o=r.plainObjects?{__proto__:null}:{},a=Object.keys(n),i=0;i<a.length;++i){var c=a[i],l=wi(c,n[c],r,typeof t=="string");o=U.merge(o,l,r)}return r.allowSparse===!0?o:U.compact(o)},Oi=mi,Pi=Ai,Ei=nt,$i={formats:Ei,parse:Pi,stringify:Oi};const Ii=Qt($i);async function Oe(t,e={},r){const{cms:n="cms"}=e;return fetch(`${t.href}?${Ii.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 ot(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 wr(t){return Array.isArray(t)&&t.length>0?t[0]:Array.isArray(t)?null:t}async function xr(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}`:"",c=new URL(ot(`${t}${i}`,r)),l=await Oe(c,r,o);if(!l.ok)return console.error(`[Error fetching preview data]: ${t} - status: ${l.statusText}`),[];const u=await l.json(),f=e.findIndex(p=>p.documentId===u.id);return f!==-1?(e[f]=u,[...e]):[u,...e]}return e}const Ri=Object.freeze(Object.defineProperty({__proto__:null,createUrl:ot,fetchCMS:Oe,mergePreviewDocument:xr,spreadStrapiData:wr},Symbol.toStringTag,{value:"Module"}));async function Ar(t,e={},r){const n=!!(e!=null&&e.previewMode),o=await Oe(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?wr(a):a}:{status:404,data:[],error:"No data found"}}async function Or(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 c=1,l=0,u=!0;try{do{const f=await Oe(e,{...a,page:c},o).then(p=>p.json()).catch(p=>(console.error("Error fetching VTEX CMS data:",p),console.error("Error URL:",e.toString()),null));c===1&&(l=f.totalItems),Array.isArray(f==null?void 0:f.data)&&i.push(...f.data),u=!!(f!=null&&f.hasNextPage),c++}while(u&&i.length<l);if(o&&i.length>0){if(!t||!n)throw new Error("contentType and previewId are required for preview mode in vtexCMSData");const f=await xr(t,i,a);return{status:f.length>0?200:404,data:f}}return{status:i.length?200:404,data:i}}catch(f){return{status:500,data:[],error:f instanceof Error?f.message:String(f)}}}const ki=Object.freeze(Object.defineProperty({__proto__:null,strapiCMSData:Ar,vtexCMSData:Or},Symbol.toStringTag,{value:"Module"}));async function Ti({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 Pr(t,e={},r){const{cms:n="vtex"}=e??{};try{const o=new URL(ot(t,e));return n!=="vtex"?Ar(o,e,r):Or(t,o,e)}catch(o){return console.error(`[Fetch ContentType Error CMS ${n}]`,o),r?{status:400,data:null}:{status:200,data:[]}}}const Ci=Object.freeze(Object.defineProperty({__proto__:null,fetchContentType:Pr,getCMSContentType:Ti},Symbol.toStringTag,{value:"Module"}));exports.SearchPageScreening=$n;exports.addSearchParamsFacets=Ur;exports.catalogHelpers=tn;exports.cms=Ci;exports.cmsHelpers=ki;exports.cmsUtils=Ri;exports.convertSearchParams=qr;exports.disableSKU=Lt;exports.fetchContentType=Pr;exports.filterNonCategorySelected=Cr;exports.filterNonRootFacets=zr;exports.formatPriceToCurrency=me;exports.formattedFacets=Br;exports.freightParsePrice=Nt;exports.getColorAndSizeFromSkuName=Mt;exports.getDefaultExportFromCjs=Qt;exports.getDiscountPercent=Dt;exports.getFirstImages=Ht;exports.getProductNameWithoutSku=Bt;exports.getSKUName=jt;exports.getSimilars=rn;exports.getSkuInfos=Ut;exports.getThumbImage=Wt;exports.getValidOffer=zt;exports.navigateToSearchPage=Gr;exports.parseSearchState=Wr;exports.productHelpers=kr;exports.resizingImg=qt;exports.responsive=ee;exports.setVideoPlay=Kt;exports.splitNameAndSizeFromFullName=Xe;exports.styles=En;exports.updatedResizedImg=Gt;
@@ -0,0 +1,4 @@
1
+ "use strict";const w=require("react/jsx-runtime"),Rr=require("@soma-vertical-web/core-components"),me=(t,e=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:e?2:0}).format(t),Mt=({valueInCents:t,hasFree:e,freeTaxMessage:r})=>t===0?e?r:me(0):me(t/100),jt=(t,e)=>{const n=(t-e)*100/t;return Math.floor(n)},Ye=(t,e)=>{const[r,n]=t.split(e);return{name:r.trim(),size:n?n.trim():""}},Bt=(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()}},Ut=(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},Lt=(t,e)=>t.replace(e,"").trim(),kr=t=>t.replace(/\//g,""),zt=({items:t,NAME_SPLIT_SYMBOL:e})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(i,c)=>{var s;c&&(c.sellerId=i.sellerId,c.sellerName=i.sellerName,c.available=!0,c.isSellerDefault=i.sellerDefault);const{Price:l,ListPrice:u,PaymentOptions:{installmentOptions:f}}=i.commertialOffer;r.price=l,r.listPrice=u;const p=(s=f==null?void 0:f[0])==null?void 0:s.installments;if(p){const{count:v,value:d}=p[p.length-1];r.installments={count:v,value:d/100}}};let o=!0;const a=t.reduce((i,c)=>{var f;const l={name:c.name,sku:c.itemId,value:((f=c.Tamanho)==null?void 0:f[0])??Ye(c.nameComplete??c.name,e).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},u=c.sellers.filter(p=>(p.sellerDefault&&p.commertialOffer.IsAvailable&&(l.available=!0,n(p,l)),p.commertialOffer.IsAvailable));return!l.isSellerDefault&&u.length>0&&(l.available=!0,n(u[0],{...l,sellerId:u[0].sellerId,sellerName:u[0].sellerName})),l.available===!1&&(o=!1),i.push(l),i},[]);return{...r,sizes:a,allSizesAvailable:o}},Wt=t=>t?!t.offers.offers.find(({quantity:e=0})=>e>0):!1,qt=(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)},Gt=({images:t,TEXTURE_IMAGE:e})=>t.find(r=>e.includes(r.imageLabel))??t[0],Ht=(t,e)=>{const r=/\/ids\/(\d+)\//,n=t.match(r);return n?t.replace(`/${n[1]}/`,`/${n[1]}-${e.width}-${e.height}/`):t},Kt=(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},Vt=({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},Tr=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},Qt=(t,e,r)=>{e&&(t?(e.getAttribute("src")||(e.src=r??""),e.play()):e.pause())},Cr=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Wt,formatPriceToCurrency:me,freightParsePrice:Mt,getAspectRatio:Tr,getColorAndSizeFromSkuName:Bt,getDiscountPercent:jt,getFirstImages:Vt,getProductNameWithoutSku:Lt,getSKUName:Ut,getSkuInfos:zt,getThumbImage:Gt,getValidOffer:qt,removeSlashes:kr,resizingImg:Ht,setVideoPlay:Qt,splitNameAndSizeFromFullName:Ye,updatedResizedImg:Kt},Symbol.toStringTag,{value:"Module"})),lt="fuzzy",ct="operator",Fr=t=>({isDepartment:t!=null&&t.length?t[0].key==="category-1":!1}),Nr=(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})},Jt=(t,e)=>e?t==="category-1":!1,Dr=t=>t.key==="operator"&&(t.value==="and"||t.value==="or"),Mr=t=>t.type==="TEXT",jr=t=>t.key==="fuzzy"&&(t.value==="0"||t.value==="1"||t.value==="auto"),Br=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))}},Ur=({key:t,values:e})=>({__typename:"FacetRange",key:t,values:e}),Lr=(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||!Jt(i.key,o)).map(i=>Mr(i)?Br(i):Ur(i))},zr=(t,e)=>{const r=t.find(({key:o})=>o===lt)??null,n=t.find(({key:o})=>o===ct)??null;r&&jr(r)&&e.append(lt,r.value),n&&Dr(n)&&e.append(ct,n.value)},Wr=t=>t.map(e=>{const[r,n]=e.split("/");return{key:r,value:n}}),qr=(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}=Fr(n);return n==null?void 0:n.filter(a=>!Jt(a.key,o))},Gr=({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:Wr(r),term:o,base:o?"":t,page:a}},Hr=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},Kr=(t,e,r=24,n=1,o)=>{const a=`/search?query=${e??""}&count=${r}&page=${n}${o?`&sort=${o.replace("_",":")}`:""}`;t.push(a)};var ft=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Vr(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}const Qr=(t="")=>t.charAt(0).toUpperCase()+t.slice(1),st=(t,e=" ")=>!t||typeof t=="string"&&t.length===0?t:(Array.isArray(t)?t:t.split("-")).map(Qr).join(e),Jr=({canonical:t,seo:e,slug:r})=>{const n=Array.isArray(r)?r.join(", "):r;return{id:0,Title:`${Array.isArray(r)?r.map(a=>st(a)).join(","):st(r)} - ${e.title}`,MetaTagDescription:e.description,name:n,hasChildren:!1,url:t,children:[]}},Xr=({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]:[]}}),Yr=({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},Zr=t=>{t instanceof Error?(console.error(`[ERROR CATEGORY INFO]: ${t.message}`),console.error(t.stack)):console.error("[ERROR CATEGORY INFO]: Unknown error",t)},en=new Set(["brand","category","department","subcategory","collection","cluster"]),tn=t=>typeof(t==null?void 0:t.pageType)=="string"&&en.has(t==null?void 0:t.pageType.toLowerCase()),rn=t=>({collection:t.Coleção,categoryId:t.categoryId,current_collection:t["Coleção Atual"],items:t.items}),Yt=(t,e)=>t.reduce((r,n)=>{if(n.items.filter(i=>i.sellers.find(c=>c.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},[]),nn=Object.freeze(Object.defineProperty({__proto__:null,createEmptySeoCategory:Jr,createSeoCategory:Xr,findCategory:Yr,formattedSimilars:Yt,isCollectionPageType:tn,notFindCategoryError:Zr,responseAdapter:rn},Symbol.toStringTag,{value:"Module"})),on=async({productId:t,TEXTURE_IMAGE:e,apiUrl:r})=>{try{const n=await fetch(`${r}/api/catalog_system/pub/products/crossselling/similars/${t}`,{priority:"low",headers:{"X-VTEX-API-AppKey":process.env.vtexAppKey??"","X-VTEX-API-AppToken":process.env.vtexAppToken??""}});if(!n.ok)throw new Error("Erro ao buscar similares.");const o=await n.json();return Yt(o,e)}catch(n){return console.error(n),[]}},ee={"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"},an="_header_9xxjk_57",ln="_actions_9xxjk_131",cn="_breadcrumb_9xxjk_142",fn="_credits_9xxjk_157",sn="_pdplinks_9xxjk_185",un="_similars_9xxjk_212",pn="_sizes_9xxjk_251",yn="_measurementTable_9xxjk_267",dn="_measurementHead_9xxjk_280",vn="_measurementRows_9xxjk_285",mn="_measurementRowsTitle_9xxjk_302",gn="_measurementRowsText_9xxjk_314",hn="_measurementImage_9xxjk_325",_n="_measurementImageContainer_9xxjk_328",bn="_measurementContent_9xxjk_337",Sn="_measurementTitle_9xxjk_341",wn="_measurementClose_9xxjk_352",xn="_productref_9xxjk_417",An="_slideOut_9xxjk_1",On="_slideIn_9xxjk_1",Pn="_content_9xxjk_397",En="_pdp_9xxjk_185",$n="_divider_9xxjk_575",In={"bottom-navigation":"_bottom-navigation_9xxjk_1","bottom-navigation__credits-modifier":"_bottom-navigation__credits-modifier_9xxjk_18","bottom-navigation__header":"_bottom-navigation__header_9xxjk_21","bottom-navigation__header-content":"_bottom-navigation__header-content_9xxjk_26","golden-tag-content":"_golden-tag-content_9xxjk_45","bottom-navigation__price-and-promo":"_bottom-navigation__price-and-promo_9xxjk_48",header:an,"golden-tag":"_golden-tag_9xxjk_45","golden-tag-video":"_golden-tag-video_9xxjk_86","golden-tag-content-text":"_golden-tag-content-text_9xxjk_105",actions:ln,"add-to-cart":"_add-to-cart_9xxjk_138",breadcrumb:cn,"breadcrumb--active":"_breadcrumb--active_9xxjk_147",credits:fn,"gallery-carousel-modifier":"_gallery-carousel-modifier_9xxjk_162",pdplinks:sn,"links-wrapper":"_links-wrapper_9xxjk_195",similars:un,"similars-info":"_similars-info_9xxjk_224","toggle-style-modifier":"_toggle-style-modifier_9xxjk_233","accessibility-info":"_accessibility-info_9xxjk_237",sizes:pn,"price-wrapper":"_price-wrapper_9xxjk_263",measurementTable:yn,measurementHead:dn,measurementRows:vn,measurementRowsTitle:mn,measurementRowsText:gn,measurementImage:hn,measurementImageContainer:_n,measurementContent:bn,measurementTitle:Sn,measurementClose:wn,"tabs-root-modifier":"_tabs-root-modifier_9xxjk_358","tabs-list-modifier":"_tabs-list-modifier_9xxjk_376","tabs-item-modifier":"_tabs-item-modifier_9xxjk_393","content-wrapper":"_content-wrapper_9xxjk_397",productref:xn,"tabs-panel":"_tabs-panel_9xxjk_428","tabs-panel-exit":"_tabs-panel-exit_9xxjk_434",slideOut:An,"tabs-panel-enter":"_tabs-panel-enter_9xxjk_438",slideIn:On,content:Pn,pdp:En,"pdp-main":"_pdp-main_9xxjk_496","pdp-main__gallery-wrapper":"_pdp-main__gallery-wrapper_9xxjk_501","pdp-main__info":"_pdp-main__info_9xxjk_518","pdp-main__info-main-content":"_pdp-main__info-main-content_9xxjk_533","pdp-main__info-subsection":"_pdp-main__info-subsection_9xxjk_533","subsection-product-info":"_subsection-product-info_9xxjk_544","subsection-similars":"_subsection-similars_9xxjk_547","subsection-sizes":"_subsection-sizes_9xxjk_550","subsection-actions":"_subsection-actions_9xxjk_553","pdp-main__info-secondary-content":"_pdp-main__info-secondary-content_9xxjk_557","sections-title":"_sections-title_9xxjk_563",divider:$n,"breadcrumbs-desktop":"_breadcrumbs-desktop_9xxjk_580","breadcrumbs-mobile":"_breadcrumbs-mobile_9xxjk_589"},Rn=({children:t,data:e,SectionZone:r,className:n})=>{var f,p;const o=((f=e==null?void 0:e.filter(s=>{var v,d;return((d=(v=s.config)==null?void 0:v.responsive)==null?void 0:d.deviceType)==="mobile"})[0])==null?void 0:f.sections)||[],a=((p=e==null?void 0:e.filter(s=>{var v,d;return((d=(v=s.config)==null?void 0:v.responsive)==null?void 0:d.deviceType)==="desktop"})[0])==null?void 0:p.sections)||[],i=o.slice(0,1),c=o.slice(1,o.length),l=a.slice(0,1),u=a.slice(1,a.length);return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:n,children:[w.jsx("div",{className:ee["responsive-mobile-flex"],children:w.jsx(r,{data:i??[]})}),w.jsx("div",{className:ee["responsive-desktop-flex"],children:w.jsx(r,{data:l??[]})})]}),t,w.jsx("div",{className:ee["responsive-mobile-flex"],children:w.jsx(r,{data:c??[]})}),w.jsx("div",{className:ee["responsive-desktop-flex"],children:w.jsx(r,{data:u??[]})}),w.jsx(Rr.Utils.Divider,{})]})};var J=TypeError;const kn={},Tn=Object.freeze(Object.defineProperty({__proto__:null,default:kn},Symbol.toStringTag,{value:"Module"})),Cn=Vr(Tn);var Ze=typeof Map=="function"&&Map.prototype,$e=Object.getOwnPropertyDescriptor&&Ze?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ge=Ze&&$e&&typeof $e.get=="function"?$e.get:null,ut=Ze&&Map.prototype.forEach,et=typeof Set=="function"&&Set.prototype,Ie=Object.getOwnPropertyDescriptor&&et?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,he=et&&Ie&&typeof Ie.get=="function"?Ie.get:null,pt=et&&Set.prototype.forEach,Fn=typeof WeakMap=="function"&&WeakMap.prototype,te=Fn?WeakMap.prototype.has:null,Nn=typeof WeakSet=="function"&&WeakSet.prototype,re=Nn?WeakSet.prototype.has:null,Dn=typeof WeakRef=="function"&&WeakRef.prototype,yt=Dn?WeakRef.prototype.deref:null,Mn=Boolean.prototype.valueOf,jn=Object.prototype.toString,Bn=Function.prototype.toString,Un=String.prototype.match,tt=String.prototype.slice,F=String.prototype.replace,Ln=String.prototype.toUpperCase,dt=String.prototype.toLowerCase,Zt=RegExp.prototype.test,vt=Array.prototype.concat,P=Array.prototype.join,zn=Array.prototype.slice,mt=Math.floor,He=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Re=Object.getOwnPropertySymbols,Ke=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,V=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ne=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===V||!0)?Symbol.toStringTag:null,er=Object.prototype.propertyIsEnumerable,gt=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function ht(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Zt.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-mt(-t):mt(t);if(n!==t){var o=String(n),a=tt.call(e,o.length+1);return F.call(o,r,"$&_")+"."+F.call(F.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return F.call(e,r,"$&_")}var Ve=Cn,_t=Ve.custom,bt=nr(_t)?_t:null,tr={__proto__:null,double:'"',single:"'"},Wn={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Se=function t(e,r,n,o){var a=r||{};if($(a,"quoteStyle")&&!$(tr,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if($(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=$(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($(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($(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=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 ar(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return c?ht(e,l):l}if(typeof e=="bigint"){var u=String(e)+"n";return c?ht(e,u):u}var f=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=f&&f>0&&typeof e=="object")return Qe(e)?"[Array]":"[Object]";var p=lo(a,n);if(typeof o>"u")o=[];else if(or(o,e)>=0)return"[Circular]";function s(x,C,E){if(C&&(o=zn.call(o),o.push(C)),E){var Y={depth:a.depth};return $(a,"quoteStyle")&&(Y.quoteStyle=a.quoteStyle),t(x,Y,n+1,o)}return t(x,a,n+1,o)}if(typeof e=="function"&&!St(e)){var v=Yn(e),d=ue(e,s);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(d.length>0?" { "+P.call(d,", ")+" }":"")}if(nr(e)){var b=V?F.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ke.call(e);return typeof e=="object"&&!V?Z(b):b}if(oo(e)){for(var S="<"+dt.call(String(e.nodeName)),I=e.attributes||[],R=0;R<I.length;R++)S+=" "+I[R].name+"="+rr(qn(I[R].value),"double",a);return S+=">",e.childNodes&&e.childNodes.length&&(S+="..."),S+="</"+dt.call(String(e.nodeName))+">",S}if(Qe(e)){if(e.length===0)return"[]";var m=ue(e,s);return p&&!io(m)?"["+Je(m,p)+"]":"[ "+P.call(m,", ")+" ]"}if(Hn(e)){var k=ue(e,s);return!("cause"in Error.prototype)&&"cause"in e&&!er.call(e,"cause")?"{ ["+String(e)+"] "+P.call(vt.call("[cause]: "+s(e.cause),k),", ")+" }":k.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+P.call(k,", ")+" }"}if(typeof e=="object"&&i){if(bt&&typeof e[bt]=="function"&&Ve)return Ve(e,{depth:f-n});if(i!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Zn(e)){var D=[];return ut&&ut.call(e,function(x,C){D.push(s(C,e,!0)+" => "+s(x,e))}),wt("Map",ge.call(e),D,p)}if(ro(e)){var X=[];return pt&&pt.call(e,function(x){X.push(s(x,e))}),wt("Set",he.call(e),X,p)}if(eo(e))return ke("WeakMap");if(no(e))return ke("WeakSet");if(to(e))return ke("WeakRef");if(Vn(e))return Z(s(Number(e)));if(Jn(e))return Z(s(He.call(e)));if(Qn(e))return Z(Mn.call(e));if(Kn(e))return Z(s(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof ft<"u"&&e===ft)return"{ [object globalThis] }";if(!Gn(e)&&!St(e)){var z=ue(e,s),fe=gt?gt(e)===Object.prototype:e instanceof Object||e.constructor===Object,M=e instanceof Object?"":"null prototype",T=!fe&&ne&&Object(e)===e&&ne in e?tt.call(N(e),8,-1):M?"Object":"",se=fe||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",W=se+(T||M?"["+P.call(vt.call([],T||[],M||[]),": ")+"] ":"");return z.length===0?W+"{}":p?W+"{"+Je(z,p)+"}":W+"{ "+P.call(z,", ")+" }"}return String(e)};function rr(t,e,r){var n=r.quoteStyle||e,o=tr[n];return o+t+o}function qn(t){return F.call(String(t),/"/g,"&quot;")}function L(t){return!ne||!(typeof t=="object"&&(ne in t||typeof t[ne]<"u"))}function Qe(t){return N(t)==="[object Array]"&&L(t)}function Gn(t){return N(t)==="[object Date]"&&L(t)}function St(t){return N(t)==="[object RegExp]"&&L(t)}function Hn(t){return N(t)==="[object Error]"&&L(t)}function Kn(t){return N(t)==="[object String]"&&L(t)}function Vn(t){return N(t)==="[object Number]"&&L(t)}function Qn(t){return N(t)==="[object Boolean]"&&L(t)}function nr(t){if(V)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Ke)return!1;try{return Ke.call(t),!0}catch{}return!1}function Jn(t){if(!t||typeof t!="object"||!He)return!1;try{return He.call(t),!0}catch{}return!1}var Xn=Object.prototype.hasOwnProperty||function(t){return t in this};function $(t,e){return Xn.call(t,e)}function N(t){return jn.call(t)}function Yn(t){if(t.name)return t.name;var e=Un.call(Bn.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function or(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 Zn(t){if(!ge||!t||typeof t!="object")return!1;try{ge.call(t);try{he.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function eo(t){if(!te||!t||typeof t!="object")return!1;try{te.call(t,te);try{re.call(t,re)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function to(t){if(!yt||!t||typeof t!="object")return!1;try{return yt.call(t),!0}catch{}return!1}function ro(t){if(!he||!t||typeof t!="object")return!1;try{he.call(t);try{ge.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function no(t){if(!re||!t||typeof t!="object")return!1;try{re.call(t,re);try{te.call(t,te)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function oo(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function ar(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return ar(tt.call(t,0,e.maxStringLength),e)+n}var o=Wn[e.quoteStyle||"single"];o.lastIndex=0;var a=F.call(F.call(t,o,"\\$1"),/[\x00-\x1f]/g,ao);return rr(a,"single",e)}function ao(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":"")+Ln.call(e.toString(16))}function Z(t){return"Object("+t+")"}function ke(t){return t+" { ? }"}function wt(t,e,r,n){var o=n?Je(r,n):P.call(r,", ");return t+" ("+e+") {"+o+"}"}function io(t){for(var e=0;e<t.length;e++)if(or(t[e],`
2
+ `)>=0)return!1;return!0}function lo(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=P.call(Array(t.indent+1)," ");else return null;return{base:r,prev:P.call(Array(e+1),r)}}function Je(t,e){if(t.length===0)return"";var r=`
3
+ `+e.prev+e.base;return r+P.call(t,","+r)+`
4
+ `+e.prev}function ue(t,e){var r=Qe(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=$(t,o)?e(t[o],t):""}var a=typeof Re=="function"?Re(t):[],i;if(V){i={};for(var c=0;c<a.length;c++)i["$"+a[c]]=a[c]}for(var l in t)$(t,l)&&(r&&String(Number(l))===l&&l<t.length||V&&i["$"+l]instanceof Symbol||(Zt.call(/[^\w$]/,l)?n.push(e(l,t)+": "+e(t[l],t)):n.push(l+": "+e(t[l],t))));if(typeof Re=="function")for(var u=0;u<a.length;u++)er.call(t,a[u])&&n.push("["+e(a[u])+"]: "+e(t[a[u]],t));return n}var co=Se,fo=J,we=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},so=function(t,e){if(t){var r=we(t,e);return r&&r.value}},uo=function(t,e,r){var n=we(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},po=function(t,e){return t?!!we(t,e):!1},yo=function(t,e){if(t)return we(t,e,!0)},vo=function(){var e,r={assert:function(n){if(!r.has(n))throw new fo("Side channel does not contain "+co(n))},delete:function(n){var o=e&&e.next,a=yo(e,n);return a&&o&&o===a&&(e=void 0),!!a},get:function(n){return so(e,n)},has:function(n){return po(e,n)},set:function(n,o){e||(e={next:void 0}),uo(e,n,o)}};return r},ir=Object,mo=Error,go=EvalError,ho=RangeError,_o=ReferenceError,bo=SyntaxError,So=URIError,wo=Math.abs,xo=Math.floor,Ao=Math.max,Oo=Math.min,Po=Math.pow,Eo=Math.round,$o=Number.isNaN||function(e){return e!==e},Io=$o,Ro=function(e){return Io(e)||e===0?e:e<0?-1:1},ko=Object.getOwnPropertyDescriptor,ye=ko;if(ye)try{ye([],"length")}catch{ye=null}var lr=ye,de=Object.defineProperty||!1;if(de)try{de({},"a",{value:1})}catch{de=!1}var To=de,Te,xt;function Co(){return xt||(xt=1,Te=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 c=Object.getOwnPropertyDescriptor(e,r);if(c.value!==o||c.enumerable!==!0)return!1}return!0}),Te}var Ce,At;function Fo(){if(At)return Ce;At=1;var t=typeof Symbol<"u"&&Symbol,e=Co();return Ce=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Ce}var Fe,Ot;function cr(){return Ot||(Ot=1,Fe=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Fe}var Ne,Pt;function fr(){if(Pt)return Ne;Pt=1;var t=ir;return Ne=t.getPrototypeOf||null,Ne}var No="Function.prototype.bind called on incompatible ",Do=Object.prototype.toString,Mo=Math.max,jo="[object Function]",Et=function(e,r){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var a=0;a<r.length;a+=1)n[a+e.length]=r[a];return n},Bo=function(e,r){for(var n=[],o=r,a=0;o<e.length;o+=1,a+=1)n[a]=e[o];return n},Uo=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r},Lo=function(e){var r=this;if(typeof r!="function"||Do.apply(r)!==jo)throw new TypeError(No+r);for(var n=Bo(arguments,1),o,a=function(){if(this instanceof o){var f=r.apply(this,Et(n,arguments));return Object(f)===f?f:this}return r.apply(e,Et(n,arguments))},i=Mo(0,r.length-n.length),c=[],l=0;l<i;l++)c[l]="$"+l;if(o=Function("binder","return function ("+Uo(c,",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var u=function(){};u.prototype=r.prototype,o.prototype=new u,u.prototype=null}return o},zo=Lo,xe=Function.prototype.bind||zo,rt=Function.prototype.call,De,$t;function sr(){return $t||($t=1,De=Function.prototype.apply),De}var Wo=typeof Reflect<"u"&&Reflect&&Reflect.apply,qo=xe,Go=sr(),Ho=rt,Ko=Wo,Vo=Ko||qo.call(Ho,Go),Qo=xe,Jo=J,Xo=rt,Yo=Vo,ur=function(e){if(e.length<1||typeof e[0]!="function")throw new Jo("a function is required");return Yo(Qo,Xo,e)},Me,It;function Zo(){if(It)return Me;It=1;var t=ur,e=lr,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 Me=n&&typeof n.get=="function"?t([n.get]):typeof a=="function"?function(c){return a(c==null?c:o(c))}:!1,Me}var je,Rt;function ea(){if(Rt)return je;Rt=1;var t=cr(),e=fr(),r=Zo();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 Be,kt;function ta(){if(kt)return Be;kt=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=xe;return Be=r.call(t,e),Be}var y,ra=ir,na=mo,oa=go,aa=ho,ia=_o,Q=bo,K=J,la=So,ca=wo,fa=xo,sa=Ao,ua=Oo,pa=Po,ya=Eo,da=Ro,pr=Function,Ue=function(t){try{return pr('"use strict"; return ('+t+").constructor;")()}catch{}},ae=lr,va=To,Le=function(){throw new K},ma=ae?function(){try{return arguments.callee,Le}catch{try{return ae(arguments,"callee").get}catch{return Le}}}():Le,q=Fo()(),_=ea(),ga=fr(),ha=cr(),yr=sr(),ie=rt,H={},_a=typeof Uint8Array>"u"||!_?y:_(Uint8Array),B={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?y:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?y:ArrayBuffer,"%ArrayIteratorPrototype%":q&&_?_([][Symbol.iterator]()):y,"%AsyncFromSyncIteratorPrototype%":y,"%AsyncFunction%":H,"%AsyncGenerator%":H,"%AsyncGeneratorFunction%":H,"%AsyncIteratorPrototype%":H,"%Atomics%":typeof Atomics>"u"?y:Atomics,"%BigInt%":typeof BigInt>"u"?y:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?y:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?y:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?y:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":na,"%eval%":eval,"%EvalError%":oa,"%Float16Array%":typeof Float16Array>"u"?y:Float16Array,"%Float32Array%":typeof Float32Array>"u"?y:Float32Array,"%Float64Array%":typeof Float64Array>"u"?y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?y:FinalizationRegistry,"%Function%":pr,"%GeneratorFunction%":H,"%Int8Array%":typeof Int8Array>"u"?y:Int8Array,"%Int16Array%":typeof Int16Array>"u"?y:Int16Array,"%Int32Array%":typeof Int32Array>"u"?y:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":q&&_?_(_([][Symbol.iterator]())):y,"%JSON%":typeof JSON=="object"?JSON:y,"%Map%":typeof Map>"u"?y:Map,"%MapIteratorPrototype%":typeof Map>"u"||!q||!_?y:_(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":ra,"%Object.getOwnPropertyDescriptor%":ae,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?y:Promise,"%Proxy%":typeof Proxy>"u"?y:Proxy,"%RangeError%":aa,"%ReferenceError%":ia,"%Reflect%":typeof Reflect>"u"?y:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?y:Set,"%SetIteratorPrototype%":typeof Set>"u"||!q||!_?y:_(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?y:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":q&&_?_(""[Symbol.iterator]()):y,"%Symbol%":q?Symbol:y,"%SyntaxError%":Q,"%ThrowTypeError%":ma,"%TypedArray%":_a,"%TypeError%":K,"%Uint8Array%":typeof Uint8Array>"u"?y:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?y:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?y:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?y:Uint32Array,"%URIError%":la,"%WeakMap%":typeof WeakMap>"u"?y:WeakMap,"%WeakRef%":typeof WeakRef>"u"?y:WeakRef,"%WeakSet%":typeof WeakSet>"u"?y:WeakSet,"%Function.prototype.call%":ie,"%Function.prototype.apply%":yr,"%Object.defineProperty%":va,"%Object.getPrototypeOf%":ga,"%Math.abs%":ca,"%Math.floor%":fa,"%Math.max%":sa,"%Math.min%":ua,"%Math.pow%":pa,"%Math.round%":ya,"%Math.sign%":da,"%Reflect.getPrototypeOf%":ha};if(_)try{null.error}catch(t){var ba=_(_(t));B["%Error.prototype%"]=ba}var Sa=function t(e){var r;if(e==="%AsyncFunction%")r=Ue("async function () {}");else if(e==="%GeneratorFunction%")r=Ue("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Ue("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&_&&(r=_(o.prototype))}return B[e]=r,r},Tt={__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"]},le=xe,_e=ta(),wa=le.call(ie,Array.prototype.concat),xa=le.call(yr,Array.prototype.splice),Ct=le.call(ie,String.prototype.replace),be=le.call(ie,String.prototype.slice),Aa=le.call(ie,RegExp.prototype.exec),Oa=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Pa=/\\(\\)?/g,Ea=function(e){var r=be(e,0,1),n=be(e,-1);if(r==="%"&&n!=="%")throw new Q("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Q("invalid intrinsic syntax, expected opening `%`");var o=[];return Ct(e,Oa,function(a,i,c,l){o[o.length]=c?Ct(l,Pa,"$1"):i||a}),o},$a=function(e,r){var n=e,o;if(_e(Tt,n)&&(o=Tt[n],n="%"+o[0]+"%"),_e(B,n)){var a=B[n];if(a===H&&(a=Sa(n)),typeof a>"u"&&!r)throw new K("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new Q("intrinsic "+e+" does not exist!")},nt=function(e,r){if(typeof e!="string"||e.length===0)throw new K("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new K('"allowMissing" argument must be a boolean');if(Aa(/^%?[^%]*%?$/,e)===null)throw new Q("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Ea(e),o=n.length>0?n[0]:"",a=$a("%"+o+"%",r),i=a.name,c=a.value,l=!1,u=a.alias;u&&(o=u[0],xa(n,wa([0,1],u)));for(var f=1,p=!0;f<n.length;f+=1){var s=n[f],v=be(s,0,1),d=be(s,-1);if((v==='"'||v==="'"||v==="`"||d==='"'||d==="'"||d==="`")&&v!==d)throw new Q("property names with quotes must have matching quotes");if((s==="constructor"||!p)&&(l=!0),o+="."+s,i="%"+o+"%",_e(B,i))c=B[i];else if(c!=null){if(!(s in c)){if(!r)throw new K("base intrinsic for "+e+" exists, but the property is not available.");return}if(ae&&f+1>=n.length){var b=ae(c,s);p=!!b,p&&"get"in b&&!("originalValue"in b.get)?c=b.get:c=c[s]}else p=_e(c,s),c=c[s];p&&!l&&(B[i]=c)}}return c},dr=nt,vr=ur,Ia=vr([dr("%String.prototype.indexOf%")]),mr=function(e,r){var n=dr(e,!!r);return typeof n=="function"&&Ia(e,".prototype.")>-1?vr([n]):n},Ra=nt,ce=mr,ka=Se,Ta=J,Ft=Ra("%Map%",!0),Ca=ce("Map.prototype.get",!0),Fa=ce("Map.prototype.set",!0),Na=ce("Map.prototype.has",!0),Da=ce("Map.prototype.delete",!0),Ma=ce("Map.prototype.size",!0),gr=!!Ft&&function(){var e,r={assert:function(n){if(!r.has(n))throw new Ta("Side channel does not contain "+ka(n))},delete:function(n){if(e){var o=Da(e,n);return Ma(e)===0&&(e=void 0),o}return!1},get:function(n){if(e)return Ca(e,n)},has:function(n){return e?Na(e,n):!1},set:function(n,o){e||(e=new Ft),Fa(e,n,o)}};return r},ja=nt,Ae=mr,Ba=Se,pe=gr,Ua=J,G=ja("%WeakMap%",!0),La=Ae("WeakMap.prototype.get",!0),za=Ae("WeakMap.prototype.set",!0),Wa=Ae("WeakMap.prototype.has",!0),qa=Ae("WeakMap.prototype.delete",!0),Ga=G?function(){var e,r,n={assert:function(o){if(!n.has(o))throw new Ua("Side channel does not contain "+Ba(o))},delete:function(o){if(G&&o&&(typeof o=="object"||typeof o=="function")){if(e)return qa(e,o)}else if(pe&&r)return r.delete(o);return!1},get:function(o){return G&&o&&(typeof o=="object"||typeof o=="function")&&e?La(e,o):r&&r.get(o)},has:function(o){return G&&o&&(typeof o=="object"||typeof o=="function")&&e?Wa(e,o):!!r&&r.has(o)},set:function(o,a){G&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new G),za(e,o,a)):pe&&(r||(r=pe()),r.set(o,a))}};return n}:pe,Ha=J,Ka=Se,Va=vo,Qa=gr,Ja=Ga,Xa=Ja||Qa||Va,Ya=function(){var e,r={assert:function(n){if(!r.has(n))throw new Ha("Side channel does not contain "+Ka(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=Xa()),e.set(n,o)}};return r},Za=String.prototype.replace,ei=/%20/g,ze={RFC1738:"RFC1738",RFC3986:"RFC3986"},ot={default:ze.RFC3986,formatters:{RFC1738:function(t){return Za.call(t,ei,"+")},RFC3986:function(t){return String(t)}},RFC1738:ze.RFC1738,RFC3986:ze.RFC3986},ti=ot,We=Object.prototype.hasOwnProperty,j=Array.isArray,A=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),ri=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(j(n)){for(var o=[],a=0;a<n.length;++a)typeof n[a]<"u"&&o.push(n[a]);r.obj[r.prop]=o}}},hr=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},ni=function t(e,r,n){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(j(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!We.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var o=e;return j(e)&&!j(r)&&(o=hr(e,n)),j(e)&&j(r)?(r.forEach(function(a,i){if(We.call(e,i)){var c=e[i];c&&typeof c=="object"&&a&&typeof a=="object"?e[i]=t(c,a,n):e.push(a)}else e[i]=a}),e):Object.keys(r).reduce(function(a,i){var c=r[i];return We.call(a,i)?a[i]=t(a[i],c,n):a[i]=c,a},o)},oi=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},ai=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}},qe=1024,ii=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(v){return"%26%23"+parseInt(v.slice(2),16)+"%3B"});for(var c="",l=0;l<i.length;l+=qe){for(var u=i.length>=qe?i.slice(l,l+qe):i,f=[],p=0;p<u.length;++p){var s=u.charCodeAt(p);if(s===45||s===46||s===95||s===126||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||a===ti.RFC1738&&(s===40||s===41)){f[f.length]=u.charAt(p);continue}if(s<128){f[f.length]=A[s];continue}if(s<2048){f[f.length]=A[192|s>>6]+A[128|s&63];continue}if(s<55296||s>=57344){f[f.length]=A[224|s>>12]+A[128|s>>6&63]+A[128|s&63];continue}p+=1,s=65536+((s&1023)<<10|u.charCodeAt(p)&1023),f[f.length]=A[240|s>>18]+A[128|s>>12&63]+A[128|s>>6&63]+A[128|s&63]}c+=f.join("")}return c},li=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],c=Object.keys(i),l=0;l<c.length;++l){var u=c[l],f=i[u];typeof f=="object"&&f!==null&&n.indexOf(f)===-1&&(r.push({obj:i,prop:u}),n.push(f))}return ri(r),e},ci=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},fi=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},si=function(e,r){return[].concat(e,r)},ui=function(e,r){if(j(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(r(e[o]));return n}return r(e)},_r={arrayToObject:hr,assign:oi,combine:si,compact:li,decode:ai,encode:ii,isBuffer:fi,isRegExp:ci,maybeMap:ui,merge:ni},br=Ya,ve=_r,oe=ot,pi=Object.prototype.hasOwnProperty,Sr={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},O=Array.isArray,yi=Array.prototype.push,wr=function(t,e){yi.apply(t,O(e)?e:[e])},di=Date.prototype.toISOString,Nt=oe.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:ve.encode,encodeValuesOnly:!1,filter:void 0,format:Nt,formatter:oe.formatters[Nt],indices:!1,serializeDate:function(e){return di.call(e)},skipNulls:!1,strictNullHandling:!1},vi=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Ge={},mi=function t(e,r,n,o,a,i,c,l,u,f,p,s,v,d,b,S,I,R){for(var m=e,k=R,D=0,X=!1;(k=k.get(Ge))!==void 0&&!X;){var z=k.get(e);if(D+=1,typeof z<"u"){if(z===D)throw new RangeError("Cyclic object value");X=!0}typeof k.get(Ge)>"u"&&(D=0)}if(typeof f=="function"?m=f(r,m):m instanceof Date?m=v(m):n==="comma"&&O(m)&&(m=ve.maybeMap(m,function(Ee){return Ee instanceof Date?v(Ee):Ee})),m===null){if(i)return u&&!S?u(r,h.encoder,I,"key",d):r;m=""}if(vi(m)||ve.isBuffer(m)){if(u){var fe=S?r:u(r,h.encoder,I,"key",d);return[b(fe)+"="+b(u(m,h.encoder,I,"value",d))]}return[b(r)+"="+b(String(m))]}var M=[];if(typeof m>"u")return M;var T;if(n==="comma"&&O(m))S&&u&&(m=ve.maybeMap(m,u)),T=[{value:m.length>0?m.join(",")||null:void 0}];else if(O(f))T=f;else{var se=Object.keys(m);T=p?se.sort(p):se}var W=l?String(r).replace(/\./g,"%2E"):String(r),x=o&&O(m)&&m.length===1?W+"[]":W;if(a&&O(m)&&m.length===0)return x+"[]";for(var C=0;C<T.length;++C){var E=T[C],Y=typeof E=="object"&&E&&typeof E.value<"u"?E.value:m[E];if(!(c&&Y===null)){var Pe=s&&l?String(E).replace(/\./g,"%2E"):String(E),Ir=O(m)?typeof n=="function"?n(x,Pe):x:x+(s?"."+Pe:"["+Pe+"]");R.set(e,D);var it=br();it.set(Ge,R),wr(M,t(Y,Ir,n,o,a,i,c,l,n==="comma"&&S&&O(m)?null:u,f,p,s,v,d,b,S,I,it))}}return M},gi=function(e){if(!e)return h;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||h.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=oe.default;if(typeof e.format<"u"){if(!pi.call(oe.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=oe.formatters[n],a=h.filter;(typeof e.filter=="function"||O(e.filter))&&(a=e.filter);var i;if(e.arrayFormat in Sr?i=e.arrayFormat:"indices"in e?i=e.indices?"indices":"repeat":i=h.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:h.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:h.addQueryPrefix,allowDots:c,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:i,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?h.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:h.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:h.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:h.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:h.encodeValuesOnly,filter:a,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:h.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:h.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:h.strictNullHandling}},hi=function(t,e){var r=t,n=gi(e),o,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):O(n.filter)&&(a=n.filter,o=a);var i=[];if(typeof r!="object"||r===null)return"";var c=Sr[n.arrayFormat],l=c==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var u=br(),f=0;f<o.length;++f){var p=o[f],s=r[p];n.skipNulls&&s===null||wr(i,mi(s,p,c,l,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,u))}var v=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&"),v.length>0?d+v:""},U=_r,Xe=Object.prototype.hasOwnProperty,Dt=Array.isArray,g={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:U.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},_i=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},xr=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},bi="utf8=%26%2310003%3B",Si="utf8=%E2%9C%93",wi=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 c=-1,l,u=r.charset;if(r.charsetSentinel)for(l=0;l<i.length;++l)i[l].indexOf("utf8=")===0&&(i[l]===Si?u="utf-8":i[l]===bi&&(u="iso-8859-1"),c=l,l=i.length);for(l=0;l<i.length;++l)if(l!==c){var f=i[l],p=f.indexOf("]="),s=p===-1?f.indexOf("="):p+1,v,d;s===-1?(v=r.decoder(f,g.decoder,u,"key"),d=r.strictNullHandling?null:""):(v=r.decoder(f.slice(0,s),g.decoder,u,"key"),d=U.maybeMap(xr(f.slice(s+1),r,Dt(n[v])?n[v].length:0),function(S){return r.decoder(S,g.decoder,u,"value")})),d&&r.interpretNumericEntities&&u==="iso-8859-1"&&(d=_i(String(d))),f.indexOf("[]=")>-1&&(d=Dt(d)?[d]:d);var b=Xe.call(n,v);b&&r.duplicates==="combine"?n[v]=U.combine(n[v],d):(!b||r.duplicates==="last")&&(n[v]=d)}return n},xi=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:xr(e,r,o),c=t.length-1;c>=0;--c){var l,u=t[c];if(u==="[]"&&r.parseArrays)l=r.allowEmptyArrays&&(i===""||r.strictNullHandling&&i===null)?[]:U.combine([],i);else{l=r.plainObjects?{__proto__:null}:{};var f=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,p=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,s=parseInt(p,10);!r.parseArrays&&p===""?l={0:i}:!isNaN(s)&&u!==p&&String(s)===p&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(l=[],l[s]=i):p!=="__proto__"&&(l[p]=i)}i=l}return i},Ai=function(e,r,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,c=/(\[[^[\]]*])/g,l=n.depth>0&&i.exec(a),u=l?a.slice(0,l.index):a,f=[];if(u){if(!n.plainObjects&&Xe.call(Object.prototype,u)&&!n.allowPrototypes)return;f.push(u)}for(var p=0;n.depth>0&&(l=c.exec(a))!==null&&p<n.depth;){if(p+=1,!n.plainObjects&&Xe.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;f.push(l[1])}if(l){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");f.push("["+a.slice(l.index)+"]")}return xi(f,r,n,o)}},Oi=function(e){if(!e)return g;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"?g.charset:e.charset,n=typeof e.duplicates>"u"?g.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:g.allowDots:!!e.allowDots;return{allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:g.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:g.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:g.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:g.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:g.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:g.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:g.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:g.decoder,delimiter:typeof e.delimiter=="string"||U.isRegExp(e.delimiter)?e.delimiter:g.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:g.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:g.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:g.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:g.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:g.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:g.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},Pi=function(t,e){var r=Oi(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?wi(t,r):t,o=r.plainObjects?{__proto__:null}:{},a=Object.keys(n),i=0;i<a.length;++i){var c=a[i],l=Ai(c,n[c],r,typeof t=="string");o=U.merge(o,l,r)}return r.allowSparse===!0?o:U.compact(o)},Ei=hi,$i=Pi,Ii=ot,Ri={formats:Ii,parse:$i,stringify:Ei};const ki=Xt(Ri);async function Oe(t,e={},r){const{cms:n="cms"}=e;return fetch(`${t.href}?${ki.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 Ar(t){return Array.isArray(t)&&t.length>0?t[0]:Array.isArray(t)?null:t}async function Or(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}`:"",c=new URL(at(`${t}${i}`,r)),l=await Oe(c,r,o);if(!l.ok)return console.error(`[Error fetching preview data]: ${t} - status: ${l.statusText}`),[];const u=await l.json(),f=e.findIndex(p=>p.documentId===u.id);return f!==-1?(e[f]=u,[...e]):[u,...e]}return e}const Ti=Object.freeze(Object.defineProperty({__proto__:null,createUrl:at,fetchCMS:Oe,mergePreviewDocument:Or,spreadStrapiData:Ar},Symbol.toStringTag,{value:"Module"}));async function Pr(t,e={},r){const n=!!(e!=null&&e.previewMode),o=await Oe(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?Ar(a):a}:{status:404,data:[],error:"No data found"}}async function Er(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 c=1,l=0,u=!0;try{do{const f=await Oe(e,{...a,page:c},o).then(p=>p.json()).catch(p=>(console.error("Error fetching VTEX CMS data:",p),console.error("Error URL:",e.toString()),null));c===1&&(l=f.totalItems),Array.isArray(f==null?void 0:f.data)&&i.push(...f.data),u=!!(f!=null&&f.hasNextPage),c++}while(u&&i.length<l);if(o&&i.length>0){if(!t||!n)throw new Error("contentType and previewId are required for preview mode in vtexCMSData");const f=await Or(t,i,a);return{status:f.length>0?200:404,data:f}}return{status:i.length?200:404,data:i}}catch(f){return{status:500,data:[],error:f instanceof Error?f.message:String(f)}}}const Ci=Object.freeze(Object.defineProperty({__proto__:null,strapiCMSData:Pr,vtexCMSData:Er},Symbol.toStringTag,{value:"Module"}));async function Fi({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 $r(t,e={},r){const{cms:n="vtex"}=e??{};try{const o=new URL(at(t,e));return n!=="vtex"?Pr(o,e,r):Er(t,o,e)}catch(o){return console.error(`[Fetch ContentType Error CMS ${n}]`,o),r?{status:400,data:null}:{status:200,data:[]}}}const Ni=Object.freeze(Object.defineProperty({__proto__:null,fetchContentType:$r,getCMSContentType:Fi},Symbol.toStringTag,{value:"Module"}));exports.SearchPageScreening=Rn;exports.addSearchParamsFacets=zr;exports.catalogHelpers=nn;exports.cms=Ni;exports.cmsHelpers=Ci;exports.cmsUtils=Ti;exports.convertSearchParams=Hr;exports.disableSKU=Wt;exports.fetchContentType=$r;exports.filterNonCategorySelected=Nr;exports.filterNonRootFacets=qr;exports.formatPriceToCurrency=me;exports.formattedFacets=Lr;exports.freightParsePrice=Mt;exports.getColorAndSizeFromSkuName=Bt;exports.getDefaultExportFromCjs=Xt;exports.getDiscountPercent=jt;exports.getFirstImages=Vt;exports.getProductNameWithoutSku=Lt;exports.getSKUName=Ut;exports.getSimilars=on;exports.getSkuInfos=zt;exports.getThumbImage=Gt;exports.getValidOffer=qt;exports.navigateToSearchPage=Kr;exports.parseSearchState=Gr;exports.productHelpers=Cr;exports.resizingImg=Ht;exports.responsive=ee;exports.setVideoPlay=Qt;exports.splitNameAndSizeFromFullName=Ye;exports.styles=In;exports.updatedResizedImg=Kt;