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