1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5534],{17984:(e,t,r)=>{"use strict";r.d(t,{QU:()=>d,gI:()=>i});class a extends Error{constructor(e,t,r){super(e),this.code=t,this.status=r,this.name="ApiError"}}let n=[{category_id:2,name:"Food",parent_category_id:0},{category_id:3,name:"Apparel & Accessories",parent_category_id:0},{category_id:6,name:"Home Appliances",parent_category_id:0},{category_id:7,name:"Computer & Office",parent_category_id:0},{category_id:13,name:"Home Improvement",parent_category_id:0},{category_id:15,name:"Home & Garden",parent_category_id:0},{category_id:18,name:"Sports & Entertainment",parent_category_id:0},{category_id:21,name:"Office & School Supplies",parent_category_id:0},{category_id:26,name:"Toys & Hobbies",parent_category_id:0},{category_id:30,name:"Security & Protection",parent_category_id:0}];function s(e){return{category_id:e.category_id,name:e.category_name,parent_category_id:e.parent_category_id,children:e.children?.map(s)}}async function o(e){try{let t=await fetch(`/api/proxy/discovery/categories${e}`);if(!t.ok)throw new a(`HTTP ${t.status}: ${t.statusText}`,"HTTP_ERROR",t.status);let r=await t.json();if(!r.ok)throw new a(r.error?.message??"Failed to load categories",r.error?.code??"UNKNOWN_ERROR");let o=(r.data?.categories??r.data??[]).map(s);if(0===o.length)return{categories:n};return{categories:o}}catch{return{categories:n}}}function i(){return o("?hot=true")}function d(){return o("")}},21275:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(3250).A)("crosshair",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]])},27022:(e,t,r)=>{"use strict";r.d(t,{CategoriesClient:()=>f});var a=r(24130),n=r(7946),s=r(21131),o=r(71900),i=r(10345),d=r(84607),c=r(99605),l=r(55254);let g=(0,r(3250).A)("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]);var m=r(6429),u=r(27101),h=r(77283),x=r(63828);let y=` 2 @media (prefers-reduced-motion: no-preference) { 3 @keyframes card-enter { 4 from { opacity: 0; transform: translateY(20px) scale(0.97); } 5 to { opacity: 1; transform: translateY(0) scale(1); } 6 } 7 .cat-card { 8 animation: card-enter 0.38s cubic-bezier(0.22,1,0.36,1) both; 9 } 10 } 11`;function b({count:e=12}){return(0,a.jsx)(a.Fragment,{children:Array.from({length:e}).map((e,t)=>(0,a.jsx)("div",{className:"rounded-xl border border-gray-200 bg-white p-5 dark:border-gray-800 dark:bg-gray-900",children:(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"h-10 w-10 rounded-lg skeleton-shimmer"}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("div",{className:"h-4 w-3/4 rounded skeleton-shimmer"}),(0,a.jsx)("div",{className:"mt-2 h-3 w-1/2 rounded skeleton-shimmer"})]})]})},t))})}function p({category:e,index:t,view:r}){let i=(0,s.c)("categories"),[l,g]=(0,n.useState)(!1),m=(0,x.q1)(e.category_id),u=e.children??[],h=u.length>0;return"list"===r?(0,a.jsxs)("div",{className:"cat-card group rounded-xl border border-gray-200 bg-white transition-all duration-200 hover:border-gray-300 hover:shadow-md dark:border-gray-800 dark:bg-gray-900 dark:hover:border-gray-700",style:{animationDelay:`${Math.min(30*t,600)}ms`},children:[(0,a.jsxs)("div",{className:"flex items-center gap-4 p-4",children:[(0,a.jsx)("div",{className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-lg transition-transform duration-200 group-hover:scale-110 ${x.LI[t%x.LI.length]}`,children:(0,a.jsx)(m,{className:`h-5 w-5 ${x.Wc[t%x.Wc.length]}`,"aria-hidden":"true"})}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("h2",{className:"text-sm font-semibold text-gray-900 dark:text-white",children:e.name}),h&&(0,a.jsx)("p",{className:"mt-0.5 text-xs text-gray-500 dark:text-gray-400",children:i("subcategoriesCount",{count:u.length})})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[h&&(0,a.jsx)("button",{type:"button",onClick:()=>g(!l),"aria-expanded":l,"aria-label":i(l?"hideSubcategories":"showSubcategories"),className:"rounded-lg p-2 text-gray-400 transition-colors hover:bg-gray-100 hover:text-gray-600 dark:hover:bg-gray-800 dark:hover:text-gray-300",children:(0,a.jsx)(d.A,{className:`h-4 w-4 transition-transform duration-200 ${l?"rotate-180":""}`})}),(0,a.jsxs)(o.N_,{href:`/explore?category=${e.category_id}`,className:"inline-flex items-center gap-1.5 rounded-lg bg-gray-50 px-3 py-1.5 text-xs font-medium text-gray-600 transition-all duration-200 hover:bg-brand-50 hover:text-brand-600 hover:shadow-sm dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-brand-950/50 dark:hover:text-brand-400",children:[i("browseProducts"),(0,a.jsx)(c.A,{className:"h-3 w-3 transition-transform duration-150 group-hover:translate-x-0.5"})]})]})]}),h&&l&&(0,a.jsx)("div",{className:"border-t border-gray-100 px-4 pb-4 pt-3 dark:border-gray-800",children:(0,a.jsx)("div",{className:"flex flex-wrap gap-1.5",children:u.map(e=>(0,a.jsx)(o.N_,{href:`/explore?category=${e.category_id}`,className:"rounded-md bg-gray-50 px-2.5 py-1 text-xs text-gray-600 transition-colors hover:bg-brand-50 hover:text-brand-600 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-brand-950/50 dark:hover:text-brand-400",children:e.name},e.category_id))})})]}):(0,a.jsxs)("div",{className:`cat-card group rounded-xl border bg-white transition-all duration-200 hover:-translate-y-0.5 hover:shadow-lg dark:bg-gray-900 ${x.te[t%x.te.length]}`,style:{animationDelay:`${Math.min(28*t,600)}ms`},children:[(0,a.jsxs)("div",{className:"p-5",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between",children:[(0,a.jsx)("div",{className:`flex h-11 w-11 items-center justify-center rounded-xl transition-transform duration-200 group-hover:scale-110 ${x.LI[t%x.LI.length]}`,children:(0,a.jsx)(m,{className:`h-5 w-5 ${x.Wc[t%x.Wc.length]}`,"aria-hidden":"true"})}),h&&(0,a.jsx)("button",{type:"button",onClick:()=>g(!l),"aria-expanded":l,"aria-label":i(l?"hideSubcategories":"showSubcategories"),className:"rounded-lg p-1.5 text-gray-400 transition-colors hover:bg-gray-100 hover:text-gray-600 dark:hover:bg-gray-800 dark:hover:text-gray-300",children:(0,a.jsx)(d.A,{className:`h-4 w-4 transition-transform duration-200 ${l?"rotate-180":""}`})})]}),(0,a.jsx)("h2",{className:"mt-3 text-sm font-semibold text-gray-900 dark:text-white",children:e.name}),h&&(0,a.jsx)("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:i("subcategoriesCount",{count:u.length})}),(0,a.jsxs)(o.N_,{href:`/explore?category=${e.category_id}`,className:"mt-3 inline-flex items-center gap-1 text-xs font-medium text-gray-400 transition-colors group-hover:text-brand-600 dark:group-hover:text-brand-400",children:[i("browseProducts"),(0,a.jsx)(c.A,{className:"h-3 w-3 transition-transform group-hover:translate-x-0.5"})]})]}),h&&l&&(0,a.jsx)("div",{className:"border-t border-gray-100 px-5 pb-4 pt-3 dark:border-gray-800",children:(0,a.jsx)("div",{className:"flex flex-wrap gap-1.5",children:u.map(e=>(0,a.jsx)(o.N_,{href:`/explore?category=${e.category_id}`,className:"rounded-md bg-gray-50 px-2.5 py-1 text-xs text-gray-600 transition-colors hover:bg-brand-50 hover:text-brand-600 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-brand-950/50 dark:hover:text-brand-400",children:e.name},e.category_id))})})]})}function f(){let e=(0,s.c)("categories"),{data:t,isLoading:r}
11=(0,h.F)(),[o,d]=(0,n.useState)(""),[c,f]=(0,n.useState)("grid"),k=(0,n.useMemo)(()=>(t?.categories??[]).filter(e=>e.name&&!x.rB.has(e.category_id)),[t]),v=(0,n.useMemo)(()=>{if(!o.trim())return k;let e=o.toLowerCase();return k.filter(t=>t.name.toLowerCase().includes(e)||t.children?.some(t=>t.name.toLowerCase().includes(e)))},[k,o]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("style",{dangerouslySetInnerHTML:{__html:y}}),(0,a.jsxs)("main",{className:"min-h-screen bg-gray-50 dark:bg-gray-950",children:[(0,a.jsx)("section",{className:"border-b border-gray-200 bg-white dark:border-gray-800 dark:bg-gray-900",children:(0,a.jsx)(i.mc,{size:"lg",children:(0,a.jsxs)("div",{className:"py-6 sm:py-8",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("h1",{className:"text-2xl font-bold tracking-tight text-gray-900 dark:text-white sm:text-3xl",children:[e("pageTitle")," ",(0,a.jsx)("span",{className:"text-brand-600 dark:text-brand-400",children:e("pageTitleAccent")})]}),(0,a.jsx)("p",{className:"mt-1 text-sm text-gray-500 dark:text-gray-400",children:e("pageSubtitle")})]}),(0,a.jsxs)("div",{className:"mt-1 flex shrink-0 items-center rounded-lg border border-gray-200 bg-gray-50 p-0.5 dark:border-gray-700 dark:bg-gray-800",children:[(0,a.jsx)("button",{type:"button",onClick:()=>f("grid"),className:`rounded-md p-2 transition-all duration-200 ${"grid"===c?"bg-white text-gray-900 shadow-sm dark:bg-gray-700 dark:text-white":"text-gray-400 hover:text-gray-600 dark:hover:text-gray-300"}`,"aria-label":e("gridView"),children:(0,a.jsx)(l.A,{className:"h-4 w-4"})}),(0,a.jsx)("button",{type:"button",onClick:()=>f("list"),className:`rounded-md p-2 transition-all duration-200 ${"list"===c?"bg-white text-gray-900 shadow-sm dark:bg-gray-700 dark:text-white":"text-gray-400 hover:text-gray-600 dark:hover:text-gray-300"}`,"aria-label":e("listView"),children:(0,a.jsx)(g,{className:"h-4 w-4"})})]})]}),(0,a.jsx)("div",{className:"mt-4 max-w-md",children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(m.A,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-gray-400"}),(0,a.jsx)("input",{type:"text",value:o,onChange:e=>d(e.target.value),placeholder:e("searchPlaceholder"),className:"w-full rounded-lg border border-gray-200 bg-white py-2.5 pl-10 pr-4 text-sm text-gray-900 placeholder-gray-400 transition-all duration-200 focus:border-brand-500 focus:outline-none focus:ring-2 focus:ring-brand-500/20 dark:border-gray-700 dark:bg-gray-800 dark:text-white dark:placeholder-gray-500"})]})}),!r&&(0,a.jsxs)("div",{className:"mt-3 flex items-center gap-3",children:[(0,a.jsx)("span",{className:"inline-flex items-center rounded-full bg-gray-100 px-3 py-1 text-xs font-medium text-gray-600 dark:bg-gray-800 dark:text-gray-400",children:e("totalCategories",{count:v.length})}),o&&v.length!==k.length&&(0,a.jsx)("button",{type:"button",onClick:()=>d(""),className:"text-xs font-medium text-brand-600 hover:text-brand-700 dark:text-brand-400 dark:hover:text-brand-300",children:e("clearSearch")})]})]})})}),(0,a.jsx)("section",{className:"py-6",children:(0,a.jsxs)(i.mc,{size:"lg",children:["grid"===c?(0,a.jsx)("div",{className:"grid gap-3 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:r?(0,a.jsx)(b,{count:16}):v.map((e,t)=>(0,a.jsx)(p,{category:e,index:t,view:"grid"},e.category_id))}):(0,a.jsx)("div",{className:"mx-auto max-w-4xl space-y-2",children:r?(0,a.jsx)(b,{count:10}):v.map((e,t)=>(0,a.jsx)(p,{category:e,index:t,view:"list"},e.category_id))}),!r&&0===v.length&&o&&(0,a.jsxs)("div",{className:"flex flex-col items-center py-12 sm:py-16 lg:py-20",children:[(0,a.jsx)("div",{className:"flex h-14 w-14 items-center justify-center rounded-2xl bg-gray-100 dark:bg-gray-800",children:(0,a.jsx)(m.A,{className:"h-6 w-6 text-gray-400"})}),(0,a.jsx)("p",{className:"mt-4 text-sm font-medium text-gray-900 dark:text-white",children:e("noResults")}),(0,a.jsx)("p",{className:"mt-1 text-sm text-gray-500 dark:text-gray-400",children:e("noResultsHint")}),(0,a.jsx)("button",{type:"button",onClick:()=>d(""),className:"mt-4 rounded-lg bg-brand-600 px-4 py-2 text-sm font-medium text-white transition-colors hover:bg-brand-700",children:"Clear search"})]})]})})]}),(0,a.jsx)(u.w,{})]})}},27644:(e,t,r)=>{Promise.resolve().then(r.bind(r,27022)),Promise.resolve().then(r.bind(r,41717)),Promise.resolve().then(r.bind(r,30755))},34641:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(3250).A)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},41717:(e,t,r)=>{"use strict";r.d(t,{InstallButton:()=>s});var a=r(24130),n=r(68943);function s({href:e,page:t,className:r,children:s,intent:o="generic",variant:i="default"}){return(0,a.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:r,onClick:()=>{(0,n.s)("install_extension_click",{page:t}),(0,n.x)({surface:"web",intent:o,variant:i,placement:t})},children:s})}},41924:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(3250).A)("tags",[["path",{d:"M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z",key:"16rjxf"}],["path",{d:"M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193",key:"178nd4"}],["circle",{cx:"10.5",cy:"6.5",r:".5",fill:"currentColor",key:"12ikhr"}]])},53897:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(3250).A)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},55254:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(3250).A)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]])},63828:(e,t,r)=>{"use strict";r.d(t,{LI:()=>I,Wc:()=>L,q1:()=>C,rB:()=>$,te:()=>z});
11var a=r(65598),n=r(27835),s=r(70483),o=r(60057),i=r(92944),d=r(25685),c=r(77972),l=r(21444),g=r(78769),m=r(27384),u=r(40565),h=r(51912),x=r(16656),y=r(67666),b=r(20367),p=r(9996),f=r(15653),k=r(44257),v=r(11170),_=r(98576),w=r(47990),j=r(30330),N=r(39857),A=r(25859),M=r(79348);let S={2:a.A,3:n.A,6:s.A,7:o.A,13:i.A,15:d.A,18:c.A,21:l.A,26:g.A,30:m.A,34:u.A,36:h.A,39:x.A,44:y.A,66:b.A,320:p.A,322:f.A,502:k.A,509:y.A,1420:i.A,1501:g.A,1503:v.A,1511:_.A,1524:w.A,0xbf48435:j.A,0xc0d9241:N.A,0xc06bca8:c.A,0xc0d3613:y.A,0xbebc359:n.A,0xbebc357:n.A,0xbebc329:n.A,0xbee4718:j.A,0xc0dc2bc:A.A,0xbebc414:p.A,0xc0071ee:M.A},$=new Set([0x79c8459,0xc0d3481,0xbfd9acc,0xc02f6a2,0xbebc633]);function C(e){return S[e]??n.A}let I=["bg-brand-100 dark:bg-brand-500/20","bg-green-100 dark:bg-green-500/20","bg-purple-100 dark:bg-purple-500/20","bg-amber-100 dark:bg-amber-500/20","bg-cyan-100 dark:bg-cyan-500/20","bg-rose-100 dark:bg-rose-500/20","bg-blue-100 dark:bg-blue-500/20","bg-orange-100 dark:bg-orange-500/20","bg-teal-100 dark:bg-teal-500/20","bg-pink-100 dark:bg-pink-500/20"],L=["text-brand-500","text-green-500","text-purple-500","text-amber-500","text-cyan-500","text-rose-500","text-blue-500","text-orange-500","text-teal-500","text-pink-500"],z=["border-brand-500/20 hover:border-brand-500/40","border-green-500/20 hover:border-green-500/40","border-purple-500/20 hover:border-purple-500/40","border-amber-500/20 hover:border-amber-500/40","border-cyan-500/20 hover:border-cyan-500/40","border-rose-500/20 hover:border-rose-500/40","border-blue-500/20 hover:border-blue-500/40","border-orange-500/20 hover:border-orange-500/40","border-teal-500/20 hover:border-teal-500/40","border-pink-500/20 hover:border-pink-500/40"]},68751:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(3250).A)("compass",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]])},68943:(e,t,r)=>{"use strict";r.d(t,{s:()=>n,x:()=>s});var a=r(87946);function n(e,t){if("function"!=typeof window.gtag)return;let r={},a=function(){try{return window.location.pathname}catch{return}}();if(a&&(r.page_path=a),t)for(let[e,a]of Object.entries(t))null!=a&&(r[e]=a);window.gtag("event",e,r)}function s(e){if("function"!=typeof window.gtag)return;let t=(0,a.gz)(),r={surface:e.surface,intent:e.intent,variant:e.variant,placement:e.placement,page_path:window.location.pathname,...e.extra};t?.utm_source&&(r.utm_source=t.utm_source),t?.utm_medium&&(r.utm_medium=t.utm_medium),t?.utm_campaign&&(r.utm_campaign=t.utm_campaign),window.gtag("event","install_cta_click",r)}},77283:(e,t,r)=>{"use strict";r.d(t,{F:()=>s});var a=r(56945),n=r(17984);function s(){return(0,a.I)({queryKey:["discovery","categories","all"],queryFn:()=>(0,n.QU)(),staleTime:72e5})}},84512:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(3250).A)("newspaper",[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]])},84607:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(3250).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},87946:(e,t,r)=>{"use strict";r.d(t,{YA:()=>l,gz:()=>c});let a="as_attr";function n(){if("undefined"==typeof document)return null;try{let e=document.cookie.match(RegExp(`(?:^|;\\s*)${a}=([^;]+)`));if(!e)return null;let t=JSON.parse(decodeURIComponent(e[1]));if(!t||"number"!=typeof t.t||Date.now()-t.t>2592e6)return null;return{utm_source:t.s,utm_medium:t.m,utm_campaign:t.c,utm_content:t.ct,ts:t.t}}catch{return null}}let s="astools_web_attribution",o=["chromewebstore.google.com","chrome.google.com"],i=["google.","bing.com","yahoo.com","duckduckgo.com","baidu.com","yandex."];function d(e,t){return t.some(t=>t.endsWith(".")?e.startsWith(t)||e.includes(`.${t}`):e===t||e.endsWith(`.${t}`))}function c(){try{let e=window.localStorage.getItem(s);if(e){let t=JSON.parse(e);if(Date.now()-t.ts<=2592e6)return t;window.localStorage.removeItem(s)}}catch{}let e=n();return e?{utm_source:e.utm_source,utm_medium:e.utm_medium,utm_campaign:e.utm_campaign,utm_c
11ontent:e.utm_content,ts:e.ts}:null}function l(){try{let t=new URL(window.location.href).searchParams,r=t.has("utm_source")||t.has("utm_medium")||t.has("utm_campaign")||t.has("gclid"),l=null;if(r)l={utm_source:t.get("utm_source")??void 0,utm_medium:t.get("utm_medium")??void 0,utm_campaign:t.get("utm_campaign")??void 0,utm_content:t.get("utm_content")??void 0,ts:Date.now()};else if(!c()){var e;let t,r=document.referrer;if(!r)return;try{let e=new URL(r);if(e.hostname===window.location.hostname)return;t=e.hostname.toLowerCase()}catch{return}if(e=t,"astools.app"===e||e.endsWith(".astools.app")||d(t,o))return;l={utm_source:t,utm_medium:d(t,i)?"organic":"referral",ts:Date.now()}}if(!l)return;window.localStorage.setItem(s,JSON.stringify(l)),function(e){if("undefined"!=typeof document)try{if(!window.location.hostname.endsWith("astools.app")||n())return;let t={s:e.utm_source,m:e.utm_medium,c:e.utm_campaign,ct:e.utm_content,t:Date.now()},r=encodeURIComponent(JSON.stringify(t)),s=Math.floor(2592e3),o="https:"===window.location.protocol?"; Secure":"";document.cookie=`${a}=${r}; Domain=.astools.app; Path=/; Max-Age=${s}; SameSite=Lax${o}`}catch{}}(l),window.gtag?.("set","user_properties",{utm_source:l.utm_source,utm_medium:l.utm_medium,utm_campaign:l.utm_campaign})}catch{}}}},e=>{e.O(0,[7697,755,9603,3729,3083,7728,345,7101,4344,46,7358],()=>e(e.s=27644)),_N_E=e.O()}]);
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.