1import{i as F,h as ne,r}from"./chunk-OIYGIGL5-fdmY2nYp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=(function(n){for(var s=1;s<arguments.length;s++){var u=arguments[s];if(u!=null)for(var c in u)u.hasOwnProperty(c)&&(n[c]=u[c])}return n})({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:portal-frontend-ssr":!0});var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f8bfdc08-dbd4-49c1-b035-f73dd3006033",e._sentryDebugIdIdentifier="sentry-dbid-f8bfdc08-dbd4-49c1-b035-f73dd3006033")}catch{}})();var H,J;function re(){if(J)return H;J=1;var e="Expected a function",t=NaN,n="[object Symbol]",s=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt,g=typeof F=="object"&&F&&F.Object===Object&&F,d=typeof self=="object"&&self&&self.Object===Object&&self,l=g||d||Function("return this")(),y=Object.prototype,h=y.toString,E=Math.max,w=Math.min,b=function(){return l.Date.now()};function B(o,v,p){var R,T,z,k,m,S,j=0,q=!1,M=!1,A=!0;if(typeof o!="function")throw new TypeError(e);v=L(v)||0,x(p)&&(q=!!p.leading,M="maxWait"in p,z=M?E(L(p.maxWait)||0,v):z,A="trailing"in p?!!p.trailing:A);function P(f){var C=R,_=T;return R=T=void 0,j=f,k=o.apply(_,C),k}function Y(f){return j=f,m=setTimeout(D,v),q?P(f):k}function Z(f){var C=f-S,_=f-j,U=v-C;return M?w(U,z-_):U}function N(f){var C=f-S,_=f-j;return S===void 0||C>=v||C<0||M&&_>=z}function D(){var f=b();if(N(f))return G(f);m=setTimeout(D,Z(f))}function G(f){return m=void 0,A&&R?P(f):(R=T=void 0,k)}function ee(){m!==void 0&&clearTimeout(m),j=0,R=S=T=m=void 0}function te(){return m===void 0?k:G(b())}function W(){var f=b(),C=N(f);if(R=arguments,T=this,S=f,C){if(m===void 0)return Y(S);if(M)return m=setTimeout(D,v),P(S)}return m===void 0&&(m=setTimeout(D,v)),k}return W.cancel=ee,W.flush=te,W}function x(o){var v=typeof o;return!!o&&(v=="object"||v=="function")}function I(o){return!!o&&typeof o=="object"}function O(o){return typeof o=="symbol"||I(o)&&h.call(o)==n}function L(o){if(typeof o=="number")return o;if(O(o))return t;if(x(o)){var v=typeof o.valueOf=="function"?o.valueOf():o;o=x(v)?v+"":v}if(typeof o!="string")return o===0?o:+o;o=o.replace(s,"");var p=c.test(o);return p||i.test(o)?a(o.slice(2),p?2:8):u.test(o)?t:+o}return H=B,H}var se=re();const K=ne(se);function ue(e=!1){if(typeof e!="boolean")throw new Error("defaultValue must be `true` or `false`");const[t,n]=r.useState(e),s=r.useCallback(()=>{n(!0)},[]),u=r.useCallback(()=>{n(!1)},[]),c=r.useCallback(()=>{n(i=>!i)},[]);return{value:t,setValue:n,setTrue:s,setFalse:u,toggle:c}}var $=typeof window<"u"?r.useLayoutEffect:r.useEffect;function V(e,t,n,s){const u=r.useRef(t);$(()=>{u.current=t},[t]),r.useEffect(()=>{const c=n?.current??window;if(!(c&&c.addEventListener))return;const i=a=>{u.current(a)};return c.addEventListener(e,i,s),()=>{c.removeEventListener(e,i,s)}},[e,n,s])}function oe(e){const[t,n]=r.useState(e??0),s=r.useCallback(()=>{n(i=>i+1)},[]),u=r.useCallback(()=>{n(i=>i-1)},[]),c=r.useCallback(()=>{n(e??0)},[e]);return{count:t,increment:s,decrement:u,reset:c,setCount:n}}function ce(e,t){const n=r.useRef(e);$(()=>{n.current=e},[e]),r.useEffect(()=>{if(t===null)return;const s=setInterval(()=>{n.current()},t);return()=>{clearInterval(s)}},[t])}function le({countStart:e,countStop:t=0,intervalMs:n=1e3,isIncrement:s=!1}){const{count:u,increment:c,decrement:i,reset:a}=oe(e),{value:g,setTrue:d,setFalse:l}=ue(!1),y=r.useCallback(()=>{l(),a()},[l,a]),h=r.useCallback(()=>{if(u===t){l();return}s?c():i()},[u,t,i,c,s,l]);return ce(h,g?n:null),[u,{startCountdown:d,stopCountdown:l,resetCountdown:y}]}function ie(e){const t=r.useRef(e);t.current=e,r.useEffect(()=>()=>{t.current()},[])}function ae(e,t=500,n){const s=r.useRef();ie(()=>{s.current&&s.current.cancel()});const u=r.useMemo(()=>{const c=K(e,t,n),i=(...a)=>c(...a);return i.cancel=()=>{c.cancel()},i.isPending=()=>!!s.current,i.flush=()=>c.flush(),i},[e,t,n]);return r.useEffect(()=>{s.current=K(e,t,n)},[e,t,n]),u}function be(e,t,n){const s=((d,l)=>d===l),u=e instanceof Function?e():e,[c,i]=r.useState(u),a=r.useRef(u),g=ae(i,t,n);return s(a.current,u)||(g(u),a.current=u),[c,g]}function ve(e){const[t,n]=r.useState(!1),s=()=>{n(!0)},u=()=>{n(!1)};return V("mouseenter",s,e),V("mouseleave",u,e),t}function ge({threshold:e=0,root:t=null,rootMargin:n="0%",freezeOnceVisible:s=!1,initialIsIntersecting:u=!1,onChange:c}={}){var i;const[a,g]=r.useState(null),[d,l]=r.useState(()=>({isIntersecting:u,entry:void 0})),y=r.useRef();y.current=c;const h=((i=d.entry)==null?void 0:i.isIntersecting)&&s;r.useEffect(()=>{if(!a||!("IntersectionObserver"in window)||h)return;const b=new IntersectionObserver(B=>{const x=Array.isArray(b.thresholds)?b.thresholds:[b.thresholds];B.forEach(I=>{const O=I.isIntersecting&&x.some(L=>I.intersectionRatio>=L);l({isIntersecting:O,entry:I}),y.current&&y.current(O,I)})},{threshold:e,root:t,rootMargin:n});return b.observe(a),()=>{b.disconnect()}},[a,JSON.stringify(e),t,n,h,s]);const E=r.useRef(null);r.useEffect(()=>{var b;!a&&((b=d.entry)!=null&&b.target)&&!s&&!h&&E.current!==d.entry.target&&(E.current=d.entry.target,l({isIntersecting:u,entry:void 0}))},[a,d.entry,s,h,u]);const w=[g,!!d.isIntersecting,d.entry];return w.ref=w[0],w.isIntersecting=w[1],w.entry=w[2],w}function fe(){const e=r.useRef(!1);return r.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),r.useCallback(()=>e.current,[])}var X={width:void 0,height:void 0};function he(e){const{ref:t,box:n="content-box"}=e,[{width:s,height:u},c]=r.useState(X),i=fe(),a=r.useRef({...X}),g=r.useRef(void 0);return g.current=e.onResize,r.useEffect(()=>{if(!t.current||typeof window>"u"||!("ResizeObserver"in window))return;const d=new ResizeObserver(([l])=>{const y=n==="border-box"?"borderBoxSize":n==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",h=Q(l,y,"inlineSize"),E=Q(l,y,"blockSize");if(a.current.width!==h||a.current.height!==E){const b={width:h,height:E};a.current.width=h,a.current.height=E,g.current?g.current(b):i()&&c(b)}});return d.observe(t.current,{box:n}
1),()=>{d.disconnect()}},[n,t,i]),{width:s,height:u}}function Q(e,t,n){return e[t]?Array.isArray(e[t])?e[t][0][n]:e[t][n]:t==="contentBoxSize"?e.contentRect[n==="inlineSize"?"width":"height"]:void 0}function me(e,t){const n=r.useRef(e);$(()=>{n.current=e},[e]),r.useEffect(()=>{if(!t&&t!==0)return;const s=setTimeout(()=>{n.current()},t);return()=>{clearTimeout(s)}},[t])}export{ge as a,me as b,oe as c,le as d,be as e,$ as f,V as g,ae as h,ie as i,he as j,ve as k,ce as u};
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.