1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[910],{910:(e,t,r)=>{r.r(t),r.d(t,{default:()=>B});var a=r(95155),n=r(83237),l=r(95604),s=r(12115),i=r(39341),c=r(80160),o=r(16933),d=r(22789);function m(){let e=(0,l.useTranslations)("Search"),t=(0,i.MJ)();return t.user?t.user.isPremium?null:(0,a.jsx)("div",{className:"p-2",children:(0,a.jsxs)(o.N_,{className:"relative flex min-h-[62px] items-center rounded-[4px] bg-[#282830] pb-1 pl-[131px] pr-3 pt-1 md:pl-[196px]",href:"https://member.op.gg/membership?redirect_url=".concat(window.location.href),children:[(0,a.jsx)(d.default,{className:"absolute left-[29px] hidden md:block",src:"/assets/images/banners/icon-opgg-premium-bg.png",width:151,height:63,alt:"OP.GG Premium"}),(0,a.jsx)(d.default,{className:"absolute left-3 block md:hidden",src:"/assets/images/banners/icon-opgg-premium-bg-m.png",width:107,height:60,alt:"OP.GG Premium Mobile"}),(0,a.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,a.jsx)(c.WY,{className:"h-auto w-[146px] text-gray-900 md:w-[156px]",width:128,height:24}),(0,a.jsx)("div",{className:"text-xs text-[#9AA4AF]",children:e("premium_banner_desc")})]})]})}):(0,a.jsx)("div",{className:"p-2",children:(0,a.jsxs)(o.N_,{className:"flex items-center justify-between rounded bg-gray-100 px-3 py-2.5",href:"https://member.op.gg/accounts/login?redirect_url=".concat(window.location.href),children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,a.jsx)(c.t6,{className:"logo [&>g>path:first-child]:fill-black dark:[&>g>path:first-child]:fill-white [&>g>path]:fill-white dark:[&>g>path]:fill-black"}),(0,a.jsx)("div",{className:"text-xs text-gray-600",children:e("member_login_desc")})]}),(0,a.jsx)(c.hI,{className:"text-gray-400"})]})})}var u=r(30926);let x=(0,u.createServerReference)("408752515939e1709672be513ba6057a48c2311e1f",u.callServer,void 0,u.findSourceMapURL,"getSummoners");var f=r(26657),g=r(49249),h=r(1e3),p=r(30097),v=r(66214),b=r(64269);function j(e){var t;let{closeQuickView:r}=e,n=(0,l.useTranslations)("Search"),{data:s}=(0,v.T)(),i=null==s||null==(t=s.filter(e=>e.lol_cpid&&e.puuid))?void 0:t.map(e=>{let{puuid:t,lol_cpid:r}=e;return{region:(0,b.Kc)(r),puuid:t}});return i&&i.length?(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"px-3 py-2 text-xs text-gray-500",children:n("my_profile")}),(0,a.jsx)(N,{identifiers:i,closeQuickView:r})]}):(0,a.jsx)(y,{})}function N(e){let{identifiers:t,closeQuickView:r}=e,{data:n,isLoading:l}=(0,p.$)(x,{identifiers:t});return l?(0,a.jsxs)("div",{className:"box-border flex w-full items-center gap-2 px-4 py-1.5",children:[(0,a.jsx)(h.A,{className:"aspect-square rounded-full"}),(0,a.jsx)("div",{className:"flex-1 pl-2.5 pr-6",children:(0,a.jsx)(h.A,{className:"h-6 w-full"})})]}):n&&n.length?(0,a.jsx)("div",{children:n.map(e=>{let t="".concat(e.gameName,"#").concat(e.tagline);return(0,a.jsxs)(g.A,{className:"relative pr-10",href:e.href,thumbnail:(0,a.jsx)(d.default,{src:e.thumbnail,width:36,height:36,alt:t}),sub:e.ranked,badge:(0,a.jsx)(c.OB,{}),onClick:r,children:[(0,a.jsx)("span",{className:"[&_em]:font-normal [&_em]:not-italic [&_em]:text-gray-500",dangerouslySetInnerHTML:{__html:"".concat(e.gameName," ").concat(e.tagline&&"<em>#".concat(e.tagline,"</em>"))}}),(0,a.jsx)("span",{className:"absolute right-3 top-1/2 -mt-3",children:(0,a.jsx)(c.hI,{className:"text-gray-400"})})]},t)})}):(0,a.jsx)(y,{})}function y(){let e=(0,l.useTranslations)("Search"),{mutate:t}=(0,p.$)(f.Y,void 0,{blockOnInit:!0});return(0,a.jsxs)("div",{className:"flex flex-col items-center gap-2 border-b border-gray-200 p-3 md:flex-row",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center gap-1 md:flex-1 md:items-start",children:[(0,a.jsx)("div",{className:"bg-gray-100 px-1 py-0.5 text-[11px] leading-normal text-gray-700",children:e("check_riot_notice")}),(0,a.jsx)("div",{className:"whitespace-pre-wrap text-sm text-gray-900 md:items-start [&>strong]:font-bold [&>strong]:text-main-500",children:e.rich("check_riot_desc",{strong:e=>(0,a.jsx)("strong",{children:e})})})]}),(0,a.jsx)("div",{className:"flex w-full md:w-auto",children:(0,a.jsxs)("button",{className:"box-border flex flex-1 items-center justify-center gap-1 whitespace-nowrap rounded border border-gray-250 bg-gray-0 p-2 text-sm md:py-1 md:text-xs",type:"button",onClick:()=>{t(void 0,{onSuccess:e=>{e&&(window.location.href=e)}})},children:[(0,a.jsx)(c.Am,{className:"md:w-5",viewBox:"0 0 24 24"}),e("check_riot_id")]})})]})}var k=r(99144),S=r(95742),w=r(24805),A=r(51213),_=r(61889);let O="searchHistory",M="bookmarked";function B(e){let{closeQuickView:t}
1=e,r=(0,l.useTranslations)("Search"),[n,i]=(0,s.useState)(()=>"0"===(0,b.em)(w.tF)?O:M),{bookmarkedSummoners:c,addBookmarkSummoner:o,removeBookmarkSummoner:d,BookmarkModalManager:u}=(0,A.C)(),x=(0,s.useMemo)(()=>[{id:O,title:r("recent_search")},{id:M,title:r("favorites")}],[r]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"w-full bg-gray-0 text-sm",children:[(0,a.jsx)(j,{closeQuickView:t}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"flex",children:x.map(e=>{let t;return(0,a.jsx)("button",{type:"button",className:(0,b.cn)("flex-1 bg-gray-100 p-2 text-gray-400",n===e.id&&"bg-gray-0"),onClick:(t=e.id,()=>{i(t),(0,b.Up)(w.tF,JSON.stringify(+(t!==O)))}),children:e.title},e.id)})}),n===O&&(0,a.jsx)(C,{closeQuickView:t,bookmarkedSummoners:c,addBookmarkSummoner:o,removeBookmarkSummoner:d}),n===M&&(0,a.jsx)(T,{closeQuickView:t,bookmarkedSummoners:c,removeBookmarkSummoner:d})]}),(0,a.jsx)(m,{})]}),(0,a.jsx)(u,{})]})}function C(e){let{closeQuickView:t,bookmarkedSummoners:r,addBookmarkSummoner:n,removeBookmarkSummoner:i}=e,c=(0,l.useTranslations)("Search"),[o,d]=(0,s.useState)(()=>JSON.parse((0,b.em)(w.tv)||"[]")),m=(e,t)=>{t.currentTarget.checked?n(e):i({gameName:e.gameName,region:e.region,tagline:e.tagline})};return(0,a.jsx)("div",{children:o.length>0?(0,a.jsx)("ul",{className:"md:my-1",children:o.map((e,n)=>(0,a.jsx)(R,{summoner:e,isBookmarked:r.some(t=>(0,_.p)(t,e)),onChangeFavorite:m,onClickClose:e=>(e=>{let t=o.filter(t=>!(0,_.p)(t,e));d(t),(0,b.Up)(w.tv,JSON.stringify(t))})(e),closeQuickView:t},n))}):(0,a.jsxs)(L,{children:[(0,a.jsx)(S.default,{className:"text-gray-300"}),c("no_result_recent_search")]})})}function T(e){let{bookmarkedSummoners:t,removeBookmarkSummoner:r,closeQuickView:n}=e,i=(0,l.useTranslations)("Search"),[o,d]=(0,s.useState)(!1);if(!t||0===t.length)return(0,a.jsx)("div",{children:(0,a.jsxs)(L,{children:[(0,a.jsx)(c.Ed,{viewBox:"0 0 24 24",className:"text-yellow-400"}),(0,a.jsx)("div",{children:i.rich("no_result_favorites",{icon:()=>(0,a.jsx)(c.Pp,{className:"inline text-gray-400",width:14,height:14,viewBox:"0 0 24 24"})})})]})});let m=o?t:t.slice(0,10);return(0,a.jsxs)("div",{children:[(0,a.jsx)("ul",{className:"md:my-1",children:m.map((e,t)=>(0,a.jsx)(R,{summoner:e,hideCheck:!0,onClickClose:e=>r(e.id?{id:e.id}:{gameName:e.gameName,tagline:e.tagline,region:e.region}),closeQuickView:n},t))}),t.length>10&&!o&&(0,a.jsx)("button",{className:"flex h-10 w-full items-center justify-center border-t border-gray-200 bg-gray-100 text-xs text-gray-900",onClick:()=>d(!0),children:i("show_more")})]})}function R(e){let{hideCheck:t,summoner:r,onClickClose:l,onChangeFavorite:i,isBookmarked:d,closeQuickView:m}=e,u=encodeURIComponent((null==r?void 0:r.tagline)?"".concat(r.gameName,"-").concat(r.tagline):r.summonerName),x=(null==r?void 0:r.tagline)?(0,a.jsxs)(a.Fragment,{children:[r.gameName," ",(0,a.jsx)("em",{children:"#".concat(r.tagline)})]}):(0,a.jsx)(a.Fragment,{children:r.summonerName}),f="checkFavorite-".concat(u),[g,h]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{h(!!d)},[d]),(0,a.jsxs)("li",{className:"flex items-center gap-2 px-4 py-1 hover:bg-gray-100",children:[(0,a.jsxs)(o.N_,{className:"flex flex-1 items-center gap-2 truncate py-0.5",href:"/summoners/".concat(r.region,"/").concat(u),onClick:m,children:[(0,a.jsx)("span",{children:(0,a.jsx)("span",{className:"flex h-[18px] items-center rounded bg-main-500 px-1 py-0.5 text-[11px] font-bold uppercase leading-[11px] tracking-normal text-white",children:r.region})}),(0,a.jsx)("span",{className:"h-[18px] truncate pr-1 [&_em]:font-normal [&_em]:not-italic [&_em]:text-gray-500",children:x})]}),!t&&(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:f,className:"cursor-pointer",children:g?(0,a.jsx)(c.Pp,{viewBox:"0 0 24 24",className:"text-yellow-400"}):(0,a.jsx)(c.Ed,{viewBox:"0 0 24 24",className:"text-gray-300"})}),(0,a.jsx)("input",{id:f,type:"checkbox",className:"hidden",checked:g,onChange:e=>i(r,e)})]}),(0,a.jsx)("button",{type:"button",onClick:e=>(0,n.A)(()=>l(r,e),300)(),children:(0,a.jsx)(k.A,{className:"text-gray-300"})})]})}function L(e){let{children:t}=e;return(0,a.jsx)("div",{className:"flex min-h-32 flex-col items-center justify-center gap-1 p-3 text-center text-xs text-gray-400",children:t})}},1e3:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(95155),n=r(64269);function l(e){let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,n.cn)("animate-pulse rounded bg-gray-200",t),...r})}},11331:(e,t,r)=>{r.d(t,{A:()=>a});let a=function(e){return null!=e&&"object"==typeof e}},26657:(e,t,r)=>{r.d(t,{Y:()=>n});var a=r(30926);let n=(0,a.createServerReference)("00a17e127f8c9050c65c32044337a4ac3b72b96936",a.callServer,void 0,a.findSourceMapURL,"findSummoner")},33476:(e,t,r)=>{r.d(t,{A:()=>a});let a=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},35582:(e,t,r)=>{r.d(t,{A:()=>m});var a=r(63e3),n=Object.prototype,l=n.hasOwnProperty,s=n.toString,i=a.A?a.A.toStringTag:void 0;let c=function(e){var t=l.call(e,i),r=e[i];try{e[i]=void 0;var a=!0}catch(e){}var n=s.call(e);return a&&(t?e[i]=r:delete e[i]),n};var o=Object.prototype.toString,d=a.A?a.A.toStringTag:void 0;
1let m=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":d&&d in Object(e)?c(e):o.call(e)}},49249:(e,t,r)=>{r.d(t,{A:()=>s});var a=r(95155),n=r(16933),l=r(64269);function s(e){let{thumbnail:t,sub:r,badge:s,className:i,children:c,...o}=e;return(0,a.jsxs)(n.N_,{className:(0,l.cn)("flex items-center gap-2 border-t border-gray-200 px-3 py-2 last-of-type:border-b hover:bg-gray-100 focus:bg-gray-100 focus:outline-none focus:ring-0",i),...o,children:[(0,a.jsxs)("span",{className:"relative",children:[(0,a.jsx)("span",{className:"inline-block overflow-hidden rounded-full align-top",children:t}),s&&(0,a.jsx)("span",{className:"absolute -right-1 top-0",children:s})]}),(0,a.jsxs)("span",{className:"flex flex-1 flex-col truncate",children:[(0,a.jsx)("span",{className:"truncate text-sm text-gray-900",children:c}),r&&(0,a.jsx)("span",{className:"truncate text-[11px] leading-[14px] text-gray-400",children:r})]})]})}},51213:(e,t,r)=>{r.d(t,{BookmarkedProvider:()=>w,C:()=>A});var a=r(95155),n=r(39341),l=r(80074),s=r(77202),i=r(67909),c=r(95604),o=r(12115),d=r(30926);let m=(0,d.createServerReference)("00bad378e7cd743a2de1b677f3f5b1bc3834e91f45",d.callServer,void 0,d.findSourceMapURL,"getBookmarkedSummoners"),u=(0,d.createServerReference)("409d74e56106be233961ca226fce5a4a512ec9323c",d.callServer,void 0,d.findSourceMapURL,"addBookmarkSummoners"),x=(0,d.createServerReference)("40cc7d165a84a1b0c328c82d201ed5d4e73c0dc9fd",d.callServer,void 0,d.findSourceMapURL,"addBookmarkSummoner"),f=(0,d.createServerReference)("40031263661ae26a905d2664579886c78afc31f9c9",d.callServer,void 0,d.findSourceMapURL,"removeBookmarkSummoner");var g=r(80160),h=r(24805);let p=(0,d.createServerReference)("4083be79a226c8ad3c29dc3d3404c2d2fa1bf28bf6",d.callServer,void 0,d.findSourceMapURL,"getBookmarkMigration");var v=r(30097),b=r(22789),j=r(61889),N=r(64269);let y=(0,i.default)(()=>r.e(3669).then(r.bind(r,43669)),{loadableGenerated:{webpack:()=>[43669]},ssr:!1}),k=(0,i.default)(()=>r.e(6101).then(r.bind(r,16101)),{loadableGenerated:{webpack:()=>[16101]},ssr:!1}),S=(0,l.eU)([]);function w(e){let{children:t}=e,r=(0,s.useSetAtom)(S),{mutate:l}=(0,v.$)(m,void 0,{blockOnInit:!0}),{mutate:i}=(0,v.$)(u,void 0,{blockOnInit:!0}),d=(0,c.useTranslations)("Search"),x=(0,n.MJ)(),[f,j]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=JSON.parse((0,N.em)(h.dK)||"[]");x.user?l(void 0,{onSuccess:t=>{var a,n;let l=JSON.parse((0,N.em)(h.xy)||"[]");0===t.length&&e.length>0&&!l.includes(null==(n=x.user)||null==(a=n.data)?void 0:a.mid)&&j(!0),r(t)}}):r(e.slice(0,5))},[x.user,r]);let k=()=>{var e,t;let r=JSON.parse((0,N.em)(h.xy)||"[]"),a=null==(t=x.user)||null==(e=t.data)?void 0:e.mid;!r.includes(a)&&a?r.push(a):console.error("Already canceled migration"),(0,N.Up)(h.xy,JSON.stringify(r)),j(!1)},w=()=>{k()},A=async()=>{var e;let t=[];for(let{gameName:e,tagline:r,region:a}of JSON.parse((0,N.em)(h.dK)||"[]")){let n=await p({gameName:e,tagline:r,region:a});n&&t.push(n)}i({bookmarkedSummoners:(null==(e=x.user)?void 0:e.isPremium)?t:t.slice(0,h.M3)},{onSuccess:()=>{l(void 0,{onSuccess:e=>r(e)}),k()},onError:e=>{422===e.error.status?alert(d("error_422")):alert("Unknown error - bookmark migration")}})},_=(0,o.useCallback)(()=>(0,a.jsx)(y,{isOpen:f,onClose:()=>j(!1),children:(0,a.jsxs)("div",{className:"relative flex min-h-[232px] w-[440px] bg-gray-0",children:[(0,a.jsx)(b.default,{src:"/assets/images/banners/icon-opgg-member-bg.png",width:880,height:240,className:"absolute h-auto w-auto",alt:""}),(0,a.jsxs)("div",{className:"relative flex w-full flex-col items-center justify-center gap-6 p-3 text-sm",children:[(0,a.jsx)("div",{className:"mt-2",children:(0,a.jsx)(g.t6,{className:"[&>g>path:first-child]:fill-black dark:[&>g>path:first-child]:fill-white [&>g>path]:fill-white dark:[&>g>path]:fill-black",width:170,height:24,viewBox:"0 0 114 16"})}),(0,a.jsx)("div",{className:"whitespace-pre-wrap text-center text-gray-400",children:d("favorite_migration_desc")}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("button",{type:"button",className:"flex min-h-10 items-center justify-center rounded border border-gray-250 bg-gray-0 px-4",onClick:w,children:d("cancel")}),(0,a.jsx)("button",{type:"button",className:"flex min-h-10 items-center justify-center rounded bg-main-500 px-4 text-white",onClick:A,children:d("save")})]})]})]})}),[f,d]);return(0,a.jsxs)(a.Fragment,{children:[t,(0,a.jsx)(_,{})]})}function A(){let e=(0,c.useTranslations)("Search"),t=(0,n.MJ)(),[r,l]=(0,s.useAtom)(S),[i,d]=(0,o.useState)(!1),[u,g]=(0,o.useState)(!1),{mutate:b,isLoading:y}=(0,v.$)(m,void 0,{blockOnInit:!0}),{mutate:w,isLoading:A}=(0,v.$)(x,void 0,{blockOnInit:!0}),{mutate:_,isLoading:O}=(0,v.$)(f,void 0,{blockOnInit:!0}),M=()=>{y||b(void 0,{onSuccess:e=>l(e)})};return{bookmarkedSummoners:r,addBookmarkSummoner:a=>new Promise((n,s)=>{if(t.user){if(t.user.isPremium){if(r.length>=h.HK){alert(e("warn_premium_limit_favorites")),s("premium limit favorites");return}}else if(r.length>=h.M3){g(!0),s("limit favorites");return}A||p({gameName:a.gameName,tagline:a.tagline,region:a.region}).then(e=>{if(!e)return null;w({puuid:e.puuid,region:e.region},{onSuccess:e=>{M(),n(e)},onError:e=>{s(e)}})})}else{if(r.length>=h._F){d(!0),s("guest limit favorites");return}let e=[a,...r];l(e),(0,N.Up)(h.dK,JSON.stringify(e)),n(e)}}),removeBookmarkSummoner:e=>new Promise((a,n)=>{if(t.user){var s;let t="id"in e?e.id:null==(s=r.find(t=>(0,j.p)(t,e)))?void 0:s.id;if(!t)return void n();O||_({id:t},{onSuccess:e=>{M(),a(e)},onError:e=>{n(e)}})}else if("gameName"in e){let t=r.filter(t=>!(0,j.p)(t,e));l(t),(0,N.Up)(h.dK,JSON.stringify(t)),a(t)}}),BookmarkModalManager:(0,o.useCallback)(()=>(0,a.jsx)(k,{isShowGuestBookmarkModal:i,isShowMemberBookmarkModal:u,setIsShowGuestBookmarkModal:d,setIsShowMemberBookmarkModal:g}),[i,u])}}},51985:(e,t,r)=>{r.d(t,{A:()=>a});let a="object"==typeof global&&global&&global.Object===Object&&global},59027:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(35582),n=r(11331);let l=function(e){return"symbol"==typeof e||(0,n.A)(e)&&"[object Symbol]"==(0,a.A)(e)}},61889:(e,t,r)=>{r.d(t,{S:()=>s,p:()=>i});var a=r(95155),n=r(80160),l=r(64269);let s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return({ALL:{label:"all",value:"",icon:(0,a.jsx)(n.fg,{className:(0,l.cn)("role-icon text-gray-400",t),viewBox:"0 0 24 24"})},CONTROLLER:{label:"controller",value:"CONTROLLER",icon:(0,a.jsx)(n.DS,{className:(0,l.cn)("role-icon text-gray-400",t),viewBox:"0 0 24 24"})},TANK:{label:"tank",value:"TANK",icon:(0,a.jsx)(n.he,{className:(0,l.cn)("role-icon text-gray-400",t),viewBox:"0 0 24 24"})},FIGHTER:{label:"fighter",value:"FIGHTER",icon:(0,a.jsx)(n.HN,{className:(0,l.cn)("role-icon text-gray-400",t),viewBox:"0 0 24 24"})},MAGE:{label:"mage",value:"MAGE",icon:(0,a.jsx)(n.Ot,{className:(0,l.cn)("role-icon text-gray-400",t),viewBox:"0 0 24 24"})},SLAYER:{label:"slayer",value:"SLAYER",icon:(0,a.jsx)(n.mF,{className:(0,l.cn)("role-icon text-gray-400",t),viewBox:"0 0 24 24"})},MARKSMAN:{label:"marksman",value:"MARKSMAN",icon:(0,a.jsx)(n.y5,{className:(0,l.cn)("role-icon text-gray-400",t),viewBox:"0 0 24 24"})}})[e||"ALL"]};function i(e,t){return"".concat(e.region.toLowerCase()).concat(e.gameName).concat(e.tagline)==="".concat(t.region.toLowerCase()).concat(t.gameName).concat(t.tagline)}},62308:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(51985),n="object"==typeof self&&self&&self.Object===Object&&self;let l=a.A||n||Function("return this")()},63e3:(e,t,r)=>{r.d(t,{A:()=>a});let a=r(62308).A.Symbol},83237:(e,t,r)=>{r.d(t,{A:()=>v});var a=r(33476),n=r(62308);let l=function(){return n.A.Date.now()};var s=/\s/;let i=function(e){for(var t=e.length;t--&&s.test(e.charAt(t)););return t};var c=/^\s+/,o=r(59027),d=0/0,m=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,x=/^0o[0-7]+$/i,f=parseInt;let g=function(e){if("number"==typeof e)return e;if((0,o.A)(e))return d;if((0,a.A)(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=(0,a.A)(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,i(t)+1).replace(c,""):t;var n=u.test(e);return n||x.test(e)?f(e.slice(2),n?2:8):m.test(e)?d:+e};var h=Math.max,p=Math.min;let v=function(e,t,r){var n,s,i,c,o,d,m=0,u=!1,x=!1,f=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var r=n,a=s;return n=s=void 0,m=t,c=e.apply(a,r)}function b(e){var r=e-d,a=e-m;return void 0===d||r>=t||r<0||x&&a>=i}function j(){var e,r,a,n=l();if(b(n))return N(n);o=setTimeout(j,(e=n-d,r=n-m,a=t-e,x?p(a,i-r):a))}function N(e){return(o=void 0,f&&n)?v(e):(n=s=void 0,c)}function y(){var e,r=l(),a=b(r);if(n=arguments,s=this,d=r,a){if(void 0===o)return m=e=d,o=setTimeout(j,t),u?v(e):c;if(x)return clearTimeout(o),o=setTimeout(j,t),v(d)}return void 0===o&&(o=setTimeout(j,t)),c}return t=g(t)||0,(0,a.A)(r)&&(u=!!r.leading,i=(x="maxWait"in r)?h(g(r.maxWait)||0,t):i,f="trailing"in r?!!r.trailing:f),y.cancel=function(){void 0!==o&&clearTimeout(o),m=0,n=d=s=o=void 0},y.flush=function(){return void 0===o?c:N(l())},y}}}]);
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.