PageSourceSearch

https://icon-hub.vercel.app/_next/static/chunks/bc154bb101c00826.js

js icon-hub.vercel.app collected 2026-10-03 07:06:37 UTC 37,084 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,7334,e=>{"use strict";let t=(0,e.i(774694).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeftIcon",()=>t],7334)},296546,e=>{"use strict";var t=e.i(624412),r=e.i(167881);let n=(0,e.i(774694).default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);var i=e.i(7334),s=e.i(763424),u=e.i(893166);function o({message:e="Oops! We couldn't find the icon you were looking for.",showGoBackButton:o=!0}){return(0,t.jsxs)(u.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2,ease:"easeInOut"},className:"flex flex-col items-center justify-center h-full",children:[(0,t.jsx)("div",{children:(0,t.jsx)(n,{className:"size-20 text-red-500"})}),(0,t.jsx)("div",{className:"text-2xl md:text-3xl lg:text-4xl font-semibold my-4 text-balance text-center",children:e}),(0,t.jsx)("div",{className:"mt-4",children:o&&(0,t.jsx)(r.Button,{variant:"outline",children:(0,t.jsx)(s.default,{href:"/icons",children:(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)(i.ArrowLeftIcon,{className:"size-4"}),"Go back to the icons page"]})})})})]})}e.s(["default",()=>o],296546)},728231,e=>{"use strict";var t=e.i(624412),r=e.i(995036),n=e.i(291967),i=e.i(430406),s=e.i(79014),u=e.i(255235),o=e.i(315599),a=e.i(306839),l=e.i(214260),c=e.i(111052),h=e.i(122925),d=e.i(665489),f=e.i(393136),p=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),g=r.forwardRef((e,r)=>(0,t.jsx)(h.Primitive.span,{...e,ref:r,style:{...p,...e.style}}));g.displayName="VisuallyHidden";var[x,m]=(0,s.createContextScope)("Tooltip",[a.createPopperScope]),y=(0,a.createPopperScope)(),v="TooltipProvider",A="tooltip.open",[C,b]=x(v),E=e=>{let{__scopeTooltip:n,delayDuration:i=700,skipDelayDuration:s=300,disableHoverableContent:u=!1,children:o}=e,a=r.useRef(!0),l=r.useRef(!1),c=r.useRef(0);return r.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,t.jsx)(C,{scope:n,isOpenDelayedRef:a,delayDuration:i,onOpen:r.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:r.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,s)},[s]),isPointerInTransitRef:l,onPointerInTransitChange:r.useCallback(e=>{l.current=e},[]),disableHoverableContent:u,children:o})};E.displayName=v;var w="Tooltip",[B,j]=x(w),F=e=>{let{__scopeTooltip:n,children:i,open:s,defaultOpen:u,onOpenChange:l,disableHoverableContent:c,delayDuration:h}=e,d=b(w,e.__scopeTooltip),p=y(n),[g,x]=r.useState(null),m=(0,o.useId)(),v=r.useRef(0),C=c??d.disableHoverableContent,E=h??d.delayDuration,j=r.useRef(!1),[F,D]=(0,f.useControllableState)({prop:s,defaultProp:u??!1,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(A))):d.onClose(),l?.(e)},caller:w}),k=r.useMemo(()=>F?j.current?"delayed-open":"instant-open":"closed",[F]),M=r.useCallback(()=>{window.clearTimeout(v.current),v.current=0,j.current=!1,D(!0)},[D]),_=r.useCallback(()=>{window.clearTimeout(v.current),v.current=0,D(!1)},[D]),S=r.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{j.current=!0,D(!0),v.current=0},E)},[E,D]);return r.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),(0,t.jsx)(a.Root,{...p,children:(0,t.jsx)(B,{scope:n,contentId:m,open:F,stateAttribute:k,trigger:g,onTriggerChange:x,onTriggerEnter:r.useCallback(()=>{d.isOpenDelayedRef.current?S():M()},[d.isOpenDelayedRef,S,M]),onTriggerLeave:r.useCallback(()=>{C?_():(window.clearTimeout(v.current),v.current=0)},[_,C]),onOpen:M,onClose:_,disableHoverableContent:C,children:i})})};F.displayName=w;var D="TooltipTrigger",k=r.forwardRef((e,s)=>{let{__scopeTooltip:u,...o}=e,l=j(D,u),c=b(D,u),d=y(u),f=r.useRef(null),p=(0,i.useComposedRefs)(s,f,l.onTriggerChange),g=r.useRef(!1),x=r.useRef(!1),m=r.useCallback(()=>g.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),(0,t.jsx)(a.Anchor,{asChild:!0,...d,children:(0,t.jsx)(h.Primitive.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...o,ref:p,onPointerMove:(0,n.composeEventHandlers)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(x.current||c.isPointerInTransitRef.current||(l.onTriggerEnter(),x.current=!0))}),onPointerLeave:(0,n.composeEventHandlers)(e.onPointerLeave,()=>{l.onTriggerLeave(),x.current=!1}),onPointerDown:(0,n.composeEventHandlers)(e.onPointerDown,()=>{l.open&&l.onClose(),g.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:(0,n.composeEventHandlers)(e.onFocus,()=>{g.current||l.onOpen()}
1),onBlur:(0,n.composeEventHandlers)(e.onBlur,l.onClose),onClick:(0,n.composeEventHandlers)(e.onClick,l.onClose)})})});k.displayName=D;var M="TooltipPortal",[_,S]=x(M,{forceMount:void 0}),T=e=>{let{__scopeTooltip:r,forceMount:n,children:i,container:s}=e,u=j(M,r);return(0,t.jsx)(_,{scope:r,forceMount:n,children:(0,t.jsx)(c.Presence,{present:n||u.open,children:(0,t.jsx)(l.Portal,{asChild:!0,container:s,children:i})})})};T.displayName=M;var R="TooltipContent",I=r.forwardRef((e,r)=>{let n=S(R,e.__scopeTooltip),{forceMount:i=n.forceMount,side:s="top",...u}=e,o=j(R,e.__scopeTooltip);return(0,t.jsx)(c.Presence,{present:i||o.open,children:o.disableHoverableContent?(0,t.jsx)(P,{side:s,...u,ref:r}):(0,t.jsx)(L,{side:s,...u,ref:r})})}),L=r.forwardRef((e,n)=>{let s=j(R,e.__scopeTooltip),u=b(R,e.__scopeTooltip),o=r.useRef(null),a=(0,i.useComposedRefs)(n,o),[l,c]=r.useState(null),{trigger:h,onClose:d}=s,f=o.current,{onPointerInTransitChange:p}=u,g=r.useCallback(()=>{c(null),p(!1)},[p]),x=r.useCallback((e,t)=>{let r,n=e.currentTarget,i={x:e.clientX,y:e.clientY},s=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(r,n,i,s)){case s:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}(i,n.getBoundingClientRect());c(((r=[...function(e,t,r=5){let n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(i,s),...function(e){let{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}(t.getBoundingClientRect())].slice()).sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r<e.length;r++){let n=e[r];for(;t.length>=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(r))),p(!0)},[p]);return r.useEffect(()=>()=>g(),[g]),r.useEffect(()=>{if(h&&f){let e=e=>x(e,f),t=e=>x(e,h);return h.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{h.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}},[h,f,x,g]),r.useEffect(()=>{if(l){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=h?.contains(t)||f?.contains(t),i=!function(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,s=t.length-1;e<t.length;s=e++){let u=t[e],o=t[s],a=u.x,l=u.y,c=o.x,h=o.y;l>n!=h>n&&r<(c-a)*(n-l)/(h-l)+a&&(i=!i)}return i}(r,l);n?g():i&&(g(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[h,f,l,d,g]),(0,t.jsx)(P,{...e,ref:a})}),[N,O]=x(w,{isInside:!1}),$=(0,d.createSlottable)("TooltipContent"),P=r.forwardRef((e,n)=>{let{__scopeTooltip:i,children:s,"aria-label":o,onEscapeKeyDown:l,onPointerDownOutside:c,...h}=e,d=j(R,i),f=y(i),{onClose:p}=d;return r.useEffect(()=>(document.addEventListener(A,p),()=>document.removeEventListener(A,p)),[p]),r.useEffect(()=>{if(d.trigger){let e=e=>{let t=e.target;t?.contains(d.trigger)&&p()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,p]),(0,t.jsx)(u.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:p,children:(0,t.jsxs)(a.Content,{"data-state":d.stateAttribute,...f,...h,ref:n,style:{...h.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,t.jsx)($,{children:s}),(0,t.jsx)(N,{scope:i,isInside:!0,children:(0,t.jsx)(g,{id:d.contentId,role:"tooltip",children:o||s})})]})})});I.displayName=R;var z="TooltipArrow",W=r.forwardRef((e,r)=>{let{__scopeTooltip:n,...i}=e,s=y(n);return O(z,n).isInside?null:(0,t.jsx)(a.Arrow,{...s,...i,ref:r})});W.displayName=z;var H=e.i(647163);function V({delayDuration:e=0,...r}){return(0,t.jsx)(E,{"data-slot":"tooltip-provider",delayDuration:e,...r})}function K({...e}){return(0,t.jsx)(V,{children:(0,t.jsx)(F,{"data-slot":"tooltip",...e})})}function q({...e}){return(0,t.jsx)(k,{"data-slot":"tooltip-trigger",...e})}function U({className:e,sideOffset:r=0,children:n,...i}){return(0,t.jsx)(T,{children:(0,t.jsxs)(I,{"data-slot":"tooltip-content",sideOffset:r,className:(0,H.cn)("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...i,children:[n,(0,t.jsx)(W,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}e.s(["Tooltip",()=>K,"TooltipContent",()=>U,"TooltipTrigger",()=>q],728231)},472697,23750,e=>{"use strict";e.s(["handleError",0,(e,t=!1)=>(console.error(e),t)],472697);var t=e.i(624412),r=e.i(647163);function n({className:e,type:n,...i}){return(0,t.jsx)("input",{type:n,"data-slot":"input",className:(0,r.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...i})}e.s(["Input",()=>n],23750)},418890,e=>{"use strict";e.s(["default",0,function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}])},961502,268890,e=>{"use strict";var t=e.g&&e.g.Object===Object&&e.g;e.s(["default",0,t],268890);var r="object"==typeof self&&self&&self.Object===Object&&self,n=t||r||Function("return this")();e.s(["default",0,n],961502)},717235,112380,e=>{"use strict";var t=e.i(961502);e.s(["default",0,function(){return t.default.Date.now()}],717235);var r=/\s/;let n=function(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t};var i=/^\s+/;e.s(["default",0,function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}],112380)},104979,192595,e=>{"use strict";var t=e.i(961502).default.Symbol;e.s(["default",0,t],192595);var r=Object.prototype,n=r.hasOwnProperty,i=r.toString,s=t?t.toStringTag:void 0;let u=function(e){var t=n.call(e,s),r=e[s];try{e[s]=void 0;var u=!0}catch(e){}var o=i.call(e);return u&&(t?e[s]=r:delete e[s]),o};var o=Object.prototype.toString,a=t?t.toStringTag:void 0;e.s(["default",0,function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?u(e):o.call(e)}],104979)},161184,e=>{"use strict";e.s(["default",0,function(e){return null!=e&&"object"==typeof e}])},305922,e=>{"use strict";var t=e.i(418890),r=e.i(717235),n=e.i(112380),i=e.i(104979),s=e.i(161184),u=0/0,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;let h=function(e){if("number"==typeof e)return e;if("symbol"==typeof(r=e)||(0,s.default)(r)&&"[object Symbol]"==(0,i.default)(r))return u;if((0,t.default)(e)){var r,h="function"==typeof e.valueOf?e.valueOf():e;e=(0,t.default)(h)?h+"":h}if("string"!=typeof e)return 0===e?e:+e;e=(0,n.default)(e);var d=a.test(e);return d||l.test(e)?c(e.slice(2),d?2:8):o.test(e)?u:+e};var d=Math.max,f=Math.min;e.s(["default",0,function(e,n,i){var s,u,o,a,l,c,p=0,g=!1,x=!1,m=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var r=s,n=u;return s=u=void 0,p=t,a=e.apply(n,r)}function v(e){var t=e-c,r=e-p;return void 0===c||t>=n||t<0||x&&r>=o}function A(){var e,t,i,s=(0,r.default)();if(v(s))return C(s);l=setTimeout(A,(e=s-c,t=s-p,i=n-e,x?f(i,o-t):i))}function C(e){return(l=void 0,m&&s)?y(e):(s=u=void 0,a)}function b(){var e,t=(0,r.default)(),i=v(t);if(s=arguments,u=this,c=t,i){if(void 0===l)return p=e=c,l=setTimeout(A,n),g?y(e):a;if(x)return clearTimeout(l),l=setTimeout(A,n),y(c)}return void 0===l&&(l=setTimeout(A,n)),a}return n=h(n)||0,(0,t.default)(i)&&(g=!!i.leading,o=(x="maxWait"in i)?d(h(i.maxWait)||0,n):o,m="trailing"in i?!!i.trailing:m),b.cancel=function(){void 0!==l&&clearTimeout(l),p=0,s=c=u=l=void 0},b.flush=function(){return void 0===l?a:C((0,r.default)())},b}],305922)},963773,e=>{"use strict";let t=(0,e.i(774694).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["default",()=>t])},882832,e=>{"use strict";var t,r,n=e.i(624412),i=e.i(995036),s=Object.defineProperty,u=new Map,o=new WeakMap,a=0;i.Component,null!=(null!=(r=i.useInsertionEffect)?r:i.useLayoutEffect)||i.useEffect;var l=e.i(659911),c=e.i(728231),h=e.i(914624),d=e.i(472697),f=e.i(763424);let p=i.default.memo(function({icon:e}){let[t,r]=(0,i.useState)(!1);return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(c.Tooltip,{children:[(0,n.jsx)(c.TooltipTrigger,{asChild:!0,children:(0,n.jsxs)(f.default,{href:`icons/${e.id}
1`,className:"relative w-[56px] h-[56px] bg-neutral-100 dark:bg-neutral-200 rounded-md flex items-center justify-center p-3 hover:bg-neutral-200 dark:hover:bg-neutral-300 transition-colors duration-200 cursor-pointer",children:[!t&&(0,n.jsx)("div",{className:"absolute inset-1 rounded bg-neutral-200 dark:bg-neutral-400 animate-pulse pointer-events-none"}),(0,n.jsx)(h.default,{src:e.path,alt:e.name,width:24,height:24,loading:"lazy",onError:t=>{(0,d.handleError)(`Failed to load icon ${e.name}`,void 0),t.currentTarget.style.display="none",r(!0)},onLoad:()=>r(!0),className:t?"opacity-100 transition-opacity duration-150":"opacity-0"})]})}),(0,n.jsxs)(c.TooltipContent,{children:[(0,n.jsx)("div",{className:"text-sm font-bold",children:e.name}),(0,n.jsxs)("div",{className:"text-sm",children:["By ",(0,n.jsx)("span",{className:"italic",children:e.source})]})]})]})})});var g=e.i(23750),x=e.i(305922);function m(e){return Array.isArray?Array.isArray(e):"[object Array]"===w(e)}let y=1/0;function v(e){return"string"==typeof e}function A(e){return"number"==typeof e}function C(e){return"object"==typeof e}function b(e){return null!=e}function E(e){return!e.trim().length}function w(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let B=Object.prototype.hasOwnProperty;class j{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let r=F(e);this._keys.push(r),this._keyMap[r.id]=r,t+=r.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function F(e){let t=null,r=null,n=null,i=1,s=null;if(v(e)||m(e))n=e,t=D(e),r=k(e);else{if(!B.call(e,"name"))throw Error("Missing name property in key");let u=e.name;if(n=u,B.call(e,"weight")&&(i=e.weight)<=0)throw Error(`Property 'weight' in key '${u}' must be a positive integer`);t=D(u),r=k(u),s=e.getFn}return{path:t,id:r,weight:i,src:n,getFn:s}}function D(e){return m(e)?e:e.split(".")}function k(e){return m(e)?e.join("."):e}var M={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(e,t){let r=[],n=!1,i=(e,t,s)=>{if(b(e))if(t[s]){var u,o;let a=e[t[s]];if(!b(a))return;if(s===t.length-1&&(v(a)||A(a)||!0===(u=a)||!1===u||C(o=u)&&null!==o&&"[object Boolean]"==w(u)))r.push(null==a?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-y?"-0":t}(a));else if(m(a)){n=!0;for(let e=0,r=a.length;e<r;e+=1)i(a[e],t,s+1)}else t.length&&i(a,t,s+1)}else r.push(e)};return i(e,v(t)?t.split("."):t,0),n?r:r[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};let _=/[^ ]+/g;class S{constructor({getFn:e=M.getFn,fieldNormWeight:t=M.fieldNormWeight}={}){this.norm=function(e=1,t=3){let r=new Map,n=Math.pow(10,t);return{get(t){let i=t.match(_).length;if(r.has(i))return r.get(i);let s=parseFloat(Math.round(1/Math.pow(i,.5*e)*n)/n);return r.set(i,s),s},clear(){r.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,v(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();v(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,r=this.size();t<r;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!b(e)||E(e))return;let r={v:e,i:t,n:this.norm.get(e)};this.records.push(r)}_addObject(e,t){let r={i:t,$:{}};this.keys.forEach((t,n)=>{let i=t.getFn?t.getFn(e):this.getFn(e,t.path);if(b(i)){if(m(i)){let e=[],t=[{nestedArrIndex:-1,value:i}];for(;t.length;){let{nestedArrIndex:r,value:n}=t.pop();if(b(n))if(v(n)&&!E(n)){let t={v:n,i:r,n:this.norm.get(n)};e.push(t)}
1else m(n)&&n.forEach((e,r)=>{t.push({nestedArrIndex:r,value:e})})}r.$[n]=e}else if(v(i)&&!E(i)){let e={v:i,n:this.norm.get(i)};r.$[n]=e}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function T(e,t,{getFn:r=M.getFn,fieldNormWeight:n=M.fieldNormWeight}={}){let i=new S({getFn:r,fieldNormWeight:n});return i.setKeys(e.map(F)),i.setSources(t),i.create(),i}function R(e,{errors:t=0,currentLocation:r=0,expectedLocation:n=0,distance:i=M.distance,ignoreLocation:s=M.ignoreLocation}={}){let u=t/e.length;if(s)return u;let o=Math.abs(n-r);return i?u+o/i:o?1:u}let I=String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):e=>e;class L{constructor(e,{location:t=M.location,threshold:r=M.threshold,distance:n=M.distance,includeMatches:i=M.includeMatches,findAllMatches:s=M.findAllMatches,minMatchCharLength:u=M.minMatchCharLength,isCaseSensitive:o=M.isCaseSensitive,ignoreDiacritics:a=M.ignoreDiacritics,ignoreLocation:l=M.ignoreLocation}={}){if(this.options={location:t,threshold:r,distance:n,includeMatches:i,findAllMatches:s,minMatchCharLength:u,isCaseSensitive:o,ignoreDiacritics:a,ignoreLocation:l},e=o?e:e.toLowerCase(),e=a?I(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const c=(e,t)=>{this.chunks.push({pattern:e,alphabet:function(e){let t={};for(let r=0,n=e.length;r<n;r+=1){let i=e.charAt(r);t[i]=(t[i]||0)|1<<n-r-1}return t}(e),startIndex:t})},h=this.pattern.length;if(h>32){let e=0;const t=h%32,r=h-t;for(;e<r;)c(this.pattern.substr(e,32),e),e+=32;if(t){const e=h-32;c(this.pattern.substr(e),e)}}else c(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:r,includeMatches:n}=this.options;if(e=t?e:e.toLowerCase(),e=r?I(e):e,this.pattern===e){let t={isMatch:!0,score:0};return n&&(t.indices=[[0,e.length-1]]),t}let{location:i,distance:s,threshold:u,findAllMatches:o,minMatchCharLength:a,ignoreLocation:l}=this.options,c=[],h=0,d=!1;this.chunks.forEach(({pattern:t,alphabet:r,startIndex:f})=>{let{isMatch:p,score:g,indices:x}=function(e,t,r,{location:n=M.location,distance:i=M.distance,threshold:s=M.threshold,findAllMatches:u=M.findAllMatches,minMatchCharLength:o=M.minMatchCharLength,includeMatches:a=M.includeMatches,ignoreLocation:l=M.ignoreLocation}={}){let c;if(t.length>32)throw Error("Pattern length exceeds max of 32.");let h=t.length,d=e.length,f=Math.max(0,Math.min(n,d)),p=s,g=f,x=o>1||a,m=x?Array(d):[];for(;(c=e.indexOf(t,g))>-1;)if(p=Math.min(R(t,{currentLocation:c,expectedLocation:f,distance:i,ignoreLocation:l}),p),g=c+h,x){let e=0;for(;e<h;)m[c+e]=1,e+=1}g=-1;let y=[],v=1,A=h+d,C=1<<h-1;for(let n=0;n<h;n+=1){let s=0,o=A;for(;s<o;)R(t,{errors:n,currentLocation:f+o,expectedLocation:f,distance:i,ignoreLocation:l})<=p?s=o:A=o,o=Math.floor((A-s)/2+s);A=o;let a=Math.max(1,f-o+1),c=u?d:Math.min(f+o,d)+h,b=Array(c+2);b[c+1]=(1<<n)-1;for(let s=c;s>=a;s-=1){let u=s-1,o=r[e.charAt(u)];if(x&&(m[u]=+!!o),b[s]=(b[s+1]<<1|1)&o,n&&(b[s]|=(y[s+1]|y[s])<<1|1|y[s+1]),b[s]&C&&(v=R(t,{errors:n,currentLocation:u,expectedLocation:f,distance:i,ignoreLocation:l}))<=p){if(p=v,(g=u)<=f)break;a=Math.max(1,2*f-g)}}if(R(t,{errors:n+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:l})>p)break;y=b}let b={isMatch:g>=0,score:Math.max(.001,v)};if(x){let e=function(e=[],t=M.minMatchCharLength){let r=[],n=-1,i=-1,s=0;for(let u=e.length;s<u;s+=1){let u=e[s];u&&-1===n?n=s:u||-1===n||((i=s-1)-n+1>=t&&r.push([n,i]),n=-1)}return e[s-1]&&s-n>=t&&r.push([n,s-1]),r}(m,o);e.length?a&&(b.indices=e):b.isMatch=!1}return b}(e,t,r,{location:i+f,distance:s,threshold:u,findAllMatches:o,minMatchCharLength:a,includeMatches:n,ignoreLocation:l});p&&(d=!0),h+=g,p&&x&&(c=[...c,...x])});let f={isMatch:d,score:d?h/this.chunks.length:1};return d&&n&&(f.indices=c),f}}class N{constructor(e){this.pattern=e}static isMultiMatch(e){return O(e,this.multiRegex)}static isSingleMatch(e){return O(e,this.singleRegex)}search(){}}function O(e,t){let r=e.match(t);return r?r[1]:null}class $ extends N{constructor(e,{location:t=M.location,threshold:r=M.threshold,distance:n=M.distance,includeMatches:i=M.includeMatches,findAllMatches:s=M.findAllMatches,minMatchCharLength:u=M.minMatchCharLength,isCaseSensitive:o=M.isCaseSensitive,ignoreDiacritics:a=M.ignoreDiacritics,ignoreLocation:l=M.ignoreLocation}={}){super(e),this._bitapSearch=new L(e,{location:t,threshold:r,distance:n,includeMatches:i,findAllMatches:s,minMatchCharLength:u,isCaseSensitive:o,ignoreDiacritics:a,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class P extends N{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,r=0,n=[],i=this.pattern.length;for(;(t=e.indexOf(this.pattern,r))>-1;)r=t+i,n.push([t,r-1]);let s=!!n.length;return{isMatch:s,score:+!s,indices:n}}}let z=[class extends N{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}
1search(e){let t=e===this.pattern;return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}},P,class extends N{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}},class extends N{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},class extends N{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},class extends N{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[e.length-this.pattern.length,e.length-1]}}},class extends N{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=-1===e.indexOf(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},$],W=z.length,H=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,V=new Set([$.type,P.type]),K=[];function q(e,t){for(let r=0,n=K.length;r<n;r+=1){let n=K[r];if(n.condition(e,t))return new n(e,t)}return new L(e,t)}let U="$and",J="$path",G=e=>!!(e[U]||e.$or),X=e=>({[U]:Object.keys(e).map(t=>({[t]:e[t]}))});function Y(e,t,{auto:r=!0}={}){let n=e=>{let i=Object.keys(e),s=!!e[J];if(!s&&i.length>1&&!G(e))return n(X(e));if(!m(e)&&C(e)&&!G(e)){let n=s?e[J]:i[0],u=s?e.$val:e[n];if(!v(u))throw Error(`Invalid value for key ${n}`);let o={keyId:k(n),pattern:u};return r&&(o.searcher=q(u,t)),o}let u={children:[],operator:i[0]};return i.forEach(t=>{let r=e[t];m(r)&&r.forEach(e=>{u.children.push(n(e))})}),u};return G(e)||(e=X(e)),n(e)}function Q(e,t){let r=e.matches;t.matches=[],b(r)&&r.forEach(e=>{if(!b(e.indices)||!e.indices.length)return;let{indices:r,value:n}=e,i={indices:r,value:n};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)})}function Z(e,t){t.score=e.score}class ee{constructor(e,t={},r){this.options={...M,...t},this.options.useExtendedSearch,this._keyStore=new j(this.options.keys),this.setCollection(e,r)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof S))throw Error("Incorrect 'index' type");this._myIndex=t||T(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){b(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){let t=[];for(let r=0,n=this._docs.length;r<n;r+=1){let i=this._docs[r];e(i,r)&&(this.removeAt(r),r-=1,n-=1,t.push(i))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){let{includeMatches:r,includeScore:n,shouldSort:i,sortFn:s,ignoreFieldNorm:u}=this.options,o=v(e)?v(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return!function(e,{ignoreFieldNorm:t=M.ignoreFieldNorm}){e.forEach(e=>{let r=1;e.matches.forEach(({key:e,norm:n,score:i})=>{let s=e?e.weight:null;r*=Math.pow(0===i&&s?Number.EPSILON:i,(s||1)*(t?1:n))}),e.score=r})}(o,{ignoreFieldNorm:u}),i&&o.sort(s),A(t)&&t>-1&&(o=o.slice(0,t)),function(e,t,{includeMatches:r=M.includeMatches,includeScore:n=M.includeScore}={}){let i=[];
1return r&&i.push(Q),n&&i.push(Z),e.map(e=>{let{idx:r}=e,n={item:t[r],refIndex:r};return i.length&&i.forEach(t=>{t(e,n)}),n})}(o,this._docs,{includeMatches:r,includeScore:n})}_searchStringList(e){let t=q(e,this.options),{records:r}=this._myIndex,n=[];return r.forEach(({v:e,i:r,n:i})=>{if(!b(e))return;let{isMatch:s,score:u,indices:o}=t.searchIn(e);s&&n.push({item:e,idx:r,matches:[{score:u,value:e,norm:i,indices:o}]})}),n}_searchLogical(e){let t=Y(e,this.options),r=(e,t,n)=>{if(!e.children){let{keyId:r,searcher:i}=e,s=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(t,r),searcher:i});return s&&s.length?[{idx:n,item:t,matches:s}]:[]}let i=[];for(let s=0,u=e.children.length;s<u;s+=1){let u=r(e.children[s],t,n);if(u.length)i.push(...u);else if(e.operator===U)return[]}return i},n=this._myIndex.records,i={},s=[];return n.forEach(({$:e,i:n})=>{if(b(e)){let u=r(t,e,n);u.length&&(i[n]||(i[n]={idx:n,item:e,matches:[]},s.push(i[n])),u.forEach(({matches:e})=>{i[n].matches.push(...e)}))}}),s}_searchObjectList(e){let t=q(e,this.options),{keys:r,records:n}=this._myIndex,i=[];return n.forEach(({$:e,i:n})=>{if(!b(e))return;let s=[];r.forEach((r,n)=>{s.push(...this._findMatches({key:r,value:e[n],searcher:t}))}),s.length&&i.push({idx:n,item:e,matches:s})}),i}_findMatches({key:e,value:t,searcher:r}){if(!b(t))return[];let n=[];if(m(t))t.forEach(({v:t,i:i,n:s})=>{if(!b(t))return;let{isMatch:u,score:o,indices:a}=r.searchIn(t);u&&n.push({score:o,key:e,value:t,idx:i,norm:s,indices:a})});else{let{v:i,n:s}=t,{isMatch:u,score:o,indices:a}=r.searchIn(i);u&&n.push({score:o,key:e,value:i,norm:s,indices:a})}return n}}ee.version="7.1.0",ee.createIndex=T,ee.parseIndex=function(e,{getFn:t=M.getFn,fieldNormWeight:r=M.fieldNormWeight}={}){let{keys:n,records:i}=e,s=new S({getFn:t,fieldNormWeight:r});return s.setKeys(n),s.setIndexRecords(i),s},ee.config=M,ee.parseQuery=Y,function(...e){K.push(...e)}(class{constructor(e,{isCaseSensitive:t=M.isCaseSensitive,ignoreDiacritics:r=M.ignoreDiacritics,includeMatches:n=M.includeMatches,minMatchCharLength:i=M.minMatchCharLength,ignoreLocation:s=M.ignoreLocation,findAllMatches:u=M.findAllMatches,location:o=M.location,threshold:a=M.threshold,distance:l=M.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:r,includeMatches:n,minMatchCharLength:i,findAllMatches:u,ignoreLocation:s,location:o,threshold:a,distance:l},e=t?e:e.toLowerCase(),e=r?I(e):e,this.pattern=e,this.query=function(e,t={}){return e.split("|").map(e=>{let r=e.trim().split(H).filter(e=>e&&!!e.trim()),n=[];for(let e=0,i=r.length;e<i;e+=1){let i=r[e],s=!1,u=-1;for(;!s&&++u<W;){let e=z[u],r=e.isMultiMatch(i);r&&(n.push(new e(r,t)),s=!0)}if(!s)for(u=-1;++u<W;){let e=z[u],r=e.isSingleMatch(i);if(r){n.push(new e(r,t));break}}}return n})}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:r,isCaseSensitive:n,ignoreDiacritics:i}=this.options;e=n?e:e.toLowerCase(),e=i?I(e):e;let s=0,u=[],o=0;for(let n=0,i=t.length;n<i;n+=1){let i=t[n];u.length=0,s=0;for(let t=0,n=i.length;t<n;t+=1){let n=i[t],{isMatch:a,indices:l,score:c}=n.search(e);if(a){if(s+=1,o+=c,r){let e=n.constructor.type;V.has(e)?u=[...u,...l]:u.push(l)}}else{o=0,s=0,u.length=0;break}}if(s){let e={isMatch:!0,score:o/s};return r&&(e.indices=u),e}}return{isMatch:!1,score:1}}});var et=e.i(950216),er=e.i(296546),en=e.i(893166),ei=e.i(963773),ei=ei;function es(){let[e,r]=(0,i.useState)(""),[s,c]=(0,i.useState)(""),[h,d]=(0,i.useState)(300),f=(0,i.useMemo)(()=>new ee(l.default,{keys:["name"],threshold:.3,ignoreLocation:!0}),[]),m=(0,i.useRef)((0,x.default)(e=>{c(e),d(250)},200)).current,y=(0,i.useMemo)(()=>s?f.search(s).map(e=>e.item):l.default,[s,f]),v=(0,i.useMemo)(()=>y.slice(0,h),[y,h]),A=h<y.length,{ref:C,inView:b}=function({threshold:e,delay:r,trackVisibility:n,rootMargin:s,root:l,triggerOnce:c,skip:h,initialInView:d,fallbackInView:f,onChange:p}={}){var g;let[x,m]=i.useState(null),y=i.useRef(p),v=i.useRef(d),[A,C]=i.useState({inView:!!d,entry:void 0});y.current=p,i.useEffect(()=>{let i;if(void 0===v.current&&(v.current=d),!h&&x)return i=function(e,r,n={},i=t){if(void 0===window.IntersectionObserver&&void 0!==i){let t=e.getBoundingClientRect();return r(i,{isIntersecting:i,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:t,intersectionRect:t,rootBounds:t}),()=>{}}let{id:s,observer:l,elements:c}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var r;return`${t}_${"root"===t?!(r=e.root)?"0":(o.has(r)||(a+=1,o.set(r,a.toString())),o.get(r)):e[t]}`}).toString(),r=u.get(t);if(!r){let n,i=new Map,s=new IntersectionObserver(t=>{t.forEach(t=>{var r;let s=t.isIntersecting&&n.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=s),null==(r=i.get(t.target))||r.forEach(e
1=>{e(s,t)})})},e);n=s.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:s,elements:i},u.set(t,r)}return r}(n),h=c.get(e)||[];return c.has(e)||c.set(e,h),h.push(r),l.observe(e),function(){h.splice(h.indexOf(r),1),0===h.length&&(c.delete(e),l.unobserve(e)),0===c.size&&(l.disconnect(),u.delete(s))}}(x,(e,t)=>{let r=v.current;v.current=e,(void 0!==r||e)&&(C({inView:e,entry:t}),y.current&&y.current(e,t),t.isIntersecting&&c&&i&&(i(),i=void 0))},{root:l,rootMargin:s,threshold:e,trackVisibility:n,delay:r},f),()=>{i&&i()}},[Array.isArray(e)?e.toString():e,x,l,s,c,h,n,f,r]);let b=null==(g=A.entry)?void 0:g.target,E=i.useRef(void 0);x||!b||c||h||E.current===b||(E.current=b,C({inView:!!d,entry:void 0}),v.current=d);let w=[m,A.inView,A.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}({threshold:.2});(0,i.useEffect)(()=>{b&&A&&d(e=>e+70)},[b,A]);let E=(0,i.useCallback)(e=>{r(e),m(e)},[m]);return(0,i.useEffect)(()=>()=>{m.cancel()},[]),(0,n.jsxs)(en.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2,ease:"easeInOut"},className:"p-4 max-w-7xl mx-auto flex flex-col h-full",children:[(0,n.jsx)("div",{className:"font-bold text-2xl mb-2",children:"Browse thousands of icons"}),(0,n.jsx)("div",{className:"text-base text-muted-foreground mb-4",children:"Search for an icon and click on it to customize and export it."}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(ei.default,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground pointer-events-none"}),(0,n.jsx)(g.Input,{placeholder:"Search for an icon",value:e,onChange:e=>E(e.target.value),className:"pl-9"})]}),v.length>0?(0,n.jsx)("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(56px,1fr))] gap-[8px] mt-4",children:v.map((e,t)=>(0,n.jsx)("div",{ref:t===v.length-1?C:null,children:(0,n.jsx)(p,{icon:e})},e.id))}):(0,n.jsx)("div",{className:"flex-1 h-full flex items-center justify-center",children:(0,n.jsx)(er.default,{showGoBackButton:!1})}),A&&(0,n.jsx)("div",{ref:C,className:"flex justify-center items-center py-4",children:(0,n.jsx)(et.Spinner,{})})]})}e.s(["default",()=>es],882832)}]);

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.