1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,274147,e=>{"use strict";var t=e.i(155311),r=e.i(738807),n=e.i(820579),o=e.i(639037),l=e.i(165309),i=e.i(610171);e.i(792491);var u=e.i(632137);let a=l.useLayoutEffect,s=(0,l.createContext)(null),c=(0,l.createContext)(!1),f={sidebar:[],breadcrumbs:[],topbarCenter:[],topbarActionsLeading:[],topbarActions:[],topbarActionsTrailing:[],rightPanel:[]};function p(e){return e+1}function d(e){return e+1}function h(e){return e+1}function m(e){return e+1}function g(e){return e+1}function y(){let e=(0,l.useContext)(s);if(!e)throw Error("AppShell slots must be used inside <AppShellSlotsProvider>");return e}function b(e){let t,n,o,u=(0,r.c)(10),{name:s,slotKey:c,children:f}=e,{registerOrUpdateOverride:p,unregisterOverride:d}=y(),h=(0,l.useId)(),m=c??h,g=(0,i.useIntlBridged)(f);return u[0]!==g||u[1]!==m||u[2]!==s||u[3]!==p?(t=()=>{p(s,m,g)},u[0]=g,u[1]=m,u[2]=s,u[3]=p,u[4]=t):t=u[4],a(t),u[5]!==m||u[6]!==s||u[7]!==d?(n=()=>()=>d(s,m),o=[s,m,d],u[5]=m,u[6]=s,u[7]=d,u[8]=n,u[9]=o):(n=u[8],o=u[9]),(0,l.useEffect)(n,o),null}e.s(["AGENT_RAIL_RIGHT_PANEL_SLOT_KEY",0,"universal-agent-rail","AppShellSlot",0,{Sidebar:({children:e,slotKey:r})=>(0,t.jsx)(b,{name:"sidebar",slotKey:r,children:e}),Breadcrumbs:({children:e,slotKey:r})=>(0,t.jsx)(b,{name:"breadcrumbs",slotKey:r,children:e}),TopBarCenter:({children:e,slotKey:r})=>(0,t.jsx)(b,{name:"topbarCenter",slotKey:r,children:e}),TopBarActionsLeading:({children:e,slotKey:r})=>(0,t.jsx)(b,{name:"topbarActionsLeading",slotKey:r,children:e}),TopBarActions:({children:e,slotKey:r})=>(0,t.jsx)(b,{name:"topbarActions",slotKey:r,children:e}),TopBarActionsTrailing:({children:e,slotKey:r})=>(0,t.jsx)(b,{name:"topbarActionsTrailing",slotKey:r,children:e}),RightPanel:({children:e,slotKey:r})=>(0,t.jsx)(b,{name:"rightPanel",slotKey:r,children:e})},"AppShellSlotsProvider",0,function(e){let n,o,i,u,a,y,b=(0,r.c)(10),{children:S}=e;b[0]===Symbol.for("react.memo_cache_sentinel")?(n={...f,sidebar:[],breadcrumbs:[],topbarCenter:[],topbarActionsLeading:[],topbarActions:[],topbarActionsTrailing:[],rightPanel:[]},b[0]=n):n=b[0];let v=(0,l.useRef)(n),[O,_]=(0,l.useState)(0),[j,E]=(0,l.useState)(0);b[1]===Symbol.for("react.memo_cache_sentinel")?(o=(e,t,r)=>{let n=v.current[e],o=n.findIndex(e=>e.id===t);if(o>=0){let e=n[o];e&&e.content!==r&&(n[o]={id:t,content:r},E(g));return}n.push({id:t,content:r}),_(m),E(h)},b[1]=o):o=b[1];let P=o;b[2]===Symbol.for("react.memo_cache_sentinel")?(i=(e,t)=>{let r=v.current[e],n=r.filter(e=>e.id!==t);n.length!==r.length&&(v.current[e]=n,_(d),E(p))},b[2]=i):i=b[2];let A=i;b[3]===Symbol.for("react.memo_cache_sentinel")?(u=e=>{let t=v.current[e];return t.length>0?t.at(-1)??null:null},b[3]=u):u=b[3];let T=u;b[4]!==j||b[5]!==O?(a={contentVersion:j,getActiveOverride:T,registerOrUpdateOverride:P,registrationVersion:O,unregisterOverride:A},b[4]=j,b[5]=O,b[6]=a):a=b[6];let x=a;return b[7]!==S||b[8]!==x?(y=(0,t.jsx)(c.Provider,{value:!0,children:(0,t.jsx)(s.Provider,{value:x,children:S})}),b[7]=S,b[8]=x,b[9]=y):y=b[9],y},"CONTENT_SHELL_TOPBAR_ACTIONS_EDITING_SLOT_KEY",0,"content-shell-topbar-actions-editing","CONTENT_SHELL_TOPBAR_ACTIONS_PREVIEW_SLOT_KEY",0,"content-shell-topbar-actions-preview","SlotTarget",0,function(e){let l,i,a,s,c,f,p,d,h,m,g,b,S,v,O,_=(0,r.c)(30);_[0]!==e?({name:c,fallback:i,fallbackKey:a,className:l,innerClassName:s,animate:p,...f}=e,_[0]=e,_[1]=l,_[2]=i,_[3]=a,_[4]=s,_[5]=c,_[6]=f,_[7]=p):(l=_[1],i=_[2],a=_[3],s=_[4],c=_[5],f=_[6],p=_[7]);let j=void 0===p||p,{getActiveOverride:E,contentVersion:P}=y();_[8]!==P||_[9]!==E||_[10]!==c?(d=P>=0?E(c):null,_[8]=P,_[9]=E,_[10]=c,_[11]=d):d=_[11];let A=d,T=A?.content??i??null,x=A?.id??a??"__default__";if(!j){let e;return _[12]!==l||_[13]!==T||_[14]!==f?(e=(0,t.jsx)("div",{className:l,...f,children:T}),_[12]=l,_[13]=T,_[14]=f,_[15]=e):e=_[15],e}return _[16]===Symbol.for("react.memo_cache_sentinel")?(h={opacity:1,x:0},_[16]=h):h=_[16],_[17]!==s?(m=(0,u.cn)("flex h-full w-full flex-1 flex-col",s),_[17]=s,_[18]=m):m=_[18],_[19]===Symbol.for("react.memo_cache_sentinel")?(g={opacity:0,x:-6},b={opacity:0,x:6},_[19]=g,_[20]=b):(g=_[19],b=_[20]),_[21]===Symbol.for("react.memo_cache_sentinel")?(S={duration:.18,ease:[.4,0,.2,1]},_[21]=S):S=_[21],_[22]!==T||_[23]!==x||_[24]!==m?(v=(0,t.jsx)(n.AnimatePresence,{initial:!1,mode:"wait",children:(0,t.jsx)(o.motion.div,{animate:h,className:m,exit:g,initial:b,transition:S,children:T},x)}),_[22]=T,_[23]=x,_[24]=m,_[25]=v):v=_[25],_[26]!==l||_[27]!==f||_[28]!==v?(O=(0,t.jsx)("div",{className:l,...f,children:v}),_[26]=l,_[27]=f,_[28]=v,_[29]=O):O=_[29],O},"UNIT_CANVAS_TOPBAR_ACTIONS_LEADING_SLOT_KEY",0,"unit-canvas-actions-leading","useAppShellSlotOverride",0,function(e){let t,n,o=(0,r.c)(7),{getActiveOverride:l,contentVersion:i}=y();o[0]!==i||o[1]!==l||o[2]!==e?(t=i>=0?l(e):null,o[0]=i,o[1]=l,o[2]=e,o[3]=t):t=o[3];let u=t,a=u?.content??null,s=u?.id??"__default__";return o[4]!==a||o[5]!==s?(n={content:a,key:s},o[4]=a,o[5]=s,o[6]=n):n=o[6],n},"useHasAppShellSlots",0,function(){return(0,l.useContext)(c)}
1,"useIsomorphicLayoutEffect",0,a])},820579,e=>{"use strict";var t=e.i(155311),r=e.i(165309),n=e.i(815911),o=e.i(48370),l=e.i(632473),i=e.i(809428),u=e.i(283609),a=r,s=e.i(103980);function c(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class f extends a.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,r=(0,u.isHTMLElement)(e)&&e.offsetWidth||0,n=(0,u.isHTMLElement)(e)&&e.offsetHeight||0,o=this.props.sizeRef.current;o.height=t.offsetHeight||0,o.width=t.offsetWidth||0,o.top=t.offsetTop,o.left=t.offsetLeft,o.right=r-o.width-o.left,o.bottom=n-o.height-o.top}return null}componentDidUpdate(){}render(){return this.props.children}}function p({children:e,isPresent:n,anchorX:o,anchorY:l,root:i,pop:u}){let d=(0,a.useId)(),h=(0,a.useRef)(null),m=(0,a.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:g}=(0,a.useContext)(s.MotionConfigContext),y=function(...e){return r.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=c(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():c(e[t],null)}}}}(...e),e)}(h,e.props?.ref??e?.ref);return(0,a.useInsertionEffect)(()=>{let{width:e,height:t,top:r,left:a,right:s,bottom:c}=m.current;if(n||!1===u||!h.current||!e||!t)return;let f="left"===o?`left: ${a}`:`right: ${s}`,p="bottom"===l?`bottom: ${c}`:`top: ${r}`;h.current.dataset.motionPopId=d;let y=document.createElement("style");g&&(y.nonce=g);let b=i??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(` 2 [data-motion-pop-id="${d}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${t}px !important; 6 ${f}px !important; 7 ${p}px !important; 8 } 9 `),()=>{b.contains(y)&&b.removeChild(y)}},[n]),(0,t.jsx)(f,{isPresent:n,childRef:h,sizeRef:m,pop:u,children:!1===u?e:a.cloneElement(e,{ref:y})})}let d=({children:e,initial:n,isPresent:l,onExitComplete:u,custom:a,presenceAffectsLayout:s,mode:c,anchorX:f,anchorY:d,root:m})=>{let g=(0,o.useConstant)(h),y=(0,r.useId)(),b=!0,S=(0,r.useMemo)(()=>(b=!1,{id:y,initial:n,isPresent:l,custom:a,onExitComplete:e=>{for(let t of(g.set(e,!0),g.values()))if(!t)return;u&&u()},register:e=>(g.set(e,!1),()=>g.delete(e))}),[l,g,u]);return s&&b&&(S={...S}),(0,r.useMemo)(()=>{g.forEach((e,t)=>g.set(t,!1))},[l]),r.useEffect(()=>{l||g.size||!u||u()},[l]),e=(0,t.jsx)(p,{pop:"popLayout"===c,isPresent:l,anchorX:f,anchorY:d,root:m,children:e}),(0,t.jsx)(i.PresenceContext.Provider,{value:S,children:e})};function h(){return new Map}var m=e.i(534559);let g=e=>e.key||"";function y(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}e.s(["AnimatePresence",0,({children:e,custom:i,initial:u=!0,onExitComplete:a,presenceAffectsLayout:s=!0,mode:c="sync",propagate:f=!1,anchorX:p="left",anchorY:h="top",root:b})=>{let[S,v]=(0,m.usePresence)(f),O=(0,r.useMemo)(()=>y(e),[e]),_=f&&!S?[]:O.map(g),j=(0,r.useRef)(!0),E=(0,r.useRef)(O),P=(0,o.useConstant)(()=>new Map),A=(0,r.useRef)(new Set),[T,x]=(0,r.useState)(O),[C,L]=(0,r.useState)(O);(0,l.useIsomorphicLayoutEffect)(()=>{j.current=!1,E.current=O;
9for(let e=0;e<C.length;e++){let t=g(C[e]);_.includes(t)?(P.delete(t),A.current.delete(t)):!0!==P.get(t)&&P.set(t,!1)}},[C,_.length,_.join("-")]);let R=[];if(O!==T){let e=[...O];for(let t=0;t<C.length;t++){let r=C[t],n=g(r);_.includes(n)||(e.splice(t,0,r),R.push(r))}return"wait"===c&&R.length&&(e=R),L(y(e)),x(O),null}let{forceRender:I}=(0,r.useContext)(n.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:C.map(e=>{let r=g(e),n=(!f||!!S)&&(O===C||_.includes(r));return(0,t.jsx)(d,{isPresent:n,initial:(!j.current||!!u)&&void 0,custom:i,presenceAffectsLayout:s,mode:c,root:b,onExitComplete:n?void 0:()=>{if(A.current.has(r)||(A.current.add(r),!P.has(r)))return;P.set(r,!0);let e=!0;P.forEach(t=>{t||(e=!1)}),e&&(I?.(),L(E.current),f&&v?.(),a&&a())},anchorX:p,anchorY:h,children:e},r)})})}],820579)},418953,(e,t,r)=>{"use strict";e.i(781337),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return y},useLinkStatus:function(){return S}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let l=e.r(288802),i=e.r(155311),u=l._(e.r(165309)),a=e.r(112110),s=e.r(37224),c=e.r(218738),f=e.r(478961),p=e.r(530372),d=e.r(197011),h=e.r(960795),m=e.r(746208),g=e.r(835872);function y(t){var r;let n,o,l,[y,S]=(0,u.useOptimistic)(h.IDLE_LINK_STATUS),v=(0,u.useRef)(null),{href:O,as:_,children:j,prefetch:E=null,passHref:P,replace:A,shallow:T,scroll:x,onClick:C,onMouseEnter:L,onTouchStart:R,legacyBehavior:I=!1,onNavigate:w,transitionTypes:N,ref:M,unstable_dynamicOnHover:k,...U}=t;n=j,I&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let $=u.default.useContext(s.AppRouterContext),z=!1!==E,B=!1===E?"none":!0===E?"full":"auto",D="none"!==B?"auto"===B?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,K="string"==typeof(r=_||O)?r:(0,a.formatUrl)(r);if(I){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});o=u.default.Children.only(n)}let F=I?o&&"object"==typeof o&&o.ref:M,q,H=u.default.useCallback(e=>(null!==$&&(v.current=(0,h.mountLinkInstance)(e,K,$,D,z,S,q)),()=>{v.current&&((0,h.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,h.unmountPrefetchableInstance)(e)}),[z,K,$,D,S,q]),V={ref:(0,c.useMergedRef)(H,F),onClick(t){I||"function"!=typeof C||C(t),I&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!$||t.defaultPrevented||function(t,r,n,o,l,i,a,s="none"){if("u">typeof window){let c,{nodeName:f}=t.currentTarget;if("A"===f.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:p}=e.r(545125);u.default.startTransition(()=>{p(r,o?"replace":"push",!1===l?d.ScrollBehavior.NoScroll:d.ScrollBehavior.Default,n.current,a,s)})}}(t,K,v,A,x,w,N,B)},onMouseEnter(e){I||"function"!=typeof L||L(e),I&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),$&&z&&(0,h.onNavigationIntent)(e.currentTarget,!0===k)},onTouchStart:function(e){I||"function"!=typeof R||R(e),I&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),$&&z&&(0,h.onNavigationIntent)(e.currentTarget,!0===k)}};return(0,f.isAbsoluteUrl)(K)?V.href=K:I&&!P&&("a"!==o.type||"href"in o.props)||(V.href=(0,p.addBasePath)(K)),l=I?u.default.cloneElement(o,V):(0,i.jsx)("a",{...U,...V,children:n}),(0,i.jsx)(b.Provider,{value:y,children:l})}let b=(0,u.createContext)(h.IDLE_LINK_STATUS),S=()=>(0,u.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
9dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},112110,(e,t,r)=>{"use strict";e.i(781337),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return u},formatWithValidation:function(){return s},urlObjectKeys:function(){return a}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let l=e.r(288802)._(e.r(223404)),i=/https?|ftp|gopher|file/;function u(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",u=e.hash||"",a=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:r&&(s=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(s+=":"+e.port)),a&&"object"==typeof a&&(a=String(l.urlQueryToSearchParams(a)));let c=e.search||a&&`?${a}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==s?(s="//"+(s||""),o&&"/"!==o[0]&&(o="/"+o)):s||(s=""),u&&"#"!==u[0]&&(u="#"+u),c&&"?"!==c[0]&&(c="?"+c),o=o.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${s}${o}${c}${u}`}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return u(e)}},746208,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return l}});let n=e.r(478961),o=e.r(747885);function l(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},223404,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return a},searchParamsToUrlQuery:function(){return l},urlQueryToSearchParams:function(){return u}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});function l(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function i(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function u(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,i(e));else t.set(r,i(n));return t}function a(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},478961,(e,t,r)=>{"use strict";e.i(781337),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return O},MissingStaticPage:function(){return v},NormalizeError:function(){return b},PageNotFoundError:function(){return S},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return l},execOnce:function(){return i},getDisplayName:function(){return f},getLocationOrigin:function(){return s},getURL:function(){return c},isAbsoluteUrl:function(){return a},isResSent:function(){return p},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return d},stringifyError:function(){return _}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let l=["CLS","FCP","FID","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let u=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&u.test(e)};function s(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=s();return e.substring(t.length)}function f(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function p(e){return e.finished||e.headersSent}function d(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&p(r))return n;if(!n)throw Object.defineProperty(Error(`"${f(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);
9class y extends Error{}class b extends Error{}class S extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class O extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function _(e){return JSON.stringify({message:e.message,stack:e.stack})}},109433,e=>{"use strict";var t=e.i(242934),r=e.i(100014),n=e.i(502136),o=e.i(165309);function l(e,t,n){try{return e(t)}catch(e){return n?(0,r.i)(25,t,e,n):(0,r.i)(24,t,e),null}}function i(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),l(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 u=i({parse:e=>e,serialize:String});function a(e,t){return e.valueOf()===t.valueOf()}i({parse:e=>{let t=parseInt(e);return t==t?t:null},serialize:e=>""+Math.round(e)}),i({parse:e=>{let t=parseInt(e);return t==t?t-1:null},serialize:e=>""+Math.round(e+1)}),i({parse:e=>{let t=parseInt(e,16);return t==t?t:null},serialize:e=>{let t=Math.round(e).toString(16);return(1&t.length?"0":"")+t}}),i({parse:e=>{let t=parseFloat(e);return t==t?t:null},serialize:String}),i({parse:e=>"true"===e.toLowerCase(),serialize:String}),i({parse:e=>{let t=parseInt(e);return t==t?new Date(t):null},serialize:e=>""+e.valueOf(),eq:a}),i({parse:e=>{let t=new Date(e);return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString(),eq:a}),i({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:a});let s=(0,n.o)("sync-emitter",()=>(0,t.i)()),c={};function f(e,l={}){let i=(0,o.useId)(),u=(0,n.i)(),a=(0,n.a)(),{history:h=u?.history??"replace",scroll:m=u?.scroll??!1,shallow:g=u?.shallow??!0,throttleMs:y=t.l.timeMs,limitUrlUpdates:b=u?.limitUrlUpdates,clearOnDefault:S=u?.clearOnDefault??!0,startTransition:v,urlKeys:O=c}=l,_=Object.keys(e).join(","),j=(0,o.useMemo)(()=>Object.fromEntries(Object.keys(e).map(e=>[e,O[e]??e])),[_,JSON.stringify(O)]),E=(0,n.r)(Object.values(j)),P=E.searchParams,A=(0,o.useRef)({}),T=(0,o.useRef)(null),x=(0,o.useRef)(null),C=(0,o.useMemo)(()=>Object.fromEntries(Object.keys(e).map(t=>[t,e[t].defaultValue??null])),[Object.values(e).map(({defaultValue:e})=>e).join(",")]),L=(0,t.n)(Object.values(j)),[R,I]=(0,o.useState)(()=>p(e,O,P,L).state),w=(0,o.useRef)(R),N=Object.values(j).map(e=>`${e}=${P.getAll(e)}`).join("&")+JSON.stringify(L),M=()=>{let{state:t,hasChanged:n}=p(e,O,P,L,A.current,w.current);n&&((0,r.t)(1,i,_,t),w.current=t,I(t))},k=Object.keys(A.current).join("&")!==Object.values(j).join("&"),U=null===x.current||x.current===(E.pathname??location.pathname);(k||U&&T.current!==N)&&(T.current=N,M(),k&&(A.current=Object.fromEntries(Object.entries(j).map(([t,r])=>[r,e[t]?.type==="multi"?P.getAll(r):P.get(r)??null])))),(0,o.useEffect)(()=>{x.current=E.pathname??location.pathname,M()},[N,E.pathname]),(0,o.useEffect)(()=>{let t=Object.keys(e).reduce((t,n)=>(t[n]=({state:t,query:o})=>{I(l=>{let{defaultValue:u}=e[n],a=j[n],s=t??u??null;return Object.is(l[n]??u??null,s)?((0,r.t)(2,i,_,a,t,u,w.current),l):(w.current={...w.current,[n]:s},A.current[a]=o,(0,r.t)(3,i,_,a,t,u,w.current),w.current)})},t),{});for(let n of Object.keys(e)){let e=j[n];(0,r.t)(4,i,e,_),s.on(e,t[n])}return()=>{for(let n of Object.keys(e)){let e=j[n];(0,r.t)(5,i,e,_),s.off(e,t[n])}}},[_,j]);let $=(0,o.useCallback)((n,o={})=>{let l,u=Object.fromEntries(Object.keys(e).map(e=>[e,null])),c="function"==typeof n?n(d(w.current,C))??u:n??u;(0,r.t)(6,i,_,c);let f=0,p=!1,O=[];for(let[r,n]of Object.entries(c)){let i=e[r],u=j[r];if(!i||void 0===n)continue;(o.clearOnDefault??i.clearOnDefault??S)&&null!==n&&void 0!==i.defaultValue&&(i.eq??((e,t)=>e===t))(n,i.defaultValue)&&(n=null);let c=null===n?null:(i.serialize??String)(n);s.emit(u,{state:n,query:c});let d={key:u,query:c,options:{history:o.history??i.history??h,shallow:o.shallow??i.shallow??g,scroll:o.scroll??i.scroll??m,startTransition:o.startTransition??i.startTransition??v}},_=o.limitUrlUpdates??i.limitUrlUpdates??b;if(_?.method==="debounce"){let e=_.timeMs??t.l.timeMs,r=t.t.push(d,e,E,a);f<e&&(l=r,f=e)}else{let e=_?.timeMs??o.throttleMs??i.throttleMs??y;O.push(t.t.abort(u)),t.r.push(d,e),p=!0}}let P=O.reduce((e,t)=>
9t(e),p?t.r.flush(E,a):t.r.getPendingPromise(E));return l??P},[_,h,g,m,y,b?.method,b?.timeMs,v,j,E.updateUrl,E.getSearchParamsSnapshot,E.rateLimitFactor,a,C]);return[(0,o.useMemo)(()=>d(R,C),[R,C]),$]}function p(e,r,n,o,i,u){let a=!1,s=Object.entries(e).reduce((e,[s,c])=>{var f;let p=r?.[s]??s,d=o[p],h="multi"===c.type?[]:null,m=void 0===d?("multi"===c.type?n.getAll(p):n.get(p))??h:d;return i&&u&&((f=i[p]??h)===m||null!==f&&null!==m&&"string"!=typeof f&&"string"!=typeof m&&f.length===m.length&&f.every((e,t)=>e===m[t]))?e[s]=u[s]??null:(a=!0,e[s]=((0,t.o)(m)?null:l(c.parse,m,p))??null,i&&(i[p]=m)),e},{});if(!a){let t=Object.keys(e),r=Object.keys(u??{});a=t.length!==r.length||t.some(e=>!r.includes(e))}return{state:s,hasChanged:a}}function d(e,t){return Object.fromEntries(Object.keys(e).map(r=>[r,e[r]??t[r]??null]))}e.s(["createParser",0,i,"parseAsArrayOf",0,function(e,t=","){let r=e.eq??((e,t)=>e===t),n=encodeURIComponent(t);return i({parse:r=>""===r?[]:r.split(t).map((r,o)=>l(e.parse,r.replaceAll(n,t),`[${o}]`)).filter(e=>null!=e),serialize:r=>r.map(r=>(e.serialize?e.serialize(r):String(r)).replaceAll(t,n)).join(t),eq:(e,t)=>e===t||e.length===t.length&&e.every((e,n)=>r(e,t[n]))})},"parseAsString",0,u,"parseAsStringLiteral",0,function(e){return i({parse:t=>e.includes(t)?t:null,serialize:String})},"useQueryState",0,function(e,t={}){let{parse:r,type:n,serialize:l,eq:i,defaultValue:u,...a}=t,[{[e]:s},c]=f({[e]:{parse:r??(e=>e),type:n,serialize:l,eq:i,defaultValue:u}},a);return[s,(0,o.useCallback)((t,r={})=>c(r=>({[e]:"function"==typeof t?t(r[e]):t}),r),[e,c])]},"useQueryStates",0,f],109433)}]);
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.