1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7569],{7569:(e,t,r)=>{"use strict";r.r(t),r.d(t,{AgentProviderClientComponent:()=>b,useAgent:()=>w});var o=r(95155),i=r(12115),a=r(40555),n=r(82849),s=r(97810),d=r(36571),l=r(14898),c=r(50122),u=r(68585),p=r(78229),h=r(66119);function v(e){var t,r,o,i,a,n,s,d,l,c,u;return{warehouseId:e.salesLocationId??"",name:Array.isArray(e.name)?e.name:[],distance:e.distance,distanceUnit:e.distanceUnit??void 0,type:{code:"Warehouse",name:Array.isArray(null==(t=e.type)?void 0:t.name)?e.type.name:[]},subType:{code:(null==(r=e.subType)?void 0:r.code)??"",name:(null==(o=e.subType)?void 0:o.name)??[]},address:{line1:(null==(i=e.address)?void 0:i.line1)??"",city:(null==(a=e.address)?void 0:a.city)??"",territory:(null==(n=e.address)?void 0:n.territory)??"",postalCode:(null==(s=e.address)?void 0:s.postalCode)??"",countryName:(null==(d=e.address)?void 0:d.countryName)??"",latitude:(null==(l=e.address)?void 0:l.latitude)??0,longitude:(null==(c=e.address)?void 0:c.longitude)??0,geoText:(null==(u=e.address)?void 0:u.geoText)??""},phone:e.phone??"",timeZone:e.timeZone??"",hours:Array.isArray(e.hours)?e.hours:[],holidays:Array.isArray(e.holidays)?e.holidays:[],services:Array.isArray(e.services)?e.services:[],regionCode:e.regionCode??"",openingDate:e.openingDate??"",gasPrices:null}}let g={USBC:"10301",USBD:"11301",CABC:"10302",CABD:"11303"},y=(e,t)=>{let r=10**t;return Math.round(e*r)/r},f=null,m=(0,i.createContext)(void 0),b=e=>{let[t,r]=(0,i.useState)();return(0,i.useEffect)(()=>{"u">typeof window&&r((e=>{if(f)return f;let t=(e,t)=>{if(e)return"string"==typeof e?e:e[t]||e[t.toLowerCase()]||e[t.toUpperCase()]},r=(e,r,o)=>{let i=((e,r)=>{let o=t(e["client-id"],r);if(!o)throw Error("client-id header is not configured for locale");return o})(e,o),a=t(e["client-identifier"],o),n={};return Object.entries(e).forEach(([e,t])=>{"string"==typeof t&&(n[e]=t)}),{...n,Authorization:r,"client-id":i,...a?{"client-identifier":a}:{}}};return f={addToListLegacy:({clientIdLegacy:t,itemNumber:r,listId:o,listName:i,locale:n,localeModuleKey:s,operationName:d,quantity:l})=>{var c,u,p,v,y,f,m,b;let w=null==(u=null==(c=null==e?void 0:e.api)?void 0:c.addToListLegacy)?void 0:u.endpoint,$=Object.keys(a.r).find(e=>a.r[e]===n),A={...null==(v=null==(p=null==e?void 0:e.api)?void 0:p.addToListLegacy)?void 0:v.requiredRequestParameters,authToken:encodeURIComponent(t),langId:$||"-1",operationName:d,storeId:g[s.toUpperCase()]};void 0!==o&&(A.listId=o,A.requisitionListId=o),void 0!==i&&(A.listidname=i,A.name=i),"AddNewWishList"===d&&(A.requisitionListId="-1001"),void 0!==r&&(A.partNumber=r),void 0!==l&&(A.quantity=l);let S=new URLSearchParams;Object.entries(A).forEach(([e,t])=>{S.append(e,"object"==typeof t?JSON.stringify(t):String(t))});let L={body:S.toString(),credentials:"include",headers:null==(f=null==(y=null==e?void 0:e.api)?void 0:y.addToListLegacy)?void 0:f.headers,method:null==(b=null==(m=null==e?void 0:e.api)?void 0:m.addToListLegacy)?void 0:b.method};return(0,h.$3)(w,L,e.api.addToListLegacy.timeout,!1).then(e=>e)},addToExistingList:(t,o,i,a,n)=>{if(!n)throw Error("locale Module key has to be passed");if(!t)throw Error("Authorization cookie has to be passed");let s=e.api.addToExistingListV2??e.api.addToExistingList,d=s.endpoint.replace("{listId}",a),l={body:JSON.stringify({...s.body,comment:"",itemNumber:i,quantity:o}),headers:r(s.headers,e.api.addToExistingListV2?`Bearer ${t}`:t,n),method:"POST"};return(0,h.$3)(d,l,s.timeout,!1).then(e=>e)},addToNewList:(t,o,i,a,n)=>{if(!n)throw Error("locale Module key has to be passed");if(!t)throw Error("Authorization cookie has to be passed");let s=e.api.addToNewListV2??e.api.addToNewList,d=s.endpoint,l={body:JSON.stringify({...s.body,description:"",items:[{itemNumber:i,quantity:o}],title:a}),headers:r(s.headers,e.api.addToNewListV2?`Bearer ${t}`:t,n),method:"POST"};return(0,h.$3)(d,l,s.timeout,!1).then(e=>e)},createNewWishList:async(t,o,i)=>{if(!i)throw Error("locale Module key has to be passed");if(!t)throw Error("Authorization cookie has to be passed");let a=e.api.addToNewListV2??e.api.addToNewList,n=a.endpoint,s={body:JSON.stringify({description:"",title:o,type:"WishList"}),headers:{...r(a.headers,e.api.addToNewListV2?`Bearer ${t}`:t,i),accept:"application/json"},method:"POST"};try{let e=await fetch(n,s);if(!e.ok)if((null==e?void 0:e.status)===403)return{status:"error",message:"Prohibited"};else if((null==e?void 0:e.status)===409)return{status:"error",message:"Duplicate"};else return{status:"error",message:"Default"};let t=await e.json();return t.status="success",t.message="List created successfully",t}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)throw Error(`Request aborted: ${e.message}`);throw e}},fetchWishLists:async(t,o)=>{if(!o)throw Error("locale Module key has to be passed");if(!t)throw Error("Authorization cookie has to be passed");let i=e.api.addToNewListV2??e.api.addToNewList,a=i.endpoint,n={headers:r(i.headers,e.api.addToNewListV2?`Bearer ${t}`:t,o),timeout:i.timeout};try{let e=await fetch(a,n);return await e.json()}catch(e){throw e}},getBingAutosuggest:(t,r,o)=>{let i=`${e.api.bingAutosuggest.endpoint}?query=${t}
1&includeEntityTypes=${e.api.bingAutosuggest.entityTypes}&ul=${r},${e.api.bingAutosuggest.confidenceRadius}&cf=${o}&maxResults=${e.api.bingAutosuggest.maxResults}&key=${e.api.bingAutosuggest.apiKey}`;return(0,h.$3)(i,{headers:{}},3e4,!1).then(e=>e)},getBingLocation:t=>{let r=`${e.api.bingLocation.endpoint}?q=${t}&maxResults=${e.api.bingLocation.maxResults}&key=${e.api.bingLocation.apiKey}`;return(0,h.$3)(r,{headers:{},method:"GET"},3e4).then(e=>e)},getBrandfolderData:async(e,t,r)=>{let o={method:"GET",headers:{"client-identifier":t||"",...r??{}}};return(0,h.$3)(e,o,3e4,!0,6e5).then(e=>e)},getBatchApiData:async(e,t)=>(0,h.$3)(e,t,3e4,!0,12e4).then(e=>e),getCheckoutWarehouse:async(t,r,o,i,a)=>{let n=window.location.origin,s=`${n}${e.api.warehouseUpdateService.endpoint}?warehouseId=${t}&warehouseDrawer=${r}&itemType=${o}&pageName=${i}&orderItemId=${a}`;return(0,h.$3)(s,{body:{},headers:{},method:"POST",withCredentials:!0},3e4,!1).then(e=>e)},getDistributionCenters:(t,r)=>{var o,i,a,n;let s=`${e.api.locationCatalogAPIService.endpoint}?destinationPostalCode=${r}`;t&&(s=`${s}&stateCode=${t}`);let d={headers:{"client-identifier":e.api.locationCatalogAPIService.requiredRequestHeaders.client_identifier,"costco.env":null==(i=null==(o=e.api.locationCatalogAPIService.requiredRequestHeaders)?void 0:o.costco)?void 0:i.env,"costco.service":null==(n=null==(a=e.api.locationCatalogAPIService.requiredRequestHeaders)?void 0:a.costco)?void 0:n.service}};return(0,h.$3)(s,d,e.api.locationCatalogAPIService.timeout,!1).then(e=>e)},getGeoServiceLocation:(t,r)=>{let o=`${e.api.geoCodeService.endpoint}?q=${t}${r?`&country=${r}`:""}`,i={headers:{...e.api.geoCodeService.headers},method:"GET"};return(0,h.$3)(o,i,e.api.geoCodeService.timeout).then(e=>e)},businessDeliveryZipValidation:(t,r,o)=>{var i,a,n,s;let d="CABC";if(e.api.businessDeliveryZipValidationAPI){let l=`${e.api.businessDeliveryZipValidationAPI.endpoint}`,c={zipCodeFormDeliveryZipCode:t,currentZipCode:decodeURIComponent(r||""),redirectURL:"SetDeliveryZip",submitButton:"form-SetDeliveryZip",checkoutPage:"SetDeliveryZip",userSelectionDeliveryMethod:"",isInitiatedFromChangeAddressType:!!o||""};(null==(i=e.api.businessDeliveryZipValidationAPI.requiredRequestParams[d])?void 0:i.storeId)&&(c.storeId=`${null==(a=e.api.businessDeliveryZipValidationAPI.requiredRequestParams[d])?void 0:a.storeId}`),(null==(n=e.api.businessDeliveryZipValidationAPI.requiredRequestParams[d])?void 0:n.catalogId)&&(c.catalogId=`${null==(s=e.api.businessDeliveryZipValidationAPI.requiredRequestParams[d])?void 0:s.catalogId}`);let u=new URLSearchParams(c).toString();return(0,h.$3)(l,{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},method:"POST",body:u},e.api.businessDeliveryZipValidationAPI.timeout,!1).then(e=>e)}},businessDeliveryBrowse:(t,r,o="",i="")=>{var n,s,d,l;let c="CABC";if(e.api.businessDeliveryBrowseAPI){let u=Object.keys(a.r).find(e=>a.r[e]===t),p=`${e.api.businessDeliveryBrowseAPI.endpoint}`,v={redirectURL:"SetDeliveryZip",submitButton:"form-SetDeliveryZip",checkoutPage:"SetDeliveryZip",langId:u||"-24",zipCodeFormDeliveryZipCode:r,userSelectionDeliveryMethod:i};r&&(v.currentZipCode=decodeURIComponent(o||"")),(null==(n=e.api.businessDeliveryBrowseAPI.requiredRequestParams[c])?void 0:n.storeId)&&(v.storeId=`${null==(s=e.api.businessDeliveryBrowseAPI.requiredRequestParams[c])?void 0:s.storeId}`),(null==(d=e.api.businessDeliveryBrowseAPI.requiredRequestParams[c])?void 0:d.catalogId)&&(v.catalogId=`${null==(l=e.api.businessDeliveryBrowseAPI.requiredRequestParams[c])?void 0:l.catalogId}`);let g=new URLSearchParams(v).toString();return(0,h.$3)(p,{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},method:"POST",body:g,credentials:"include"},e.api.businessDeliveryBrowseAPI.timeout,!1).then(async e=>{let t,r,o;if(f&&!e.errorMessage&&e.SetDeliveryZip)try{let i=await f.getGeoServiceLocation(e.SetDeliveryZip),a=null==i?void 0:i[0];t=null==a?void 0:a.city,o=null==a?void 0:a.country,r=null==a?void 0:a.stateProvinceAbbreviation}catch(e){}return{...e,city:t,state:r,country:o}})}},getMegaMenu:async(e,t,r,o,i,a)=>{let n,{endpoint:s,required_request_parameters:d,required_request_headers:l,timeout:c,disablecache:u}=e,{chdmegamenu:p=!0}=d??{};n="string"==typeof(null==d?void 0:d.locale)?null==d?void 0:d.locale:null==d?void 0:d.locale[o.substring(0,2)];let v=new URLSearchParams({locale:`${n}`});if(t){let e=`${t}`;e.includes("-ND")?(e=e.replace("-ND",""),v.append("loc",e),v.append("nationalDelivery","true")):v.append("loc",e)}r&&v.append("bypasslocation","1"),p&&v.append("chdmegamenu",`${p}
1`),i&&v.append("userLocation",i),a&&v.append("userPostal",a);let g=`${s}?${v}`;return(0,h.$3)(g,{headers:l,method:"GET"},c,!u).then(e=>e)},getMembershipStatus:async t=>{var r,o;let i,a;if(e.api.welcomeMessageApiFeatureFlag){i=e.api.getWelcomeMessage.endpoint;let r=(0,d.$Y)()||e.api.getWelcomeMessage.headers["gcp-costco-env"];a={headers:{...e.api.getWelcomeMessage.headers,"x-lang-id":await (0,d.Z0)()||"","Costco-Tracking-Id":crypto.randomUUID(),...r&&{"gcp-costco-env":r},authorization:`Bearer ${t}`},method:e.api.getWelcomeMessage.method}}else{i=e.api.membershipStatus.endpoint;let n=e.api.membershipStatus.headers["costco.env"],s=e.api.membershipStatus.headers["costco.service"],d="u">typeof window?null==(o=null==(r=null==window?void 0:window.location)?void 0:r.hostname)?void 0:o.replace(/\.costco\.com|\.costco\.ca/gi,""):"default",l="string"==typeof n?n:null==n?void 0:n[d],c="string"==typeof s?s:null==s?void 0:s[d];a={headers:{...e.api.membershipStatus.headers,"costco.env":l,"costco.service":c,"costco-x-authorization":`Bearer ${t}`}}}return(0,h.$3)(i,a,3e4,!1).then(e=>e)},getRetrieveAllDetails:async(t,r=!1)=>{let o=e.api.retrieveAllDetails.endpoint,i=(0,d.$Y)()||e.api.retrieveAllDetails.headers["gcp-costco-env"],a={headers:{...e.api.retrieveAllDetails.headers,"x-lang-id":await (0,d.Z0)()||"","Costco-Tracking-Id":crypto.randomUUID(),...i&&{"gcp-costco-env":i},authorization:`Bearer ${t}`,...r&&{"x-cache-control":"clear"}},method:e.api.retrieveAllDetails.method};return(0,h.$3)(o,a,e.api.retrieveAllDetails.timeout,!1).then(e=>e)},getProfileAttributeService:()=>e.api.profileAttributeService,getWarehousesByLatLng:(t,r,o,i=!1,a,n=e.api.locatorService.maxWarehousesCount)=>{let d,l,c,u,p,v,{region:g,...f}=a||{},m=Object.keys(f||{}).filter(e=>!!(null==f?void 0:f[e])),b=s(m)?"":`&filters=${m.toString()}`,w=g?`®ion=${encodeURIComponent(g)}`:"",$=e.api.locatorService.clientId,A=$?`client_id=${$}&`:"",S={},L={...e.api.locatorService.headers,"Accept-Language":o};for(let e in L)void 0!==L[e]&&(S[e]=L[e]);let j=`${e.api.locatorService.endpoint}?${A}latitude=${y(t,3)}&longitude=${y(r,3)}${b}${w}&limit=${n}&openingDate=${(l=(d=new Date).getFullYear(),c=d.getMonth()+1,u=d.getDate(),p=c.toString().padStart(2,"0"),v=u.toString().padStart(2,"0"),`${l}-${p}-${v}`)}`,x={headers:{...S,"Accept-Language":o},method:"GET"};return(0,h.$3)(j,x,3e4,!i).then(e=>e)},getSalesLocationByLatLng:(t,r,o,i=!1,a,n=e.api.warehouseLocatorSalesLocationApi.required_request_parameters.limit)=>{let{region:d,...l}=a||{},c=Object.keys(l||{}).filter(e=>!!(null==l?void 0:l[e])),u=s(c)?"":`&filters=${c.toString()}`,p=d?`®ion=${encodeURIComponent(d)}`:"",g=e.api.warehouseLocatorSalesLocationApi,f={},m={"client-identifier":g.required_request_headers["client-identifier"],"Accept-Language":o};for(let e in m)void 0!==m[e]&&(f[e]=m[e]);let b={headers:{...f},method:"GET"},w=`${g.endpoint}?latitude=${y(t,3)}&longitude=${y(r,3)}${u}${p}&limit=${n}`;return(0,h.$3)(w,b,3e4,!i).then(e=>({context:e.context,warehouses:e.salesLocations.map(v)}))},getWarehouse:async(t,r)=>{let o=e.api.locatorService.clientId,i=o?`client_id=${o}`:"",a={},n={...e.api.locatorService.headers,"Accept-Language":t};for(let e in n)void 0!==n[e]&&(a[e]=n[e]);let s=e.api.locatorService.endpoint.replace(/\.json$/,""),d=`${s}/${r}.json`,l=`${d}?${i}`,c={headers:{...a,"Accept-Language":t},method:"GET"};return await (0,h.$3)(l,c,3e4)},getSalesLocation:async(t,r)=>{let o=e.api.warehouseLocatorSalesLocationApi,i={},a={"client-identifier":o.required_request_headers["client-identifier"],"Accept-Language":t};for(let e in a)void 0!==a[e]&&(i[e]=a[e]);let n={headers:{...i},method:"GET"},s=`${o.endpoint.replace(/\.json$/,"")}/${r}.json`;return(0,h.$3)(s,n,3e4).then(e=>({context:e.context,warehouse:e.salesLocation?v(e.salesLocation):{}}))},getWishLists:(t,o)=>{if(!o)throw Error("locale Module key has to be passed");if(!t)throw Error("Authorization cookie has to be passed");let i=e.api.getWishListsV2??e.api.getWishLists,a=i.endpoint,n={headers:r(i.headers,e.api.getWishListsV2?`Bearer ${t}`:t,o)};return(0,h.$3)(a,n,i.timeout,!1).then(e=>e)},getWishListsLegacy:async()=>{var t,r,o,i,a,n;let s=null==(r=null==(t=null==e?void 0:e.api)?void 0:t.getWishListsLegacy)?void 0:r.endpoint,d={credentials:"include",headers:null==(i=null==(o=null==e?void 0:e.api)?void 0:o.getWishListsLegacy)?void 0:i.headers,method:null==(n=null==(a=null==e?void 0:e.api)?void 0:a.getWishListsLegacy)?void 0:n.method};
1return(0,h.$3)(s,d,e.api.getWishListsLegacy.timeout,!1).then(e=>e)},getZipByAddress:async t=>{try{let{endpoint:r}=e.api.getZipByAddress;if(!r)return void console.error("getZipByAddressResponse - endpoint is received");let o=await fetch(`${r}?formdata=${t}`,{method:"POST"});if(o.ok)return o.json()}catch(e){console.log("error",e),console.error("Error fetching getZipByAddress:",e);return}},postAddToCartDetails:async(e,t)=>{let r=window.location.origin,o=new URL(`${r}/${e}`);return Object.entries(t).forEach(([e,t])=>{o.searchParams.append(e,`${t}`)}),(0,h.$3)(o.toString(),{body:{},headers:{},method:"POST"},3e4,!1).then(e=>e)},postAddToCartMultiItemsDetails:async(e,t,r)=>{let o=window.location.origin,i=new URL(`${o}/${e}`);Object.entries(t).forEach(([e,t])=>{i.searchParams.append(e,`${t}`)});let a={body:new URLSearchParams(Object.fromEntries(Object.entries(r).map(([e,t])=>[e,String(t)]))).toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},method:"POST"};return await (0,h.$3)(i.toString(),a,3e4,!1)},saveToWishList:async(t,o,i,a,n)=>{if(!n)throw Error("locale Module key has to be passed");if(!t)throw Error("Authorization cookie has to be passed");let s=e.api.addToNewListV2??e.api.addToNewList,d=s.endpoint,l=a.map(e=>`${d}${e.value}/entries`),c={body:JSON.stringify({comment:"",itemNumber:i,quantity:parseInt(o,10),type:"C
1ostcoItemListEntry"}),headers:r(s.headers,e.api.addToNewListV2?`Bearer ${t}`:t,n),method:"POST"};return Promise.all(l.map(e=>fetch(e,c))).then(async e=>{let t=e.filter(e=>!e.ok);if(t.length){let e=t[0].status,r=t[0].statusText;throw new p.j(e,r,`Network error: ${e} ${r}`)}let r=[];for(let t of e){let e=await t.json();r.push(e)}return r}).catch(e=>{throw e})},validateMembershipNumber:async(e,t)=>{let r=window.location.origin,o=new URL(`${r}/${e}`),i=`membershipId=${t}`;return(0,h.$3)(o,{body:i,headers:{accept:"application/json, text/javascript, */*, q=0.01","content-type":"application/x-www-form-urlencoded; charset=UTF-8",priority:"u=1,i","x-requested-with":"XMLHttpRequest"},method:"POST",credentials:"include"},3e4,!1).then(e=>e)},getWarehousesGasPrices:async t=>{var r;let{endpoint:o,requiredRequestParameters:i}=null==(r=null==e?void 0:e.api)?void 0:r.getWarehousesGasPrices;if(!o)return console.error("getWarehousesGasPrices - endpoint wasn't received"),[];if(!i)return console.error("getWarehousesGasPrices - requiredRequestParameters wasn't received"),[];let a=`${o}?${i.warehouseid}=${t.join("_")}`;return(0,h.$3)(a,{method:"GET"},3e4,!1).then(e=>e)},setProfileAttribute:async(t,r,o)=>{var i;if(null==(i=null==e?void 0:e.api)?void 0:i.profileAttributeService)return(0,u.ze)(e.api.profileAttributeService,t,r,o)},addItemsToCartV2:async({accessToken:t,clientId:r,clientIdentifier:o,locale:i,items:a})=>{var s;let{endpoint:d,method:u,headers:p,timeout:h}=(null==(s=null==e?void 0:e.api)?void 0:s.addItemsToCart)||{};if(!d||!u||!p||!h)throw Error("Configuration error: endpoint, method, headers, and timeout are required to add items to cart");if(!t)throw Error("Token is required to add items to cart");if(!(null==o?void 0:o.trim()))throw Error("clientIdentifier is required to add items to cart");if(!(null==r?void 0:r.trim()))throw Error("clientId is required to add items to cart");let v=a.filter(e=>{var t;return null==(t=e.number)?void 0:t.trim()}).map(e=>{var t;return{...e,number:null==(t=e.number)?void 0:t.trim()}});if(0===v.length)throw Error("At least one item with a valid number is required to add items to cart");let g=n.A.get(c.kh),y=n.A.get(c.SD);return(0,l.G)(d,{method:u,headers:{...p,Authorization:`Bearer ${t}`,...i&&{"Accept-Language":i},"x-costco-locale-state":y||"na","x-costco-locale-postal-code":g||"na","client-identifier":o,"x-costco-client":r},body:JSON.stringify({items:v})},h)},addItemsToCartViaRouter:async t=>{var r;return((e,t)=>{let r,{endpoint:o,method:i,required_request_headers:a,timeout:s}=t||{},{accessToken:d,locale:u,...p}=e||{},{"content-type":h,"client-identifier":v,"wcs-costco-env":g,"x-costco-client":y}=a||{},f=null==y?void 0:y[String("CABC").toLowerCase()];if(!o||!i||!a||!s)throw Error("Configuration error: endpoint, method, required_request_headers, and timeout are required to add items to cart via router");if(!d)throw Error("Token is required to add items to cart via router");if(!(null==v?void 0:v.trim()))throw Error("client-identifier is required to add items to cart via router");if(!(null==f?void 0:f.trim()))throw Error("x-costco-client is required to add items to cart via router");let m=n.A.get(c.kh),b=n.A.get(c.SD),w="u">typeof window?window.location.hostname:void 0,$=(w&&(r=w.match(/^(?:www|bd)-(?:v)?([a-z0-9]+)\.costco\./i))?r[1].toLowerCase():void 0)??g;return(0,l.G)(o,{method:i,headers:{Authorization:`Bearer ${d}`,...u&&{"Accept-Language":u},"x-costco-locale-state":b||"na","x-costco-locale-postal-code":m||"na","client-identifier":v,"x-costco-client":f,"content-type":h||"application/json",...$?{"wcs-costco-env":$}:{}},body:JSON.stringify(p)},s)})(t,null==(r=null==e?void 0:e.api)?void 0:r.addItemsToCartViaRouter)},welcomeMessageApiFeatureFlag:()=>{var t;return null==(t=null==e?void 0:e.api)?void 0:t.welcomeMessageApiFeatureFlag},getUccCartRouterService:()=>{var t;return null==(t=null==e?void 0:e.api)?void 0:t.addItemsToCartViaRouter}}})(e.environment))},[typeof window,e.environment]),(0,o.jsx)(m.Provider,{value:{agent:t},children:e.children})},w=()=>{let e=(0,i.useContext)(m);if(void 0===e)throw Error("useAgent must be used within an AgentProvider");return e};b.displayName="AgentProviderClientComponent"},8515:(e,t,r)=>{var o=r(16950),i=r(72344),a=r(57381),n=o?o.toStringTag:void 0;
1e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":n&&n in Object(e)?i(e):a(e)}},12924:(e,t,r)=>{e.exports=r(68649)(r(50994),"WeakMap")},14335:(e,t,r)=>{var o=r(65329),i=r(81581),a=Object.prototype,n=a.hasOwnProperty,s=a.propertyIsEnumerable;e.exports=o(function(){return arguments}())?o:function(e){return i(e)&&n.call(e,"callee")&&!s.call(e,"callee")}},16950:(e,t,r)=>{e.exports=r(50994).Symbol},17650:e=>{e.exports=Array.isArray},18389:(e,t,r)=>{e.exports=r(79160)(Object.keys,Object)},18610:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},20514:(e,t,r)=>{var o=r(8515),i=r(30989),a=r(81581),n={};n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&i(e.length)&&!!n[o(e)]}},24973:(e,t,r)=>{var o=r(56733),i=r(30989);e.exports=function(e){return null!=e&&i(e.length)&&!o(e)}},25039:(e,t,r)=>{e.exports=r(68649)(r(50994),"DataView")},30989:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},32516:(e,t,r)=>{var o=r(20514),i=r(99570),a=r(83290),n=a&&a.isTypedArray;e.exports=n?i(n):o},35891:(e,t,r)=>{var o=r(64764),i=r(18389),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!o(e))return i(e);var t=[];for(var r in Object(e))a.call(e,r)&&"constructor"!=r&&t.push(r);return t}},37462:(e,t,r)=>{var o=r(25039),i=r(96692),a=r(37495),n=r(76922),s=r(12924),d=r(8515),l=r(61638),c="[object Map]",u="[object Promise]",p="[object Set]",h="[object WeakMap]",v="[object DataView]",g=l(o),y=l(i),f=l(a),m=l(n),b=l(s),w=d;(o&&w(new o(new ArrayBuffer(1)))!=v||i&&w(new i)!=c||a&&w(a.resolve())!=u||n&&w(new n)!=p||s&&w(new s)!=h)&&(w=function(e){var t=d(e),r="[object Object]"==t?e.constructor:void 0,o=r?l(r):"";if(o)switch(o){case g:return v;case y:return c;case f:return u;case m:return p;case b:return h}return t}),e.exports=w},37495:(e,t,r)=>{e.exports=r(68649)(r(50994),"Promise")},40555:(e,t,r)=>{"use strict";r.d(t,{r:()=>o});let o={"-1":"en-us","-24":"en-ca","-25":"fr-ca"}},46583:(e,t,r)=>{e=r.nmd(e);var o=r(50994),i=r(56580),a=t&&!t.nodeType&&t,n=a&&e&&!e.nodeType&&e,s=n&&n.exports===a?o.Buffer:void 0,d=s?s.isBuffer:void 0;e.exports=d||i},50994:(e,t,r)=>{var o=r(67231),i="object"==typeof self&&self&&self.Object===Object&&self;e.exports=o||i||Function("return this")()},56580:e=>{e.exports=function(){return!1}},56733:(e,t,r)=>{var o=r(8515),i=r(18610);e.exports=function(e){if(!i(e))return!1;var t=o(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},57381:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},59587:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},61638:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},64764:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},65329:(e,t,r)=>{var o=r(8515),i=r(81581);e.exports=function(e){return i(e)&&"[object Arguments]"==o(e)}},67231:(e,t,r)=>{e.exports="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},68649:(e,t,r)=>{var o=r(73384),i=r(59587);e.exports=function(e,t){var r=i(e,t);return o(r)?r:void 0}},72344:(e,t,r)=>{var o=r(16950),i=Object.prototype,a=i.hasOwnProperty,n=i.toString,s=o?o.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),r=e[s];try{e[s]=void 0;var o=!0}catch(e){}var i=n.call(e);return o&&(t?e[s]=r:delete e[s]),i}},73384:(e,t,r)=>{var o=r(56733),i=r(80519),a=r(18610),n=r(61638),s=/^\[object .+?Constructor\]$/,d=Object.prototype,l=Function.prototype.toString,c=d.hasOwnProperty,u=RegExp("^"+l.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||i(e))&&(o(e)?u:s).test(n(e))}},73750:(e,t,r)=>{e.exports=r(50994)["__core-js_shared__"]},76922:(e,t,r)=>{e.exports=r(68649)(r(50994),"Set")},79160:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},80519:(e,t,r)=>{var o,i=r(73750),a=(o=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(sr
1c)_1."+o:"";e.exports=function(e){return!!a&&a in e}},81581:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},83290:(e,t,r)=>{e=r.nmd(e);var o=r(67231),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,n=a&&a.exports===i&&o.process,s=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return n&&n.binding&&n.binding("util")}catch(e){}}();e.exports=s},96692:(e,t,r)=>{e.exports=r(68649)(r(50994),"Map")},97810:(e,t,r)=>{var o=r(35891),i=r(37462),a=r(14335),n=r(17650),s=r(24973),d=r(46583),l=r(64764),c=r(32516),u=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(n(e)||"string"==typeof e||"function"==typeof e.splice||d(e)||c(e)||a(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(l(e))return!o(e).length;for(var r in e)if(u.call(e,r))return!1;return!0}},99570:e=>{e.exports=function(e){return function(t){return e(t)}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.