(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3828],{82222:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]])},98420:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]])},73618:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("Calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]])},88226:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]])},67782:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},47416:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]])},74440:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]])},76980:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("Paperclip",[["path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48",key:"1u3ebp"}]])},98728:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},71422:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("Smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]])},36556:function(){},66722:function(e){e.exports={style:{fontFamily:"'__Inter_d65c78', '__Inter_Fallback_d65c78'",fontStyle:"normal"},className:"__className_d65c78"}},21886:function(e,t,r){"use strict";let n,i;r.d(t,{p:function(){return _}});var s,o=r(2265),l=r(13323),a=r(17684),c=r(80004),u=r(93689),d=r(37863),h=r(47634),f=r(24536),p=r(40293),y=r(27847);let g=null!=(s=o.startTransition)?s:function(e){e()};var m=r(37388),v=((n=v||{})[n.Open=0]="Open",n[n.Closed=1]="Closed",n),x=((i=x||{})[i.ToggleDisclosure=0]="ToggleDisclosure",i[i.CloseDisclosure=1]="CloseDisclosure",i[i.SetButtonId=2]="SetButtonId",i[i.SetPanelId=3]="SetPanelId",i[i.LinkPanel=4]="LinkPanel",i[i.UnlinkPanel=5]="UnlinkPanel",i);let k={0:e=>({...e,disclosureState:(0,f.E)(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},4:e=>!0===e.linkedPanel?e:{...e,linkedPanel:!0},5:e=>!1===e.linkedPanel?e:{...e,linkedPanel:!1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}},w=(0,o.createContext)(null);function b(e){let t=(0,o.useContext)(w);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Disclosure /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,b),t}return t}w.displayName="DisclosureContext";let M=(0,o.createContext)(null);M.displayName="DisclosureAPIContext";let E=(0,o.createContext)(null);function C(e,t){return(0,f.E)(t.type,k,e,t)}E.displayName="DisclosurePanelContext";let R=o.Fragment,I=y.AN.RenderStrategy|y.AN.Static,_=Object.assign((0,y.yV)(function(e,t){let{defaultOpen:r=!1,...n}=e,i=(0,o.useRef)(null),s=(0,u.T)(t,(0,u.h)(e=>{i.current=e},void 0===e.as||e.as===o.Fragment)),a=(0,o.useRef)(null),c=(0,o.useRef)(null),h=(0,o.useReducer)(C,{disclosureState:r?0:1,linkedPanel:!1,buttonRef:c,panelRef:a,buttonId:null,panelId:null}),[{disclosureState:g,buttonId:m},v]=h,x=(0,l.z)(e=>{v({type:1});let t=(0,p.r)(i);if(!t||!m)return;let r=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:t.getElementById(m):t.getElementById(m);null==r||r.focus()}),k=(0,o.useMemo)(()=>({close:x}),[x]),b=(0,o.useMemo)(()=>({open:0===g,close:x}),[g,x]);return o.createElement(w.Provider,{value:h},o.createElement(M.Provider,{value:k},o.createElement(d.up,{value:(0,f.E)(g,{0:d.ZM.Open,1:d.ZM.Closed})},(0,y.sY)({ourProps:{ref:s},theirProps:n,slot:b,defaultTag:R,name:"Disclosure"}))))}),{Button:(0,y.yV)(function(e,t){let r=(0,a.M)(),{id:n="headlessui-disclosure-button-".concat(r),...i}=e,[s,d]=b("Disclosure.Button"),f=(0,o.useContext)(E),p=null!==f&&f===s.panelId,g=(0,o.useRef)(null),v=(0,u.T)(g,t,p?null:s.buttonRef),x=(0,y.Y2)();(0,o.useEffect)(()=>{if(!p)return d({type:2,buttonId:n}),()=>{d({type:2,buttonId:null})}},[n,d,p]);let k=(0,l.z)(e=>{var t;if(p){if(1===s.disclosureState)return;switch(e.key){case m.R.Space:case m.R.Enter:e.preventDefault(),e.stopPropagation(),d({type:0}),null==(t=s.buttonRef.current)||t.focus()}}else switch(e.key){case m.R.Space:case m.R.Enter:e.preventDefault(),e.stopPropagation(),d({type:0})}}),w=(0,l.z)(e=>{e.key===m.R.Space&&e.preventDefault()}),M=(0,l.z)(t=>{var r;(0,h.P)(t.currentTarget)||e.disabled||(p?(d({type:0}),null==(r=s.buttonRef.current)||r.focus()):d({type:0}))}),C=(0,o.useMemo)(()=>({open:0===s.disclosureState}),[s]),R=(0,c.f)(e,g),I=p?{ref:v,type:R,onKeyDown:k,onClick:M}:{ref:v,id:n,type:R,"aria-expanded":0===s.disclosureState,"aria-controls":s.linkedPanel?s.panelId:void 0,onKeyDown:k,onKeyUp:w,onClick:M};return(0,y.sY)({mergeRefs:x,ourProps:I,theirProps:i,slot:C,defaultTag:"button",name:"Disclosure.Button"})}),Panel:(0,y.yV)(function(e,t){let r=(0,a.M)(),{id:n="headlessui-disclosure-panel-".concat(r),...i}=e,[s,l]=b("Disclosure.Panel"),{close:c}=function e(t){let r=(0,o.useContext)(M);if(null===r){let r=Error("<".concat(t," /> is missing a parent <Disclosure /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(r,e),r}return r}("Disclosure.Panel"),h=(0,y.Y2)(),f=(0,u.T)(t,s.panelRef,e=>{g(()=>l({type:e?4:5}))});(0,o.useEffect)(()=>(l({type:3,panelId:n}),()=>{l({type:3,panelId:null})}),[n,l]);let p=(0,d.oJ)(),m=null!==p?(p&d.ZM.Open)===d.ZM.Open:0===s.disclosureState,v=(0,o.useMemo)(()=>({open:0===s.disclosureState,close:c}),[s,c]);return o.createElement(E.Provider,{value:s.panelId},(0,y.sY)({mergeRefs:h,ourProps:{ref:f,id:n},theirProps:i,slot:v,defaultTag:"div",features:I,visible:m,name:"Disclosure.Panel"}))})})},80004:function(e,t,r){"use strict";r.d(t,{f:function(){return o}});var n=r(2265),i=r(64518);function s(e){var t;if(e.type)return e.type;let r=null!=(t=e.as)?t:"button";if("string"==typeof r&&"button"===r.toLowerCase())return"button"}function o(e,t){let[r,o]=(0,n.useState)(()=>s(e));return(0,i.e)(()=>{o(s(e))},[e.type,e.as]),(0,i.e)(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&o("button")},[r,t]),r}},4355:function(e,t,r){"use strict";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},s),r?n.createElement("title",{id:i},r):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))});t.Z=i},6394:function(e,t,r){"use strict";r.d(t,{f:function(){return l}});var n=r(2265),i=r(66840),s=r(57437),o=n.forwardRef((e,t)=>(0,s.jsx)(i.WV.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));o.displayName="Label";var l=o},42325:function(e,t,r){"use strict";r.d(t,{ck:function(){return $},fC:function(){return O},z$:function(){return F}});var n=r(2265),i=r(6741),s=r(98575),o=r(73966),l=r(66840),a=r(21555),c=r(80886),u=r(29114),d=r(90420),h=r(6718),f=r(71599),p=r(57437),y="Radio",[g,m]=(0,o.b)(y),[v,x]=g(y),k=n.forwardRef((e,t)=>{let{__scopeRadio:r,name:o,checked:a=!1,required:c,disabled:u,value:d="on",onCheck:h,form:f,...y}=e,[g,m]=n.useState(null),x=(0,s.e)(t,e=>m(e)),k=n.useRef(!1),w=!g||f||!!g.closest("form");return(0,p.jsxs)(v,{scope:r,checked:a,disabled:u,children:[(0,p.jsx)(l.WV.button,{type:"button",role:"radio","aria-checked":a,"data-state":E(a),"data-disabled":u?"":void 0,disabled:u,value:d,...y,ref:x,onClick:(0,i.M)(e.onClick,e=>{a||null==h||h(),w&&(k.current=e.isPropagationStopped(),k.current||e.stopPropagation())})}),w&&(0,p.jsx)(M,{control:g,bubbles:!k.current,name:o,value:d,checked:a,required:c,disabled:u,form:f,style:{transform:"translateX(-100%)"}})]})});k.displayName=y;var w="RadioIndicator",b=n.forwardRef((e,t)=>{let{__scopeRadio:r,forceMount:n,...i}=e,s=x(w,r);return(0,p.jsx)(f.z,{present:n||s.checked,children:(0,p.jsx)(l.WV.span,{"data-state":E(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:t})})});b.displayName=w;var M=e=>{let{control:t,checked:r,bubbles:i=!0,...s}=e,o=n.useRef(null),l=(0,h.D)(r),a=(0,d.t)(t);return n.useEffect(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(l!==r&&t){let n=new Event("click",{bubbles:i});t.call(e,r),e.dispatchEvent(n)}},[l,r,i]),(0,p.jsx)("input",{type:"radio","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:o,style:{...e.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function E(e){return e?"checked":"unchecked"}var C=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],R="RadioGroup",[I,_]=(0,o.b)(R,[a.Pc,m]),S=(0,a.Pc)(),T=m(),[P,j]=I(R),L=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,name:n,defaultValue:i,value:s,required:o=!1,disabled:d=!1,orientation:h,dir:f,loop:y=!0,onValueChange:g,...m}=e,v=S(r),x=(0,u.gm)(f),[k,w]=(0,c.T)({prop:s,defaultProp:i,onChange:g});return(0,p.jsx)(P,{scope:r,name:n,required:o,disabled:d,value:k,onValueChange:w,children:(0,p.jsx)(a.fC,{asChild:!0,...v,orientation:h,dir:x,loop:y,children:(0,p.jsx)(l.WV.div,{role:"radiogroup","aria-required":o,"aria-orientation":h,"data-disabled":d?"":void 0,dir:x,...m,ref:t})})})});L.displayName=R;var A="RadioGroupItem",D=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,disabled:o,...l}=e,c=j(A,r),u=c.disabled||o,d=S(r),h=T(r),f=n.useRef(null),y=(0,s.e)(t,f),g=c.value===l.value,m=n.useRef(!1);return n.useEffect(()=>{let e=e=>{C.includes(e.key)&&(m.current=!0)},t=()=>m.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,p.jsx)(a.ck,{asChild:!0,...d,focusable:!u,active:g,children:(0,p.jsx)(k,{disabled:u,required:c.required,checked:g,...h,...l,name:c.name,ref:y,onCheck:()=>c.onValueChange(l.value),onKeyDown:(0,i.M)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,i.M)(l.onFocus,()=>{var e;m.current&&(null===(e=f.current)||void 0===e||e.click())})})})});D.displayName=A;var N=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,...n}=e,i=T(r);return(0,p.jsx)(b,{...i,...n,ref:t})});N.displayName="RadioGroupIndicator";var O=L,$=D,F=N},61312:function(e,t,r){"use strict";r.d(t,{VY:function(){return V},fC:function(){return Z},xz:function(){return z},zt:function(){return F}});var n=r(2265),i=r(6741),s=r(98575),o=r(73966),l=r(15278),a=r(99255),c=r(52736),u=(r(83832),r(71599)),d=r(66840),h=r(37053),f=r(80886),p=r(95098),y=r(57437),[g,m]=(0,o.b)("Tooltip",[c.D7]),v=(0,c.D7)(),x="TooltipProvider",k="tooltip.open",[w,b]=g(x),M=e=>{let{__scopeTooltip:t,delayDuration:r=700,skipDelayDuration:i=300,disableHoverableContent:s=!1,children:o}=e,[l,a]=n.useState(!0),c=n.useRef(!1),u=n.useRef(0);return n.useEffect(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,y.jsx)(w,{scope:t,isOpenDelayed:l,delayDuration:r,onOpen:n.useCallback(()=>{window.clearTimeout(u.current),a(!1)},[]),onClose:n.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a(!0),i)},[i]),isPointerInTransitRef:c,onPointerInTransitChange:n.useCallback(e=>{c.current=e},[]),disableHoverableContent:s,children:o})};M.displayName=x;var E="Tooltip",[C,R]=g(E),I=e=>{let{__scopeTooltip:t,children:r,open:i,defaultOpen:s=!1,onOpenChange:o,disableHoverableContent:l,delayDuration:u}=e,d=b(E,e.__scopeTooltip),h=v(t),[p,g]=n.useState(null),m=(0,a.M)(),x=n.useRef(0),w=null!=l?l:d.disableHoverableContent,M=null!=u?u:d.delayDuration,R=n.useRef(!1),[I=!1,_]=(0,f.T)({prop:i,defaultProp:s,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(k))):d.onClose(),null==o||o(e)}}),S=n.useMemo(()=>I?R.current?"delayed-open":"instant-open":"closed",[I]),T=n.useCallback(()=>{window.clearTimeout(x.current),R.current=!1,_(!0)},[_]),P=n.useCallback(()=>{window.clearTimeout(x.current),_(!1)},[_]),j=n.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{R.current=!0,_(!0)},M)},[M,_]);return n.useEffect(()=>()=>window.clearTimeout(x.current),[]),(0,y.jsx)(c.fC,{...h,children:(0,y.jsx)(C,{scope:t,contentId:m,open:I,stateAttribute:S,trigger:p,onTriggerChange:g,onTriggerEnter:n.useCallback(()=>{d.isOpenDelayed?j():T()},[d.isOpenDelayed,j,T]),onTriggerLeave:n.useCallback(()=>{w?P():window.clearTimeout(x.current)},[P,w]),onOpen:T,onClose:P,disableHoverableContent:w,children:r})})};I.displayName=E;var _="TooltipTrigger",S=n.forwardRef((e,t)=>{let{__scopeTooltip:r,...o}=e,l=R(_,r),a=b(_,r),u=v(r),h=n.useRef(null),f=(0,s.e)(t,h,l.onTriggerChange),p=n.useRef(!1),g=n.useRef(!1),m=n.useCallback(()=>p.current=!1,[]);return n.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),(0,y.jsx)(c.ee,{asChild:!0,...u,children:(0,y.jsx)(d.WV.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...o,ref:f,onPointerMove:(0,i.M)(e.onPointerMove,e=>{"touch"===e.pointerType||g.current||a.isPointerInTransitRef.current||(l.onTriggerEnter(),g.current=!0)}),onPointerLeave:(0,i.M)(e.onPointerLeave,()=>{l.onTriggerLeave(),g.current=!1}),onPointerDown:(0,i.M)(e.onPointerDown,()=>{p.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:(0,i.M)(e.onFocus,()=>{p.current||l.onOpen()}),onBlur:(0,i.M)(e.onBlur,l.onClose),onClick:(0,i.M)(e.onClick,l.onClose)})})});S.displayName=_;var[T,P]=g("TooltipPortal",{forceMount:void 0}),j="TooltipContent",L=n.forwardRef((e,t)=>{let r=P(j,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...s}=e,o=R(j,e.__scopeTooltip);return(0,y.jsx)(u.z,{present:n||o.open,children:o.disableHoverableContent?(0,y.jsx)(O,{side:i,...s,ref:t}):(0,y.jsx)(A,{side:i,...s,ref:t})})}),A=n.forwardRef((e,t)=>{let r=R(j,e.__scopeTooltip),i=b(j,e.__scopeTooltip),o=n.useRef(null),l=(0,s.e)(t,o),[a,c]=n.useState(null),{trigger:u,onClose:d}=r,h=o.current,{onPointerInTransitChange:f}=i,p=n.useCallback(()=>{c(null),f(!1)},[f]),g=n.useCallback((e,t)=>{let r=e.currentTarget,n={x:e.clientX,y:e.clientY},i=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")}}(n,r.getBoundingClientRect());c(function(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),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)}(t)}([...function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,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}(n,i),...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())])),f(!0)},[f]);return n.useEffect(()=>()=>p(),[p]),n.useEffect(()=>{if(u&&h){let e=e=>g(e,h),t=e=>g(e,u);return u.addEventListener("pointerleave",e),h.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),h.removeEventListener("pointerleave",t)}}},[u,h,g,p]),n.useEffect(()=>{if(a){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=(null==u?void 0:u.contains(t))||(null==h?void 0:h.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 o=t[e].x,l=t[e].y,a=t[s].x,c=t[s].y;l>n!=c>n&&r<(a-o)*(n-l)/(c-l)+o&&(i=!i)}return i}(r,a);n?p():i&&(p(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[u,h,a,d,p]),(0,y.jsx)(O,{...e,ref:l})}),[D,N]=g(E,{isInside:!1}),O=n.forwardRef((e,t)=>{let{__scopeTooltip:r,children:i,"aria-label":s,onEscapeKeyDown:o,onPointerDownOutside:a,...u}=e,d=R(j,r),f=v(r),{onClose:g}=d;return n.useEffect(()=>(document.addEventListener(k,g),()=>document.removeEventListener(k,g)),[g]),n.useEffect(()=>{if(d.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(d.trigger))&&g()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,g]),(0,y.jsx)(l.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:g,children:(0,y.jsxs)(c.VY,{"data-state":d.stateAttribute,...f,...u,ref:t,style:{...u.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,y.jsx)(h.A4,{children:i}),(0,y.jsx)(D,{scope:r,isInside:!0,children:(0,y.jsx)(p.f,{id:d.contentId,role:"tooltip",children:s||i})})]})})});L.displayName=j;var $="TooltipArrow";n.forwardRef((e,t)=>{let{__scopeTooltip:r,...n}=e,i=v(r);return N($,r).isInside?null:(0,y.jsx)(c.Eh,{...i,...n,ref:t})}).displayName=$;var F=M,Z=I,z=S,V=L},88291:function(e,t,r){"use strict";r.r(t),r.d(t,{Analytics:function(){return d},track:function(){return u}});var n=r(2265),i=()=>{window.va||(window.va=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];(window.vaq=window.vaq||[]).push(t)})};function s(){return"undefined"!=typeof window}function o(){return"production"}function l(){return(s()?window.vam:o())||"production"}function a(){return"production"===l()}function c(){return"development"===l()}function u(e,t,r){var n,i;if(!s()){let e="[Vercel Web Analytics] Please import `track` from `@vercel/analytics/server` when using this function in a server environment";if(a())console.warn(e);else throw Error(e);return}if(!t){null==(n=window.va)||n.call(window,"event",{name:e,options:r});return}try{let n=function(e,t){if(!e)return;let r=e,n=[];for(let[i,s]of Object.entries(e))"object"==typeof s&&null!==s&&(t.strip?r=function(e,t){let{[e]:r,...n}=t;return n}(i,r):n.push(i));if(n.length>0&&!t.strip)throw Error("The following properties are not valid: ".concat(n.join(", "),". Only strings, numbers, booleans, and null are allowed."));return r}(t,{strip:a()});null==(i=window.va)||i.call(window,"event",{name:e,data:n,options:r})}catch(e){e instanceof Error&&c()&&console.error(e)}}function d(e){return(0,n.useEffect)(()=>{!function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{debug:!0};if(!s())return;(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto";if("auto"===e){window.vam=o();return}window.vam=e})(t.mode),i(),t.beforeSend&&(null==(e=window.va)||e.call(window,"beforeSend",t.beforeSend));let r=t.scriptSrc||(c()?"https://va.vercel-scripts.com/v1/script.debug.js":"/_vercel/insights/script.js");if(document.head.querySelector('script[src*="'.concat(r,'"]')))return;let n=document.createElement("script");n.src=r,n.defer=!0,n.dataset.sdkn="@vercel/analytics"+(t.framework?"/".concat(t.framework):""),n.dataset.sdkv="1.3.1",t.disableAutoTrack&&(n.dataset.disableAutoTrack="1"),t.endpoint&&(n.dataset.endpoint=t.endpoint),t.dsn&&(n.dataset.dsn=t.dsn),n.onerror=()=>{let e=c()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log("[Vercel Web Analytics] Failed to load script from ".concat(r,". ").concat(e))},c()&&!1===t.debug&&(n.dataset.debug="false"),document.head.appendChild(n)}({framework:e.framework||"react",...void 0!==e.route&&{disableAutoTrack:!0},...e})},[]),(0,n.useEffect)(()=>{e.route&&e.path&&function(e){var t;let{route:r,path:n}=e;null==(t=window.va)||t.call(window,"pageview",{route:r,path:n})}({route:e.route,path:e.path})},[e.route,e.path]),null}},53916:function(e,t,r){"use strict";function n(e){return Array.isArray?Array.isArray(e):"[object Array]"===u(e)}r.d(t,{Z:function(){return G}});let i=1/0;function s(e){return"string"==typeof e}function o(e){return"number"==typeof e}function l(e){return"object"==typeof e}function a(e){return null!=e}function c(e){return!e.trim().length}function u(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let d=e=>`Invalid value for key ${e}`,h=e=>`Pattern length exceeds max of ${e}.`,f=e=>`Missing ${e} property in key`,p=e=>`Property 'weight' in key '${e}' must be a positive integer`,y=Object.prototype.hasOwnProperty;class g{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let r=m(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 m(e){let t=null,r=null,i=null,o=1,l=null;if(s(e)||n(e))i=e,t=v(e),r=x(e);else{if(!y.call(e,"name"))throw Error(f("name"));let n=e.name;if(i=n,y.call(e,"weight")&&(o=e.weight)<=0)throw Error(p(n));t=v(n),r=x(n),l=e.getFn}return{path:t,id:r,weight:o,src:i,getFn:l}}function v(e){return n(e)?e:e.split(".")}function x(e){return n(e)?e.join("."):e}var k={isCaseSensitive:!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=[],c=!1,d=(e,t,h)=>{if(a(e)){if(t[h]){var f,p;let y=e[t[h]];if(a(y)){if(h===t.length-1&&(s(y)||o(y)||!0===(f=y)||!1===f||l(p=f)&&null!==p&&"[object Boolean]"==u(f)))r.push(null==y?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-i?"-0":t}(y));else if(n(y)){c=!0;for(let e=0,r=y.length;e<r;e+=1)d(y[e],t,h+1)}else t.length&&d(y,t,h+1)}}else r.push(e)}};return d(e,s(t)?t.split("."):t,0),c?r:r[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};let w=/[^ ]+/g;class b{constructor({getFn:e=k.getFn,fieldNormWeight:t=k.fieldNormWeight}={}){this.norm=function(e=1,t=3){let r=new Map,n=Math.pow(10,t);return{get(t){let i=t.match(w).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,s(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();s(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(!a(e)||c(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,i)=>{let o=t.getFn?t.getFn(e):this.getFn(e,t.path);if(a(o)){if(n(o)){let e=[],t=[{nestedArrIndex:-1,value:o}];for(;t.length;){let{nestedArrIndex:r,value:i}=t.pop();if(a(i)){if(s(i)&&!c(i)){let t={v:i,i:r,n:this.norm.get(i)};e.push(t)}else n(i)&&i.forEach((e,r)=>{t.push({nestedArrIndex:r,value:e})})}}r.$[i]=e}else if(s(o)&&!c(o)){let e={v:o,n:this.norm.get(o)};r.$[i]=e}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function M(e,t,{getFn:r=k.getFn,fieldNormWeight:n=k.fieldNormWeight}={}){let i=new b({getFn:r,fieldNormWeight:n});return i.setKeys(e.map(m)),i.setSources(t),i.create(),i}function E(e,{errors:t=0,currentLocation:r=0,expectedLocation:n=0,distance:i=k.distance,ignoreLocation:s=k.ignoreLocation}={}){let o=t/e.length;if(s)return o;let l=Math.abs(n-r);return i?o+l/i:l?1:o}class C{constructor(e,{location:t=k.location,threshold:r=k.threshold,distance:n=k.distance,includeMatches:i=k.includeMatches,findAllMatches:s=k.findAllMatches,minMatchCharLength:o=k.minMatchCharLength,isCaseSensitive:l=k.isCaseSensitive,ignoreLocation:a=k.ignoreLocation}={}){if(this.options={location:t,threshold:r,distance:n,includeMatches:i,findAllMatches:s,minMatchCharLength:o,isCaseSensitive:l,ignoreLocation:a},this.pattern=l?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;let 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})},u=this.pattern.length;if(u>32){let e=0,t=u%32,r=u-t;for(;e<r;)c(this.pattern.substr(e,32),e),e+=32;if(t){let e=u-32;c(this.pattern.substr(e),e)}}else c(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,includeMatches:r}=this.options;if(t||(e=e.toLowerCase()),this.pattern===e){let t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}let{location:n,distance:i,threshold:s,findAllMatches:o,minMatchCharLength:l,ignoreLocation:a}=this.options,c=[],u=0,d=!1;this.chunks.forEach(({pattern:t,alphabet:f,startIndex:p})=>{let{isMatch:y,score:g,indices:m}=function(e,t,r,{location:n=k.location,distance:i=k.distance,threshold:s=k.threshold,findAllMatches:o=k.findAllMatches,minMatchCharLength:l=k.minMatchCharLength,includeMatches:a=k.includeMatches,ignoreLocation:c=k.ignoreLocation}={}){let u;if(t.length>32)throw Error(h(32));let d=t.length,f=e.length,p=Math.max(0,Math.min(n,f)),y=s,g=p,m=l>1||a,v=m?Array(f):[];for(;(u=e.indexOf(t,g))>-1;)if(y=Math.min(E(t,{currentLocation:u,expectedLocation:p,distance:i,ignoreLocation:c}),y),g=u+d,m){let e=0;for(;e<d;)v[u+e]=1,e+=1}g=-1;let x=[],w=1,b=d+f,M=1<<d-1;for(let n=0;n<d;n+=1){let s=0,l=b;for(;s<l;)E(t,{errors:n,currentLocation:p+l,expectedLocation:p,distance:i,ignoreLocation:c})<=y?s=l:b=l,l=Math.floor((b-s)/2+s);b=l;let a=Math.max(1,p-l+1),u=o?f:Math.min(p+l,f)+d,h=Array(u+2);h[u+1]=(1<<n)-1;for(let s=u;s>=a;s-=1){let o=s-1,l=r[e.charAt(o)];if(m&&(v[o]=+!!l),h[s]=(h[s+1]<<1|1)&l,n&&(h[s]|=(x[s+1]|x[s])<<1|1|x[s+1]),h[s]&M&&(w=E(t,{errors:n,currentLocation:o,expectedLocation:p,distance:i,ignoreLocation:c}))<=y){if(y=w,(g=o)<=p)break;a=Math.max(1,2*p-g)}}if(E(t,{errors:n+1,currentLocation:p,expectedLocation:p,distance:i,ignoreLocation:c})>y)break;x=h}let C={isMatch:g>=0,score:Math.max(.001,w)};if(m){let e=function(e=[],t=k.minMatchCharLength){let r=[],n=-1,i=-1,s=0;for(let o=e.length;s<o;s+=1){let o=e[s];o&&-1===n?n=s:o||-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}(v,l);e.length?a&&(C.indices=e):C.isMatch=!1}return C}(e,t,f,{location:n+p,distance:i,threshold:s,findAllMatches:o,minMatchCharLength:l,includeMatches:r,ignoreLocation:a});y&&(d=!0),u+=g,y&&m&&(c=[...c,...m])});let f={isMatch:d,score:d?u/this.chunks.length:1};return d&&r&&(f.indices=c),f}}class R{constructor(e){this.pattern=e}static isMultiMatch(e){return I(e,this.multiRegex)}static isSingleMatch(e){return I(e,this.singleRegex)}search(){}}function I(e,t){let r=e.match(t);return r?r[1]:null}class _ extends R{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}class S extends R{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?0:1,indices:[0,e.length-1]}}}class T extends R{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?0:1,indices:[0,this.pattern.length-1]}}}class P extends R{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?0:1,indices:[0,e.length-1]}}}class j extends R{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?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class L extends R{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?0:1,indices:[0,e.length-1]}}}class A extends R{constructor(e,{location:t=k.location,threshold:r=k.threshold,distance:n=k.distance,includeMatches:i=k.includeMatches,findAllMatches:s=k.findAllMatches,minMatchCharLength:o=k.minMatchCharLength,isCaseSensitive:l=k.isCaseSensitive,ignoreLocation:a=k.ignoreLocation}={}){super(e),this._bitapSearch=new C(e,{location:t,threshold:r,distance:n,includeMatches:i,findAllMatches:s,minMatchCharLength:o,isCaseSensitive:l,ignoreLocation:a})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class D extends R{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?0:1,indices:n}}}let N=[_,D,T,P,L,j,S,A],O=N.length,$=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,F=new Set([A.type,D.type]);class Z{constructor(e,{isCaseSensitive:t=k.isCaseSensitive,includeMatches:r=k.includeMatches,minMatchCharLength:n=k.minMatchCharLength,ignoreLocation:i=k.ignoreLocation,findAllMatches:s=k.findAllMatches,location:o=k.location,threshold:l=k.threshold,distance:a=k.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:r,minMatchCharLength:n,findAllMatches:s,ignoreLocation:i,location:o,threshold:l,distance:a},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map(e=>{let r=e.trim().split($).filter(e=>e&&!!e.trim()),n=[];for(let e=0,i=r.length;e<i;e+=1){let i=r[e],s=!1,o=-1;for(;!s&&++o<O;){let e=N[o],r=e.isMultiMatch(i);r&&(n.push(new e(r,t)),s=!0)}if(!s)for(o=-1;++o<O;){let e=N[o],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}=this.options;e=n?e:e.toLowerCase();let i=0,s=[],o=0;for(let n=0,l=t.length;n<l;n+=1){let l=t[n];s.length=0,i=0;for(let t=0,n=l.length;t<n;t+=1){let n=l[t],{isMatch:a,indices:c,score:u}=n.search(e);if(a){if(i+=1,o+=u,r){let e=n.constructor.type;F.has(e)?s=[...s,...c]:s.push(c)}}else{o=0,i=0,s.length=0;break}}if(i){let e={isMatch:!0,score:o/i};return r&&(e.indices=s),e}}return{isMatch:!1,score:1}}}let z=[];function V(e,t){for(let r=0,n=z.length;r<n;r+=1){let n=z[r];if(n.condition(e,t))return new n(e,t)}return new C(e,t)}let W={AND:"$and",OR:"$or"},B={PATH:"$path",PATTERN:"$val"},q=e=>!!(e[W.AND]||e[W.OR]),H=e=>!!e[B.PATH],K=e=>!n(e)&&l(e)&&!q(e),Y=e=>({[W.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function U(e,t,{auto:r=!0}={}){let i=e=>{let o=Object.keys(e),l=H(e);if(!l&&o.length>1&&!q(e))return i(Y(e));if(K(e)){let n=l?e[B.PATH]:o[0],i=l?e[B.PATTERN]:e[n];if(!s(i))throw Error(d(n));let a={keyId:x(n),pattern:i};return r&&(a.searcher=V(i,t)),a}let a={children:[],operator:o[0]};return o.forEach(t=>{let r=e[t];n(r)&&r.forEach(e=>{a.children.push(i(e))})}),a};return q(e)||(e=Y(e)),i(e)}function J(e,t){let r=e.matches;t.matches=[],a(r)&&r.forEach(e=>{if(!a(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 X(e,t){t.score=e.score}class G{constructor(e,t={},r){this.options={...k,...t},this.options.useExtendedSearch,this._keyStore=new g(this.options.keys),this.setCollection(e,r)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof b))throw Error("Incorrect 'index' type");this._myIndex=t||M(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){a(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:l,ignoreFieldNorm:a}=this.options,c=s(e)?s(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return!function(e,{ignoreFieldNorm:t=k.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})}(c,{ignoreFieldNorm:a}),i&&c.sort(l),o(t)&&t>-1&&(c=c.slice(0,t)),function(e,t,{includeMatches:r=k.includeMatches,includeScore:n=k.includeScore}={}){let i=[];return r&&i.push(J),n&&i.push(X),e.map(e=>{let{idx:r}=e,n={item:t[r],refIndex:r};return i.length&&i.forEach(t=>{t(e,n)}),n})}(c,this._docs,{includeMatches:r,includeScore:n})}_searchStringList(e){let t=V(e,this.options),{records:r}=this._myIndex,n=[];return r.forEach(({v:e,i:r,n:i})=>{if(!a(e))return;let{isMatch:s,score:o,indices:l}=t.searchIn(e);s&&n.push({item:e,idx:r,matches:[{score:o,value:e,norm:i,indices:l}]})}),n}_searchLogical(e){let t=U(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,o=e.children.length;s<o;s+=1){let o=r(e.children[s],t,n);if(o.length)i.push(...o);else if(e.operator===W.AND)return[]}return i},n=this._myIndex.records,i={},s=[];return n.forEach(({$:e,i:n})=>{if(a(e)){let o=r(t,e,n);o.length&&(i[n]||(i[n]={idx:n,item:e,matches:[]},s.push(i[n])),o.forEach(({matches:e})=>{i[n].matches.push(...e)}))}}),s}_searchObjectList(e){let t=V(e,this.options),{keys:r,records:n}=this._myIndex,i=[];return n.forEach(({$:e,i:n})=>{if(!a(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(!a(t))return[];let i=[];if(n(t))t.forEach(({v:t,i:n,n:s})=>{if(!a(t))return;let{isMatch:o,score:l,indices:c}=r.searchIn(t);o&&i.push({score:l,key:e,value:t,idx:n,norm:s,indices:c})});else{let{v:n,n:s}=t,{isMatch:o,score:l,indices:a}=r.searchIn(n);o&&i.push({score:l,key:e,value:n,norm:s,indices:a})}return i}}G.version="7.0.0",G.createIndex=M,G.parseIndex=function(e,{getFn:t=k.getFn,fieldNormWeight:r=k.fieldNormWeight}={}){let{keys:n,records:i}=e,s=new b({getFn:t,fieldNormWeight:r});return s.setKeys(n),s.setIndexRecords(i),s},G.config=k,G.parseQuery=U,function(...e){z.push(...e)}(Z)},25922:function(e,t,r){"use strict";r.d(t,{F:function(){return o}});var n=r(2265),i=n.createContext(void 0),s={setTheme:e=>{},themes:[]},o=()=>{var e;return null!=(e=n.useContext(i))?e:s}}}]);