1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,53705,e=>{"use strict";var t=e.i(963317),r=e.i(426015),n=e.i(249532),o=e.i(871152),a=e.i(63824),l=e.i(114712),i=e.i(843931),s=e.i(86426),u=e.i(264458),c=e.i(388320),d=e.i(893368),f=e.i(710055);let h={show:(0,t.jsx)(l.default,{className:f.default.navInteractionIcon}),close:(0,t.jsx)(i.default,{className:f.default.navInteractionIcon})},p=e=>{let n,o,a,l=(0,r.c)(15),{children:i,Logo:p,as:m,navItems:g,pathname:y,sidebarItemTogglerAriaLabel:b}=e,_=void 0===m?"a":m,[v,x]=(0,c.useState)(!1);if(l[0]!==g?(n=g??[],l[0]=g,l[1]=n):n=l[1],l[2]!==y||l[3]!==n)o=n.reduce((e,{link:t})=>t.startsWith("/")&&(y===t||y.startsWith(`${t}/`))&&t.length>e.length?t:e,""),l[2]=y,l[3]=n,l[4]=o;else o=l[4];let S=o;if(l[5]!==_||l[6]!==p||l[7]!==S||l[8]!==i||l[9]!==v||l[10]!==g||l[11]!==y||l[12]!==b){let e;l[14]===Symbol.for("react.memo_cache_sentinel")?(e=e=>x(()=>e.target.checked),l[14]=e):e=l[14],a=(0,t.jsx)("nav",{className:f.default.container,children:(0,t.jsxs)("div",{className:f.default.innerContainer,children:[(0,t.jsxs)("div",{className:f.default.nodeIconAndMobileItemsToggler,children:[p&&(0,t.jsx)(_,{className:f.default.nodeIconWrapper,href:"/","aria-label":"Home",children:(0,t.jsx)(p,{})}),(0,t.jsx)(s.Root,{className:f.default.sidebarItemTogglerLabel,htmlFor:"sidebarItemToggler",role:"button","aria-label":b,children:h[v?"close":"show"]})]}),(0,t.jsx)("input",{className:(0,u.default)("peer",f.default.sidebarItemToggler),id:"sidebarItemToggler",type:"checkbox",onChange:e,"aria-label":b,tabIndex:-1}),(0,t.jsxs)("div",{className:(0,u.default)(f.default.main,"hidden peer-checked:flex"),children:[g&&g.length>0&&(0,t.jsx)("div",{className:f.default.navItems,children:g.map(e=>{let{text:r,link:n,target:o,accent:a}=e;return(0,t.jsx)(d.default,{pathname:y,active:n===S,as:_,href:n,target:o,accent:a,children:r},n)})}),(0,t.jsx)("div",{className:f.default.actionsWrapper,children:i})]})]})}),l[5]=_,l[6]=p,l[7]=S,l[8]=i,l[9]=v,l[10]=g,l[11]=y,l[12]=b,l[13]=a}else a=l[13];return a};var m=e.i(167275),g=e.i(430522),y=e.i(271859),b=e.i(620577),_=e.i(394749),v=e.i(848317),x=e.i(507048),S=e.i(607207);let w=({className:e,variant:r="default",...n})=>
1(0,t.jsxs)("svg",{width:267,height:80,viewBox:"0 0 267 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(0,u.default)("fill-[#333333] dark:fill-white",e),...n,children:[(0,t.jsx)("mask",{id:"a",maskUnits:"userSpaceOnUse",x:0,y:0,width:267,height:80,style:{maskType:"luminance"},children:(0,t.jsx)("path",{d:"M267 0H0v79.378h267z",fill:"#fff"})}),(0,t.jsxs)("g",{mask:"url(#a)",children:[(0,t.jsx)("path",{d:"M234.983 78.755a4 4 0 0 1-1.933-.51l-6.121-3.658c-.921-.51-.46-.695-.184-.787 1.242-.417 1.472-.51 2.761-1.25.138-.093.322-.047.46.046l4.694 2.825c.184.092.414.092.552 0l18.363-10.698c.183-.092.277-.277.277-.509V42.867c0-.232-.094-.417-.277-.51l-18.363-10.65c-.184-.093-.414-.093-.552 0l-18.362 10.65c-.184.093-.276.324-.276.51v21.347c0 .186.092.417.276.51l5.016 2.917c2.715 1.39 4.418-.232 4.418-1.852v-21.07c0-.278.23-.556.553-.556h2.347c.276 0 .552.232.552.556v21.07c0 3.658-1.979 5.788-5.431 5.788-1.058 0-1.886 0-4.234-1.157l-4.832-2.779a3.91 3.91 0 0 1-1.933-3.38V42.912c0-1.39.737-2.686 1.933-3.38l18.363-10.697c1.15-.649 2.715-.649 3.865 0l18.363 10.696a3.91 3.91 0 0 1 1.932 3.381V64.26c0 1.39-.736 2.686-1.932 3.381l-18.363 10.697c-.552.232-1.242.417-1.932.417",fill:"#5FA04E"}),(0,t.jsx)("path",{d:"M240.69 64.075c-8.055 0-9.712-3.705-9.712-6.854 0-.277.23-.555.552-.555h2.393c.277 0 .507.185.507.463.368 2.454 1.426 3.658 6.305 3.658 3.866 0 5.523-.88 5.523-2.963 0-1.204-.462-2.084-6.49-2.686-5.016-.51-8.146-1.621-8.146-5.65 0-3.75 3.13-5.974 8.376-5.974 5.892 0 8.791 2.038 9.159 6.484a.76.76 0 0 1-.137.416c-.094.093-.231.186-.371.186h-2.439a.54.54 0 0 1-.505-.417c-.553-2.547-1.98-3.38-5.753-3.38-4.234 0-4.74 1.481-4.74 2.593 0 1.342.598 1.76 6.305 2.5 5.66.741 8.33 1.806 8.33 5.788 0 4.076-3.36 6.391-9.157 6.391m26.51-22.413c0 1.945-1.612 3.566-3.546 3.566a3.556 3.556 0 0 1-3.543-3.566 3.556 3.556 0 0 1 3.543-3.565c1.888 0 3.546 1.574 3.546 3.565m-6.536 0c0 1.667 1.335 3.01 2.944 3.01 1.658 0 2.993-1.39 2.993-3.01 0-1.667-1.335-2.963-2.993-2.963a2.975 2.975 0 0 0-2.944 2.963m1.657-1.991h1.381c.46 0 1.381 0 1.381 1.065 0 .74-.462.88-.739.973.554.046.599.416.645.926.046.324.094.88.185 1.065h-.83c0-.186-.137-1.204-.137-1.25-.045-.232-.137-.325-.413-.325h-.691v1.62h-.782zm.736 1.76h.597c.508 0 .599-.37.599-.556 0-.556-.368-.556-.599-.556h-.642v1.112z",fill:"#5FA04E"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M43.674 41.954c0-.834-.46-1.62-1.197-2.038L23.01 28.572c-.322-.185-.69-.278-1.058-.324h-.184c-.368 0-.736.139-1.059.324l-19.512 11.3A2.38 2.38 0 0 0 0 41.953l.046 30.378c0 .416.23.833.598 1.018.368.232.829.232 1.15 0l11.598-6.668a2.36 2.36 0 0 0 1.197-2.037V50.428c0-.833.46-1.62 1.196-2.037l4.924-2.871a2.2 2.2 0 0 1 1.197-.325c.414 0 .828.093 1.15.325l4.925 2.87a2.36 2.36 0 0 1 1.196 2.038v14.217c0 .833.46 1.62 1.197 2.037l11.505 6.668c.368.232.828.232 1.197 0 .368-.185.598-.602.598-1.018zM137.465.139c-.369-.185-.829-.185-1.151 0-.368.231-.598.602-.598 1.019v30.1a.89.89 0 0 1-.415.74.88.88 0 0 1-.828 0l-4.878-2.825a2.36 2.36 0 0 0-2.347 0L107.735 40.52a2.36 2.36 0 0 0-1.196 2.037V65.2c0 .834.46 1.621 1.196 2.038l19.513 11.345a2.36 2.36 0 0 0 2.347 0l19.513-11.345a2.36 2.36 0 0 0 1.196-2.038V8.752c0-.88-.46-1.667-1.196-2.084zm-1.795 57.606c0 .232-.092.417-.276.51l-6.674 3.89a.68.68 0 0 1-.598 0l-6.673-3.89c-.184-.093-.276-.325-.276-.51v-7.78c0-.231.092-.416.276-.509l6.673-3.89a.68.68 0 0 1 .598 0l6.674 3.89c.184.093.276.324.276.51zm66.728-7.965c.737-.417 1.151-1.204 1.151-2.038v-5.51c0-.834-.46-1.62-1.151-2.037l-19.375-11.3a2.36 2.36 0 0 0-2.347 0l-19.512 11.346a2.36 2.36 0 0 0-1.197 2.037v22.645c0 .833.46 1.62 1.197 2.037l19.374 11.114c.737.416 1.611.416 2.301 0l11.736-6.576c.368-.185.598-.602.598-1.019s-.23-.833-.598-1.018L174.97 58.115c-.368-.231-.598-.602-.598-1.018v-7.085c0-.417.23-.834.598-1.02l6.121-3.518a1.12 1.12 0 0 1 1.196 0l6.121 3.519c.368.231.598.602.598 1.019v5.557c0 .416.23.833.599 1.018.368.232.828.232 1.196 0z"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M181.551 48.716a.42.42 0 0 1 .461 0l3.727 2.176c.138.092.23.231.23.417v4.352a.49.49 0 0 1-.23.417l-3.727 2.177a.42.42 0 0 1-.461 0l-3.727-2.177a.49.49 0 0 1-.23-.417V51.31c0-.185.092-.325.23-.417z",fill:"#5FA04E"}),(0,t.jsxs)("g",{transform:"translate(53.428, 28.628)",children:["pride"===r&&(0,t.jsxs)("g",{clipPath:"url(#d)",children:[(0,t.jsx)("rect",{fill:"#E40303",x:"0",y:"0",width:"44",height:"8.333"}),(0,t.jsx)("rect",{fill:"#FF8C00",x:"0",y:"8.333",width:"44",height:"8.333"}),(0,t.jsx)("rect",{fill:"#FFED00",x:"0",y:"16.666",width:"44",height:"8.333"}),(0,t.jsx)("rect",{fill:"#008026",x:"0",y:"25",width:"44",height:"8.333"}),(0,t.jsx)("rect",{fill:"#004DFF",x:"0",y:"33.333",width:"44",height:"8.333"}),(0,t.jsx)("rect",{fill:"#750787",x:"0",y:"41.666",width:"44",height:"8.333"})]}),(0,t.jsxs)("g",{opacity:"pride"===r?.5:1,style:"pride"===r?{mixBlendMode:"luminosity"}:{},children:[(0,t.jsx)("path",{fill:"url(#b)",d:"M22.873.417a2.36 2.36 0 0 0-2.348 0L1.151 11.669C.414 12.086 0 12.873 0 13.707v22.551c0 .834.46 1.621 1.15 2.038l19.375 11.253a2.36 2.36 0 0 0 2.348 0l19.374-11.253c.737-.417 1.15-1.204 1.15-2.038V13.707c0-.834-.46-1.62-1.15-2.038z"}),(0,t.jsx)("path",{fill:"url(#c)",clipPath:"url(#d)",filter:"pride"===r?"url(#f)":void 0,d:"m21.699-1.047 21.506 12.995L21.7 51.073.153 38.055z"}),(0,t.jsx)("path",{fill:"url(#e)",clipPath:"url(#d)",filter:"pride"===r?"url(#f)":void 0,d:"M21.699-1.047.153 11.948l21.546 39.125 21.506-13.018z"})]})]})]}),(0,t.jsxs)("defs",{children:[(0,t.jsxs)("linearGradient",{id:"b",x1:30.33,y1:8.56,x2:14.9,y2:44.7,gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{stopColor:"#3F8B3D"}),(0,t.jsx)("stop",{offset:.64,stopColor:"#3F873F"}),(0,t.jsx)("stop",{offset:.93,stopColor:"#3DA92E"}),(0,t.jsx)("stop",{offset:1,stopColor:"#3DAE2B"})]}),(0,t.jsxs)("linearGradient",{id:"c",x1:18.8,y1:26.8,x2:68,y2:.4,gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{offset:.14,stopColor:"#3F873F"}),(0,t.jsx)("stop",{offset:.4,stopColor:"#52A044"}),(0,t.jsx)("stop",{offset:.71,stopColor:"#64B749"}),(0,t.jsx)("stop",{offset:.91,stopColor:"#6ABF4B"})]}),(0,t.jsxs)("linearGradient",{id:"e",x1:.25,y1:24.5,x2:44,y2:24.5,gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{offset:.09,stopColor:"#6ABF4B"}),(0,t.jsx)("stop",{offset:.29,stopColor:"#64B749"}),(0,t.jsx)("stop",{offset:.6,stopColor:"#52A044"}),(0,t.jsx)("stop",{offset:.86,stopColor:"#3F873F"})]}),(0,t.jsx)("clipPath",{id:"d",children:(0,t.jsx)("path",{d:"M22.873.417a2.36 2.36 0 0 0-2.348 0L1.151 11.669C.414 12.086 0 12.873 0 13.707v22.551c0 .834.46 1.621 1.15 2.038l19.375 11.253a2.36 2.36 0 0 0 2.348 0l19.374-11.253c.737-.417 1.15-1.204 1.15-2.038V13.707c0-.834-.46-1.62-1.15-2.038z"})}),"pride"===r&&(0,t.jsx)("filter",{id:"f",children:(0,t.jsx)("feDropShadow",{dx:"0",dy:"0",stdDeviation:"2",floodColor:"#000000",floodOpacity:"0.5"})})]})]});var I=e.i(105359);let T=e=>(0,t.jsx)(w,{className:I.default.nodejsLogo,...e});var N=e.i(72415);let E=()=>{let e,n,o=(0,r.c)(4),a=(0,_.useTranslations)();return o[0]!==a?(e=a("layouts.logo"),o[0]=a,o[1]=e):e=o[1],o[2]!==e?(n=(0,t.jsx)(T,{variant:N.siteConfig.logoVariant,"aria-label":e}),o[2]=e,o[3]=n):n=o[3],n},O=c.forwardRef(function({title:e,titleId:t,...r},n){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
1currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?c.createElement("title",{id:t},e):null,c.createElement("path",{fillRule:"evenodd",d:"M12 2.25a.75.75 0 0 1 .75.75v16.19l6.22-6.22a.75.75 0 1 1 1.06 1.06l-7.5 7.5a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 1 1 1.06-1.06l6.22 6.22V3a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"}))}),A=c.forwardRef(function({title:e,titleId:t,...r},n){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?c.createElement("title",{id:t},e):null,c.createElement("path",{fillRule:"evenodd",d:"M20.239 3.749a.75.75 0 0 0-.75.75V15H5.549l2.47-2.47a.75.75 0 0 0-1.06-1.06l-3.75 3.75a.75.75 0 0 0 0 1.06l3.75 3.75a.75.75 0 1 0 1.06-1.06L5.55 16.5h14.69a.75.75 0 0 0 .75-.75V4.5a.75.75 0 0 0-.75-.751Z",clipRule:"evenodd"}))}),R=c.forwardRef(function({title:e,titleId:t,...r},n){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?c.createElement("title",{id:t},e):null,c.createElement("path",{fillRule:"evenodd",d:"M11.47 2.47a.75.75 0 0 1 1.06 0l7.5 7.5a.75.75 0 1 1-1.06 1.06l-6.22-6.22V21a.75.75 0 0 1-1.5 0V4.81l-6.22 6.22a.75.75 0 1 1-1.06-1.06l7.5-7.5Z",clipRule:"evenodd"}))}),k=c.forwardRef(function({title:e,titleId:t,...r},n){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?c.createElement("title",{id:t},e):null,c.createElement("path",{fillRule:"evenodd",d:"M10.5 3.75a6.75 6.75 0 1 0 0 13.5 6.75 6.75 0 0 0 0-13.5ZM2.25 10.5a8.25 8.25 0 1 1 14.59 5.28l4.69 4.69a.75.75 0 1 1-1.06 1.06l-4.69-4.69A8.25 8.25 0 0 1 2.25 10.5Z",clipRule:"evenodd"}))}),D={client:null,searchParams:void 0,searchTerm:"",nlpSearchTerm:"",results:null,nlpResults:null,selectedFacet:"All",groupsCount:null,loading:!1,nlpLoading:!1,error:null,nlpError:null,count:0,nlpCount:0,lang:"english",namespace:void 0},C=(0,c.createContext)(D),j=(0,c.createContext)(null),P=()=>{let e=(0,c.useContext)(C);if(!e)throw Error("useSearch must be used within a SearchContext Provider");return e},M=()=>{let e=(0,c.useContext)(j);if(!e)throw Error("useSearchDispatch must be used within a SearchDispatchContext Provider");return e},L=(e,t)=>{switch(t.type){case"SET_CLIENT":return{...e,client:t.payload?.client||null};case"SET_SEARCH_TERM":return{...e,searchTerm:t.payload?.searchTerm||""};case"SET_NLP_SEARCH_TERM":return{...e,nlpSearchTerm:t.payload?.searchTerm||""};case"SET_RESULTS":return{...e,results:t.payload?.results||[]};case"SET_NLP_RESULTS":return{...e,nlpResults:t.payload?.results||[]};case"SET_GROUPS_COUNT":return{...e,groupsCount:t.payload?.groupsCount||null};case"SET_SELECTED_FACET":return{...e,selectedFacet:t.payload?.selectedFacet||null};case"SET_LOADING":return{...e,loading:t.payload?.loading||!1};case"SET_NLP_LOADING":return{...e,nlpLoading:t.payload?.loading||!1};case"SET_ERROR":return{...e,error:t.payload?.error||null};case"SET_NLP_ERROR":return{...e,nlpError:t.payload?.error||null};case"SET_COUNT":return{...e,count:t.payload?.count||0};case"SET_NLP_COUNT":return{...e,nlpCount:t.payload?.count||0};default:return e}},U=({client:e,searchParams:r,lang:n,namespace:o,initialState:a={},children:l})=>{let i=P();!("u">typeof window)||e||i.client||console.warn("SearchRoot: No client provided. Either pass a client in initialState or ensure a parent SearchRoot has a client.");let[s,u]=(0,c.useReducer)(L,{...i,client:e||i.client,searchParams:r||i.searchParams,namespace:o,lang:n||i.lang,...a});return(0,t.jsx)(C.Provider,{value:s,children:(0,t.jsx)(j.Provider,{value:u,children:l})})};function B(e={}){let{selector:t="[data-focus-on-arrow-nav]",selectorLeftRight:r="[data-focus-on-arrow-nav-left-right]",disabled:n=!1}=e,o=(0,c.useRef)(null);return{ref:o,onKeyDown:(0,c.useCallback)(e=>{let r;if(n||!o.current||"ArrowDown"!==e.key&&"ArrowUp"!==e.key)return;e.stopPropagation(),e.preventDefault();let a=Array.from(o.current.querySelectorAll(t)).filter(e=>{let t=e.getAttribute("data-focus-on-arrow-nav"),r=e.getAttribute("tabIndex"),n=e.getAttribute("aria-hidden");return"false"!==t&&"-1"!==r&&"true"!==n});if(0===a.length)return;let l=a[0],i=a[a.length-1],s=o.current.querySelector(":focus"),u=a.indexOf(s);(r="ArrowDown"===e.key?u===a.length-1?l:a[u+1]:0===u?i:a[u-1])&&r.focus()},[t,n]),onArrowLeftRight:(0,c.useCallback)(e=>{let t;if(n||!o.current||"ArrowLeft"!==e.key&&"ArrowRight"!==e.key)return;e.stopPropagation(),e.preventDefault();let a=Array.from(o.current.querySelectorAll(r)).filter(e=>{let t=e.getAttribute("data-focus-on-arrow-nav"),r=e.getAttribute("tabIndex"),n=e.getAttribute("aria-hidden");return"false"!==t&&"-1"!==r&&"true"!==n});if(0===a.length)return;let l=o.current.querySelector(":focus"),i=a.indexOf(l);(t="ArrowRight"===e.key?i===a.length-1?a[0]:a[i+1]:0===i?a[a.length-1]:a[i-1])&&t.focu
1s()},[r,n])}}let z=(0,c.createContext)(null),W=()=>(0,c.useContext)(z),G=({children:e,defaultOpen:r})=>{let[n,o]=c.default.useState(r||!1),a=(0,c.useRef)(null),l={open:n,setOpen:o,onModalClosed:(0,c.useCallback)(()=>{o(!1)},[o]),innerModalRef:a};return(0,t.jsx)(z.Provider,{value:l,children:e})},F=({className:e="",children:r,enableCmdK:n=!1,onClick:o,onKeyDown:a,...l})=>{let i=W()?.setOpen,s=(0,c.useCallback)(e=>{e.preventDefault(),i?.(!0),o?.(e)},[i,o]),u=(0,c.useCallback)(e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),i?.(!0)),a?.(e)},[i,a]);return(0,c.useEffect)(()=>{if(!n)return;let e=e=>{(e.metaKey||e.ctrlKey)&&"k"===e.key&&(e.preventDefault(),i?.(!0))};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[n,i]),(0,t.jsx)("button",{type:"button",onClick:s,onKeyDown:u,className:e,...l,children:r})},V=({closeOnEscape:e=!0,closeOnOutsideClick:r=!0,onModalClosed:n,children:o,className:a,open:l=!1,...i})=>{let s=(0,c.useRef)(null),u=(0,c.useRef)(null),d=(0,c.useRef)(null),f=(0,c.useRef)("scroll"),h=(0,c.useRef)(null),p=(0,c.useRef)(null),[m,g]=c.default.useState(!1),y=W(),b=y?.open??m,_=y?.setOpen??g,v=(0,c.useMemo)(()=>y?.onModalClosed??n??(()=>g(!1)),[y?.onModalClosed,n,g]),x=y?.innerModalRef??u,S=(0,c.useCallback)(e=>{if(!s.current)return;let t=Array.from(s.current.querySelectorAll('a[href], button, textarea, input, select, [tabindex]:not([tabindex="-1"])')).filter(e=>null!==e.offsetParent);if(t.length>0){h.current=t[0]??null,p.current=t[t.length-1]??null;let r=s.current.querySelector(":focus");e.shiftKey&&r===h.current?(e.preventDefault(),p.current?.focus()):e.shiftKey||r!==p.current||(e.preventDefault(),h.current?.focus())}},[]),w=(0,c.useCallback)(()=>{if(!s.current)return;let e=Array.from(s.current.querySelectorAll('a[href], button, textarea, input, select, [tabindex]:not([tabindex="-1"])')).filter(e=>null!==e.offsetParent);e.length>0&&e[0]?.focus()},[]),I=(0,c.useCallback)(t=>{switch(t.key){case"Tab":S(t.nativeEvent);break;case"Escape":e&&(t.preventDefault(),t.stopPropagation(),v?.())}},[e,v,S]),T=(0,c.useCallback)(e=>{r&&x.current&&!x.current.contains(e.target)&&(e.stopPropagation(),e.preventDefault(),v?.())},[r,x,v]);if((0,c.useEffect)(()=>{if(b)return f.current=document.body.style.overflow,d.current=document.activeElement,document.body.style.overflow="hidden",w(),()=>{document.body.style.overflow=f.current,d.current&&d.current.focus()}},[b,w]),(0,c.useEffect)(()=>{b&&w()},[b,w]),(0,c.useEffect)(()=>{void 0!==l&&g(l)},[l]),!b)return null;let N=(0,t.jsx)("dialog",{ref:s,"aria-modal":"true","aria-describedby":"modalContent",onKeyDown:I,onClick:T,className:`orama:fixed orama:left-0 orama:right-0 orama:bg-gray-500 orama:bg-opacity-50 orama:w-full orama:h-full orama:inset-0 orama:border-none orama:m-0 orama:p-0 orama:flex orama:z-50 ${a||""}`,...i,children:o});return y?N:(0,t.jsx)(z.Provider,{value:{onModalClosed:v,innerModalRef:x,setOpen:_,open:b},children:N})},$=({className:e="",children:r,...n})=>{let o=(0,c.useRef)(null),a=W()?.innerModalRef??o,{ref:l,onKeyDown:i}=B();return(0,t.jsx)("div",{ref:a,onKeyDown:e=>{i(e.nativeEvent)},className:`orama:rounded-lg orama:shadow-lg orama:m-auto orama:max-w-3xl orama:w-full orama:relative ${e}`,role:"dialog","aria-modal":"true",...n,children:(0,t.jsx)("section",{ref:l,className:"orama:w-full orama:relative",children:r})})},K=({className:e="",children:r,...n})=>(0,t.jsx)("div",{id:"modalContent",className:`orama:w-full orama:h-full ${e}`,...n,children:r}),H=({className:e="",children:r="Ã",...n})=>{let o=W()?.onModalClosed;return(0,t.jsx)("button",{onClick:(0,c.useCallback)(()=>{o?.()},[o]),type:"button",className:e,"aria-label":"Close modal",...n,children:r})},J="recent_searches",Y={arabic:()=>e.A(947319),english:()=>e.A(414925),french:()=>e.A(611622),german:()=>e.A(281654),italian:()=>e.A(400114),japanese:()=>e.A(356018),portuguese:()=>e.A(770376),russian:()=>e.A(719158),spanish:()=>e.A(839069),turkish:()=>e.A(858062),armenian:()=>e.A(741359),bulgarian:()=>e.A(761315),danish:()=>e.A(839195),dutch:()=>e.A(147198),finnish:()=>e.A(322097),greek:()=>e.A(109746),hungarian:()=>e.A(966390),indonesian:()=>e.A(283794),norwegian:()=>e.A(983843),romanian:()=>e.A(270530),swedish:()=>e.A(473023),ukrainian:()=>e.A(156103),indian:()=>e.A(380970),irish:()=>e.A(494773),lithuanian:()=>e.A(986704),mandarin:()=>e.A(13232),nepali:()=>e.A(149003),sanskrit:()=>e.A(160750),serbian:()=>e.A(439418),slovenian:()=>e.A(719158),tamil:()=>e.A(63899)},X=new Map;async function q(e){if(X.has(e))return X.get(e);try{let t=(await Y[e]()).stopwords;return X.set(e,t),t}catch(t){if(console.warn(`Failed to load stopwords for language: ${e}`,t),"english"!==e)return q("english");return[]}}function Z(e){try{let t=e?`${J}_${e}`:J,r=localStorage.getItem(t);return r?JSON.parse(r):[]}catch{return[]}}function Q(){let e=P(),t=M(),{client:r,selectedFacet:n,searchParams:o,lang:a,namespace:l}=e,i=(0,c.useRef)(!0),{addSearch:s}=function(e="english",t){let[r,n]=(0,c.useState)([]),o=(0,c.useRef)(null);(0,c.useEffect)(()=>{t&&n(Z(t))},[t]);let a=(0,c.useCallback)(async r=>{let o;
1if((r=r.trim().toLowerCase()).length<2||(await q(e||"english")).includes(r))return;let a=Z(t).filter(e=>e.term!==r),l=[{term:r,timestamp:Date.now()},...a].slice(0,10);o=t?`${J}_${t}`:J,localStorage.setItem(o,JSON.stringify(l)),n(l)},[e,t]),l=(0,c.useCallback)((e,t)=>{o.current&&clearTimeout(o.current),o.current=window.setTimeout(()=>{a(e)},t)},[a]);return(0,c.useEffect)(()=>()=>{o.current&&clearTimeout(o.current)},[]),{recentSearches:r,addSearch:e=>e?t=>l(t,e):a,clearSearches:(0,c.useCallback)(()=>{let e=t?`${J}_${t}`:J;localStorage.removeItem(e),n([])},[t])}}(a,l);return(0,c.useEffect)(()=>(i.current=!0,()=>{i.current=!1}),[]),{search:(0,c.useCallback)(async(e,a=!0)=>{if(!r){t({type:"SET_ERROR",payload:{error:Error("Search client is not initialized")}}),t({type:"SET_LOADING",payload:{loading:!1}});return}let{term:l,...u}=e,c=u||o||{};t({type:"SET_SEARCH_TERM",payload:{searchTerm:l||D.searchTerm||""}}),t({type:"SET_LOADING",payload:{loading:!0}}),t({type:"SET_ERROR",payload:{error:null}}),s(a?1e3:void 0)(l||"");let d=c.groupBy||null;try{let e=await r.search({...c,term:l,limit:c.limit||10,datasources:c.datasourceIDs||[],...c.filterBy&&c.filterBy.length>0?{where:c.filterBy.reduce((e,r)=>{let n=Object.entries(r)[0];if(n){let[r,o]=n;if(t({type:"SET_SELECTED_FACET",payload:{selectedFacet:r}}),"All"===o)return e;e[r]=o}return e},{})}:{}});if(n&&"All"!==n&&e.hits&&e.hits.length>0&&!c.filterBy&&!e.hits.some(e=>Object.values(e.document).includes(n))&&t({type:"SET_SELECTED_FACET",payload:{selectedFacet:"All"}}),!i.current)return;if(t({type:"SET_RESULTS",payload:{results:e.hits||[]}}),t({type:"SET_COUNT",payload:{count:e.count||0}}),d&&e.facets&&d.properties[0]&&e.facets[d.properties[0]]&&e.hits?.length>0){let r=Object.entries(e.facets[d.properties[0]].values).map(([e,t])=>({name:e,count:t}));r.unshift({name:"All",count:e.count||0}),t({type:"SET_GROUPS_COUNT",payload:{groupsCount:r}})}}catch(e){i.current&&t({type:"SET_ERROR",payload:{error:e}})}finally{i.current&&t({type:"SET_LOADING",payload:{loading:!1}})}},[r,t,n,s,o]),reset:(0,c.useCallback)(()=>{t({type:"SET_SEARCH_TERM",payload:{searchTerm:""}}),t({type:"SET_RESULTS",payload:{results:[]}}),t({type:"SET_GROUPS_COUNT",payload:{groupsCount:null}}),t({type:"SET_SELECTED_FACET",payload:{selectedFacet:"All"}}),t({type:"SET_COUNT",payload:{count:0}}),t({type:"SET_ERROR",payload:{error:null}})},[t]),NLPSearch:(0,c.useCallback)(async(e,n=!1)=>
1{if(!r)return void t({type:"SET_NLP_ERROR",payload:{error:Error("Search client is not initialized")}});let{query:a,...l}=e,i=l||o||{};t({type:"SET_NLP_SEARCH_TERM",payload:{searchTerm:e.query||D.searchTerm||""}}),t({type:"SET_NLP_LOADING",payload:{loading:!0}}),t({type:"SET_NLP_ERROR",payload:{error:null}}),t({type:"SET_NLP_RESULTS",payload:{results:[]}}),s(n?1e3:void 0)(a||"");try{let e=await r.ai.NLPSearch({query:a||"",...i}),n=e.length>0?e[0]?.results[0]?.hits:[],o=e.length>0?e[0]?.results[0]?.count:0;t({type:"SET_NLP_RESULTS",payload:{results:n||[]}}),t({type:"SET_NLP_COUNT",payload:{count:o||0}})}catch(e){t({type:"SET_NLP_ERROR",payload:{error:e}})}finally{t({type:"SET_NLP_LOADING",payload:{loading:!1}})}},[r,t,s,o]),context:e,dispatch:t}}let ee=(0,c.createContext)({mode:"search",inputValue:"",setInputValue:()=>{}}),et=({children:e,className:r="",as:n,...o})=>(0,t.jsx)(n||"div",{className:r,...o,role:"search",children:e}),er=({inputId:e,placeholder:r="Search...",ariaLabel:n,className:o,searchOnType:a=!0,searchParams:l,ref:i,onChange:s,...u})=>{let{setInputValue:d}=(0,c.useContext)(ee),{search:f,reset:h,context:p}=Q(),{searchParams:m}=p,g=(0,c.useRef)(null),y=(0,c.useRef)(`search-input-${Math.random().toString(36).substring(2,9)}`),b=e||y.current;return(0,t.jsx)("input",{type:"search",id:b,ref:i||g,onChange:e=>{s?.(e);let t=e.target.value.trim();if(!a||e.defaultPrevented)return void d(t);if(""===t)return void h();let r=l||m;f({term:t,limit:10,...r,boost:r?.boost??{}},a)},placeholder:r,"aria-label":n,className:o,"data-focus-on-arrow-nav":!0,...u})};var en=e.i(921237);let eo=({searchParams:e,...r})=>(0,t.jsxs)(et,{className:en.default.searchInputWrapper,children:[(0,t.jsx)(k,{}),(0,t.jsx)(er,{inputId:"orama-doc-search",className:en.default.searchInput,searchParams:{...e,groupBy:{properties:["siteSection"]},facets:{siteSection:{}}},...r})]});var ea=e.i(511955);let el=({children:e,client:r,placeholder:n})=>(0,t.jsx)("div",{className:ea.default.searchboxContainer,children:(0,t.jsxs)(G,{children:[(0,t.jsxs)(F,{type:"button",disabled:!r,enableCmdK:!0,className:ea.default.searchButton,children:[(0,t.jsxs)("div",{className:ea.default.searchButtonContent,children:[(0,t.jsx)(k,{}),n]}),(0,t.jsx)("span",{className:ea.default.searchButtonShortcut,children:"â K"})]}),(0,t.jsx)(V,{closeOnOutsideClick:!0,closeOnEscape:!0,className:ea.default.modalWrapper,children:(0,t.jsx)(U,{client:r,children:(0,t.jsx)($,{className:ea.default.modalInner,children:(0,t.jsxs)(K,{className:ea.default.modalContent,children:[(0,t.jsx)(eo,{placeholder:n,ariaLabel:n}),(0,t.jsx)(H,{className:ea.default.modalCloseButton}),e]})})})})]})}),ei=(0,c.createContext)({mode:"search"}),es=()=>{let{mode:e}=(0,c.useContext)(ei),{context:{searchTerm:t,results:r,loading:n,error:o,nlpSearchTerm:a,nlpResults:l,nlpLoading:i,nlpError:s}}=Q();return(0,c.useMemo)(()=>"nlp"===e?{searchTerm:a,results:l,loading:i,error:s}:{searchTerm:t,results:r,loading:n,error:o},[e,t,r,n,o,a,l,i,s])},eu=({children:e,mode:r="search"})=>{let n=(0,c.useMemo)(()=>({mode:r}),[r]);return(0,t.jsx)(ei.Provider,{value:n,children:e})},ec=({children:e,className:r="",mode:n,...o})=>void 0!==n?(0,t.jsx)(eu,{mode:n,children:(0,t.jsx)("div",{className:r,...o,children:e})}):(0,t.jsx)("div",{className:r,...o,children:e}),ed=({children:e,groupBy:r,className:n="",...o})=>{let{results:a}=es(),l=(0,c.useMemo)(()=>{if(!a||0===a.length)return[];let e=new Map;return a.forEach(t=>{let n=t.document?.[r];if(!n||"string"!=typeof n&&"number"!=typeof n)return;let o=String(n);if(e.has(o)){let r=e.get(o);r.hits.push(t),r.count+=1}else e.set(o,{name:o,hits:[t],count:1})}),Array.from(e.values())},[a,r]);return a&&0!==a.length?(0,t.jsx)("div",{className:n,role:"region","aria-label":"Grouped search results",...o,children:l.map(r=>(0,t.jsx)(c.default.Fragment,{children:e(r)},r.name))}):null},ef=({children:e,group:r,className:n="",itemClassName:o=""})=>(0,t.jsx)("ul",{className:n,children:r.hits.map((r,n)=>(0,t.jsx)("li",{className:o,children:e(r,n)},r.id))}),eh=({as:e,onClick:r,children:n,className:o,...a})=>(0,t.jsx)(e||"div",{className:o,onClick:r,...a,children:n}),ep=({children:e,className:r="",...n})=>{let{results:o,loading:a}=es();return!a||o&&o.length>0?null:(0,t.jsx)("div",{role:"status","aria-live":"polite",className:r,...n,children:e})},em=({children:e,className:r="",...n})=>{let{searchTerm:o,results:a,loading:l}=es();return l||a&&a.length>0?null:(0,t.jsx)("div",{className:r,"aria-live":"polite",...n,children:e(o||"")})};var eg=e.i(139137);let ey=({children:e,label:r})=>(0,t.jsx)(em,{children:n=>n?(0,t.jsxs)("div",{className:eg.default.noResultsWrapper,children:[r,' "',n,'"']}):e});var eb=e.i(1612);let e_=()=>(0,t.jsx)(ep,{children:(0,t.jsx)("div",{className:eb.default.skeletonWrapper,children:["skeleton-1","skeleton-2","skeleton-3"].map(e=>(0,t.jsxs)("div",{className:eb.default.skeletonItem,children:[(0,t.jsx)("div",{className:(0,u.default)(eb.default.skeletonAnim,eb.default.skeletonAvatar)}),(0,t.jsxs)("div",{className:eb.default.skeletonText,children:[(0,t.jsx)("div",{className:(0,u.default)(eb.default.skeletonAnim,eb.default.skeletonLineShort)}),(0,t.jsx)("div",{className:(0,u.default)(eb.default.skeletonAnim,eb.default.skeletonLineLong)})]})]},e))})}),ev=({children:e,className:r="",...n})=>{let{ref:o,onArrowLeftRight:a}=B(),{results:l}=P();return l&&0!==l.length?(0,t.jsx)("section",{className:r,ref:o,onKeyDown:e=>a(e.nativeEvent),...n,children:e}):null},ex=({children:e,className:r,itemClassName:n,...o})=>{let{groupsCount:a,selectedFacet:l}=P();return a&&0!==a.length?(0,t.jsx)("ul",{className:r,...o,children:a.map(r=>r.count?(0,t.jsx)("li",{className:n,children:e(r,r.name===l)},r.name):null)}):null},eS=({children:e,group:r,isSelected:n=!1,searchParams:o,filterBy:a,onClick:l,className:i="",disabled:s=!1,...u})=>{let{search:c}=Q(),{searchTerm:d}=P(),f=M();return(0,t.jsx)("button",{className:i,onClick:e=>{!s&&(c({...o?{...o}:{},boost:o?.boost??{},term:o?.term||d||"",limit:o?.limit||10,filterBy:[{[a]:r.name}]}),f({type:"SET_SELECTED_FACET",payload:{selectedFacet:r.name}}),l&&l(e))},disabled:s,type:"button","data-selected":n,"data-disabled":s,"data-focus-on-arrow-nav":n?"true":void 0,"data-focus-on-arrow-nav-left-right":!0,...u,children:e})};var ew=e.i(939719);let eI=({selectedFacet:e,...r})=>(0,t.jsx)(ev,{className:ew.default.facetTabsWrapper,children:(0,t.jsx)(ex,{className:ew.default.facetTabsList,children:(n,o)=>(0,t.jsxs)(eS,{...r,isSelected:n.name===e,group:n,filterBy:"siteSection",className:(0,u.default)(o&&ew.default.facetTabItemSelected,ew.default.facetTabItem),children:[n.name,(0,t.jsxs)("span",{className:ew.default.facetTabItemCount,children:["(",n.count,")"]})]})})});var eT=e.i(889090);let eN=e=>{let n,o=(0,r.c)(2),{onHit:a,noResultsTitle:l,...i}=e,{context:s}=Q(),{searchTerm:u,selectedFacet:c}=s;return o[0]!==a?(n=e=>(0,t.jsxs)("div",{className:eT.default.searchResultsGroup,children:[(0,t.jsx)("h2",{className:eT.default.searchResultsGroupTitle,children:e.name}),(0,t.jsx)(ef,{group:e,children:a})]},e.name),o[0]=a,o[1]=n):n=o[1],(0,t.jsx)("div",{className:eT.default.searchResultsWrapper,children:(0,t.jsxs)(ec,{children:[(0,t.jsx)(eI,{...i,searchParams:{term:u??"",limit:25,threshold:0,boost:{pageSectionTitle:4,pageSectionContent:2.5,pageTitle:1.5}},selectedFacet:c}),(0,t.jsx)(e_,{}),(0,t.jsx)(ey,{label:l,...i}),(0,t.jsx)(ed,{className:eT.default.searchResultsGroupWrapper,groupBy:"siteSection",children:n})]})})},eE=c.forwardRef(function({title:e,titleId:t,...r},n){return c.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:n,"aria-labelledby":t},r),e?c.createElement("title",{id:t},e):null,c.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))});var eO=e.i(189116);let eA=({document:e,as:r="a"})=>(0,t.jsx)(eh,{children:(0,t.jsxs)(r,{href:e.href,"data-focus-on-arrow-nav":!0,className:eO.default.link,children:[(0,t.jsx)(eE,{}),(0,t.jsxs)("div",{children:["string"==typeof e?.title&&(0,t.jsx)("h3",{children:e.title}),"string"==typeof e?.description&&(0,t.jsx)("p",{className:eO.default.hitDescription,children:e.description})]})]})});var eR=e.i(156114);let ek=({client:e,placeholder:r="Start typing...",noResultsTitle:n="No results found for",closeShortcutLabel:o="to close",n
1avigateShortcutLabel:a="to navigate",selectShortcutLabel:l="to select"})=>(0,t.jsxs)(el,{client:e,placeholder:r,children:[(0,t.jsx)("div",{className:eR.default.searchResultsContainer,children:(0,t.jsx)(eN,{noResultsTitle:n,onHit:e=>(0,t.jsx)(eA,{document:e.document})})}),(0,t.jsx)("div",{className:eR.default.footer,children:(0,t.jsxs)("div",{className:eR.default.shortcutWrapper,children:[(0,t.jsxs)("div",{className:eR.default.shortcutItem,children:[(0,t.jsx)("kbd",{className:eR.default.shortcutKey,children:(0,t.jsx)(A,{})}),(0,t.jsx)("span",{className:eR.default.shortcutLabel,children:l})]}),(0,t.jsxs)("div",{className:eR.default.shortcutItem,children:[(0,t.jsx)("kbd",{className:eR.default.shortcutKey,children:(0,t.jsx)(O,{})}),(0,t.jsx)("kbd",{className:eR.default.shortcutKey,children:(0,t.jsx)(R,{})}),(0,t.jsx)("span",{className:eR.default.shortcutLabel,children:a})]}),(0,t.jsxs)("div",{className:eR.default.shortcutItem,children:[(0,t.jsx)("kbd",{className:eR.default.shortcutKey,children:"esc"}),(0,t.jsx)("span",{className:eR.default.shortcutLabel,children:o})]})]})})]}),eD={arabic:"ar",armenian:"am",bulgarian:"bg",czech:"cz",danish:"dk",dutch:"nl",english:"en",finnish:"fi",french:"fr",german:"de",greek:"gr",hungarian:"hu",indian:"in",indonesian:"id",irish:"ie",italian:"it",lithuanian:"lt",nepali:"np",norwegian:"no",portuguese:"pt",romanian:"ro",russian:"ru",serbian:"rs",slovenian:"ru",spanish:"es",swedish:"se",tamil:"ta",turkish:"tr",ukrainian:"uk",sanskrit:"sk"}
1,eC={dutch:/[^A-Za-zà èéìòóù0-9_'-]+/gim,english:/[^A-Za-zà èéìòóù0-9_'-]+/gim,french:/[^a-z0-9äâà éèëêïîöôùüûÅç-]+/gim,italian:/[^A-Za-zà èéìòóù0-9_'-]+/gim,norwegian:/[^a-z0-9_æøåÃÃà äÃöÃüÃ]+/gim,portuguese:/[^a-z0-9à -úÃ-Ã]/gim,russian:/[^a-z0-9а-ÑÐ-ЯÑÐ]+/gim,spanish:/[^a-z0-9A-Zá-úÃ-ÃñÃüÃ]+/gim,swedish:/[^a-z0-9_åà äÃöÃüÃ-]+/gim,german:/[^a-z0-9A-ZäöüÃÃÃÃ]+/gim,finnish:/[^a-z0-9äöÃÃ]+/gim,danish:/[^a-z0-9æøåÃÃà ]+/gim,hungarian:/[^a-z0-9áéÃóöÅúüűÃÃÃÃÃÅÃÃŰ]+/gim,romanian:/[^a-z0-9ÄâîÈÈÄÃÃÈÈ]+/gim,serbian:/[^a-z0-9ÄÄžšÄÄÄŽŠÄ]+/gim,turkish:/[^a-z0-9çÃÄÄıİöÃÅÅüÃ]+/gim,lithuanian:/[^a-z0-9Ä ÄÄÄįšųūžÄÄÄÄĮŠŲŪŽ]+/gim,arabic:/[^a-z0-9Ø£-Ù]+/gim,nepali:/[^a-z0-9ठ-ह]+/gim,irish:/[^a-z0-9áéÃóúÃÃÃÃÃ]+/gim,indian:/[^a-z0-9ठ-ह]+/gim,armenian:/[^a-z0-9Õ¡-Ö]+/gim,greek:/[^a-z0-9α-Ïά-Ï]+/gim,indonesian:/[^a-z0-9]+/gim,ukrainian:/[^a-z0-9а-ÑÐ-ЯÑÑÑÐÐÐ]+/gim,slovenian:/[^a-z0-9ÄžšÄŽŠ]+/gim,bulgarian:/[^a-z0-9а-ÑÐ-Я]+/gim,tamil:/[^a-z0-9à® -ஹ]+/gim,sanskrit:/[^a-z0-9A-ZÄīūá¹á¸·á¹á¹á¸¥Åá¹£á¹á¸á¹á¹ ñḻḹá¹]+/gim,czech:/[^A-Z0-9a-zÄÅ¡ÄÅžýáÃéúůóťÄÄÅ ÄÅŽÃÃÃÃÃÃŮŤÄ-]+/gim},ej=Object.keys(eD);var eP=e.i(844990);let eM=Date.now().toString().slice(5),eL=0,eU=BigInt(1e3),eB=BigInt(1e6),ez=BigInt(1e9);function eW(e,t){if(t.length<65535)Array.prototype.push.apply(e,t);else{let r=t.length;for(let n=0;n<r;n+=65535)Array.prototype.push.apply(e,t.slice(n,n+65535))}}function eG(){return BigInt(Math.floor(1e6*performance.now()))}function eF(e){return("number"==typeof e&&(e=BigInt(e)),e<eU)?`${e}ns`:e<eB?`${e/eU}μs`:e<ez?`${e/eB}ms`:`${e/ez}s`}function eV(){return"u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?eG():void 0!==eP.default&&eP.default.release&&"node"===eP.default.release.name||void 0!==eP.default&&"function"==typeof eP.default?.hrtime?.bigint?eP.default.hrtime.bigint():"u">typeof performance?eG():BigInt(0)}function e$(){return`${eM}-${eL++}`}function eK(e,t){return void 0===Object.hasOwn?Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0:Object.hasOwn(e,t)?e[t]:void 0}function eH(e,t){return t[1]===e[1]?e[0]-t[0]:t[1]-e[1]}function eJ(e,t){let r={},n=t.length;for(let o=0;o<n;o++){let n=t[o],a=n.split("."),l=e,i=a.length;for(let e=0;e<i;e++)if("object"==typeof(l=l[a[e]])){if(null!==l&&"lat"in l&&"lon"in l&&"number"==typeof l.lat&&"number"==typeof l.lon){l=r[n]=l;break}else if(!Array.isArray(l)&&null!==l&&e===i-1){l=void 0;break}}else if((null===l||"object"!=typeof l)&&e<i-1){l=void 0;break}void 0!==l&&(r[n]=l)}return r}function eY(e,t){return eJ(e,[t])[t]}let eX={cm:.01,m:1,km:1e3,ft:.3048,yd:.9144,mi:1609.344};function eq(e,t){let r=eX[t];if(void 0===r)throw Error(e4("INVALID_DISTANCE_SUFFIX",e).message);return e*r}function eZ(e,t){e.hits=e.hits.map(e=>({...e,document:{...e.document,...t.reduce((e,t)=>{let r=t.split("."),n=r.pop(),o=e;for(let e of r)o[e]=o[e]??{},o=o[e];return o[n]=null,e},e.document)}}))}function eQ(e){return Array.isArray(e)?e.some(e=>eQ(e)):e?.constructor?.name==="AsyncFunction"}let e0="intersection"in new Set;function e1(...e){if(0===e.length)return new Set;if(1===e.length)return e[0];if(2===e.length){let t=e[0],r=e[1];if(e0)return t.intersection(r);let n=new Set,o=t.size<r.size?t:r,a=o===t?r:t;for(let e of o)a.has(e)&&n.add(e);return n}let t={index:0,size:e[0].size};for(let r=1;r<e.length;r++)e[r].size<t.size&&(t.index=r,t.size=e[r].size);if(e0){let r=e[t.index];for(let n=0;n<e.length;n++)n!==t.index&&(r=r.intersection(e[n]));return r}let r=e[t.index];for(let n=0;n<e.length;n++){if(n===t.index)continue;let o=e[n];for(let e of r)o.has(e)||r.delete(e)}return r}let e5="union"in new Set;function e3(e,t){return e5?e?e.union(t):t:new Set(e?[...e,...t]:t)}function e2(e){if("u">typeof SharedArrayBuffer&&"u">typeof Atomics){let t=new Int32Array(new SharedArrayBuffer(4));if(!1==(e>0&&e<1/0)){if("number"!=typeof e&&"bigint"!=typeof e)throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}Atomics.wait(t,0,0,Number(e))}else{if(!1==(e>0&&e<1/0)){if("number"!=typeof e&&"bigint"!=typeof e)throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}let t=Date.now()+Number(e);for(;t>Date.now(););}}let e7=ej.join("\n - "),e6={NO_LANGUAGE_WITH_CUSTOM_TOKENIZER:"Do not pass the language option to create when using a custom tokenizer.",LANGUAGE_NOT_SUPPORTED:`Language "%s" is not supported. 2Supported languages are: 3 - ${e7}
3`,INVALID_STEMMER_FUNCTION_TYPE:"config.stemmer property must be a function.",MISSING_STEMMER:'As of version 1.0.0 @orama/orama does not ship non English stemmers by default. To solve this, please explicitly import and specify the "%s" stemmer from the package @orama/stemmers. See https://docs.orama.com/docs/orama-js/text-analysis/stemming for more information.',CUSTOM_STOP_WORDS_MUST_BE_FUNCTION_OR_ARRAY:"Custom stop words array must only contain strings.",UNSUPPORTED_COMPONENT:'Unsupported component "%s".',COMPONENT_MUST_BE_FUNCTION:'The component "%s" must be a function.',COMPONENT_MUST_BE_FUNCTION_OR_ARRAY_FUNCTIONS:'The component "%s" must be a function or an array of functions.',INVALID_SCHEMA_TYPE:'Unsupported schema type "%s" at "%s". Expected "string", "boolean" or "number" or array of them.',DOCUMENT_ID_MUST_BE_STRING:'Document id must be of type "string". Got "%s" instead.',DOCUMENT_ALREADY_EXISTS:'A document with id "%s" already exists.',DOCUMENT_DOES_NOT_EXIST:'A document with id "%s" does not exists.',MISSING_DOCUMENT_PROPERTY:'Missing searchable property "%s".',INVALID_DOCUMENT_PROPERTY:'Invalid document property "%s": expected "%s", got "%s"',UNKNOWN_INDEX:'Invalid property name "%s". Expected a wildcard string ("*") or array containing one of the following properties: %s',INVALID_BOOST_VALUE:"Boost value must be a number greater than, or less than 0.",INVALID_FILTER_OPERATION:"You can only use one operation per filter, you requested %d.",SCHEMA_VALIDATION_FAILURE:'Cannot insert document due schema validation failure on "%s" property.',INVALID_SORT_SCHEMA_TYPE:'Unsupported sort schema type "%s" at "%s". Expected "string" or "number".',CANNOT_SORT_BY_ARRAY:'Cannot configure sort for "%s" because it is an array (%s).',UNABLE_TO_SORT_ON_UNKNOWN_FIELD:'Unable to sort on unknown field "%s". Allowed fields: %s',SORT_DISABLED:"Sort is disabled. Please read the documentation at https://docs.orama.com/docs/orama-js for more information.",UNKNOWN_GROUP_BY_PROPERTY:'Unknown groupBy property "%s".',INVALID_GROUP_BY_PROPERTY:'Invalid groupBy property "%s". Allowed types: "%s", but given "%s".',UNKNOWN_FILTER_PROPERTY:'Unknown filter property "%s".',UNKNOWN_VECTOR_PROPERTY:'Unknown vector property "%s". Make sure the property exists in the schema and is configured as a vector.',INVALID_VECTOR_SIZE:'Vector size must be a number greater than 0. Got "%s" instead.',INVALID_VECTOR_VALUE:'Vector value must be a number greater than 0. Got "%s" instead.',INVALID_INPUT_VECTOR:`Property "%s" was declared as a %s-dimensional vector, but got a %s-dimensional vector instead. 4Input vectors must be of the size declared in the schema, as calculating similarity between vectors of different sizes can lead to unexpected results.`,WRONG_SEARCH_PROPERTY_TYPE:'Property "%s" is not searchable. Only "string" properties are searchable.',FACET_NOT_SUPPORTED:'Facet doens\'t support the type "%s".',INVALID_DISTANCE_SUFFIX:'Invalid distance suffix "%s". Valid suffixes are: cm, m, km, mi, yd, ft.',INVALID_SEARCH_MODE:'Invalid search mode "%s". Valid modes are: "fulltext", "vector", "hybrid".',MISSING_VECTOR_AND_SECURE_PROXY:"No vector was provided and no secure proxy was configured. Please provide a vector or configure an Orama Secure Proxy to perform hybrid search.",MISSING_TERM:'"term" is a required parameter when performing hybrid search. Please provide a search term.',INVALID_VECTOR_INPUT:'Invalid "vector" property. Expected an object with "value" and "property" properties, but got "%s" instead.',PLUGIN_CRASHED:"A plugin crashed during initialization. Please check the error message for more information:",PLUGIN_SECURE_PROXY_NOT_FOUND:`Could not find '@orama/secure-proxy-plugin' installed in your Orama instance. 5Please install it before proceeding with creating an answer session. 6Read more at https://docs.orama.com/docs/orama-js/plugins/plugin-secure-proxy#plugin-secure-proxy 7`,PLUGIN_SECURE_PROXY_MISSING_CHAT_MODEL:`Could not find a chat model defined in the secure proxy plugin configuration. 8Please provide a chat model before proceeding with creating an answer session. 9Read more at https://docs.orama.com/docs/orama-js/plugins/plugin-secure-proxy#plugin-secure-proxy 10`,ANSWER_SESSION_LAST_MESSAGE_IS_NOT_ASSISTANT:"The last message in the session is not an assistant message. Cannot regenerate non-assistant messages.",PLUGIN_COMPONENT_CONFLICT:'The component "%s" is already defined. The plugin "%s" is trying to redefine it.'};function e4(e,...t){let r=Error(function(e,...t){return e.replace(/%(?:(?<position>\d+)\$)?(?<width>-?\d*\.?\d*)(?<type>[dfs])/g,function(...e){let{width:r,type:n,position:o}=e[e.length-1],a=o?t[Number.parseInt(o)-1]:t.shift(),l=""===r?0:Number.parseInt(r);switch(n){case"d":return a.toString().padStart(l,"0");case"f":{let e=a,[t,n]=r.split(".").map(e=>Number.parseFloat(e));return"number"==typeof n&&n>=0&&(e=e.toFixed(n)),"number"==typeof t&&t>=0?e.toString().padStart(l,"0"):e.toString()}case"s":return l<0?a.toString().padEnd(-l," "):a.toString().padStart(l," ");default:return a}})}
10(e6[e]??`Unsupported Orama Error code: ${e}`,...t));return r.code=e,"captureStackTrace"in Error.prototype&&Error.captureStackTrace(r),r}function e8(e){return{raw:Number(e),formatted:eF(e)}}function e9(e){if(e.id){if("string"!=typeof e.id)throw e4("DOCUMENT_ID_MUST_BE_STRING",typeof e.id);return e.id}return e$()}let te={string:!1,number:!1,boolean:!1,enum:!1,geopoint:!1,"string[]":!0,"number[]":!0,"boolean[]":!0,"enum[]":!0},tt={"string[]":"string","number[]":"number","boolean[]":"boolean","enum[]":"enum"};function tr(e){return"string"==typeof e&&/^vector\[\d+\]$/.test(e)}function tn(e){return"string"==typeof e&&te[e]}function to(e){let t=Number(e.slice(7,-1));switch(!0){case isNaN(t):throw e4("INVALID_VECTOR_VALUE",e);case t<=0:throw e4("INVALID_VECTOR_SIZE",e);default:return t}}function ta(e){return{internalIdToId:e.internalIdToId}}function tl(e,t){let{internalIdToId:r}=t;e.internalDocumentIDStore.idToInternalId.clear(),e.internalDocumentIDStore.internalIdToId=[];let n=r.length;for(let t=0;t<n;t++){let n=r[t];e.internalDocumentIDStore.idToInternalId.set(n,t+1),e.internalDocumentIDStore.internalIdToId.push(n)}}function ti(e,t){if("string"==typeof t){let r=e.idToInternalId.get(t);if(r)return r;let n=e.idToInternalId.size+1;return e.idToInternalId.set(t,n),e.internalIdToId.push(t),n}return t>e.internalIdToId.length?ti(e,t.toString()):t}function ts(e,t){if(e.internalIdToId.length<t)throw Error(`Invalid internalId ${t}`);return e.internalIdToId[t-1]}function tu(e,t){return{sharedInternalDocumentStore:t,docs:{},count:0}}function tc(e,t){let r=ti(e.sharedInternalDocumentStore,t);return e.docs[r]}function td(e,t){let r=t.length,n=Array.from({length:r});for(let o=0;o<r;o++){let r=ti(e.sharedInternalDocumentStore,t[o]);n[o]=e.docs[r]}return n}function tf(e){return e.docs}function th(e,t,r,n){return void 0===e.docs[r]&&(e.docs[r]=n,e.count++,!0)}function tp(e,t){let r=ti(e.sharedInternalDocumentStore,t);return void 0!==e.docs[r]&&(delete e.docs[r],e.count--,!0)}function tm(e){return e.count}function tg(e,t){return{docs:t.docs,count:t.count,sharedInternalDocumentStore:e}}function ty(e){return{docs:e.docs,count:e.count}}let tb=["beforeInsert","afterInsert","beforeRemove","afterRemove","beforeUpdate","afterUpdate","beforeUpsert","afterUpsert","beforeSearch","afterSearch","beforeInsertMultiple","afterInsertMultiple","beforeRemoveMultiple","afterRemoveMultiple","beforeUpdateMultiple","afterUpdateMultiple","beforeUpsertMultiple","afterUpsertMultiple","beforeLoad","afterLoad","afterCreate"],t_=["tokenizer","index","documentsStore","sorter","pinning"],tv=["validateSchema","getDocumentIndexId","getDocumentProperties","formatElapsedTime"];function tx(e,t,r,n){if(e.some(eQ))return(async()=>{for(let o of e)await o(t,r,n)})();for(let o of e)o(t,r,n)}function tS(e,t,r){if(e.some(eQ))return(async()=>{for(let n of e)await n(t,r)})();for(let n of e)n(t,r)}function tw(e,t,r,n,o){if(e.some(eQ))return(async()=>{for(let a of e)await a(t,r,n,o)})();for(let a of e)a(t,r,n,o)}function tI(e,t,r,n){if(e.some(eQ))return(async()=>{for(let o of e)await o(t,r,n)})();for(let o of e)o(t,r,n)}class tT{k;v;l=null;r=null;h=1;constructor(e,t){this.k=e,this.v=new Set(t)}updateHeight(){this.h=Math.max(tT.getHeight(this.l),tT.getHeight(this.r))+1}static getHeight(e){return e?e.h:0}getBalanceFactor(){return tT.getHeight(this.l)-tT.getHeight(this.r)}rotateLeft(){let e=this.r;return this.r=e.l,e.l=this,this.updateHeight(),e.updateHeight(),e}rotateRight(){let e=this.l;return this.l=e.r,e.r=this,this.updateHeight(),e.updateHeight(),e}toJSON(){return{k:this.k,v:Array.from(this.v),l:this.l?this.l.toJSON():null,r:this.r?this.r.toJSON():null,h:this.h}}static fromJSON(e){let t=new tT(e.k,e.v);return t.l=e.l?tT.fromJSON(e.l):null,t.r=e.r?tT.fromJSON(e.r):null,t.h=e.h,t}}class tN{root=null;insertCount=0;constructor(e,t){void 0!==e&&void 0!==t&&(this.root=new tT(e,t))}insert(e,t,r=1e3){this.root=this.insertNode(this.root,e,t,r)}insertMultiple(e,t,r=1e3){for(let n of t)this.insert(e,n,r)}rebalance(){this.root&&(this.root=this.rebalanceNode(this.root))}toJSON(){return{root:this.root?this.root.toJSON():null,insertCount:this.insertCount}}static fromJSON(e){let t=new tN;return t.root=e.root?tT.fromJSON(e.root):null,t.insertCount=e.insertCount||0,t}insertNode(e,t,r,n){if(null===e)return new tT(t,[r]);let o=[],a=e,l=null;for(;null!==a;)if(o.push({parent:l,node:a}),t<a.k)if(null===a.l){a.l=new tT(t,[r]),o.push({parent:a,node:a.l});break}else l=a,a=a.l;else if(!(t>a.k))return a.v.add(r),e;else if(null===a.r){a.r=new tT(t,[r]),o.push({parent:a,node:a.r});break}else l=a,a=a.r;let i=!1;this.insertCount++%n==0&&(i=!0);for(let t=o.length-1;t>=0;t--){let{parent:r,node:n}=o[t];if(n.updateHeight(),i){let t=this.rebalanceNode(n);r?r.l===n?r.l=t:r.r===n&&(r.r=t):e=t}}return e}rebalanceNode(e){let t=e.getBalanceFactor();if(t>1){if(e.l&&e.l.getBalanceFactor()>=0)return e.rotateRight();else if(e.l)return e.l=e.l.rotateLeft(),e.rotateRight()}if(t<-1){if(e.r&&0>=e.r.getBalanceFactor())return e.rotateLeft();else if(e.r)return e.r=e.r.rotateRight(),e.rotateLeft()}return e}find(e){let t=this.findNodeByKey(e);return t?t.v:null}contains(e){return null!==this.find(e)}getSize(){let e=0,t=[],r=this.root;for(;r||t.length>0;){for(;r;)t.push(r),r=r.l;r=t.pop(),e++,r=r.r}return e}isBalanced(){if(!this.root)return!0;let e=[this.root];for(;e.length>0;){let t=e.pop();
10if(Math.abs(t.getBalanceFactor())>1)return!1;t.l&&e.push(t.l),t.r&&e.push(t.r)}return!0}remove(e){this.root=this.removeNode(this.root,e)}removeDocument(e,t){let r=this.findNodeByKey(e);r&&(1===r.v.size?this.root=this.removeNode(this.root,e):r.v=new Set([...r.v.values()].filter(e=>e!==t)))}findNodeByKey(e){let t=this.root;for(;t;)if(e<t.k)t=t.l;else{if(!(e>t.k))return t;t=t.r}return null}removeNode(e,t){if(null===e)return null;let r=[],n=e;for(;null!==n&&n.k!==t;)r.push(n),n=t<n.k?n.l:n.r;if(null===n)return e;if(null===n.l||null===n.r){let t=n.l?n.l:n.r;if(0===r.length)e=t;else{let e=r[r.length-1];e.l===n?e.l=t:e.r=t}}else{let e=n,t=n.r;for(;null!==t.l;)e=t,t=t.l;n.k=t.k,n.v=t.v,e.l===t?e.l=t.r:e.r=t.r,n=e}r.push(n);for(let t=r.length-1;t>=0;t--){let n=r[t];n.updateHeight();let o=this.rebalanceNode(n);if(t>0){let e=r[t-1];e.l===n?e.l=o:e.r===n&&(e.r=o)}else e=o}return e}rangeSearch(e,t){let r=new Set,n=[],o=this.root;for(;o||n.length>0;){for(;o;)n.push(o),o=o.l;if((o=n.pop()).k>=e&&o.k<=t)for(let e of o.v)r.add(e);if(o.k>t)break;o=o.r}return r}greaterThan(e,t=!1){let r=new Set,n=[],o=this.root;for(;o||n.length>0;){for(;o;)n.push(o),o=o.r;if(o=n.pop(),t&&o.k>=e||!t&&o.k>e)for(let e of o.v)r.add(e);else if(o.k<=e)break;o=o.l}return r}lessThan(e,t=!1){let r=new Set,n=[],o=this.root;for(;o||n.length>0;){for(;o;)n.push(o),o=o.l;if(o=n.pop(),t&&o.k<=e||!t&&o.k<e)for(let e of o.v)r.add(e);else if(o.k>e)break;o=o.r}return r}}class tE{numberToDocumentId;constructor(){this.numberToDocumentId=new Map}insert(e,t){this.numberToDocumentId.has(e)?this.numberToDocumentId.get(e).add(t):this.numberToDocumentId.set(e,new Set([t]))}find(e){let t=this.numberToDocumentId.get(e);return t?Array.from(t):null}remove(e){this.numberToDocumentId.delete(e)}removeDocument(e,t){let r=this.numberToDocumentId.get(t);r&&(r.delete(e),0===r.size&&this.numberToDocumentId.delete(t))}contains(e){return this.numberToDocumentId.has(e)}getSize(){let e=0;for(let t of this.numberToDocumentId.values())e+=t.size;return e}filter(e){let t=Object.keys(e);if(1!==t.length)throw Error("Invalid operation");let r=t[0];switch(r){case"eq":{let t=e[r],n=this.numberToDocumentId.get(t);return n?Array.from(n):[]}case"in":{let t=e[r],n=new Set;for(let e of t){let t=this.numberToDocumentId.get(e);if(t)for(let e of t)n.add(e)}return Array.from(n)}case"nin":{let t=new Set(e[r]),n=new Set;for(let[e,r]of this.numberToDocumentId.entries())if(!t.has(e))for(let e of r)n.add(e);return Array.from(n)}default:throw Error("Invalid operation")}}filterArr(e){let t=Object.keys(e);if(1!==t.length)throw Error("Invalid operation");let r=t[0];switch(r){case"containsAll":{let t=e[r].map(e=>this.numberToDocumentId.get(e)??new Set);if(0===t.length)return[];return Array.from(t.reduce((e,t)=>new Set([...e].filter(e=>t.has(e)))))}case"containsAny":{let t=e[r].map(e=>this.numberToDocumentId.get(e)??new Set);if(0===t.length)return[];return Array.from(t.reduce((e,t)=>new Set([...e,...t])))}default:throw Error("Invalid operation")}}static fromJSON(e){if(!e.numberToDocumentId)throw Error("Invalid Flat Tree JSON");let t=new tE;for(let[r,n]of e.numberToDocumentId)t.numberToDocumentId.set(r,new Set(n));return t}toJSON(){return{numberToDocumentId:Array.from(this.numberToDocumentId.entries()).map(([e,t])=>[e,Array.from(t)])}}}function tO(e,t,r){let n=function(e,t,r){if(r<0)return -1;if(e===t)return 0;let n=e.length,o=t.length;if(0===n)return o<=r?o:-1;if(0===o)return n<=r?n:-1;let a=Math.abs(n-o);if(e.startsWith(t))return a<=r?a:-1;if(t.startsWith(e))return 0;if(a>r)return -1;let l=[];for(let e=0;e<=n;e++){l[e]=[e];for(let t=1;t<=o;t++)l[e][t]=0===e?t:0}for(let a=1;a<=n;a++){let n=1/0;for(let r=1;r<=o;r++)e[a-1]===t[r-1]?l[a][r]=l[a-1][r-1]:l[a][r]=Math.min(l[a-1][r]+1,l[a][r-1]+1,l[a-1][r-1]+1),n=Math.min(n,l[a][r]);if(n>r)return -1}return l[n][o]<=r?l[n][o]:-1}(e,t,r);return{distance:n,isBounded:n>=0}}class tA{k;s;c=new Map;d=new Set;e;w="";constructor(e,t,r){this.k=e,this.s=t,this.e=r}updateParent(e){this.w=e.w+this.s}addDocument(e){this.d.add(e)}removeDocument(e){return this.d.delete(e)}findAllWords(e,t,r,n){let o=[this];for(;o.length>0;){let a=o.pop();if(a.e){let{w:o,d:l}=a;if(r&&o!==t)continue;if(null!==eK(e,o))if(n){if(!(Math.abs(t.length-o.length)<=n)||!tO(t,o,n).isBounded)continue;e[o]=[]}else e[o]=[];if(null!=eK(e,o)&&l.size>0){let t=e[o];for(let e of l)t.includes(e)||t.push(e)}}a.c.size>0&&o.push(...a.c.values())}return e}insert(e,t){let r=this,n=0,o=e.length;for(;n<o;){let a=e[n],l=r.c.get(a);if(l){let a=l.s,i=a.length,s=0;for(;s<i&&n+s<o&&a[s]===e[n+s];)s++;if(s===i){if(r=l,(n+=s)===o){l.e||(l.e=!0),l.addDocument(t);return}continue}let u=a.slice(0,s),c=a.slice(s),d=e.slice(n+s),f=new tA(u[0],u,!1);if(r.c.set(u[0],f),f.updateParent(r),l.s=c,l.k=c[0],f.c.set(c[0],l),l.updateParent(f),d){let e=new tA(d[0],d,!0);e.addDocument(t),f.c.set(d[0],e),e.updateParent(f)}else f.e=!0,f.addDocument(t);return}{let o=new tA(a,e.slice(n),!0);o.addDocument(t),r.c.set(a,o),o.updateParent(r);return}}r.e||(r.e=!0),r.addDocument(t)}_findLevenshtein(e,t,r,n,o){let a=[{node:this,index:t,tolerance:r}];for(;a.length>0;){let{node:t,index:r,tolerance:l}=a.pop();if(t.w.startsWith(e)){t.findAllWords(o,e,!1,0);continue}if(l<0)continue;if(t.e){let{w:r,d:a}=t;if(r&&(tO(e,r,n).isBounded&&(o[r]=[]),void 0!==eK(o,r)&&a.size>0)){let e=new Set(o[r]);for(let t of a)e.add(t);o[r]=Array.from(e)}}if(r>=e.length)continue;let i=e[r];if(t.c.has(i)){let e=t.c.get(i);a.push({node:e,index:r+1,tolerance:l})}for(let[e,n]of(a.push({node:t,index:r+1,tolerance:l-1}),t.c))a.push({node:n,index:r,tolerance:l-1}),e!==i&&a.push({node:n,index:r+1,tolerance:l-1})}}find(e){let{term:t,exact:r,tolerance:n}
10=e;if(n&&!r){let e={};return this._findLevenshtein(t,0,n,n,e),e}{let e=this,o=0,a=t.length;for(;o<a;){let l=t[o],i=e.c.get(l);if(!i)return{};{let l=i.s,s=l.length,u=0;for(;u<s&&o+u<a&&l[u]===t[o+u];)u++;if(u===s)e=i,o+=u;else{if(o+u!==a||u!==a-o||r)return{};let e={};return i.findAllWords(e,t,r,n),e}}}let l={};return e.findAllWords(l,t,r,n),l}}contains(e){let t=this,r=0,n=e.length;for(;r<n;){let o=e[r],a=t.c.get(o);if(!a)return!1;{let o=a.s,l=o.length,i=0;for(;i<l&&r+i<n&&o[i]===e[r+i];)i++;if(i<l)return!1;r+=l,t=a}}return!0}removeWord(e){if(!e)return!1;let t=this,r=e.length,n=[];for(let o=0;o<r;o++){let r=e[o];if(!t.c.has(r))return!1;{let e=t.c.get(r);n.push({parent:t,character:r}),o+=e.s.length-1,t=e}}for(t.d.clear(),t.e=!1;n.length>0&&0===t.c.size&&!t.e&&0===t.d.size;){let{parent:e,character:r}=n.pop();e.c.delete(r),t=e}return!0}removeDocumentByWord(e,t,r=!0){if(!e)return!0;let n=this,o=e.length;for(let a=0;a<o;a++){let o=e[a];if(!n.c.has(o))return!1;{let l=n.c.get(o);a+=l.s.length-1,n=l,r&&n.w!==e||n.removeDocument(t)}}return!0}static getCommonPrefix(e,t){let r=Math.min(e.length,t.length),n=0;for(;n<r&&e.charCodeAt(n)===t.charCodeAt(n);)n++;return e.slice(0,n)}toJSON(){return{w:this.w,s:this.s,e:this.e,k:this.k,d:Array.from(this.d),c:Array.from(this.c?.entries())?.map(([e,t])=>[e,t.toJSON()])}}static fromJSON(e){let t=new tA(e.k,e.s,e.e);return t.w=e.w,t.d=new Set(e.d),t.c=new Map(e?.c?.map(([e,t])=>[e,tA.fromJSON(t)])||[]),t}}class tR extends tA{constructor(){super("","",!1)}static fromJSON(e){let t=new tR;return t.w=e.w,t.s=e.s,t.e=e.e,t.k=e.k,t.d=new Set(e.d),t.c=new Map(e?.c?.map(([e,t])=>[e,tA.fromJSON(t)])||[]),t}toJSON(){return super.toJSON()}}class tk{point;docIDs;left;right;parent;constructor(e,t){this.point=e,this.docIDs=new Set(t),this.left=null,this.right=null,this.parent=null}toJSON(){return{point:this.point,docIDs:Array.from(this.docIDs),left:this.left?this.left.toJSON():null,right:this.right?this.right.toJSON():null}}static fromJSON(e,t=null){let r=new tk(e.point,e.docIDs);return r.parent=t,e.left&&(r.left=tk.fromJSON(e.left,r)),e.right&&(r.right=tk.fromJSON(e.right,r)),r}}class tD{root;nodeMap;constructor(){this.root=null,this.nodeMap=new Map}getPointKey(e){return`${e.lon},${e.lat}`}insert(e,t){let r=this.getPointKey(e),n=this.nodeMap.get(r);if(n)return void t.forEach(e=>n.docIDs.add(e));let o=new tk(e,t);if(this.nodeMap.set(r,o),null==this.root){this.root=o;return}let a=this.root,l=0;for(;;){if(0==l%2)if(e.lon<a.point.lon){if(null==a.left){a.left=o,o.parent=a;return}a=a.left}else{if(null==a.right){a.right=o,o.parent=a;return}a=a.right}else if(e.lat<a.point.lat){if(null==a.left){a.left=o,o.parent=a;return}a=a.left}else{if(null==a.right){a.right=o,o.parent=a;return}a=a.right}l++}}contains(e){let t=this.getPointKey(e);return this.nodeMap.has(t)}getDocIDsByCoordinates(e){let t=this.getPointKey(e),r=this.nodeMap.get(t);return r?Array.from(r.docIDs):null}removeDocByID(e,t){let r=this.getPointKey(e),n=this.nodeMap.get(r);n&&(n.docIDs.delete(t),0===n.docIDs.size&&(this.nodeMap.delete(r),this.deleteNode(n)))}deleteNode(e){let t=e.parent,r=e.left?e.left:e.right;r&&(r.parent=t),t?t.left===e?t.left=r:t.right===e&&(t.right=r):(this.root=r,this.root&&(this.root.parent=null))}searchByRadius(e,t,r=!0,n="asc",o=!1){let a=o?tD.vincentyDistance:tD.haversineDistance,l=[{node:this.root,depth:0}],i=[];for(;l.length>0;){let{node:n,depth:o}=l.pop();if(null==n)continue;let s=a(e,n.point);(r?s<=t:s>t)&&i.push({point:n.point,docIDs:Array.from(n.docIDs)}),null!=n.left&&l.push({node:n.left,depth:o+1}),null!=n.right&&l.push({node:n.right,depth:o+1})}return n&&i.sort((t,r)=>{let o=a(e,t.point),l=a(e,r.point);return"asc"===n.toLowerCase()?o-l:l-o}),i}searchByPolygon(e,t=!0,r=null,n=!1){let o=[{node:this.root,depth:0}],a=[];for(;o.length>0;){let{node:r,depth:n}=o.pop();if(null==r)continue;null!=r.left&&o.push({node:r.left,depth:n+1}),null!=r.right&&o.push({node:r.right,depth:n+1});let l=tD.isPointInPolygon(e,r.point);(l&&t||!l&&!t)&&a.push({point:r.point,docIDs:Array.from(r.docIDs)})}let l=tD.calculatePolygonCentroid(e);if(r){let e=n?tD.vincentyDistance:tD.haversineDistance;a.sort((t,n)=>{let o=e(l,t.point),a=e(l,n.point);return"asc"===r.toLowerCase()?o-a:a-o})}return a}toJSON(){return{root:this.root?this.root.toJSON():null}}static fromJSON(e){let t=new tD;return e.root&&(t.root=tk.fromJSON(e.root),t.buildNodeMap(t.root)),t}buildNodeMap(e){if(null==e)return;let t=this.getPointKey(e.point);this.nodeMap.set(t,e),e.left&&this.buildNodeMap(e.left),e.right&&this.buildNodeMap(e.right)}static calculatePolygonCentroid(e){let t=0,r=0,n=0,o=e.length;for(let a=0,l=o-1;a<o;l=a++){let o=e[a].lon,i=e[a].lat,s=e[l].lon,u=e[l].lat,c=o*u-s*i;t+=c,r+=(o+s)*c,n+=(i+u)*c}let a=6*(t/=2);return{lon:r/=a,lat:n/=a}}static isPointInPolygon(e,t){let r=!1,n=t.lon,o=t.lat,a=e.length;for(let t=0,l=a-1;t<a;l=t++){let a=e[t].lon,i=e[t].lat,s=e[l].lon,u=e[l].lat;i>o!=u>o&&n<(s-a)*(o-i)/(u-i)+a&&(r=!r)}return r}static haversineDistance(e,t){let r=Math.PI/180,n=e.lat*r,o=t.lat*r,a=(t.lat-e.lat)*r,l=(t.lon-e.lon)*r,i=Math.sin(a/2)*Math.sin(a/2)+Math.cos(n)*Math.cos(o)*Math.sin(l/2)*
10Math.sin(l/2);return 2*Math.atan2(Math.sqrt(i),Math.sqrt(1-i))*6371e3}static vincentyDistance(e,t){let r,n,o,a,l,i,s,u=1/298.257223563,c=(1-1/298.257223563)*6378137,d=Math.PI/180,f=e.lat*d,h=t.lat*d,p=(t.lon-e.lon)*d,m=Math.atan((1-u)*Math.tan(f)),g=Math.atan((1-u)*Math.tan(h)),y=Math.sin(m),b=Math.cos(m),_=Math.sin(g),v=Math.cos(g),x=p,S=1e3;do{let e=Math.sin(x),t=Math.cos(x);if(0===(n=Math.sqrt(v*e*(v*e)+(b*_-y*v*t)*(b*_-y*v*t))))return 0;a=Math.atan2(n,o=y*_+b*v*t),isNaN(s=o-2*y*_/(i=1-(l=b*v*e/n)*l))&&(s=0);let c=u/16*i*(4+u*(4-3*i));r=x,x=p+(1-c)*u*l*(a+c*n*(s+c*o*(-1+2*s*s)))}while(Math.abs(x-r)>1e-12&&--S>0)if(0===S)return NaN;let w=i*(0x24ffb2985f71-c*c)/(c*c),I=1+w/16384*(4096+w*(-768+w*(320-175*w))),T=w/1024*(256+w*(-128+w*(74-47*w)));return c*I*(a-T*n*(s+T/4*(o*(-1+2*s*s)-T/6*s*(-3+4*n*n)*(-3+4*s*s))))}}class tC{true;false;constructor(){this.true=new Set,this.false=new Set}insert(e,t){t?this.true.add(e):this.false.add(e)}delete(e,t){t?this.true.delete(e):this.false.delete(e)}getSize(){return this.true.size+this.false.size}toJSON(){return{true:Array.from(this.true),false:Array.from(this.false)}}static fromJSON(e){let t=new tC;return t.true=new Set(e.true),t.false=new Set(e.false),t}}class tj{size;vectors=new Map;constructor(e){this.size=e}add(e,t){t instanceof Float32Array||(t=new Float32Array(t));let r=tP(t,this.size);this.vectors.set(e,[r,t])}remove(e){this.vectors.delete(e)}find(e,t,r){return e instanceof Float32Array||(e=new Float32Array(e)),function(e,t,r,n,o){let a=tP(e,n),l=[];for(let i of t||r.keys()){let t=r.get(i);if(!t)continue;let s=t[0],u=t[1],c=0;for(let t=0;t<n;t++)c+=e[t]*u[t];let d=c/(a*s);d>=o&&l.push([i,d])}return l}(e,r,this.vectors,this.size,t)}toJSON(){let e=[];for(let[t,[r,n]]of this.vectors)e.push([t,[r,Array.from(n)]]);return{size:this.size,vectors:e}}static fromJSON(e){let t=new tj(e.size);for(let[r,[n,o]]of e.vectors)t.vectors.set(r,[n,new Float32Array(o)]);return t}}function tP(e,t){let r=0;for(let n=0;n<t;n++)r+=e[n]*e[n];return Math.sqrt(r)}function tM(e,t,r,n,o){let a=ti(e.sharedInternalDocumentStore,r);e.avgFieldLength[t]=((e.avgFieldLength[t]??0)*(o-1)+n.length)/o,e.fieldLengths[t][a]=n.length,e.frequencies[t][a]={}}function tL(e,t,r,n,o){let a=0;for(let e of n)e===o&&a++;let l=ti(e.sharedInternalDocumentStore,r),i=a/n.length;e.frequencies[t][l][o]=i,o in e.tokenOccurrences[t]||(e.tokenOccurrences[t][o]=0),e.tokenOccurrences[t][o]=(e.tokenOccurrences[t][o]??0)+1}function tU(e,t,r,n){let o=ti(e.sharedInternalDocumentStore,r);n>1?e.avgFieldLength[t]=(e.avgFieldLength[t]*n-e.fieldLengths[t][o])/(n-1):e.avgFieldLength[t]=void 0,e.fieldLengths[t][o]=void 0,e.frequencies[t][o]=void 0}function tB(e,t,r){e.tokenOccurrences[t][r]--}function tz(e,t,r,n,o,a,l,i,s,u,c){if(tr(l)){var d,f,h,p;return d=t,f=r,h=a,p=o,void d.vectorIndexes[f].node.add(p,h)}let m=n=>{let{type:a,node:l}=t.indexes[r];switch(a){case"Bool":l[n?"true":"false"].add(o);break;case"AVL":{let e=c?.avlRebalanceThreshold??1;l.insert(n,o,e);break}case"Radix":{let a=s.tokenize(n,i,r,!1);for(let n of(e.insertDocumentScoreParameters(t,r,o,a,u),a))e.insertTokenScoreParameters(t,r,o,a,n),l.insert(n,o);break}case"Flat":l.insert(n,o);break;case"BKD":l.insert(n,[o])}};if(!tn(l))return m(a);let g=a.length;for(let e=0;e<g;e++)m(a[e])}function tW(e,t,r,n,o,a,l,i,s,u){if(tr(l))return t.vectorIndexes[r].node.remove(o),!0;let{type:c,node:d}=t.indexes[r];switch(c){case"AVL":return d.removeDocument(a,o),!0;case"Bool":return d[a?"true":"false"].delete(o),!0;case"Radix":{let l=s.tokenize(a,i,r);for(let a of(e.removeDocumentScoreParameters(t,r,n,u),l))e.removeTokenScoreParameters(t,r,a),d.removeDocumentByWord(a,o);return!0}case"Flat":return d.removeDocument(o,a),!0;case"BKD":return d.removeDocByID(a,o),!1}}function tG(e,t,r,n,o,a,l,i,s,u){if(!tn(l))return tW(e,t,r,n,o,a,l,i,s,u);let c=tt[l],d=a.length;for(let l=0;l<d;l++)tW(e,t,r,n,o,a[l],c,i,s,u);return!0}function tF(e,t,r,n,o,a,l,i,s,u){let c=Array.from(n),d=e.avgFieldLength[t],f=e.fieldLengths[t],h=e.tokenOccurrences[t],p=e.frequencies[t],m="number"==typeof h[r]?h[r]??0:0,g=c.length;for(let e=0;e<g;e++){let n=c[e];if(s&&!s.has(n))continue;u.has(n)||u.set(n,new Map);let h=u.get(n);h.set(t,(h.get(t)||0)+1);let g=function(e,t,r,n,o,{k:a,b:l,d:i}){return Math.log(1+(r-t+.5)/(t+.5))*(i+e*(a+1))/(e+a*(1-l+l*n/o))}(p?.[n]?.[r]??0,m,o,f[n],d,a);l.has(n)?l.set(n,l.get(n)+g*i):l.set(n,g*i)}}function tV(e,t,r,n,o,a,l,i,s,u,c,d=0){let f=r.tokenize(t,n),h=f.length||1,p=new Map,m=new Map,g=new Map;for(let r of o){if(!(r in e.indexes))continue;let n=e.indexes[r],{type:o}=n;
10if("Radix"!==o)throw e4("WRONG_SEARCH_PROPERTY_TYPE",r);let d=i[r]??1;if(d<=0)throw e4("INVALID_BOOST_VALUE",d);0!==f.length||t||f.push("");let h=f.length;for(let t=0;t<h;t++){let o=f[t],i=n.node.find({term:o,exact:a,tolerance:l}),h=Object.keys(i);h.length>0&&m.set(o,!0);let y=h.length;for(let t=0;t<y;t++){let n=h[t],o=i[n];tF(e,r,n,o,u,s,g,d,c,p)}}}let y=Array.from(g.entries()).map(([e,t])=>[e,t]).sort((e,t)=>t[1]-e[1]);if(0===y.length)return[];if(1===d)return y;if(0===d){if(1===h)return y;for(let e of f)if(!m.get(e))return[];return y.filter(([e])=>{let t=p.get(e);return!!t&&Array.from(t.values()).some(e=>e===h)})}let b=y.filter(([e])=>{let t=p.get(e);return!!t&&Array.from(t.values()).some(e=>e===h)});if(b.length>0){let e=y.filter(([e])=>!b.some(([t])=>t===e)),t=Math.ceil(e.length*d);return[...b,...e.slice(0,t)]}return y}function t$(e){return e.searchableProperties}function tK(e){return e.searchablePropertiesWithTypes}function tH(e,t){let{indexes:r,vectorIndexes:n,searchableProperties:o,searchablePropertiesWithTypes:a,frequencies:l,tokenOccurrences:i,avgFieldLength:s,fieldLengths:u}=t,c={},d={};for(let e of Object.keys(r)){let{node:t,type:n,isArray:o}=r[e];switch(n){case"Radix":c[e]={type:"Radix",node:tR.fromJSON(t),isArray:o};break;case"Flat":c[e]={type:"Flat",node:tE.fromJSON(t),isArray:o};break;case"AVL":c[e]={type:"AVL",node:tN.fromJSON(t),isArray:o};break;case"BKD":c[e]={type:"BKD",node:tD.fromJSON(t),isArray:o};break;case"Bool":c[e]={type:"Bool",node:tC.fromJSON(t),isArray:o};break;default:c[e]=r[e]}}for(let e of Object.keys(n))d[e]={type:"Vector",isArray:!1,node:tj.fromJSON(n[e])};return{sharedInternalDocumentStore:e,indexes:c,vectorIndexes:d,searchableProperties:o,searchablePropertiesWithTypes:a,frequencies:l,tokenOccurrences:i,avgFieldLength:s,fieldLengths:u}}function tJ(e){let{indexes:t,vectorIndexes:r,searchableProperties:n,searchablePropertiesWithTypes:o,frequencies:a,tokenOccurrences:l,avgFieldLength:i,fieldLengths:s}=e,u={};for(let e of Object.keys(r))u[e]=r[e].node.toJSON();let c={};for(let e of Object.keys(t)){let{type:r,node:n,isArray:o}=t[e];"Flat"===r||"Radix"===r||"AVL"===r||"BKD"===r||"Bool"===r?c[e]={type:r,node:n.toJSON(),isArray:o}:(c[e]=t[e],c[e].node=c[e].node.toJSON())}return{indexes:c,vectorIndexes:u,searchableProperties:n,searchablePropertiesWithTypes:o,frequencies:a,tokenOccurrences:l,avgFieldLength:i,fieldLengths:s}}function tY(e,t){e||(e=new Set);let r=t.length;for(let n=0;n<r;n++){let r=t[n].docIDs,o=r.length;for(let t=0;t<o;t++)e.add(r[t])}return e}function tX(e,t,r=!1){let n=r?tD.vincentyDistance:tD.haversineDistance,o=[],a=[];for(let{point:r}of e)a.push(n(t,r));let l=Math.max(...a),i=0;for(let{docIDs:t}of e){let e=l-a[i]+1;for(let r of t)o.push([r,e]);i++}return o.sort((e,t)=>t[1]-e[1]),o}function tq(e,t,r,n){return n?.enabled===!1?{disabled:!0}:function e(t,r,n,o,a){let l={language:t.tokenizer.language,sharedInternalDocumentStore:r,enabled:!0,isSorted:!0,sortableProperties:[],sortablePropertiesWithTypes:{},sorts:{}};for(let[i,s]of Object.entries(n)){let n=`${a}${a?".":""}${i}`;if(!o.includes(n)){if("object"==typeof s&&!Array.isArray(s)){let a=e(t,r,s,o,n);eW(l.sortableProperties,a.sortableProperties),l.sorts={...l.sorts,...a.sorts},l.sortablePropertiesWithTypes={...l.sortablePropertiesWithTypes,...a.sortablePropertiesWithTypes};continue}if(!tr(s))switch(s){case"boolean":case"number":case"string":l.sortableProperties.push(n),l.sortablePropertiesWithTypes[n]=s,l.sorts[n]={docs:new Map,orderedDocsToRemove:new Map,orderedDocs:[],type:s};break;case"geopoint":case"enum":case"enum[]":case"boolean[]":case"number[]":case"string[]":continue;default:throw e4("INVALID_SORT_SCHEMA_TYPE",Array.isArray(s)?"array":s,n)}}}return l}(e,t,r,(n||{}).unsortableProperties||[],"")}function tZ(e,t,r,n){if(!e.enabled)return;e.isSorted=!1;let o=ti(e.sharedInternalDocumentStore,r),a=e.sorts[t];a.orderedDocsToRemove.has(o)&&t3(e,t),a.docs.set(o,a.orderedDocs.length),a.orderedDocs.push([o,n])}function tQ(e){if(!e.isSorted&&e.enabled){for(let t of Object.keys(e.sorts))!function(e,t){let r,n=e.sorts[t];switch(n.type){case"string":r=t0.bind(null,e.language);break;case"number":r=t1.bind(null);break;case"boolean":r=t5.bind(null)}n.orderedDocs.sort(r);let o=n.orderedDocs.length;for(let e=0;e<o;e++){let t=n.orderedDocs[e][0];n.docs.set(t,e)}}(e,t);e.isSorted=!0}
10}function t0(e,t,r){return t[1].localeCompare(r[1],void 0!==e&&ej.includes(e)?eD[e]:void 0)}function t1(e,t){return e[1]-t[1]}function t5(e,t){return t[1]?-1:1}function t3(e,t){let r=e.sorts[t];r.orderedDocsToRemove.size&&(r.orderedDocs=r.orderedDocs.filter(e=>!r.orderedDocsToRemove.has(e[0])),r.orderedDocsToRemove.clear())}function t2(e,t,r){if(!e.enabled)return;let n=e.sorts[t],o=ti(e.sharedInternalDocumentStore,r);n.docs.get(o)&&(n.docs.delete(o),n.orderedDocsToRemove.set(o,!0))}function t7(e,t,r){if(!e.enabled)throw e4("SORT_DISABLED");let n=r.property,o="DESC"===r.order,a=e.sorts[n];if(!a)throw e4("UNABLE_TO_SORT_ON_UNKNOWN_FIELD",n,e.sortableProperties.join(", "));return t3(e,n),tQ(e),t.sort((t,r)=>{let n=a.docs.get(ti(e.sharedInternalDocumentStore,t[0])),l=a.docs.get(ti(e.sharedInternalDocumentStore,r[0])),i=void 0!==n,s=void 0!==l;return i||s?i?s?o?l-n:n-l:-1:1:0}),t}function t6(e){return e.enabled?e.sortableProperties:[]}function t4(e){return e.enabled?e.sortablePropertiesWithTypes:{}}function t8(e,t){if(!t.enabled)return{enabled:!1};let r=Object.keys(t.sorts).reduce((e,r)=>{let{docs:n,orderedDocs:o,type:a}=t.sorts[r];return e[r]={docs:new Map(Object.entries(n).map(([e,t])=>[+e,t])),orderedDocsToRemove:new Map,orderedDocs:o,type:a},e},{});return{sharedInternalDocumentStore:e,language:t.language,sortableProperties:t.sortableProperties,sortablePropertiesWithTypes:t.sortablePropertiesWithTypes,sorts:r,enabled:!0,isSorted:t.isSorted}}function t9(e){if(!e.enabled)return{enabled:!1};for(let t of Object.keys(e.sorts))t3(e,t);tQ(e);let t=Object.keys(e.sorts).reduce((t,r)=>{let{docs:n,orderedDocs:o,type:a}=e.sorts[r];return t[r]={docs:Object.fromEntries(n.entries()),orderedDocs:o,type:a},t},{});return{language:e.language,sortableProperties:e.sortableProperties,sortablePropertiesWithTypes:e.sortablePropertiesWithTypes,sorts:t,enabled:e.enabled,isSorted:e.isSorted}}let re=[65,65,65,65,65,65,65,67,69,69,69,69,73,73,73,73,69,78,79,79,79,79,79,null,79,85,85,85,85,89,80,115,97,97,97,97,97,97,97,99,101,101,101,101,105,105,105,105,101,110,111,111,111,111,111,null,111,117,117,117,117,121,112,121,65,97,65,97,65,97,67,99,67,99,67,99,67,99,68,100,68,100,69,101,69,101,69,101,69,101,69,101,71,103,71,103,71,103,71,103,72,104,72,104,73,105,73,105,73,105,73,105,73,105,73,105,74,106,75,107,107,76,108,76,108,76,108,76,108,76,108,78,110,78,110,78,110,110,78,110,79,111,79,111,79,111,79,111,82,114,82,114,82,114,83,115,83,115,83,115,83,115,84,116,84,116,84,116,85,117,85,117,85,117,85,117,85,117,85,117,87,119,89,121,89,90,122,90,122,90,122,115],rt={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},rr={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},rn="[aeiouy]",ro="[^aeiou][^aeiouy]*",ra=rn+"[aeiou]*",rl="^("+ro+")?"+ra+ro,ri="^("+ro+")?"+ra+ro+"("+ra+")?$",rs="^("+ro+")?"+ra+ro+ra+ro,ru="^("+ro+")?"+rn;function rc(e){let t,r,n,o,a,l;if(e.length<3)return e;let i=e.substring(0,1);if("y"==i&&(e=i.toUpperCase()+e.substring(1)),o=/^(.+?)([^s])s$/,(n=/^(.+?)(ss|i)es$/).test(e)?e=e.replace(n,"$1$2"):o.test(e)&&(e=e.replace(o,"$1$2")),o=/^(.+?)(ed|ing)$/,(n=/^(.+?)eed$/).test(e)){let t=n.exec(e);(n=new RegExp(rl)).test(t[1])&&(n=/.$/,e=e.replace(n,""))}else o.test(e)&&(t=o.exec(e)[1],(o=new RegExp(ru)).test(t)&&(e=t,o=/(at|bl|iz)$/,a=RegExp("([^aeiouylsz])\\1$"),l=RegExp("^"+ro+rn+"[^aeiouwxy]$"),o.test(e)?e+="e":a.test(e)?(n=/.$/,e=e.replace(n,"")):l.test(e)&&(e+="e")));if((n=/^(.+?)y$/).test(e)){let r=n.exec(e);t=r?.[1],n=new RegExp(ru),t&&n.test(t)&&(e=t+"i")}if((n=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/).test(e)){let o=n.exec(e);t=o?.[1],r=o?.[2],n=new RegExp(rl),t&&n.test(t)&&(e=t+rt[r])}if((n=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/).test(e)){let o=n.exec(e);t=o?.[1],r=o?.[2],n=new RegExp(rl),t&&n.test(t)&&(e=t+rr[r])}if(o=/^(.+?)(s|t)(ion)$/,(n=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/).test(e)){let r=n.exec(e);t=r?.[1],n=new RegExp(rs),t&&n.test(t)&&(e=t)}else if(o.test(e)){let r=o.exec(e);t=r?.[1]??""+r?.[2]??"",(o=new RegExp(rs)).test(t)&&(e=t)}if((n=/^(.+?)e$/).test(e)){let r=n.exec(e);t=r?.[1],n=new RegExp(rs),o=new RegExp(ri),a=RegExp("^"+ro+rn+"[^aeiouwxy]$"),t&&(n.test(t)||o.test(t)&&!a.test(t))&&(e=t)}return n=/ll$/,o=new RegExp(rs),n.test(e)&&o.test(e)&&(n=/.$/,e=e.replace(n,"")),"y"==i&&(e=i.toLowerCase()+e.substring(1)),e}function rd(e,t,r=!0){let n=`${this.language}:${e}:${t}`;return r&&this.normalizationCache.has(n)?this.normalizationCache.get(n):this.stopWords?.includes(t)?(r&&this.normalizationCache.set(n,""),""):(this.stemmer&&!this.stemmerSkipProperties.has(e)&&(t=this.stemmer(t)),t=function(e){let t=[];for(let n=0;n<e.length;n++){var r;t[n]=(r=e.charCodeAt(n))<192||r>383?r:re[r-192]||r}return String.fromCharCode(...t)}(t),r&&this.normalizationCache.set(n,t),t)}function rf(e,t,r,n=!0){let o;if(t&&t!==this.language)throw e4("LANGUAGE_NOT_SUPPORTED",t);if("string"!=typeof e)return[e];let a=this.normalizeToken.bind(this,r??"");if(r&&this.tokenizeSkipProperties.has(r))o=[a(e,n)];else{let t=eC[this.language];o=e.toLowerCase().split(t).map(e=>
10a(e,n)).filter(Boolean)}let l=function(e){for(;""===e[e.length-1];)e.pop();for(;""===e[0];)e.shift();return e}(o);return this.allowDuplicates?l:Array.from(new Set(l))}function rh(e={}){let t,r;if(e.language){if(!ej.includes(e.language))throw e4("LANGUAGE_NOT_SUPPORTED",e.language)}else e.language="english";if(e.stemming||e.stemmer&&!("stemming"in e))if(e.stemmer){if("function"!=typeof e.stemmer)throw e4("INVALID_STEMMER_FUNCTION_TYPE");t=e.stemmer}else if("english"===e.language)t=rc;else throw e4("MISSING_STEMMER",e.language);if(!1!==e.stopWords){if(r=[],Array.isArray(e.stopWords))r=e.stopWords;else if("function"==typeof e.stopWords)r=e.stopWords(r);else if(e.stopWords)throw e4("CUSTOM_STOP_WORDS_MUST_BE_FUNCTION_OR_ARRAY");if(!Array.isArray(r))throw e4("CUSTOM_STOP_WORDS_MUST_BE_FUNCTION_OR_ARRAY");for(let e of r)if("string"!=typeof e)throw e4("CUSTOM_STOP_WORDS_MUST_BE_FUNCTION_OR_ARRAY")}let n={tokenize:rf,language:e.language,stemmer:t,stemmerSkipProperties:new Set(e.stemmerSkipProperties?[e.stemmerSkipProperties].flat():[]),tokenizeSkipProperties:new Set(e.tokenizeSkipProperties?[e.tokenizeSkipProperties].flat():[]),stopWords:r,allowDuplicates:!!e.allowDuplicates,normalizeToken:rd,normalizationCache:new Map};return n.tokenize=rf.bind(n),n.normalizeToken=rd,n}function rp(e){return{sharedInternalDocumentStore:e,rules:new Map}}function rm(e,t){if(e.rules.has(t.id))throw Error(`PINNING_RULE_ALREADY_EXISTS: A pinning rule with id "${t.id}" already exists. Use updateRule to modify it.`);e.rules.set(t.id,t)}function rg(e,t){if(!e.rules.has(t.id))throw Error(`PINNING_RULE_NOT_FOUND: Cannot update pinning rule with id "${t.id}" because it does not exist. Use addRule to create it.`);e.rules.set(t.id,t)}function ry(e,t){return e.rules.delete(t)}function rb(e,t){return e.rules.get(t)}function r_(e){return Array.from(e.rules.values())}function rv(e,t){if(!t)return[];let r=[];for(let n of e.rules.values())(function(e,t){return!!e&&t.conditions.every(t=>(function(e,t){let r=e.toLowerCase().trim(),n=t.pattern.toLowerCase().trim();switch(t.anchoring){case"is":return r===n;case"starts_with":return r.startsWith(n);case"contains":return r.includes(n);default:return!1}})(e,t))})(t,n)&&r.push(n);return r}function rx(e,t){return{sharedInternalDocumentStore:e,rules:new Map(t?.rules??[])}}function rS(e){return{rules:Array.from(e.rules.entries())}}function rw(e,t,r,n,o){let a=e.validateSchema(t,e.schema);if(a)throw e4("SCHEMA_VALIDATION_FAILURE",a);return eQ(e.beforeInsert)||eQ(e.afterInsert)||eQ(e.index.beforeInsert)||eQ(e.index.insert)||eQ(e.index.afterInsert)?rN(e,t,r,n,o):function(e,t,r,n,o){let{index:a,docs:l}=e.data,i=e.getDocumentIndexId(t);if("string"!=typeof i)throw e4("DOCUMENT_ID_MUST_BE_STRING",typeof i);let s=ti(e.internalDocumentIDStore,i);if(n||tx(e.beforeInsert,e,i,t),!e.documentsStore.store(l,i,s,t))throw e4("DOCUMENT_ALREADY_EXISTS",i);let u=e.documentsStore.count(l),c=e.index.getSearchableProperties(a),d=e.index.getSearchablePropertiesWithTypes(a),f=e.getDocumentProperties(t,c);for(let[e,t]of Object.entries(f))void 0!==t&&rE(typeof t,d[e],e,t);return function(e,t,r,n,o,a,l,i){for(let l of r){let r=n[l];if(void 0===r)continue;let s=e.index.getSearchablePropertiesWithTypes(e.data.index)[l],u=ti(e.internalDocumentIDStore,t);e.index.beforeInsert?.(e.data.index,l,t,r,s,a,e.tokenizer,o),e.index.insert(e.index,e.data.index,l,t,u,r,s,a,e.tokenizer,o,i),e.index.afterInsert?.(e.data.index,l,t,r,s,a,e.tokenizer,o)}let s=e.sorter.getSortableProperties(e.data.sorting),u=e.getDocumentProperties(l,s);for(let r of s){let n=u[r];if(void 0===n)continue;let o=e.sorter.getSortablePropertiesWithTypes(e.data.sorting)[r];e.sorter.insert(e.data.sorting,r,t,n,o,a)}}(e,i,c,f,u,r,t,o),n||tx(e.afterInsert,e,i,t),i}(e,t,r,n,o)}let rI=new Set(["enum","enum[]"]),rT=new Set(["string","number"]);async function rN(e,t,r,n,o){let{index:a,docs:l}=e.data,i=e.getDocumentIndexId(t);if("string"!=typeof i)throw e4("DOCUMENT_ID_MUST_BE_STRING",typeof i);let s=ti(e.internalDocumentIDStore,i);if(n||await tx(e.beforeInsert,e,i,t),!e.documentsStore.store(l,i,s,t))throw e4("DOCUMENT_ALREADY_EXISTS",i);let u=e.documentsStore.count(l),c=e.index.getSearchableProperties(a),d=e.index.getSearchablePropertiesWithTypes(a),f=e.getDocumentProperties(t,c);for(let[e,t]of Object.entries(f))void 0!==t&&rE(typeof t,d[e],e,t);return await rO(e,i,c,f,u,r,t,o),n||await tx(e.afterInsert,e,i,t),i}function rE(e,t,r,n){if(!("geopoint"===t&&"object"==typeof n&&"number"==typeof n.lon&&"number"==typeof n.lat||tr(t)&&Array.isArray(n)||tn(t)&&Array.isArray(n))&&!(rI.has(t)&&rT.has(e))&&e!==t)throw e4("INVALID_DOCUMENT_PROPERTY",r,t,e)}async function rO(e,t,r,n,o,a,l,i){for(let l of r){let r=n[l];if(void 0===r)continue;let s=e.index.getSearchablePropertiesWithTypes(e.data.index)[l];await e.index.beforeInsert?.(e.data.index,l,t,r,s,a,e.tokenizer,o);let u=e.internalDocumentIDStore.idToInternalId.get(t);await e.index.insert(e.index,e.data.index,l,t,u,r,s,a,e.tokenizer,o,i),await e.index.afterInsert?.(e.data.index,l,t,r,s,a,e.tokenizer,o)}let s=e.sorter.getSortableProperties(e.data.sorting),u=e.getDocumentProperties(l,s
10);for(let r of s){let n=u[r];if(void 0===n)continue;let o=e.sorter.getSortablePropertiesWithTypes(e.data.sorting)[r];e.sorter.insert(e.data.sorting,r,t,n,o,a)}}async function rA(e,t,r=1e3,n,o,a=0){let l=[],i=async a=>{let i=Math.min(a+r,t.length),s=t.slice(a,i);for(let t of s){let r={avlRebalanceThreshold:s.length},a=await rw(e,t,n,o,r);l.push(a)}return i},s=async()=>{let e=0;for(;e<t.length;){let t=Date.now();if(e=await i(e),a>0){let e=a-(Date.now()-t);e>0&&e2(e)}}};return await s(),o||await tS(e.afterInsertMultiple,e,t),l}let rR="fulltext";function rk(e,t){return e[1]-t[1]}function rD(e,t){return t[1]-e[1]}function rC(e,t,r){let n={},o=t.map(([e])=>e),a=e.documentsStore.getMultiple(e.data.docs,o),l=Object.keys(r),i=e.index.getSearchablePropertiesWithTypes(e.data.index);for(let e of l){let t;if("number"===i[e]){let{ranges:n}=r[e],o=n.length,a=Array.from({length:o});for(let e=0;e<o;e++){let t=n[e];a[e]=[`${t.from}-${t.to}`,0]}t=Object.fromEntries(a)}n[e]={count:0,values:t??{}}}let s=a.length;for(let e=0;e<s;e++){let t=a[e];for(let e of l){let o=e.includes(".")?eY(t,e):t[e],a=i[e],l=n[e].values;switch(a){case"number":rj(r[e].ranges,l)(o);break;case"number[]":{let t=new Set,n=rj(r[e].ranges,l,t);for(let e of o)n(e);break}case"boolean":case"enum":case"string":rP(l,a)(o);break;case"boolean[]":case"enum[]":case"string[]":{let e=rP(l,"boolean[]"===a?"boolean":"string",new Set);for(let t of o)e(t);break}default:throw e4("FACET_NOT_SUPPORTED",a)}}}for(let e of l){let t=n[e];if(t.count=Object.keys(t.values).length,"string"===i[e]){let n=r[e],o=function(e="desc"){return"asc"===e.toLowerCase()?rk:rD}(n.sort);t.values=Object.fromEntries(Object.entries(t.values).sort(o).slice(n.offset??0,n.limit??10))}}return n}function rj(e,t,r){return n=>{for(let o of e){let e=`${o.from}-${o.to}`;!r?.has(e)&&n>=o.from&&n<=o.to&&(void 0===t[e]?t[e]=1:(t[e]++,r?.add(e)))}}}function rP(e,t,r){let n="boolean"===t?"false":"";return t=>{let o=t?.toString()??n;r?.has(o)||(e[o]=(e[o]??0)+1,r?.add(o))}}let rM={reducer:(e,t,r,n)=>(t[n]=r,t),getInitialValue:e=>Array.from({length:e})},rL=["string","number","boolean"];function rU(e,t,r){let n=r.properties,o=n.length,a=e.index.getSearchablePropertiesWithTypes(e.data.index);for(let e=0;e<o;e++){let t=n[e];if(void 0===a[t])throw e4("UNKNOWN_GROUP_BY_PROPERTY",t);if(!rL.includes(a[t]))throw e4("INVALID_GROUP_BY_PROPERTY",t,rL.join(", "),a[t])}let l=t.map(([t])=>ts(e.internalDocumentIDStore,t)),i=e.documentsStore.getMultiple(e.data.docs,l),s=i.length,u=r.maxResult||Number.MAX_SAFE_INTEGER,c=[],d={};for(let e=0;e<o;e++){let t=n[e],r={property:t,perValue:{}},o=new Set;for(let e=0;e<s;e++){let n=eY(i[e],t);if(void 0===n)continue;let a="boolean"!=typeof n?n:""+n,l=r.perValue[a]??{indexes:[],count:0};l.count>=u||(l.indexes.push(e),l.count++,r.perValue[a]=l,o.add(n))}c.push(Array.from(o)),d[t]=r}let f=function e(t,r=0){if(r+1===t.length)return t[r].map(e=>[e]);let n=t[r],o=e(t,r+1),a=[];for(let e of n)for(let t of o){let r=[e];eW(r,t),a.push(r)}return a}(c),h=f.length,p=[];for(let e=0;e<h;e++){let t=f[e],r=t.length,o={values:[],indexes:[]},a=[];for(let e=0;e<r;e++){let r=t[e],l=n[e];a.push(d[l].perValue["boolean"!=typeof r?r:""+r].indexes),o.values.push(r)}o.indexes=(function(e){if(0===e.length)return[];if(1===e.length)return e[0];for(let t=1;t<e.length;t++)if(e[t].length<e[0].length){let r=e[0];e[0]=e[t],e[t]=r}let t=new Map;for(let r of e[0])t.set(r,1);for(let r=1;r<e.length;r++){let n=0;for(let o of e[r]){let e=t.get(o);e===r&&(t.set(o,e+1),n++)}if(0===n)return[]}return e[0].filter(r=>{let n=t.get(r);return void 0!==n&&t.set(r,0),n===e.length})})(a).sort((e,t)=>e-t),0!==o.indexes.length&&p.push(o)}let m=p.length,g=Array.from({length:m});for(let e=0;e<m;e++){let n=p[e],o=r.reduce||rM,a=n.indexes.map(e=>({id:l[e],score:t[e][1],document:i[e]})),s=o.reducer.bind(null,n.values),u=o.getInitialValue(n.indexes.length),c=a.reduce(s,u);g[e]={values:n.values,result:c}}return g}function rB(e,t,r,n){let o=rv(t,n);if(0===o.length)return r;let a=o.flatMap(e=>e.consequence.promote);a.sort((e,t)=>e.position-t.position);let l=new Set,i=new Map,s=new Set;for(let t of a){let r=ti(e.internalDocumentIDStore,t.doc_id);if(void 0!==r){if(i.has(r)){let e=i.get(r);t.position<e&&i.set(r,t.position);continue}s.has(t.position)||(l.add(r),i.set(r,t.position),s.add(t.position))}}if(0===i.size)return r;let u=r.filter(([e])=>!l.has(e)),c=[];for(let[t,n]of i.entries())r.find(([e])=>e===t)?c.push([t,1e6-n]):e.documentsStore.get(e.data.docs,t)&&c.push([t,0]);c.sort((e,t)=>
10(i.get(e[0])??1/0)-(i.get(t[0])??1/0));let d=[],f=new Map;for(let e of c){let t=i.get(e[0]);f.set(t,e)}let h=0,p=0;for(;p<u.length+c.length;)if(f.has(p))d.push(f.get(p)),p++;else if(h<u.length)d.push(u[h]),h++,p++;else break;for(let[e,t]of f.entries())e>=d.length&&d.push(t);return d}function rz(e,t,r){let n,o,{term:a,properties:l}=t,i=e.data.index,s=e.caches.propertiesToSearch;if(!s){let t=e.index.getSearchablePropertiesWithTypes(i);s=(s=e.index.getSearchableProperties(i)).filter(e=>t[e].startsWith("string")),e.caches.propertiesToSearch=s}if(l&&"*"!==l){for(let e of l)if(!s.includes(e))throw e4("UNKNOWN_INDEX",e,s.join(", "));s=s.filter(e=>l.includes(e))}let u=Object.keys(t.where??{}).length>0;u&&(n=e.index.searchByWhereClause(i,e.tokenizer,t.where,r));let c=void 0!==t.threshold&&null!==t.threshold?t.threshold:1;if(a||l){let l,u=e.documentsStore.count(e.data.docs);if(o=e.index.search(i,a||"",e.tokenizer,r,s,t.exact||!1,t.tolerance||0,t.boost||{},((l=t.relevance??{}).k=l.k??rW,l.b=l.b??rG,l.d=l.d??rF,l),u,n,c),t.exact&&a){let t=a.trim().split(/\s+/);o=o.filter(([r])=>{let n=e.documentsStore.get(e.data.docs,r);if(!n)return!1;for(let e of s){let r=function(e,t){let r=t.split("."),n=e;for(let e of r)if(!n||"object"!=typeof n||!(e in n))return;else n=n[e];return n}(n,e);if("string"==typeof r&&t.every(e=>RegExp(`\\b${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(r)))return!0}return!1})}}else if(u){let e=function(e,t){let r,n=function(e,t){let r=Object.keys(e);if(1!==r.length)return{isGeoOnly:!1};let n=r[0],o=e[n];if(void 0===t.indexes[n])return{isGeoOnly:!1};let{type:a}=t.indexes[n];return"BKD"===a&&o&&("radius"in o||"polygon"in o)?{isGeoOnly:!0,geoProperty:n,geoOperation:o}:{isGeoOnly:!1}}(t,e);if(!n.isGeoOnly||!n.geoProperty||!n.geoOperation)return null;let{node:o}=e.indexes[n.geoProperty],a=n.geoOperation;if("radius"in a){let{value:e,coordinates:t,unit:n="m",inside:l=!0,highPrecision:i=!1}=a.radius,s=eq(e,n);return tX(r=o.searchByRadius(t,s,l,"asc",i),t,i)}if("polygon"in a){let{coordinates:e,inside:t=!0,highPrecision:n=!1}=a.polygon;return tX(r=o.searchByPolygon(e,t,"asc",n),tD.calculatePolygonCentroid(e),n)}return null}(i,t.where);o=e||(n?Array.from(n):[]).map(e=>[+e,0])}else o=Object.keys(e.documentsStore.getAll(e.data.docs)).map(e=>[+e,0]);return o}let rW=1.2,rG=.75,rF=.5;function rV(e,t,r){let n,o=t.vector;if(o&&(!("value"in o)||!("property"in o)))throw e4("INVALID_VECTOR_INPUT",Object.keys(o).join(", "));let a=e.data.index.vectorIndexes[o.property];if(!a)throw e4("UNKNOWN_VECTOR_PROPERTY",o.property);let l=a.node.size;if(o?.value.length!==l){if(o?.property===void 0||o?.value.length===void 0)throw e4("INVALID_INPUT_VECTOR","undefined",l,"undefined");throw e4("INVALID_INPUT_VECTOR",o.property,l,o.value.length)}let i=e.data.index;return Object.keys(t.where??{}).length>0&&(n=e.index.searchByWhereClause(i,e.tokenizer,t.where,r)),a.node.find(o.value,t.similarity??.8,n)}function r$(e){return e[1]}function rK(e,t,r,n){let o=e.data.docs,a=Array.from({length:n}),l=new Set;for(let i=r;i<n+r;i++){let r=t[i];if(void 0===r)break;let[n,s]=r;if(!l.has(n)){let t=e.documentsStore.get(o,n);a[i]={id:ts(e.internalDocumentIDStore,n),score:s,document:t},l.add(n)}}return a}var rH=e.i(467809);let rJ=async e=>{for(let r of(await Promise.all(Object.entries(rH.ORAMA_DB_URLS).map(async([e,t])=>{let r=await fetch(t);var n=await r.json();let o={};for(let[t,r]of Object.entries(n.docs.docs))o[t]={...r,href:`${e}${r.href}`};return{...n,docs:{...n.docs,docs:o}}})))){var t;await (t=Object.values(r.docs.docs),eQ(e.afterInsertMultiple)||eQ(e.beforeInsertMultiple)||eQ(e.index.beforeInsert)||eQ(e.index.insert)||eQ(e.index.afterInsert)?rA(e,t,void 0,void 0,void 0,void 0):function(e,t,r=1e3,n,o,a=0){let l=[],i=0,s=Date.now();for(;function(){let a=t.slice(i*r,(i+1)*r);if(0===a.length)return!1;for(let t of a){let r=rw(e,t,n,o,{avlRebalanceThreshold:a.length});l.push(r)}return i++,!0}();)if(a>0){let e=Date.now()-s;if(e>=a){let t=a-e%a;t>0&&e2(t)}}return o||tS(e.afterInsertMultiple,e,t),l}(e,t,void 0,void 0,void 0,void 0))}},rY=()=>{let e,n,o,a,l,i,s,u=(0,r.c)(17),d=(0,_.useTranslations)(),f=(s=(0,c.useRef)(null),(0,c.useMemo)(()=>{let e=function({schema:e,sort:t,language:r,components:n,id:o,plugins:a}){for(let t of(n||(n={}),a??[])){if(!("getComponents"in t)||"function"!=typeof t.getComponents)continue;let r=t.getComponents(e);for(let e of Object.keys(r))if(n[e])throw e4("PLUGIN_COMPONENT_CONFLICT",e,t.name);n={...n,...r}}o||(o=e$());let l=n.tokenizer,i=n.index,s=n.documentsStore,u=n.sorter,c=n.pinning;if(l=l?l.tokenize?l:rh(l):rh({language:r??"english"}),n.tokenizer&&r)throw e4("NO_LANGUAGE_WITH_CUSTOM_TOKENIZER");let d={idToInternalId:new Map,internalIdToId:[],save:ta,load:tl};i||={create:function e(t,r,n,o,a=""){for(let[l,i]of(o||(o={sharedInternalDocumentStore:r,indexes:{},vectorIndexes:{},searchableProperties:[],searchablePropertiesWithTypes:{},frequencies:{},tokenOccurrences:{},avgFieldLength:{},fieldLengths:{}}),Object.entries(n))){let n=`${a}${a?".":""}${l}`;if("object"==typeof i&&!Array.isArray(i)){e(t,r,i,o,n);continue}
10if(tr(i))o.searchableProperties.push(n),o.searchablePropertiesWithTypes[n]=i,o.vectorIndexes[n]={type:"Vector",node:new tj(to(i)),isArray:!1};else{let e=/\[/.test(i);switch(i){case"boolean":case"boolean[]":o.indexes[n]={type:"Bool",node:new tC,isArray:e};break;case"number":case"number[]":o.indexes[n]={type:"AVL",node:new tN(0,[]),isArray:e};break;case"string":case"string[]":o.indexes[n]={type:"Radix",node:new tR,isArray:e},o.avgFieldLength[n]=0,o.frequencies[n]={},o.tokenOccurrences[n]={},o.fieldLengths[n]={};break;case"enum":case"enum[]":o.indexes[n]={type:"Flat",node:new tE,isArray:e};break;case"geopoint":o.indexes[n]={type:"BKD",node:new tD,isArray:e};break;default:throw e4("INVALID_SCHEMA_TYPE",Array.isArray(i)?"array":i,n)}o.searchableProperties.push(n),o.searchablePropertiesWithTypes[n]=i}}return o},insert:tz,remove:tG,insertDocumentScoreParameters:tM,insertTokenScoreParameters:tL,removeDocumentScoreParameters:tU,removeTokenScoreParameters:tB,calculateResultScores:tF,search:tV,searchByWhereClause:function e(t,r,n,o){if("and"in n&&n.and&&Array.isArray(n.and)){let a=n.and;return 0===a.length?new Set:e1(...a.map(n=>e(t,r,n,o)))}if("or"in n&&n.or&&Array.isArray(n.or)){let a=n.or;return 0===a.length?new Set:a.map(n=>e(t,r,n,o)).reduce((e,t)=>e3(e,t),new Set)}if("not"in n&&n.not){let a=n.not,l=new Set,i=t.sharedInternalDocumentStore;for(let e=1;e<=i.internalIdToId.length;e++)l.add(e);let s=e(t,r,a,o),u=new Set;for(let e of l)s.has(e)||u.add(e);return u}let a=Object.keys(n),l=a.reduce((e,t)=>({[t]:new Set,...e}),{});for(let e of a){let a=n[e];if(void 0===t.indexes[e])throw e4("UNKNOWN_FILTER_PROPERTY",e);let{node:i,type:s,isArray:u}=t.indexes[e];if("Bool"===s){let t=a?i.true:i.false;l[e]=e3(l[e],t);continue}if("BKD"===s){let t;if("radius"in a)t="radius";else if("polygon"in a)t="polygon";else throw Error(`Invalid operation ${a}`);if("radius"===t){let{value:r,coordinates:n,unit:o="m",inside:s=!0,highPrecision:u=!1}=a[t],c=eq(r,o),d=i.searchByRadius(n,c,s,void 0,u);l[e]=tY(l[e],d)}else{let{coordinates:r,inside:n=!0,highPrecision:o=!1}=a[t],s=i.searchByPolygon(r,n,void 0,o);l[e]=tY(l[e],s)}continue}if("Radix"===s&&("string"==typeof a||Array.isArray(a))){for(let t of[a].flat())for(let n of r.tokenize(t,o,e)){let t=i.find({term:n,exact:!0});l[e]=function(e,t){e||(e=new Set);let r=Object.keys(t),n=r.length;for(let o=0;o<n;o++){let n=t[r[o]],a=n.length;for(let t=0;t<a;t++)e.add(n[t])}return e}(l[e],t)}continue}let c=Object.keys(a);if(c.length>1)throw e4("INVALID_FILTER_OPERATION",c.length);if("Flat"===s){let t=new Set(u?i.filterArr(a):i.filter(a));l[e]=e3(l[e],t);continue}if("AVL"===s){let t,r=c[0],n=a[r];switch(r){case"gt":t=i.greaterThan(n,!1);break;case"gte":t=i.greaterThan(n,!0);break;case"lt":t=i.lessThan(n,!1);break;case"lte":t=i.lessThan(n,!0);break;case"eq":t=i.find(n)??new Set;break;case"between":{let[e,r]=n;t=i.rangeSearch(e,r);break}default:throw e4("INVALID_FILTER_OPERATION",r)}l[e]=e3(l[e],t)}}return e1(...Object.values(l))},getSearchableProperties:t$,getSearchablePropertiesWithTypes:tK,load:tH,save:tJ},u||={create:tq,insert:tZ,remove:t2,save:t9,load:t8,sortBy:t7,getSortableProperties:t6,getSortablePropertiesWithTypes:t4},s||={create:tu,get:tc,getMultiple:td,getAll:tf,store:th,remove:tp,count:tm,load:tg,save:ty},c||={create:rp,addRule:rm,updateRule:rg,removeRule:ry,getRule:rb,getAllRules:r_,getMatchingRules:rv,load:rx,save:rS};var f=n;let h={formatElapsedTime:e8,getDocumentIndexId:e9,getDocumentProperties:eJ,validateSchema:function e(t,r){for(let[n,o]of Object.entries(r)){let r=t[n];if(void 0!==r&&("geopoint"!==o||"object"!=typeof r||"number"!=typeof r.lon||"number"!=typeof r.lat)&&("enum"!==o||"string"!=typeof r&&"number"!=typeof r)){if("enum[]"===o&&Array.isArray(r)){let e=r.length;for(let t=0;t<e;t++)if("string"!=typeof r[t]&&"number"!=typeof r[t])return n+"."+t;continue}if(tr(o)){let e=to(o);if(!Array.isArray(r)||r.length!==e)throw e4("INVALID_INPUT_VECTOR",n,e,r.length);continue}if(tn(o)){if(!Array.isArray(r))return n;let e=tt[o],t=r.length;for(let o=0;o<t;o++)if(typeof r[o]!==e)return n+"."+o;continue}if("object"==typeof o){if(!r||"object"!=typeof r)return n;let t=e(r,o);if(t)return n+"."+t;continue}if(typeof r!==o)return n}}}};for(let e of tv)if(f[e]){if("function"!=typeof f[e])throw e4("COMPONENT_MUST_BE_FUNCTION",e)}else f[e]=h[e];
10for(let e of Object.keys(f))if(!t_.includes(e)&&!tv.includes(e))throw e4("UNSUPPORTED_COMPONENT",e);let{getDocumentProperties:p,getDocumentIndexId:m,validateSchema:g,formatElapsedTime:y}=n,b={data:{},caches:{},schema:e,tokenizer:l,index:i,sorter:u,documentsStore:s,pinning:c,internalDocumentIDStore:d,getDocumentProperties:p,getDocumentIndexId:m,validateSchema:g,beforeInsert:[],afterInsert:[],beforeRemove:[],afterRemove:[],beforeUpdate:[],afterUpdate:[],beforeUpsert:[],afterUpsert:[],beforeSearch:[],afterSearch:[],beforeInsertMultiple:[],afterInsertMultiple:[],beforeRemoveMultiple:[],afterRemoveMultiple:[],beforeUpdateMultiple:[],afterUpdateMultiple:[],beforeUpsertMultiple:[],afterUpsertMultiple:[],afterCreate:[],formatElapsedTime:y,id:o,plugins:a,version:"{{VERSION}}"};for(let r of(b.data={index:b.index.create(b,d,e),docs:b.documentsStore.create(b,d),sorting:b.sorter.create(b,d,e,t),pinning:b.pinning.create(d)},tb))b[r]=(b[r]??[]).concat(function(e,t){let r=[],n=e.plugins?.length;if(!n)return r;for(let o=0;o<n;o++)try{let n=e.plugins[o];"function"==typeof n[t]&&r.push(n[t])}catch(e){throw console.error("Caught error in getAllPluginsByHook:",e),e4("PLUGIN_CRASHED")}return r}(b,r));let _=b.afterCreate;return _&&function(e,t){if(e.some(eQ))return(async()=>{for(let r of e)await r(t)})();for(let r of e)r(t)}(_,b),b}({schema:{title:"string",description:"string",href:"string",siteSection:"string"}});return e.search=async t=>(await (s.current??=rJ(e)),function(e,t){let r=t.mode??rR;if(r===rR){var n=void 0;let r=eV();function o(){let o,a=Object.keys(e.data.index.vectorIndexes),l=t.facets&&Object.keys(t.facets).length>0,{limit:i=10,offset:s=0,distinctOn:u,includeVectors:c=!1}=t,d=!0===t.preflight,f=rz(e,t,n);if(t.sortBy)if("function"==typeof t.sortBy){let r=f.map(([e])=>e),n=e.documentsStore.getMultiple(e.data.docs,r).map((e,t)=>[f[t][0],f[t][1],e]);n.sort(t.sortBy),f=n.map(([e,t])=>[e,t])}else f=e.sorter.sortBy(e.data.sorting,f,t.sortBy).map(([t,r])=>[ti(e.internalDocumentIDStore,t),r]);else f=f.sort(eH);f=rB(e,e.data.pinning,f,t.term),d||(o=u?function(e,t,r,n,o){let a=e.data.docs,l=new Map,i=[],s=new Set,u=t.length,c=0;for(let d=0;d<u;d++){let u=t[d];if(void 0===u)continue;let[f,h]=u;if(s.has(f))continue;let p=e.documentsStore.get(a,f),m=eY(p,o);if(!(void 0===m||l.has(m))&&(l.set(m,!0),!(++c<=r)&&(i.push({id:ts(e.internalDocumentIDStore,f),score:h,document:p}),s.add(f),c>=r+n)))break}return i}(e,f,s,i,u):rK(e,f,s,i));let h={elapsed:{formatted:"",raw:0},hits:[],count:f.length};return void 0!==o&&(h.hits=o.filter(Boolean),c||eZ(h,a)),l&&(h.facets=rC(e,f,t.facets)),t.groupBy&&(h.groups=rU(e,f,t.groupBy)),h.elapsed=e.formatElapsedTime(eV()-r),h}async function a(){e.beforeSearch&&await tI(e.beforeSearch,e,t,n);let r=o();return e.afterSearch&&await tw(e.afterSearch,e,t,n,r),r}return e.beforeSearch?.length||e.afterSearch?.length?a():o()}if("vector"===r)return function(e,t,r="english"){let n=eV();function o(){let o=rV(e,t,r).sort(eH);o=rB(e,e.data.pinning,o,void 0);let a=[];t.facets&&Object.keys(t.facets).length>0&&(a=rC(e,o,t.facets));let l=t.vector.property,i=t.includeVectors??!1,s=t.limit??10,u=t.offset??0,c=Array.from({length:s});for(let t=0;t<s;t++){let r=o[t+u];if(!r)break;let n=e.data.docs.docs[r[0]];if(n){i||(n[l]=null);let o={id:ts(e.internalDocumentIDStore,r[0]),score:r[1],document:n};c[t]=o}}let d=[];t.groupBy&&(d=rU(e,o,t.groupBy));let f=eV()-n;return{count:o.length,hits:c.filter(Boolean),elapsed:{raw:Number(f),formatted:eF(f)},...a?{facets:a}:{},...d?{groups:d}:{}}}async function a(){e.beforeSearch&&await tI(e.beforeSearch,e,t,r);let n=o();return e.afterSearch&&await tw(e.afterSearch,e,t,r,n),n}return e.beforeSearch?.length||e.afterSearch?.length?a():o()}(e,t);if("hybrid"===r){let r=eV();function l(){var n,o;let a,l,i,s,u,c,d=(o=rz(e,t,n=void 0),a=Math.max.apply(Math,o.map(r$)),l=o.map(([e,t])=>[e,t/a]),i=rV(e,t,n),s=t.hybridWeights,function(e,t,r,n){let o=Math.max.apply(Math,e.map(r$)),a=Math.max.apply(Math,t.map(r$)),{text:l,vector:i}=n&&n.text&&n.vector?n:{text:.5,vector:.5},s=new Map,u=e.length,c=(e,t)=>e*l+t*i;for(let t=0;t<u;t++){let[r,n]=e[t],a=c(n/o,0);s.set(r,a)}let d=t.length;for(let e=0;e<d;e++){let[r,n]=t[e],o=n/a,l=s.get(r)??0;s.set(r,l+c(0,o))}return[...s].sort((e,t)=>
10t[1]-e[1])}(l,i,t.term??"",s));d=rB(e,e.data.pinning,d,t.term),t.facets&&Object.keys(t.facets).length>0&&(u=rC(e,d,t.facets)),t.groupBy&&(c=rU(e,d,t.groupBy));let f=rK(e,d,t.offset??0,t.limit??10).filter(Boolean),h=eV(),p={count:d.length,elapsed:{raw:Number(h-r),formatted:eF(h-r)},hits:f,...u?{facets:u}:{},...c?{groups:c}:{}};return t.includeVectors||eZ(p,Object.keys(e.data.index.vectorIndexes)),p}async function i(){e.beforeSearch&&await tI(e.beforeSearch,e,t,void 0);let r=l();return e.afterSearch&&await tw(e.afterSearch,e,t,void 0,r),r}return e.beforeSearch?.length||e.afterSearch?.length?i():l()}throw e4("INVALID_SEARCH_MODE",r)}(e,t)),e},[]));return u[0]!==d?(e=d("components.search.keyboardShortcuts.close"),u[0]=d,u[1]=e):e=u[1],u[2]!==d?(n=d("components.search.keyboardShortcuts.navigate"),u[2]=d,u[3]=n):n=u[3],u[4]!==d?(o=d("components.search.noResultsFoundFor"),u[4]=d,u[5]=o):o=u[5],u[6]!==d?(a=d("components.search.searchPlaceholder"),u[6]=d,u[7]=a):a=u[7],u[8]!==d?(l=d("components.search.keyboardShortcuts.select"),u[8]=d,u[9]=l):l=u[9],u[10]!==f||u[11]!==e||u[12]!==n||u[13]!==o||u[14]!==a||u[15]!==l?(i=(0,t.jsx)(ek,{client:f,closeShortcutLabel:e,navigateShortcutLabel:n,noResultsTitle:o,placeholder:a,selectShortcutLabel:l}),u[10]=f,u[11]=e,u[12]=n,u[13]=o,u[14]=a,u[15]=l,u[16]=i):i=u[16],i};var rX=e.i(468720),rq=e.i(641729);let rZ=(0,y.default)(()=>e.A(766054),{loadableGenerated:{modules:[311766]},ssr:!1,loading:()=>(0,t.jsx)(o.default,{className:f.default.themeToggleSkeleton,loading:!0})});function rQ(e){let[,t]=e,{label:r,link:n,target:o,accent:a}=t;return{link:n,text:r,target:o,accent:a}}e.s(["default",0,()=>{let e,o,l,i,s,u,c,d,h,y,w,I,T,N,O,A,R,k,D=(0,r.c)(46),{navigationItems:C}=(0,rX.default)(),{theme:j,setTheme:P}=(0,v.useTheme)(),{replace:M}=(0,rq.useRouter)(),L=(0,rq.usePathname)(),U=(0,_.useTranslations)(),B=(0,b.useLocale)();D[0]!==L||D[1]!==M?(e=e=>M(L,{locale:e.code}),D[0]=L,D[1]=M,D[2]=e):e=D[2];let z=e;D[3]!==U?(o=U("components.common.skipToContent"),D[3]=U,D[4]=o):o=D[4],D[5]!==o?(l=(0,t.jsx)(a.default,{children:o}),D[5]=o,D[6]=l):l=D[6],D[7]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)(S.default,{section:"index"}),D[7]=i):i=D[7],D[8]!==C?(s=C.map(rQ),D[8]=C,D[9]=s):s=D[9],D[10]!==U?(u=U("components.containers.navBar.controls.toggle"),D[10]=U,D[11]=u):u=D[11],D[12]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(rY,{}),D[12]=c):c=D[12];let W=j??"system";return D[13]!==U?(d=U("components.header.buttons.theme"),D[13]=U,D[14]=d):d=D[14],D[15]!==U?(h=U("components.header.buttons.themeSystem"),D[15]=U,D[16]=h):h=D[16],D[17]!==U?(y=U("components.header.buttons.themeLightMode"),D[17]=U,D[18]=y):y=D[18],D[19]!==U?(w=U("components.header.buttons.themeDarkMode"),D[19]=U,D[20]=w):w=D[20],D[21]!==y||D[22]!==w||D[23]!==h?(I={system:h,light:y,dark:w},D[21]=y,D[22]=w,D[23]=h,D[24]=I):I=D[24],D[25]!==P||D[26]!==I||D[27]!==W||D[28]!==d?(T=(0,t.jsx)(rZ,{onChange:P,currentTheme:W,ariaLabel:d,themeLabels:I}),D[25]=P,D[26]=I,D[27]=W,D[28]=d,D[29]=T):T=D[29],D[30]!==U?(N=U("components.common.languageDropdown.label"),D[30]=U,D[31]=N):N=D[31],D[32]!==z||D[33]!==B||D[34]!==N?(O=(0,t.jsx)(n.default,{onChange:z,availableLanguages:g.availableLocales,currentLanguage:B,ariaLabel:N}),D[32]=z,D[33]=B,D[34]=N,D[35]=O):O=D[35],D[36]===Symbol.for("react.memo_cache_sentinel")?(A=(0,t.jsx)(x.default,{href:"https://github.com/nodejs/node","aria-label":"Node.js Github",className:f.default.ghIconWrapper,children:(0,t.jsx)(m.default,{})}),D[36]=A):A=D[36],D[37]!==L||D[38]!==T||D[39]!==O||D[40]!==s||D[41]!==u?(R=(0,t.jsxs)(p,{navItems:s,pathname:L,as:x.default,Logo:E,sidebarItemTogglerAriaLabel:u,children:[c,T,O,A]}),D[37]=L,D[38]=T,D[39]=O,D[40]=s,D[41]=u,D[42]=R):R=D[42],D[43]!==R||D[44]!==l?(k=(0,t.jsxs)("div",{children:[l,i,R]}),D[43]=R,D[44]=l,D[45]=k):k=D[45],k}],53705)},468720,e=>{"use strict";var t=e.i(426015),r=e.i(394749),n=e.i(72415);function o(e,t){return{...e,[t]:n.siteNavigation.sideNavigation[t]}}e.s(["default",0,()=>{let e,a,l,i=(0,t.c)(6),s=(0,r.useTranslations)();if(i[0]!==s){let t=(e,r)=>{let n=void 0===r?{}:r;return Object.entries(e).map(e=>{let[r,o]=e,{label:a,link:l,items:i,target:u,accent:c}=o;return[r,{target:u,accent:c,label:a?s.rich(a,n[r]||{}):"",link:l?Object.entries(n[r]||{}).reduce((e,[t,r])=>e.replace(`{${t}}`,"string"==typeof r?r:""),l):"",items:i?t(i,n):[]}]})};e=(e,r)=>t(e.reduce(o,{}),void 0===r?{}:r),a=t(n.siteNavigation.topNavigation),i[0]=s,i[1]=e,i[2]=a}else e=i[1],a=i[2];let u=a;return i[3]!==e||i[4]!==u?(l={getSideNavigation:e,navigationItems:u},i[3]=e,i[4]=u,i[5]=l):l=i[5],l}])},961860,(e,t,r)=>{"use strict";
10Object.defineProperty(r,"__esModule",{value:!0});var n={bindSnapshot:function(){return u},createAsyncLocalStorage:function(){return s},createSnapshot:function(){return c}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class l{disable(){throw a}getStore(){}run(){throw a}exit(){throw a}enterWith(){throw a}static bind(e){return e}}let i="u">typeof globalThis&&globalThis.AsyncLocalStorage;function s(){return i?new i:new l}function u(e){return i?i.bind(e):l.bind(e)}function c(){return i?i.snapshot():function(e,...t){return e(...t)}}},902918,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(961860).createAsyncLocalStorage)()},720378,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=e.r(902918)},773255,(e,t,r)=>{"use strict";function n(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return n}})},341609,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return o}});let n=e.r(329617);function o({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new n.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},478493,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return s}});let n=e.r(963317),o=e.r(701099),a=e.r(720378),l=e.r(773255),i=e.r(795728);function s({moduleIds:e}){if("u">typeof window)return null;let t=a.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let n=t.reactLoadableManifest;for(let t of e){if(!n[t])continue;let e=n[t].files;r.push(...e)}}if(0===r.length)return null;let u=(0,i.getAssetTokenQuery)();return(0,n.jsx)(n.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,l.encodeURIPath)(e)}${u}`;return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,o.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},665020,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return u}});let n=e.r(963317),o=e.r(388320),a=e.r(341609),l=e.r(478493);function i(e){return{default:e&&"default"in e?e.default:e}}let s={loader:()=>Promise.resolve(i(()=>null)),loading:null,ssr:!0},u=function(e){let t={...s,...e},r=(0,o.lazy)(()=>t.loader().then(i)),u=t.loading;function c(e){let i=u?(0,n.jsx)(u,{isLoading:!0,pastDelay:!0,error:null}):null,s=!t.ssr||!!t.loading,c=s?o.Suspense:o.Fragment,d=t.ssr?(0,n.jsxs)(n.Fragment,{children:["u"<typeof window?(0,n.jsx)(l.PreloadChunks,{moduleIds:t.modules}):null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(a.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(c,{...s?{fallback:i}:{},children:d})}return c.displayName="LoadableComponent",c}},271859,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return o}});let n=e.r(836437)._(e.r(665020));function o(e,t){let r={};"function"==typeof e&&(r.loader=e);let o={...r,...t};return(0,n.default)({...o,modules:o.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},399001,e=>{"use strict";var t=e.i(963317),r=e.i(264458);e.s(["default",0,({activeClassName:e="active",allowSubPath:n=!1,className:o,href:a="",pathname:l="/",active:i,as:s="a",...u})=>
10{let c=i??(n?l.startsWith(`/${a.toString().split("/")[1]}`):a.toString()===l),d=(0,r.default)(o,{[e]:c});return(0,t.jsx)(s,{className:d,href:a,...u})}])},249532,63824,114712,843931,86426,e=>{"use strict";var t=e.i(963317),r=e.i(388320);let n=r.forwardRef(function({title:e,titleId:t,...n},o){return r.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:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m10.5 21 5.25-11.25L21 21m-9-3h7.5M3 5.621a48.474 48.474 0 0 1 6-.371m0 0c1.12 0 2.233.038 3.334.114M9 5.25V3m3.334 2.364C11.176 10.658 7.69 15.08 3 17.502m9.334-12.138c.896.061 1.785.147 2.666.257m-4.589 8.495a18.023 18.023 0 0 1-3.827-5.802"}))});var o=e.i(245892),a=e.i(264458),l=e.i(158069);e.s(["default",0,({onChange:e=()=>{},currentLanguage:r,availableLanguages:i,ariaLabel:s})=>(0,t.jsxs)(o.Root,{children:[(0,t.jsx)(o.Trigger,{asChild:!0,children:(0,t.jsx)("button",{className:l.default.languageDropdown,"aria-label":s,children:(0,t.jsx)(n,{height:"20"})})}),(0,t.jsx)(o.Portal,{children:(0,t.jsx)(o.Content,{align:"start",className:l.default.dropDownContent,sideOffset:5,children:(0,t.jsx)("div",{children:i.map(({name:n,code:i,localName:s,hrefLang:u})=>(0,t.jsx)(o.Item,{"aria-label":n,onClick:()=>e({name:n,code:i,localName:s,hrefLang:u}),className:(0,a.default)(l.default.dropDownItem,{[l.default.currentDropDown]:i===r}),children:(0,t.jsx)("span",{lang:u,"aria-hidden":"true",children:s})},i))})})})]})],249532);var i=e.i(396037);e.s(["default",0,({children:e,href:r="#main",...n})=>(0,t.jsx)("a",{href:r,className:i.default.skipToContent,...n,children:e})],63824);let s=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M3 6.75A.75.75 0 0 1 3.75 6h16.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 6.75ZM3 12a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 12Zm0 5.25a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd"}))});e.s(["default",0,s],114712);let u=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))});e.s(["default",0,u],843931);var c=e.i(369100),d=Object.defineProperty,f=r.forwardRef(d(function(e,r){return(0,t.jsx)(c.Primitive.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})},"name",{value:"Label",configurable:!0}));e.s(["Root",0,f],86426)},158069,e=>{e.v({currentDropDown:"index-module__UfrQlW__currentDropDown",dropDownContent:"index-module__UfrQlW__dropDownContent",dropDownItem:"index-module__UfrQlW__dropDownItem",languageDropdown:"index-module__UfrQlW__languageDropdown"})},105359,e=>{e.v({nodejsLogo:"index-module__Ox_xaa__nodejsLogo"})},921237,e=>{e.v({searchInput:"index-module__A5I07G__searchInput",searchInputWrapper:"index-module__A5I07G__searchInputWrapper"})},511955,e=>{e.v({modalCloseButton:"index-module__KyipdG__modalCloseButton",modalContent:"index-module__KyipdG__modalContent",modalInner:"index-module__KyipdG__modalInner",modalWrapper:"index-module__KyipdG__modalWrapper",searchButton:"index-module__KyipdG__searchButton",searchButtonContent:"index-module__KyipdG__searchButtonContent",searchButtonShortcut:"index-module__KyipdG__searchButtonShortcut",searchboxContainer:"index-module__KyipdG__searchboxContainer"})},139137,e=>
10{e.v({noResultsWrapper:"index-module__2o3sAG__noResultsWrapper"})},1612,e=>{e.v({pulse:"index-module__P25ihG__pulse","pulse-dark":"index-module__P25ihG__pulse-dark",skeletonAnim:"index-module__P25ihG__skeletonAnim",skeletonAvatar:"index-module__P25ihG__skeletonAvatar",skeletonItem:"index-module__P25ihG__skeletonItem",skeletonLineLong:"index-module__P25ihG__skeletonLineLong",skeletonLineShort:"index-module__P25ihG__skeletonLineShort",skeletonText:"index-module__P25ihG__skeletonText",skeletonWrapper:"index-module__P25ihG__skeletonWrapper"})},939719,e=>{e.v({facetTabItem:"index-module__TyEkga__facetTabItem",facetTabItemCount:"index-module__TyEkga__facetTabItemCount",facetTabItemSelected:"index-module__TyEkga__facetTabItemSelected",facetTabsList:"index-module__TyEkga__facetTabsList",facetTabsWrapper:"index-module__TyEkga__facetTabsWrapper"})},889090,e=>{e.v({searchResultsGroup:"index-module__2bn1_G__searchResultsGroup",searchResultsGroupTitle:"index-module__2bn1_G__searchResultsGroupTitle",searchResultsGroupWrapper:"index-module__2bn1_G__searchResultsGroupWrapper",searchResultsWrapper:"index-module__2bn1_G__searchResultsWrapper"})},189116,e=>{e.v({hitDescription:"index-module__AQpDQa__hitDescription",link:"index-module__AQpDQa__link"})},156114,e=>{e.v({footer:"index-module__K40bAa__footer",searchResultsContainer:"index-module__K40bAa__searchResultsContainer",shortcutItem:"index-module__K40bAa__shortcutItem",shortcutKey:"index-module__K40bAa__shortcutKey",shortcutLabel:"index-module__K40bAa__shortcutLabel",shortcutWrapper:"index-module__K40bAa__shortcutWrapper"})},396037,e=>{e.v({skipToContent:"index-module__wVBY_W__skipToContent"})},836955,e=>{e.v({accent:"index-module__EJ526G__accent",active:"index-module__EJ526G__active",footer:"index-module__EJ526G__footer",icon:"index-module__EJ526G__icon",label:"index-module__EJ526G__label",nav:"index-module__EJ526G__nav",navItem:"index-module__EJ526G__navItem"})},893368,e=>{"use strict";var t=e.i(963317),r=e.i(337718),n=e.i(264458),o=e.i(399001),a=e.i(836955);e.s(["default",0,({href:e="",type:l="nav",children:i,className:s,target:u,accent:c,...d})=>(0,t.jsxs)(o.default,{target:u,href:e,className:(0,n.default)(a.default.navItem,a.default[l],{[a.default.accent]:c},s),activeClassName:a.default.active,allowSubPath:e.startsWith("/"),...d,children:[(0,t.jsx)("span",{className:a.default.label,children:i}),"_blank"===u&&(0,t.jsx)(r.ArrowUpRightIcon,{className:a.default.icon})]})])},710055,e=>{e.v({actionsWrapper:"index-module__HIXkoW__actionsWrapper",container:"index-module__HIXkoW__container",ghIconWrapper:"index-module__HIXkoW__ghIconWrapper",innerContainer:"index-module__HIXkoW__innerContainer",main:"index-module__HIXkoW__main",navInteractionIcon:"index-module__HIXkoW__navInteractionIcon",navItems:"index-module__HIXkoW__navItems",nodeIconAndMobileItemsToggler:"index-module__HIXkoW__nodeIconAndMobileItemsToggler",nodeIconWrapper:"index-module__HIXkoW__nodeIconWrapper",searchButtonSkeleton:"index-module__HIXkoW__searchButtonSkeleton",sidebarItemToggler:"index-module__HIXkoW__sidebarItemToggler",sidebarItemTogglerLabel:"index-module__HIXkoW__sidebarItemTogglerLabel",themeToggleSkeleton:"index-module__HIXkoW__themeToggleSkeleton"})},167275,e=>{"use strict";var t=e.i(963317);e.s(["default",0,e=>(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",...e,children:(0,t.jsx)("path",{d:"M10 1.25C5.16562 1.25 1.25 5.16562 1.25 10C1.25 13.8719 3.75469 17.1422 7.23281 18.3016C7.67031 18.3781 7.83437 18.1156 7.83437 17.8859C7.83437 17.6781 7.82344 16.9891 7.82344 16.2563C5.625 16.6609 5.05625 15.7203 4.88125 15.2281C4.78281 14.9766 4.35625 14.2 3.98438 13.9922C3.67812 13.8281 3.24063 13.4234 3.97344 13.4125C4.6625 13.4016 5.15469 14.0469 5.31875 14.3094C6.10625 15.6328 7.36406 15.2609 7.86719 15.0312C7.94375 14.4625 8.17344 14.0797 8.425 13.8609C6.47813 13.6422 4.44375 12.8875 4.44375 9.54062C4.44375 8.58906 4.78281 7.80156 5.34062 7.18906C5.25313 6.97031 4.94687 6.07344 5.42812 4.87031C5.42812 4.87031 6.16094 4.64063 7.83437 5.76719C8.53438 5.57031 9.27813 5.47187 10.0219 5.47187C10.7656 5.47187 11.5094 5.57031 12.2094 5.76719C13.8828 4.62969 14.6156 4.87031 14.6156 4.87031C15.0969 6.07344 14.7906 6.97031 14.7031 7.18906C15.2609 7.80156 15.6 8.57812 15.6 9.54062C15.6 12.8984 13.5547 13.6422 11.6078 13.8609C11.925 14.1344 12.1984 14.6594 12.1984 15.4797C12.1984 16.65 12.1875 17.5906 12.1875 17.8859C12.1875 18.1156 12.3516 18.3891 12.7891 18.3016C14.5261 17.7152 16.0355 16.5988 17.1048 15.1096C18.1741 13.6204 18.7495 11.8333 18.75 10C18.75 5.16562 14.8344 1.25 10 1.25Z"})})])}]);
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.