1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7927],{87927:function(e,t,r){r.d(t,{Oi:function(){return c},v1:function(){return m}});var l=r(99843),n=r(43486),u=r(44065),i=r(75271);function s(e,t,r){try{return e(t)}catch(e){return r?(0,n.i)(25,t,e,r):(0,n.i)(24,t,e),null}}function a(e){function t(t){if(void 0===t)return null;let r="";if(Array.isArray(t)){if(void 0===t[0])return null;r=t[0]}return"string"==typeof t&&(r=t),s(e.parse,r)}return{type:"single",eq:(e,t)=>e===t,...e,parseServerSide:t,withDefault(e){return{...this,defaultValue:e,parseServerSide:r=>t(r)??e}},withOptions(e){return{...this,...e}}}}let c=a({parse:e=>e,serialize:String});function o(e,t){return e.valueOf()===t.valueOf()}a({parse:e=>{let t=parseInt(e);return t==t?t:null},serialize:e=>""+Math.round(e)}),a({parse:e=>{let t=parseInt(e);return t==t?t-1:null},serialize:e=>""+Math.round(e+1)}),a({parse:e=>{let t=parseInt(e,16);return t==t?t:null},serialize:e=>{let t=Math.round(e).toString(16);return t<"0"||!(1&t.length)?t:"0"+t}}),a({parse:e=>{let t=parseFloat(e);return t==t?t:null},serialize:String}),a({parse:e=>"true"===e.toLowerCase(),serialize:String}),a({parse:e=>{let t=new Date(parseInt(e));return t.valueOf()==t.valueOf()?t:null},serialize:e=>""+e.valueOf(),eq:o}),a({parse:e=>{let t=new Date(e);return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString(),eq:o}),a({parse:e=>{let t=new Date(e.slice(0,10));return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString().slice(0,10),eq:o});let f=(0,u.o)("sync-emitter",()=>(0,l.i)()),p={},O=(e,t)=>"defaultValue"===e?void 0:t;function h(e,t,r,n,u,i){let a=!1,c=Object.entries(e).reduce((e,[c,o])=>{var f;let p=t?.[c]??c,O=n[p],h="multi"===o.type?[]:null,d=void 0===O?("multi"===o.type?r.getAll(p):r.get(p))??h:O;return u&&i&&((f=u[p]??h)===d||null!==f&&null!==d&&"string"!=typeof f&&"string"!=typeof d&&f.length===d.length&&f.every((e,t)=>e===d[t]))?e[c]=i[c]??null:(a=!0,e[c]=((0,l.o)(d)?null:s(o.parse,d,p))??null,u&&(u[p]=d)),e},{});if(!a){let t=Object.keys(e),r=Object.keys(i??{});a=t.length!==r.length||t.some(e=>!r.includes(e))}return{state:c,hasChanged:a}}function d(e,t){return Object.fromEntries(Object.keys(e).map(r=>[r,e[r]??t[r]?.defaultValue??null]))}function m(e,t={}){let{parse:r,type:s,serialize:a,eq:c,defaultValue:o,...m}=t,[{[e]:y},b]=function(e,t={}){let r=(0,i.useId)(),s=(0,u.i)(),a=(0,u.a)(),{history:c=s?.history??"replace",scroll:o=s?.scroll??!1,shallow:m=s?.shallow??!0,throttleMs:y=l.l.timeMs,limitUrlUpdates:b=s?.limitUrlUpdates,clearOnDefault:j=s?.clearOnDefault??!0,startTransition:v,urlKeys:g=p}=t,S=Object.keys(e).join(","),k=(0,i.useRef)(e),w=k.current,M=JSON.stringify(Object.entries(w),O)===JSON.stringify(Object.entries(e),O)&&Object.entries(e).every(([e,t])=>{let r=w[e]?.defaultValue,l=t.defaultValue;return!!Object.is(r,l)||void 0!==r&&void 0!==l&&t.eq?.(r,l)===!0})?w:e;k.current=M;let z=(0,i.useMemo)(()=>Object.fromEntries(Object.keys(e).map(e=>[e,g[e]??e])),[S,JSON.stringify(g)]),E=(0,u.r)(Object.values(z)),V=E.searchParams,D=(0,i.useRef)({}),I=(0,i.useRef)(null),U=(0,i.useRef)(null),q=(0,l.n)(Object.values(z)),[N,A]=(0,i.useState)(()=>h(e,g,V,q).state),C=(0,i.useRef)(N),R=Object.values(z).map(e=>`${e}=${V.getAll(e)}`).join("&")+JSON.stringify(q),J=()=>{let{state:t,hasChanged:l}=h(e,g,V,q,D.current,C.current);return l&&((0,n.t)(1,r,S,t),C.current=t,A(t)),l},P=Object.keys(D.current).join("&")!==Object.values(z).join("&"),_=null===U.current||U.current===(E.pathname??location.pathname),T=!1;(P||_&&I.current!==R)&&(I.current=R,T=J(),P&&(D.current=Object.fromEntries(Object.entries(z).map(([t,r])=>[r,e[t]?.type==="multi"?V.getAll(r):V.get(r)??null])))),P||T||!_||N===C.current||A(C.current),(0,i.useEffect)(()=>{U.current=E.pathname??location.pathname,J()},[R,E.pathname]),(0,i.useEffect)(()=>{let t=Object.keys(e).reduce((t,l)=>(t[l]=({state:t,query:u})=>{A(i=>{let s=z[l];return Object.is(i[l]??null,t)?((0,n.t)(2,r,S,s,t,e[l]?.defaultValue,C.current),i):(C.current={...C.current,[l]:t},D.current[s]=u,(0,n.t)(3,r,S,s,t,e[l]?.defaultValue,C.current),C.current)})},t),{});for(let l of Object.keys(e)){let e=z[l];(0,n.t)(4,r,e,S),f.on(e,t[l])}return()=>{for(let l of Object.keys(e)){let e=z[l];(0,n.t)(5,r,e,S),f.off(e,t[l])}}},[S,z]);let F=(0,i.useCallback)((e,t={})=>{let u;let i=Object.fromEntries(Object.keys(M).map(e=>[e,null])),s="function"==typeof e?e(d(C.current,M))??i:e??i;(0,n.t)(6,r,S,s);let p=0,O=!1,h=[];for(let[e,r]of Object.entries(s)){let n=M[e],i=z[e];if(!n||void 0===i||void 0===r)continue;(t.clearOnDefault??n.clearOnDefault??j)&&null!==r&&void 0!==n.defaultValue&&(n.eq??((e,t)=>e===t))(r,n.defaultValue)&&(r=null);let s=null===r?null:(n.serialize??String)(r);f.emit(i,{state:r,query:s});let d={key:i,query:s,options:{history:t.history??n.history??c,shallow:t.shallow??n.shallow??m,scroll:t.scroll??n.scroll??o,startTransition:t.startTransition??n.startTransition??v}},g=t.limitUrlUpdates??n.limitUrlUpdates??b;if(g?.method==="debounce"){let e=g.timeMs??l.l.timeMs,t=l.t.push(d,e,E,a);p<e&&(u=t,p=e)}else{let e=g?.timeMs??t.throttleMs??n.throttleMs??y;h.push(l.t.abort(i)),l.r.push(d,e),O=!0}}let g=h.reduce((e,t)=>
1t(e),O?l.r.flush(E,a):l.r.getPendingPromise(E));return u??g},[S,c,m,o,y,b?.method,b?.timeMs,v,j,M,z,E.updateUrl,E.getSearchParamsSnapshot,E.rateLimitFactor,a]);return[(0,i.useMemo)(()=>d(N,M),[N,M]),F]}({[e]:{parse:r??(e=>e),type:s,serialize:a,eq:c,defaultValue:o}},m);return[y,(0,i.useCallback)((t,r={})=>b(r=>({[e]:"function"==typeof t?t(r[e]):t}),r),[e,b])]}}}]);
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.