https://lmk.today/_next/static/chunks/91391-8af85804b2a61b33.js?dpl=dpl_5Dm4hPFR4YLQe5uHK7Gef5SzQbhA
1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[91391],{8732:(e,t,r)=>{r.d(t,{Ec:()=>o,Wm:()=>c,fD:()=>s,gI:()=>i});let n="lmk_fresh_login",a="lmk_fresh_login";function o(){try{sessionStorage.setItem(n,"1")}catch(e){}}function i(e){try{let t=(e.startsWith("/")?e:"/".concat(e)).split("?")[0].split("#")[0];("/dashboard"===t||t.startsWith("/dashboard/"))&&o()}catch(e){}}function c(){try{if("1"===sessionStorage.getItem(n))return!0;return document.cookie.split(";").some(e=>e.trim().startsWith("".concat(a,"=")))}catch(e){return!1}}function s(){try{sessionStorage.removeItem(n),document.cookie="".concat(a,"=; path=/; max-age=0")}catch(e){}}},21868:(e,t,r)=>{r.d(t,{A:()=>l,AuthProvider:()=>u});var n=r(95155),a=r(12115),o=r(8732),i=r(52643),c=r(33055);let s=(0,a.createContext)({session:null,user:null,isLoading:!0,signOut:async()=>{},refreshSession:async()=>!1}),l=()=>(0,a.useContext)(s);function u(e){let{children:t,initialSession:r=null}=e,[l,u]=(0,a.useState)(r),[d,m]=(0,a.useState)((null==r?void 0:r.user)||null),[_,p]=(0,a.useState)(!r),h=(0,a.useMemo)(()=>(0,i.createClient)(),[]),f=(0,a.useRef)(null);(0,a.useEffect)(()=>{if((null==d?void 0:d.id)&&f.current!==d.id){var e;(0,c.ls)(d.id,{email:null!==(e=d.email)&&void 0!==e?e:void 0}),f.current=d.id}},[null==d?void 0:d.id,null==d?void 0:d.email]);let w=(0,a.useCallback)(async e=>{if(!e)return null;try{var t;let{data:{user:r},error:n}=await h.auth.getUser();if(n||!r||r.id!==e.id)return e;let{data:a,error:o}=await h.from("users").select("avatar_id, avatar_url, display_name").eq("id",e.id).single();if(o)return e;return{...e,user_metadata:{...e.user_metadata,avatar_id:(null==a?void 0:a.avatar_id)||null,avatar_url:(null==a?void 0:a.avatar_url)||null,display_name:(null==a?void 0:a.display_name)||(null===(t=e.user_metadata)||void 0===t?void 0:t.display_name)||null}}}catch(t){return e}},[h]);(0,a.useEffect)(()=>{(async()=>{if(r){u(r);try{await h.auth.setSession({access_token:r.access_token,refresh_token:r.refresh_token})}catch(e){}m(await w(r.user)),p(!1);return}p(!0);try{let{data:{user:e},error:t}=await h.auth.getUser();if(e&&!t){let{data:{session:t}}=await h.auth.getSession();if(t){u(t);let r=await w(e);m(r)}else{let t=await w(e);m(t)}}}catch(e){}finally{p(!1)}})();let{data:{subscription:e}}=h.auth.onAuthStateChange((e,t)=>{"SIGNED_IN"===e&&(0,o.Ec)(),"SIGNED_OUT"===e&&((0,c.IU)(),f.current=null),u(t),p(!1),(null==t?void 0:t.user)?setTimeout(async()=>{m(await w(t.user))},0):m(null)});return()=>e.unsubscribe()},[r,w,h.auth]);let g=async()=>{try{let{error:e}=await h.auth.signOut();if(e)throw console.error("Error signing out:",e),e;u(null),m(null),(0,c.IU)(),f.current=null,window.location.href="/"}catch(e){throw console.error("Sign out failed:",e),e}},E=async()=>{try{let{data:e,error:t}=await h.auth.refreshSession();if(t)throw t;if(e.session){if(u(e.session),e.user){let t=await w(e.user);m(t)}return!0}return!1}catch(e){return console.error("Error refreshing session:",e),!1}};return(0,n.jsx)(s.Provider,{value:{session:l,user:d,isLoading:_,signOut:g,refreshSession:E},children:t})}},26674:(e,t,r)=>{r.d(t,{j:()=>o});let n={apos:"'",quot:'"',amp:"&",lt:"<",gt:">",nbsp:" ",rsquo:"â",lsquo:"â",rdquo:"â",ldquo:"â",ndash:"â",mdash:"â",hellip:"â¦"},a=Object.keys(n).join("|");function o(e){if(!e||!e.includes("&"))return e;let t=e;for(let e=0;e<3;e++){let e=t.replace(/&(apos|#(?:x27|39));/gi,"&$1;").replace(RegExp("\\s*&\\s+(".concat(a,"|#(?:x[0-9a-f]+|\\d+));"),"gi"),"&$1;").replace(/\s*&(apos|#(?:x27|39));/gi,"&$1;").replace(/&([a-z][a-z0-9]*);/gi,(e,t)=>{let r=n[t.toLowerCase()];return void 0!==r?r:e}).replace(/&#(\d+);/g,(e,t)=>String.fromCharCode(parseInt(t,10))).replace(/&#x([0-9a-f]+);/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));if(e===t)break;t=e}return t}},30440:(e,t,r)=>{r.d(t,{c:()=>o,l:()=>a});var n=r(33055);let a={PAGE_VIEW_PDP:"web-1001",PAGE_VIEW_DEALS:"web-1002",PAGE_VIEW_COLLECTION:"web-1003",PAGE_VIEW_BOT_SHOPPER:"web-1004",PAGE_VIEW_WISHLIST:"web-1005",PAGE_VIEW_SEARCH:"web-1006",PAGE_VIEW_CURATED_DEAL_PAGE:"web-1007",PRODUCT_IMPRESSION:"web-1010",CURATED_OFFER_IMPRESSION:"web-1011",PRODUCT_QUICK_VIEW:"web-2001",PRODUCT_IMAGE_ZOOM:"web-2002",BUY_TIMING_SHOWN:"web-2010",BUY_TIMING_OPENED:"web-2011",BUY_TIMING_CLOSED:"web-2012",BUY_TIMING_BUY_CLICKED:"web-2013",OUTBOUND_CLICK:"web-3001",CURATED_OFFER_CLICK:"web-3002",AUTH_STARTED:"web-4001",AUTH_COMPLETED:"web-4002",AUTH_PROVIDER_SELECTED:"web-4003",AUTH_FAILED:"web-4004",WISHLIST_CREATED:"web-5001",WISHLIST_PRODUCT_ADDED:"web-5002",WISHLIST_PRODUCT_REMOVED:"web-5003",WISHLIST_SHARED:"web-5004",WISHLIST_CLAIMED:"web-5005",WISHLIST_
1VIEWED:"web-5006",WISHLIST_CTA_CLICKED:"web-5007",BIRDIE_OTP_REQUESTED:"web-5110",BIRDIE_OTP_REQUEST_FAILED:"web-5111",BIRDIE_OTP_VERIFIED:"web-5112",BIRDIE_OTP_VERIFY_FAILED:"web-5113",BIRDIE_REGISTRY_CREATED:"web-5114",BIRDIE_REGISTRY_FAILED:"web-5115",BIRDIE_WEBHOOK_RECEIVED:"web-5116",BIRDIE_GIFT_RECEIVED:"web-5117",BIRDIE_CPA_RECORDED:"web-5118",BIRDIE_GIFT_CLICKED:"web-5119",BIRDIE_PROFILE_NAME_PROMPTED:"web-5120",BIRDIE_EMAIL_ALREADY_TAKEN:"web-5121",WIZARD_OPENED:"web-5201",WIZARD_STEP_VIEWED:"web-5202",WIZARD_LEAD_COMPLETED:"web-5203",WIZARD_EVENT_SELECTED:"web-5204",WIZARD_EVENT_SKIPPED:"web-5205",WIZARD_REGISTRY_OPTED_IN:"web-5206",WIZARD_REGISTRY_SKIPPED:"web-5207",WIZARD_LIST_CREATED:"web-5208",WIZARD_SHARE_LINK_COPIED:"web-5209",WIZARD_NEXT_ACTION:"web-5210",WIZARD_COMPLETED:"web-5211",WIZARD_DISMISSED:"web-5212",REGISTRY_FIRST_VIEWED:"web-5301",REGISTRY_FIRST_DETAILS_SUBMITTED:"web-5302",REGISTRY_FIRST_ACCOUNT_STARTED:"web-5303",REGISTRY_FIRST_OTP_REQUESTED:"web-5304",REGISTRY_FIRST_OTP_VERIFIED:"web-5305",REGISTRY_FIRST_CREATED:"web-5306",REGISTRY_FIRST_EXISTING_ACCOUNT:"web-5307",SEARCH_STARTED:"web-6001",SEARCH_RESULTS_SHOWN:"web-6002",SEARCH_RESULT_CLICKED:"web-6003",SEARCH_FILTER_APPLIED:"web-6004",SEARCH_NO_ADD:"web-6005",BOT_SESSION_STARTED:"web-7001",BOT_MESSAGE_SENT:"web-7002",BOT_RESPONSE_RECEIVED:"web-7003",BOT_PRODUCT_SHOWN:"web-7004",BOT_PRODUCT_CLICKED:"web-7005",BOT_PRODUCT_CLICK_OUT:"web-7006",BOT_NEW_CHAT:"web-7007",BOT_EMAIL_SUBSCRIBE:"web-7008",BOT_AUTH_INITIATED:"web-7009",BOT_CHIP_TAPPED:"web-7010",BOT_INTAKE_SHOWN:"web-7011",BOT_INTAKE_FIELD_ANSWERED:"web-7012",BOT_INTAKE_SKIPPED:"web-7013",BOT_INTAKE_SUBMITTED:"web-7014",BOT_QUICK_START_TAPPED:"web-7015",EMAIL_SUBSCRIBED:"web-8001",EMAIL_UNSUBSCRIBED:"web-8002",EMAIL_PREF_CHANGED:"web-8003",MODAL_OPENED:"web-9001",MODAL_CLOSED:"web-9002",ERROR_SHOWN:"web-9003"};function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,a={source:"web",page_path:window.location.pathname,...(null==r?void 0:r.partner)!=null?{partner:r.partner}:{},...(null==r?void 0:r.isAuthenticated)!=null?{is_authenticated:r.isAuthenticated}:{}};(0,n.Fg)(e,{...a,...t})}},33055:(e,t,r)=>{function n(e,t){return t?{["$feature/".concat(e)]:t}:{}}function a(e,t){window.posthog&&window.posthog.capture(e,t)}function o(e,t){var r;(null===(r=window.posthog)||void 0===r?void 0:r.identify)&&window.posthog.identify(e,t)}function i(){var e;(null===(e=window.posthog)||void 0===e?void 0:e.reset)&&window.posthog.reset()}function c(e,t){var r,n;a(e,t);let o=(null===(n=window.posthog)||void 0===n?void 0:null===(r=n.get_distinct_id)||void 0===r?void 0:r.call(n))||void 0;try{fetch("/api/analytics/track",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:e,properties:t,distinctId:o}),keepalive:!0})}catch(e){}}r.d(t,{CP:()=>n,Fg:()=>a,IU:()=>i,i6:()=>c,ls:()=>o})},43787:(e,t,r)=>{r.d(t,{Pj:()=>a,ki:()=>o});let n={"blzr-ext":"lmk.blzr.2-20"};function a(e){if(e)return n[e]}function o(){try{let e=new URLSearchParams(window.location.search),t=e.get("partner_src");if(t)return t;let r=e.get("_ext-source");if(r&&"extension"!==r)return r;let n=localStorage.getItem("_ext-source-expiry"),a=localStorage.getItem("_ext-source");if(a&&"extension"!==a&&n&&Date.now()<parseInt(n,10))return a;return null}catch(e){return null}}},44303:(e,t,r)=>{r.d(t,{v:()=>a});var n=r(69001);function a(e){let t=t=>{var r;return e instanceof URLSearchParams?e.get(t):null!==(r=e[t])&&void 0!==r?r:null},r=t("partner");if(r)return r.trim().toLowerCase();let a=t("_ext-src");if(a)return a.trim().toLowerCase();let o=t("brand");return o&&(0,n.RG)(o)?o.trim().toLowerCase():null}},56539:(e,t,r)=>{r.d(t,{J:()=>d});var n=r(12115),a=r(94088),o=r(21868);async function i(e,t,r){try{let n=await fetch("/api/nextlinks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({clickId:e,value:t,metadata:r})}),a=await n.json();if(!n.ok)throw Error("Event tracking failed with status: ".concat(n.status));return a}catch(e){throw console.error("Error tracking NextLinks event:",e),e}}let c=e=>{var t,r;if(!window.pintrk)return;let n=function(e){if(e)return e.replace(/['"]/g,"").trim()}(null==e?void 0:e.external_id);window.pintrk("track","custom",{currency:(null==e?void 0:e.currency)||"USD",value:(null==e?void 0:e.price)||0,content_ids:n?[n]:[],content_name:(null==e?void 0:e.title)||"",content_category:(null==e?void 0:null===(t=e.metadata)||void 0===t?void 0:t.category)||"",content_brand:(null==e?void 0:null===(r=e.metadata)||void 0===r?void 0:r.merchant_name)||"",event_id:"outbound_click_".concat(Date.now())})};var s=r(41927),l=r(30440),u=r(44303);
1function d(){let e=function(){let[e,t]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(window.localStorage){let e=localStorage.getItem("nextlinks_click_id");e&&t(e)}},[]),e}(),{user:t}=(0,o.A)();return{trackOutboundClick:async(r,n,o)=>{var d,m,_,p,h,f,w,g,E,I,y,v,b;if(!r)return;let S=function(e,t,r){var n;let a="product_page";t&&r?a="registry":t&&(a="wishlist");let o="unknown",i=null==e?void 0:null===(n=e.metadata)||void 0===n?void 0:n.source_integration;return"chrome_extension"===i?o="extension":"pa_api"===i||"rainforest"===i||"affiliate.com"===i?o="api":"manual"!==i&&i||(o="manual"),{touchpoint:"web",context:a,product_source:o}}(r,n,o),R=function(e){if(e)return e.replace(/['"]/g,"").trim()}(r.external_id),T="string"==typeof r.price?parseFloat(r.price):r.price;(0,a.gO)({content_category:null===(d=r.metadata)||void 0===d?void 0:d.category,content_ids:R?[R]:void 0,content_name:r.title,value:T,currency:r.currency||"USD"},null==t?void 0:t.id),(0,a.Yn)({content_category:r.category||(null===(m=r.metadata)||void 0===m?void 0:m.category),content_ids:R?[R]:void 0,content_name:r.title,value:T,currency:r.currency||"USD",destination_url:r.affiliate_url||void 0,merchant:(null===(_=r.metadata)||void 0===_?void 0:_.merchant_name)||r.merchant||void 0}),c(r),(0,s.y)("outbound_click",{value:T,currency:r.currency||"USD"}),window.posthog&&window.posthog.capture("outbound_click",{product_id:r.id,merchant:(null===(f=r.metadata)||void 0===f?void 0:f.merchant_name)||r.merchant,category:r.category||(null===(w=r.metadata)||void 0===w?void 0:w.category),price:T,page_path:window.location.pathname});let A=(0,u.v)(new URLSearchParams(window.location.search));if((0,l.c)(l.l.OUTBOUND_CLICK,{product_id:r.id,merchant:(null===(p=r.metadata)||void 0===p?void 0:p.merchant_name)||r.merchant,category:r.category||(null===(h=r.metadata)||void 0===h?void 0:h.category),price:T,is_revenue_event:!0,touchpoint:S.touchpoint,context:S.context},{partner:A,isAuthenticated:!!t}),e)try{await i(e,"string"==typeof r.price?parseFloat(r.price):r.price,{title:r.title,category:null===(g=r.metadata)||void 0===g?void 0:g.category,merchant:(null===(E=r.metadata)||void 0===E?void 0:E.merchant_name)||r.merchant,currency:r.currency||"USD",external_id:R})}catch(e){console.error("Failed to track NextLinks event:",e)}try{let e="",t="direct";{e=localStorage.getItem("session_id")||(null===(b=document.cookie.split("; ").find(e=>e.startsWith("session_id=")))||void 0===b?void 0:b.split("=")[1])||crypto.randomUUID(),localStorage.setItem("session_id",e);let r=new URLSearchParams(window.location.search),n=r.get("utm_source"),a=r.get("utm_medium"),o=r.get("ref")||r.get("via");if(n)t=a?"".concat(n,"/").concat(a):n;else if(o)t="referral/".concat(o);else if(document.referrer)try{let e=new URL(document.referrer);e.hostname!==window.location.hostname&&(t=e.hostname.replace("www.",""))}catch(e){}let i=localStorage.getItem("attribution_source");i&&"direct"===t&&(t=i)}await fetch("/api/attribution/track-event",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({eventType:"outbound_click",sessionId:e,productId:r.id,wishlistId:n,attributionSource:t,metadata:{touchpoint:S.touchpoint,context:S.context,product_source:S.product_source,channel:"registry"===S.context?"registry":"wishlist"===S.context?"wishlist":"extension"===S.product_source?"extension":"direct",product_title:r.title,product_price:T,merchant:(null===(I=r.metadata)||void 0===I?void 0:I.merchant_name)||r.merchant,affiliate_url:r.affiliate_url,category:r.category||(null===(y=r.metadata)||void 0===y?void 0:y.category),external_id:R,source_integration:null===(v=r.metadata)||void 0===v?void 0:v.source_integration,wishlist_event_type:o}})})}catch(e){console.error("Failed to track attribution outbound click:",e)}}}}},62003:(e,t,r)=>{r.d(t,{LA:()=>a});let n=new Set(["a.co","amzn.to"]);function a(e){if(!e)return e;try{if(e.startsWith("/c?")||e.startsWith("/c/?")||e.includes("://lmk.today/c?")||e.includes("://lmk.today/c/?")||/^https?:\/\/\/?c[/?]/.test(e)){let t=e.includes("?")?e.split("?")[1]:"",r=new URLSearchParams(t),n=r.get("url")||r.get("redirect_url");
1if(n)return decodeURIComponent(n)}if(e.includes("r.v2i8b.com")){let t=new URL(e).searchParams.get("url");if(t)return decodeURIComponent(t)}if(e.includes("rd.bizrate.com")){let t=new URL(e).searchParams.get("url");if(t)return decodeURIComponent(t)}if(e.includes("outclick.co")){let t=new URL(e).searchParams.get("url");if(t)return decodeURIComponent(t)}return function(e){try{let t=new URL(e).hostname.toLowerCase().replace(/^www\./,"");if(t.includes("amazon.")||t.includes("amzn.")||n.has(t))!0}catch(e){return!1}}(e),e}catch(t){return e}}r(87358)},69001:(e,t,r)=>{r.d(t,{$r:()=>o,RG:()=>i});let n={slug:"gap",displayName:"Gap",merchantId:"04537a08-c7d2-4e75-8c43-2d0b7de97942",affiliateComMerchantId:"42944",typesenseCollection:"brand_partner_gap",homepageUrl:"https://www.gap.com",customerServiceUrl:"https://www.gap.com/customerService",theme:{primary:"#002A5F",primaryContrast:"#FFFFFF",surface:"#F8FAFC",logoSrc:"/partners/gap/logo.png",logoAlt:"Gap",logoWidth:36,logoHeight:36},promptOverrides:{assistantDescription:"the Gap Shopping Assistant, powered by LMK",scopeRules:["You ONLY recommend Gap products. Every suggestion must come from the Gap catalog loaded above or returned by the searchProducts tool.","Never mention competitor brands (Old Navy, Banana Republic, Athleta, J.Crew, Uniqlo, etc.) even if asked to compare. Politely stay on Gap.","If the user asks for a product Gap clearly does not sell (electronics, groceries, home appliances, etc.), respond playfully and offer to keep shopping Gap OR switch to multi-merchant LMK. Call the suggestMultiMerchant tool in that case.","For returns, order status, shipping, sizing charts, promo codes, gift card balance, or any customer-service question: reply in one short sentence pointing to the Gap customer service URL. Do NOT invent policy details."],offCatalogDeflection:"Oh hey look at you â let's finish your Gap order first, then you can go roam bigger pastures. Want me to keep digging through Gap, or switch over to multi-merchant at LMK?",voiceGuide:["Warm, playful, confident â like a friend who knows the catalog inside and out.",'Avoid superlatives ("the best ever"); speak in specifics (fit, fabric, versatility).',"Use 'we' and 'our' to feel like part of the Gap team.","Keep replies tight â 2-4 sentences or a short bullet list."],fewShots:[{user:"I need dark skinny jeans under $70",intent:"on_catalog",assistantGuidance:'Call searchProducts with { query: "dark skinny jeans", maxPrice: 70, gender_dept: "Women" (or Men, if inferable), fit: "skinny" }. Return 3-4 top picks with price + one-line reason.'},{user:"got any iphone cases?",intent:"off_catalog_deflect",assistantGuidance:"Do NOT call searchProducts. Reply with the offCatalogDeflection copy, then call suggestMultiMerchant."},{user:"where's my order?",intent:"cs_redirect",assistantGuidance:'Single short line: "I\'m here to help you shop â for order status, head over to our customer service: https://www.gap.com/customerService." No product recommendations.'},{user:"is Old Navy cheaper than Gap?",intent:"sister_brand_refusal",assistantGuidance:"Don't compare. Say you're the Gap assistant and stay on Gap. Offer to find the best Gap value in whatever category the user cares about."},{user:"what pairs with the Vintage Soft tee?",intent:"style_advice",assistantGuidance:'Call searchProducts with query like "straight leg chinos" or "denim" scoped to same gender_dept. Return 2-3 pairings with one-line rationale.'},{user:"do your jeans run small?",intent:"size_fit",assistantGuidance:"Give a brief general answer based on the Gap fit taxonomy in the loaded products (slim tends true to size, relaxed tends a touch roomier). Point to the Gap size guide on the customer service URL. Do NOT fabricate SKU-specific sizing."}]},welcomeCopy:"Hey! I'm your Gap shopping assistant â tell me what you're after and I'll pull it up.",suggestedStarterChips:["Jeans under $60","Soft tees for travel","Fall outfit ideas","What's on sale?"],queryByWeights:{title:5,category:3,category_fine:4,material:2,fit:2,brand:0,merchant_name:0}},a={[n.slug]:n};function o(e){var t;if(!e)return null;let r=e.trim().toLowerCase();return r&&null!==(t=a[r])&&void 0!==t?t:null}function i(e){return null!==o(e)}},76766:(e,t,r)=>{r.d(t,{R:()=>o});var n=r(82158),a=r(43787);function o(e,t,r){if(!e)return"#";let o=(0,n.QZ)(e);if(!o)return"/product/".concat(e.slug||e.id);let i=e.affiliate_url&&(0,n.ow)(e.affiliate_url)&&e.affiliate_url!==o?e.affiliate_url:void 0;
1return function(e,t,r,o,i,c){let s=new URLSearchParams;s.set("url",e),i&&s.set("aff_url",i),s.set("product_id",t);let l=(0,n.MJ)(r);l&&s.set("merchant",l),(null==o?void 0:o.query)&&(s.set("sq",o.query),o.position&&s.set("sp",String(o.position)),o.queryId&&s.set("sqid",o.queryId)),(null==c?void 0:c.wishlistId)?(s.set("wishlist_id",c.wishlistId),s.set("context",c.context||"wishlist")):(null==c?void 0:c.context)&&s.set("context",c.context);let u=(0,a.ki)();return u&&s.set("partner_src",u),"/c/?".concat(s.toString())}(o,e.id,e,t,i,r)}},82158:(e,t,r)=>{r.d(t,{MJ:()=>l,QZ:()=>i,cK:()=>u,kj:()=>s,ow:()=>o});var n=r(26674);r(76766);var a=r(87358);function o(e){if(!e||"string"!=typeof e)return!1;let t=e.trim();if(!t||!t.startsWith("http://")&&!t.startsWith("https://")||t.includes("@@@")||t.includes("%40%40%40"))return!1;try{let e=new URL(t);if(!e.hostname||!e.hostname.includes(".")||"localhost"===e.hostname||"127.0.0.1"===e.hostname)return!1;return!0}catch(e){return!1}}function i(e){var t;if(e.direct_url){let t=c(e.direct_url);if(t&&o(t)&&!t.includes("outclick"))return t}if(e.affiliate_url){let t=c(e.affiliate_url);if(t&&o(t)&&!t.includes("outclick"))return t}let r=null===(t=e.metadata)||void 0===t?void 0:t.merchant_domain;if(r&&"string"==typeof r&&r.includes(".")){let e="https://".concat(r.replace(/^https?:\/\//,"").split("/")[0]);if(o(e))return e}return null}function c(e){if(!e||"string"!=typeof e)return;let t=e.trim();if(t)return t.startsWith("/")?t:t.startsWith("http://")?t.replace("http://","https://"):t.startsWith("//")?"https:".concat(t):t.startsWith("https://")?t:"https://".concat(t)}function s(e){var t;if((null===(t=e.metadata)||void 0===t?void 0:t.friendly_title)&&"string"==typeof e.metadata.friendly_title)return(0,n.j)(e.metadata.friendly_title);if(!e.title||"string"!=typeof e.title)return"Product";let r=(0,n.j)(e.title);return r=r.replace(/\s*-\s*Amazon\.com.*$/i,"").replace(/\s*\|\s*Amazon\.com.*$/i,"").replace(/^Amazon\.com\s*[-|:]\s*/i,"").replace(/\s*\(.*?\)\s*$/,"").replace(/\s*,\s*[^,]*lbs?\s*in\s*\d+\s*hours?.*$/i,"").replace(/\s*,\s*\d+\s*lbs?\s*per\s*day.*$/i,"").replace(/\s*,\s*\d+\s*pounds?\s*in\s*\d+\s*hours?.*$/i,"").replace(/\s*,\s*scoop\s*included.*$/i,"").replace(/\s*,\s*stainless\s*steel.*$/i,"").replace(/\s*,\s*led\s*control\s*panel.*$/i,"").replace(/\s*,\s*perfect\s*for.*$/i,"").replace(/\s*â\s*.*$/,"").trim(),e.brand&&!r.toLowerCase().startsWith(e.brand.toLowerCase())&&(r="".concat(e.brand," ").concat(r)),r.length>60&&(r=r.substring(0,57)+"..."),r}function l(e){var t;let r=e=>{if(e.includes("outclick.co/asn/")||e.includes("outclick.com/asn/"))return"Amazon";let t=function(e){try{let t=c(e);if(!t)return;return new URL(t).hostname.replace("www.","")}catch(e){return}}(e);if(t){if(["outclick.co","outclick.com","shopnomix.com","shopnomix.co","r.v2i8b.com","click.linksynergy.com","prf.hn","pntra.com","pntrs.com","pntrac.com","gopjn.com","pjatr.com","pjtra.com","anrdoezrs.net","dpbolvw.net","jdoqocy.com","tkqlhce.com","kqzyfj.com","track.flexlinkspro.com","track.connexity.com","rd.bizrate.com"].includes(t)){let t=function(e){try{let t=new URL(e),r=t.hostname.replace("www.","");if(["r.v2i8b.com","outclick.co","outclick.com","shopnomix.com","shopnomix.co","click.linksynergy.com","prf.hn","pntra.com","anrdoezrs.net","dpbolvw.net","jdoqocy.com","tkqlhce.com","track.connexity.com","rd.bizrate.com"].includes(r))for(let e of["url","redirect","destination","target","goto","link"]){let r=t.searchParams.get(e);if(r)try{let e=decodeURIComponent(r),t=new URL(e).hostname.replace("www.",""),n={"amazon.com":"Amazon","amazon.co.uk":"Amazon","amazon.ca":"Amazon","amazon.de":"Amazon","amazon.fr":"Amazon","amazon.it":"Amazon","amazon.es":"Amazon","amazon.in":"Amazon","amazon.com.au":"Amazon","amazon.co.jp":"Amazon","walmart.com":"Walmart","bestbuy.com":"Best Buy","target.com":"Target","kohls.com":"Kohls","macys.com":"Macys","homedepot.com":"The Home Depot","lowes.com":"Lowes","wayfair.com":"Wayfair","etsy.com":"Etsy","ebay.com":"eBay"};if(n[t])return n[t];return t.split(".")[0].replace(/[-_]/g," ").split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}catch(e){}}return null}catch(e){return null}}(e);return t||void 0}for(let e of["7tiv.net","93n6tx.net","emjcd.com","ojrq.net","ftjcfx.com","lduhtrp.net","tqlkg.com"]){if(t.endsWith(".".concat(e))){let r=t.replace(".".concat(e),"");if(r){let e=n("".concat(r,".com"));if(e)return e;return r.charAt(0).toUpperCase()+r.slice(1)}return}if(t===e)return}for(let e of["goto."])if(t.startsWith(e)){let r=t.slice(e.length),a=n(r);if(a)return a;return r.split(".")[0].charAt(0).toUpperCase()+r.split(".")[0].slice(1)}return n(t)||t.charAt(0).toUpperCase()+t.slice(1)}};function n(e){return e.includes("amazon.")?"Amazon":({"amazon.com":"Amazon","amazon.co.uk":"Amazon","amazon.ca":"Amazon","amazon.de":"Amazon","amazon.fr":"Amazon","amazon.it":"Amazon","amazon.es":"Amazon","amazon.in":"Amazon","amazon.com.au":"Amazon","amazon.co.jp":"Amazon","walmart.com":"Walmart","bestbuy.com":"Best Buy","target.com":"Target","kohls.com":"Kohls","macys.com":"Macys","homedepot.com":"The Home Depot","lowes.com":"Lowes","wayfair.com":"Wayfair","etsy.com":"Etsy","ebay.com":"eBay","nordstrom.com":"Nordstrom","nike.com":"Nike","fanatics.com":"Fanatics"})[e]}if(null===(t=e.metadata)||void 0===t?void 0:t.merchant_name)return e.metadata.merchant_name;if(e.direct_url){let t=r(e.direct_url);if(t)return t}if(e.affiliate_url){let t=r(e.affiliate_url);if(t)return t}return e.brand?e.brand:"pa_api"===e.integration_type?"Amazon":void 0}function u(e){if(!(null==e?void 0:e.affiliate_url))return;let t=c(e.affiliate_url);if(!t)return;if(t.includes("@@@")||t.includes("###")){let r="";r=t.includes("track.flexlinkspro.com")||t.includes("flexoffers.com")?a.env.NEXT_PUBLIC_FLEX_OF
1FERS_PUBLISHER_ID||"":t.includes("rd.bizrate.com")?a.env.NEXT_PUBLIC_CONNEXITY_CAMPAIGN_ID||"":"01JZTK6R36PK60CKTBJCESXPVS",t=t.replace("@@@",r).replace("###",e.id||"")}let r="lmk.today-20";try{window.localStorage&&(r=localStorage.getItem("_ext-tag")||"lmk.today-20",localStorage.getItem("_ext-source"))}catch(e){}try{var n;if(t.includes("outclick.co/asn")&&(null===(n=e.metadata)||void 0===n?void 0:n.source_product_id)){let t=e.metadata.source_product_id.split("-").pop();if(t)return"https://amazon.com/dp/".concat(t,"?tag=").concat(r)}if(t.includes("amazon.com"))try{let e=new URL(t),n=new URLSearchParams(e.search);return n.set("tag",r),e.search=n.toString(),e.toString()}catch(e){return t}if(t.includes("outclick.co"))return function(e){if(!e||"string"!=typeof e)return;let t=e.trim();if(t)try{let e=new URL(c(t)||""),r=e.hostname.toLowerCase();if(!["outclick.co","outclick.com","shopnomix.com","shopnomix.co","r.v2i8b.com","click.linksynergy.com","prf.hn","pntra.com","anrdoezrs.net","dpbolvw.net","jdoqocy.com","tkqlhce.com","track.connexity.com","rd.bizrate.com"].some(e=>r.includes(e)))return t;let n=e.searchParams;for(let e of["url","u","redirect","target","destination","to","link","site"]){let t=n.get(e);if(t)try{let e=decodeURIComponent(t);return new URL(c(e)||""),e}catch(e){}}if(r.includes("outclick.co"))try{return}catch(e){}if(r.includes("bizrate.com")){let e=t.match(/\/to\/([^?]+)/);if(e)try{let t=decodeURIComponent(e[1]);return new URL(c(t)||""),t}catch(e){}}return}catch(e){return t}}(t)||t;return t.includes("r.v2i8b.com")||t.includes("rd.bizrate.com"),t}catch(e){return t}}},94251:(e,t,r)=>{function n(){return"undefined"!=typeof navigator&&/iPad|iPhone|iPod|Macintosh|Mac OS X/.test(navigator.userAgent)}function a(){return"undefined"!=typeof navigator&&/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)&&function(){if("undefined"==typeof navigator)return!1;let e=navigator.userAgent||navigator.vendor||"";return/FBAN|FBAV|Instagram|Twitter|X\/|x\.com|Line\/|Snapchat|TikTok|Pinterest|LinkedIn|Slack|Discord|Telegram|Viber|WhatsApp|KAKAOTALK|Weibo|WeChat|MicroMessenger/i.test(e)}()}function o(e,t){if(t&&t().catch(e=>{}),a()){window.location.href=e;return}let r=window.open(e,"_blank");if(r)try{r.opener=null}catch(e){}else window.location.href=e}r.d(t,{BY:()=>a,EH:()=>o,lg:()=>n})}}]);
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.