@soma-vertical-web/multi-lib 1.0.20 → 1.0.21

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 P=require("react/jsx-runtime"),on=require("@soma-vertical-web/core-components"),Ee=(t,e=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:e?2:0}).format(t),Vt=({valueInCents:t,hasFree:e,freeTaxMessage:r})=>t===0?e?r:Ee(0):Ee(t/100),qt=(t,e)=>{const n=(t-e)*100/t;return Math.floor(n)},at=(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(),an=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 s;l&&(l.sellerId=i.sellerId,l.sellerName=i.sellerName,l.available=!0,l.isSellerDefault=i.sellerDefault);const{Price:c,ListPrice:f,PaymentOptions:{installmentOptions:u}}=i.commertialOffer;r.price=c,r.listPrice=f;const p=(s=u==null?void 0:u[0])==null?void 0:s.installments;if(p){const{count:d,value:y}=p[p.length-1];r.installments={count:d,value:y/100}}};let o=!0;const a=t.reduce((i,l)=>{var u;const c={name:l.name,sku:l.itemId,value:((u=l.Tamanho)==null?void 0:u[0])??at(l.nameComplete??l.name,e).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},f=l.sellers.filter(p=>(p.sellerDefault&&p.commertialOffer.IsAvailable&&(c.available=!0,n(p,c)),p.commertialOffer.IsAvailable));return!c.isSellerDefault&&f.length>0&&(c.available=!0,n(f[0],{...c,sellerId:f[0].sellerId,sellerName:f[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},ln=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())},cn=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Zt,formatPriceToCurrency:Ee,freightParsePrice:Vt,getAspectRatio:ln,getColorAndSizeFromSkuName:Kt,getDiscountPercent:qt,getFirstImages:or,getProductNameWithoutSku:Qt,getSKUName:Yt,getSkuInfos:Jt,getThumbImage:tr,getValidOffer:er,removeSlashes:an,resizingImg:rr,setVideoPlay:ar,splitNameAndSizeFromFullName:at,updatedResizedImg:nr},Symbol.toStringTag,{value:"Module"})),gt="fuzzy",ht="operator",un=t=>({isDepartment:t!=null&&t.length?t[0].key==="category-1":!1}),sn=(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,fn=t=>t.key==="operator"&&(t.value==="and"||t.value==="or"),pn=t=>t.type==="TEXT",yn=t=>t.key==="fuzzy"&&(t.value==="0"||t.value==="1"||t.value==="auto"),dn=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))}},vn=({key:t,values:e})=>({__typename:"FacetRange",key:t,values:e}),_n=(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=>pn(i)?dn(i):vn(i))},mn=(t,e)=>{const r=t.find(({key:o})=>o===gt)??null,n=t.find(({key:o})=>o===ht)??null;r&&yn(r)&&e.append(gt,r.value),n&&fn(n)&&e.append(ht,n.value)},gn=t=>t.map(e=>{const[r,n]=e.split("/");return{key:r,value:n}}),hn=(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}=un(n);return n==null?void 0:n.filter(a=>!ir(a.key,o))},Sn=({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:gn(r),term:o,base:o?"":t,page:a}},En=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},An=(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 bn(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}var 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 xe={};(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:""}}})(xe);var it={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const e=xe;function r(n,o){if(typeof n!="string")return!1;const{pathname:a}=(0,e.parsePath)(n);return a===o||a.startsWith(o+"/")}})(it);var ur={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(nn,_t){for(var mt in _t)Object.defineProperty(nn,mt,{enumerable:!0,get:_t[mt]})}e(t,{ACTION_SUFFIX:function(){return c},APP_DIR_ALIAS:function(){return q},CACHE_ONE_YEAR:function(){return I},DOT_NEXT_ALIAS:function(){return F},ESLINT_DEFAULT_DIRS:function(){return Zr},GSP_NO_RETURNED_VALUE:function(){return Vr},GSSP_COMPONENT_MEMBER_ERROR:function(){return Yr},GSSP_NO_RETURNED_VALUE:function(){return qr},INSTRUMENTATION_HOOK_FILENAME:function(){return M},MIDDLEWARE_FILENAME:function(){return w},MIDDLEWARE_LOCATION_REGEXP:function(){return G},NEXT_BODY_SUFFIX:function(){return p},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return _},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return y},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return h},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return d},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return x},NEXT_CACHE_TAGS_HEADER:function(){return s},NEXT_CACHE_TAG_MAX_ITEMS:function(){return A},NEXT_CACHE_TAG_MAX_LENGTH:function(){return O},NEXT_DATA_SUFFIX:function(){return f},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 V},PRERENDER_REVALIDATE_HEADER:function(){return o},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return a},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return re},ROOT_DIR_ALIAS:function(){return T},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return H},RSC_ACTION_ENCRYPTION_ALIAS:function(){return R},RSC_ACTION_PROXY_ALIAS:function(){return N},RSC_ACTION_VALIDATE_ALIAS:function(){return b},RSC_MOD_REF_PROXY_ALIAS:function(){return k},RSC_PREFETCH_SUFFIX:function(){return i},RSC_SUFFIX:function(){return l},SERVER_PROPS_EXPORT_ERROR:function(){return zr},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return de},SERVER_PROPS_SSG_CONFLICT:function(){return ne},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 Wr},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",f=".json",u=".meta",p=".body",s="x-next-cache-tags",d="x-next-cache-soft-tags",y="x-next-revalidated-tags",h="x-next-revalidate-tag-token",A=128,O=256,x=1024,_="_N_T_",I=31536e3,w="middleware",G=`(?:src/)?${w}`,M="instrumentation",V="private-next-pages",F="private-dot-next",T="private-next-root-dir",q="private-next-app-dir",k="private-next-rsc-mod-ref-proxy",b="private-next-rsc-action-validate",N="private-next-rsc-server-reference",R="private-next-rsc-action-encryption",H="private-next-rsc-action-client-wrapper",re="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",de="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",ne="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",Wr="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",zr="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",Vr="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"},S={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={...S,GROUP:{serverOnly:[S.reactServerComponents,S.actionBrowser,S.appMetadataRoute,S.appRouteHandler,S.instrument],clientOnly:[S.serverSideRendering,S.appPagesBrowser],nonClientServerTarget:[S.middleware,S.api],app:[S.reactServerComponents,S.actionBrowser,S.appMetadataRoute,S.appRouteHandler,S.serverSideRendering,S.appPagesBrowser,S.shared,S.instrument]}},rn={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}})(ur);var sr={},lt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return r}});const e=xe;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}})(lt);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const e=lt,r=it;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)}})(sr);var fr={};(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}}})(fr);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(f=>f.toLowerCase()===o))return l}}}})(pr);const ae={"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"},Pn="_header_9xxjk_57",Rn="_actions_9xxjk_131",On="_breadcrumb_9xxjk_142",xn="_credits_9xxjk_157",In="_pdplinks_9xxjk_185",wn="_similars_9xxjk_212",Tn="_sizes_9xxjk_251",Nn="_measurementTable_9xxjk_267",Cn="_measurementHead_9xxjk_280",Dn="_measurementRows_9xxjk_285",$n="_measurementRowsTitle_9xxjk_302",Fn="_measurementRowsText_9xxjk_314",Ln="_measurementImage_9xxjk_325",Mn="_measurementImageContainer_9xxjk_328",kn="_measurementContent_9xxjk_337",jn="_measurementTitle_9xxjk_341",Un="_measurementClose_9xxjk_352",Bn="_productref_9xxjk_417",Gn="_slideOut_9xxjk_1",Hn="_slideIn_9xxjk_1",Xn="_content_9xxjk_397",Wn="_pdp_9xxjk_185",zn="_divider_9xxjk_575",Vn={"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:Pn,"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:Rn,"add-to-cart":"_add-to-cart_9xxjk_138",breadcrumb:On,"breadcrumb--active":"_breadcrumb--active_9xxjk_147",credits:xn,"gallery-carousel-modifier":"_gallery-carousel-modifier_9xxjk_162",pdplinks:In,"links-wrapper":"_links-wrapper_9xxjk_195",similars:wn,"similars-info":"_similars-info_9xxjk_224","toggle-style-modifier":"_toggle-style-modifier_9xxjk_233","accessibility-info":"_accessibility-info_9xxjk_237",sizes:Tn,"price-wrapper":"_price-wrapper_9xxjk_263",measurementTable:Nn,measurementHead:Cn,measurementRows:Dn,measurementRowsTitle:$n,measurementRowsText:Fn,measurementImage:Ln,measurementImageContainer:Mn,measurementContent:kn,measurementTitle:jn,measurementClose:Un,"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:Bn,"tabs-panel":"_tabs-panel_9xxjk_428","tabs-panel-exit":"_tabs-panel-exit_9xxjk_434",slideOut:Gn,"tabs-panel-enter":"_tabs-panel-enter_9xxjk_438",slideIn:Hn,content:Xn,pdp:Wn,"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:zn,"breadcrumbs-desktop":"_breadcrumbs-desktop_9xxjk_580","breadcrumbs-mobile":"_breadcrumbs-mobile_9xxjk_589"},qn=({children:t,data:e,SectionZone:r,className:n})=>{var u,p;const o=((u=e==null?void 0:e.filter(s=>{var d,y;return((y=(d=s.config)==null?void 0:d.responsive)==null?void 0:y.deviceType)==="mobile"})[0])==null?void 0:u.sections)||[],a=((p=e==null?void 0:e.filter(s=>{var d,y;return((y=(d=s.config)==null?void 0:d.responsive)==null?void 0:y.deviceType)==="desktop"})[0])==null?void 0:p.sections)||[],i=o.slice(0,1),l=o.slice(1,o.length),c=a.slice(0,1),f=a.slice(1,a.length);return P.jsxs(P.Fragment,{children:[P.jsxs("div",{className:n,children:[P.jsx("div",{className:ae["responsive-mobile-flex"],children:P.jsx(r,{data:i??[]})}),P.jsx("div",{className:ae["responsive-desktop-flex"],children:P.jsx(r,{data:c??[]})})]}),t,P.jsx("div",{className:ae["responsive-mobile-flex"],children:P.jsx(r,{data:l??[]})}),P.jsx("div",{className:ae["responsive-desktop-flex"],children:P.jsx(r,{data:f??[]})}),P.jsx(on.Utils.Divider,{})]})};var te=TypeError;const Kn={},Yn=Object.freeze(Object.defineProperty({__proto__:null,default:Kn},Symbol.toStringTag,{value:"Module"})),Qn=bn(Yn);var ct=typeof Map=="function"&&Map.prototype,Fe=Object.getOwnPropertyDescriptor&&ct?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ae=ct&&Fe&&typeof Fe.get=="function"?Fe.get:null,Et=ct&&Map.prototype.forEach,ut=typeof Set=="function"&&Set.prototype,Le=Object.getOwnPropertyDescriptor&&ut?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,be=ut&&Le&&typeof Le.get=="function"?Le.get:null,At=ut&&Set.prototype.forEach,Jn=typeof WeakMap=="function"&&WeakMap.prototype,ie=Jn?WeakMap.prototype.has:null,Zn=typeof WeakSet=="function"&&WeakSet.prototype,le=Zn?WeakSet.prototype.has:null,eo=typeof WeakRef=="function"&&WeakRef.prototype,bt=eo?WeakRef.prototype.deref:null,to=Boolean.prototype.valueOf,ro=Object.prototype.toString,no=Function.prototype.toString,oo=String.prototype.match,st=String.prototype.slice,j=String.prototype.replace,ao=String.prototype.toUpperCase,Pt=String.prototype.toLowerCase,yr=RegExp.prototype.test,Rt=Array.prototype.concat,$=Array.prototype.join,io=Array.prototype.slice,Ot=Math.floor,Ze=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Me=Object.getOwnPropertySymbols,et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Z=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ce=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Z||!0)?Symbol.toStringTag:null,dr=Object.prototype.propertyIsEnumerable,xt=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function It(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||yr.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Ot(-t):Ot(t);if(n!==t){var o=String(n),a=st.call(e,o.length+1);return j.call(o,r,"$&_")+"."+j.call(j.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return j.call(e,r,"$&_")}var tt=Qn,wt=tt.custom,Tt=mr(wt)?wt:null,vr={__proto__:null,double:'"',single:"'"},lo={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Ie=function t(e,r,n,o){var a=r||{};if(L(a,"quoteStyle")&&!L(vr,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(L(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=L(a,"customInspect")?a.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(L(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(L(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=a.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return hr(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return l?It(e,c):c}if(typeof e=="bigint"){var f=String(e)+"n";return l?It(e,f):f}var u=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=u&&u>0&&typeof e=="object")return rt(e)?"[Array]":"[Object]";var p=Oo(a,n);if(typeof o>"u")o=[];else if(gr(o,e)>=0)return"[Circular]";function s(b,N,R){if(N&&(o=io.call(o),o.push(N)),R){var H={depth:a.depth};return L(a,"quoteStyle")&&(H.quoteStyle=a.quoteStyle),t(b,H,n+1,o)}return t(b,a,n+1,o)}if(typeof e=="function"&&!Nt(e)){var d=mo(e),y=ve(e,s);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(y.length>0?" { "+$.call(y,", ")+" }":"")}if(mr(e)){var h=Z?j.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):et.call(e);return typeof e=="object"&&!Z?oe(h):h}if(bo(e)){for(var A="<"+Pt.call(String(e.nodeName)),O=e.attributes||[],x=0;x<O.length;x++)A+=" "+O[x].name+"="+_r(co(O[x].value),"double",a);return A+=">",e.childNodes&&e.childNodes.length&&(A+="..."),A+="</"+Pt.call(String(e.nodeName))+">",A}if(rt(e)){if(e.length===0)return"[]";var _=ve(e,s);return p&&!Ro(_)?"["+nt(_,p)+"]":"[ "+$.call(_,", ")+" ]"}if(so(e)){var I=ve(e,s);return!("cause"in Error.prototype)&&"cause"in e&&!dr.call(e,"cause")?"{ ["+String(e)+"] "+$.call(Rt.call("[cause]: "+s(e.cause),I),", ")+" }":I.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+$.call(I,", ")+" }"}if(typeof e=="object"&&i){if(Tt&&typeof e[Tt]=="function"&&tt)return tt(e,{depth:u-n});if(i!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(go(e)){var w=[];return Et&&Et.call(e,function(b,N){w.push(s(N,e,!0)+" => "+s(b,e))}),Ct("Map",Ae.call(e),w,p)}if(Eo(e)){var G=[];return At&&At.call(e,function(b){G.push(s(b,e))}),Ct("Set",be.call(e),G,p)}if(ho(e))return ke("WeakMap");if(Ao(e))return ke("WeakSet");if(So(e))return ke("WeakRef");if(po(e))return oe(s(Number(e)));if(vo(e))return oe(s(Ze.call(e)));if(yo(e))return oe(to.call(e));if(fo(e))return oe(s(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(!uo(e)&&!Nt(e)){var M=ve(e,s),V=xt?xt(e)===Object.prototype:e instanceof Object||e.constructor===Object,F=e instanceof Object?"":"null prototype",T=!V&&ce&&Object(e)===e&&ce in e?st.call(B(e),8,-1):F?"Object":"",q=V||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",k=q+(T||F?"["+$.call(Rt.call([],T||[],F||[]),": ")+"] ":"");return M.length===0?k+"{}":p?k+"{"+nt(M,p)+"}":k+"{ "+$.call(M,", ")+" }"}return String(e)};function _r(t,e,r){var n=r.quoteStyle||e,o=vr[n];return o+t+o}function co(t){return j.call(String(t),/"/g,"&quot;")}function z(t){return!ce||!(typeof t=="object"&&(ce in t||typeof t[ce]<"u"))}function rt(t){return B(t)==="[object Array]"&&z(t)}function uo(t){return B(t)==="[object Date]"&&z(t)}function Nt(t){return B(t)==="[object RegExp]"&&z(t)}function so(t){return B(t)==="[object Error]"&&z(t)}function fo(t){return B(t)==="[object String]"&&z(t)}function po(t){return B(t)==="[object Number]"&&z(t)}function yo(t){return B(t)==="[object Boolean]"&&z(t)}function mr(t){if(Z)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!et)return!1;try{return et.call(t),!0}catch{}return!1}function vo(t){if(!t||typeof t!="object"||!Ze)return!1;try{return Ze.call(t),!0}catch{}return!1}var _o=Object.prototype.hasOwnProperty||function(t){return t in this};function L(t,e){return _o.call(t,e)}function B(t){return ro.call(t)}function mo(t){if(t.name)return t.name;var e=oo.call(no.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function gr(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 go(t){if(!Ae||!t||typeof t!="object")return!1;try{Ae.call(t);try{be.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function ho(t){if(!ie||!t||typeof t!="object")return!1;try{ie.call(t,ie);try{le.call(t,le)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function So(t){if(!bt||!t||typeof t!="object")return!1;try{return bt.call(t),!0}catch{}return!1}function Eo(t){if(!be||!t||typeof t!="object")return!1;try{be.call(t);try{Ae.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function Ao(t){if(!le||!t||typeof t!="object")return!1;try{le.call(t,le);try{ie.call(t,ie)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function bo(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function hr(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return hr(st.call(t,0,e.maxStringLength),e)+n}var o=lo[e.quoteStyle||"single"];o.lastIndex=0;var a=j.call(j.call(t,o,"\\$1"),/[\x00-\x1f]/g,Po);return _r(a,"single",e)}function Po(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":"")+ao.call(e.toString(16))}function oe(t){return"Object("+t+")"}function ke(t){return t+" { ? }"}function Ct(t,e,r,n){var o=n?nt(r,n):$.call(r,", ");return t+" ("+e+") {"+o+"}"}function Ro(t){for(var e=0;e<t.length;e++)if(gr(t[e],`
2
+ `)>=0)return!1;return!0}function Oo(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=$.call(Array(t.indent+1)," ");else return null;return{base:r,prev:$.call(Array(e+1),r)}}function nt(t,e){if(t.length===0)return"";var r=`
3
+ `+e.prev+e.base;return r+$.call(t,","+r)+`
4
+ `+e.prev}function ve(t,e){var r=rt(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=L(t,o)?e(t[o],t):""}var a=typeof Me=="function"?Me(t):[],i;if(Z){i={};for(var l=0;l<a.length;l++)i["$"+a[l]]=a[l]}for(var c in t)L(t,c)&&(r&&String(Number(c))===c&&c<t.length||Z&&i["$"+c]instanceof Symbol||(yr.call(/[^\w$]/,c)?n.push(e(c,t)+": "+e(t[c],t)):n.push(c+": "+e(t[c],t))));if(typeof Me=="function")for(var f=0;f<a.length;f++)dr.call(t,a[f])&&n.push("["+e(a[f])+"]: "+e(t[a[f]],t));return n}var xo=Ie,Io=te,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},wo=function(t,e){if(t){var r=we(t,e);return r&&r.value}},To=function(t,e,r){var n=we(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},No=function(t,e){return t?!!we(t,e):!1},Co=function(t,e){if(t)return we(t,e,!0)},Do=function(){var e,r={assert:function(n){if(!r.has(n))throw new Io("Side channel does not contain "+xo(n))},delete:function(n){var o=e&&e.next,a=Co(e,n);return a&&o&&o===a&&(e=void 0),!!a},get:function(n){return wo(e,n)},has:function(n){return No(e,n)},set:function(n,o){e||(e={next:void 0}),To(e,n,o)}};return r},Sr=Object,$o=Error,Fo=EvalError,Lo=RangeError,Mo=ReferenceError,ko=SyntaxError,jo=URIError,Uo=Math.abs,Bo=Math.floor,Go=Math.max,Ho=Math.min,Xo=Math.pow,Wo=Math.round,zo=Number.isNaN||function(e){return e!==e},Vo=zo,qo=function(e){return Vo(e)||e===0?e:e<0?-1:1},Ko=Object.getOwnPropertyDescriptor,me=Ko;if(me)try{me([],"length")}catch{me=null}var Er=me,ge=Object.defineProperty||!1;if(ge)try{ge({},"a",{value:1})}catch{ge=!1}var Yo=ge,je,Dt;function Qo(){return Dt||(Dt=1,je=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(var a in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(e,r);if(l.value!==o||l.enumerable!==!0)return!1}return!0}),je}var Ue,$t;function Jo(){if($t)return Ue;$t=1;var t=typeof Symbol<"u"&&Symbol,e=Qo();return Ue=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Ue}var Be,Ft;function Ar(){return Ft||(Ft=1,Be=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Be}var Ge,Lt;function br(){if(Lt)return Ge;Lt=1;var t=Sr;return Ge=t.getPrototypeOf||null,Ge}var Zo="Function.prototype.bind called on incompatible ",ea=Object.prototype.toString,ta=Math.max,ra="[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},na=function(e,r){for(var n=[],o=r,a=0;o<e.length;o+=1,a+=1)n[a]=e[o];return n},oa=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r},aa=function(e){var r=this;if(typeof r!="function"||ea.apply(r)!==ra)throw new TypeError(Zo+r);for(var n=na(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=ta(0,r.length-n.length),l=[],c=0;c<i;c++)l[c]="$"+c;if(o=Function("binder","return function ("+oa(l,",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var f=function(){};f.prototype=r.prototype,o.prototype=new f,f.prototype=null}return o},ia=aa,Te=Function.prototype.bind||ia,ft=Function.prototype.call,He,kt;function Pr(){return kt||(kt=1,He=Function.prototype.apply),He}var la=typeof Reflect<"u"&&Reflect&&Reflect.apply,ca=Te,ua=Pr(),sa=ft,fa=la,pa=fa||ca.call(sa,ua),ya=Te,da=te,va=ft,_a=pa,Rr=function(e){if(e.length<1||typeof e[0]!="function")throw new da("a function is required");return _a(ya,va,e)},Xe,jt;function ma(){if(jt)return Xe;jt=1;var t=Rr,e=Er,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 Xe=n&&typeof n.get=="function"?t([n.get]):typeof a=="function"?function(l){return a(l==null?l:o(l))}:!1,Xe}var We,Ut;function ga(){if(Ut)return We;Ut=1;var t=Ar(),e=br(),r=ma();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 ze,Bt;function ha(){if(Bt)return ze;Bt=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=Te;return ze=r.call(t,e),ze}var v,Sa=Sr,Ea=$o,Aa=Fo,ba=Lo,Pa=Mo,ee=ko,J=te,Ra=jo,Oa=Uo,xa=Bo,Ia=Go,wa=Ho,Ta=Xo,Na=Wo,Ca=qo,Or=Function,Ve=function(t){try{return Or('"use strict"; return ('+t+").constructor;")()}catch{}},se=Er,Da=Yo,qe=function(){throw new J},$a=se?function(){try{return arguments.callee,qe}catch{try{return se(arguments,"callee").get}catch{return qe}}}():qe,K=Jo()(),E=ga(),Fa=br(),La=Ar(),xr=Pr(),fe=ft,Q={},Ma=typeof Uint8Array>"u"||!E?v:E(Uint8Array),W={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?v:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?v:ArrayBuffer,"%ArrayIteratorPrototype%":K&&E?E([][Symbol.iterator]()):v,"%AsyncFromSyncIteratorPrototype%":v,"%AsyncFunction%":Q,"%AsyncGenerator%":Q,"%AsyncGeneratorFunction%":Q,"%AsyncIteratorPrototype%":Q,"%Atomics%":typeof Atomics>"u"?v:Atomics,"%BigInt%":typeof BigInt>"u"?v:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?v:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?v:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?v:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Ea,"%eval%":eval,"%EvalError%":Aa,"%Float16Array%":typeof Float16Array>"u"?v:Float16Array,"%Float32Array%":typeof Float32Array>"u"?v:Float32Array,"%Float64Array%":typeof Float64Array>"u"?v:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?v:FinalizationRegistry,"%Function%":Or,"%GeneratorFunction%":Q,"%Int8Array%":typeof Int8Array>"u"?v:Int8Array,"%Int16Array%":typeof Int16Array>"u"?v:Int16Array,"%Int32Array%":typeof Int32Array>"u"?v:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":K&&E?E(E([][Symbol.iterator]())):v,"%JSON%":typeof JSON=="object"?JSON:v,"%Map%":typeof Map>"u"?v:Map,"%MapIteratorPrototype%":typeof Map>"u"||!K||!E?v:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Sa,"%Object.getOwnPropertyDescriptor%":se,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?v:Promise,"%Proxy%":typeof Proxy>"u"?v:Proxy,"%RangeError%":ba,"%ReferenceError%":Pa,"%Reflect%":typeof Reflect>"u"?v:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?v:Set,"%SetIteratorPrototype%":typeof Set>"u"||!K||!E?v:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?v:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":K&&E?E(""[Symbol.iterator]()):v,"%Symbol%":K?Symbol:v,"%SyntaxError%":ee,"%ThrowTypeError%":$a,"%TypedArray%":Ma,"%TypeError%":J,"%Uint8Array%":typeof Uint8Array>"u"?v:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?v:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?v:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?v:Uint32Array,"%URIError%":Ra,"%WeakMap%":typeof WeakMap>"u"?v:WeakMap,"%WeakRef%":typeof WeakRef>"u"?v:WeakRef,"%WeakSet%":typeof WeakSet>"u"?v:WeakSet,"%Function.prototype.call%":fe,"%Function.prototype.apply%":xr,"%Object.defineProperty%":Da,"%Object.getPrototypeOf%":Fa,"%Math.abs%":Oa,"%Math.floor%":xa,"%Math.max%":Ia,"%Math.min%":wa,"%Math.pow%":Ta,"%Math.round%":Na,"%Math.sign%":Ca,"%Reflect.getPrototypeOf%":La};if(E)try{null.error}catch(t){var ka=E(E(t));W["%Error.prototype%"]=ka}var ja=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&&E&&(r=E(o.prototype))}return W[e]=r,r},Gt={__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"]},pe=Te,Pe=ha(),Ua=pe.call(fe,Array.prototype.concat),Ba=pe.call(xr,Array.prototype.splice),Ht=pe.call(fe,String.prototype.replace),Re=pe.call(fe,String.prototype.slice),Ga=pe.call(fe,RegExp.prototype.exec),Ha=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Xa=/\\(\\)?/g,Wa=function(e){var r=Re(e,0,1),n=Re(e,-1);if(r==="%"&&n!=="%")throw new ee("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ee("invalid intrinsic syntax, expected opening `%`");var o=[];return Ht(e,Ha,function(a,i,l,c){o[o.length]=l?Ht(c,Xa,"$1"):i||a}),o},za=function(e,r){var n=e,o;if(Pe(Gt,n)&&(o=Gt[n],n="%"+o[0]+"%"),Pe(W,n)){var a=W[n];if(a===Q&&(a=ja(n)),typeof a>"u"&&!r)throw new J("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new ee("intrinsic "+e+" does not exist!")},pt=function(e,r){if(typeof e!="string"||e.length===0)throw new J("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new J('"allowMissing" argument must be a boolean');if(Ga(/^%?[^%]*%?$/,e)===null)throw new ee("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Wa(e),o=n.length>0?n[0]:"",a=za("%"+o+"%",r),i=a.name,l=a.value,c=!1,f=a.alias;f&&(o=f[0],Ba(n,Ua([0,1],f)));for(var u=1,p=!0;u<n.length;u+=1){var s=n[u],d=Re(s,0,1),y=Re(s,-1);if((d==='"'||d==="'"||d==="`"||y==='"'||y==="'"||y==="`")&&d!==y)throw new ee("property names with quotes must have matching quotes");if((s==="constructor"||!p)&&(c=!0),o+="."+s,i="%"+o+"%",Pe(W,i))l=W[i];else if(l!=null){if(!(s in l)){if(!r)throw new J("base intrinsic for "+e+" exists, but the property is not available.");return}if(se&&u+1>=n.length){var h=se(l,s);p=!!h,p&&"get"in h&&!("originalValue"in h.get)?l=h.get:l=l[s]}else p=Pe(l,s),l=l[s];p&&!c&&(W[i]=l)}}return l},Ir=pt,wr=Rr,Va=wr([Ir("%String.prototype.indexOf%")]),Tr=function(e,r){var n=Ir(e,!!r);return typeof n=="function"&&Va(e,".prototype.")>-1?wr([n]):n},qa=pt,ye=Tr,Ka=Ie,Ya=te,Xt=qa("%Map%",!0),Qa=ye("Map.prototype.get",!0),Ja=ye("Map.prototype.set",!0),Za=ye("Map.prototype.has",!0),ei=ye("Map.prototype.delete",!0),ti=ye("Map.prototype.size",!0),Nr=!!Xt&&function(){var e,r={assert:function(n){if(!r.has(n))throw new Ya("Side channel does not contain "+Ka(n))},delete:function(n){if(e){var o=ei(e,n);return ti(e)===0&&(e=void 0),o}return!1},get:function(n){if(e)return Qa(e,n)},has:function(n){return e?Za(e,n):!1},set:function(n,o){e||(e=new Xt),Ja(e,n,o)}};return r},ri=pt,Ne=Tr,ni=Ie,_e=Nr,oi=te,Y=ri("%WeakMap%",!0),ai=Ne("WeakMap.prototype.get",!0),ii=Ne("WeakMap.prototype.set",!0),li=Ne("WeakMap.prototype.has",!0),ci=Ne("WeakMap.prototype.delete",!0),ui=Y?function(){var e,r,n={assert:function(o){if(!n.has(o))throw new oi("Side channel does not contain "+ni(o))},delete:function(o){if(Y&&o&&(typeof o=="object"||typeof o=="function")){if(e)return ci(e,o)}else if(_e&&r)return r.delete(o);return!1},get:function(o){return Y&&o&&(typeof o=="object"||typeof o=="function")&&e?ai(e,o):r&&r.get(o)},has:function(o){return Y&&o&&(typeof o=="object"||typeof o=="function")&&e?li(e,o):!!r&&r.has(o)},set:function(o,a){Y&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new Y),ii(e,o,a)):_e&&(r||(r=_e()),r.set(o,a))}};return n}:_e,si=te,fi=Ie,pi=Do,yi=Nr,di=ui,vi=di||yi||pi,Cr=function(){var e,r={assert:function(n){if(!r.has(n))throw new si("Side channel does not contain "+fi(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=vi()),e.set(n,o)}};return r},_i=String.prototype.replace,mi=/%20/g,Ke={RFC1738:"RFC1738",RFC3986:"RFC3986"},yt={default:Ke.RFC3986,formatters:{RFC1738:function(t){return _i.call(t,mi,"+")},RFC3986:function(t){return String(t)}},RFC1738:Ke.RFC1738,RFC3986:Ke.RFC3986},gi=yt,hi=Cr,Ye=Object.prototype.hasOwnProperty,X=Array.isArray,Ce=hi(),Dr=function(e,r){return Ce.set(e,r),e},Oe=function(e){return Ce.has(e)},ot=function(e){return Ce.get(e)},$r=function(e,r){Ce.set(e,r)},C=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),Si=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(X(n)){for(var o=[],a=0;a<n.length;++a)typeof n[a]<"u"&&o.push(n[a]);r.obj[r.prop]=o}}},dt=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},Ei=function t(e,r,n){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(X(e))e.push(r);else if(e&&typeof e=="object")if(Oe(e)){var o=ot(e)+1;e[o]=r,$r(e,o)}else(n&&(n.plainObjects||n.allowPrototypes)||!Ye.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object"){if(Oe(r)){for(var a=Object.keys(r),i=n&&n.plainObjects?{__proto__:null,0:e}:{0:e},l=0;l<a.length;l++){var c=parseInt(a[l],10);i[c+1]=r[a[l]]}return Dr(i,ot(r)+1)}return[e].concat(r)}var f=e;return X(e)&&!X(r)&&(f=dt(e,n)),X(e)&&X(r)?(r.forEach(function(u,p){if(Ye.call(e,p)){var s=e[p];s&&typeof s=="object"&&u&&typeof u=="object"?e[p]=t(s,u,n):e.push(u)}else e[p]=u}),e):Object.keys(r).reduce(function(u,p){var s=r[p];return Ye.call(u,p)?u[p]=t(u[p],s,n):u[p]=s,u},f)},Ai=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},bi=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,Pi=function(e,r,n,o,a){if(e.length===0)return e;var i=e;if(typeof e=="symbol"?i=Symbol.prototype.toString.call(e):typeof e!="string"&&(i=String(e)),n==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var l="",c=0;c<i.length;c+=Qe){for(var f=i.length>=Qe?i.slice(c,c+Qe):i,u=[],p=0;p<f.length;++p){var s=f.charCodeAt(p);if(s===45||s===46||s===95||s===126||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||a===gi.RFC1738&&(s===40||s===41)){u[u.length]=f.charAt(p);continue}if(s<128){u[u.length]=C[s];continue}if(s<2048){u[u.length]=C[192|s>>6]+C[128|s&63];continue}if(s<55296||s>=57344){u[u.length]=C[224|s>>12]+C[128|s>>6&63]+C[128|s&63];continue}p+=1,s=65536+((s&1023)<<10|f.charCodeAt(p)&1023),u[u.length]=C[240|s>>18]+C[128|s>>12&63]+C[128|s>>6&63]+C[128|s&63]}l+=u.join("")}return l},Ri=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 f=l[c],u=i[f];typeof u=="object"&&u!==null&&n.indexOf(u)===-1&&(r.push({obj:i,prop:f}),n.push(u))}return Si(r),e},Oi=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},xi=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Ii=function(e,r,n,o){if(Oe(e)){var a=ot(e)+1;return e[a]=r,$r(e,a),e}var i=[].concat(e,r);return i.length>n?Dr(dt(i,{plainObjects:o}),i.length-1):i},wi=function(e,r){if(X(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(r(e[o]));return n}return r(e)},Fr={arrayToObject:dt,assign:Ai,combine:Ii,compact:Ri,decode:bi,encode:Pi,isBuffer:xi,isOverflow:Oe,isRegExp:Oi,maybeMap:wi,merge:Ei},Lr=Cr,he=Fr,ue=yt,Ti=Object.prototype.hasOwnProperty,Mr={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},D=Array.isArray,Ni=Array.prototype.push,kr=function(t,e){Ni.apply(t,D(e)?e:[e])},Ci=Date.prototype.toISOString,Wt=ue.default,g={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:he.encode,encodeValuesOnly:!1,filter:void 0,format:Wt,formatter:ue.formatters[Wt],indices:!1,serializeDate:function(e){return Ci.call(e)},skipNulls:!1,strictNullHandling:!1},Di=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Je={},$i=function t(e,r,n,o,a,i,l,c,f,u,p,s,d,y,h,A,O,x){for(var _=e,I=x,w=0,G=!1;(I=I.get(Je))!==void 0&&!G;){var M=I.get(e);if(w+=1,typeof M<"u"){if(M===w)throw new RangeError("Cyclic object value");G=!0}typeof I.get(Je)>"u"&&(w=0)}if(typeof u=="function"?_=u(r,_):_ instanceof Date?_=d(_):n==="comma"&&D(_)&&(_=he.maybeMap(_,function(ne){return ne instanceof Date?d(ne):ne})),_===null){if(i)return f&&!A?f(r,g.encoder,O,"key",y):r;_=""}if(Di(_)||he.isBuffer(_)){if(f){var V=A?r:f(r,g.encoder,O,"key",y);return[h(V)+"="+h(f(_,g.encoder,O,"value",y))]}return[h(r)+"="+h(String(_))]}var F=[];if(typeof _>"u")return F;var T;if(n==="comma"&&D(_))A&&f&&(_=he.maybeMap(_,f)),T=[{value:_.length>0?_.join(",")||null:void 0}];else if(D(u))T=u;else{var q=Object.keys(_);T=p?q.sort(p):q}var k=c?String(r).replace(/\./g,"%2E"):String(r),b=o&&D(_)&&_.length===1?k+"[]":k;if(a&&D(_)&&_.length===0)return b+"[]";for(var N=0;N<T.length;++N){var R=T[N],H=typeof R=="object"&&R&&typeof R.value<"u"?R.value:_[R];if(!(l&&H===null)){var re=s&&c?String(R).replace(/\./g,"%2E"):String(R),$e=D(_)?typeof n=="function"?n(b,re):b:b+(s?"."+re:"["+re+"]");x.set(e,w);var de=Lr();de.set(Je,x),kr(F,t(H,$e,n,o,a,i,l,c,n==="comma"&&A&&D(_)?null:f,u,p,s,d,y,h,A,O,de))}}return F},Fi=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.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||g.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=ue.default;if(typeof e.format<"u"){if(!Ti.call(ue.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=ue.formatters[n],a=g.filter;(typeof e.filter=="function"||D(e.filter))&&(a=e.filter);var i;if(e.arrayFormat in Mr?i=e.arrayFormat:"indices"in e?i=e.indices?"indices":"repeat":i=g.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:g.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:g.addQueryPrefix,allowDots:l,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:g.allowEmptyArrays,arrayFormat:i,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:g.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?g.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:g.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:g.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:g.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:g.encodeValuesOnly,filter:a,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:g.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:g.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:g.strictNullHandling}},Li=function(t,e){var r=t,n=Fi(e),o,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):D(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 f=Lr(),u=0;u<o.length;++u){var p=o[u],s=r[p];n.skipNulls&&s===null||kr(i,$i(s,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,f))}var d=i.join(n.delimiter),y=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),d.length>0?y+d:""},U=Fr,Se=Object.prototype.hasOwnProperty,zt=Array.isArray,m={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},Mi=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},jr=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},ki="utf8=%26%2310003%3B",ji="utf8=%E2%9C%93",Ui=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,f=r.charset;if(r.charsetSentinel)for(c=0;c<i.length;++c)i[c].indexOf("utf8=")===0&&(i[c]===ji?f="utf-8":i[c]===ki&&(f="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("]="),s=p===-1?u.indexOf("="):p+1,d,y;if(s===-1?(d=r.decoder(u,m.decoder,f,"key"),y=r.strictNullHandling?null:""):(d=r.decoder(u.slice(0,s),m.decoder,f,"key"),d!==null&&(y=U.maybeMap(jr(u.slice(s+1),r,zt(n[d])?n[d].length:0),function(A){return r.decoder(A,m.decoder,f,"value")}))),y&&r.interpretNumericEntities&&f==="iso-8859-1"&&(y=Mi(String(y))),u.indexOf("[]=")>-1&&(y=zt(y)?[y]:y),d!==null){var h=Se.call(n,d);h&&r.duplicates==="combine"?n[d]=U.combine(n[d],y,r.arrayLimit,r.plainObjects):(!h||r.duplicates==="last")&&(n[d]=y)}}return n},Bi=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:jr(e,r,o),l=t.length-1;l>=0;--l){var c,f=t[l];if(f==="[]"&&r.parseArrays)U.isOverflow(i)?c=i:c=r.allowEmptyArrays&&(i===""||r.strictNullHandling&&i===null)?[]:U.combine([],i,r.arrayLimit,r.plainObjects);else{c=r.plainObjects?{__proto__:null}:{};var u=f.charAt(0)==="["&&f.charAt(f.length-1)==="]"?f.slice(1,-1):f,p=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,s=parseInt(p,10);!r.parseArrays&&p===""?c={0:i}:!isNaN(s)&&f!==p&&String(s)===p&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(c=[],c[s]=i):p!=="__proto__"&&(c[p]=i)}i=c}return i},Gi=function(e,r){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(r.depth<=0)return!r.plainObjects&&Se.call(Object.prototype,n)&&!r.allowPrototypes?void 0:[n];var o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,i=o.exec(n),l=i?n.slice(0,i.index):n,c=[];if(l){if(!r.plainObjects&&Se.call(Object.prototype,l)&&!r.allowPrototypes)return;c.push(l)}for(var f=0;(i=a.exec(n))!==null&&f<r.depth;){f+=1;var u=i[1].slice(1,-1);if(!r.plainObjects&&Se.call(Object.prototype,u)&&!r.allowPrototypes)return;c.push(i[1])}if(i){if(r.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");c.push("["+n.slice(i.index)+"]")}return c},Hi=function(e,r,n,o){if(e){var a=Gi(e,n);if(a)return Bi(a,r,n,o)}},Xi=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"||U.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}},Wi=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"?Ui(t,r):t,o=r.plainObjects?{__proto__:null}:{},a=Object.keys(n),i=0;i<a.length;++i){var l=a[i],c=Hi(l,n[l],r,typeof t=="string");o=U.merge(o,c,r)}return r.allowSparse===!0?o:U.compact(o)},zi=Li,Vi=Wi,qi=yt,Ki={formats:qi,parse:Vi,stringify:zi};const Yi=lr(Ki);async function De(t,e={},r){const{cms:n="cms"}=e;return fetch(`${t.href}?${Yi.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 vt(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 Ur(t){return Array.isArray(t)&&t.length>0?t[0]:Array.isArray(t)?null:t}async function Br(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(vt(`${t}${i}`,r)),c=await De(l,r,o);if(!c.ok)return console.error(`[Error fetching preview data]: ${t} - status: ${c.statusText}`),[];const f=await c.json(),u=e.findIndex(p=>p.documentId===f.id);return u!==-1?(e[u]=f,[...e]):[f,...e]}return e}const Qi=Object.freeze(Object.defineProperty({__proto__:null,createUrl:vt,fetchCMS:De,mergePreviewDocument:Br,spreadStrapiData:Ur},Symbol.toStringTag,{value:"Module"}));async function Gr(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?Ur(a):a}:{status:404,data:[],error:"No data found"}}async function Hr(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,f=!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),f=!!(u!=null&&u.hasNextPage),l++}while(f&&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 Br(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 Ji=Object.freeze(Object.defineProperty({__proto__:null,strapiCMSData:Gr,vtexCMSData:Hr},Symbol.toStringTag,{value:"Module"}));async function Zi({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 Xr(t,e={},r){const{cms:n="vtex"}=e??{};try{const o=new URL(vt(t,e));return n!=="vtex"?Gr(o,e,r):Hr(t,o,e)}catch(o){return console.error(`[Fetch ContentType Error CMS ${n}]`,o),r?{status:400,data:null}:{status:200,data:[]}}}const el=Object.freeze(Object.defineProperty({__proto__:null,fetchContentType:Xr,getCMSContentType:Zi},Symbol.toStringTag,{value:"Module"}));exports.SearchPageScreening=qn;exports.addLocale=sr;exports.addPathPrefix=lt;exports.addSearchParamsFacets=mn;exports.cms=el;exports.cmsHelpers=Ji;exports.cmsUtils=Qi;exports.constants=ur;exports.convertSearchParams=En;exports.detectDomainLocale=pr;exports.disableSKU=Zt;exports.fetchContentType=Xr;exports.filterNonCategorySelected=sn;exports.filterNonRootFacets=hn;exports.formatPriceToCurrency=Ee;exports.formattedFacets=_n;exports.freightParsePrice=Vt;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.navigateToSearchPage=An;exports.normalizeLocalePath=fr;exports.parsePath=xe;exports.parseSearchState=Sn;exports.pathHasPrefix=it;exports.productHelpers=cn;exports.removeTrailingSlash=cr;exports.resizingImg=rr;exports.responsive=ae;exports.setVideoPlay=ar;exports.splitNameAndSizeFromFullName=at;exports.styles=Vn;exports.updatedResizedImg=nr;