@cerefox/memory 1.19.4 → 1.19.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function u(e){return Object.keys(e)}function d(e){return e&&typeof e==`object`&&!Array.isArray(e)}function f(e,t){let n={...e},r=t;return d(e)&&d(t)&&Object.keys(t).forEach(t=>{d(r[t])&&t in e?n[t]=f(n[t],r[t]):n[t]=r[t]}),n}function p(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function m(e){return typeof e!=`string`||!e.includes(`var(--mantine-scale)`)?e:e.match(/^calc\((.*?)\)$/)?.[1].split(`*`)[0].trim()}function h(e){let t=m(e);return typeof t==`number`?t:typeof t==`string`?t.includes(`calc`)||t.includes(`var`)?t:t.includes(`px`)?Number(t.replace(`px`,``)):t.includes(`rem`)?Number(t.replace(`rem`,``))*16:t.includes(`em`)?Number(t.replace(`em`,``))*16:Number(t):NaN}function g(e){return e===`0rem`?`0rem`:`calc(${e} * var(--mantine-scale))`}function _(e,{shouldScale:t=!1}={}){function n(r){if(r===0||r===`0`)return`0${e}`;if(typeof r==`number`){let n=`${r/16}${e}`;return t?g(n):n}if(typeof r==`string`){if(r===``||r.startsWith(`calc(`)||r.startsWith(`clamp(`)||r.includes(`rgba(`))return r;if(r.includes(`,`))return r.split(`,`).map(e=>n(e)).join(`,`);if(r.includes(` `))return r.split(` `).map(e=>n(e)).join(` `);let i=r.replace(`px`,``);if(!Number.isNaN(Number(i))){let n=`${Number(i)/16}${e}`;return t?g(n):n}}return r}return n}var v=_(`rem`,{shouldScale:!0}),y=_(`em`);function b(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function x(e){if(typeof e==`number`)return!0;if(typeof e==`string`){if(e.startsWith(`calc(`)||e.startsWith(`var(`)||e.includes(` `)&&e.trim()!==``)return!0;let t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(e=>t.test(e))}return!1}var S=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function P(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,P(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),P(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+M(a,u),c+=P(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+M(a,u++),c+=P(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return P(N(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function F(e,t,n){if(e==null)return e;var r=[],i=0;return P(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function I(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var L=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function R(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,L)}catch(e){L(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function z(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else R(z.bind(null,e))}var ee={map:F,forEach:function(e,t,n){F(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return F(e,function(){t++}),t},toArray:function(e){return F(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=ee,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=z,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=R,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.0`})),C=o(((e,t)=>{t.exports=S()})),w=l(C(),1);function T(e){return Array.isArray(e)||e===null?!1:typeof e==`object`&&e.type!==w.Fragment}function E(e){let t=(0,w.createContext)(null);return[t,()=>{let n=(0,w.use)(t);if(n===null)throw Error(e);return n}]}function D(e,t){let n=e;for(;(n=n.parentElement)&&!n.matches(t););return n}function O(e,t,n){for(let n=e-1;n>=0;--n)if(!t[n].disabled)return n;if(n){for(let e=t.length-1;e>-1;--e)if(!t[e].disabled)return e}return e}function k(e,t,n){for(let n=e+1;n<t.length;n+=1)if(!t[n].disabled)return n;if(n){for(let e=0;e<t.length;e+=1)if(!t[e].disabled)return e}return e}function A(e,t,n){return D(e,n)===D(t,n)}function j({parentSelector:e,siblingSelector:t,onKeyDown:n,loop:r=!0,activateOnFocus:i=!1,dir:a=`rtl`,orientation:o}){return s=>{n?.(s);let c=Array.from(D(s.currentTarget,e)?.querySelectorAll(t)||[]).filter(t=>A(s.currentTarget,t,e)),l=c.findIndex(e=>s.currentTarget===e),u=k(l,c,r),d=O(l,c,r),f=a===`rtl`?d:u,p=a===`rtl`?u:d;switch(s.key){case`ArrowRight`:o===`horizontal`&&(s.stopPropagation(),s.preventDefault(),c[f].focus(),i&&c[f].click());break;case`ArrowLeft`:o===`horizontal`&&(s.stopPropagation(),s.preventDefault(),c[p].focus(),i&&c[p].click());break;case`ArrowUp`:o===`vertical`&&(s.stopPropagation(),s.preventDefault(),c[d].focus(),i&&c[d].click());break;case`ArrowDown`:o===`vertical`&&(s.stopPropagation(),s.preventDefault(),c[u].focus(),i&&c[u].click());break;case`Home`:s.stopPropagation(),s.preventDefault(),c[k(-1,c,!1)]?.focus();break;case`End`:s.stopPropagation(),s.preventDefault(),c[O(c.length,c,!1)]?.focus()}}}var M={app:100,modal:200,popover:300,overlay:400,max:9999};function N(e){return M[e]}var P=()=>{};function F(e,t={active:!0}){return typeof e!=`function`||!t.active?t.onKeyDown||P:n=>{n.key===`Escape`&&(e(n),t.onTrigger?.())}}function I(e,t=`size`,n=!0){if(e!==void 0)return x(e)?n?v(e):e:`var(--${t}-${e})`}function L(e){return I(e,`mantine-spacing`)}function R(e){return e===void 0?`var(--mantine-radius-default)`:I(e,`mantine-radius`)}function z(e){return I(e,`mantine-font-size`)}function ee(e){return I(e,`mantine-line-height`,!1)}function B(e){if(e)return I(e,`mantine-shadow`,!1)}function V(e,t){return n=>{e?.(n),t?.(n)}}function te(e,t){return e in t?h(t[e]):h(e)}function ne(e,t){let n=e.map(e=>({value:e,px:te(e,t)}));return n.sort((e,t)=>e.px-t.px),n}function H(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function re(e,t,n){return n?Array.from(D(n,t)?.querySelectorAll(e)||[]).findIndex(e=>e===n):null}function ie(e,t,n){return t===void 0&&n===void 0?e:t!==void 0&&n===void 0?Math.max(e,t):Math.min(t===void 0&&n!==void 0?e:Math.max(e,t),n)}function ae(e=`mantine-`){return`${e}${Math.random().toString(36).slice(2,11)}`}function U(e,t){if(e===t||Number.isNaN(e)&&Number.isNaN(t))return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=Object.keys(e),{length:r}=n;if(r!==Object.keys(t).length)return!1;for(let i=0;i<r;i+=1){let r=n[i];if(!(r in t)||e[r]!==t[r]&&!(Number.isNaN(e[r])&&Number.isNaN(t[r])))return!1}return!0}function W(e){let t=(0,w.useRef)(e);return(0,w.useEffect)(()=>{t.current=e}),(0,w.useMemo)(()=>((...e)=>t.current?.(...e)),[])}function oe(e,t){let{delay:n,flushOnUnmount:r,leading:i,maxWait:a}=typeof t==`number`?{delay:t,flushOnUnmount:!1,leading:!1,maxWait:void 0}:t,o=W(e),s=(0,w.useRef)(0),c=(0,w.useRef)(0),l=(0,w.useRef)(null),u=(0,w.useMemo)(()=>{let e=Object.assign((...t)=>{window.clearTimeout(s.current),l.current=t;let r=e._isFirstCall;e._isFirstCall=!1;function u(){window.clearTimeout(s.current),window.clearTimeout(c.current),s.current=0,c.current=0,e._isFirstCall=!0,e._hasPendingCallback=!1}function d(){a!==void 0&&c.current===0&&(c.current=window.setTimeout(()=>{if(s.current!==0){let e=l.current;u(),o(...e)}},a))}if(i&&r){o(...t),e.flush=()=>{s.current!==0&&(u(),o(...t))},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}if(i&&!r){e._hasPendingCallback=!0,e.flush=()=>{s.current!==0&&(u(),o(...t))},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}e._hasPendingCallback=!0;let f=()=>{s.current!==0&&(u(),o(...t))};e.flush=f,e.cancel=()=>{u()},s.current=window.setTimeout(f,n),d()},{flush:()=>{},cancel:()=>{},isPending:()=>e._hasPendingCallback,_isFirstCall:!0,_hasPendingCallback:!1});return e},[o,n,i,a]);return(0,w.useEffect)(()=>()=>{r?u.flush():u.cancel()},[u,r]),u}var se=[`mousedown`,`touchstart`];function ce(e,t,n,r=!0,i=!1){let a=(0,w.useRef)(null),o=t||se,s=(0,w.useEffectEvent)(t=>{let{target:r}=t??{};if(!document.body.contains(r)&&r?.tagName!==`HTML`)return;let i=t.composedPath();Array.isArray(n)?n.every(e=>!!e&&!i.includes(e))&&e(t):a.current&&!i.includes(a.current)&&e(t)}),c=o.join(`,`);return(0,w.useEffect)(()=>{if(!r)return;let e=c.split(`,`);return e.forEach(e=>document.addEventListener(e,s,i)),()=>{e.forEach(e=>document.removeEventListener(e,s,i))}},[c,r,i]),a}function le(e,t){if(typeof t==`boolean`)return t;if(typeof window<`u`&&`matchMedia`in window)try{return window.matchMedia(e).matches}catch{return!1}return!1}function ue(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){let[r,i]=(0,w.useState)(n?t:le(e));return(0,w.useEffect)(()=>{try{if(`matchMedia`in window){let t=window.matchMedia(e);i(t.matches);let n=e=>i(e.matches);return t.addEventListener(`change`,n),()=>{t.removeEventListener(`change`,n)}}}catch{return}},[e]),r||!1}function de(e,t){return ue(`(prefers-color-scheme: dark)`,e===`dark`,t)?`dark`:`light`}var fe=typeof document<`u`?w.useLayoutEffect:w.useEffect;function pe(e,t){return e.length!==t.length||t.some((t,n)=>!Object.is(t,e[n]))}function me(e,t){let n=(0,w.useRef)(!1),r=(0,w.useRef)(null),i=(0,w.useRef)(void 0),a={};(0,w.useEffect)(()=>{let o=r.current===a,s=i.current;if(r.current=a,i.current=t,!n.current)n.current=!0;else if(!o&&!(t&&s&&!pe(s,t)))return e()},t)}function he({opened:e,shouldReturnFocus:t=!0}){let n=(0,w.useRef)(null),r=()=>{n.current&&`focus`in n.current&&typeof n.current.focus==`function`&&n.current?.focus({preventScroll:!0})};return me(()=>{let i=-1,a=e=>{e.key===`Tab`&&window.clearTimeout(i)};if(document.addEventListener(`keydown`,a),e)n.current=document.activeElement;else if(t){let e=document.activeElement;i=window.setTimeout(()=>{let t=document.activeElement;(t===null||t===document.body||t===e)&&r()},10)}return()=>{window.clearTimeout(i),document.removeEventListener(`keydown`,a)}},[e,t]),r}var ge=/input|select|textarea|button|object/,_e=`a, input, select, textarea, button, object, [tabindex]`;function ve(e){return e.style.display===`none`}function ye(e){if(e.getAttribute(`aria-hidden`)||e.getAttribute(`hidden`)||e.getAttribute(`type`)===`hidden`)return!1;let t=e;for(;t&&t!==document.body&&t.nodeType!==11;){if(ve(t))return!1;t=t.parentNode}return!0}function be(e){let t=e.getAttribute(`tabindex`);return t===null&&(t=void 0),parseInt(t,10)}function xe(e){let t=e.nodeName.toLowerCase(),n=!Number.isNaN(be(e));return(ge.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&ye(e)}function Se(e){let t=be(e);return(Number.isNaN(t)||t>=0)&&xe(e)}function Ce(e){return Array.from(e.querySelectorAll(_e)).filter(Se)}function we(e,t){let n=Ce(e);if(!n.length){t.preventDefault();return}let r=n[t.shiftKey?0:n.length-1],i=e.getRootNode(),a=r===i.activeElement||e===i.activeElement,o=i.activeElement;if(o.tagName===`INPUT`&&o.getAttribute(`type`)===`radio`&&(a=n.filter(e=>e.getAttribute(`type`)===`radio`&&e.getAttribute(`name`)===o.getAttribute(`name`)).includes(r)),!a)return;t.preventDefault();let s=n[t.shiftKey?n.length-1:0];s&&s.focus()}function Te(e=!0){let t=(0,w.useRef)(null),n=e=>{let t=e.querySelector(`[data-autofocus]`);if(!t){let n=Array.from(e.querySelectorAll(_e));t=n.find(Se)||n.find(xe)||null,!t&&xe(e)&&(t=e)}t?t.focus({preventScroll:!0}):console.warn(`[@mantine/hooks/use-focus-trap] Failed to find focusable element within provided node`,e)},r=(0,w.useCallback)(r=>{e&&(r===null?t.current=null:t.current!==r&&(setTimeout(()=>{r.getRootNode()?n(r):console.warn(`[@mantine/hooks/use-focus-trap] Ref node is not part of the dom`,r)}),t.current=r))},[e]);return(0,w.useEffect)(()=>{if(!e)return;t.current&&setTimeout(()=>{t.current&&n(t.current)});let r=e=>{e.key===`Tab`&&t.current&&we(t.current,e)};return document.addEventListener(`keydown`,r),()=>document.removeEventListener(`keydown`,r)},[e]),r}var Ee=e=>(e+1)%1e6;function De(){let[,e]=(0,w.useReducer)(Ee,0);return e}function Oe(e){let t=(0,w.useId)(),[n,r]=(0,w.useState)(`mantine-${t.replace(/:/g,``)}`),i=(0,w.useRef)(!1);return fe(()=>{i.current||(i.current=!0,r(ae()))},[]),typeof e==`string`?e:n}function ke(e,t,n){let r=(0,w.useEffectEvent)(t);(0,w.useEffect)(()=>(window.addEventListener(e,r,n),()=>window.removeEventListener(e,r,n)),[e])}function Ae(e,t){if(typeof e==`function`)return e(t);typeof e==`object`&&e&&`current`in e&&(e.current=t)}function je(...e){let t=new Map;return n=>{if(e.forEach(e=>{let r=Ae(e,n);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{let n=t.get(e);n&&typeof n==`function`?n():Ae(e,null)}),t.clear()}}}function Me(...e){return(0,w.useCallback)(je(...e),e)}function Ne({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){let[i,a]=(0,w.useState)(t===void 0?n:t);return e===void 0?[i,(e,...t)=>{a(e),r?.(e,...t)},!1]:[e,r,!0]}function Pe(e,t){return ue(`(prefers-reduced-motion: reduce)`,e,t)}function Fe(e,t){if(!e||!t)return!1;if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(!U(e[n],t[n]))return!1;return!0}function Ie(e){let t=(0,w.useRef)([]),n=(0,w.useRef)(0);return Fe(t.current,e)||(t.current=e,n.current+=1),[n.current]}function Le(e,t){(0,w.useEffect)(e,Ie(t))}function Re(e,t,n={autoInvoke:!1}){let r=(0,w.useRef)(null),i=W(e),a=(0,w.useCallback)((...e)=>{r.current||=window.setTimeout(()=>{i(...e),r.current=null},t)},[t]),o=(0,w.useCallback)(()=>{r.current&&=(window.clearTimeout(r.current),null)},[]);return(0,w.useEffect)(()=>(n.autoInvoke&&a(),o),[o,a]),{start:a,clear:o}}function ze(e){let t=(0,w.useRef)(void 0);return(0,w.useEffect)(()=>{t.current=e},[e]),t.current}function Be(e,t,n){let r=(0,w.useRef)(null);(0,w.useEffect)(()=>{r.current&&=(r.current.disconnect(),null);let i=typeof n==`function`?n():n;return i&&(r.current=new MutationObserver(e),r.current.observe(i,t)),()=>{r.current&&=(r.current.disconnect(),null)}},[e,t,n])}function Ve(){let[e,t]=(0,w.useState)(!1);return(0,w.useEffect)(()=>t(!0),[]),e}var He=[`mouse`,`touch`],Ue=10;function We(e,t={}){let{threshold:n=400,events:r=He,cancelOnMove:i=!1,onStart:a,onFinish:o,onCancel:s}=t,c=(0,w.useRef)(!1),l=(0,w.useRef)(!1),u=(0,w.useRef)(-1),d=(0,w.useRef)(null);(0,w.useEffect)(()=>()=>window.clearTimeout(u.current),[]);let f=r.join(`,`);return(0,w.useMemo)(()=>{if(typeof e!=`function`)return{};let t=i!==!1,f=i===!0?Ue:i===!1?0:i,p=t=>{(qe(t)||Ke(t))&&(a&&a(t),d.current=Ge(t),l.current=!0,u.current=window.setTimeout(()=>{e(t),c.current=!0},n))},m=e=>{(qe(e)||Ke(e))&&(c.current?o&&o(e):l.current&&s&&s(e),c.current=!1,l.current=!1,d.current=null,u.current!==-1&&(window.clearTimeout(u.current),u.current=-1))},h=e=>{if(!t||!l.current||c.current)return;let n=Ge(e);if(!n||!d.current)return;let r=n.x-d.current.x,i=n.y-d.current.y;Math.sqrt(r*r+i*i)>f&&m(e)},g={};return r.includes(`mouse`)&&(g.onMouseDown=p,g.onMouseUp=m,g.onMouseLeave=m,t&&(g.onMouseMove=h)),r.includes(`touch`)&&(g.onTouchStart=p,g.onTouchEnd=m,g.onTouchCancel=m,t&&(g.onTouchMove=h)),g},[e,n,s,o,a,i,f])}function Ge(e){if(Ke(e)){let t=e.touches[0]??e.changedTouches[0];return t?{x:t.clientX,y:t.clientY}:null}return{x:e.clientX,y:e.clientY}}function Ke(e){return window.TouchEvent?e.nativeEvent instanceof TouchEvent:`touches`in e.nativeEvent}function qe(e){return e.nativeEvent instanceof MouseEvent}var Je=o((e=>{var t=C();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=u(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=u(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.0`})),Ye=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Je()})),Xe=l(Ye(),1);function Ze(e){if(!e||typeof e==`string`)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Qe(e){return e.current?e.current.scrollHeight:`auto`}function $e(e){return typeof e==`number`&&e>0}function et({transitionDuration:e,transitionTimingFunction:t=`ease`,onTransitionEnd:n,onTransitionStart:r,expanded:i,keepMounted:a}){let o={height:0,overflow:`hidden`,...a?{}:{display:`none`}},s=(0,w.useEffectEvent)(()=>r?.()),c=(0,w.useEffectEvent)(()=>n?.()),l=(0,w.useRef)(null),[u,d]=(0,w.useState)(i?{}:o),[f,p]=(0,w.useState)(i?`entered`:`exited`),m=e=>{(0,Xe.flushSync)(()=>d(e))},h=e=>{m(t=>({...t,...e}))},g=n=>{let r=e??Ze(n);return{transition:`height ${r}ms ${t}, opacity ${r}ms ${t}`}},_=(0,w.useRef)(0);me(()=>{_.current+=1;let t=_.current,n=()=>_.current===t;e!==0&&s(),i?window.requestAnimationFrame(()=>{n()&&l.current&&((0,Xe.flushSync)(()=>p(`entering`)),h({willChange:`height`,display:`block`,overflow:`hidden`}),window.requestAnimationFrame(()=>{if(!n()||!l.current)return;let e=Qe(l);$e(e)?h({...g(e),height:e}):(m({}),p(`entered`),c())}))}):window.requestAnimationFrame(()=>{if(!n()||!l.current)return;(0,Xe.flushSync)(()=>p(`exiting`));let e=Qe(l);$e(e)?(h({...g(e),willChange:`height`,height:e}),window.requestAnimationFrame(()=>{n()&&l.current&&h({height:0,overflow:`hidden`})})):(m(o),p(`exited`),c())})},[i]);let v=e=>{if(e.target===l.current&&e.propertyName===`height`){if(i){let e=Qe(l);e===u.height?m({}):h({height:e}),p(`entered`),c()}else u.height===0&&(m(o),p(`exited`),c())}};return{state:f,getCollapseProps:e=>({"aria-hidden":!i,inert:!i,ref:je(l,e?.ref),onTransitionEnd:v,style:{boxSizing:`border-box`,...e?.style,...u}})}}function tt(e){if(!e||typeof e==`string`)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function nt(e){return e.current?e.current.scrollWidth:`auto`}function rt({transitionDuration:e,transitionTimingFunction:t=`ease`,onTransitionEnd:n,onTransitionStart:r,expanded:i,keepMounted:a}){let o={width:0,overflow:`hidden`,...a?{}:{display:`none`}},s=(0,w.useEffectEvent)(()=>r?.()),c=(0,w.useEffectEvent)(()=>n?.()),l=(0,w.useRef)(null),[u,d]=(0,w.useState)(i?{}:o),[f,p]=(0,w.useState)(i?`entered`:`exited`),m=e=>{(0,Xe.flushSync)(()=>d(e))},h=e=>{m(t=>({...t,...e}))},g=n=>{let r=e??tt(n);return{transition:`width ${r}ms ${t}, opacity ${r}ms ${t}`}},_=(0,w.useRef)(0);me(()=>{_.current+=1;let t=_.current,n=()=>_.current===t;e!==0&&s(),i?window.requestAnimationFrame(()=>{n()&&l.current&&((0,Xe.flushSync)(()=>p(`entering`)),h({willChange:`width`,display:`block`,overflow:`hidden`}),window.requestAnimationFrame(()=>{if(!n()||!l.current)return;let e=nt(l);$e(e)?h({...g(e),width:e}):(m({}),p(`entered`),c())}))}):window.requestAnimationFrame(()=>{if(!n()||!l.current)return;(0,Xe.flushSync)(()=>p(`exiting`));let e=nt(l);$e(e)?(h({...g(e),willChange:`width`,width:e}),window.requestAnimationFrame(()=>{n()&&l.current&&h({width:0,overflow:`hidden`})})):(m(o),p(`exited`),c())})},[i]);let v=e=>{if(e.target===l.current&&e.propertyName===`width`){if(i){let e=nt(l);e===u.width?m({}):h({width:e}),p(`entered`),c()}else u.width===0&&(m(o),p(`exited`),c())}};return{state:f,getCollapseProps:e=>({"aria-hidden":!i,inert:!i,ref:je(l,e?.ref),onTransitionEnd:v,style:{boxSizing:`border-box`,...e?.style,...u}})}}var it=100;function at(e){return e>0?1:e<0?-1:0}function ot(e){let t=e??0;return typeof t==`number`?[t,t]:t}function st(){return{isActive:!1,pointerId:-1,startXY:[0,0],prevXY:[0,0],startTimestamp:0,prevTimestamp:0,thresholdMet:!1,firstFired:!1,lockedAxis:null,canceled:!1,lastVelocity:[0,0]}}function ct(e,t={}){let[n,r]=(0,w.useState)(!1),i=(0,w.useRef)(e);i.current=e;let a=(0,w.useRef)(t);a.current=t;let o=(0,w.useRef)(st()),s=(0,w.useRef)(null);return{ref:(0,w.useCallback)(e=>{if(!e)return;let t=new AbortController,n=e=>{let t=a.current,n=o.current;if(t.axis===`x`)return[e[0],0];if(t.axis===`y`)return[0,e[1]];if(t.axis===`lock`){if(n.lockedAxis===null){let r=t.axisThreshold??1;(Math.abs(e[0])>r||Math.abs(e[1])>r)&&(n.lockedAxis=Math.abs(e[0])>=Math.abs(e[1])?`x`:`y`)}if(n.lockedAxis===`x`)return[e[0],0];if(n.lockedAxis===`y`)return[0,e[1]]}return e},c=()=>{let e=o.current;e.isActive=!1,e.pointerId=-1,e.thresholdMet=!1,e.firstFired=!1,e.lockedAxis=null,e.canceled=!1,r(!1),document.body.style.userSelect=``,document.body.style.webkitUserSelect=``,s.current?.abort(),s.current=null},l=()=>{o.current.isActive&&(o.current.canceled=!0,c())},u=()=>{r(!0),document.body.style.userSelect=`none`,document.body.style.webkitUserSelect=`none`},d=e=>{if(a.current.enabled===!1||e.button!==0||o.current.isActive)return;let t=o.current;t.isActive=!0,t.pointerId=e.pointerId,t.startXY=[e.clientX,e.clientY],t.prevXY=[e.clientX,e.clientY],t.startTimestamp=e.timeStamp,t.prevTimestamp=e.timeStamp,t.thresholdMet=!1,t.firstFired=!1,t.lockedAxis=null,t.canceled=!1,t.lastVelocity=[0,0];let[n,r]=ot(a.current.threshold);n===0&&r===0&&(t.thresholdMet=!0,t.firstFired=!0,u(),i.current({xy:[e.clientX,e.clientY],initial:[e.clientX,e.clientY],movement:[0,0],delta:[0,0],distance:[0,0],direction:[0,0],velocity:[0,0],elapsedTime:0,first:!0,last:!1,active:!0,tap:!1,canceled:!1,cancel:l,event:e})),s.current?.abort(),s.current=new AbortController;let c=s.current.signal;document.addEventListener(`pointermove`,f,{signal:c}),document.addEventListener(`pointerup`,p,{signal:c}),document.addEventListener(`pointercancel`,m,{signal:c})},f=e=>{let t=o.current;if(!t.isActive||e.pointerId!==t.pointerId)return;let r=[e.clientX-t.startXY[0],e.clientY-t.startXY[1]];if(!t.thresholdMet){let[n,i]=ot(a.current.threshold);if(Math.abs(r[0])<n&&Math.abs(r[1])<i){t.prevXY=[e.clientX,e.clientY],t.prevTimestamp=e.timeStamp;return}t.thresholdMet=!0,u()}let s=n(r),c=[e.clientX-t.prevXY[0],e.clientY-t.prevXY[1]],d=n(c),f=e.timeStamp-t.prevTimestamp,p=f>0?[Math.abs(d[0])/f,Math.abs(d[1])/f]:t.lastVelocity;t.lastVelocity=p;let m=!t.firstFired;t.firstFired=!0,t.prevXY=[e.clientX,e.clientY],t.prevTimestamp=e.timeStamp,i.current({xy:[e.clientX,e.clientY],initial:[...t.startXY],movement:s,delta:d,distance:[Math.abs(s[0]),Math.abs(s[1])],direction:[at(d[0]),at(d[1])],velocity:p,elapsedTime:e.timeStamp-t.startTimestamp,first:m,last:!1,active:!0,tap:!1,canceled:!1,cancel:l,event:e})},p=e=>{let t=o.current;if(!t.isActive||e.pointerId!==t.pointerId)return;let r=a.current;if(!t.thresholdMet){if(r.filterTaps){let a=[e.clientX-t.startXY[0],e.clientY-t.startXY[1]],o=n(a),s=[Math.abs(o[0]),Math.abs(o[1])],c=Math.max(s[0],s[1])<(r.tapThreshold??3);i.current({xy:[e.clientX,e.clientY],initial:[...t.startXY],movement:o,delta:o,distance:s,direction:[at(o[0]),at(o[1])],velocity:[0,0],elapsedTime:e.timeStamp-t.startTimestamp,first:!0,last:!0,active:!1,tap:c,canceled:!1,cancel:l,event:e})}c();return}let s=[e.clientX-t.startXY[0],e.clientY-t.startXY[1]],u=n(s),d=[Math.abs(u[0]),Math.abs(u[1])],f=[e.clientX-t.prevXY[0],e.clientY-t.prevXY[1]],p=n(f),m=e.timeStamp-t.prevTimestamp>it?[0,0]:t.lastVelocity,h=Math.max(d[0],d[1]),g=r.filterTaps===!0&&h<(r.tapThreshold??3);i.current({xy:[e.clientX,e.clientY],initial:[...t.startXY],movement:u,delta:p,distance:d,direction:[at(p[0]),at(p[1])],velocity:m,elapsedTime:e.timeStamp-t.startTimestamp,first:!t.firstFired,last:!0,active:!1,tap:g,canceled:!1,cancel:l,event:e}),c()},m=e=>{let t=o.current;if(!t.isActive||e.pointerId!==t.pointerId)return;let r=[e.clientX-t.startXY[0],e.clientY-t.startXY[1]],a=n(r);i.current({xy:[e.clientX,e.clientY],initial:[...t.startXY],movement:a,delta:[0,0],distance:[Math.abs(a[0]),Math.abs(a[1])],direction:[0,0],velocity:[0,0],elapsedTime:e.timeStamp-t.startTimestamp,first:!t.firstFired,last:!0,active:!1,tap:!1,canceled:!0,cancel:l,event:e}),c()};return e.addEventListener(`pointerdown`,d,{signal:t.signal}),()=>{t.abort(),s.current?.abort(),s.current=null,o.current.isActive&&(o.current.isActive=!1,r(!1),document.body.style.userSelect=``,document.body.style.webkitUserSelect=``)}},[]),active:n}}function lt(){return`development`}function ut(e){return e?.props?.ref}function dt(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`}function ft(e,t=document){let n=t.querySelector(e);if(n)return n;let r=t.querySelectorAll(`*`);for(let t=0;t<r.length;t+=1){let n=r[t];if(n.shadowRoot){let t=ft(e,n.shadowRoot);if(t)return t}}return null}function pt(e,t=document){let n=[],r=t.querySelectorAll(e);n.push(...Array.from(r));let i=t.querySelectorAll(`*`);for(let t=0;t<i.length;t+=1){let r=i[t];if(r.shadowRoot){let t=pt(e,r.shadowRoot);n.push(...t)}}return n}function mt(e){if(!e)return document;let t=e.getRootNode();return t instanceof ShadowRoot||t instanceof Document?t:document}function ht(e){let t=w.Children.toArray(e);return t.length!==1||!T(t[0])?null:t[0]}function gt(e){return e}function _t(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=_t(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function vt(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=_t(e))&&(r&&(r+=` `),r+=t);return r}var yt={};function bt(e){let t={};return e.forEach(e=>{Object.entries(e).forEach(([e,n])=>{t[e]?t[e]=vt(t[e],n):t[e]=n})}),t}function xt({theme:e,classNames:t,props:n,stylesCtx:r}){return bt((Array.isArray(t)?t:[t]).map(t=>typeof t==`function`?t(e,n,r):t||yt))}function St({theme:e,styles:t,props:n,stylesCtx:r}){let i=Array.isArray(t)?t:[t],a={};for(let t of i)typeof t==`function`?Object.assign(a,t(e,n,r)):t&&Object.assign(a,t);return a}function Ct(e){return e===`auto`||e===`dark`||e===`light`}function wt({key:e=`mantine-color-scheme-value`}={}){let t;return{get:t=>{if(typeof window>`u`)return t;try{let n=window.localStorage.getItem(e);return Ct(n)?n:t}catch{return t}},set:t=>{try{window.localStorage.setItem(e,t)}catch(e){console.warn(`[@mantine/core] Local storage color scheme manager was unable to save color scheme.`,e)}},subscribe:n=>{t=t=>{t.storageArea===window.localStorage&&t.key===e&&Ct(t.newValue)&&n(t.newValue)},window.addEventListener(`storage`,t)},unsubscribe:()=>{window.removeEventListener(`storage`,t)},clear:()=>{window.localStorage.removeItem(e)}}}function Tt(e,t){return typeof e.primaryShade==`number`?e.primaryShade:t===`dark`?e.primaryShade.dark:e.primaryShade.light}function Et(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function Dt(e){let t=e.replace(`#`,``);if(t.length===3){let e=t.split(``);t=[e[0],e[0],e[1],e[1],e[2],e[2]].join(``)}if(t.length===8){let e=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:e}}let n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255,a:1}}function Ot(e){let[t,n,r,i]=e.replace(/[^0-9,./]/g,``).split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:i===void 0?1:i}}function kt(e){let t=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!t)return{r:0,g:0,b:0,a:1};let n=parseInt(t[1],10),r=parseInt(t[2],10)/100,i=parseInt(t[3],10)/100,a=t[5]?parseFloat(t[5]):void 0,o=(1-Math.abs(2*i-1))*r,s=n/60,c=o*(1-Math.abs(s%2-1)),l=i-o/2,u,d,f;return s>=0&&s<1?(u=o,d=c,f=0):s>=1&&s<2?(u=c,d=o,f=0):s>=2&&s<3?(u=0,d=o,f=c):s>=3&&s<4?(u=0,d=c,f=o):s>=4&&s<5?(u=c,d=0,f=o):(u=o,d=0,f=c),{r:Math.round((u+l)*255),g:Math.round((d+l)*255),b:Math.round((f+l)*255),a:a||1}}function At(e){return Et(e)?Dt(e):e.startsWith(`rgb`)?Ot(e):e.startsWith(`hsl`)?kt(e):{r:0,g:0,b:0,a:1}}function jt(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function Mt(e){let t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function Nt(e){if(e.startsWith(`oklch(`))return(Mt(e)||0)/100;let{r:t,g:n,b:r}=At(e),i=t/255,a=n/255,o=r/255,s=jt(i),c=jt(a),l=jt(o);return .2126*s+.7152*c+.0722*l}function Pt(e,t=.179){return!e.startsWith(`var(`)&&Nt(e)>t}function Ft({color:e,theme:t,colorScheme:n}){if(typeof e!=`string`)throw Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e===`bright`)return{color:e,value:n===`dark`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Pt(n===`dark`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-bright`};if(e===`dimmed`)return{color:e,value:n===`dark`?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Pt(n===`dark`?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:`--mantine-color-dimmed`};if(e===`white`||e===`black`)return{color:e,value:e===`white`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Pt(e===`white`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};let[r,i]=e.split(`.`),a=i?Number(i):void 0,o=r in t.colors;if(o){let e=a===void 0?t.colors[r][Tt(t,n||`light`)]:t.colors[r][a];return{color:r,value:e,shade:a,isThemeColor:o,isLight:Pt(e,t.luminanceThreshold),variable:i?`--mantine-color-${r}-${a}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:o,isLight:Pt(e,t.luminanceThreshold),shade:a,variable:void 0}}function It(e,t){let n=Ft({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function Lt(e){return!!e&&typeof e==`object`&&`mantine-virtual-color`in e}function Rt(e,t){if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, black ${t*100}%)`;let{r:n,g:r,b:i,a}=At(e),o=1-t,s=e=>Math.round(e*o);return`rgba(${s(n)}, ${s(r)}, ${s(i)}, ${a})`}function zt(e,t){let n={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},r=It(n.from,t),i=It(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${i} 100%)`}function Bt(e,t){if(typeof e!=`string`||t>1||t<0)return`rgba(0, 0, 0, 1)`;if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, transparent ${(1-t)*100}%)`;if(e.startsWith(`oklch`))return e.includes(`/`)?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(`)`,` / ${t})`);let{r:n,g:r,b:i}=At(e);return`rgba(${n}, ${r}, ${i}, ${t})`}var Vt=Bt,Ht=({color:e,theme:t,variant:n,gradient:r,autoContrast:i})=>{let a=Ft({color:e,theme:t}),o=typeof i==`boolean`?i:t.autoContrast;if(n===`none`)return{background:`transparent`,hover:`transparent`,color:`inherit`,border:`none`};if(n===`filled`){let n=a.isThemeColor&&a.shade===void 0&&Lt(t.colors[a.color]),r=o?n?`var(--mantine-color-${a.color}-contrast)`:a.isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`:`var(--mantine-color-white)`;return a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:r,border:`${v(1)} solid transparent`}:{background:`var(--mantine-color-${a.color}-${a.shade})`,hover:`var(--mantine-color-${a.color}-${a.shade===9?8:a.shade+1})`,color:r,border:`${v(1)} solid transparent`}:{background:e,hover:Rt(e,.1),color:r,border:`${v(1)} solid transparent`}}if(n===`light`){if(a.isThemeColor){if(a.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${v(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:n,hover:Rt(n,.1),color:`var(--mantine-color-${a.color}-light-color)`,border:`${v(1)} solid transparent`}}return{background:Bt(e,.1),hover:Bt(e,.12),color:e,border:`${v(1)} solid transparent`}}if(n===`outline`)return a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${v(1)} solid var(--mantine-color-${e}-outline)`}:{background:`transparent`,hover:Bt(t.colors[a.color][a.shade],.05),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${v(1)} solid var(--mantine-color-${a.color}-${a.shade})`}:{background:`transparent`,hover:Bt(e,.05),color:e,border:`${v(1)} solid ${e}`};if(n===`subtle`){if(a.isThemeColor){if(a.shade===void 0)return{background:`transparent`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${v(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:`transparent`,hover:Bt(n,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${v(1)} solid transparent`}}return{background:`transparent`,hover:Bt(e,.12),color:e,border:`${v(1)} solid transparent`}}return n===`transparent`?a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${e}-light-color)`,border:`${v(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${v(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:e,border:`${v(1)} solid transparent`}:n===`white`?a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-white)`,hover:Rt(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${v(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:Rt(t.white,.01),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${v(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:Rt(t.white,.01),color:e,border:`${v(1)} solid transparent`}:n===`gradient`?{background:zt(r,t),hover:zt(r,t),color:`var(--mantine-color-white)`,border:`none`}:n==="default"?{background:`var(--mantine-color-default)`,hover:`var(--mantine-color-default-hover)`,color:`var(--mantine-color-default-color)`,border:`${v(1)} solid var(--mantine-color-default-border)`}:{}};function Ut({color:e,theme:t,autoContrast:n,colorScheme:r}){return(typeof n==`boolean`?n:t.autoContrast)&&Ft({color:e||t.primaryColor,theme:t,colorScheme:r}).isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`}function Wt(e,t,n){return Ut({color:n===`dark`?e.dark:e.light,theme:t,colorScheme:n,autoContrast:!0})}function Gt(e,t){let n=e.colors[e.primaryColor];return Lt(n)?e.autoContrast?Wt(n,e,t):`var(--mantine-color-white)`:Ut({color:n[Tt(e,t)],theme:e,autoContrast:null})}function Kt(e,t){return typeof e==`boolean`?e:t.autoContrast}var qt=(0,w.createContext)(null);function Jt(){let e=(0,w.use)(qt);if(!e)throw Error(`[@mantine/core] MantineProvider was not found in tree`);return e}function Yt(){return Jt().cssVariablesResolver}function Xt(){return Jt().classNamesPrefix}function Zt(){return Jt().getStyleNonce}function Qt(){return Jt().withStaticClasses}function $t(){return Jt().headless}function en(){return Jt().stylesTransform?.sx}function tn(){return Jt().stylesTransform?.styles}function nn(){return Jt().env||`default`}function rn(){return Jt().deduplicateInlineStyles}function an(e){let t=document.createElement(`style`);return t.setAttribute(`data-mantine-styles`,`inline`),t.innerHTML=`*, *::before, *::after {transition: none !important;}`,t.setAttribute(`data-mantine-disable-transition`,`true`),e&&t.setAttribute(`nonce`,e),document.head.appendChild(t),()=>document.querySelectorAll(`[data-mantine-disable-transition]`).forEach(e=>e.remove())}function on({keepTransitions:e}={}){let t=(0,w.useRef)(P),n=(0,w.useRef)(-1),r=(0,w.use)(qt),i=Zt(),a=(0,w.useRef)(i?.());if(!r)throw Error(`[@mantine/core] MantineProvider was not found in tree`);let o=i=>{r.setColorScheme(i),t.current=e?()=>{}:an(a.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},s=()=>{r.clearColorScheme(),t.current=e?()=>{}:an(a.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},c=de(`light`,{getInitialValueInEffect:!1}),l=r.colorScheme===`auto`?c:r.colorScheme,u=(0,w.useCallback)(()=>o(l===`light`?`dark`:`light`),[o,l]);return(0,w.useEffect)(()=>()=>{t.current?.(),window.clearTimeout(n.current)},[]),{colorScheme:r.colorScheme,setColorScheme:o,clearColorScheme:s,toggleColorScheme:u}}function sn(e,t){let n=typeof window<`u`&&`matchMedia`in window&&window.matchMedia(`(prefers-color-scheme: dark)`)?.matches,r=e===`auto`?n?`dark`:`light`:e;t()?.setAttribute(`data-mantine-color-scheme`,r)}function cn({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){let i=(0,w.useRef)(null),[a,o]=(0,w.useState)(()=>e.get(t)),s=r||a,c=(0,w.useCallback)(t=>{r||(sn(t,n),o(t),e.set(t))},[e.set,s,r]),l=(0,w.useCallback)(()=>{o(t),sn(t,n),e.clear()},[e.clear,t]);return(0,w.useEffect)(()=>(e.subscribe(c),e.unsubscribe),[e.subscribe,e.unsubscribe]),fe(()=>{sn(e.get(t),n)},[]),(0,w.useEffect)(()=>{if(r)return sn(r,n),()=>{};r===void 0&&sn(a,n),typeof window<`u`&&`matchMedia`in window&&(i.current=window.matchMedia(`(prefers-color-scheme: dark)`));let e=e=>{a===`auto`&&sn(e.matches?`dark`:`light`,n)};return i.current?.addEventListener(`change`,e),()=>i.current?.removeEventListener(`change`,e)},[a,r]),{colorScheme:s,setColorScheme:c,clearColorScheme:l}}var ln=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),un=o(((e,t)=>{t.exports=ln()})),dn={dark:[`#C9C9C9`,`#b8b8b8`,`#828282`,`#696969`,`#424242`,`#3b3b3b`,`#2e2e2e`,`#242424`,`#1f1f1f`,`#141414`],gray:[`#f8f9fa`,`#f1f3f5`,`#e9ecef`,`#dee2e6`,`#ced4da`,`#adb5bd`,`#868e96`,`#495057`,`#343a40`,`#212529`],red:[`#fff5f5`,`#ffe3e3`,`#ffc9c9`,`#ffa8a8`,`#ff8787`,`#ff6b6b`,`#fa5252`,`#f03e3e`,`#e03131`,`#c92a2a`],pink:[`#fff0f6`,`#ffdeeb`,`#fcc2d7`,`#faa2c1`,`#f783ac`,`#f06595`,`#e64980`,`#d6336c`,`#c2255c`,`#a61e4d`],grape:[`#f8f0fc`,`#f3d9fa`,`#eebefa`,`#e599f7`,`#da77f2`,`#cc5de8`,`#be4bdb`,`#ae3ec9`,`#9c36b5`,`#862e9c`],violet:[`#f3f0ff`,`#e5dbff`,`#d0bfff`,`#b197fc`,`#9775fa`,`#845ef7`,`#7950f2`,`#7048e8`,`#6741d9`,`#5f3dc4`],indigo:[`#edf2ff`,`#dbe4ff`,`#bac8ff`,`#91a7ff`,`#748ffc`,`#5c7cfa`,`#4c6ef5`,`#4263eb`,`#3b5bdb`,`#364fc7`],blue:[`#e7f5ff`,`#d0ebff`,`#a5d8ff`,`#74c0fc`,`#4dabf7`,`#339af0`,`#228be6`,`#1c7ed6`,`#1971c2`,`#1864ab`],cyan:[`#e3fafc`,`#c5f6fa`,`#99e9f2`,`#66d9e8`,`#3bc9db`,`#22b8cf`,`#15aabf`,`#1098ad`,`#0c8599`,`#0b7285`],teal:[`#e6fcf5`,`#c3fae8`,`#96f2d7`,`#63e6be`,`#38d9a9`,`#20c997`,`#12b886`,`#0ca678`,`#099268`,`#087f5b`],green:[`#ebfbee`,`#d3f9d8`,`#b2f2bb`,`#8ce99a`,`#69db7c`,`#51cf66`,`#40c057`,`#37b24d`,`#2f9e44`,`#2b8a3e`],lime:[`#f4fce3`,`#e9fac8`,`#d8f5a2`,`#c0eb75`,`#a9e34b`,`#94d82d`,`#82c91e`,`#74b816`,`#66a80f`,`#5c940d`],yellow:[`#fff9db`,`#fff3bf`,`#ffec99`,`#ffe066`,`#ffd43b`,`#fcc419`,`#fab005`,`#f59f00`,`#f08c00`,`#e67700`],orange:[`#fff4e6`,`#ffe8cc`,`#ffd8a8`,`#ffc078`,`#ffa94d`,`#ff922b`,`#fd7e14`,`#f76707`,`#e8590c`,`#d9480f`]},fn=`-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji`,pn={scale:1,fontSmoothing:!0,focusRing:`auto`,white:`#fff`,black:`#000`,colors:dn,primaryShade:{light:6,dark:8},primaryColor:`blue`,variantColorResolver:Ht,autoContrast:!1,luminanceThreshold:.3,fontFamily:fn,fontFamilyMonospace:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace`,respectReducedMotion:!1,cursorType:`default`,defaultGradient:{from:`blue`,to:`cyan`,deg:45},defaultRadius:`md`,activeClassName:`mantine-active`,focusClassName:``,headings:{fontFamily:fn,fontWeight:`700`,textWrap:`wrap`,sizes:{h1:{fontSize:v(34),lineHeight:`1.3`},h2:{fontSize:v(26),lineHeight:`1.35`},h3:{fontSize:v(22),lineHeight:`1.4`},h4:{fontSize:v(18),lineHeight:`1.45`},h5:{fontSize:v(16),lineHeight:`1.5`},h6:{fontSize:v(14),lineHeight:`1.5`}}},fontSizes:{xs:v(12),sm:v(14),md:v(16),lg:v(18),xl:v(20)},lineHeights:{xs:`1.4`,sm:`1.45`,md:`1.55`,lg:`1.6`,xl:`1.65`},fontWeights:{regular:`400`,medium:`600`,bold:`700`},radius:{xs:v(2),sm:v(4),md:v(8),lg:v(16),xl:v(32)},spacing:{xs:v(10),sm:v(12),md:v(16),lg:v(20),xl:v(32)},breakpoints:{xs:`36em`,sm:`48em`,md:`62em`,lg:`75em`,xl:`88em`},shadows:{xs:`0 ${v(1)} ${v(3)} rgba(0, 0, 0, 0.05), 0 ${v(1)} ${v(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${v(1)} ${v(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${v(10)} ${v(15)} ${v(-5)}, rgba(0, 0, 0, 0.04) 0 ${v(7)} ${v(7)} ${v(-5)}`,md:`0 ${v(1)} ${v(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${v(20)} ${v(25)} ${v(-5)}, rgba(0, 0, 0, 0.04) 0 ${v(10)} ${v(10)} ${v(-5)}`,lg:`0 ${v(1)} ${v(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${v(28)} ${v(23)} ${v(-7)}, rgba(0, 0, 0, 0.04) 0 ${v(12)} ${v(12)} ${v(-7)}`,xl:`0 ${v(1)} ${v(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${v(36)} ${v(28)} ${v(-7)}, rgba(0, 0, 0, 0.04) 0 ${v(17)} ${v(17)} ${v(-7)}`},other:{},components:{}},mn=`[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color`,hn=`[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }`;function gn(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function _n(e){if(!(e.primaryColor in e.colors))throw Error(mn);if(typeof e.primaryShade==`object`&&(!gn(e.primaryShade.dark)||!gn(e.primaryShade.light))||typeof e.primaryShade==`number`&&!gn(e.primaryShade))throw Error(hn)}function vn(e,t){if(!t)return _n(e),e;let n=f(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(n.headings={...n.headings,fontFamily:t.fontFamily}),_n(n),n}var G=un(),yn=(0,w.createContext)(null),bn=()=>(0,w.use)(yn)||pn;function xn(){let e=(0,w.use)(yn);if(!e)throw Error(`@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app`);return e}function Sn({theme:e,children:t,inherit:n=!0}){let r=bn(),i=(0,w.useMemo)(()=>vn(n?r:pn,e),[e,r,n]);return(0,G.jsx)(yn,{value:i,children:t})}Sn.displayName=`@mantine/core/MantineThemeProvider`;function Cn(e){return Object.entries(e).map(([e,t])=>`${e}: ${t};`).join(``)}function wn(e,t){let n=t?[t]:[`:root`,`:host`],r=Cn(e.variables),i=r?`${n.join(`, `)}{${r}}`:``,a=Cn(e.dark),o=Cn(e.light),s=e=>n.map(t=>t===`:host`?`${t}([data-mantine-color-scheme="${e}"])`:`${t}[data-mantine-color-scheme="${e}"]`).join(`, `);return`${i}\n\n${a?`${s(`dark`)}{${a}}`:``}\n\n${o?`${s(`light`)}{${o}}`:``}`}function Tn({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:i=!0}){if(!e.colors[t])return{};if(n===`light`){let n=Tt(e,`light`),a={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${n===9?8:n+1})`,[`--mantine-color-${r}-light`]:`var(--mantine-color-${r}-1)`,[`--mantine-color-${r}-light-hover`]:`var(--mantine-color-${r}-2)`,[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-9)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-outline-hover`]:Vt(e.colors[t][n],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...a}:a}let a=Tt(e,`dark`),o={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+1})`,[`--mantine-color-${r}-light`]:Rt(e.colors[t][9],.5),[`--mantine-color-${r}-light-hover`]:Rt(e.colors[t][9],.3),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-0)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(a-4,0)})`,[`--mantine-color-${r}-outline-hover`]:Vt(e.colors[t][Math.max(a-4,0)],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...o}:o}function En(e,t,n){u(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}var Dn=e=>{let t=Tt(e,`light`),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:v(e.defaultRadius),r={variables:{"--mantine-z-index-app":`100`,"--mantine-z-index-modal":`200`,"--mantine-z-index-popover":`300`,"--mantine-z-index-overlay":`400`,"--mantine-z-index-max":`9999`,"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?`antialiased`:`unset`,"--mantine-moz-font-smoothing":e.fontSmoothing?`grayscale`:`unset`,"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":`light`,"--mantine-primary-color-contrast":Gt(e,`light`),"--mantine-color-bright":`var(--mantine-color-black)`,"--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":`var(--mantine-color-red-6)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-gray-5)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":`var(--mantine-color-white)`,"--mantine-color-default-hover":`var(--mantine-color-gray-0)`,"--mantine-color-default-color":`var(--mantine-color-black)`,"--mantine-color-default-border":`var(--mantine-color-gray-4)`,"--mantine-color-dimmed":`var(--mantine-color-gray-6)`,"--mantine-color-disabled":`var(--mantine-color-gray-2)`,"--mantine-color-disabled-color":`var(--mantine-color-gray-5)`,"--mantine-color-disabled-border":`var(--mantine-color-gray-3)`},dark:{"--mantine-color-scheme":`dark`,"--mantine-primary-color-contrast":Gt(e,`dark`),"--mantine-color-bright":`var(--mantine-color-white)`,"--mantine-color-text":`var(--mantine-color-dark-0)`,"--mantine-color-body":`var(--mantine-color-dark-7)`,"--mantine-color-error":`var(--mantine-color-red-8)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-dark-3)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":`var(--mantine-color-dark-6)`,"--mantine-color-default-hover":`var(--mantine-color-dark-5)`,"--mantine-color-default-color":`var(--mantine-color-white)`,"--mantine-color-default-border":`var(--mantine-color-dark-4)`,"--mantine-color-dimmed":`var(--mantine-color-dark-2)`,"--mantine-color-disabled":`var(--mantine-color-dark-6)`,"--mantine-color-disabled-color":`var(--mantine-color-dark-3)`,"--mantine-color-disabled-border":`var(--mantine-color-dark-4)`}};En(r.variables,e.breakpoints,`breakpoint`),En(r.variables,e.spacing,`spacing`),En(r.variables,e.fontSizes,`font-size`),En(r.variables,e.lineHeights,`line-height`),En(r.variables,e.shadows,`shadow`),En(r.variables,e.radius,`radius`),En(r.variables,e.fontWeights,`font-weight`),e.colors[e.primaryColor].forEach((t,n)=>{r.variables[`--mantine-primary-color-${n}`]=`var(--mantine-color-${e.primaryColor}-${n})`}),u(e.colors).forEach(t=>{let n=e.colors[t];Lt(n)?(Object.assign(r.light,Tn({theme:e,name:n.name,color:n.light,colorScheme:`light`,withColorValues:!0})),Object.assign(r.dark,Tn({theme:e,name:n.name,color:n.dark,colorScheme:`dark`,withColorValues:!0})),r.light[`--mantine-color-${n.name}-contrast`]=Wt(n,e,`light`),r.dark[`--mantine-color-${n.name}-contrast`]=Wt(n,e,`dark`)):(n.forEach((e,n)=>{r.variables[`--mantine-color-${t}-${n}`]=e}),Object.assign(r.light,Tn({theme:e,color:t,colorScheme:`light`,withColorValues:!1})),Object.assign(r.dark,Tn({theme:e,color:t,colorScheme:`dark`,withColorValues:!1})))});let i=e.headings.sizes;return u(i).forEach(t=>{r.variables[`--mantine-${t}-font-size`]=i[t].fontSize,r.variables[`--mantine-${t}-line-height`]=i[t].lineHeight,r.variables[`--mantine-${t}-font-weight`]=i[t].fontWeight||e.headings.fontWeight}),r};function On(){let e=xn(),t=Zt(),n=u(e.breakpoints).reduce((t,n)=>{let r=e.breakpoints[n].includes(`px`),i=h(e.breakpoints[n]);return`${t}@media (max-width: ${r?`${i-.1}px`:y(i-.1)}) {.mantine-visible-from-${n} {display: none !important;}}@media (min-width: ${r?`${i}px`:y(i)}) {.mantine-hidden-from-${n} {display: none !important;}}`},``);return(0,G.jsx)(`style`,{"data-mantine-styles":`classes`,nonce:t?.(),dangerouslySetInnerHTML:{__html:n}})}function kn({theme:e,generator:t}){let n=Dn(e),r=t?.(e);return r?f(n,r):n}var An=Dn(pn);function jn(e){let t={variables:{},light:{},dark:{}};return u(e.variables).forEach(n=>{An.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),u(e.light).forEach(n=>{An.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),u(e.dark).forEach(n=>{An.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function Mn(e){return wn({variables:{},dark:{"--mantine-color-scheme":`dark`},light:{"--mantine-color-scheme":`light`}},e)}function Nn({cssVariablesSelector:e,deduplicateCssVariables:t}){let n=xn(),r=Zt(),i=kn({theme:n,generator:Yt()}),a=(e===void 0||e===`:root`||e===`:host`)&&t,o=wn(a?jn(i):i,e);return o?(0,G.jsx)(`style`,{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${o}${a?``:Mn(e)}`}}):null}Nn.displayName=`@mantine/CssVariables`;function Pn({respectReducedMotion:e,getRootElement:t}){fe(()=>{e&&t()?.setAttribute(`data-respect-reduced-motion`,`true`)},[e])}function Fn({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:i=!0,deduplicateCssVariables:a=!0,withCssVariables:o=!0,cssVariablesSelector:s,classNamesPrefix:c=`mantine`,colorSchemeManager:l=wt(),defaultColorScheme:u=`light`,getRootElement:d=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:p,stylesTransform:m,env:h,deduplicateInlineStyles:g=!1}){let{colorScheme:_,setColorScheme:v,clearColorScheme:y}=cn({defaultColorScheme:u,forceColorScheme:p,manager:l,getRootElement:d});return Pn({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:d}),(0,G.jsx)(qt,{value:{colorScheme:_,setColorScheme:v,clearColorScheme:y,getRootElement:d,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:s??`:root`,withStaticClasses:r,stylesTransform:m,env:h,deduplicateInlineStyles:g},children:(0,G.jsxs)(Sn,{theme:e,children:[o&&(0,G.jsx)(Nn,{cssVariablesSelector:s,deduplicateCssVariables:a}),i&&(0,G.jsx)(On,{}),t]})})}Fn.displayName=`@mantine/core/MantineProvider`;function K(e,t,n){let r=xn(),i=(Array.isArray(e)?e:[e]).filter(Boolean),a={};for(let e of i){let t=r.components[e]?.defaultProps,n=typeof t==`function`?t(r):t;n&&(a={...a,...n})}return{...t,...a,...b(n)}}function In(e){return e}function Ln({classNames:e,styles:t,props:n,stylesCtx:r}){let i=xn();return{resolvedClassNames:e===void 0?void 0:xt({theme:i,classNames:e,props:n,stylesCtx:r||void 0}),resolvedStyles:t===void 0?void 0:St({theme:i,styles:t,props:n,stylesCtx:r||void 0})}}var Rn={always:`mantine-focus-always`,auto:`mantine-focus-auto`,never:`mantine-focus-never`};function zn({theme:e,options:t,unstyled:n}){return vt(t?.focusable&&!n&&(e.focusClassName||Rn[e.focusRing]),t?.active&&!n&&e.activeClassName)}function Bn(e,t,n=1){if(Object.is(e,t))return!0;if(n===0||typeof e!=`object`||typeof t!=`object`||e===null||t===null)return!1;if(Array.isArray(e)||Array.isArray(t)){if(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r+=1)if(!Bn(e[r],t[r],n-1))return!1;return!0}let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let i of r)if(!Object.hasOwn(t,i)||!Bn(e[i],t[i],n-1))return!1;return!0}function Vn({selector:e,stylesCtx:t,options:n,props:r,theme:i}){return xt({theme:i,classNames:n?.classNames,props:n?.props||r,stylesCtx:t})[e]}function Hn({selector:e,stylesCtx:t,theme:n,classNames:r,props:i}){return xt({theme:n,classNames:r,props:i,stylesCtx:t})[e]}function Un({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function Wn({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function Gn({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return r===!1?[]:e.map(e=>`${t}-${e}-${n}`)}function Kn({options:e,classes:t,selector:n,unstyled:r}){return e?.variant&&!r?t[`${n}--${e.variant}`]:void 0}function qn({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:i,resolvedClassNames:a,resolvedThemeClassNames:o,classes:s,unstyled:c,className:l,rootSelector:u,props:d,stylesCtx:f,withStaticClasses:p,headless:m,transformedStyles:h}){return vt(zn({theme:e,options:t,unstyled:c||m}),o.map(e=>e[r]),Kn({options:t,classes:s,selector:r,unstyled:c||m}),a[r],Hn({selector:r,stylesCtx:f,theme:e,classNames:h,props:d}),Vn({selector:r,stylesCtx:f,options:t,props:d,theme:e}),Un({rootSelector:u,selector:r,className:l}),Wn({selector:r,classes:s,unstyled:c||m}),p&&!m&&Gn({themeName:n,classNamesPrefix:i,selector:r,withStaticClass:t?.withStaticClass}),t?.className)}function Jn({style:e,theme:t}){return Array.isArray(e)?e.reduce((e,n)=>({...e,...Jn({style:n,theme:t})}),{}):typeof e==`function`?e(t):e??{}}function Yn({theme:e,selector:t,options:n,props:r,stylesCtx:i,rootSelector:a,withStylesTransform:o,resolvedStyles:s,resolvedThemeStyles:c,resolvedVars:l,resolvedRootStyle:u}){return{...c[t],...s[t],...!o&&St({theme:e,styles:n?.styles,props:n?.props||r,stylesCtx:i})[t],...l[t],...a===t?u:null,...Jn({style:n?.style,theme:e})}}function Xn(e){return e.reduce((e,t)=>(t&&Object.keys(t).forEach(n=>{e[n]={...e[n],...b(t[n])}}),e),{})}function Zn({props:e,stylesCtx:t,themeName:n,theme:r}){let i=tn()?.();return{getTransformedStyles:a=>i?[...a.map(n=>i(n,{props:e,theme:r,ctx:t})),...n.map(n=>i(r.components[n]?.styles,{props:e,theme:r,ctx:t}))].filter(Boolean):[],withStylesTransform:!!i}}function Qn({name:e,classes:t,props:n,stylesCtx:r,className:i,style:a,rootSelector:o=`root`,unstyled:s,classNames:c,styles:l,vars:u,varsResolver:d,attributes:f,stable:p}){let m=xn(),h=Xt(),g=Qt(),_=$t(),v=(Array.isArray(e)?e:[e]).filter(e=>e),{withStylesTransform:y,getTransformedStyles:b}=Zn({props:n,stylesCtx:r,themeName:v,theme:m}),x=xt({theme:m,classNames:c,props:n,stylesCtx:r}),S=v.map(e=>xt({theme:m,classNames:m.components[e]?.classNames,props:n,stylesCtx:r})),C=y?{}:St({theme:m,styles:l,props:n,stylesCtx:r}),w={};if(!y)for(let e of v){let t=St({theme:m,styles:m.components[e]?.styles,props:n,stylesCtx:r});for(let e of Object.keys(t))w[e]={...w[e],...t[e]}}let T=Xn([_?{}:d?.(m,n,r),...v.map(e=>m.components?.[e]?.vars?.(m,n,r)),u?.(m,n,r)]),E=Jn({style:a,theme:m});return $n((e,a)=>({...f?.[e],className:qn({theme:m,options:a,themeName:v,selector:e,classNamesPrefix:h,resolvedClassNames:x,resolvedThemeClassNames:S,classes:t,unstyled:s,className:i,rootSelector:o,props:n,stylesCtx:r,withStaticClasses:g,headless:_,transformedStyles:b([a?.styles,l])}),style:Yn({theme:m,selector:e,options:a,props:n,stylesCtx:r,rootSelector:o,withStylesTransform:y,resolvedStyles:C,resolvedThemeStyles:w,resolvedVars:T,resolvedRootStyle:E})}),!!p,[m,h,g,_,y?n:null,t,s,i,o,f,r,x,S,C,w,T,E])}function $n(e,t,n){let r=(0,w.useRef)(null);return t?((!r.current||!Bn(r.current.deps,n,3))&&(r.current={deps:n,getStyles:e}),r.current.getStyles):e}function er(e){return u(e).reduce((t,n)=>e[n]===void 0?t:`${t}${p(n)}:${e[n]};`,``).trim()}function tr({selector:e,styles:t,media:n,container:r}){let i=t?er(t):``,a=Array.isArray(n)?n.map(t=>`@media${t.query}{${e}{${er(t.styles)}}}`):[],o=Array.isArray(r)?r.map(t=>`@container ${t.query}{${e}{${er(t.styles)}}}`):[];return`${i?`${e}{${i}}`:``}${a.join(``)}${o.join(``)}`.trim()}function nr(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n)|0;return(t>>>0).toString(36)}function rr({deduplicate:e,...t}){let n=Zt(),r=tr(t);return e?(0,G.jsx)(`style`,{href:`mantine-${nr(r)}`,precedence:`mantine`,nonce:n?.(),children:r}):(0,G.jsx)(`style`,{"data-mantine-styles":`inline`,nonce:n?.(),dangerouslySetInnerHTML:{__html:r}})}function ir(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n)|0;return(t>>>0).toString(36)}function ar(e,t){return`__mdi__-${ir(`${e?er(e):``}|${Array.isArray(t)?t.map(e=>`${e.query}:${er(e.styles)}`).join(`|`):``}`)}`}function or(e){let{m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:_,pr:v,pe:y,ps:x,pis:S,pie:C,bd:w,bdrs:T,bg:E,c:D,opacity:O,ff:k,fz:A,fw:j,lts:M,ta:N,lh:P,fs:F,tt:I,td:L,w:R,miw:z,maw:ee,h:B,mih:V,mah:te,bgsz:ne,bgp:H,bgr:re,bga:ie,pos:ae,top:U,left:W,bottom:oe,right:se,inset:ce,display:le,flex:ue,hiddenFrom:de,visibleFrom:fe,lightHidden:pe,darkHidden:me,sx:he,...ge}=e;return{styleProps:b({m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:_,pr:v,pis:S,pie:C,pe:y,ps:x,bd:w,bg:E,c:D,opacity:O,ff:k,fz:A,fw:j,lts:M,ta:N,lh:P,fs:F,tt:I,td:L,w:R,miw:z,maw:ee,h:B,mih:V,mah:te,bgsz:ne,bgp:H,bgr:re,bga:ie,pos:ae,top:U,left:W,bottom:oe,right:se,inset:ce,display:le,flex:ue,bdrs:T,hiddenFrom:de,visibleFrom:fe,lightHidden:pe,darkHidden:me,sx:he}),rest:ge}}var sr={m:{type:`spacing`,property:`margin`},mt:{type:`spacing`,property:`marginTop`},mb:{type:`spacing`,property:`marginBottom`},ml:{type:`spacing`,property:`marginLeft`},mr:{type:`spacing`,property:`marginRight`},ms:{type:`spacing`,property:`marginInlineStart`},me:{type:`spacing`,property:`marginInlineEnd`},mis:{type:`spacing`,property:`marginInlineStart`},mie:{type:`spacing`,property:`marginInlineEnd`},mx:{type:`spacing`,property:`marginInline`},my:{type:`spacing`,property:`marginBlock`},p:{type:`spacing`,property:`padding`},pt:{type:`spacing`,property:`paddingTop`},pb:{type:`spacing`,property:`paddingBottom`},pl:{type:`spacing`,property:`paddingLeft`},pr:{type:`spacing`,property:`paddingRight`},ps:{type:`spacing`,property:`paddingInlineStart`},pe:{type:`spacing`,property:`paddingInlineEnd`},pis:{type:`spacing`,property:`paddingInlineStart`},pie:{type:`spacing`,property:`paddingInlineEnd`},px:{type:`spacing`,property:`paddingInline`},py:{type:`spacing`,property:`paddingBlock`},bd:{type:`border`,property:`border`},bdrs:{type:`radius`,property:`borderRadius`},bg:{type:`color`,property:`background`},c:{type:`textColor`,property:`color`},opacity:{type:`identity`,property:`opacity`},ff:{type:`fontFamily`,property:`fontFamily`},fz:{type:`fontSize`,property:`fontSize`},fw:{type:`identity`,property:`fontWeight`},lts:{type:`size`,property:`letterSpacing`},ta:{type:`identity`,property:`textAlign`},lh:{type:`lineHeight`,property:`lineHeight`},fs:{type:`identity`,property:`fontStyle`},tt:{type:`identity`,property:`textTransform`},td:{type:`identity`,property:`textDecoration`},w:{type:`spacing`,property:`width`},miw:{type:`spacing`,property:`minWidth`},maw:{type:`spacing`,property:`maxWidth`},h:{type:`spacing`,property:`height`},mih:{type:`spacing`,property:`minHeight`},mah:{type:`spacing`,property:`maxHeight`},bgsz:{type:`size`,property:`backgroundSize`},bgp:{type:`identity`,property:`backgroundPosition`},bgr:{type:`identity`,property:`backgroundRepeat`},bga:{type:`identity`,property:`backgroundAttachment`},pos:{type:`identity`,property:`position`},top:{type:`size`,property:`top`},left:{type:`size`,property:`left`},bottom:{type:`size`,property:`bottom`},right:{type:`size`,property:`right`},inset:{type:`size`,property:`inset`},display:{type:`identity`,property:`display`},flex:{type:`identity`,property:`flex`}};function cr(e,t){let n=Ft({color:e,theme:t});return n.color===`dimmed`?`var(--mantine-color-dimmed)`:n.color===`bright`?`var(--mantine-color-bright)`:n.variable?`var(${n.variable})`:n.color}function lr(e,t){let n=Ft({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:cr(e,t)}function ur(e,t){if(typeof e==`number`)return v(e);if(typeof e==`string`){let[n,r,...i]=e.split(` `).filter(e=>e.trim()!==``),a=`${v(n)}`;return r&&(a+=` ${r}`),i.length>0&&(a+=` ${cr(i.join(` `),t)}`),a.trim()}return e}var dr={text:`var(--mantine-font-family)`,mono:`var(--mantine-font-family-monospace)`,monospace:`var(--mantine-font-family-monospace)`,heading:`var(--mantine-font-family-headings)`,headings:`var(--mantine-font-family-headings)`};function fr(e){return typeof e==`string`&&e in dr?dr[e]:e}var pr=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function mr(e,t){return typeof e==`string`&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e==`string`&&pr.includes(e)?`var(--mantine-${e}-font-size)`:typeof e==`number`||typeof e==`string`?v(e):e}function hr(e){return e}var gr=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function _r(e,t){return typeof e==`string`&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e==`string`&&gr.includes(e)?`var(--mantine-${e}-line-height)`:e}function vr(e,t){return typeof e==`string`&&e in t.radius?`var(--mantine-radius-${e})`:typeof e==`number`||typeof e==`string`?v(e):e}function yr(e){return typeof e==`number`?v(e):e}function br(e,t){if(typeof e==`number`)return v(e);if(typeof e==`string`){let n=e.replace(`-`,``);if(!(n in t.spacing))return v(e);let r=`--mantine-spacing-${n}`;return e.startsWith(`-`)?`calc(var(${r}) * -1)`:`var(${r})`}return e}var xr={color:cr,textColor:lr,fontSize:mr,spacing:br,radius:vr,identity:hr,size:yr,lineHeight:_r,fontFamily:fr,border:ur};function Sr(e){return e.replace(`(min-width: `,``).replace(`em)`,``)}function Cr({media:e,...t}){let n=Object.keys(e).sort((e,t)=>Number(Sr(e))-Number(Sr(t))).map(t=>({query:t,styles:e[t]}));return{...t,media:n}}function wr(e){if(typeof e!=`object`||!e)return!1;let t=Object.keys(e);return t.length!==1||t[0]!==`base`}function Tr(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function Er(e){return typeof e==`object`&&e?u(e).filter(e=>e!==`base`):[]}function Dr(e,t){return typeof e==`object`&&e&&t in e?e[t]:e}function Or({styleProps:e,data:t,theme:n}){return Cr(u(e).reduce((r,i)=>{if(i===`hiddenFrom`||i===`visibleFrom`||i===`sx`)return r;let a=t[i],o=Array.isArray(a.property)?a.property:[a.property],s=Tr(e[i]);if(!wr(e[i]))return o.forEach(e=>{r.inlineStyles[e]=xr[a.type](s,n)}),r;r.hasResponsiveStyles=!0;let c=Er(e[i]);return o.forEach(t=>{s!=null&&(r.styles[t]=xr[a.type](s,n)),c.forEach(o=>{let s=`(min-width: ${n.breakpoints[o]})`;r.media[s]={...r.media[s],[t]:xr[a.type](Dr(e[i],o),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function kr(){return`__m__-${(0,w.useId)().replace(/[:«»]/g,``)}`}function Ar(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...Ar(n,t)}),{}):typeof e==`function`?e(t):e??{}}function jr(e){return e}var Mr=jr;function Nr(e){return e}function q(e){let t=e;return t.extend=Nr,t.withProps=e=>{let n=n=>(0,G.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t}function Pr(e){return q(e)}function Fr(e){let t=e;return t.withProps=e=>{let n=n=>(0,G.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t.extend=Nr,t}function Ir(e){return`data-${(e.startsWith(`data-`)?e.slice(5):e).replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}`}function Lr(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r===void 0||r===``||r===!1||r===null||(t[Ir(n)]=e[n]),t},{})}function Rr(e){return e?typeof e==`string`?{[Ir(e)]:!0}:Array.isArray(e)?[...e].reduce((e,t)=>({...e,...Rr(t)}),{}):Lr(e):null}function zr(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...zr(n,t)}),{}):typeof e==`function`?e(t):e??{}}function Br({theme:e,style:t,vars:n,styleProps:r}){let i=zr(t,e),a=zr(n,e);return{...i,...a,...r}}function Vr({component:e,style:t,__vars:n,className:r,variant:i,mod:a,size:o,hiddenFrom:s,visibleFrom:c,lightHidden:l,darkHidden:u,renderRoot:d,__size:f,ref:p,...m}){let h=xn(),g=e||`div`,{styleProps:_,rest:v}=or(m),y=en()?.()?.(_.sx),b=kr(),S=Or({styleProps:_,theme:h,data:sr}),C=rn(),w=C&&S.hasResponsiveStyles?ar(S.styles,S.media):b,T={ref:p,style:Br({theme:h,style:t,vars:n,styleProps:S.inlineStyles}),className:vt(r,y,{[w]:S.hasResponsiveStyles,"mantine-light-hidden":l,"mantine-dark-hidden":u,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${c}`]:c}),"data-variant":i,"data-size":x(o)?void 0:o||void 0,size:f,...Rr(a),...v};return(0,G.jsxs)(G.Fragment,{children:[S.hasResponsiveStyles&&(0,G.jsx)(rr,{selector:`.${w}`,styles:S.styles,media:S.media,deduplicate:C}),typeof d==`function`?d(T):(0,G.jsx)(g,{...T})]})}Vr.displayName=`@mantine/core/Box`;var J=Mr(Vr),Hr=(0,w.createContext)({dir:`ltr`,toggleDirection:()=>{},setDirection:()=>{}});function Ur(){return(0,w.use)(Hr)}var Wr={transitionDuration:200,transitionTimingFunction:`ease`,animateOpacity:!0,orientation:`vertical`,keepMounted:!0,keepMountedMode:`activity`},Gr=q(e=>{let{children:t,expanded:n,transitionDuration:r,transitionTimingFunction:i,style:a,onTransitionEnd:o,onTransitionStart:s,animateOpacity:c,keepMounted:l,keepMountedMode:u,ref:d,orientation:f,...p}=K(`Collapse`,Wr,e),m=nn(),h=xn(),g=Pe(),_=h.respectReducedMotion&&g?0:r,v=(f===`horizontal`?rt:et)({expanded:n,transitionDuration:_,transitionTimingFunction:i,onTransitionEnd:o,onTransitionStart:s,keepMounted:!1});if(_===0)return l===!0&&(u===`display-none`||m!==`test`)?u===`display-none`?(0,G.jsx)(J,{...p,style:{...Ar(a,h),...n?{}:{display:`none`}},ref:d,children:t}):(0,G.jsx)(w.Activity,{mode:n?`visible`:`hidden`,children:(0,G.jsx)(J,{...p,style:a,ref:d,children:t})}):n?(0,G.jsx)(J,{...p,style:a,ref:d,children:t}):null;let y=v.state===`exited`,b;return b=l===!1?y?null:t:l===!0?u===`display-none`?t:(0,G.jsx)(w.Activity,{mode:y?`hidden`:`visible`,children:t}):t,(0,G.jsx)(J,{...p,...v.getCollapseProps({style:{opacity:n||!c?1:0,transition:c?`opacity ${_}ms ${i}`:`none`,...Ar(a,h),...l&&u===`display-none`&&y?{display:`none`}:{}},ref:d}),children:b})});Gr.displayName=`@mantine/core/Collapse`;var[Kr,qr]=E(`ScrollArea.Root component was not found in tree`);function Jr(e,t){let n=(0,w.useEffectEvent)(t);fe(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e])}function Yr(e){let{style:t,...n}=e,r=qr(),[i,a]=(0,w.useState)(0),[o,s]=(0,w.useState)(0),c=!!(i&&o);return Jr(r.scrollbarX,()=>{let e=r.scrollbarX?.offsetHeight||0;r.onCornerHeightChange(e),s(e)}),Jr(r.scrollbarY,()=>{let e=r.scrollbarY?.offsetWidth||0;r.onCornerWidthChange(e),a(e)}),c?(0,G.jsx)(`div`,{...n,style:{...t,width:i,height:o}}):null}function Xr(e){let t=qr(),n=!!(t.scrollbarX&&t.scrollbarY);return t.type!==`scroll`&&n?(0,G.jsx)(Yr,{...e}):null}var Zr={scrollHideDelay:1e3,type:`hover`};function Qr(e){let{type:t,scrollHideDelay:n,scrollbars:r,getStyles:i,ref:a,...o}=K(`ScrollAreaRoot`,Zr,e),[s,c]=(0,w.useState)(null),[l,u]=(0,w.useState)(null),[d,f]=(0,w.useState)(null),[p,m]=(0,w.useState)(null),[h,g]=(0,w.useState)(null),[_,v]=(0,w.useState)(0),[y,b]=(0,w.useState)(0),[x,S]=(0,w.useState)(!1),[C,T]=(0,w.useState)(!1),E=Me(a,c);return(0,G.jsx)(Kr,{value:{type:t,scrollHideDelay:n,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:x,onScrollbarXEnabledChange:S,scrollbarY:h,onScrollbarYChange:g,scrollbarYEnabled:C,onScrollbarYEnabledChange:T,onCornerWidthChange:v,onCornerHeightChange:b,getStyles:i},children:(0,G.jsx)(J,{...o,ref:E,__vars:{"--sa-corner-width":r===`xy`?`${_}px`:`0px`,"--sa-corner-height":r===`xy`?`${y}px`:`0px`}})})}Qr.displayName=`@mantine/core/ScrollAreaRoot`;function $r(e,t){let n=e/t;return Number.isNaN(n)?0:n}function ei(e){let t=$r(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function ti(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function ni(e,[t,n]){return Math.min(n,Math.max(t,e))}function ri(e,t,n=`ltr`){let r=ei(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=ni(e,n===`ltr`?[0,o]:[o*-1,0]);return ti([0,o],[0,s])(c)}function ii(e,t,n,r=`ltr`){let i=ei(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return ti([c,l],d)(e)}function ai(e,t){return e>0&&e<t}function oi(e){return e?parseInt(e,10):0}function si(e,t,{checkForDefaultPrevented:n=!0}={}){return r=>{e?.(r),(n===!1||!r.defaultPrevented)&&t?.(r)}}var[ci,li]=E(`ScrollAreaScrollbar was not found in tree`);function ui(e){let{sizes:t,hasThumb:n,onThumbChange:r,onThumbPointerUp:i,onThumbPointerDown:a,onThumbPositionChange:o,onDragScroll:s,onWheelScroll:c,onResize:l,ref:u,...d}=e,f=qr(),[p,m]=(0,w.useState)(null),h=Me(u,m),g=(0,w.useRef)(null),_=(0,w.useRef)(``),v=t.content-t.viewport,y=(0,w.useEffectEvent)(e=>c(e,v)),b=W(o),x=oe(l,10),S=e=>{if(g.current){let t=e.clientX-g.current.left,n=e.clientY-g.current.top;s({x:t,y:n})}};return(0,w.useEffect)(()=>{if(!p)return;let e=e=>y(e);return p.addEventListener(`wheel`,e,{passive:!1}),()=>p.removeEventListener(`wheel`,e)},[p]),(0,w.useEffect)(b,[t,b]),Jr(p,x),Jr(f.content,x),(0,G.jsx)(ci,{value:{scrollbar:p,hasThumb:n,onThumbChange:W(r),onThumbPointerUp:W(i),onThumbPositionChange:b,onThumbPointerDown:W(a)},children:(0,G.jsx)(`div`,{...d,ref:h,"data-mantine-scrollbar":!0,style:{position:`absolute`,...d.style},onPointerDown:si(e.onPointerDown,e=>{e.preventDefault(),e.button===0&&(e.target.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,S(e))}),onPointerMove:si(e.onPointerMove,S),onPointerUp:si(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(e.preventDefault(),t.releasePointerCapture(e.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=_.current,g.current=null}})})}var di=e=>{let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=qr(),[s,c]=(0,w.useState)(),l=(0,w.useRef)(null),u=Me(i,l,o.onScrollbarXChange);return(0,w.useEffect)(()=>{l.current&&c(getComputedStyle(l.current))},[l]),(0,G.jsx)(ui,{"data-orientation":`horizontal`,...a,ref:u,sizes:t,style:{...r,"--sa-thumb-width":`${ei(t)}px`},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),ai(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:oi(s.paddingLeft),paddingEnd:oi(s.paddingRight)}})}})};di.displayName=`@mantine/core/ScrollAreaScrollbarX`;function fi(e){let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=qr(),[s,c]=(0,w.useState)(),l=(0,w.useRef)(null),u=Me(i,l,o.onScrollbarYChange);return(0,w.useEffect)(()=>{l.current&&c(window.getComputedStyle(l.current))},[]),(0,G.jsx)(ui,{...a,"data-orientation":`vertical`,ref:u,sizes:t,style:{"--sa-thumb-height":`${ei(t)}px`,...r},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),ai(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:oi(s.paddingTop),paddingEnd:oi(s.paddingBottom)}})}})}fi.displayName=`@mantine/core/ScrollAreaScrollbarY`;function pi(e){let{orientation:t=`vertical`,...n}=e,{dir:r}=Ur(),i=qr(),a=(0,w.useRef)(null),o=(0,w.useRef)(0),[s,c]=(0,w.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=$r(s.viewport,s.content),u={...n,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:e=>{a.current=e},onThumbPointerUp:()=>{o.current=0},onThumbPointerDown:e=>{o.current=e}},d=(e,t)=>ii(e,o.current,s,t);return t===`horizontal`?(0,G.jsx)(di,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollLeft,t=ri(e,s,r);a.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,r))}}):t===`vertical`?(0,G.jsx)(fi,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollTop,t=ri(e,s);s.scrollbar.size===0?a.current.style.setProperty(`--thumb-opacity`,`0`):a.current.style.setProperty(`--thumb-opacity`,`1`),a.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}}):null}pi.displayName=`@mantine/core/ScrollAreaScrollbarVisible`;function mi(e){let t=qr(),{forceMount:n,...r}=e,[i,a]=(0,w.useState)(!1),o=e.orientation===`horizontal`,s=oe(()=>{if(t.viewport){let e=t.viewport.offsetWidth<t.viewport.scrollWidth,n=t.viewport.offsetHeight<t.viewport.scrollHeight;a(o?e:n)}},10);return Jr(t.viewport,s),Jr(t.content,s),n||i?(0,G.jsx)(pi,{"data-state":i?`visible`:`hidden`,...r}):null}mi.displayName=`@mantine/core/ScrollAreaScrollbarAuto`;function hi(e){let{forceMount:t,...n}=e,r=qr(),[i,a]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{let{scrollArea:e}=r,t=0;if(e){let n=()=>{window.clearTimeout(t),a(!0)},i=()=>{t=window.setTimeout(()=>a(!1),r.scrollHideDelay)};return e.addEventListener(`pointerenter`,n),e.addEventListener(`pointerleave`,i),()=>{window.clearTimeout(t),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`pointerleave`,i)}}},[r.scrollArea,r.scrollHideDelay]),t||i?(0,G.jsx)(mi,{"data-state":i?`visible`:`hidden`,...n}):null}hi.displayName=`@mantine/core/ScrollAreaScrollbarHover`;function gi(e){let{forceMount:t,...n}=e,r=qr(),i=e.orientation===`horizontal`,[a,o]=(0,w.useState)(`hidden`),s=oe(()=>o(`idle`),100);return(0,w.useEffect)(()=>{if(a===`idle`){let e=window.setTimeout(()=>o(`hidden`),r.scrollHideDelay);return()=>window.clearTimeout(e)}},[a,r.scrollHideDelay]),(0,w.useEffect)(()=>{let{viewport:e}=r,t=i?`scrollLeft`:`scrollTop`;if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(o(`scrolling`),s()),n=r};return e.addEventListener(`scroll`,r),()=>e.removeEventListener(`scroll`,r)}},[r.viewport,i,s]),t||a!==`hidden`?(0,G.jsx)(pi,{"data-state":a===`hidden`?`hidden`:`visible`,...n,onPointerEnter:si(e.onPointerEnter,()=>o(`interacting`)),onPointerLeave:si(e.onPointerLeave,()=>o(`idle`))}):null}function _i(e){let{forceMount:t,...n}=e,r=qr(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=r,o=e.orientation===`horizontal`;return(0,w.useEffect)(()=>(o?i(!0):a(!0),()=>{o?i(!1):a(!1)}),[o,i,a]),r.type===`hover`?(0,G.jsx)(hi,{...n,forceMount:t}):r.type===`scroll`?(0,G.jsx)(gi,{...n,forceMount:t}):r.type===`auto`?(0,G.jsx)(mi,{...n,forceMount:t}):r.type===`always`?(0,G.jsx)(pi,{...n}):null}_i.displayName=`@mantine/core/ScrollAreaScrollbar`;function vi(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)}function yi(e){let{style:t,ref:n,...r}=e,i=qr(),a=li(),{onThumbPositionChange:o}=a,s=Me(n,a.onThumbChange),c=(0,w.useRef)(void 0),l=oe(()=>{c.current&&=(c.current(),void 0)},100);return(0,w.useEffect)(()=>{let{viewport:e}=i;if(e){let t=()=>{if(l(),!c.current){let t=vi(e,o);c.current=t,o()}};return o(),e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)}},[i.viewport,l,o]),(0,G.jsx)(`div`,{"data-state":a.hasThumb?`visible`:`hidden`,...r,ref:s,style:{width:`var(--sa-thumb-width)`,height:`var(--sa-thumb-height)`,...t},onPointerDownCapture:si(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;a.onThumbPointerDown({x:n,y:r})}),onPointerUp:si(e.onPointerUp,a.onThumbPointerUp)})}yi.displayName=`@mantine/core/ScrollAreaThumb`;function bi(e){let{forceMount:t,...n}=e,r=li();return t||r.hasThumb?(0,G.jsx)(yi,{...n}):null}bi.displayName=`@mantine/core/ScrollAreaThumb`;function xi({children:e,style:t,ref:n,onWheel:r,...i}){let a=qr(),o=Me(n,a.onViewportChange),s=e=>{if(r?.(e),a.scrollbarXEnabled&&a.viewport&&e.shiftKey){let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollWidth:i,clientWidth:o}=a.viewport,s=t<1,c=t>=n-r-1;i>o&&(s||c)&&e.stopPropagation()}};return(0,G.jsx)(J,{...i,ref:o,onWheel:s,"data-scrollarea-viewport":!0,style:{overflowX:a.scrollbarXEnabled?`scroll`:`hidden`,overflowY:a.scrollbarYEnabled?`scroll`:`hidden`,...t},children:(0,G.jsx)(`div`,{...a.getStyles(`content`),ref:a.onContentChange,children:e})})}xi.displayName=`@mantine/core/ScrollAreaViewport`;var Si={root:`m_d57069b5`,content:`m_b1336c6`,viewport:`m_c0783ff9`,viewportInner:`m_f8f631dd`,scrollbar:`m_c44ba933`,thumb:`m_d8b5e363`,corner:`m_21657268`};function Ci(){return typeof window<`u`}function wi(e){return Di(e)?(e.nodeName||``).toLowerCase():`#document`}function Ti(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ei(e){return((Di(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Di(e){return Ci()?e instanceof Node||e instanceof Ti(e).Node:!1}function Oi(e){return Ci()?e instanceof Element||e instanceof Ti(e).Element:!1}function ki(e){return Ci()?e instanceof HTMLElement||e instanceof Ti(e).HTMLElement:!1}function Ai(e){return!Ci()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Ti(e).ShadowRoot}function ji(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Hi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Mi(e){return/^(table|td|th)$/.test(wi(e))}function Ni(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Pi=/transform|translate|scale|rotate|perspective|filter/,Fi=/paint|layout|strict|content/,Ii=e=>!!e&&e!==`none`,Li;function Ri(e){let t=Oi(e)?Hi(e):e;return Ii(t.transform)||Ii(t.translate)||Ii(t.scale)||Ii(t.rotate)||Ii(t.perspective)||!Bi()&&(Ii(t.backdropFilter)||Ii(t.filter))||Pi.test(t.willChange||``)||Fi.test(t.contain||``)}function zi(e){let t=Wi(e);for(;ki(t)&&!Vi(t);){if(Ri(t))return t;if(Ni(t))return null;t=Wi(t)}return null}function Bi(){return Li??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Li}function Vi(e){return/^(html|body|#document)$/.test(wi(e))}function Hi(e){return Ti(e).getComputedStyle(e)}function Ui(e){return Oi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Wi(e){if(wi(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Ai(e)&&e.host||Ei(e);return Ai(t)?t.host:t}function Gi(e){let t=Wi(e);return Vi(t)?(e.ownerDocument||e).body:ki(t)&&ji(t)?t:Gi(t)}function Ki(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Gi(e),i=r===e.ownerDocument?.body,a=Ti(r);if(i){let e=qi(a);return t.concat(a,a.visualViewport||[],ji(r)?r:[],e&&n?Ki(e):[])}return t.concat(r,Ki(r,[],n))}function qi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var Ji=[`top`,`right`,`bottom`,`left`],Yi=Math.min,Xi=Math.max,Zi=Math.round,Qi=Math.floor,$i=e=>({x:e,y:e}),ea={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function ta(e,t,n){return Xi(e,Yi(t,n))}function na(e,t){return typeof e==`function`?e(t):e}function ra(e){return e.split(`-`)[0]}function ia(e){return e.split(`-`)[1]}function aa(e){return e===`x`?`y`:`x`}function oa(e){return e===`y`?`height`:`width`}function sa(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function ca(e){return aa(sa(e))}function la(e,t,n){n===void 0&&(n=!1);let r=ia(e),i=ca(e),a=oa(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=va(o)),[o,va(o)]}function ua(e){let t=va(e);return[da(e),t,da(t)]}function da(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var fa=[`left`,`right`],pa=[`right`,`left`],ma=[`top`,`bottom`],ha=[`bottom`,`top`];function ga(e,t,n){switch(e){case`top`:case`bottom`:return n?t?pa:fa:t?fa:pa;case`left`:case`right`:return t?ma:ha;default:return[]}}function _a(e,t,n,r){let i=ia(e),a=ga(ra(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(da)))),a}function va(e){let t=ra(e);return ea[t]+e.slice(t.length)}function ya(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function ba(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:ya(e)}function xa(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Sa(){let e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Ca(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+`/`+n}).join(` `):navigator.userAgent}function wa(){return/apple/i.test(navigator.vendor)}function Ta(){return Sa().toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints}function Ea(){return Ca().includes(`jsdom/`)}var Da=`data-floating-ui-focusable`,Oa=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`;function ka(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function Aa(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ai(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function ja(e){return`composedPath`in e?e.composedPath()[0]:e.target}function Ma(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Na(e){return e.matches(`html,body`)}function Pa(e){return e?.ownerDocument||document}function Fa(e){return ki(e)&&e.matches(Oa)}function Ia(e){if(!e||Ea())return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function La(e){return e?e.hasAttribute(Da)?e:e.querySelector(`[`+Da+`]`)||e:null}function Ra(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...Ra(e,t.id,n)])}function za(e){return`nativeEvent`in e}function Ba(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}var Va=typeof document<`u`?w.useLayoutEffect:function(){},Ha={...w};function Ua(e){let t=w.useRef(e);return Va(()=>{t.current=e}),t}var Wa=Ha.useInsertionEffect||(e=>e());function Ga(e){let t=w.useRef(()=>{});return Wa(()=>{t.current=e}),w.useCallback(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function Ka(e,t,n){let{reference:r,floating:i}=e,a=sa(t),o=ca(t),s=oa(o),c=ra(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=ia(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function qa(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=na(t,e),p=ba(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=xa(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=xa(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Ja=50,Ya=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:qa},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ka(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Ja&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Ka(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Xa=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=na(e,t)||{};if(l==null)return{};let d=ba(u),f={x:n,y:r},p=ca(i),m=oa(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Yi(d[_],T),D=Yi(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=ta(E,k,O),j=!c.arrow&&ia(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),Za=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=na(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=ra(r),_=sa(o),v=ra(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[va(o)]:ua(o)),x=p!==`none`;!d&&x&&b.push(..._a(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=la(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===sa(t)||T.every(e=>sa(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=sa(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function Qa(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $a(e){return Ji.some(t=>e[t]>=0)}var eo=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=na(e,t);switch(i){case`referenceHidden`:{let e=Qa(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:$a(e)}}}case`escaped`:{let e=Qa(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:$a(e)}}}default:return{}}}}};function to(e){let t=Yi(...e.map(e=>e.left)),n=Yi(...e.map(e=>e.top)),r=Xi(...e.map(e=>e.right)),i=Xi(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function no(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>xa(to(e)))}var ro=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=na(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=no(u),f=xa(to(u)),p=ba(s);function m(){if(d.length===2&&(d[0].left>d[1].right||d[1].left>d[0].right)&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&c<e.right+p.right&&l>e.top-p.top&&l<e.bottom+p.bottom)||f;if(d.length>=2){if(sa(n)===`y`){let e=d[0],t=d[d.length-1],r=ra(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return xa({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=ra(n)===`left`,t=Xi(...d.map(e=>e.right)),r=Yi(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom;return xa({x:r,y:a,width:t-r,height:o-a})}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},io=new Set([`left`,`top`]);async function ao(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=ra(n),s=ia(n),c=sa(n)===`y`,l=io.has(o)?-1:1,u=a&&c?-1:1,d=na(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var oo=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await ao(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},so=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=na(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=sa(i),p=aa(f),m=u[p],h=u[f],g=(e,t)=>ta(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},co=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=na(e,t),u={x:n,y:r},d=sa(i),f=aa(d),p=u[f],m=u[d],h=na(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=io.has(ra(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},lo=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=na(e,t),c=await i.detectOverflow(t,s),l=ra(n),u=ia(n),d=sa(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Yi(p-c[m],g),y=Yi(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Xi(c.left,c.right):S=p-2*Xi(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function uo(e){let t=Hi(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ki(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Zi(n)!==a||Zi(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function fo(e){return Oi(e)?e:e.contextElement}function po(e){let t=fo(e);if(!ki(t))return $i(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=uo(t),o=(a?Zi(n.width):n.width)/r,s=(a?Zi(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var mo=$i(0);function ho(e){let t=Ti(e);return!Bi()||!t.visualViewport?mo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function go(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Ti(e)}function _o(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=fo(e),o=$i(1);t&&(r?Oi(r)&&(o=po(r)):o=po(e));let s=go(a,n,r)?ho(a):$i(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Ti(a),t=Oi(r)?Ti(r):r,n=e,i=qi(n);for(;i&&t!==n;){let e=po(i),t=i.getBoundingClientRect(),r=Hi(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Ti(i),i=qi(n)}}return xa({width:u,height:d,x:c,y:l})}function vo(e,t){let n=Ui(e).scrollLeft;return t?t.left+n:_o(Ei(e)).left+n}function yo(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-vo(e,n),y:n.top+t.scrollTop}}function bo(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Ei(r),s=t?Ni(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=$i(1),u=$i(0),d=ki(r);if((d||!a)&&((wi(r)!==`body`||ji(o))&&(c=Ui(r)),d)){let e=_o(r);l=po(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?yo(o,c):$i(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function xo(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function So(e){let t=Ui(e),n=e.ownerDocument.body,r=Xi(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Xi(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+vo(e),o=-t.scrollTop;return Hi(n).direction===`rtl`&&(a+=Xi(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Co=25;function wo(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Ti(e),a=Ei(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Bi()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(vo(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Co&&(s-=o)}return{width:s,height:c,x:l,y:u}}function To(e,t){let n=_o(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=po(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Eo(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=wo(e,n,t);else if(t===`document`)r=So(Ei(e));else if(Oi(t))r=To(t,n);else{let n=ho(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return xa(r)}function Do(e,t){let n=t.get(e);if(n)return n;let r=Ki(e,[],!1).filter(e=>Oi(e)&&wi(e)!==`body`),i=null,a=Hi(e).position===`fixed`,o=a?Wi(e):e;for(;Oi(o)&&!Vi(o);){let e=Hi(o),t=Ri(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Wi(o)}return t.set(e,r),r}function Oo(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Ni(t)?[]:Do(t,this._c):[].concat(n),r],o=Eo(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Eo(t,a[e],i);s=Xi(n.top,s),c=Yi(n.right,c),l=Yi(n.bottom,l),u=Xi(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function ko(e){let{width:t,height:n}=uo(e);return{width:t,height:n}}function Ao(e,t,n){let r=ki(t),i=Ei(t),a=n===`fixed`,o=_o(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=$i(0);if((r||!a)&&((wi(t)!==`body`||ji(i))&&(s=Ui(t)),r)){let e=_o(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=vo(i));let l=i&&!r&&!a?yo(i,s):$i(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function jo(e){return Hi(e).position===`static`}function Mo(e,t){if(!ki(e)||Hi(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Ei(e)===n&&(n=n.ownerDocument.body),n}function No(e,t){let n=Ti(e);if(Ni(e))return n;if(!ki(e)){let t=Wi(e);for(;t&&!Vi(t);){if(Oi(t)&&!jo(t))return t;t=Wi(t)}return n}let r=Mo(e,t);for(;r&&Mi(r)&&jo(r);)r=Mo(r,t);return r&&Vi(r)&&jo(r)&&!Ri(r)?n:r||zi(e)||n}var Po=async function(e){let t=this.getOffsetParent||No,n=this.getDimensions,r=await n(e.floating);return{reference:Ao(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Fo(e){return Hi(e).direction===`rtl`}var Io={convertOffsetParentRelativeRectToViewportRelativeRect:bo,getDocumentElement:Ei,getClippingRect:Oo,getOffsetParent:No,getElementRects:Po,getClientRects:xo,getDimensions:ko,getScale:po,isElement:Oi,isRTL:Fo};function Lo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ro(e,t,n){let r=null,i,a=Ei(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Qi(d),h=Qi(a.clientWidth-(u+f)),g=Qi(a.clientHeight-(d+p)),_=Qi(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Xi(0,Yi(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Lo(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Ti(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function zo(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=fo(e),u=i||a?[...l?Ki(l):[],...t?Ki(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Ro(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?_o(e):null;c&&g();function g(){let t=_o(e);h&&!Lo(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Bo=oo,Vo=so,Ho=Za,Uo=lo,Wo=eo,Go=Xa,Ko=ro,qo=co,Jo=(e,t,n)=>{let r=new Map,i=n??{},a={...Io,...i.platform,_c:r};return Ya(e,t,{...i,platform:a})},Yo=typeof document<`u`?w.useLayoutEffect:function(){};function Xo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Xo(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Xo(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Zo(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Qo(e,t){let n=Zo(e);return Math.round(t*n)/n}function $o(e){let t=w.useRef(e);return Yo(()=>{t.current=e}),t}function es(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=w.useState(r);Xo(f,r)||p(r);let[m,h]=w.useState(null),[g,_]=w.useState(null),v=w.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=w.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=w.useRef(null),C=w.useRef(null),T=w.useRef(u),E=c!=null,D=$o(c),O=$o(i),k=$o(l),A=w.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),Jo(S.current,C.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!Xo(T.current,t)&&(T.current=t,Xe.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);Yo(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=w.useRef(!1);Yo(()=>(j.current=!0,()=>{j.current=!1}),[]),Yo(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(D.current)return D.current(b,x,A);A()}},[b,x,A,D,E]);let M=w.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),N=w.useMemo(()=>({reference:b,floating:x}),[b,x]),P=w.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=Qo(N.floating,u.x),r=Qo(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Zo(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return w.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:P}),[u,A,M,N,P])}var ts=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Go({element:r.current,padding:i}).fn(n):r?Go({element:r,padding:i}).fn(n):{}}}},ns=(e,t)=>{let n=Bo(e);return{name:n.name,fn:n.fn,options:[e,t]}},rs=(e,t)=>{let n=Vo(e);return{name:n.name,fn:n.fn,options:[e,t]}},is=(e,t)=>({fn:qo(e).fn,options:[e,t]}),as=(e,t)=>{let n=Ho(e);return{name:n.name,fn:n.fn,options:[e,t]}},os=(e,t)=>{let n=Uo(e);return{name:n.name,fn:n.fn,options:[e,t]}},ss=(e,t)=>{let n=Wo(e);return{name:n.name,fn:n.fn,options:[e,t]}},cs=(e,t)=>{let n=Ko(e);return{name:n.name,fn:n.fn,options:[e,t]}},ls=(e,t)=>{let n=ts(e);return{name:n.name,fn:n.fn,options:[e,t]}};function us(e){let t=w.useRef(void 0),n=w.useCallback(t=>{let n=e.map(e=>{if(e!=null){if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>e?.())}},e);return w.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var ds=`data-floating-ui-focusable`,fs=`active`,ps=`selected`,ms=`ArrowLeft`,hs=`ArrowRight`,gs=`ArrowUp`,_s=`ArrowDown`,vs=[ms,hs],ys=[gs,_s];[...vs,...ys];var bs={...w},xs=!1,Ss=0,Cs=()=>`floating-ui-`+Math.random().toString(36).slice(2,6)+Ss++;function ws(){let[e,t]=w.useState(()=>xs?Cs():void 0);return Va(()=>{e??t(Cs())},[]),w.useEffect(()=>{xs=!0},[]),e}var Ts=bs.useId||ws;function Es(){let e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}var Ds=w.createContext(null),Os=w.createContext(null),ks=()=>w.useContext(Ds)?.id||null,As=()=>w.useContext(Os);function js(e){return`data-floating-ui-`+e}function Ms(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}var Ns=js(`safe-polygon`);function Ps(e,t,n){if(n&&!Ba(n))return 0;if(typeof e==`number`)return e;if(typeof e==`function`){let n=e();return typeof n==`number`?n:n?.[t]}return e?.[t]}function Fs(e){return typeof e==`function`?e():e}function Is(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,dataRef:i,events:a,elements:o}=e,{enabled:s=!0,delay:c=0,handleClose:l=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=t,p=As(),m=ks(),h=Ua(l),g=Ua(c),_=Ua(n),v=Ua(d),y=w.useRef(),b=w.useRef(-1),x=w.useRef(),S=w.useRef(-1),C=w.useRef(!0),T=w.useRef(!1),E=w.useRef(()=>{}),D=w.useRef(!1),O=Ga(()=>{let e=i.current.openEvent?.type;return e?.includes(`mouse`)&&e!==`mousedown`});w.useEffect(()=>{if(!s)return;function e(e){let{open:t}=e;t||(Ms(b),Ms(S),C.current=!0,D.current=!1)}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[s,a]),w.useEffect(()=>{if(!s||!h.current||!n)return;function e(e){O()&&r(!1,e,`hover`)}let t=Pa(o.floating).documentElement;return t.addEventListener(`mouseleave`,e),()=>{t.removeEventListener(`mouseleave`,e)}},[o.floating,n,r,s,h,O]);let k=w.useCallback(function(e,t,n){t===void 0&&(t=!0),n===void 0&&(n=`hover`);let i=Ps(g.current,`close`,y.current);i&&!x.current?(Ms(b),b.current=window.setTimeout(()=>r(!1,e,n),i)):t&&(Ms(b),r(!1,e,n))},[g,r]),A=Ga(()=>{E.current(),x.current=void 0}),j=Ga(()=>{if(T.current){let e=Pa(o.floating).body;e.style.pointerEvents=``,e.removeAttribute(Ns),T.current=!1}}),M=Ga(()=>i.current.openEvent?[`click`,`mousedown`].includes(i.current.openEvent.type):!1);w.useEffect(()=>{if(!s)return;function e(e){if(Ms(b),C.current=!1,u&&!Ba(y.current)||Fs(v.current)>0&&!Ps(g.current,`open`))return;let t=Ps(g.current,`open`,y.current);t?b.current=window.setTimeout(()=>{_.current||r(!0,e,`hover`)},t):n||r(!0,e,`hover`)}function t(e){if(M()){j();return}E.current();let t=Pa(o.floating);if(Ms(S),D.current=!1,h.current&&i.current.floatingContext){n||Ms(b),x.current=h.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){j(),A(),M()||k(e,!0,`safe-polygon`)}});let r=x.current;t.addEventListener(`mousemove`,r),E.current=()=>{t.removeEventListener(`mousemove`,r)}}else(y.current!==`touch`||!Aa(o.floating,e.relatedTarget))&&k(e)}function a(e){M()||i.current.floatingContext&&(h.current==null||h.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){j(),A(),M()||k(e)}})(e))}function c(){Ms(b)}function l(e){M()||k(e,!1)}if(Oi(o.domReference)){let r=o.domReference,i=o.floating;return n&&r.addEventListener(`mouseleave`,a),f&&r.addEventListener(`mousemove`,e,{once:!0}),r.addEventListener(`mouseenter`,e),r.addEventListener(`mouseleave`,t),i&&(i.addEventListener(`mouseleave`,a),i.addEventListener(`mouseenter`,c),i.addEventListener(`mouseleave`,l)),()=>{n&&r.removeEventListener(`mouseleave`,a),f&&r.removeEventListener(`mousemove`,e),r.removeEventListener(`mouseenter`,e),r.removeEventListener(`mouseleave`,t),i&&(i.removeEventListener(`mouseleave`,a),i.removeEventListener(`mouseenter`,c),i.removeEventListener(`mouseleave`,l))}}},[o,s,e,u,f,k,A,j,r,n,_,p,g,h,i,M,v]),Va(()=>{var e;if(s&&n&&(e=h.current)!=null&&(e=e.__options)!=null&&e.blockPointerEvents&&O()){T.current=!0;let e=o.floating;if(Oi(o.domReference)&&e){var t;let n=Pa(o.floating).body;n.setAttribute(Ns,``);let r=o.domReference,i=p==null||(t=p.nodesRef.current.find(e=>e.id===m))==null||(t=t.context)==null?void 0:t.elements.floating;return i&&(i.style.pointerEvents=``),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,e.style.pointerEvents=`auto`,()=>{n.style.pointerEvents=``,r.style.pointerEvents=``,e.style.pointerEvents=``}}}},[s,n,m,o,p,h,O]),Va(()=>{n||(y.current=void 0,D.current=!1,A(),j())},[n,A,j]),w.useEffect(()=>()=>{A(),Ms(b),Ms(S),j()},[s,o.domReference,A,j]);let N=w.useMemo(()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function i(){!C.current&&!_.current&&r(!0,t,`hover`)}(!u||Ba(y.current))&&(n||Fs(v.current)===0||D.current&&e.movementX**2+e.movementY**2<2||(Ms(S),y.current===`touch`?i():(D.current=!0,S.current=window.setTimeout(i,Fs(v.current)))))}}},[u,r,n,_,v]);return w.useMemo(()=>s?{reference:N}:{},[s,N])}var Ls=()=>{},Rs=w.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Ls,setState:Ls,isInstantPhase:!1}),zs=()=>w.useContext(Rs);function Bs(e){let{children:t,delay:n,timeoutMs:r=0}=e,[i,a]=w.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),o=w.useRef(null),s=w.useCallback(e=>{a({currentId:e})},[]);return Va(()=>{i.currentId?o.current===null?o.current=i.currentId:i.isInstantPhase||a({isInstantPhase:!0}):(i.isInstantPhase&&a({isInstantPhase:!1}),o.current=null)},[i.currentId,i.isInstantPhase]),(0,G.jsx)(Rs.Provider,{value:w.useMemo(()=>({...i,setState:a,setCurrentId:s}),[i,s]),children:t})}function Vs(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,floatingId:i}=e,{id:a,enabled:o=!0}=t,s=a??i,c=zs(),{currentId:l,setCurrentId:u,initialDelay:d,setState:f,timeoutMs:p}=c;return Va(()=>{o&&l&&(f({delay:{open:1,close:Ps(d,`close`)}}),l!==s&&r(!1))},[o,s,r,f,l,d]),Va(()=>{function e(){r(!1),f({delay:d,currentId:null})}if(o&&l&&!n&&l===s){if(p){let t=window.setTimeout(e,p);return()=>{clearTimeout(t)}}e()}},[o,n,f,l,s,r,d,p]),Va(()=>{o&&u!==Ls&&n&&u(s)},[o,n,u,s]),c}function Hs(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ai(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Us(e){return`composedPath`in e?e.composedPath()[0]:e.target}var Ws={pointerdown:`onPointerDown`,mousedown:`onMouseDown`,click:`onClick`},Gs={pointerdown:`onPointerDownCapture`,mousedown:`onMouseDownCapture`,click:`onClickCapture`},Ks=e=>({escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0});function qs(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,elements:i,dataRef:a}=e,{enabled:o=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l=`pointerdown`,referencePress:u=!1,referencePressEvent:d=`pointerdown`,ancestorScroll:f=!1,bubbles:p,capture:m}=t,h=As(),g=Ga(typeof c==`function`?c:()=>!1),_=typeof c==`function`?g:c,v=w.useRef(!1),{escapeKey:y,outsidePress:b}=Ks(p),{escapeKey:x,outsidePress:S}=Ks(m),C=w.useRef(!1),T=Ga(e=>{if(!n||!o||!s||e.key!==`Escape`||C.current)return;let t=a.current.floatingContext?.nodeId,i=h?Ra(h.nodesRef.current,t):[];if(!y&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach(t=>{var n;(n=t.context)!=null&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles&&(e=!1)}),!e)return}r(!1,za(e)?e.nativeEvent:e,`escape-key`)}),E=Ga(e=>{var t;let n=()=>{var t;T(e),(t=ja(e))==null||t.removeEventListener(`keydown`,n)};(t=ja(e))==null||t.addEventListener(`keydown`,n)}),D=Ga(e=>{let t=a.current.insideReactTree;a.current.insideReactTree=!1;let n=v.current;if(v.current=!1,l===`click`&&n||t||typeof _==`function`&&!_(e))return;let o=ja(e),s=`[`+js(`inert`)+`]`,c=Pa(i.floating).querySelectorAll(s),u=Oi(o)?o:null;for(;u&&!Vi(u);){let e=Wi(u);if(Vi(e)||!Oi(e))break;u=e}if(c.length&&Oi(o)&&!Na(o)&&!Aa(o,i.floating)&&Array.from(c).every(e=>!Aa(u,e)))return;if(ki(o)&&A){let t=Vi(o),n=Hi(o),r=/auto|scroll/,i=t||r.test(n.overflowX),a=t||r.test(n.overflowY),s=i&&o.clientWidth>0&&o.scrollWidth>o.clientWidth,c=a&&o.clientHeight>0&&o.scrollHeight>o.clientHeight,l=n.direction===`rtl`,u=c&&(l?e.offsetX<=o.offsetWidth-o.clientWidth:e.offsetX>o.clientWidth),d=s&&e.offsetY>o.clientHeight;if(u||d)return}let d=a.current.floatingContext?.nodeId,f=h&&Ra(h.nodesRef.current,d).some(t=>Ma(e,t.context?.elements.floating));if(Ma(e,i.floating)||Ma(e,i.domReference)||f)return;let p=h?Ra(h.nodesRef.current,d):[];if(p.length>0){let e=!0;if(p.forEach(t=>{var n;(n=t.context)!=null&&n.open&&!t.context.dataRef.current.__outsidePressBubbles&&(e=!1)}),!e)return}r(!1,e,`outside-press`)}),O=Ga(e=>{var t;let n=()=>{var t;D(e),(t=ja(e))==null||t.removeEventListener(l,n)};(t=ja(e))==null||t.addEventListener(l,n)});w.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=y,a.current.__outsidePressBubbles=b;let e=-1;function t(e){r(!1,e,`ancestor-scroll`)}function c(){window.clearTimeout(e),C.current=!0}function u(){e=window.setTimeout(()=>{C.current=!1},Bi()?5:0)}let d=Pa(i.floating);s&&(d.addEventListener(`keydown`,x?E:T,x),d.addEventListener(`compositionstart`,c),d.addEventListener(`compositionend`,u)),_&&d.addEventListener(l,S?O:D,S);let p=[];return f&&(Oi(i.domReference)&&(p=Ki(i.domReference)),Oi(i.floating)&&(p=p.concat(Ki(i.floating))),!Oi(i.reference)&&i.reference&&i.reference.contextElement&&(p=p.concat(Ki(i.reference.contextElement)))),p=p.filter(e=>e!==d.defaultView?.visualViewport),p.forEach(e=>{e.addEventListener(`scroll`,t)}),()=>{s&&(d.removeEventListener(`keydown`,x?E:T,x),d.removeEventListener(`compositionstart`,c),d.removeEventListener(`compositionend`,u)),_&&d.removeEventListener(l,S?O:D,S),p.forEach(e=>{e.removeEventListener(`scroll`,t)}),window.clearTimeout(e)}},[a,i,s,_,l,n,r,f,o,y,b,T,x,E,D,S,O]),w.useEffect(()=>{a.current.insideReactTree=!1},[a,_,l]);let k=w.useMemo(()=>({onKeyDown:T,...u&&{[Ws[d]]:e=>{r(!1,e.nativeEvent,`reference-press`)},...d!==`click`&&{onClick(e){r(!1,e.nativeEvent,`reference-press`)}}}}),[T,r,u,d]),A=w.useMemo(()=>{function e(e){e.button===0&&(v.current=!0)}return{onKeyDown:T,onMouseDown:e,onMouseUp:e,[Gs[l]]:()=>{a.current.insideReactTree=!0}}},[T,l,a]);return w.useMemo(()=>o?{reference:k,floating:A}:{},[o,k,A])}function Js(e){let{open:t=!1,onOpenChange:n,elements:r}=e,i=Ts(),a=w.useRef({}),[o]=w.useState(()=>Es()),s=ks()!=null,[c,l]=w.useState(r.reference),u=Ga((e,t,r)=>{a.current.openEvent=e?t:void 0,o.emit(`openchange`,{open:e,event:t,reason:r,nested:s}),n?.(e,t,r)}),d=w.useMemo(()=>({setPositionReference:l}),[]),f=w.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return w.useMemo(()=>({dataRef:a,open:t,onOpenChange:u,elements:f,events:o,floatingId:i,refs:d}),[t,u,f,o,i,d])}function Ys(e){let{elements:t,...n}=e===void 0?{}:e,{nodeId:r}=n,i=Js({...n,elements:{reference:t?.reference??null,floating:t?.floating??null}}),a=n.rootContext||i,o=a.elements,[s,c]=w.useState(null),[l,u]=w.useState(null),d=o?.domReference||s,f=w.useRef(null),p=As();Va(()=>{d&&(f.current=d)},[d]);let m=es({...n,elements:{...o,...l&&{reference:l}}}),h=w.useCallback(e=>{let t=Oi(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),g=w.useCallback(e=>{(Oi(e)||e===null)&&(f.current=e,c(e)),(Oi(m.refs.reference.current)||m.refs.reference.current===null||e!==null&&!Oi(e))&&m.refs.setReference(e)},[m.refs]),_=w.useMemo(()=>({...m.refs,setReference:g,setPositionReference:h,domReference:f}),[m.refs,g,h]),v=w.useMemo(()=>({...m.elements,domReference:d}),[m.elements,d]),y=w.useMemo(()=>({...m,...a,refs:_,elements:v,nodeId:r}),[m,_,v,r,a]);return Va(()=>{a.dataRef.current.floatingContext=y;let e=p?.nodesRef.current.find(e=>e.id===r);e&&(e.context=y)}),w.useMemo(()=>({...m,context:y,refs:_,elements:v}),[m,_,v,y])}function Xs(){return Ta()&&wa()}function Zs(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,events:i,dataRef:a,elements:o}=e,{enabled:s=!0,visibleOnly:c=!0}=t,l=w.useRef(!1),u=w.useRef(-1),d=w.useRef(!0);w.useEffect(()=>{if(!s)return;let e=Ti(o.domReference);function t(){!n&&ki(o.domReference)&&o.domReference===ka(Pa(o.domReference))&&(l.current=!0)}function r(){d.current=!0}function i(){d.current=!1}return e.addEventListener(`blur`,t),Xs()&&(e.addEventListener(`keydown`,r,!0),e.addEventListener(`pointerdown`,i,!0)),()=>{e.removeEventListener(`blur`,t),Xs()&&(e.removeEventListener(`keydown`,r,!0),e.removeEventListener(`pointerdown`,i,!0))}},[o.domReference,n,s]),w.useEffect(()=>{if(!s)return;function e(e){let{reason:t}=e;(t===`reference-press`||t===`escape-key`)&&(l.current=!0)}return i.on(`openchange`,e),()=>{i.off(`openchange`,e)}},[i,s]),w.useEffect(()=>()=>{Ms(u)},[]);let f=w.useMemo(()=>({onMouseLeave(){l.current=!1},onFocus(e){if(l.current)return;let t=ja(e.nativeEvent);if(c&&Oi(t)){if(Xs()&&!e.relatedTarget){if(!d.current&&!Fa(t))return}else if(!Ia(t))return}r(!0,e.nativeEvent,`focus`)},onBlur(e){l.current=!1;let t=e.relatedTarget,n=e.nativeEvent,i=Oi(t)&&t.hasAttribute(js(`focus-guard`))&&t.getAttribute(`data-type`)===`outside`;u.current=window.setTimeout(()=>{let e=ka(o.domReference?o.domReference.ownerDocument:document);(t||e!==o.domReference)&&(Aa(a.current.floatingContext?.refs.floating.current,e)||Aa(o.domReference,e)||i||r(!1,n,`focus`))})}}),[a,o.domReference,r,c]);return w.useMemo(()=>s?{reference:f}:{},[s,f])}function Qs(e,t,n){let r=new Map,i=n===`item`,a=e;if(i&&e){let{[fs]:t,[ps]:n,...r}=e;a=r}return{...n===`floating`&&{tabIndex:-1,[ds]:``},...a,...t.map(t=>{let r=t?t[n]:null;return typeof r==`function`?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,a]=t;if(!(i&&[fs,ps].includes(n))){if(n.indexOf(`on`)===0){if(r.has(n)||r.set(n,[]),typeof a==`function`){var o;(o=r.get(n))==null||o.push(a),e[n]=function(){var e=[...arguments];return r.get(n)?.map(t=>t(...e)).find(e=>e!==void 0)}}}else e[n]=a}}),e),{})}}function $s(e){e===void 0&&(e=[]);let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=w.useCallback(t=>Qs(t,e,`reference`),t),a=w.useCallback(t=>Qs(t,e,`floating`),n),o=w.useCallback(t=>Qs(t,e,`item`),r);return w.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}var ec=new Map([[`select`,`listbox`],[`combobox`,`listbox`],[`label`,!1]]);function tc(e,t){t===void 0&&(t={});let{open:n,elements:r,floatingId:i}=e,{enabled:a=!0,role:o=`dialog`}=t,s=Ts(),c=r.domReference?.id||s,l=w.useMemo(()=>La(r.floating)?.id||i,[r.floating,i]),u=ec.get(o)??o,d=ks()!=null,f=w.useMemo(()=>u===`tooltip`||o===`label`?{[`aria-`+(o===`label`?`labelledby`:`describedby`)]:n?l:void 0}:{"aria-expanded":n?`true`:`false`,"aria-haspopup":u===`alertdialog`?`dialog`:u,"aria-controls":n?l:void 0,...u===`listbox`&&{role:`combobox`},...u===`menu`&&{id:c},...u===`menu`&&d&&{role:`menuitem`},...o===`select`&&{"aria-autocomplete":`none`},...o===`combobox`&&{"aria-autocomplete":`list`}},[u,l,d,n,c,o]),p=w.useMemo(()=>{let e={id:l,...u&&{role:u}};return u===`tooltip`||o===`label`?e:{...e,...u===`menu`&&{"aria-labelledby":c}}},[u,l,c,o]),m=w.useCallback(e=>{let{active:t,selected:n}=e,r={role:`option`,...t&&{id:l+`-fui-option`}};switch(o){case`select`:case`combobox`:return{...r,"aria-selected":n}}return{}},[l,o]);return w.useMemo(()=>a?{reference:f,floating:p,item:m}:{},[a,f,p,m])}function nc(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...nc(e,t.id,n)])}function rc(e,t){let[n,r]=e,i=!1,a=t.length;for(let e=0,o=a-1;e<a;o=e++){let[a,s]=t[e]||[0,0],[c,l]=t[o]||[0,0];s>=r!=l>=r&&n<=(c-a)*(r-s)/(l-s)+a&&(i=!i)}return i}function ic(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function ac(e){e===void 0&&(e={});let{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i={current:-1},a=!1,o=null,s=null,c=typeof performance<`u`?performance.now():0;function l(e,t){let n=performance.now(),r=n-c;if(o===null||s===null||r===0)return o=e,s=t,c=n,null;let i=e-o,a=t-s,l=Math.sqrt(i*i+a*a)/r;return o=e,s=t,c=n,l}let u=e=>{let{x:n,y:o,placement:s,elements:c,onClose:u,nodeId:d,tree:f}=e;return function(e){function p(){Ms(i),u()}if(Ms(i),!c.domReference||!c.floating||s==null||n==null||o==null)return;let{clientX:m,clientY:h}=e,g=[m,h],_=Us(e),v=e.type===`mouseleave`,y=Hs(c.floating,_),b=Hs(c.domReference,_),x=c.domReference.getBoundingClientRect(),S=c.floating.getBoundingClientRect(),C=s.split(`-`)[0],w=n>S.right-S.width/2,T=o>S.bottom-S.height/2,E=ic(g,x),D=S.width>x.width,O=S.height>x.height,k=(D?x:S).left,A=(D?x:S).right,j=(O?x:S).top,M=(O?x:S).bottom;if(y&&(a=!0,!v))return;if(b&&(a=!1),b&&!v){a=!0;return}if(v&&Oi(e.relatedTarget)&&Hs(c.floating,e.relatedTarget)||f&&nc(f.nodesRef.current,d).length)return;if(C===`top`&&o>=x.bottom-1||C===`bottom`&&o<=x.top+1||C===`left`&&n>=x.right-1||C===`right`&&n<=x.left+1)return p();let N=[];switch(C){case`top`:N=[[k,x.top+1],[k,S.bottom-1],[A,S.bottom-1],[A,x.top+1]];break;case`bottom`:N=[[k,S.top+1],[k,x.bottom-1],[A,x.bottom-1],[A,S.top+1]];break;case`left`:N=[[S.right-1,M],[S.right-1,j],[x.left+1,j],[x.left+1,M]];break;case`right`:N=[[x.right-1,M],[x.right-1,j],[S.left+1,j],[S.left+1,M]]}function P(e){let[n,r]=e;switch(C){case`top`:return[[D?n+t/2:w?n+t*4:n-t*4,r+t+1],[D?n-t/2:w?n+t*4:n-t*4,r+t+1],[S.left,w||D?S.bottom-t:S.top],[S.right,w?D?S.bottom-t:S.top:S.bottom-t]];case`bottom`:return[[D?n+t/2:w?n+t*4:n-t*4,r-t],[D?n-t/2:w?n+t*4:n-t*4,r-t],[S.left,w||D?S.top+t:S.bottom],[S.right,w?D?S.top+t:S.bottom:S.top+t]];case`left`:{let e=[n+t+1,O?r+t/2:T?r+t*4:r-t*4],i=[n+t+1,O?r-t/2:T?r+t*4:r-t*4];return[[T||O?S.right-t:S.left,S.top],[T?O?S.right-t:S.left:S.right-t,S.bottom],e,i]}case`right`:return[[n-t,O?r+t/2:T?r+t*4:r-t*4],[n-t,O?r-t/2:T?r+t*4:r-t*4],[T||O?S.left+t:S.right,S.top],[T?O?S.left+t:S.right:S.left+t,S.bottom]]}}if(!rc([m,h],N)){if(a&&!E)return p();if(!v&&r){let t=l(e.clientX,e.clientY);if(t!==null&&t<.1)return p()}rc([m,h],P([n,o]))?!a&&r&&(i.current=window.setTimeout(p,40)):p()}}};return u.__options={blockPointerEvents:n},u}var oc={scrollHideDelay:1e3,type:`hover`,scrollbars:`xy`},sc=gt((e,{scrollbarSize:t,overscrollBehavior:n,scrollbars:r})=>{let i=n;return n&&r&&(r===`x`?i=`${n} auto`:r===`y`&&(i=`auto ${n}`)),{root:{"--scrollarea-scrollbar-size":v(t),"--scrollarea-over-scroll-behavior":i}}}),cc=q(e=>{let t=K(`ScrollArea`,oc,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,scrollbarSize:s,vars:c,type:l,scrollHideDelay:u,viewportProps:d,viewportRef:f,onScrollPositionChange:p,children:m,offsetScrollbars:h,scrollbars:g,onBottomReached:_,onTopReached:v,onLeftReached:y,onRightReached:b,overscrollBehavior:x,startScrollPosition:S,verticalScrollbarPosition:C,attributes:T,...E}=t,[D,O]=(0,w.useState)(!1),[k,A]=(0,w.useState)(!1),[j,M]=(0,w.useState)(!1),N=(0,w.useRef)(!0),P=(0,w.useRef)(!1),F=(0,w.useRef)(!0),I=(0,w.useRef)(!1),L=Qn({name:`ScrollArea`,props:t,classes:Si,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:T,vars:c,varsResolver:sc}),R=(0,w.useRef)(null),[z,ee]=(0,w.useState)(null),B=us([f,R,(0,w.useCallback)(e=>{ee(t=>t===e?t:e)},[])]);return Jr(h===`present`?z:null,()=>{let e=R.current;e&&(A(e.scrollHeight>e.clientHeight),M(e.scrollWidth>e.clientWidth))}),fe(()=>{S&&R.current&&R.current.scrollTo({left:S.x??0,top:S.y??0})},[]),(0,G.jsxs)(Qr,{getStyles:L,type:l===`never`?`always`:l,scrollHideDelay:u,scrollbars:g,...L(`root`),...E,children:[(0,G.jsx)(xi,{...d,...L(`viewport`,{style:d?.style}),ref:B,"data-offset-scrollbars":h===!0?`xy`:h||void 0,"data-scrollbars":g||void 0,"data-vertical-scrollbar-position":C||void 0,"data-horizontal-hidden":h===`present`&&!j?`true`:void 0,"data-vertical-hidden":h===`present`&&!k?`true`:void 0,onScroll:e=>{d?.onScroll?.(e),p?.({x:e.currentTarget.scrollLeft,y:e.currentTarget.scrollTop});let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollLeft:i,scrollWidth:a,clientWidth:o}=e.currentTarget,s=t-(n-r)>=-.8,c=t===0;s&&!P.current&&_?.(),c&&!N.current&&v?.(),P.current=s,N.current=c;let l=i-(a-o)>=-.8,u=i===0;l&&!I.current&&b?.(),u&&!F.current&&y?.(),I.current=l,F.current=u},children:m}),(g===`xy`||g===`x`)&&(0,G.jsx)(_i,{...L(`scrollbar`),orientation:`horizontal`,"data-vertical-scrollbar-position":C||void 0,"data-hidden":l===`never`||h===`present`&&!j||void 0,forceMount:!0,onMouseEnter:()=>O(!0),onMouseLeave:()=>O(!1),children:(0,G.jsx)(bi,{...L(`thumb`)})}),(g===`xy`||g===`y`)&&(0,G.jsx)(_i,{...L(`scrollbar`),orientation:`vertical`,"data-vertical-scrollbar-position":C||void 0,"data-hidden":l===`never`||h===`present`&&!k||void 0,forceMount:!0,onMouseEnter:()=>O(!0),onMouseLeave:()=>O(!1),children:(0,G.jsx)(bi,{...L(`thumb`)})}),(0,G.jsx)(Xr,{...L(`corner`),"data-vertical-scrollbar-position":C||void 0,"data-hovered":D||void 0,"data-hidden":l===`never`||void 0})]})});cc.displayName=`@mantine/core/ScrollArea`;var lc=q(e=>{let{children:t,classNames:n,styles:r,scrollbarSize:i,scrollHideDelay:a,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:u,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,scrollbars:h,style:g,vars:_,onBottomReached:v,onTopReached:y,startScrollPosition:b,verticalScrollbarPosition:x,onOverflowChange:S,...C}=K(`ScrollAreaAutosize`,oc,e),T=(0,w.useRef)(null),[E,D]=(0,w.useState)(null),O=us([u,T,(0,w.useCallback)(e=>{D(t=>t===e?t:e)},[])]),k=(0,w.useRef)(!1),A=(0,w.useRef)(!1),j=(0,w.useEffectEvent)(()=>{let e=T.current;if(!e||!S)return;let t=e.scrollHeight>e.clientHeight;t!==k.current&&(A.current?S(t):(A.current=!0,t&&S(!0)),k.current=t)});return Jr(S?E:null,j),(0,G.jsx)(J,{...C,variant:p,style:[{display:`flex`,overflow:`hidden`},g],children:(0,G.jsx)(J,{style:{display:`flex`,flexDirection:`column`,flex:1,overflow:`hidden`,...h===`y`&&{minWidth:0},...h===`x`&&{minHeight:0},...h===`xy`&&{minWidth:0,minHeight:0},...h===!1&&{minWidth:0,minHeight:0}},children:(0,G.jsx)(cc,{classNames:n,styles:r,scrollHideDelay:a,scrollbarSize:i,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:O,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,vars:_,scrollbars:h,onBottomReached:v,onTopReached:y,startScrollPosition:b,verticalScrollbarPosition:x,"data-autosize":`true`,children:t})})})});cc.classes=Si,cc.varsResolver=sc,lc.displayName=`@mantine/core/ScrollAreaAutosize`,lc.classes=Si,cc.Autosize=lc;var uc={root:`m_87cf2631`},dc={__staticSelector:`UnstyledButton`},fc=Fr(e=>{let t=K(`UnstyledButton`,dc,e),{className:n,component:r=`button`,__staticSelector:i,unstyled:a,classNames:o,styles:s,style:c,attributes:l,...u}=t,d=Qn({name:i,props:t,classes:uc,className:n,style:c,classNames:o,styles:s,unstyled:a,attributes:l});return(0,G.jsx)(J,{...d(`root`,{focusable:!0}),component:r,type:r===`button`?`button`:void 0,...u})});fc.classes=uc,fc.displayName=`@mantine/core/UnstyledButton`;var pc={root:`m_515a97f8`},mc=q(e=>{let t=K(`VisuallyHidden`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,...l}=t,u=Qn({name:`VisuallyHidden`,classes:pc,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c});return(0,G.jsx)(J,{component:`span`,...u(`root`),...l})});mc.classes=pc,mc.displayName=`@mantine/core/VisuallyHidden`;var hc={root:`m_1b7284a3`},gc=gt((e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:R(t),"--paper-shadow":B(n)}})),_c=Fr(e=>{let t=K(`Paper`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,withBorder:s,vars:c,radius:l,shadow:u,variant:d,mod:f,attributes:p,...m}=t,h=Qn({name:`Paper`,props:t,classes:hc,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:c,varsResolver:gc});return(0,G.jsx)(J,{mod:[{withBorder:s},f],...h(`root`),variant:d,...m})});_c.classes=hc,_c.varsResolver=gc,_c.displayName=`@mantine/core/Paper`;function vc(e,t,n,r){return e===`center`||r===`center`?{top:t}:e===`end`?{bottom:n}:e===`start`?{top:n}:{}}function yc(e,t,n,r,i){return e===`center`||r===`center`?{left:t}:e===`end`?{[i===`ltr`?`right`:`left`]:n}:e===`start`?{[i===`ltr`?`left`:`right`]:n}:{}}var bc={bottom:`borderTopLeftRadius`,left:`borderTopRightRadius`,right:`borderBottomLeftRadius`,top:`borderBottomRightRadius`};function xc({position:e,arrowSize:t,dir:n}){let[r,i]=e.split(`-`);if(!i)return;let a={width:t,height:t,position:`absolute`};if(r===`bottom`){let e=i===`start`,r=e?n===`ltr`?`left`:`right`:n===`ltr`?`right`:`left`;return{...a,top:-t,[r]:0,clipPath:e===(n===`rtl`)?`polygon(100% 0%, 0% 100%, 100% 100%)`:`polygon(0% 0%, 0% 100%, 100% 100%)`}}if(r===`top`){let e=i===`start`,r=e?n===`ltr`?`left`:`right`:n===`ltr`?`right`:`left`;return{...a,bottom:-t,[r]:0,clipPath:e===(n===`rtl`)?`polygon(0% 0%, 100% 0%, 100% 100%)`:`polygon(0% 0%, 100% 0%, 0% 100%)`}}if(r===`left`)return{...a,right:-t,[i===`start`?`top`:`bottom`]:0,clipPath:i===`start`?`polygon(0% 0%, 100% 0%, 0% 100%)`:`polygon(0% 0%, 0% 100%, 100% 100%)`};if(r===`right`)return{...a,left:-t,[i===`start`?`top`:`bottom`]:0,clipPath:i===`start`?`polygon(0% 0%, 100% 0%, 100% 100%)`:`polygon(100% 0%, 0% 100%, 100% 100%)`}}function Sc({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,arrowX:a,arrowY:o,dir:s}){if(i===`merge`){let n=xc({position:e,arrowSize:t,dir:s});if(n)return n}let[c,l=`center`]=e.split(`-`),u={width:t,height:t,transform:`rotate(45deg)`,position:`absolute`,[bc[c]]:r},d=-t/2;return c===`left`?{...u,...vc(l,o,n,i),right:d,borderLeftColor:`transparent`,borderBottomColor:`transparent`,clipPath:`polygon(100% 0, 0 0, 100% 100%)`}:c===`right`?{...u,...vc(l,o,n,i),left:d,borderRightColor:`transparent`,borderTopColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 100%)`}:c===`top`?{...u,...yc(l,a,n,i,s),bottom:d,borderTopColor:`transparent`,borderLeftColor:`transparent`,clipPath:`polygon(0 100%, 100% 100%, 100% 0)`}:c===`bottom`?{...u,...yc(l,a,n,i,s),top:d,borderBottomColor:`transparent`,borderRightColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 0)`}:{}}function Cc({position:e,dir:t}){let[n,r]=e.split(`-`);if(!r)return;let i=r===`start`&&t===`ltr`||r===`end`&&t===`rtl`;if(n===`bottom`)return i?{borderTopLeftRadius:0}:{borderTopRightRadius:0};if(n===`top`)return i?{borderBottomLeftRadius:0}:{borderBottomRightRadius:0};if(n===`left`)return r===`start`?{borderTopRightRadius:0}:{borderBottomRightRadius:0};if(n===`right`)return r===`start`?{borderTopLeftRadius:0}:{borderBottomLeftRadius:0}}function wc({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,visible:a,arrowX:o,arrowY:s,style:c,...l}){let{dir:u}=Ur();return a?(0,G.jsx)(`div`,{role:`presentation`,...l,style:{...c,...Sc({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,dir:u,arrowX:o,arrowY:s})}}):null}wc.displayName=`@mantine/core/FloatingArrow`;function Tc(e,t){if(e===`rtl`&&(t.includes(`right`)||t.includes(`left`))){let[e,n]=t.split(`-`),r=e===`right`?`left`:`right`;return n===void 0?r:`${r}-${n}`}return t}function Ec({open:e,close:t,openDelay:n,closeDelay:r}){let i=(0,w.useRef)(-1),a=(0,w.useRef)(-1),o=()=>{window.clearTimeout(i.current),window.clearTimeout(a.current)};return(0,w.useEffect)(()=>o,[]),{openDropdown:()=>{o(),n===0||n===void 0?e():i.current=window.setTimeout(e,n)},closeDropdown:()=>{o(),r===0||r===void 0?t():a.current=window.setTimeout(t,r)}}}var Dc={root:`m_9814e45f`},Oc={zIndex:N(`modal`)},kc=gt((e,{gradient:t,color:n,backgroundOpacity:r,blur:i,radius:a,zIndex:o})=>({root:{"--overlay-bg":t||(n!==void 0||r!==void 0)&&Bt(n||`#000`,r??.6)||void 0,"--overlay-filter":i?`blur(${v(i)})`:void 0,"--overlay-radius":a===void 0?void 0:R(a),"--overlay-z-index":o?.toString()}})),Ac=Fr(e=>{let t=K(`Overlay`,Oc,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,fixed:c,center:l,children:u,radius:d,zIndex:f,gradient:p,blur:m,color:h,backgroundOpacity:g,mod:_,attributes:v,...y}=t,b=Qn({name:`Overlay`,props:t,classes:Dc,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:kc});return(0,G.jsx)(J,{...b(`root`),mod:[{center:l,fixed:c},_],...y,children:u})});Ac.classes=Dc,Ac.varsResolver=kc,Ac.displayName=`@mantine/core/Overlay`;function jc(e){let t=document.createElement(`div`);return t.setAttribute(`data-portal`,`true`),typeof e.className==`string`&&t.classList.add(...e.className.split(` `).filter(Boolean)),typeof e.style==`object`&&Object.assign(t.style,e.style),typeof e.id==`string`&&t.setAttribute(`id`,e.id),t}var Mc=null;function Nc({target:e,reuseTargetNode:t,...n}){if(e)return typeof e==`string`?document.querySelector(e)||jc(n):e;if(t){if(Mc){if(document.body.contains(Mc))return Mc;Mc=null}let e=document.querySelector(`[data-mantine-shared-portal-node]`);if(e)return Mc=e,e;let t=jc(n);return t.setAttribute(`data-mantine-shared-portal-node`,`true`),document.body.appendChild(t),Mc=t,t}return jc(n)}var Pc={reuseTargetNode:!0},Fc=q(e=>{let{children:t,target:n,reuseTargetNode:r,ref:i,...a}=K(`Portal`,Pc,e),[o,s]=(0,w.useState)(!1),c=(0,w.useRef)(null);return fe(()=>(s(!0),c.current=Nc({target:n,reuseTargetNode:r,...a}),Ae(i,c.current),!n&&!r&&c.current&&document.body.appendChild(c.current),()=>{!n&&!r&&c.current&&document.body.removeChild(c.current)}),[n]),!o||!c.current?null:(0,Xe.createPortal)((0,G.jsx)(G.Fragment,{children:t}),c.current)});Fc.displayName=`@mantine/core/Portal`;var Ic=q(({withinPortal:e=!0,children:t,...n})=>nn()===`test`||!e?(0,G.jsx)(G.Fragment,{children:t}):(0,G.jsx)(Fc,{...n,children:t}));Ic.displayName=`@mantine/core/OptionalPortal`;var Lc=e=>({in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(.9) translateY(${e===`bottom`?10:-10}px)`},transitionProperty:`transform, opacity`}),Rc={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:`opacity`},"fade-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(30px)`},transitionProperty:`opacity, transform`},"fade-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-30px)`},transitionProperty:`opacity, transform`},"fade-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(30px)`},transitionProperty:`opacity, transform`},"fade-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-30px)`},transitionProperty:`opacity, transform`},scale:{in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-y":{in:{opacity:1,transform:`scaleY(1)`},out:{opacity:0,transform:`scaleY(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-x":{in:{opacity:1,transform:`scaleX(1)`},out:{opacity:0,transform:`scaleX(0)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"skew-up":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(-20px) skew(-10deg, -5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"skew-down":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(20px) skew(-10deg, -5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-left":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(-5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-right":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-100%)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(100%)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"slide-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(100%)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"slide-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-100%)`},common:{transformOrigin:`right`},transitionProperty:`transform, opacity`},pop:{...Lc(`bottom`),common:{transformOrigin:`center center`}},"pop-bottom-left":{...Lc(`bottom`),common:{transformOrigin:`bottom left`}},"pop-bottom-right":{...Lc(`bottom`),common:{transformOrigin:`bottom right`}},"pop-top-left":{...Lc(`top`),common:{transformOrigin:`top left`}},"pop-top-right":{...Lc(`top`),common:{transformOrigin:`top right`}}},zc={entering:`in`,entered:`in`,exiting:`out`,exited:`out`,"pre-exiting":`out`,"pre-entering":`out`};function Bc({transition:e,state:t,duration:n,timingFunction:r}){let i={WebkitBackfaceVisibility:`hidden`,transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e==`string`?e in Rc?{transitionProperty:Rc[e].transitionProperty,...i,...Rc[e].common,...Rc[e][zc[t]]}:{}:{transitionProperty:e.transitionProperty,...i,...e.common,...e[zc[t]]}}function Vc({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:i,onExit:a,onEntered:o,onExited:s,enterDelay:c,exitDelay:l}){let u=xn(),d=Pe(),f=u.respectReducedMotion?d:!1,[p,m]=(0,w.useState)(f?0:e),[h,g]=(0,w.useState)(r?`entered`:`exited`),_=(0,w.useRef)(-1),v=(0,w.useRef)(-1),y=(0,w.useRef)(-1);function b(){window.clearTimeout(_.current),window.clearTimeout(v.current),cancelAnimationFrame(y.current)}let x=n=>{b();let r=n?i:a,c=n?o:s,l=f?0:n?e:t;m(l),l===0?(typeof r==`function`&&r(),typeof c==`function`&&c(),g(n?`entered`:`exited`)):y.current=requestAnimationFrame(()=>{Xe.flushSync(()=>{g(n?`pre-entering`:`pre-exiting`)}),y.current=requestAnimationFrame(()=>{typeof r==`function`&&r(),g(n?`entering`:`exiting`),_.current=window.setTimeout(()=>{typeof c==`function`&&c(),g(n?`entered`:`exited`)},l)})})},S=e=>{b(),typeof(e?c:l)==`number`?v.current=window.setTimeout(()=>{x(e)},e?c:l):x(e)};return me(()=>{S(r)},[r]),(0,w.useEffect)(()=>()=>{b()},[]),{transitionDuration:p,transitionStatus:h,transitionTimingFunction:n||`ease`}}function Hc({keepMounted:e,keepMountedMode:t=`activity`,transition:n=`fade`,duration:r=250,exitDuration:i=r,mounted:a,children:o,timingFunction:s=`ease`,onExit:c,onEntered:l,onEnter:u,onExited:d,enterDelay:f,exitDelay:p}){let m=nn(),{transitionDuration:h,transitionStatus:g,transitionTimingFunction:_}=Vc({mounted:a,exitDuration:i,duration:r,timingFunction:s,onExit:c,onEntered:l,onEnter:u,onExited:d,enterDelay:f,exitDelay:p});if(m===`test`)return a?(0,G.jsx)(G.Fragment,{children:o({})}):e?o({display:`none`}):null;if(h===0)return e?t===`display-none`?a?(0,G.jsx)(G.Fragment,{children:o({})}):o({display:`none`}):(0,G.jsx)(w.Activity,{mode:a?`visible`:`hidden`,children:o({})}):a?(0,G.jsx)(G.Fragment,{children:o({})}):null;let v=g===`exited`;if(e){let e=o(v?t===`display-none`?{display:`none`}:{}:Bc({transition:n,duration:h,state:g,timingFunction:_}));return t===`display-none`?e:(0,G.jsx)(w.Activity,{mode:v?`hidden`:`visible`,children:e})}return v?null:(0,G.jsx)(G.Fragment,{children:o(Bc({transition:n,duration:h,state:g,timingFunction:_}))})}Hc.displayName=`@mantine/core/Transition`;var Uc={duration:100,transition:`fade`};function Wc(e,t){return{...Uc,...t,...e}}var[Gc,Kc]=E(`Popover component was not found in the tree`);function qc({childProps:e,disabled:t,opened:n,longPressDelay:r=500,setReference:i,open:a}){let o=(0,w.useRef)(!1),s=(0,w.useRef)(!1),c=(0,w.useRef)(null),l=(0,w.useRef)(t);l.current=t;let u=(e,t,n)=>{i({getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t,toJSON:()=>void 0}),contextElement:n}),a()},d=V(e.onMouseDown,e=>{t||e.button===2&&e.stopPropagation()}),f=V(e.onContextMenu,e=>{t||e.defaultPrevented||(e.preventDefault(),!s.current&&(u(e.clientX,e.clientY,e.currentTarget),o.current&&(s.current=!0)))}),p=We(e=>{if(l.current||s.current)return;let t=e,n=t.touches[0]??t.changedTouches[0];n&&(u(n.clientX,n.clientY,c.current),s.current=!0)},{threshold:r,events:[`touch`],cancelOnMove:!0,onStart:e=>{o.current=!0,s.current=!1,c.current=e.currentTarget},onFinish:e=>{o.current=!1,s.current=!1,l.current||e.preventDefault()},onCancel:()=>{o.current=!1,s.current=!1}});return{onContextMenu:f,onMouseDown:d,onTouchStart:V(e.onTouchStart,p.onTouchStart),onTouchEnd:V(e.onTouchEnd,p.onTouchEnd),onTouchCancel:V(e.onTouchCancel,p.onTouchCancel),onTouchMove:V(e.onTouchMove,p.onTouchMove),style:t?e.style:{...e.style,WebkitTouchCallout:`none`,WebkitUserSelect:`none`,userSelect:`none`},"data-expanded":n?!0:void 0}}function Jc(e){let{children:t,disabled:n,longPressDelay:r}=K(`PopoverContextMenu`,null,e),i=ht(t);if(!i)throw Error(`Popover.ContextMenu component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let a=Kc(),o=qc({childProps:i.props,disabled:n||a.disabled,opened:a.opened,longPressDelay:r,setReference:a.reference,open:()=>{a.opened||a.onToggle()}});return(0,w.cloneElement)(i,o)}Jc.displayName=`@mantine/core/PopoverContextMenu`;function Yc({children:e,active:t=!0,refProp:n=`ref`,innerRef:r}){let i=Me(Te(t),r),a=ht(e);return a?(0,w.cloneElement)(a,{[n]:i}):e}function Xc(e){return(0,G.jsx)(mc,{tabIndex:-1,"data-autofocus":!0,...e})}Yc.displayName=`@mantine/core/FocusTrap`,Xc.displayName=`@mantine/core/FocusTrapInitialFocus`,Yc.InitialFocus=Xc;var Zc={dropdown:`m_38a85659`,arrow:`m_a31dc6c1`,overlay:`m_3d7bc908`},Qc=q(e=>{let t=K(`PopoverDropdown`,null,e),{className:n,style:r,vars:i,children:a,onKeyDownCapture:o,variant:s,classNames:c,styles:l,ref:u,...d}=t,f=Kc(),{dir:p}=Ur(),m=f.arrowPosition===`merge`&&f.withArrow?Cc({position:f.placement,dir:p}):void 0,h=he({opened:f.opened,shouldReturnFocus:f.returnFocus}),g=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:`dialog`,tabIndex:-1}:{},_=Me(u,f.floating);return f.disabled?null:(0,G.jsx)(Ic,{...f.portalProps,withinPortal:f.withinPortal,children:(0,G.jsx)(Hc,{mounted:f.opened,...f.transitionProps,transition:f.transitionProps?.transition||`fade`,duration:f.transitionProps?.duration??150,keepMounted:f.keepMounted,keepMountedMode:f.keepMountedMode,exitDuration:typeof f.transitionProps?.exitDuration==`number`?f.transitionProps.exitDuration:f.transitionProps?.duration,children:e=>(0,G.jsx)(Yc,{active:f.trapFocus&&f.opened,innerRef:_,children:(0,G.jsxs)(J,{...g,...d,variant:s,onKeyDownCapture:F(()=>{f.onClose?.(),f.onDismiss?.()},{active:f.closeOnEscape,onTrigger:h,onKeyDown:o}),"data-position":f.placement,"data-fixed":f.floatingStrategy===`fixed`||void 0,...f.getStyles(`dropdown`,{className:n,props:t,classNames:c,styles:l,style:[{...e,...m,zIndex:f.zIndex,top:f.y??0,left:f.x??0,width:f.width===`target`?void 0:v(f.width),...f.referenceHidden?{display:`none`}:null},f.resolvedStyles?.dropdown,l?.dropdown,r]}),children:[a,(0,G.jsx)(wc,{ref:f.arrowRef,arrowX:f.arrowX,arrowY:f.arrowY,visible:f.withArrow,position:f.placement,arrowSize:f.arrowSize,arrowRadius:f.arrowRadius,arrowOffset:f.arrowOffset,arrowPosition:f.arrowPosition,...f.getStyles(`arrow`,{props:t,classNames:c,styles:l})})]})})})})});Qc.classes=Zc,Qc.displayName=`@mantine/core/PopoverDropdown`;var $c={refProp:`ref`,popupType:`dialog`},el=q(e=>{let{children:t,refProp:n,popupType:r,ref:i,...a}=K(`PopoverTarget`,$c,e),o=ht(t);if(!o)throw Error(`Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let s=a,c=Kc(),l=Me(c.reference,ut(o),i),u=c.withRoles?{"aria-haspopup":r,"aria-expanded":c.opened,"aria-controls":c.opened?c.getDropdownId():void 0,id:c.getTargetId()}:{},d=o.props;return(0,w.cloneElement)(o,{...s,...u,...c.targetProps,className:vt(c.targetProps.className,s.className,d.className),[n]:l,...c.controlled?null:{onClick:e=>{c.onToggle(),d.onClick?.(e)}}})});el.displayName=`@mantine/core/PopoverTarget`;function tl(e){if(e===void 0)return{shift:!0,flip:!0};let t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function nl(e,t,n,r){let i=tl(e.middlewares),a=[ns(e.offset),ss()];if(i.flip&&!n){let e=typeof i.flip==`boolean`?{}:i.flip,t=r?{fallbackStrategy:`initialPlacement`,...e}:e;a.push(as(t))}if(i.shift){let t=typeof i.shift==`boolean`?{}:i.shift;a.push(rs(n=>{let r=n.placement.startsWith(`top`)||n.placement.startsWith(`bottom`);return{limiter:is(),padding:5,...e.width===`target`&&r?{mainAxis:!1}:null,...t}}))}return i.inline&&a.push(typeof i.inline==`boolean`?cs():cs(i.inline)),a.push(ls({element:e.arrowRef,padding:e.arrowOffset})),(i.size||e.width===`target`)&&a.push(os({...typeof i.size==`boolean`?{}:i.size,apply({rects:n,availableWidth:r,availableHeight:a,...o}){let s=t().refs.floating.current?.style??{};i.size&&(typeof i.size==`object`&&i.size.apply?i.size.apply({rects:n,availableWidth:r,availableHeight:a,...o}):Object.assign(s,{maxWidth:`${r}px`,maxHeight:`${a}px`})),e.width===`target`&&Object.assign(s,{width:`${n.reference.width}px`})}})),a}function rl(e){let[t,n]=Ne({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=(0,w.useRef)(t),i=(0,w.useRef)(!1),[a,o]=(0,w.useState)(null),s=e.preventPositionChangeWhenVisible!==!1,c=(0,w.useRef)(t);t!==c.current&&(c.current=t,t&&a!==null&&o(null));let l=(0,w.useRef)(e.position);e.position!==l.current&&(l.current=e.position,i.current=!1,a!==null&&o(null));let u=(0,w.useCallback)(()=>o(null),[]),d=()=>{t&&!e.disabled&&n(!1)},f=()=>{e.disabled||n(!t)},p=Ys({open:t,strategy:e.strategy,placement:s?a??e.position:e.position,middleware:nl(e,()=>p,s&&a!==null,s),whileElementsMounted:e.keepMounted?void 0:zo});(0,w.useEffect)(()=>{if(!e.keepMounted)return;let n=p.refs.reference.current,r=p.refs.floating.current;if(t&&n&&r)return zo(n,r,p.update)},[e.keepMounted,t,p.update,p.elements.reference,p.elements.floating]),fe(()=>{if(!t){i.current=!1;return}if(!s||a!==null)return;let e=p.refs.floating.current;e&&e.offsetHeight!==0&&e.offsetWidth!==0&&(i.current?p.isPositioned&&o(p.placement):(i.current=!0,p.update()))},[s,t,p.isPositioned,p.placement,a,p.update]);let m=(0,w.useRef)(p.placement);return fe(()=>{m.current!==p.placement&&(m.current=p.placement,e.onPositionChange?.(p.placement))},[p.placement]),me(()=>{t!==r.current&&(t?e.onOpen?.():e.onClose?.()),r.current=t},[t,e.onClose,e.onOpen]),{floating:p,controlled:typeof e.opened==`boolean`,opened:t,onClose:d,onToggle:f,resetLockedPlacement:u}}var il={position:`bottom`,offset:8,transitionProps:{transition:`fade`,duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:`side`,closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,hideDetached:!0,preventPositionChangeWhenVisible:!0,clickOutsideEvents:[`mousedown`,`touchstart`],clickOutsideCapture:!1,zIndex:N(`popover`),__staticSelector:`Popover`,width:`max-content`},al=gt((e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":t===void 0?void 0:R(t),"--popover-shadow":B(n)}}));function ol(e){let t=K(`Popover`,il,e),{children:n,position:r,offset:i,onPositionChange:a,opened:o,transitionProps:s,onExitTransitionEnd:c,onEnterTransitionEnd:l,width:u,middlewares:d,withArrow:f,arrowSize:p,arrowOffset:m,arrowRadius:h,arrowPosition:g,unstyled:_,classNames:v,styles:y,closeOnClickOutside:b,withinPortal:x,portalProps:S,closeOnEscape:C,clickOutsideEvents:T,clickOutsideCapture:E,trapFocus:D,onClose:O,onDismiss:k,onOpen:A,onChange:j,zIndex:M,radius:N,shadow:P,id:F,defaultOpened:I,__staticSelector:L,withRoles:R,disabled:z,returnFocus:ee,variant:B,keepMounted:V,keepMountedMode:te,vars:ne,floatingStrategy:H,withOverlay:re,overlayProps:ie,hideDetached:ae,attributes:U,preventPositionChangeWhenVisible:W,...oe}=t,se=Qn({name:L,props:t,classes:Zc,classNames:v,styles:y,unstyled:_,attributes:U,rootSelector:`dropdown`,vars:ne,varsResolver:al}),{resolvedStyles:le}=Ln({classNames:v,styles:y,props:t}),ue=(0,w.useRef)(null),[de,fe]=(0,w.useState)(null),[pe,me]=(0,w.useState)(null),{dir:he}=Ur(),ge=nn(),_e=Oe(F),ve=rl({middlewares:d,width:u,position:Tc(he,r),offset:typeof i==`number`?i+(f?p/2:0):i,arrowRef:ue,arrowOffset:m,onPositionChange:a,opened:o,defaultOpened:I,onChange:j,onOpen:A,onClose:O,onDismiss:k,strategy:H,disabled:z,preventPositionChangeWhenVisible:W,keepMounted:V});ce(()=>{b&&(ve.onClose(),k?.())},T,[de,pe],!0,E);let ye=(0,w.useCallback)(e=>{fe(e),ve.floating.refs.setReference(e)},[ve.floating.refs.setReference]),be=(0,w.useCallback)(e=>{me(e),ve.floating.refs.setFloating(e)},[ve.floating.refs.setFloating]),xe=(0,w.useCallback)(()=>{s?.onExited?.(),c?.(),ve.resetLockedPlacement()},[s?.onExited,c,ve.resetLockedPlacement]),Se=(0,w.useCallback)(()=>{s?.onEntered?.(),l?.()},[s?.onEntered,l]);return(0,G.jsxs)(Gc,{value:{returnFocus:ee,disabled:z,controlled:ve.controlled,reference:ye,floating:be,x:ve.floating.x,y:ve.floating.y,arrowX:ve.floating?.middlewareData?.arrow?.x,arrowY:ve.floating?.middlewareData?.arrow?.y,opened:ve.opened,arrowRef:ue,transitionProps:{...s,onExited:xe,onEntered:Se},width:u,withArrow:f,arrowSize:p,arrowOffset:m,arrowRadius:h,arrowPosition:g,placement:ve.floating.placement,trapFocus:D,withinPortal:x,portalProps:S,zIndex:M,radius:N,shadow:P,closeOnEscape:C,onDismiss:k,onClose:ve.onClose,onToggle:ve.onToggle,getTargetId:()=>_e,getDropdownId:()=>`${_e}-dropdown`,withRoles:R,targetProps:oe,__staticSelector:L,classNames:v,styles:y,unstyled:_,variant:B,keepMounted:V,keepMountedMode:te,getStyles:se,resolvedStyles:le,floatingStrategy:H,referenceHidden:ae&&ge!==`test`?ve.floating.middlewareData.hide?.referenceHidden:!1},children:[n,re&&(0,G.jsx)(Hc,{transition:`fade`,mounted:ve.opened,duration:s?.duration||250,exitDuration:s?.exitDuration||250,children:e=>(0,G.jsx)(Ic,{withinPortal:x,children:(0,G.jsx)(Ac,{...ie,...se(`overlay`,{className:ie?.className,style:[e,ie?.style]})})})})]})}ol.Target=el,ol.Dropdown=Qc,ol.ContextMenu=Jc,ol.varsResolver=al,ol.displayName=`@mantine/core/Popover`,ol.extend=e=>e,ol.withProps=e=>{let t=t=>(0,G.jsx)(ol,{...e,...t});return t.extend=ol.extend,t.displayName=`WithProps(${ol.displayName})`,t};var sl={root:`m_5ae2e3c`,barsLoader:`m_7a2bd4cd`,bar:`m_870bb79`,"bars-loader-animation":`m_5d2b3b9d`,dotsLoader:`m_4e3f22d7`,dot:`m_870c4af`,"loader-dots-animation":`m_aac34a1`,ovalLoader:`m_b34414df`,"oval-loader-animation":`m_f8e89c4b`},cl=({className:e,...t})=>(0,G.jsxs)(J,{component:`span`,className:vt(sl.barsLoader,e),...t,children:[(0,G.jsx)(`span`,{className:sl.bar}),(0,G.jsx)(`span`,{className:sl.bar}),(0,G.jsx)(`span`,{className:sl.bar})]});cl.displayName=`@mantine/core/Bars`;var ll=({className:e,...t})=>(0,G.jsxs)(J,{component:`span`,className:vt(sl.dotsLoader,e),...t,children:[(0,G.jsx)(`span`,{className:sl.dot}),(0,G.jsx)(`span`,{className:sl.dot}),(0,G.jsx)(`span`,{className:sl.dot})]});ll.displayName=`@mantine/core/Dots`;var ul=({className:e,...t})=>(0,G.jsx)(J,{component:`span`,className:vt(sl.ovalLoader,e),...t});ul.displayName=`@mantine/core/Oval`;var dl={bars:cl,oval:ul,dots:ll},fl={loaders:dl,type:`oval`},pl=gt((e,{size:t,color:n})=>({root:{"--loader-size":I(t,`loader-size`),"--loader-color":n?It(n,e):void 0}})),ml=q(e=>{let t=K(`Loader`,fl,e),{size:n,color:r,type:i,vars:a,className:o,style:s,classNames:c,styles:l,unstyled:u,loaders:d,variant:f,children:p,attributes:m,...h}=t,g=Qn({name:`Loader`,props:t,classes:sl,className:o,style:s,classNames:c,styles:l,unstyled:u,attributes:m,vars:a,varsResolver:pl});return p?(0,G.jsx)(J,{...g(`root`),...h,children:p}):(0,G.jsx)(J,{...g(`root`),component:d[i],variant:f,size:n,...h})});ml.defaultLoaders=dl,ml.classes=sl,ml.varsResolver=pl,ml.displayName=`@mantine/core/Loader`;var hl={root:`m_8d3f4000`,icon:`m_8d3afb97`,loader:`m_302b9fb1`,group:`m_1a0f1b21`,groupSection:`m_437b6484`},gl={orientation:`horizontal`},_l=gt((e,{borderWidth:t})=>({group:{"--ai-border-width":v(t)}})),vl=q(e=>{let t=K(`ActionIconGroup`,gl,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,variant:u,mod:d,attributes:f,...p}=t,m=Qn({name:`ActionIconGroup`,props:t,classes:hl,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:c,varsResolver:_l,rootSelector:`group`});return(0,G.jsx)(J,{...m(`group`),variant:u,mod:[{orientation:s},d],role:`group`,...p})});vl.classes=hl,vl.varsResolver=_l,vl.displayName=`@mantine/core/ActionIconGroup`;var yl=gt((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":I(o,`section-height`),"--section-padding-x":I(o,`section-padding-x`),"--section-fz":z(o),"--section-radius":t===void 0?void 0:R(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),bl=q(e=>{let t=K(`ActionIconGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,variant:c,gradient:l,radius:u,autoContrast:d,attributes:f,...p}=t,m=Qn({name:`ActionIconGroupSection`,props:t,classes:hl,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:yl,rootSelector:`groupSection`});return(0,G.jsx)(J,{...m(`groupSection`),variant:c,...p})});bl.classes=hl,bl.varsResolver=yl,bl.displayName=`@mantine/core/ActionIconGroupSection`;var xl=gt((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ai-size":I(t,`ai-size`),"--ai-radius":n===void 0?void 0:R(n),"--ai-bg":a||r?s.background:void 0,"--ai-hover":a||r?s.hover:void 0,"--ai-hover-color":a||r?s.hoverColor:void 0,"--ai-color":s.color,"--ai-bd":a||r?s.border:void 0}}}),Sl=Fr(e=>{let t=K(`ActionIcon`,null,e),{className:n,unstyled:r,variant:i,classNames:a,styles:o,style:s,loading:c,loaderProps:l,size:u,color:d,radius:f,__staticSelector:p,gradient:m,vars:h,children:g,disabled:_,"data-disabled":v,autoContrast:y,mod:b,attributes:x,...S}=t,C=Qn({name:[`ActionIcon`,p],props:t,className:n,style:s,classes:hl,classNames:a,styles:o,unstyled:r,attributes:x,vars:h,varsResolver:xl});return(0,G.jsxs)(fc,{...C(`root`,{active:!_&&!c&&!v}),"aria-busy":c||void 0,...S,unstyled:r,variant:i,size:u,disabled:_||c,mod:[{loading:c,disabled:_||v},b],children:[typeof c==`boolean`&&(0,G.jsx)(Hc,{mounted:c,transition:`slide-down`,duration:150,children:e=>(0,G.jsx)(J,{component:`span`,...C(`loader`,{style:e}),"aria-hidden":!0,children:(0,G.jsx)(ml,{color:`var(--ai-color)`,size:`calc(var(--ai-size) * 0.55)`,...l})})}),(0,G.jsx)(J,{component:`span`,mod:{loading:c},...C(`icon`),children:g})]})});Sl.classes=hl,Sl.varsResolver=xl,Sl.displayName=`@mantine/core/ActionIcon`,Sl.Group=vl,Sl.GroupSection=bl;function Cl({size:e=`var(--cb-icon-size, 70%)`,style:t,...n}){return(0,G.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...t,width:e,height:e},...n,children:(0,G.jsx)(`path`,{d:`M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}Cl.displayName=`@mantine/core/CloseIcon`;var wl={root:`m_86a44da5`,"root--subtle":`m_220c80f2`},Tl={variant:`subtle`},El=gt((e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":I(t,`cb-size`),"--cb-radius":n===void 0?void 0:R(n),"--cb-icon-size":v(r)}})),Dl=Fr(e=>{let t=K(`CloseButton`,Tl,e),{iconSize:n,children:r,vars:i,radius:a,className:o,classNames:s,style:c,styles:l,unstyled:u,"data-disabled":d,disabled:f,variant:p,icon:m,mod:h,attributes:g,__staticSelector:_,...v}=t,y=Qn({name:_||`CloseButton`,props:t,className:o,style:c,classes:wl,classNames:s,styles:l,unstyled:u,attributes:g,vars:i,varsResolver:El});return(0,G.jsxs)(fc,{...v,unstyled:u,variant:p,disabled:f,mod:[{disabled:f||d},h],...y(`root`,{variant:p,active:!f&&!d}),children:[m||(0,G.jsx)(Cl,{}),r]})});Dl.classes=wl,Dl.varsResolver=El,Dl.displayName=`@mantine/core/CloseButton`;function Ol(e){return w.Children.toArray(e).filter(Boolean)}var kl={root:`m_4081bf90`},Al={preventGrowOverflow:!0,gap:`md`,align:`center`,justify:`flex-start`,wrap:`wrap`},jl=gt((e,{grow:t,preventGrowOverflow:n,gap:r,align:i,justify:a,wrap:o},{childWidth:s})=>({root:{"--group-child-width":t&&n?s:void 0,"--group-gap":L(r),"--group-align":i,"--group-justify":a,"--group-wrap":o}})),Ml=q(e=>{let t=K(`Group`,Al,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,children:s,gap:c,align:l,justify:u,wrap:d,grow:f,preventGrowOverflow:p,vars:m,variant:h,__size:g,mod:_,attributes:v,...y}=t,b=Ol(s),x=b.length,S=L(c??`md`),C=Qn({name:`Group`,props:t,stylesCtx:{childWidth:`calc(${100/x}% - (${S} - ${S} / ${x}))`},className:r,style:i,classes:kl,classNames:n,styles:a,unstyled:o,attributes:v,vars:m,varsResolver:jl});return(0,G.jsx)(J,{...C(`root`),variant:h,mod:[{grow:f},_],size:g,...y,children:b})});Ml.classes=kl,Ml.varsResolver=jl,Ml.displayName=`@mantine/core/Group`;var[Nl,Pl]=E(`ModalBase component was not found in tree`);function Fl({opened:e,transitionDuration:t}){let[n,r]=(0,w.useState)(e),i=(0,w.useRef)(-1),a=Pe()?0:t;return(0,w.useEffect)(()=>(e?(r(!0),window.clearTimeout(i.current)):a===0?r(!1):i.current=window.setTimeout(()=>r(!1),a),()=>window.clearTimeout(i.current)),[e,a]),n}function Il({id:e,transitionProps:t,opened:n,trapFocus:r,closeOnEscape:i,onClose:a,returnFocus:o,handledEscapeEvents:s}){let c=Oe(e),[l,u]=(0,w.useState)(!1),[d,f]=(0,w.useState)(!1),p=Fl({opened:n,transitionDuration:typeof t?.duration==`number`?t?.duration:200});return ke(`keydown`,e=>{e.key===`Escape`&&i&&!e.isComposing&&n&&!s?.has(e)&&e.target?.getAttribute(`data-mantine-stop-propagation`)!==`true`&&(s?.add(e),a())},{capture:!0}),he({opened:n,shouldReturnFocus:r&&o}),{_id:c,titleMounted:l,bodyMounted:d,shouldLockScroll:p,setTitleMounted:u,setBodyMounted:f}}var Ll=function(){return Ll=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ll.apply(this,arguments)};function Rl(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function zl(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Bl=`right-scroll-bar-position`,Vl=`width-before-scroll-bar`,Hl=`with-scroll-bars-hidden`,Ul=`--removed-body-scroll-bar-size`;function Wl(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Gl(e,t){var n=(0,w.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Kl=typeof window<`u`?w.useLayoutEffect:w.useEffect,ql=new WeakMap;function Jl(e,t){var n=Gl(t||null,function(t){return e.forEach(function(e){return Wl(e,t)})});return Kl(function(){var t=ql.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Wl(e,null)}),i.forEach(function(e){r.has(e)||Wl(e,a)})}ql.set(n,e)},[e]),n}function Yl(e){return e}function Xl(e,t){t===void 0&&(t=Yl);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Zl(e){e===void 0&&(e={});var t=Xl(null);return t.options=Ll({async:!0,ssr:!1},e),t}var Ql=function(e){var t=e.sideCar,n=Rl(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return w.createElement(r,Ll({},n))};Ql.isSideCarExport=!0;function $l(e,t){return e.useMedium(t),Ql}var eu=Zl(),tu=function(){},nu=w.forwardRef(function(e,t){var n=w.useRef(null),r=w.useState({onScrollCapture:tu,onWheelCapture:tu,onTouchMoveCapture:tu}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=Rl(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=Jl([n,t]),C=Ll(Ll({},b),i);return w.createElement(w.Fragment,null,u&&w.createElement(x,{sideCar:eu,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?w.cloneElement(w.Children.only(s),Ll(Ll({},C),{ref:S})):w.createElement(v,Ll({},C,{className:c,ref:S}),s))});nu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},nu.classNames={fullWidth:Vl,zeroRight:Bl};var ru=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function iu(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=ru();return t&&e.setAttribute(`nonce`,t),e}function au(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ou(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var su=function(){var e=0,t=null;return{add:function(n){e==0&&(t=iu())&&(au(t,n),ou(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},cu=function(){var e=su();return function(t,n){w.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},lu=function(){var e=cu();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},uu={left:0,top:0,right:0,gap:0},du=function(e){return parseInt(e||``,10)||0},fu=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[du(n),du(r),du(i)]},pu=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return uu;var t=fu(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},mu=lu(),hu=`data-scroll-locked`,gu=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function u(e){return Object.keys(e)}function d(e){return e&&typeof e==`object`&&!Array.isArray(e)}function f(e,t){let n={...e},r=t;return d(e)&&d(t)&&Object.keys(t).forEach(t=>{d(r[t])&&t in e?n[t]=f(n[t],r[t]):n[t]=r[t]}),n}function p(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function m(e){return typeof e!=`string`||!e.includes(`var(--mantine-scale)`)?e:e.match(/^calc\((.*?)\)$/)?.[1].split(`*`)[0].trim()}function h(e){let t=m(e);return typeof t==`number`?t:typeof t==`string`?t.includes(`calc`)||t.includes(`var`)?t:t.includes(`px`)?Number(t.replace(`px`,``)):t.includes(`rem`)?Number(t.replace(`rem`,``))*16:t.includes(`em`)?Number(t.replace(`em`,``))*16:Number(t):NaN}function g(e){return e===`0rem`?`0rem`:`calc(${e} * var(--mantine-scale))`}function _(e,{shouldScale:t=!1}={}){function n(r){if(r===0||r===`0`)return`0${e}`;if(typeof r==`number`){let n=`${r/16}${e}`;return t?g(n):n}if(typeof r==`string`){if(r===``||r.startsWith(`calc(`)||r.startsWith(`clamp(`)||r.includes(`rgba(`))return r;if(r.includes(`,`))return r.split(`,`).map(e=>n(e)).join(`,`);if(r.includes(` `))return r.split(` `).map(e=>n(e)).join(` `);let i=r.replace(`px`,``);if(!Number.isNaN(Number(i))){let n=`${Number(i)/16}${e}`;return t?g(n):n}}return r}return n}var v=_(`rem`,{shouldScale:!0}),y=_(`em`);function b(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function x(e){if(typeof e==`number`)return!0;if(typeof e==`string`){if(e.startsWith(`calc(`)||e.startsWith(`var(`)||e.includes(` `)&&e.trim()!==``)return!0;let t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(e=>t.test(e))}return!1}var S=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function P(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,P(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),P(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+M(a,u),c+=P(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+M(a,u++),c+=P(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return P(N(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function F(e,t,n){if(e==null)return e;var r=[],i=0;return P(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function I(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var L=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function R(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,L)}catch(e){L(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function z(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else R(z.bind(null,e))}var ee={map:F,forEach:function(e,t,n){F(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return F(e,function(){t++}),t},toArray:function(e){return F(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=ee,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=z,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=R,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.1`})),C=o(((e,t)=>{t.exports=S()})),w=l(C(),1);function T(e){return Array.isArray(e)||e===null?!1:typeof e==`object`&&e.type!==w.Fragment}function E(e){let t=(0,w.createContext)(null);return[t,()=>{let n=(0,w.use)(t);if(n===null)throw Error(e);return n}]}function D(e,t){let n=e;for(;(n=n.parentElement)&&!n.matches(t););return n}function O(e,t,n){for(let n=e-1;n>=0;--n)if(!t[n].disabled)return n;if(n){for(let e=t.length-1;e>-1;--e)if(!t[e].disabled)return e}return e}function k(e,t,n){for(let n=e+1;n<t.length;n+=1)if(!t[n].disabled)return n;if(n){for(let e=0;e<t.length;e+=1)if(!t[e].disabled)return e}return e}function A(e,t,n){return D(e,n)===D(t,n)}function j({parentSelector:e,siblingSelector:t,onKeyDown:n,loop:r=!0,activateOnFocus:i=!1,dir:a=`rtl`,orientation:o}){return s=>{n?.(s);let c=Array.from(D(s.currentTarget,e)?.querySelectorAll(t)||[]).filter(t=>A(s.currentTarget,t,e)),l=c.findIndex(e=>s.currentTarget===e),u=k(l,c,r),d=O(l,c,r),f=a===`rtl`?d:u,p=a===`rtl`?u:d;switch(s.key){case`ArrowRight`:o===`horizontal`&&(s.stopPropagation(),s.preventDefault(),c[f].focus(),i&&c[f].click());break;case`ArrowLeft`:o===`horizontal`&&(s.stopPropagation(),s.preventDefault(),c[p].focus(),i&&c[p].click());break;case`ArrowUp`:o===`vertical`&&(s.stopPropagation(),s.preventDefault(),c[d].focus(),i&&c[d].click());break;case`ArrowDown`:o===`vertical`&&(s.stopPropagation(),s.preventDefault(),c[u].focus(),i&&c[u].click());break;case`Home`:s.stopPropagation(),s.preventDefault(),c[k(-1,c,!1)]?.focus();break;case`End`:s.stopPropagation(),s.preventDefault(),c[O(c.length,c,!1)]?.focus()}}}var M={app:100,modal:200,popover:300,overlay:400,max:9999};function N(e){return M[e]}var P=()=>{};function F(e,t={active:!0}){return typeof e!=`function`||!t.active?t.onKeyDown||P:n=>{n.key===`Escape`&&(e(n),t.onTrigger?.())}}function I(e,t=`size`,n=!0){if(e!==void 0)return x(e)?n?v(e):e:`var(--${t}-${e})`}function L(e){return I(e,`mantine-spacing`)}function R(e){return e===void 0?`var(--mantine-radius-default)`:I(e,`mantine-radius`)}function z(e){return I(e,`mantine-font-size`)}function ee(e){return I(e,`mantine-line-height`,!1)}function B(e){if(e)return I(e,`mantine-shadow`,!1)}function V(e,t){return n=>{e?.(n),t?.(n)}}function te(e,t){return e in t?h(t[e]):h(e)}function ne(e,t){let n=e.map(e=>({value:e,px:te(e,t)}));return n.sort((e,t)=>e.px-t.px),n}function H(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function re(e,t,n){return n?Array.from(D(n,t)?.querySelectorAll(e)||[]).findIndex(e=>e===n):null}function ie(e,t,n){return t===void 0&&n===void 0?e:t!==void 0&&n===void 0?Math.max(e,t):Math.min(t===void 0&&n!==void 0?e:Math.max(e,t),n)}function ae(e=`mantine-`){return`${e}${Math.random().toString(36).slice(2,11)}`}function U(e,t){if(e===t||Number.isNaN(e)&&Number.isNaN(t))return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=Object.keys(e),{length:r}=n;if(r!==Object.keys(t).length)return!1;for(let i=0;i<r;i+=1){let r=n[i];if(!(r in t)||e[r]!==t[r]&&!(Number.isNaN(e[r])&&Number.isNaN(t[r])))return!1}return!0}function W(e){let t=(0,w.useRef)(e);return(0,w.useEffect)(()=>{t.current=e}),(0,w.useMemo)(()=>((...e)=>t.current?.(...e)),[])}function oe(e,t){let{delay:n,flushOnUnmount:r,leading:i,maxWait:a}=typeof t==`number`?{delay:t,flushOnUnmount:!1,leading:!1,maxWait:void 0}:t,o=W(e),s=(0,w.useRef)(0),c=(0,w.useRef)(0),l=(0,w.useRef)(null),u=(0,w.useMemo)(()=>{let e=Object.assign((...t)=>{window.clearTimeout(s.current),l.current=t;let r=e._isFirstCall;e._isFirstCall=!1;function u(){window.clearTimeout(s.current),window.clearTimeout(c.current),s.current=0,c.current=0,e._isFirstCall=!0,e._hasPendingCallback=!1}function d(){a!==void 0&&c.current===0&&(c.current=window.setTimeout(()=>{if(c.current=0,s.current!==0&&e._hasPendingCallback){let e=l.current;u(),o(...e)}},a))}if(i&&r){o(...t),e.flush=()=>{s.current!==0&&u()},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}if(i&&!r){e._hasPendingCallback=!0,e.flush=()=>{s.current!==0&&(u(),o(...t))},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}e._hasPendingCallback=!0;let f=()=>{s.current!==0&&(u(),o(...t))};e.flush=f,e.cancel=()=>{u()},s.current=window.setTimeout(f,n),d()},{flush:()=>{},cancel:()=>{},isPending:()=>e._hasPendingCallback,_isFirstCall:!0,_hasPendingCallback:!1});return e},[o,n,i,a]);return(0,w.useEffect)(()=>()=>{r?u.flush():u.cancel()},[u,r]),u}var se=[`mousedown`,`touchstart`];function ce(e,t,n,r=!0,i=!1){let a=(0,w.useRef)(null),o=t||se,s=(0,w.useEffectEvent)(t=>{let{target:r}=t??{};if(!document.body.contains(r)&&r?.tagName!==`HTML`)return;let i=t.composedPath();Array.isArray(n)?n.every(e=>!!e&&!i.includes(e))&&e(t):a.current&&!i.includes(a.current)&&e(t)}),c=o.join(`,`);return(0,w.useEffect)(()=>{if(!r)return;let e=c.split(`,`);return e.forEach(e=>document.addEventListener(e,s,i)),()=>{e.forEach(e=>document.removeEventListener(e,s,i))}},[c,r,i]),a}function le(e,t){if(typeof t==`boolean`)return t;if(typeof window<`u`&&`matchMedia`in window)try{return window.matchMedia(e).matches}catch{return!1}return!1}function ue(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){let[r,i]=(0,w.useState)(n?t:le(e));return(0,w.useEffect)(()=>{try{if(`matchMedia`in window){let t=window.matchMedia(e);i(t.matches);let n=e=>i(e.matches);return t.addEventListener(`change`,n),()=>{t.removeEventListener(`change`,n)}}}catch{return}},[e]),r||!1}function de(e,t){return ue(`(prefers-color-scheme: dark)`,e===`dark`,t)?`dark`:`light`}var fe=typeof document<`u`?w.useLayoutEffect:w.useEffect;function pe(e,t){return e.length!==t.length||t.some((t,n)=>!Object.is(t,e[n]))}function me(e,t){let n=(0,w.useRef)(!1),r=(0,w.useRef)(null),i=(0,w.useRef)(void 0),a={};(0,w.useEffect)(()=>{let o=r.current===a,s=i.current;if(r.current=a,i.current=t,!n.current)n.current=!0;else if(!o&&!(t&&s&&!pe(s,t)))return e()},t)}function he({opened:e,shouldReturnFocus:t=!0}){let n=(0,w.useRef)(null),r=()=>{n.current&&`focus`in n.current&&typeof n.current.focus==`function`&&n.current?.focus({preventScroll:!0})};return me(()=>{let i=-1,a=e=>{e.key===`Tab`&&window.clearTimeout(i)};if(document.addEventListener(`keydown`,a),e)n.current=document.activeElement;else if(t){let e=document.activeElement;i=window.setTimeout(()=>{let t=document.activeElement;(t===null||t===document.body||t===e)&&r()},10)}return()=>{window.clearTimeout(i),document.removeEventListener(`keydown`,a)}},[e,t]),r}var ge=/input|select|textarea|button|object/,_e=`a, input, select, textarea, button, object, [tabindex]`;function ve(e){return e.style.display===`none`}function ye(e){if(e.getAttribute(`aria-hidden`)||e.getAttribute(`hidden`)||e.getAttribute(`type`)===`hidden`)return!1;let t=e;for(;t&&t!==document.body&&t.nodeType!==11;){if(ve(t))return!1;t=t.parentNode}return!0}function be(e){let t=e.getAttribute(`tabindex`);return t===null&&(t=void 0),parseInt(t,10)}function xe(e){let t=e.nodeName.toLowerCase(),n=!Number.isNaN(be(e));return(ge.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&ye(e)}function Se(e){let t=be(e);return(Number.isNaN(t)||t>=0)&&xe(e)}function Ce(e){return Array.from(e.querySelectorAll(_e)).filter(Se)}function we(e,t){let n=Ce(e);if(!n.length){t.preventDefault();return}let r=n[t.shiftKey?0:n.length-1],i=e.getRootNode(),a=r===i.activeElement||e===i.activeElement,o=i.activeElement;if(o.tagName===`INPUT`&&o.getAttribute(`type`)===`radio`&&(a=n.filter(e=>e.getAttribute(`type`)===`radio`&&e.getAttribute(`name`)===o.getAttribute(`name`)).includes(r)),!a)return;t.preventDefault();let s=n[t.shiftKey?n.length-1:0];s&&s.focus()}function Te(e=!0){let t=(0,w.useRef)(null),n=e=>{let t=e.querySelector(`[data-autofocus]`);if(!t){let n=Array.from(e.querySelectorAll(_e));t=n.find(Se)||n.find(xe)||null,!t&&xe(e)&&(t=e)}t?t.focus({preventScroll:!0}):console.warn(`[@mantine/hooks/use-focus-trap] Failed to find focusable element within provided node`,e)},r=(0,w.useCallback)(r=>{e&&(r===null?t.current=null:t.current!==r&&(setTimeout(()=>{r.getRootNode()?n(r):console.warn(`[@mantine/hooks/use-focus-trap] Ref node is not part of the dom`,r)}),t.current=r))},[e]);return(0,w.useEffect)(()=>{if(!e)return;t.current&&setTimeout(()=>{t.current&&n(t.current)});let r=e=>{e.key===`Tab`&&t.current&&we(t.current,e)};return document.addEventListener(`keydown`,r),()=>document.removeEventListener(`keydown`,r)},[e]),r}var Ee=e=>(e+1)%1e6;function De(){let[,e]=(0,w.useReducer)(Ee,0);return e}function Oe(e){let t=(0,w.useId)(),[n,r]=(0,w.useState)(`mantine-${t.replace(/:/g,``)}`),i=(0,w.useRef)(!1);return fe(()=>{i.current||(i.current=!0,r(ae()))},[]),typeof e==`string`?e:n}function ke(e,t,n){let r=(0,w.useEffectEvent)(t);(0,w.useEffect)(()=>(window.addEventListener(e,r,n),()=>window.removeEventListener(e,r,n)),[e])}function Ae(e,t){if(typeof e==`function`)return e(t);typeof e==`object`&&e&&`current`in e&&(e.current=t)}function je(...e){let t=new Map;return n=>{if(e.forEach(e=>{let r=Ae(e,n);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{let n=t.get(e);n&&typeof n==`function`?n():Ae(e,null)}),t.clear()}}}function Me(...e){return(0,w.useCallback)(je(...e),e)}function Ne({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){let[i,a]=(0,w.useState)(t===void 0?n:t);return e===void 0?[i,(e,...t)=>{a(e),r?.(e,...t)},!1]:[e,r,!0]}function Pe(e,t){return ue(`(prefers-reduced-motion: reduce)`,e,t)}function Fe(e,t){if(!e||!t)return!1;if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(!U(e[n],t[n]))return!1;return!0}function Ie(e){let t=(0,w.useRef)([]),n=(0,w.useRef)(0);return Fe(t.current,e)||(t.current=e,n.current+=1),[n.current]}function Le(e,t){(0,w.useEffect)(e,Ie(t))}function Re(e,t,n={autoInvoke:!1}){let r=(0,w.useRef)(null),i=W(e),a=(0,w.useCallback)((...e)=>{r.current||=window.setTimeout(()=>{i(...e),r.current=null},t)},[t]),o=(0,w.useCallback)(()=>{r.current&&=(window.clearTimeout(r.current),null)},[]);return(0,w.useEffect)(()=>(n.autoInvoke&&a(),o),[o,a]),{start:a,clear:o}}function ze(e){let t=(0,w.useRef)(void 0);return(0,w.useEffect)(()=>{t.current=e},[e]),t.current}function Be(e,t,n){let r=(0,w.useRef)(null);(0,w.useEffect)(()=>{r.current&&=(r.current.disconnect(),null);let i=typeof n==`function`?n():n;return i&&(r.current=new MutationObserver(e),r.current.observe(i,t)),()=>{r.current&&=(r.current.disconnect(),null)}},[e,t,n])}function Ve(){let[e,t]=(0,w.useState)(!1);return(0,w.useEffect)(()=>t(!0),[]),e}var He=[`mouse`,`touch`],Ue=10;function We(e,t={}){let{threshold:n=400,events:r=He,cancelOnMove:i=!1,onStart:a,onFinish:o,onCancel:s}=t,c=(0,w.useRef)(!1),l=(0,w.useRef)(!1),u=(0,w.useRef)(-1),d=(0,w.useRef)(null);(0,w.useEffect)(()=>()=>window.clearTimeout(u.current),[]);let f=r.join(`,`);return(0,w.useMemo)(()=>{if(typeof e!=`function`)return{};let t=i!==!1,f=i===!0?Ue:i===!1?0:i,p=t=>{(qe(t)||Ke(t))&&(a&&a(t),d.current=Ge(t),l.current=!0,u.current=window.setTimeout(()=>{e(t),c.current=!0},n))},m=e=>{(qe(e)||Ke(e))&&(c.current?o&&o(e):l.current&&s&&s(e),c.current=!1,l.current=!1,d.current=null,u.current!==-1&&(window.clearTimeout(u.current),u.current=-1))},h=e=>{if(!t||!l.current||c.current)return;let n=Ge(e);if(!n||!d.current)return;let r=n.x-d.current.x,i=n.y-d.current.y;Math.sqrt(r*r+i*i)>f&&m(e)},g={};return r.includes(`mouse`)&&(g.onMouseDown=p,g.onMouseUp=m,g.onMouseLeave=m,t&&(g.onMouseMove=h)),r.includes(`touch`)&&(g.onTouchStart=p,g.onTouchEnd=m,g.onTouchCancel=m,t&&(g.onTouchMove=h)),g},[e,n,s,o,a,i,f])}function Ge(e){if(Ke(e)){let t=e.touches[0]??e.changedTouches[0];return t?{x:t.clientX,y:t.clientY}:null}return{x:e.clientX,y:e.clientY}}function Ke(e){return window.TouchEvent?e.nativeEvent instanceof TouchEvent:`touches`in e.nativeEvent}function qe(e){return e.nativeEvent instanceof MouseEvent}var Je=o((e=>{var t=C();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=u(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=u(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.1`})),Ye=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Je()})),Xe=l(Ye(),1);function Ze(e){if(!e||typeof e==`string`)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Qe(e){return e.current?e.current.scrollHeight:`auto`}function $e(e){return typeof e==`number`&&e>0}function et({transitionDuration:e,transitionTimingFunction:t=`ease`,onTransitionEnd:n,onTransitionStart:r,expanded:i,keepMounted:a}){let o={height:0,overflow:`hidden`,...a?{}:{display:`none`}},s=(0,w.useEffectEvent)(()=>r?.()),c=(0,w.useEffectEvent)(()=>n?.()),l=(0,w.useRef)(null),[u,d]=(0,w.useState)(i?{}:o),[f,p]=(0,w.useState)(i?`entered`:`exited`),m=e=>{(0,Xe.flushSync)(()=>d(e))},h=e=>{m(t=>({...t,...e}))},g=n=>{let r=e??Ze(n);return{transition:`height ${r}ms ${t}, opacity ${r}ms ${t}`}},_=(0,w.useRef)(0);me(()=>{_.current+=1;let t=_.current,n=()=>_.current===t;e!==0&&s(),i?window.requestAnimationFrame(()=>{n()&&l.current&&((0,Xe.flushSync)(()=>p(`entering`)),h({willChange:`height`,display:`block`,overflow:`hidden`}),window.requestAnimationFrame(()=>{if(!n()||!l.current)return;let e=Qe(l);$e(e)?h({...g(e),height:e}):(m({}),p(`entered`),c())}))}):window.requestAnimationFrame(()=>{if(!n()||!l.current)return;(0,Xe.flushSync)(()=>p(`exiting`));let e=Qe(l);$e(e)?(h({...g(e),willChange:`height`,height:e}),window.requestAnimationFrame(()=>{n()&&l.current&&h({height:0,overflow:`hidden`})})):(m(o),p(`exited`),c())})},[i]);let v=e=>{if(e.target===l.current&&e.propertyName===`height`){if(i){let e=Qe(l);e===u.height?m({}):h({height:e}),p(`entered`),c()}else u.height===0&&(m(o),p(`exited`),c())}};return{state:f,getCollapseProps:e=>({"aria-hidden":!i,inert:!i,ref:je(l,e?.ref),onTransitionEnd:v,style:{boxSizing:`border-box`,...e?.style,...u}})}}function tt(e){if(!e||typeof e==`string`)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function nt(e){return e.current?e.current.scrollWidth:`auto`}function rt({transitionDuration:e,transitionTimingFunction:t=`ease`,onTransitionEnd:n,onTransitionStart:r,expanded:i,keepMounted:a}){let o={width:0,overflow:`hidden`,...a?{}:{display:`none`}},s=(0,w.useEffectEvent)(()=>r?.()),c=(0,w.useEffectEvent)(()=>n?.()),l=(0,w.useRef)(null),[u,d]=(0,w.useState)(i?{}:o),[f,p]=(0,w.useState)(i?`entered`:`exited`),m=e=>{(0,Xe.flushSync)(()=>d(e))},h=e=>{m(t=>({...t,...e}))},g=n=>{let r=e??tt(n);return{transition:`width ${r}ms ${t}, opacity ${r}ms ${t}`}},_=(0,w.useRef)(0);me(()=>{_.current+=1;let t=_.current,n=()=>_.current===t;e!==0&&s(),i?window.requestAnimationFrame(()=>{n()&&l.current&&((0,Xe.flushSync)(()=>p(`entering`)),h({willChange:`width`,display:`block`,overflow:`hidden`}),window.requestAnimationFrame(()=>{if(!n()||!l.current)return;let e=nt(l);$e(e)?h({...g(e),width:e}):(m({}),p(`entered`),c())}))}):window.requestAnimationFrame(()=>{if(!n()||!l.current)return;(0,Xe.flushSync)(()=>p(`exiting`));let e=nt(l);$e(e)?(h({...g(e),willChange:`width`,width:e}),window.requestAnimationFrame(()=>{n()&&l.current&&h({width:0,overflow:`hidden`})})):(m(o),p(`exited`),c())})},[i]);let v=e=>{if(e.target===l.current&&e.propertyName===`width`){if(i){let e=nt(l);e===u.width?m({}):h({width:e}),p(`entered`),c()}else u.width===0&&(m(o),p(`exited`),c())}};return{state:f,getCollapseProps:e=>({"aria-hidden":!i,inert:!i,ref:je(l,e?.ref),onTransitionEnd:v,style:{boxSizing:`border-box`,...e?.style,...u}})}}var it=100;function at(e){return e>0?1:e<0?-1:0}function ot(e){let t=e??0;return typeof t==`number`?[t,t]:t}function st(){return{isActive:!1,pointerId:-1,startXY:[0,0],prevXY:[0,0],startTimestamp:0,prevTimestamp:0,thresholdMet:!1,firstFired:!1,lockedAxis:null,canceled:!1,lastVelocity:[0,0]}}function ct(e,t={}){let[n,r]=(0,w.useState)(!1),i=(0,w.useRef)(e);i.current=e;let a=(0,w.useRef)(t);a.current=t;let o=(0,w.useRef)(st()),s=(0,w.useRef)(null);return{ref:(0,w.useCallback)(e=>{if(!e)return;let t=new AbortController,n=e=>{let t=a.current,n=o.current;if(t.axis===`x`)return[e[0],0];if(t.axis===`y`)return[0,e[1]];if(t.axis===`lock`){if(n.lockedAxis===null){let r=t.axisThreshold??1;(Math.abs(e[0])>r||Math.abs(e[1])>r)&&(n.lockedAxis=Math.abs(e[0])>=Math.abs(e[1])?`x`:`y`)}if(n.lockedAxis===`x`)return[e[0],0];if(n.lockedAxis===`y`)return[0,e[1]]}return e},c=()=>{let e=o.current;e.isActive=!1,e.pointerId=-1,e.thresholdMet=!1,e.firstFired=!1,e.lockedAxis=null,e.canceled=!1,r(!1),document.body.style.userSelect=``,document.body.style.webkitUserSelect=``,s.current?.abort(),s.current=null},l=()=>{o.current.isActive&&(o.current.canceled=!0,c())},u=()=>{r(!0),document.body.style.userSelect=`none`,document.body.style.webkitUserSelect=`none`},d=e=>{if(a.current.enabled===!1||e.button!==0||o.current.isActive)return;let t=o.current;t.isActive=!0,t.pointerId=e.pointerId,t.startXY=[e.clientX,e.clientY],t.prevXY=[e.clientX,e.clientY],t.startTimestamp=e.timeStamp,t.prevTimestamp=e.timeStamp,t.thresholdMet=!1,t.firstFired=!1,t.lockedAxis=null,t.canceled=!1,t.lastVelocity=[0,0];let[n,r]=ot(a.current.threshold);n===0&&r===0&&(t.thresholdMet=!0,t.firstFired=!0,u(),i.current({xy:[e.clientX,e.clientY],initial:[e.clientX,e.clientY],movement:[0,0],delta:[0,0],distance:[0,0],direction:[0,0],velocity:[0,0],elapsedTime:0,first:!0,last:!1,active:!0,tap:!1,canceled:!1,cancel:l,event:e})),s.current?.abort(),s.current=new AbortController;let c=s.current.signal;document.addEventListener(`pointermove`,f,{signal:c}),document.addEventListener(`pointerup`,p,{signal:c}),document.addEventListener(`pointercancel`,m,{signal:c})},f=e=>{let t=o.current;if(!t.isActive||e.pointerId!==t.pointerId)return;let r=[e.clientX-t.startXY[0],e.clientY-t.startXY[1]];if(!t.thresholdMet){let[n,i]=ot(a.current.threshold);if(Math.abs(r[0])<n&&Math.abs(r[1])<i){t.prevXY=[e.clientX,e.clientY],t.prevTimestamp=e.timeStamp;return}t.thresholdMet=!0,u()}let s=n(r),c=[e.clientX-t.prevXY[0],e.clientY-t.prevXY[1]],d=n(c),f=e.timeStamp-t.prevTimestamp,p=f>0?[Math.abs(d[0])/f,Math.abs(d[1])/f]:t.lastVelocity;t.lastVelocity=p;let m=!t.firstFired;t.firstFired=!0,t.prevXY=[e.clientX,e.clientY],t.prevTimestamp=e.timeStamp,i.current({xy:[e.clientX,e.clientY],initial:[...t.startXY],movement:s,delta:d,distance:[Math.abs(s[0]),Math.abs(s[1])],direction:[at(d[0]),at(d[1])],velocity:p,elapsedTime:e.timeStamp-t.startTimestamp,first:m,last:!1,active:!0,tap:!1,canceled:!1,cancel:l,event:e})},p=e=>{let t=o.current;if(!t.isActive||e.pointerId!==t.pointerId)return;let r=a.current;if(!t.thresholdMet){if(r.filterTaps){let a=[e.clientX-t.startXY[0],e.clientY-t.startXY[1]],o=n(a),s=[Math.abs(o[0]),Math.abs(o[1])],c=Math.max(s[0],s[1])<(r.tapThreshold??3);i.current({xy:[e.clientX,e.clientY],initial:[...t.startXY],movement:o,delta:o,distance:s,direction:[at(o[0]),at(o[1])],velocity:[0,0],elapsedTime:e.timeStamp-t.startTimestamp,first:!0,last:!0,active:!1,tap:c,canceled:!1,cancel:l,event:e})}c();return}let s=[e.clientX-t.startXY[0],e.clientY-t.startXY[1]],u=n(s),d=[Math.abs(u[0]),Math.abs(u[1])],f=[e.clientX-t.prevXY[0],e.clientY-t.prevXY[1]],p=n(f),m=e.timeStamp-t.prevTimestamp>it?[0,0]:t.lastVelocity,h=Math.max(d[0],d[1]),g=r.filterTaps===!0&&h<(r.tapThreshold??3);i.current({xy:[e.clientX,e.clientY],initial:[...t.startXY],movement:u,delta:p,distance:d,direction:[at(p[0]),at(p[1])],velocity:m,elapsedTime:e.timeStamp-t.startTimestamp,first:!t.firstFired,last:!0,active:!1,tap:g,canceled:!1,cancel:l,event:e}),c()},m=e=>{let t=o.current;if(!t.isActive||e.pointerId!==t.pointerId)return;let r=[e.clientX-t.startXY[0],e.clientY-t.startXY[1]],a=n(r);i.current({xy:[e.clientX,e.clientY],initial:[...t.startXY],movement:a,delta:[0,0],distance:[Math.abs(a[0]),Math.abs(a[1])],direction:[0,0],velocity:[0,0],elapsedTime:e.timeStamp-t.startTimestamp,first:!t.firstFired,last:!0,active:!1,tap:!1,canceled:!0,cancel:l,event:e}),c()};return e.addEventListener(`pointerdown`,d,{signal:t.signal}),()=>{t.abort(),s.current?.abort(),s.current=null,o.current.isActive&&(o.current.isActive=!1,r(!1),document.body.style.userSelect=``,document.body.style.webkitUserSelect=``)}},[]),active:n}}function lt(){return`development`}function ut(e){return e?.props?.ref}function dt(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`}function ft(e,t=document){let n=t.querySelector(e);if(n)return n;let r=t.querySelectorAll(`*`);for(let t=0;t<r.length;t+=1){let n=r[t];if(n.shadowRoot){let t=ft(e,n.shadowRoot);if(t)return t}}return null}function pt(e,t=document){let n=[],r=t.querySelectorAll(e);n.push(...Array.from(r));let i=t.querySelectorAll(`*`);for(let t=0;t<i.length;t+=1){let r=i[t];if(r.shadowRoot){let t=pt(e,r.shadowRoot);n.push(...t)}}return n}function mt(e){if(!e)return document;let t=e.getRootNode();return t instanceof ShadowRoot||t instanceof Document?t:document}function ht(e){let t=w.Children.toArray(e);return t.length!==1||!T(t[0])?null:t[0]}function gt(e){return e}function _t(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=_t(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function vt(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=_t(e))&&(r&&(r+=` `),r+=t);return r}var yt={};function bt(e){let t={};return e.forEach(e=>{Object.entries(e).forEach(([e,n])=>{t[e]?t[e]=vt(t[e],n):t[e]=n})}),t}function xt({theme:e,classNames:t,props:n,stylesCtx:r}){return bt((Array.isArray(t)?t:[t]).map(t=>typeof t==`function`?t(e,n,r):t||yt))}function St({theme:e,styles:t,props:n,stylesCtx:r}){let i=Array.isArray(t)?t:[t],a={};for(let t of i)typeof t==`function`?Object.assign(a,t(e,n,r)):t&&Object.assign(a,t);return a}function Ct(e){return e===`auto`||e===`dark`||e===`light`}function wt({key:e=`mantine-color-scheme-value`}={}){let t;return{get:t=>{if(typeof window>`u`)return t;try{let n=window.localStorage.getItem(e);return Ct(n)?n:t}catch{return t}},set:t=>{try{window.localStorage.setItem(e,t)}catch(e){console.warn(`[@mantine/core] Local storage color scheme manager was unable to save color scheme.`,e)}},subscribe:n=>{t=t=>{t.storageArea===window.localStorage&&t.key===e&&Ct(t.newValue)&&n(t.newValue)},window.addEventListener(`storage`,t)},unsubscribe:()=>{window.removeEventListener(`storage`,t)},clear:()=>{window.localStorage.removeItem(e)}}}function Tt(e,t){return typeof e.primaryShade==`number`?e.primaryShade:t===`dark`?e.primaryShade.dark:e.primaryShade.light}function Et(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function Dt(e){let t=e.replace(`#`,``);if(t.length===3){let e=t.split(``);t=[e[0],e[0],e[1],e[1],e[2],e[2]].join(``)}if(t.length===8){let e=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:e}}let n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255,a:1}}function Ot(e){let[t,n,r,i]=e.replace(/[^0-9,./]/g,``).split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:i===void 0?1:i}}function kt(e){let t=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!t)return{r:0,g:0,b:0,a:1};let n=parseInt(t[1],10),r=parseInt(t[2],10)/100,i=parseInt(t[3],10)/100,a=t[5]?parseFloat(t[5]):void 0,o=(1-Math.abs(2*i-1))*r,s=n/60,c=o*(1-Math.abs(s%2-1)),l=i-o/2,u,d,f;return s>=0&&s<1?(u=o,d=c,f=0):s>=1&&s<2?(u=c,d=o,f=0):s>=2&&s<3?(u=0,d=o,f=c):s>=3&&s<4?(u=0,d=c,f=o):s>=4&&s<5?(u=c,d=0,f=o):(u=o,d=0,f=c),{r:Math.round((u+l)*255),g:Math.round((d+l)*255),b:Math.round((f+l)*255),a:a||1}}function At(e){return Et(e)?Dt(e):e.startsWith(`rgb`)?Ot(e):e.startsWith(`hsl`)?kt(e):{r:0,g:0,b:0,a:1}}function jt(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function Mt(e){let t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function Nt(e){if(e.startsWith(`oklch(`))return(Mt(e)||0)/100;let{r:t,g:n,b:r}=At(e),i=t/255,a=n/255,o=r/255,s=jt(i),c=jt(a),l=jt(o);return .2126*s+.7152*c+.0722*l}function Pt(e,t=.179){return!e.startsWith(`var(`)&&Nt(e)>t}function Ft({color:e,theme:t,colorScheme:n}){if(typeof e!=`string`)throw Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e===`bright`)return{color:e,value:n===`dark`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Pt(n===`dark`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-bright`};if(e===`dimmed`)return{color:e,value:n===`dark`?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Pt(n===`dark`?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:`--mantine-color-dimmed`};if(e===`white`||e===`black`)return{color:e,value:e===`white`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Pt(e===`white`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};let[r,i]=e.split(`.`),a=i?Number(i):void 0,o=r in t.colors;if(o){let e=a===void 0?t.colors[r][Tt(t,n||`light`)]:t.colors[r][a];return{color:r,value:e,shade:a,isThemeColor:o,isLight:Pt(e,t.luminanceThreshold),variable:i?`--mantine-color-${r}-${a}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:o,isLight:Pt(e,t.luminanceThreshold),shade:a,variable:void 0}}function It(e,t){let n=Ft({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function Lt(e){return!!e&&typeof e==`object`&&`mantine-virtual-color`in e}function Rt(e,t){if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, black ${t*100}%)`;let{r:n,g:r,b:i,a}=At(e),o=1-t,s=e=>Math.round(e*o);return`rgba(${s(n)}, ${s(r)}, ${s(i)}, ${a})`}function zt(e,t){let n={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},r=It(n.from,t),i=It(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${i} 100%)`}function Bt(e,t){if(typeof e!=`string`||t>1||t<0)return`rgba(0, 0, 0, 1)`;if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, transparent ${(1-t)*100}%)`;if(e.startsWith(`oklch`))return e.includes(`/`)?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(`)`,` / ${t})`);let{r:n,g:r,b:i}=At(e);return`rgba(${n}, ${r}, ${i}, ${t})`}var Vt=Bt,Ht=({color:e,theme:t,variant:n,gradient:r,autoContrast:i})=>{let a=Ft({color:e,theme:t}),o=typeof i==`boolean`?i:t.autoContrast;if(n===`none`)return{background:`transparent`,hover:`transparent`,color:`inherit`,border:`none`};if(n===`filled`){let n=a.isThemeColor&&a.shade===void 0&&Lt(t.colors[a.color]),r=o?n?`var(--mantine-color-${a.color}-contrast)`:a.isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`:`var(--mantine-color-white)`;return a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:r,border:`${v(1)} solid transparent`}:{background:`var(--mantine-color-${a.color}-${a.shade})`,hover:`var(--mantine-color-${a.color}-${a.shade===9?8:a.shade+1})`,color:r,border:`${v(1)} solid transparent`}:{background:e,hover:Rt(e,.1),color:r,border:`${v(1)} solid transparent`}}if(n===`light`){if(a.isThemeColor){if(a.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${v(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:n,hover:Rt(n,.1),color:`var(--mantine-color-${a.color}-light-color)`,border:`${v(1)} solid transparent`}}return{background:Bt(e,.1),hover:Bt(e,.12),color:e,border:`${v(1)} solid transparent`}}if(n===`outline`)return a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${v(1)} solid var(--mantine-color-${e}-outline)`}:{background:`transparent`,hover:Bt(t.colors[a.color][a.shade],.05),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${v(1)} solid var(--mantine-color-${a.color}-${a.shade})`}:{background:`transparent`,hover:Bt(e,.05),color:e,border:`${v(1)} solid ${e}`};if(n===`subtle`){if(a.isThemeColor){if(a.shade===void 0)return{background:`transparent`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${v(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:`transparent`,hover:Bt(n,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${v(1)} solid transparent`}}return{background:`transparent`,hover:Bt(e,.12),color:e,border:`${v(1)} solid transparent`}}return n===`transparent`?a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${e}-light-color)`,border:`${v(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${v(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:e,border:`${v(1)} solid transparent`}:n===`white`?a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-white)`,hover:Rt(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${v(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:Rt(t.white,.01),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${v(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:Rt(t.white,.01),color:e,border:`${v(1)} solid transparent`}:n===`gradient`?{background:zt(r,t),hover:zt(r,t),color:`var(--mantine-color-white)`,border:`none`}:n==="default"?{background:`var(--mantine-color-default)`,hover:`var(--mantine-color-default-hover)`,color:`var(--mantine-color-default-color)`,border:`${v(1)} solid var(--mantine-color-default-border)`}:{}};function Ut({color:e,theme:t,autoContrast:n,colorScheme:r}){return(typeof n==`boolean`?n:t.autoContrast)&&Ft({color:e||t.primaryColor,theme:t,colorScheme:r}).isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`}function Wt(e,t,n){return Ut({color:n===`dark`?e.dark:e.light,theme:t,colorScheme:n,autoContrast:!0})}function Gt(e,t){let n=e.colors[e.primaryColor];return Lt(n)?e.autoContrast?Wt(n,e,t):`var(--mantine-color-white)`:Ut({color:n[Tt(e,t)],theme:e,autoContrast:null})}function Kt(e,t){return typeof e==`boolean`?e:t.autoContrast}var qt=(0,w.createContext)(null);function Jt(){let e=(0,w.use)(qt);if(!e)throw Error(`[@mantine/core] MantineProvider was not found in tree`);return e}function Yt(){return Jt().cssVariablesResolver}function Xt(){return Jt().classNamesPrefix}function Zt(){return Jt().getStyleNonce}function Qt(){return Jt().withStaticClasses}function $t(){return Jt().headless}function en(){return Jt().stylesTransform?.sx}function tn(){return Jt().stylesTransform?.styles}function nn(){return Jt().env||`default`}function rn(){return Jt().deduplicateInlineStyles}function an(e){let t=document.createElement(`style`);return t.setAttribute(`data-mantine-styles`,`inline`),t.innerHTML=`*, *::before, *::after {transition: none !important;}`,t.setAttribute(`data-mantine-disable-transition`,`true`),e&&t.setAttribute(`nonce`,e),document.head.appendChild(t),()=>document.querySelectorAll(`[data-mantine-disable-transition]`).forEach(e=>e.remove())}function on({keepTransitions:e}={}){let t=(0,w.useRef)(P),n=(0,w.useRef)(-1),r=(0,w.use)(qt),i=Zt(),a=(0,w.useRef)(i?.());if(!r)throw Error(`[@mantine/core] MantineProvider was not found in tree`);let o=i=>{r.setColorScheme(i),t.current=e?()=>{}:an(a.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},s=()=>{r.clearColorScheme(),t.current=e?()=>{}:an(a.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},c=de(`light`,{getInitialValueInEffect:!1}),l=r.colorScheme===`auto`?c:r.colorScheme,u=(0,w.useCallback)(()=>o(l===`light`?`dark`:`light`),[o,l]);return(0,w.useEffect)(()=>()=>{t.current?.(),window.clearTimeout(n.current)},[]),{colorScheme:r.colorScheme,setColorScheme:o,clearColorScheme:s,toggleColorScheme:u}}function sn(e,t){let n=typeof window<`u`&&`matchMedia`in window&&window.matchMedia(`(prefers-color-scheme: dark)`)?.matches,r=e===`auto`?n?`dark`:`light`:e;t()?.setAttribute(`data-mantine-color-scheme`,r)}function cn({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){let i=(0,w.useRef)(null),[a,o]=(0,w.useState)(()=>e.get(t)),s=r||a,c=(0,w.useCallback)(t=>{r||(sn(t,n),o(t),e.set(t))},[e.set,s,r]),l=(0,w.useCallback)(()=>{o(t),sn(t,n),e.clear()},[e.clear,t]);return(0,w.useEffect)(()=>(e.subscribe(c),e.unsubscribe),[e.subscribe,e.unsubscribe]),fe(()=>{sn(e.get(t),n)},[]),(0,w.useEffect)(()=>{if(r)return sn(r,n),()=>{};r===void 0&&sn(a,n),typeof window<`u`&&`matchMedia`in window&&(i.current=window.matchMedia(`(prefers-color-scheme: dark)`));let e=e=>{a===`auto`&&sn(e.matches?`dark`:`light`,n)};return i.current?.addEventListener(`change`,e),()=>i.current?.removeEventListener(`change`,e)},[a,r]),{colorScheme:s,setColorScheme:c,clearColorScheme:l}}var ln=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),un=o(((e,t)=>{t.exports=ln()})),dn={dark:[`#C9C9C9`,`#b8b8b8`,`#828282`,`#696969`,`#424242`,`#3b3b3b`,`#2e2e2e`,`#242424`,`#1f1f1f`,`#141414`],gray:[`#f8f9fa`,`#f1f3f5`,`#e9ecef`,`#dee2e6`,`#ced4da`,`#adb5bd`,`#868e96`,`#495057`,`#343a40`,`#212529`],red:[`#fff5f5`,`#ffe3e3`,`#ffc9c9`,`#ffa8a8`,`#ff8787`,`#ff6b6b`,`#fa5252`,`#f03e3e`,`#e03131`,`#c92a2a`],pink:[`#fff0f6`,`#ffdeeb`,`#fcc2d7`,`#faa2c1`,`#f783ac`,`#f06595`,`#e64980`,`#d6336c`,`#c2255c`,`#a61e4d`],grape:[`#f8f0fc`,`#f3d9fa`,`#eebefa`,`#e599f7`,`#da77f2`,`#cc5de8`,`#be4bdb`,`#ae3ec9`,`#9c36b5`,`#862e9c`],violet:[`#f3f0ff`,`#e5dbff`,`#d0bfff`,`#b197fc`,`#9775fa`,`#845ef7`,`#7950f2`,`#7048e8`,`#6741d9`,`#5f3dc4`],indigo:[`#edf2ff`,`#dbe4ff`,`#bac8ff`,`#91a7ff`,`#748ffc`,`#5c7cfa`,`#4c6ef5`,`#4263eb`,`#3b5bdb`,`#364fc7`],blue:[`#e7f5ff`,`#d0ebff`,`#a5d8ff`,`#74c0fc`,`#4dabf7`,`#339af0`,`#228be6`,`#1c7ed6`,`#1971c2`,`#1864ab`],cyan:[`#e3fafc`,`#c5f6fa`,`#99e9f2`,`#66d9e8`,`#3bc9db`,`#22b8cf`,`#15aabf`,`#1098ad`,`#0c8599`,`#0b7285`],teal:[`#e6fcf5`,`#c3fae8`,`#96f2d7`,`#63e6be`,`#38d9a9`,`#20c997`,`#12b886`,`#0ca678`,`#099268`,`#087f5b`],green:[`#ebfbee`,`#d3f9d8`,`#b2f2bb`,`#8ce99a`,`#69db7c`,`#51cf66`,`#40c057`,`#37b24d`,`#2f9e44`,`#2b8a3e`],lime:[`#f4fce3`,`#e9fac8`,`#d8f5a2`,`#c0eb75`,`#a9e34b`,`#94d82d`,`#82c91e`,`#74b816`,`#66a80f`,`#5c940d`],yellow:[`#fff9db`,`#fff3bf`,`#ffec99`,`#ffe066`,`#ffd43b`,`#fcc419`,`#fab005`,`#f59f00`,`#f08c00`,`#e67700`],orange:[`#fff4e6`,`#ffe8cc`,`#ffd8a8`,`#ffc078`,`#ffa94d`,`#ff922b`,`#fd7e14`,`#f76707`,`#e8590c`,`#d9480f`]},fn=`-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji`,pn={scale:1,fontSmoothing:!0,focusRing:`auto`,white:`#fff`,black:`#000`,colors:dn,primaryShade:{light:6,dark:8},primaryColor:`blue`,variantColorResolver:Ht,autoContrast:!1,luminanceThreshold:.3,fontFamily:fn,fontFamilyMonospace:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace`,respectReducedMotion:!1,cursorType:`default`,defaultGradient:{from:`blue`,to:`cyan`,deg:45},defaultRadius:`md`,activeClassName:`mantine-active`,focusClassName:``,headings:{fontFamily:fn,fontWeight:`700`,textWrap:`wrap`,sizes:{h1:{fontSize:v(34),lineHeight:`1.3`},h2:{fontSize:v(26),lineHeight:`1.35`},h3:{fontSize:v(22),lineHeight:`1.4`},h4:{fontSize:v(18),lineHeight:`1.45`},h5:{fontSize:v(16),lineHeight:`1.5`},h6:{fontSize:v(14),lineHeight:`1.5`}}},fontSizes:{xs:v(12),sm:v(14),md:v(16),lg:v(18),xl:v(20)},lineHeights:{xs:`1.4`,sm:`1.45`,md:`1.55`,lg:`1.6`,xl:`1.65`},fontWeights:{regular:`400`,medium:`600`,bold:`700`},radius:{xs:v(2),sm:v(4),md:v(8),lg:v(16),xl:v(32)},spacing:{xs:v(10),sm:v(12),md:v(16),lg:v(20),xl:v(32)},breakpoints:{xs:`36em`,sm:`48em`,md:`62em`,lg:`75em`,xl:`88em`},shadows:{xs:`0 ${v(1)} ${v(3)} rgba(0, 0, 0, 0.05), 0 ${v(1)} ${v(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${v(1)} ${v(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${v(10)} ${v(15)} ${v(-5)}, rgba(0, 0, 0, 0.04) 0 ${v(7)} ${v(7)} ${v(-5)}`,md:`0 ${v(1)} ${v(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${v(20)} ${v(25)} ${v(-5)}, rgba(0, 0, 0, 0.04) 0 ${v(10)} ${v(10)} ${v(-5)}`,lg:`0 ${v(1)} ${v(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${v(28)} ${v(23)} ${v(-7)}, rgba(0, 0, 0, 0.04) 0 ${v(12)} ${v(12)} ${v(-7)}`,xl:`0 ${v(1)} ${v(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${v(36)} ${v(28)} ${v(-7)}, rgba(0, 0, 0, 0.04) 0 ${v(17)} ${v(17)} ${v(-7)}`},other:{},components:{}},mn=`[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color`,hn=`[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }`;function gn(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function _n(e){if(!(e.primaryColor in e.colors))throw Error(mn);if(typeof e.primaryShade==`object`&&(!gn(e.primaryShade.dark)||!gn(e.primaryShade.light))||typeof e.primaryShade==`number`&&!gn(e.primaryShade))throw Error(hn)}function vn(e,t){if(!t)return _n(e),e;let n=f(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(n.headings={...n.headings,fontFamily:t.fontFamily}),_n(n),n}var G=un(),yn=(0,w.createContext)(null),bn=()=>(0,w.use)(yn)||pn;function xn(){let e=(0,w.use)(yn);if(!e)throw Error(`@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app`);return e}function Sn({theme:e,children:t,inherit:n=!0}){let r=bn(),i=(0,w.useMemo)(()=>vn(n?r:pn,e),[e,r,n]);return(0,G.jsx)(yn,{value:i,children:t})}Sn.displayName=`@mantine/core/MantineThemeProvider`;function Cn(e){return Object.entries(e).map(([e,t])=>`${e}: ${t};`).join(``)}function wn(e,t){let n=t?[t]:[`:root`,`:host`],r=Cn(e.variables),i=r?`${n.join(`, `)}{${r}}`:``,a=Cn(e.dark),o=Cn(e.light),s=e=>n.map(t=>t===`:host`?`${t}([data-mantine-color-scheme="${e}"])`:`${t}[data-mantine-color-scheme="${e}"]`).join(`, `);return`${i}\n\n${a?`${s(`dark`)}{${a}}`:``}\n\n${o?`${s(`light`)}{${o}}`:``}`}function Tn({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:i=!0}){if(!e.colors[t])return{};if(n===`light`){let n=Tt(e,`light`),a={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${n===9?8:n+1})`,[`--mantine-color-${r}-light`]:`var(--mantine-color-${r}-1)`,[`--mantine-color-${r}-light-hover`]:`var(--mantine-color-${r}-2)`,[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-9)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-outline-hover`]:Vt(e.colors[t][n],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...a}:a}let a=Tt(e,`dark`),o={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+1})`,[`--mantine-color-${r}-light`]:Rt(e.colors[t][9],.5),[`--mantine-color-${r}-light-hover`]:Rt(e.colors[t][9],.3),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-0)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(a-4,0)})`,[`--mantine-color-${r}-outline-hover`]:Vt(e.colors[t][Math.max(a-4,0)],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...o}:o}function En(e,t,n){u(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}var Dn=e=>{let t=Tt(e,`light`),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:v(e.defaultRadius),r={variables:{"--mantine-z-index-app":`100`,"--mantine-z-index-modal":`200`,"--mantine-z-index-popover":`300`,"--mantine-z-index-overlay":`400`,"--mantine-z-index-max":`9999`,"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?`antialiased`:`unset`,"--mantine-moz-font-smoothing":e.fontSmoothing?`grayscale`:`unset`,"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":`light`,"--mantine-primary-color-contrast":Gt(e,`light`),"--mantine-color-bright":`var(--mantine-color-black)`,"--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":`var(--mantine-color-red-6)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-gray-5)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":`var(--mantine-color-white)`,"--mantine-color-default-hover":`var(--mantine-color-gray-0)`,"--mantine-color-default-color":`var(--mantine-color-black)`,"--mantine-color-default-border":`var(--mantine-color-gray-4)`,"--mantine-color-dimmed":`var(--mantine-color-gray-6)`,"--mantine-color-disabled":`var(--mantine-color-gray-2)`,"--mantine-color-disabled-color":`var(--mantine-color-gray-5)`,"--mantine-color-disabled-border":`var(--mantine-color-gray-3)`},dark:{"--mantine-color-scheme":`dark`,"--mantine-primary-color-contrast":Gt(e,`dark`),"--mantine-color-bright":`var(--mantine-color-white)`,"--mantine-color-text":`var(--mantine-color-dark-0)`,"--mantine-color-body":`var(--mantine-color-dark-7)`,"--mantine-color-error":`var(--mantine-color-red-8)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-dark-3)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":`var(--mantine-color-dark-6)`,"--mantine-color-default-hover":`var(--mantine-color-dark-5)`,"--mantine-color-default-color":`var(--mantine-color-white)`,"--mantine-color-default-border":`var(--mantine-color-dark-4)`,"--mantine-color-dimmed":`var(--mantine-color-dark-2)`,"--mantine-color-disabled":`var(--mantine-color-dark-6)`,"--mantine-color-disabled-color":`var(--mantine-color-dark-3)`,"--mantine-color-disabled-border":`var(--mantine-color-dark-4)`}};En(r.variables,e.breakpoints,`breakpoint`),En(r.variables,e.spacing,`spacing`),En(r.variables,e.fontSizes,`font-size`),En(r.variables,e.lineHeights,`line-height`),En(r.variables,e.shadows,`shadow`),En(r.variables,e.radius,`radius`),En(r.variables,e.fontWeights,`font-weight`),e.colors[e.primaryColor].forEach((t,n)=>{r.variables[`--mantine-primary-color-${n}`]=`var(--mantine-color-${e.primaryColor}-${n})`}),u(e.colors).forEach(t=>{let n=e.colors[t];Lt(n)?(Object.assign(r.light,Tn({theme:e,name:n.name,color:n.light,colorScheme:`light`,withColorValues:!0})),Object.assign(r.dark,Tn({theme:e,name:n.name,color:n.dark,colorScheme:`dark`,withColorValues:!0})),r.light[`--mantine-color-${n.name}-contrast`]=Wt(n,e,`light`),r.dark[`--mantine-color-${n.name}-contrast`]=Wt(n,e,`dark`)):(n.forEach((e,n)=>{r.variables[`--mantine-color-${t}-${n}`]=e}),Object.assign(r.light,Tn({theme:e,color:t,colorScheme:`light`,withColorValues:!1})),Object.assign(r.dark,Tn({theme:e,color:t,colorScheme:`dark`,withColorValues:!1})))});let i=e.headings.sizes;return u(i).forEach(t=>{r.variables[`--mantine-${t}-font-size`]=i[t].fontSize,r.variables[`--mantine-${t}-line-height`]=i[t].lineHeight,r.variables[`--mantine-${t}-font-weight`]=i[t].fontWeight||e.headings.fontWeight}),r};function On(){let e=xn(),t=Zt(),n=u(e.breakpoints).reduce((t,n)=>{let r=e.breakpoints[n].includes(`px`),i=h(e.breakpoints[n]);return`${t}@media (max-width: ${r?`${i-.1}px`:y(i-.1)}) {.mantine-visible-from-${n} {display: none !important;}}@media (min-width: ${r?`${i}px`:y(i)}) {.mantine-hidden-from-${n} {display: none !important;}}`},``);return(0,G.jsx)(`style`,{"data-mantine-styles":`classes`,nonce:t?.(),dangerouslySetInnerHTML:{__html:n}})}function kn({theme:e,generator:t}){let n=Dn(e),r=t?.(e);return r?f(n,r):n}var An=Dn(pn);function jn(e){let t={variables:{},light:{},dark:{}};return u(e.variables).forEach(n=>{An.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),u(e.light).forEach(n=>{An.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),u(e.dark).forEach(n=>{An.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function Mn(e){return wn({variables:{},dark:{"--mantine-color-scheme":`dark`},light:{"--mantine-color-scheme":`light`}},e)}function Nn({cssVariablesSelector:e,deduplicateCssVariables:t}){let n=xn(),r=Zt(),i=kn({theme:n,generator:Yt()}),a=(e===void 0||e===`:root`||e===`:host`)&&t,o=wn(a?jn(i):i,e);return o?(0,G.jsx)(`style`,{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${o}${a?``:Mn(e)}`}}):null}Nn.displayName=`@mantine/CssVariables`;function Pn({respectReducedMotion:e,getRootElement:t}){fe(()=>{e&&t()?.setAttribute(`data-respect-reduced-motion`,`true`)},[e])}function Fn({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:i=!0,deduplicateCssVariables:a=!0,withCssVariables:o=!0,cssVariablesSelector:s,classNamesPrefix:c=`mantine`,colorSchemeManager:l=wt(),defaultColorScheme:u=`light`,getRootElement:d=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:p,stylesTransform:m,env:h,deduplicateInlineStyles:g=!1}){let{colorScheme:_,setColorScheme:v,clearColorScheme:y}=cn({defaultColorScheme:u,forceColorScheme:p,manager:l,getRootElement:d});return Pn({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:d}),(0,G.jsx)(qt,{value:{colorScheme:_,setColorScheme:v,clearColorScheme:y,getRootElement:d,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:s??`:root`,withStaticClasses:r,stylesTransform:m,env:h,deduplicateInlineStyles:g},children:(0,G.jsxs)(Sn,{theme:e,children:[o&&(0,G.jsx)(Nn,{cssVariablesSelector:s,deduplicateCssVariables:a}),i&&(0,G.jsx)(On,{}),t]})})}Fn.displayName=`@mantine/core/MantineProvider`;function K(e,t,n){let r=xn(),i=(Array.isArray(e)?e:[e]).filter(Boolean),a={};for(let e of i){let t=r.components[e]?.defaultProps,n=typeof t==`function`?t(r):t;n&&(a={...a,...n})}return{...t,...a,...b(n)}}function In(e){return e}function Ln({classNames:e,styles:t,props:n,stylesCtx:r}){let i=xn();return{resolvedClassNames:e===void 0?void 0:xt({theme:i,classNames:e,props:n,stylesCtx:r||void 0}),resolvedStyles:t===void 0?void 0:St({theme:i,styles:t,props:n,stylesCtx:r||void 0})}}var Rn={always:`mantine-focus-always`,auto:`mantine-focus-auto`,never:`mantine-focus-never`};function zn({theme:e,options:t,unstyled:n}){return vt(t?.focusable&&!n&&(e.focusClassName||Rn[e.focusRing]),t?.active&&!n&&e.activeClassName)}function Bn(e,t,n=1){if(Object.is(e,t))return!0;if(n===0||typeof e!=`object`||typeof t!=`object`||e===null||t===null)return!1;if(Array.isArray(e)||Array.isArray(t)){if(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r+=1)if(!Bn(e[r],t[r],n-1))return!1;return!0}let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let i of r)if(!Object.hasOwn(t,i)||!Bn(e[i],t[i],n-1))return!1;return!0}function Vn({selector:e,stylesCtx:t,options:n,props:r,theme:i}){return xt({theme:i,classNames:n?.classNames,props:n?.props||r,stylesCtx:t})[e]}function Hn({selector:e,stylesCtx:t,theme:n,classNames:r,props:i}){return xt({theme:n,classNames:r,props:i,stylesCtx:t})[e]}function Un({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function Wn({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function Gn({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return r===!1?[]:e.map(e=>`${t}-${e}-${n}`)}function Kn({options:e,classes:t,selector:n,unstyled:r}){return e?.variant&&!r?t[`${n}--${e.variant}`]:void 0}function qn({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:i,resolvedClassNames:a,resolvedThemeClassNames:o,classes:s,unstyled:c,className:l,rootSelector:u,props:d,stylesCtx:f,withStaticClasses:p,headless:m,transformedStyles:h}){return vt(zn({theme:e,options:t,unstyled:c||m}),o.map(e=>e[r]),Kn({options:t,classes:s,selector:r,unstyled:c||m}),a[r],Hn({selector:r,stylesCtx:f,theme:e,classNames:h,props:d}),Vn({selector:r,stylesCtx:f,options:t,props:d,theme:e}),Un({rootSelector:u,selector:r,className:l}),Wn({selector:r,classes:s,unstyled:c||m}),p&&!m&&Gn({themeName:n,classNamesPrefix:i,selector:r,withStaticClass:t?.withStaticClass}),t?.className)}function Jn({style:e,theme:t}){return Array.isArray(e)?e.reduce((e,n)=>({...e,...Jn({style:n,theme:t})}),{}):typeof e==`function`?e(t):e??{}}function Yn({theme:e,selector:t,options:n,props:r,stylesCtx:i,rootSelector:a,withStylesTransform:o,resolvedStyles:s,resolvedThemeStyles:c,resolvedVars:l,resolvedRootStyle:u}){return{...c[t],...s[t],...!o&&St({theme:e,styles:n?.styles,props:n?.props||r,stylesCtx:i})[t],...l[t],...a===t?u:null,...Jn({style:n?.style,theme:e})}}function Xn(e){return e.reduce((e,t)=>(t&&Object.keys(t).forEach(n=>{e[n]={...e[n],...b(t[n])}}),e),{})}function Zn({props:e,stylesCtx:t,themeName:n,theme:r}){let i=tn()?.();return{getTransformedStyles:a=>i?[...a.map(n=>i(n,{props:e,theme:r,ctx:t})),...n.map(n=>i(r.components[n]?.styles,{props:e,theme:r,ctx:t}))].filter(Boolean):[],withStylesTransform:!!i}}function Qn({name:e,classes:t,props:n,stylesCtx:r,className:i,style:a,rootSelector:o=`root`,unstyled:s,classNames:c,styles:l,vars:u,varsResolver:d,attributes:f,stable:p}){let m=xn(),h=Xt(),g=Qt(),_=$t(),v=(Array.isArray(e)?e:[e]).filter(e=>e),{withStylesTransform:y,getTransformedStyles:b}=Zn({props:n,stylesCtx:r,themeName:v,theme:m}),x=xt({theme:m,classNames:c,props:n,stylesCtx:r}),S=v.map(e=>xt({theme:m,classNames:m.components[e]?.classNames,props:n,stylesCtx:r})),C=y?{}:St({theme:m,styles:l,props:n,stylesCtx:r}),w={};if(!y)for(let e of v){let t=St({theme:m,styles:m.components[e]?.styles,props:n,stylesCtx:r});for(let e of Object.keys(t))w[e]={...w[e],...t[e]}}let T=Xn([_?{}:d?.(m,n,r),...v.map(e=>m.components?.[e]?.vars?.(m,n,r)),u?.(m,n,r)]),E=Jn({style:a,theme:m});return $n((e,a)=>({...f?.[e],className:qn({theme:m,options:a,themeName:v,selector:e,classNamesPrefix:h,resolvedClassNames:x,resolvedThemeClassNames:S,classes:t,unstyled:s,className:i,rootSelector:o,props:n,stylesCtx:r,withStaticClasses:g,headless:_,transformedStyles:b([a?.styles,l])}),style:Yn({theme:m,selector:e,options:a,props:n,stylesCtx:r,rootSelector:o,withStylesTransform:y,resolvedStyles:C,resolvedThemeStyles:w,resolvedVars:T,resolvedRootStyle:E})}),!!p,[m,h,g,_,y?n:null,t,s,i,o,f,r,x,S,C,w,T,E])}function $n(e,t,n){let r=(0,w.useRef)(null);return t?((!r.current||!Bn(r.current.deps,n,3))&&(r.current={deps:n,getStyles:e}),r.current.getStyles):e}function er(e){return u(e).reduce((t,n)=>e[n]===void 0?t:`${t}${p(n)}:${e[n]};`,``).trim()}function tr({selector:e,styles:t,media:n,container:r}){let i=t?er(t):``,a=Array.isArray(n)?n.map(t=>`@media${t.query}{${e}{${er(t.styles)}}}`):[],o=Array.isArray(r)?r.map(t=>`@container ${t.query}{${e}{${er(t.styles)}}}`):[];return`${i?`${e}{${i}}`:``}${a.join(``)}${o.join(``)}`.trim()}function nr(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n)|0;return(t>>>0).toString(36)}function rr({deduplicate:e,...t}){let n=Zt(),r=tr(t);return e?(0,G.jsx)(`style`,{href:`mantine-${nr(r)}`,precedence:`mantine`,nonce:n?.(),children:r}):(0,G.jsx)(`style`,{"data-mantine-styles":`inline`,nonce:n?.(),dangerouslySetInnerHTML:{__html:r}})}function ir(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n)|0;return(t>>>0).toString(36)}function ar(e,t){return`__mdi__-${ir(`${e?er(e):``}|${Array.isArray(t)?t.map(e=>`${e.query}:${er(e.styles)}`).join(`|`):``}`)}`}function or(e){let{m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:_,pr:v,pe:y,ps:x,pis:S,pie:C,bd:w,bdrs:T,bg:E,c:D,opacity:O,ff:k,fz:A,fw:j,lts:M,ta:N,lh:P,fs:F,tt:I,td:L,w:R,miw:z,maw:ee,h:B,mih:V,mah:te,bgsz:ne,bgp:H,bgr:re,bga:ie,pos:ae,top:U,left:W,bottom:oe,right:se,inset:ce,display:le,flex:ue,hiddenFrom:de,visibleFrom:fe,lightHidden:pe,darkHidden:me,sx:he,...ge}=e;return{styleProps:b({m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:_,pr:v,pis:S,pie:C,pe:y,ps:x,bd:w,bg:E,c:D,opacity:O,ff:k,fz:A,fw:j,lts:M,ta:N,lh:P,fs:F,tt:I,td:L,w:R,miw:z,maw:ee,h:B,mih:V,mah:te,bgsz:ne,bgp:H,bgr:re,bga:ie,pos:ae,top:U,left:W,bottom:oe,right:se,inset:ce,display:le,flex:ue,bdrs:T,hiddenFrom:de,visibleFrom:fe,lightHidden:pe,darkHidden:me,sx:he}),rest:ge}}var sr={m:{type:`spacing`,property:`margin`},mt:{type:`spacing`,property:`marginTop`},mb:{type:`spacing`,property:`marginBottom`},ml:{type:`spacing`,property:`marginLeft`},mr:{type:`spacing`,property:`marginRight`},ms:{type:`spacing`,property:`marginInlineStart`},me:{type:`spacing`,property:`marginInlineEnd`},mis:{type:`spacing`,property:`marginInlineStart`},mie:{type:`spacing`,property:`marginInlineEnd`},mx:{type:`spacing`,property:`marginInline`},my:{type:`spacing`,property:`marginBlock`},p:{type:`spacing`,property:`padding`},pt:{type:`spacing`,property:`paddingTop`},pb:{type:`spacing`,property:`paddingBottom`},pl:{type:`spacing`,property:`paddingLeft`},pr:{type:`spacing`,property:`paddingRight`},ps:{type:`spacing`,property:`paddingInlineStart`},pe:{type:`spacing`,property:`paddingInlineEnd`},pis:{type:`spacing`,property:`paddingInlineStart`},pie:{type:`spacing`,property:`paddingInlineEnd`},px:{type:`spacing`,property:`paddingInline`},py:{type:`spacing`,property:`paddingBlock`},bd:{type:`border`,property:`border`},bdrs:{type:`radius`,property:`borderRadius`},bg:{type:`color`,property:`background`},c:{type:`textColor`,property:`color`},opacity:{type:`identity`,property:`opacity`},ff:{type:`fontFamily`,property:`fontFamily`},fz:{type:`fontSize`,property:`fontSize`},fw:{type:`identity`,property:`fontWeight`},lts:{type:`size`,property:`letterSpacing`},ta:{type:`identity`,property:`textAlign`},lh:{type:`lineHeight`,property:`lineHeight`},fs:{type:`identity`,property:`fontStyle`},tt:{type:`identity`,property:`textTransform`},td:{type:`identity`,property:`textDecoration`},w:{type:`spacing`,property:`width`},miw:{type:`spacing`,property:`minWidth`},maw:{type:`spacing`,property:`maxWidth`},h:{type:`spacing`,property:`height`},mih:{type:`spacing`,property:`minHeight`},mah:{type:`spacing`,property:`maxHeight`},bgsz:{type:`size`,property:`backgroundSize`},bgp:{type:`identity`,property:`backgroundPosition`},bgr:{type:`identity`,property:`backgroundRepeat`},bga:{type:`identity`,property:`backgroundAttachment`},pos:{type:`identity`,property:`position`},top:{type:`size`,property:`top`},left:{type:`size`,property:`left`},bottom:{type:`size`,property:`bottom`},right:{type:`size`,property:`right`},inset:{type:`size`,property:`inset`},display:{type:`identity`,property:`display`},flex:{type:`identity`,property:`flex`}};function cr(e,t){let n=Ft({color:e,theme:t});return n.color===`dimmed`?`var(--mantine-color-dimmed)`:n.color===`bright`?`var(--mantine-color-bright)`:n.variable?`var(${n.variable})`:n.color}function lr(e,t){let n=Ft({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:cr(e,t)}function ur(e,t){if(typeof e==`number`)return v(e);if(typeof e==`string`){let[n,r,...i]=e.split(` `).filter(e=>e.trim()!==``),a=`${v(n)}`;return r&&(a+=` ${r}`),i.length>0&&(a+=` ${cr(i.join(` `),t)}`),a.trim()}return e}var dr={text:`var(--mantine-font-family)`,mono:`var(--mantine-font-family-monospace)`,monospace:`var(--mantine-font-family-monospace)`,heading:`var(--mantine-font-family-headings)`,headings:`var(--mantine-font-family-headings)`};function fr(e){return typeof e==`string`&&e in dr?dr[e]:e}var pr=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function mr(e,t){return typeof e==`string`&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e==`string`&&pr.includes(e)?`var(--mantine-${e}-font-size)`:typeof e==`number`||typeof e==`string`?v(e):e}function hr(e){return e}var gr=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function _r(e,t){return typeof e==`string`&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e==`string`&&gr.includes(e)?`var(--mantine-${e}-line-height)`:e}function vr(e,t){return typeof e==`string`&&e in t.radius?`var(--mantine-radius-${e})`:typeof e==`number`||typeof e==`string`?v(e):e}function yr(e){return typeof e==`number`?v(e):e}function br(e,t){if(typeof e==`number`)return v(e);if(typeof e==`string`){let n=e.replace(`-`,``);if(!(n in t.spacing))return v(e);let r=`--mantine-spacing-${n}`;return e.startsWith(`-`)?`calc(var(${r}) * -1)`:`var(${r})`}return e}var xr={color:cr,textColor:lr,fontSize:mr,spacing:br,radius:vr,identity:hr,size:yr,lineHeight:_r,fontFamily:fr,border:ur};function Sr(e){return e.replace(`(min-width: `,``).replace(`em)`,``)}function Cr({media:e,...t}){let n=Object.keys(e).sort((e,t)=>Number(Sr(e))-Number(Sr(t))).map(t=>({query:t,styles:e[t]}));return{...t,media:n}}function wr(e){if(typeof e!=`object`||!e)return!1;let t=Object.keys(e);return t.length!==1||t[0]!==`base`}function Tr(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function Er(e){return typeof e==`object`&&e?u(e).filter(e=>e!==`base`):[]}function Dr(e,t){return typeof e==`object`&&e&&t in e?e[t]:e}function Or({styleProps:e,data:t,theme:n}){return Cr(u(e).reduce((r,i)=>{if(i===`hiddenFrom`||i===`visibleFrom`||i===`sx`)return r;let a=t[i],o=Array.isArray(a.property)?a.property:[a.property],s=Tr(e[i]);if(!wr(e[i]))return o.forEach(e=>{r.inlineStyles[e]=xr[a.type](s,n)}),r;r.hasResponsiveStyles=!0;let c=Er(e[i]);return o.forEach(t=>{s!=null&&(r.styles[t]=xr[a.type](s,n)),c.forEach(o=>{let s=`(min-width: ${n.breakpoints[o]})`;r.media[s]={...r.media[s],[t]:xr[a.type](Dr(e[i],o),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function kr(){return`__m__-${(0,w.useId)().replace(/[:«»]/g,``)}`}function Ar(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...Ar(n,t)}),{}):typeof e==`function`?e(t):e??{}}function jr(e){return e}var Mr=jr;function Nr(e){return e}function q(e){let t=e;return t.extend=Nr,t.withProps=e=>{let n=n=>(0,G.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t}function Pr(e){return q(e)}function Fr(e){let t=e;return t.withProps=e=>{let n=n=>(0,G.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t.extend=Nr,t}function Ir(e){return`data-${(e.startsWith(`data-`)?e.slice(5):e).replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}`}function Lr(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r===void 0||r===``||r===!1||r===null||(t[Ir(n)]=e[n]),t},{})}function Rr(e){return e?typeof e==`string`?{[Ir(e)]:!0}:Array.isArray(e)?[...e].reduce((e,t)=>({...e,...Rr(t)}),{}):Lr(e):null}function zr(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...zr(n,t)}),{}):typeof e==`function`?e(t):e??{}}function Br({theme:e,style:t,vars:n,styleProps:r}){let i=zr(t,e),a=zr(n,e);return{...i,...a,...r}}function Vr({component:e,style:t,__vars:n,className:r,variant:i,mod:a,size:o,hiddenFrom:s,visibleFrom:c,lightHidden:l,darkHidden:u,renderRoot:d,__size:f,ref:p,...m}){let h=xn(),g=e||`div`,{styleProps:_,rest:v}=or(m),y=en()?.()?.(_.sx),b=kr(),S=Or({styleProps:_,theme:h,data:sr}),C=rn(),w=C&&S.hasResponsiveStyles?ar(S.styles,S.media):b,T={ref:p,style:Br({theme:h,style:t,vars:n,styleProps:S.inlineStyles}),className:vt(r,y,{[w]:S.hasResponsiveStyles,"mantine-light-hidden":l,"mantine-dark-hidden":u,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${c}`]:c}),"data-variant":i,"data-size":x(o)?void 0:o||void 0,size:f,...Rr(a),...v};return(0,G.jsxs)(G.Fragment,{children:[S.hasResponsiveStyles&&(0,G.jsx)(rr,{selector:`.${w}`,styles:S.styles,media:S.media,deduplicate:C}),typeof d==`function`?d(T):(0,G.jsx)(g,{...T})]})}Vr.displayName=`@mantine/core/Box`;var J=Mr(Vr),Hr=(0,w.createContext)({dir:`ltr`,toggleDirection:()=>{},setDirection:()=>{}});function Ur(){return(0,w.use)(Hr)}var Wr={transitionDuration:200,transitionTimingFunction:`ease`,animateOpacity:!0,orientation:`vertical`,keepMounted:!0,keepMountedMode:`activity`},Gr=q(e=>{let{children:t,expanded:n,transitionDuration:r,transitionTimingFunction:i,style:a,onTransitionEnd:o,onTransitionStart:s,animateOpacity:c,keepMounted:l,keepMountedMode:u,ref:d,orientation:f,...p}=K(`Collapse`,Wr,e),m=nn(),h=xn(),g=Pe(),_=h.respectReducedMotion&&g?0:r,v=(f===`horizontal`?rt:et)({expanded:n,transitionDuration:_,transitionTimingFunction:i,onTransitionEnd:o,onTransitionStart:s,keepMounted:!1});if(_===0)return l===!0&&(u===`display-none`||m!==`test`)?u===`display-none`?(0,G.jsx)(J,{...p,style:{...Ar(a,h),...n?{}:{display:`none`}},ref:d,children:t}):(0,G.jsx)(w.Activity,{mode:n?`visible`:`hidden`,children:(0,G.jsx)(J,{...p,style:a,ref:d,children:t})}):n?(0,G.jsx)(J,{...p,style:a,ref:d,children:t}):null;let y=v.state===`exited`,b;return b=l===!1?y?null:t:l===!0?u===`display-none`?t:(0,G.jsx)(w.Activity,{mode:y?`hidden`:`visible`,children:t}):t,(0,G.jsx)(J,{...p,...v.getCollapseProps({style:{opacity:n||!c?1:0,transition:c?`opacity ${_}ms ${i}`:`none`,...Ar(a,h),...l&&u===`display-none`&&y?{display:`none`}:{}},ref:d}),children:b})});Gr.displayName=`@mantine/core/Collapse`;var[Kr,qr]=E(`ScrollArea.Root component was not found in tree`);function Jr(e,t){let n=(0,w.useEffectEvent)(t);fe(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e])}function Yr(e){let{style:t,...n}=e,r=qr(),[i,a]=(0,w.useState)(0),[o,s]=(0,w.useState)(0),c=!!(i&&o);return Jr(r.scrollbarX,()=>{let e=r.scrollbarX?.offsetHeight||0;r.onCornerHeightChange(e),s(e)}),Jr(r.scrollbarY,()=>{let e=r.scrollbarY?.offsetWidth||0;r.onCornerWidthChange(e),a(e)}),c?(0,G.jsx)(`div`,{...n,style:{...t,width:i,height:o}}):null}function Xr(e){let t=qr(),n=!!(t.scrollbarX&&t.scrollbarY);return t.type!==`scroll`&&n?(0,G.jsx)(Yr,{...e}):null}var Zr={scrollHideDelay:1e3,type:`hover`};function Qr(e){let{type:t,scrollHideDelay:n,scrollbars:r,getStyles:i,ref:a,...o}=K(`ScrollAreaRoot`,Zr,e),[s,c]=(0,w.useState)(null),[l,u]=(0,w.useState)(null),[d,f]=(0,w.useState)(null),[p,m]=(0,w.useState)(null),[h,g]=(0,w.useState)(null),[_,v]=(0,w.useState)(0),[y,b]=(0,w.useState)(0),[x,S]=(0,w.useState)(!1),[C,T]=(0,w.useState)(!1),E=Me(a,c);return(0,G.jsx)(Kr,{value:{type:t,scrollHideDelay:n,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:x,onScrollbarXEnabledChange:S,scrollbarY:h,onScrollbarYChange:g,scrollbarYEnabled:C,onScrollbarYEnabledChange:T,onCornerWidthChange:v,onCornerHeightChange:b,getStyles:i},children:(0,G.jsx)(J,{...o,ref:E,__vars:{"--sa-corner-width":r===`xy`?`${_}px`:`0px`,"--sa-corner-height":r===`xy`?`${y}px`:`0px`}})})}Qr.displayName=`@mantine/core/ScrollAreaRoot`;function $r(e,t){let n=e/t;return Number.isNaN(n)?0:n}function ei(e){let t=$r(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function ti(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function ni(e,[t,n]){return Math.min(n,Math.max(t,e))}function ri(e,t,n=`ltr`){let r=ei(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=ni(e,n===`ltr`?[0,o]:[o*-1,0]);return ti([0,o],[0,s])(c)}function ii(e,t,n,r=`ltr`){let i=ei(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return ti([c,l],d)(e)}function ai(e,t){return e>0&&e<t}function oi(e){return e?parseInt(e,10):0}function si(e,t,{checkForDefaultPrevented:n=!0}={}){return r=>{e?.(r),(n===!1||!r.defaultPrevented)&&t?.(r)}}var[ci,li]=E(`ScrollAreaScrollbar was not found in tree`);function ui(e){let{sizes:t,hasThumb:n,onThumbChange:r,onThumbPointerUp:i,onThumbPointerDown:a,onThumbPositionChange:o,onDragScroll:s,onWheelScroll:c,onResize:l,ref:u,...d}=e,f=qr(),[p,m]=(0,w.useState)(null),h=Me(u,m),g=(0,w.useRef)(null),_=(0,w.useRef)(``),v=t.content-t.viewport,y=(0,w.useEffectEvent)(e=>c(e,v)),b=W(o),x=oe(l,10),S=e=>{if(g.current){let t=e.clientX-g.current.left,n=e.clientY-g.current.top;s({x:t,y:n})}};return(0,w.useEffect)(()=>{if(!p)return;let e=e=>y(e);return p.addEventListener(`wheel`,e,{passive:!1}),()=>p.removeEventListener(`wheel`,e)},[p]),(0,w.useEffect)(b,[t,b]),Jr(p,x),Jr(f.content,x),(0,G.jsx)(ci,{value:{scrollbar:p,hasThumb:n,onThumbChange:W(r),onThumbPointerUp:W(i),onThumbPositionChange:b,onThumbPointerDown:W(a)},children:(0,G.jsx)(`div`,{...d,ref:h,"data-mantine-scrollbar":!0,style:{position:`absolute`,...d.style},onPointerDown:si(e.onPointerDown,e=>{e.preventDefault(),e.button===0&&(e.target.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,S(e))}),onPointerMove:si(e.onPointerMove,S),onPointerUp:si(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(e.preventDefault(),t.releasePointerCapture(e.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=_.current,g.current=null}})})}var di=e=>{let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=qr(),[s,c]=(0,w.useState)(),l=(0,w.useRef)(null),u=Me(i,l,o.onScrollbarXChange);return(0,w.useEffect)(()=>{l.current&&c(getComputedStyle(l.current))},[l]),(0,G.jsx)(ui,{"data-orientation":`horizontal`,...a,ref:u,sizes:t,style:{...r,"--sa-thumb-width":`${ei(t)}px`},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),ai(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:oi(s.paddingLeft),paddingEnd:oi(s.paddingRight)}})}})};di.displayName=`@mantine/core/ScrollAreaScrollbarX`;function fi(e){let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=qr(),[s,c]=(0,w.useState)(),l=(0,w.useRef)(null),u=Me(i,l,o.onScrollbarYChange);return(0,w.useEffect)(()=>{l.current&&c(window.getComputedStyle(l.current))},[]),(0,G.jsx)(ui,{...a,"data-orientation":`vertical`,ref:u,sizes:t,style:{"--sa-thumb-height":`${ei(t)}px`,...r},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),ai(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:oi(s.paddingTop),paddingEnd:oi(s.paddingBottom)}})}})}fi.displayName=`@mantine/core/ScrollAreaScrollbarY`;function pi(e){let{orientation:t=`vertical`,...n}=e,{dir:r}=Ur(),i=qr(),a=(0,w.useRef)(null),o=(0,w.useRef)(0),[s,c]=(0,w.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=$r(s.viewport,s.content),u={...n,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:e=>{a.current=e},onThumbPointerUp:()=>{o.current=0},onThumbPointerDown:e=>{o.current=e}},d=(e,t)=>ii(e,o.current,s,t);return t===`horizontal`?(0,G.jsx)(di,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollLeft,t=ri(e,s,r);a.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,r))}}):t===`vertical`?(0,G.jsx)(fi,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollTop,t=ri(e,s);s.scrollbar.size===0?a.current.style.setProperty(`--thumb-opacity`,`0`):a.current.style.setProperty(`--thumb-opacity`,`1`),a.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}}):null}pi.displayName=`@mantine/core/ScrollAreaScrollbarVisible`;function mi(e){let t=qr(),{forceMount:n,...r}=e,[i,a]=(0,w.useState)(!1),o=e.orientation===`horizontal`,s=oe(()=>{if(t.viewport){let e=t.viewport.offsetWidth<t.viewport.scrollWidth,n=t.viewport.offsetHeight<t.viewport.scrollHeight;a(o?e:n)}},10);return Jr(t.viewport,s),Jr(t.content,s),n||i?(0,G.jsx)(pi,{"data-state":i?`visible`:`hidden`,...r}):null}mi.displayName=`@mantine/core/ScrollAreaScrollbarAuto`;function hi(e){let{forceMount:t,...n}=e,r=qr(),[i,a]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{let{scrollArea:e}=r,t=0;if(e){let n=()=>{window.clearTimeout(t),a(!0)},i=()=>{t=window.setTimeout(()=>a(!1),r.scrollHideDelay)};return e.addEventListener(`pointerenter`,n),e.addEventListener(`pointerleave`,i),()=>{window.clearTimeout(t),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`pointerleave`,i)}}},[r.scrollArea,r.scrollHideDelay]),t||i?(0,G.jsx)(mi,{"data-state":i?`visible`:`hidden`,...n}):null}hi.displayName=`@mantine/core/ScrollAreaScrollbarHover`;function gi(e){let{forceMount:t,...n}=e,r=qr(),i=e.orientation===`horizontal`,[a,o]=(0,w.useState)(`hidden`),s=oe(()=>o(`idle`),100);return(0,w.useEffect)(()=>{if(a===`idle`){let e=window.setTimeout(()=>o(`hidden`),r.scrollHideDelay);return()=>window.clearTimeout(e)}},[a,r.scrollHideDelay]),(0,w.useEffect)(()=>{let{viewport:e}=r,t=i?`scrollLeft`:`scrollTop`;if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(o(`scrolling`),s()),n=r};return e.addEventListener(`scroll`,r),()=>e.removeEventListener(`scroll`,r)}},[r.viewport,i,s]),t||a!==`hidden`?(0,G.jsx)(pi,{"data-state":a===`hidden`?`hidden`:`visible`,...n,onPointerEnter:si(e.onPointerEnter,()=>o(`interacting`)),onPointerLeave:si(e.onPointerLeave,()=>o(`idle`))}):null}function _i(e){let{forceMount:t,...n}=e,r=qr(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=r,o=e.orientation===`horizontal`;return(0,w.useEffect)(()=>(o?i(!0):a(!0),()=>{o?i(!1):a(!1)}),[o,i,a]),r.type===`hover`?(0,G.jsx)(hi,{...n,forceMount:t}):r.type===`scroll`?(0,G.jsx)(gi,{...n,forceMount:t}):r.type===`auto`?(0,G.jsx)(mi,{...n,forceMount:t}):r.type===`always`?(0,G.jsx)(pi,{...n}):null}_i.displayName=`@mantine/core/ScrollAreaScrollbar`;function vi(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)}function yi(e){let{style:t,ref:n,...r}=e,i=qr(),a=li(),{onThumbPositionChange:o}=a,s=Me(n,a.onThumbChange),c=(0,w.useRef)(void 0),l=oe(()=>{c.current&&=(c.current(),void 0)},100);return(0,w.useEffect)(()=>{let{viewport:e}=i;if(e){let t=()=>{if(l(),!c.current){let t=vi(e,o);c.current=t,o()}};return o(),e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)}},[i.viewport,l,o]),(0,G.jsx)(`div`,{"data-state":a.hasThumb?`visible`:`hidden`,...r,ref:s,style:{width:`var(--sa-thumb-width)`,height:`var(--sa-thumb-height)`,...t},onPointerDownCapture:si(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;a.onThumbPointerDown({x:n,y:r})}),onPointerUp:si(e.onPointerUp,a.onThumbPointerUp)})}yi.displayName=`@mantine/core/ScrollAreaThumb`;function bi(e){let{forceMount:t,...n}=e,r=li();return t||r.hasThumb?(0,G.jsx)(yi,{...n}):null}bi.displayName=`@mantine/core/ScrollAreaThumb`;function xi({children:e,style:t,ref:n,onWheel:r,...i}){let a=qr(),o=Me(n,a.onViewportChange),s=e=>{if(r?.(e),a.scrollbarXEnabled&&a.viewport&&e.shiftKey){let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollWidth:i,clientWidth:o}=a.viewport,s=t<1,c=t>=n-r-1;i>o&&(s||c)&&e.stopPropagation()}};return(0,G.jsx)(J,{...i,ref:o,onWheel:s,"data-scrollarea-viewport":!0,style:{overflowX:a.scrollbarXEnabled?`scroll`:`hidden`,overflowY:a.scrollbarYEnabled?`scroll`:`hidden`,...t},children:(0,G.jsx)(`div`,{...a.getStyles(`content`),ref:a.onContentChange,children:e})})}xi.displayName=`@mantine/core/ScrollAreaViewport`;var Si={root:`m_d57069b5`,content:`m_b1336c6`,viewport:`m_c0783ff9`,viewportInner:`m_f8f631dd`,scrollbar:`m_c44ba933`,thumb:`m_d8b5e363`,corner:`m_21657268`};function Ci(){return typeof window<`u`}function wi(e){return Di(e)?(e.nodeName||``).toLowerCase():`#document`}function Ti(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ei(e){return((Di(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Di(e){return Ci()?e instanceof Node||e instanceof Ti(e).Node:!1}function Oi(e){return Ci()?e instanceof Element||e instanceof Ti(e).Element:!1}function ki(e){return Ci()?e instanceof HTMLElement||e instanceof Ti(e).HTMLElement:!1}function Ai(e){return!Ci()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Ti(e).ShadowRoot}function ji(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Hi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Mi(e){return/^(table|td|th)$/.test(wi(e))}function Ni(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Pi=/transform|translate|scale|rotate|perspective|filter/,Fi=/paint|layout|strict|content/,Ii=e=>!!e&&e!==`none`,Li;function Ri(e){let t=Oi(e)?Hi(e):e;return Ii(t.transform)||Ii(t.translate)||Ii(t.scale)||Ii(t.rotate)||Ii(t.perspective)||!Bi()&&(Ii(t.backdropFilter)||Ii(t.filter))||Pi.test(t.willChange||``)||Fi.test(t.contain||``)}function zi(e){let t=Wi(e);for(;ki(t)&&!Vi(t);){if(Ri(t))return t;if(Ni(t))return null;t=Wi(t)}return null}function Bi(){return Li??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Li}function Vi(e){return/^(html|body|#document)$/.test(wi(e))}function Hi(e){return Ti(e).getComputedStyle(e)}function Ui(e){return Oi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Wi(e){if(wi(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Ai(e)&&e.host||Ei(e);return Ai(t)?t.host:t}function Gi(e){let t=Wi(e);return Vi(t)?(e.ownerDocument||e).body:ki(t)&&ji(t)?t:Gi(t)}function Ki(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Gi(e),i=r===e.ownerDocument?.body,a=Ti(r);if(i){let e=qi(a);return t.concat(a,a.visualViewport||[],ji(r)?r:[],e&&n?Ki(e):[])}return t.concat(r,Ki(r,[],n))}function qi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var Ji=[`top`,`right`,`bottom`,`left`],Yi=Math.min,Xi=Math.max,Zi=Math.round,Qi=Math.floor,$i=e=>({x:e,y:e}),ea={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function ta(e,t,n){return Xi(e,Yi(t,n))}function na(e,t){return typeof e==`function`?e(t):e}function ra(e){return e.split(`-`)[0]}function ia(e){return e.split(`-`)[1]}function aa(e){return e===`x`?`y`:`x`}function oa(e){return e===`y`?`height`:`width`}function sa(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function ca(e){return aa(sa(e))}function la(e,t,n){n===void 0&&(n=!1);let r=ia(e),i=ca(e),a=oa(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=va(o)),[o,va(o)]}function ua(e){let t=va(e);return[da(e),t,da(t)]}function da(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var fa=[`left`,`right`],pa=[`right`,`left`],ma=[`top`,`bottom`],ha=[`bottom`,`top`];function ga(e,t,n){switch(e){case`top`:case`bottom`:return n?t?pa:fa:t?fa:pa;case`left`:case`right`:return t?ma:ha;default:return[]}}function _a(e,t,n,r){let i=ia(e),a=ga(ra(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(da)))),a}function va(e){let t=ra(e);return ea[t]+e.slice(t.length)}function ya(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function ba(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:ya(e)}function xa(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Sa(){let e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Ca(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+`/`+n}).join(` `):navigator.userAgent}function wa(){return/apple/i.test(navigator.vendor)}function Ta(){return Sa().toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints}function Ea(){return Ca().includes(`jsdom/`)}var Da=`data-floating-ui-focusable`,Oa=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`;function ka(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function Aa(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ai(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function ja(e){return`composedPath`in e?e.composedPath()[0]:e.target}function Ma(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Na(e){return e.matches(`html,body`)}function Pa(e){return e?.ownerDocument||document}function Fa(e){return ki(e)&&e.matches(Oa)}function Ia(e){if(!e||Ea())return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function La(e){return e?e.hasAttribute(Da)?e:e.querySelector(`[`+Da+`]`)||e:null}function Ra(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...Ra(e,t.id,n)])}function za(e){return`nativeEvent`in e}function Ba(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}var Va=typeof document<`u`?w.useLayoutEffect:function(){},Ha={...w};function Ua(e){let t=w.useRef(e);return Va(()=>{t.current=e}),t}var Wa=Ha.useInsertionEffect||(e=>e());function Ga(e){let t=w.useRef(()=>{});return Wa(()=>{t.current=e}),w.useCallback(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function Ka(e,t,n){let{reference:r,floating:i}=e,a=sa(t),o=ca(t),s=oa(o),c=ra(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=ia(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function qa(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=na(t,e),p=ba(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=xa(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=xa(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Ja=50,Ya=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:qa},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ka(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Ja&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Ka(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Xa=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=na(e,t)||{};if(l==null)return{};let d=ba(u),f={x:n,y:r},p=ca(i),m=oa(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Yi(d[_],T),D=Yi(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=ta(E,k,O),j=!c.arrow&&ia(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),Za=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=na(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=ra(r),_=sa(o),v=ra(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[va(o)]:ua(o)),x=p!==`none`;!d&&x&&b.push(..._a(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=la(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===sa(t)||T.every(e=>sa(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=sa(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function Qa(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $a(e){return Ji.some(t=>e[t]>=0)}var eo=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=na(e,t);switch(i){case`referenceHidden`:{let e=Qa(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:$a(e)}}}case`escaped`:{let e=Qa(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:$a(e)}}}default:return{}}}}};function to(e){let t=Yi(...e.map(e=>e.left)),n=Yi(...e.map(e=>e.top)),r=Xi(...e.map(e=>e.right)),i=Xi(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function no(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>xa(to(e)))}var ro=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=na(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=no(u),f=xa(to(u)),p=ba(s);function m(){if(d.length===2&&(d[0].left>d[1].right||d[1].left>d[0].right)&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&c<e.right+p.right&&l>e.top-p.top&&l<e.bottom+p.bottom)||f;if(d.length>=2){if(sa(n)===`y`){let e=d[0],t=d[d.length-1],r=ra(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return xa({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=ra(n)===`left`,t=Xi(...d.map(e=>e.right)),r=Yi(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom;return xa({x:r,y:a,width:t-r,height:o-a})}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},io=new Set([`left`,`top`]);async function ao(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=ra(n),s=ia(n),c=sa(n)===`y`,l=io.has(o)?-1:1,u=a&&c?-1:1,d=na(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var oo=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await ao(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},so=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=na(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=sa(i),p=aa(f),m=u[p],h=u[f],g=(e,t)=>ta(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},co=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=na(e,t),u={x:n,y:r},d=sa(i),f=aa(d),p=u[f],m=u[d],h=na(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=io.has(ra(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},lo=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=na(e,t),c=await i.detectOverflow(t,s),l=ra(n),u=ia(n),d=sa(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Yi(p-c[m],g),y=Yi(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Xi(c.left,c.right):S=p-2*Xi(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function uo(e){let t=Hi(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ki(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Zi(n)!==a||Zi(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function fo(e){return Oi(e)?e:e.contextElement}function po(e){let t=fo(e);if(!ki(t))return $i(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=uo(t),o=(a?Zi(n.width):n.width)/r,s=(a?Zi(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var mo=$i(0);function ho(e){let t=Ti(e);return!Bi()||!t.visualViewport?mo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function go(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Ti(e)}function _o(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=fo(e),o=$i(1);t&&(r?Oi(r)&&(o=po(r)):o=po(e));let s=go(a,n,r)?ho(a):$i(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Ti(a),t=Oi(r)?Ti(r):r,n=e,i=qi(n);for(;i&&t!==n;){let e=po(i),t=i.getBoundingClientRect(),r=Hi(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Ti(i),i=qi(n)}}return xa({width:u,height:d,x:c,y:l})}function vo(e,t){let n=Ui(e).scrollLeft;return t?t.left+n:_o(Ei(e)).left+n}function yo(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-vo(e,n),y:n.top+t.scrollTop}}function bo(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Ei(r),s=t?Ni(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=$i(1),u=$i(0),d=ki(r);if((d||!a)&&((wi(r)!==`body`||ji(o))&&(c=Ui(r)),d)){let e=_o(r);l=po(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?yo(o,c):$i(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function xo(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function So(e){let t=Ui(e),n=e.ownerDocument.body,r=Xi(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Xi(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+vo(e),o=-t.scrollTop;return Hi(n).direction===`rtl`&&(a+=Xi(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Co=25;function wo(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Ti(e),a=Ei(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Bi()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(vo(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Co&&(s-=o)}return{width:s,height:c,x:l,y:u}}function To(e,t){let n=_o(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=po(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Eo(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=wo(e,n,t);else if(t===`document`)r=So(Ei(e));else if(Oi(t))r=To(t,n);else{let n=ho(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return xa(r)}function Do(e,t){let n=t.get(e);if(n)return n;let r=Ki(e,[],!1).filter(e=>Oi(e)&&wi(e)!==`body`),i=null,a=Hi(e).position===`fixed`,o=a?Wi(e):e;for(;Oi(o)&&!Vi(o);){let e=Hi(o),t=Ri(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Wi(o)}return t.set(e,r),r}function Oo(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Ni(t)?[]:Do(t,this._c):[].concat(n),r],o=Eo(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Eo(t,a[e],i);s=Xi(n.top,s),c=Yi(n.right,c),l=Yi(n.bottom,l),u=Xi(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function ko(e){let{width:t,height:n}=uo(e);return{width:t,height:n}}function Ao(e,t,n){let r=ki(t),i=Ei(t),a=n===`fixed`,o=_o(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=$i(0);if((r||!a)&&((wi(t)!==`body`||ji(i))&&(s=Ui(t)),r)){let e=_o(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=vo(i));let l=i&&!r&&!a?yo(i,s):$i(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function jo(e){return Hi(e).position===`static`}function Mo(e,t){if(!ki(e)||Hi(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Ei(e)===n&&(n=n.ownerDocument.body),n}function No(e,t){let n=Ti(e);if(Ni(e))return n;if(!ki(e)){let t=Wi(e);for(;t&&!Vi(t);){if(Oi(t)&&!jo(t))return t;t=Wi(t)}return n}let r=Mo(e,t);for(;r&&Mi(r)&&jo(r);)r=Mo(r,t);return r&&Vi(r)&&jo(r)&&!Ri(r)?n:r||zi(e)||n}var Po=async function(e){let t=this.getOffsetParent||No,n=this.getDimensions,r=await n(e.floating);return{reference:Ao(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Fo(e){return Hi(e).direction===`rtl`}var Io={convertOffsetParentRelativeRectToViewportRelativeRect:bo,getDocumentElement:Ei,getClippingRect:Oo,getOffsetParent:No,getElementRects:Po,getClientRects:xo,getDimensions:ko,getScale:po,isElement:Oi,isRTL:Fo};function Lo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ro(e,t,n){let r=null,i,a=Ei(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Qi(d),h=Qi(a.clientWidth-(u+f)),g=Qi(a.clientHeight-(d+p)),_=Qi(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Xi(0,Yi(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Lo(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Ti(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function zo(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=fo(e),u=i||a?[...l?Ki(l):[],...t?Ki(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Ro(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?_o(e):null;c&&g();function g(){let t=_o(e);h&&!Lo(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Bo=oo,Vo=so,Ho=Za,Uo=lo,Wo=eo,Go=Xa,Ko=ro,qo=co,Jo=(e,t,n)=>{let r=new Map,i=n??{},a={...Io,...i.platform,_c:r};return Ya(e,t,{...i,platform:a})},Yo=typeof document<`u`?w.useLayoutEffect:function(){};function Xo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Xo(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Xo(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Zo(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Qo(e,t){let n=Zo(e);return Math.round(t*n)/n}function $o(e){let t=w.useRef(e);return Yo(()=>{t.current=e}),t}function es(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=w.useState(r);Xo(f,r)||p(r);let[m,h]=w.useState(null),[g,_]=w.useState(null),v=w.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=w.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=w.useRef(null),C=w.useRef(null),T=w.useRef(u),E=c!=null,D=$o(c),O=$o(i),k=$o(l),A=w.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),Jo(S.current,C.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!Xo(T.current,t)&&(T.current=t,Xe.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);Yo(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=w.useRef(!1);Yo(()=>(j.current=!0,()=>{j.current=!1}),[]),Yo(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(D.current)return D.current(b,x,A);A()}},[b,x,A,D,E]);let M=w.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),N=w.useMemo(()=>({reference:b,floating:x}),[b,x]),P=w.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=Qo(N.floating,u.x),r=Qo(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Zo(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return w.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:P}),[u,A,M,N,P])}var ts=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Go({element:r.current,padding:i}).fn(n):r?Go({element:r,padding:i}).fn(n):{}}}},ns=(e,t)=>{let n=Bo(e);return{name:n.name,fn:n.fn,options:[e,t]}},rs=(e,t)=>{let n=Vo(e);return{name:n.name,fn:n.fn,options:[e,t]}},is=(e,t)=>({fn:qo(e).fn,options:[e,t]}),as=(e,t)=>{let n=Ho(e);return{name:n.name,fn:n.fn,options:[e,t]}},os=(e,t)=>{let n=Uo(e);return{name:n.name,fn:n.fn,options:[e,t]}},ss=(e,t)=>{let n=Wo(e);return{name:n.name,fn:n.fn,options:[e,t]}},cs=(e,t)=>{let n=Ko(e);return{name:n.name,fn:n.fn,options:[e,t]}},ls=(e,t)=>{let n=ts(e);return{name:n.name,fn:n.fn,options:[e,t]}};function us(e){let t=w.useRef(void 0),n=w.useCallback(t=>{let n=e.map(e=>{if(e!=null){if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>e?.())}},e);return w.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var ds=`data-floating-ui-focusable`,fs=`active`,ps=`selected`,ms=`ArrowLeft`,hs=`ArrowRight`,gs=`ArrowUp`,_s=`ArrowDown`,vs=[ms,hs],ys=[gs,_s];[...vs,...ys];var bs={...w},xs=!1,Ss=0,Cs=()=>`floating-ui-`+Math.random().toString(36).slice(2,6)+Ss++;function ws(){let[e,t]=w.useState(()=>xs?Cs():void 0);return Va(()=>{e??t(Cs())},[]),w.useEffect(()=>{xs=!0},[]),e}var Ts=bs.useId||ws;function Es(){let e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}var Ds=w.createContext(null),Os=w.createContext(null),ks=()=>w.useContext(Ds)?.id||null,As=()=>w.useContext(Os);function js(e){return`data-floating-ui-`+e}function Ms(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}var Ns=js(`safe-polygon`);function Ps(e,t,n){if(n&&!Ba(n))return 0;if(typeof e==`number`)return e;if(typeof e==`function`){let n=e();return typeof n==`number`?n:n?.[t]}return e?.[t]}function Fs(e){return typeof e==`function`?e():e}function Is(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,dataRef:i,events:a,elements:o}=e,{enabled:s=!0,delay:c=0,handleClose:l=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=t,p=As(),m=ks(),h=Ua(l),g=Ua(c),_=Ua(n),v=Ua(d),y=w.useRef(),b=w.useRef(-1),x=w.useRef(),S=w.useRef(-1),C=w.useRef(!0),T=w.useRef(!1),E=w.useRef(()=>{}),D=w.useRef(!1),O=Ga(()=>{let e=i.current.openEvent?.type;return e?.includes(`mouse`)&&e!==`mousedown`});w.useEffect(()=>{if(!s)return;function e(e){let{open:t}=e;t||(Ms(b),Ms(S),C.current=!0,D.current=!1)}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[s,a]),w.useEffect(()=>{if(!s||!h.current||!n)return;function e(e){O()&&r(!1,e,`hover`)}let t=Pa(o.floating).documentElement;return t.addEventListener(`mouseleave`,e),()=>{t.removeEventListener(`mouseleave`,e)}},[o.floating,n,r,s,h,O]);let k=w.useCallback(function(e,t,n){t===void 0&&(t=!0),n===void 0&&(n=`hover`);let i=Ps(g.current,`close`,y.current);i&&!x.current?(Ms(b),b.current=window.setTimeout(()=>r(!1,e,n),i)):t&&(Ms(b),r(!1,e,n))},[g,r]),A=Ga(()=>{E.current(),x.current=void 0}),j=Ga(()=>{if(T.current){let e=Pa(o.floating).body;e.style.pointerEvents=``,e.removeAttribute(Ns),T.current=!1}}),M=Ga(()=>i.current.openEvent?[`click`,`mousedown`].includes(i.current.openEvent.type):!1);w.useEffect(()=>{if(!s)return;function e(e){if(Ms(b),C.current=!1,u&&!Ba(y.current)||Fs(v.current)>0&&!Ps(g.current,`open`))return;let t=Ps(g.current,`open`,y.current);t?b.current=window.setTimeout(()=>{_.current||r(!0,e,`hover`)},t):n||r(!0,e,`hover`)}function t(e){if(M()){j();return}E.current();let t=Pa(o.floating);if(Ms(S),D.current=!1,h.current&&i.current.floatingContext){n||Ms(b),x.current=h.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){j(),A(),M()||k(e,!0,`safe-polygon`)}});let r=x.current;t.addEventListener(`mousemove`,r),E.current=()=>{t.removeEventListener(`mousemove`,r)}}else(y.current!==`touch`||!Aa(o.floating,e.relatedTarget))&&k(e)}function a(e){M()||i.current.floatingContext&&(h.current==null||h.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){j(),A(),M()||k(e)}})(e))}function c(){Ms(b)}function l(e){M()||k(e,!1)}if(Oi(o.domReference)){let r=o.domReference,i=o.floating;return n&&r.addEventListener(`mouseleave`,a),f&&r.addEventListener(`mousemove`,e,{once:!0}),r.addEventListener(`mouseenter`,e),r.addEventListener(`mouseleave`,t),i&&(i.addEventListener(`mouseleave`,a),i.addEventListener(`mouseenter`,c),i.addEventListener(`mouseleave`,l)),()=>{n&&r.removeEventListener(`mouseleave`,a),f&&r.removeEventListener(`mousemove`,e),r.removeEventListener(`mouseenter`,e),r.removeEventListener(`mouseleave`,t),i&&(i.removeEventListener(`mouseleave`,a),i.removeEventListener(`mouseenter`,c),i.removeEventListener(`mouseleave`,l))}}},[o,s,e,u,f,k,A,j,r,n,_,p,g,h,i,M,v]),Va(()=>{var e;if(s&&n&&(e=h.current)!=null&&(e=e.__options)!=null&&e.blockPointerEvents&&O()){T.current=!0;let e=o.floating;if(Oi(o.domReference)&&e){var t;let n=Pa(o.floating).body;n.setAttribute(Ns,``);let r=o.domReference,i=p==null||(t=p.nodesRef.current.find(e=>e.id===m))==null||(t=t.context)==null?void 0:t.elements.floating;return i&&(i.style.pointerEvents=``),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,e.style.pointerEvents=`auto`,()=>{n.style.pointerEvents=``,r.style.pointerEvents=``,e.style.pointerEvents=``}}}},[s,n,m,o,p,h,O]),Va(()=>{n||(y.current=void 0,D.current=!1,A(),j())},[n,A,j]),w.useEffect(()=>()=>{A(),Ms(b),Ms(S),j()},[s,o.domReference,A,j]);let N=w.useMemo(()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function i(){!C.current&&!_.current&&r(!0,t,`hover`)}(!u||Ba(y.current))&&(n||Fs(v.current)===0||D.current&&e.movementX**2+e.movementY**2<2||(Ms(S),y.current===`touch`?i():(D.current=!0,S.current=window.setTimeout(i,Fs(v.current)))))}}},[u,r,n,_,v]);return w.useMemo(()=>s?{reference:N}:{},[s,N])}var Ls=()=>{},Rs=w.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Ls,setState:Ls,isInstantPhase:!1}),zs=()=>w.useContext(Rs);function Bs(e){let{children:t,delay:n,timeoutMs:r=0}=e,[i,a]=w.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),o=w.useRef(null),s=w.useCallback(e=>{a({currentId:e})},[]);return Va(()=>{i.currentId?o.current===null?o.current=i.currentId:i.isInstantPhase||a({isInstantPhase:!0}):(i.isInstantPhase&&a({isInstantPhase:!1}),o.current=null)},[i.currentId,i.isInstantPhase]),(0,G.jsx)(Rs.Provider,{value:w.useMemo(()=>({...i,setState:a,setCurrentId:s}),[i,s]),children:t})}function Vs(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,floatingId:i}=e,{id:a,enabled:o=!0}=t,s=a??i,c=zs(),{currentId:l,setCurrentId:u,initialDelay:d,setState:f,timeoutMs:p}=c;return Va(()=>{o&&l&&(f({delay:{open:1,close:Ps(d,`close`)}}),l!==s&&r(!1))},[o,s,r,f,l,d]),Va(()=>{function e(){r(!1),f({delay:d,currentId:null})}if(o&&l&&!n&&l===s){if(p){let t=window.setTimeout(e,p);return()=>{clearTimeout(t)}}e()}},[o,n,f,l,s,r,d,p]),Va(()=>{o&&u!==Ls&&n&&u(s)},[o,n,u,s]),c}function Hs(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ai(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Us(e){return`composedPath`in e?e.composedPath()[0]:e.target}var Ws={pointerdown:`onPointerDown`,mousedown:`onMouseDown`,click:`onClick`},Gs={pointerdown:`onPointerDownCapture`,mousedown:`onMouseDownCapture`,click:`onClickCapture`},Ks=e=>({escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0});function qs(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,elements:i,dataRef:a}=e,{enabled:o=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l=`pointerdown`,referencePress:u=!1,referencePressEvent:d=`pointerdown`,ancestorScroll:f=!1,bubbles:p,capture:m}=t,h=As(),g=Ga(typeof c==`function`?c:()=>!1),_=typeof c==`function`?g:c,v=w.useRef(!1),{escapeKey:y,outsidePress:b}=Ks(p),{escapeKey:x,outsidePress:S}=Ks(m),C=w.useRef(!1),T=Ga(e=>{if(!n||!o||!s||e.key!==`Escape`||C.current)return;let t=a.current.floatingContext?.nodeId,i=h?Ra(h.nodesRef.current,t):[];if(!y&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach(t=>{var n;(n=t.context)!=null&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles&&(e=!1)}),!e)return}r(!1,za(e)?e.nativeEvent:e,`escape-key`)}),E=Ga(e=>{var t;let n=()=>{var t;T(e),(t=ja(e))==null||t.removeEventListener(`keydown`,n)};(t=ja(e))==null||t.addEventListener(`keydown`,n)}),D=Ga(e=>{let t=a.current.insideReactTree;a.current.insideReactTree=!1;let n=v.current;if(v.current=!1,l===`click`&&n||t||typeof _==`function`&&!_(e))return;let o=ja(e),s=`[`+js(`inert`)+`]`,c=Pa(i.floating).querySelectorAll(s),u=Oi(o)?o:null;for(;u&&!Vi(u);){let e=Wi(u);if(Vi(e)||!Oi(e))break;u=e}if(c.length&&Oi(o)&&!Na(o)&&!Aa(o,i.floating)&&Array.from(c).every(e=>!Aa(u,e)))return;if(ki(o)&&A){let t=Vi(o),n=Hi(o),r=/auto|scroll/,i=t||r.test(n.overflowX),a=t||r.test(n.overflowY),s=i&&o.clientWidth>0&&o.scrollWidth>o.clientWidth,c=a&&o.clientHeight>0&&o.scrollHeight>o.clientHeight,l=n.direction===`rtl`,u=c&&(l?e.offsetX<=o.offsetWidth-o.clientWidth:e.offsetX>o.clientWidth),d=s&&e.offsetY>o.clientHeight;if(u||d)return}let d=a.current.floatingContext?.nodeId,f=h&&Ra(h.nodesRef.current,d).some(t=>Ma(e,t.context?.elements.floating));if(Ma(e,i.floating)||Ma(e,i.domReference)||f)return;let p=h?Ra(h.nodesRef.current,d):[];if(p.length>0){let e=!0;if(p.forEach(t=>{var n;(n=t.context)!=null&&n.open&&!t.context.dataRef.current.__outsidePressBubbles&&(e=!1)}),!e)return}r(!1,e,`outside-press`)}),O=Ga(e=>{var t;let n=()=>{var t;D(e),(t=ja(e))==null||t.removeEventListener(l,n)};(t=ja(e))==null||t.addEventListener(l,n)});w.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=y,a.current.__outsidePressBubbles=b;let e=-1;function t(e){r(!1,e,`ancestor-scroll`)}function c(){window.clearTimeout(e),C.current=!0}function u(){e=window.setTimeout(()=>{C.current=!1},Bi()?5:0)}let d=Pa(i.floating);s&&(d.addEventListener(`keydown`,x?E:T,x),d.addEventListener(`compositionstart`,c),d.addEventListener(`compositionend`,u)),_&&d.addEventListener(l,S?O:D,S);let p=[];return f&&(Oi(i.domReference)&&(p=Ki(i.domReference)),Oi(i.floating)&&(p=p.concat(Ki(i.floating))),!Oi(i.reference)&&i.reference&&i.reference.contextElement&&(p=p.concat(Ki(i.reference.contextElement)))),p=p.filter(e=>e!==d.defaultView?.visualViewport),p.forEach(e=>{e.addEventListener(`scroll`,t)}),()=>{s&&(d.removeEventListener(`keydown`,x?E:T,x),d.removeEventListener(`compositionstart`,c),d.removeEventListener(`compositionend`,u)),_&&d.removeEventListener(l,S?O:D,S),p.forEach(e=>{e.removeEventListener(`scroll`,t)}),window.clearTimeout(e)}},[a,i,s,_,l,n,r,f,o,y,b,T,x,E,D,S,O]),w.useEffect(()=>{a.current.insideReactTree=!1},[a,_,l]);let k=w.useMemo(()=>({onKeyDown:T,...u&&{[Ws[d]]:e=>{r(!1,e.nativeEvent,`reference-press`)},...d!==`click`&&{onClick(e){r(!1,e.nativeEvent,`reference-press`)}}}}),[T,r,u,d]),A=w.useMemo(()=>{function e(e){e.button===0&&(v.current=!0)}return{onKeyDown:T,onMouseDown:e,onMouseUp:e,[Gs[l]]:()=>{a.current.insideReactTree=!0}}},[T,l,a]);return w.useMemo(()=>o?{reference:k,floating:A}:{},[o,k,A])}function Js(e){let{open:t=!1,onOpenChange:n,elements:r}=e,i=Ts(),a=w.useRef({}),[o]=w.useState(()=>Es()),s=ks()!=null,[c,l]=w.useState(r.reference),u=Ga((e,t,r)=>{a.current.openEvent=e?t:void 0,o.emit(`openchange`,{open:e,event:t,reason:r,nested:s}),n?.(e,t,r)}),d=w.useMemo(()=>({setPositionReference:l}),[]),f=w.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return w.useMemo(()=>({dataRef:a,open:t,onOpenChange:u,elements:f,events:o,floatingId:i,refs:d}),[t,u,f,o,i,d])}function Ys(e){let{elements:t,...n}=e===void 0?{}:e,{nodeId:r}=n,i=Js({...n,elements:{reference:t?.reference??null,floating:t?.floating??null}}),a=n.rootContext||i,o=a.elements,[s,c]=w.useState(null),[l,u]=w.useState(null),d=o?.domReference||s,f=w.useRef(null),p=As();Va(()=>{d&&(f.current=d)},[d]);let m=es({...n,elements:{...o,...l&&{reference:l}}}),h=w.useCallback(e=>{let t=Oi(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),g=w.useCallback(e=>{(Oi(e)||e===null)&&(f.current=e,c(e)),(Oi(m.refs.reference.current)||m.refs.reference.current===null||e!==null&&!Oi(e))&&m.refs.setReference(e)},[m.refs]),_=w.useMemo(()=>({...m.refs,setReference:g,setPositionReference:h,domReference:f}),[m.refs,g,h]),v=w.useMemo(()=>({...m.elements,domReference:d}),[m.elements,d]),y=w.useMemo(()=>({...m,...a,refs:_,elements:v,nodeId:r}),[m,_,v,r,a]);return Va(()=>{a.dataRef.current.floatingContext=y;let e=p?.nodesRef.current.find(e=>e.id===r);e&&(e.context=y)}),w.useMemo(()=>({...m,context:y,refs:_,elements:v}),[m,_,v,y])}function Xs(){return Ta()&&wa()}function Zs(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,events:i,dataRef:a,elements:o}=e,{enabled:s=!0,visibleOnly:c=!0}=t,l=w.useRef(!1),u=w.useRef(-1),d=w.useRef(!0);w.useEffect(()=>{if(!s)return;let e=Ti(o.domReference);function t(){!n&&ki(o.domReference)&&o.domReference===ka(Pa(o.domReference))&&(l.current=!0)}function r(){d.current=!0}function i(){d.current=!1}return e.addEventListener(`blur`,t),Xs()&&(e.addEventListener(`keydown`,r,!0),e.addEventListener(`pointerdown`,i,!0)),()=>{e.removeEventListener(`blur`,t),Xs()&&(e.removeEventListener(`keydown`,r,!0),e.removeEventListener(`pointerdown`,i,!0))}},[o.domReference,n,s]),w.useEffect(()=>{if(!s)return;function e(e){let{reason:t}=e;(t===`reference-press`||t===`escape-key`)&&(l.current=!0)}return i.on(`openchange`,e),()=>{i.off(`openchange`,e)}},[i,s]),w.useEffect(()=>()=>{Ms(u)},[]);let f=w.useMemo(()=>({onMouseLeave(){l.current=!1},onFocus(e){if(l.current)return;let t=ja(e.nativeEvent);if(c&&Oi(t)){if(Xs()&&!e.relatedTarget){if(!d.current&&!Fa(t))return}else if(!Ia(t))return}r(!0,e.nativeEvent,`focus`)},onBlur(e){l.current=!1;let t=e.relatedTarget,n=e.nativeEvent,i=Oi(t)&&t.hasAttribute(js(`focus-guard`))&&t.getAttribute(`data-type`)===`outside`;u.current=window.setTimeout(()=>{let e=ka(o.domReference?o.domReference.ownerDocument:document);(t||e!==o.domReference)&&(Aa(a.current.floatingContext?.refs.floating.current,e)||Aa(o.domReference,e)||i||r(!1,n,`focus`))})}}),[a,o.domReference,r,c]);return w.useMemo(()=>s?{reference:f}:{},[s,f])}function Qs(e,t,n){let r=new Map,i=n===`item`,a=e;if(i&&e){let{[fs]:t,[ps]:n,...r}=e;a=r}return{...n===`floating`&&{tabIndex:-1,[ds]:``},...a,...t.map(t=>{let r=t?t[n]:null;return typeof r==`function`?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,a]=t;if(!(i&&[fs,ps].includes(n))){if(n.indexOf(`on`)===0){if(r.has(n)||r.set(n,[]),typeof a==`function`){var o;(o=r.get(n))==null||o.push(a),e[n]=function(){var e=[...arguments];return r.get(n)?.map(t=>t(...e)).find(e=>e!==void 0)}}}else e[n]=a}}),e),{})}}function $s(e){e===void 0&&(e=[]);let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=w.useCallback(t=>Qs(t,e,`reference`),t),a=w.useCallback(t=>Qs(t,e,`floating`),n),o=w.useCallback(t=>Qs(t,e,`item`),r);return w.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}var ec=new Map([[`select`,`listbox`],[`combobox`,`listbox`],[`label`,!1]]);function tc(e,t){t===void 0&&(t={});let{open:n,elements:r,floatingId:i}=e,{enabled:a=!0,role:o=`dialog`}=t,s=Ts(),c=r.domReference?.id||s,l=w.useMemo(()=>La(r.floating)?.id||i,[r.floating,i]),u=ec.get(o)??o,d=ks()!=null,f=w.useMemo(()=>u===`tooltip`||o===`label`?{[`aria-`+(o===`label`?`labelledby`:`describedby`)]:n?l:void 0}:{"aria-expanded":n?`true`:`false`,"aria-haspopup":u===`alertdialog`?`dialog`:u,"aria-controls":n?l:void 0,...u===`listbox`&&{role:`combobox`},...u===`menu`&&{id:c},...u===`menu`&&d&&{role:`menuitem`},...o===`select`&&{"aria-autocomplete":`none`},...o===`combobox`&&{"aria-autocomplete":`list`}},[u,l,d,n,c,o]),p=w.useMemo(()=>{let e={id:l,...u&&{role:u}};return u===`tooltip`||o===`label`?e:{...e,...u===`menu`&&{"aria-labelledby":c}}},[u,l,c,o]),m=w.useCallback(e=>{let{active:t,selected:n}=e,r={role:`option`,...t&&{id:l+`-fui-option`}};switch(o){case`select`:case`combobox`:return{...r,"aria-selected":n}}return{}},[l,o]);return w.useMemo(()=>a?{reference:f,floating:p,item:m}:{},[a,f,p,m])}function nc(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...nc(e,t.id,n)])}function rc(e,t){let[n,r]=e,i=!1,a=t.length;for(let e=0,o=a-1;e<a;o=e++){let[a,s]=t[e]||[0,0],[c,l]=t[o]||[0,0];s>=r!=l>=r&&n<=(c-a)*(r-s)/(l-s)+a&&(i=!i)}return i}function ic(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function ac(e){e===void 0&&(e={});let{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i={current:-1},a=!1,o=null,s=null,c=typeof performance<`u`?performance.now():0;function l(e,t){let n=performance.now(),r=n-c;if(o===null||s===null||r===0)return o=e,s=t,c=n,null;let i=e-o,a=t-s,l=Math.sqrt(i*i+a*a)/r;return o=e,s=t,c=n,l}let u=e=>{let{x:n,y:o,placement:s,elements:c,onClose:u,nodeId:d,tree:f}=e;return function(e){function p(){Ms(i),u()}if(Ms(i),!c.domReference||!c.floating||s==null||n==null||o==null)return;let{clientX:m,clientY:h}=e,g=[m,h],_=Us(e),v=e.type===`mouseleave`,y=Hs(c.floating,_),b=Hs(c.domReference,_),x=c.domReference.getBoundingClientRect(),S=c.floating.getBoundingClientRect(),C=s.split(`-`)[0],w=n>S.right-S.width/2,T=o>S.bottom-S.height/2,E=ic(g,x),D=S.width>x.width,O=S.height>x.height,k=(D?x:S).left,A=(D?x:S).right,j=(O?x:S).top,M=(O?x:S).bottom;if(y&&(a=!0,!v))return;if(b&&(a=!1),b&&!v){a=!0;return}if(v&&Oi(e.relatedTarget)&&Hs(c.floating,e.relatedTarget)||f&&nc(f.nodesRef.current,d).length)return;if(C===`top`&&o>=x.bottom-1||C===`bottom`&&o<=x.top+1||C===`left`&&n>=x.right-1||C===`right`&&n<=x.left+1)return p();let N=[];switch(C){case`top`:N=[[k,x.top+1],[k,S.bottom-1],[A,S.bottom-1],[A,x.top+1]];break;case`bottom`:N=[[k,S.top+1],[k,x.bottom-1],[A,x.bottom-1],[A,S.top+1]];break;case`left`:N=[[S.right-1,M],[S.right-1,j],[x.left+1,j],[x.left+1,M]];break;case`right`:N=[[x.right-1,M],[x.right-1,j],[S.left+1,j],[S.left+1,M]]}function P(e){let[n,r]=e;switch(C){case`top`:return[[D?n+t/2:w?n+t*4:n-t*4,r+t+1],[D?n-t/2:w?n+t*4:n-t*4,r+t+1],[S.left,w||D?S.bottom-t:S.top],[S.right,w?D?S.bottom-t:S.top:S.bottom-t]];case`bottom`:return[[D?n+t/2:w?n+t*4:n-t*4,r-t],[D?n-t/2:w?n+t*4:n-t*4,r-t],[S.left,w||D?S.top+t:S.bottom],[S.right,w?D?S.top+t:S.bottom:S.top+t]];case`left`:{let e=[n+t+1,O?r+t/2:T?r+t*4:r-t*4],i=[n+t+1,O?r-t/2:T?r+t*4:r-t*4];return[[T||O?S.right-t:S.left,S.top],[T?O?S.right-t:S.left:S.right-t,S.bottom],e,i]}case`right`:return[[n-t,O?r+t/2:T?r+t*4:r-t*4],[n-t,O?r-t/2:T?r+t*4:r-t*4],[T||O?S.left+t:S.right,S.top],[T?O?S.left+t:S.right:S.left+t,S.bottom]]}}if(!rc([m,h],N)){if(a&&!E)return p();if(!v&&r){let t=l(e.clientX,e.clientY);if(t!==null&&t<.1)return p()}rc([m,h],P([n,o]))?!a&&r&&(i.current=window.setTimeout(p,40)):p()}}};return u.__options={blockPointerEvents:n},u}var oc={scrollHideDelay:1e3,type:`hover`,scrollbars:`xy`},sc=gt((e,{scrollbarSize:t,overscrollBehavior:n,scrollbars:r})=>{let i=n;return n&&r&&(r===`x`?i=`${n} auto`:r===`y`&&(i=`auto ${n}`)),{root:{"--scrollarea-scrollbar-size":v(t),"--scrollarea-over-scroll-behavior":i}}}),cc=q(e=>{let t=K(`ScrollArea`,oc,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,scrollbarSize:s,vars:c,type:l,scrollHideDelay:u,viewportProps:d,viewportRef:f,onScrollPositionChange:p,children:m,offsetScrollbars:h,scrollbars:g,onBottomReached:_,onTopReached:v,onLeftReached:y,onRightReached:b,overscrollBehavior:x,startScrollPosition:S,verticalScrollbarPosition:C,attributes:T,...E}=t,[D,O]=(0,w.useState)(!1),[k,A]=(0,w.useState)(!1),[j,M]=(0,w.useState)(!1),N=(0,w.useRef)(!0),P=(0,w.useRef)(!1),F=(0,w.useRef)(!0),I=(0,w.useRef)(!1),L=Qn({name:`ScrollArea`,props:t,classes:Si,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:T,vars:c,varsResolver:sc}),R=(0,w.useRef)(null),[z,ee]=(0,w.useState)(null),B=us([f,R,(0,w.useCallback)(e=>{ee(t=>t===e?t:e)},[])]);return Jr(h===`present`?z:null,()=>{let e=R.current;e&&(A(e.scrollHeight>e.clientHeight),M(e.scrollWidth>e.clientWidth))}),fe(()=>{S&&R.current&&R.current.scrollTo({left:S.x??0,top:S.y??0})},[]),(0,G.jsxs)(Qr,{getStyles:L,type:l===`never`?`always`:l,scrollHideDelay:u,scrollbars:g,...L(`root`),...E,children:[(0,G.jsx)(xi,{...d,...L(`viewport`,{style:d?.style}),ref:B,"data-offset-scrollbars":h===!0?`xy`:h||void 0,"data-scrollbars":g||void 0,"data-vertical-scrollbar-position":C||void 0,"data-horizontal-hidden":h===`present`&&!j?`true`:void 0,"data-vertical-hidden":h===`present`&&!k?`true`:void 0,onScroll:e=>{d?.onScroll?.(e),p?.({x:e.currentTarget.scrollLeft,y:e.currentTarget.scrollTop});let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollLeft:i,scrollWidth:a,clientWidth:o}=e.currentTarget,s=t-(n-r)>=-.8,c=t===0;s&&!P.current&&_?.(),c&&!N.current&&v?.(),P.current=s,N.current=c;let l=i-(a-o)>=-.8,u=i===0;l&&!I.current&&b?.(),u&&!F.current&&y?.(),I.current=l,F.current=u},children:m}),(g===`xy`||g===`x`)&&(0,G.jsx)(_i,{...L(`scrollbar`),orientation:`horizontal`,"data-vertical-scrollbar-position":C||void 0,"data-hidden":l===`never`||h===`present`&&!j||void 0,forceMount:!0,onMouseEnter:()=>O(!0),onMouseLeave:()=>O(!1),children:(0,G.jsx)(bi,{...L(`thumb`)})}),(g===`xy`||g===`y`)&&(0,G.jsx)(_i,{...L(`scrollbar`),orientation:`vertical`,"data-vertical-scrollbar-position":C||void 0,"data-hidden":l===`never`||h===`present`&&!k||void 0,forceMount:!0,onMouseEnter:()=>O(!0),onMouseLeave:()=>O(!1),children:(0,G.jsx)(bi,{...L(`thumb`)})}),(0,G.jsx)(Xr,{...L(`corner`),"data-vertical-scrollbar-position":C||void 0,"data-hovered":D||void 0,"data-hidden":l===`never`||void 0})]})});cc.displayName=`@mantine/core/ScrollArea`;var lc=q(e=>{let{children:t,classNames:n,styles:r,scrollbarSize:i,scrollHideDelay:a,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:u,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,scrollbars:h,style:g,vars:_,onBottomReached:v,onTopReached:y,startScrollPosition:b,verticalScrollbarPosition:x,onOverflowChange:S,...C}=K(`ScrollAreaAutosize`,oc,e),T=(0,w.useRef)(null),[E,D]=(0,w.useState)(null),O=us([u,T,(0,w.useCallback)(e=>{D(t=>t===e?t:e)},[])]),k=(0,w.useRef)(!1),A=(0,w.useRef)(!1),j=(0,w.useEffectEvent)(()=>{let e=T.current;if(!e||!S)return;let t=e.scrollHeight>e.clientHeight;t!==k.current&&(A.current?S(t):(A.current=!0,t&&S(!0)),k.current=t)});return Jr(S?E:null,j),(0,G.jsx)(J,{...C,variant:p,style:[{display:`flex`,overflow:`hidden`},g],children:(0,G.jsx)(J,{style:{display:`flex`,flexDirection:`column`,flex:1,overflow:`hidden`,...h===`y`&&{minWidth:0},...h===`x`&&{minHeight:0},...h===`xy`&&{minWidth:0,minHeight:0},...h===!1&&{minWidth:0,minHeight:0}},children:(0,G.jsx)(cc,{classNames:n,styles:r,scrollHideDelay:a,scrollbarSize:i,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:O,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,vars:_,scrollbars:h,onBottomReached:v,onTopReached:y,startScrollPosition:b,verticalScrollbarPosition:x,"data-autosize":`true`,children:t})})})});cc.classes=Si,cc.varsResolver=sc,lc.displayName=`@mantine/core/ScrollAreaAutosize`,lc.classes=Si,cc.Autosize=lc;var uc={root:`m_87cf2631`},dc={__staticSelector:`UnstyledButton`},fc=Fr(e=>{let t=K(`UnstyledButton`,dc,e),{className:n,component:r=`button`,__staticSelector:i,unstyled:a,classNames:o,styles:s,style:c,attributes:l,...u}=t,d=Qn({name:i,props:t,classes:uc,className:n,style:c,classNames:o,styles:s,unstyled:a,attributes:l});return(0,G.jsx)(J,{...d(`root`,{focusable:!0}),component:r,type:r===`button`?`button`:void 0,...u})});fc.classes=uc,fc.displayName=`@mantine/core/UnstyledButton`;var pc={root:`m_515a97f8`},mc=q(e=>{let t=K(`VisuallyHidden`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,...l}=t,u=Qn({name:`VisuallyHidden`,classes:pc,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c});return(0,G.jsx)(J,{component:`span`,...u(`root`),...l})});mc.classes=pc,mc.displayName=`@mantine/core/VisuallyHidden`;var hc={root:`m_1b7284a3`},gc=gt((e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:R(t),"--paper-shadow":B(n)}})),_c=Fr(e=>{let t=K(`Paper`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,withBorder:s,vars:c,radius:l,shadow:u,variant:d,mod:f,attributes:p,...m}=t,h=Qn({name:`Paper`,props:t,classes:hc,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:c,varsResolver:gc});return(0,G.jsx)(J,{mod:[{withBorder:s},f],...h(`root`),variant:d,...m})});_c.classes=hc,_c.varsResolver=gc,_c.displayName=`@mantine/core/Paper`;function vc(e,t,n,r){return e===`center`||r===`center`?{top:t}:e===`end`?{bottom:n}:e===`start`?{top:n}:{}}function yc(e,t,n,r,i){return e===`center`||r===`center`?{left:t}:e===`end`?{[i===`ltr`?`right`:`left`]:n}:e===`start`?{[i===`ltr`?`left`:`right`]:n}:{}}var bc={bottom:`borderTopLeftRadius`,left:`borderTopRightRadius`,right:`borderBottomLeftRadius`,top:`borderBottomRightRadius`};function xc({position:e,arrowSize:t,dir:n}){let[r,i]=e.split(`-`);if(!i)return;let a={width:t,height:t,position:`absolute`};if(r===`bottom`){let e=i===`start`,r=e?n===`ltr`?`left`:`right`:n===`ltr`?`right`:`left`;return{...a,top:-t,[r]:0,clipPath:e===(n===`rtl`)?`polygon(100% 0%, 0% 100%, 100% 100%)`:`polygon(0% 0%, 0% 100%, 100% 100%)`}}if(r===`top`){let e=i===`start`,r=e?n===`ltr`?`left`:`right`:n===`ltr`?`right`:`left`;return{...a,bottom:-t,[r]:0,clipPath:e===(n===`rtl`)?`polygon(0% 0%, 100% 0%, 100% 100%)`:`polygon(0% 0%, 100% 0%, 0% 100%)`}}if(r===`left`)return{...a,right:-t,[i===`start`?`top`:`bottom`]:0,clipPath:i===`start`?`polygon(0% 0%, 100% 0%, 0% 100%)`:`polygon(0% 0%, 0% 100%, 100% 100%)`};if(r===`right`)return{...a,left:-t,[i===`start`?`top`:`bottom`]:0,clipPath:i===`start`?`polygon(0% 0%, 100% 0%, 100% 100%)`:`polygon(100% 0%, 0% 100%, 100% 100%)`}}function Sc({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,arrowX:a,arrowY:o,dir:s}){if(i===`merge`){let n=xc({position:e,arrowSize:t,dir:s});if(n)return n}let[c,l=`center`]=e.split(`-`),u={width:t,height:t,transform:`rotate(45deg)`,position:`absolute`,[bc[c]]:r},d=-t/2;return c===`left`?{...u,...vc(l,o,n,i),right:d,borderLeftColor:`transparent`,borderBottomColor:`transparent`,clipPath:`polygon(100% 0, 0 0, 100% 100%)`}:c===`right`?{...u,...vc(l,o,n,i),left:d,borderRightColor:`transparent`,borderTopColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 100%)`}:c===`top`?{...u,...yc(l,a,n,i,s),bottom:d,borderTopColor:`transparent`,borderLeftColor:`transparent`,clipPath:`polygon(0 100%, 100% 100%, 100% 0)`}:c===`bottom`?{...u,...yc(l,a,n,i,s),top:d,borderBottomColor:`transparent`,borderRightColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 0)`}:{}}function Cc({position:e,dir:t}){let[n,r]=e.split(`-`);if(!r)return;let i=r===`start`&&t===`ltr`||r===`end`&&t===`rtl`;if(n===`bottom`)return i?{borderTopLeftRadius:0}:{borderTopRightRadius:0};if(n===`top`)return i?{borderBottomLeftRadius:0}:{borderBottomRightRadius:0};if(n===`left`)return r===`start`?{borderTopRightRadius:0}:{borderBottomRightRadius:0};if(n===`right`)return r===`start`?{borderTopLeftRadius:0}:{borderBottomLeftRadius:0}}function wc({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,visible:a,arrowX:o,arrowY:s,style:c,...l}){let{dir:u}=Ur();return a?(0,G.jsx)(`div`,{role:`presentation`,...l,style:{...c,...Sc({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,dir:u,arrowX:o,arrowY:s})}}):null}wc.displayName=`@mantine/core/FloatingArrow`;function Tc(e,t){if(e===`rtl`&&(t.includes(`right`)||t.includes(`left`))){let[e,n]=t.split(`-`),r=e===`right`?`left`:`right`;return n===void 0?r:`${r}-${n}`}return t}function Ec({open:e,close:t,openDelay:n,closeDelay:r}){let i=(0,w.useRef)(-1),a=(0,w.useRef)(-1),o=()=>{window.clearTimeout(i.current),window.clearTimeout(a.current)};return(0,w.useEffect)(()=>o,[]),{openDropdown:()=>{o(),n===0||n===void 0?e():i.current=window.setTimeout(e,n)},closeDropdown:()=>{o(),r===0||r===void 0?t():a.current=window.setTimeout(t,r)}}}var Dc={root:`m_9814e45f`},Oc={zIndex:N(`modal`)},kc=gt((e,{gradient:t,color:n,backgroundOpacity:r,blur:i,radius:a,zIndex:o})=>({root:{"--overlay-bg":t||(n!==void 0||r!==void 0)&&Bt(n||`#000`,r??.6)||void 0,"--overlay-filter":i?`blur(${v(i)})`:void 0,"--overlay-radius":a===void 0?void 0:R(a),"--overlay-z-index":o?.toString()}})),Ac=Fr(e=>{let t=K(`Overlay`,Oc,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,fixed:c,center:l,children:u,radius:d,zIndex:f,gradient:p,blur:m,color:h,backgroundOpacity:g,mod:_,attributes:v,...y}=t,b=Qn({name:`Overlay`,props:t,classes:Dc,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:kc});return(0,G.jsx)(J,{...b(`root`),mod:[{center:l,fixed:c},_],...y,children:u})});Ac.classes=Dc,Ac.varsResolver=kc,Ac.displayName=`@mantine/core/Overlay`;function jc(e){let t=document.createElement(`div`);return t.setAttribute(`data-portal`,`true`),typeof e.className==`string`&&t.classList.add(...e.className.split(` `).filter(Boolean)),typeof e.style==`object`&&Object.assign(t.style,e.style),typeof e.id==`string`&&t.setAttribute(`id`,e.id),t}var Mc=null;function Nc({target:e,reuseTargetNode:t,...n}){if(e)return typeof e==`string`?document.querySelector(e)||jc(n):e;if(t){if(Mc){if(document.body.contains(Mc))return Mc;Mc=null}let e=document.querySelector(`[data-mantine-shared-portal-node]`);if(e)return Mc=e,e;let t=jc(n);return t.setAttribute(`data-mantine-shared-portal-node`,`true`),document.body.appendChild(t),Mc=t,t}return jc(n)}var Pc={reuseTargetNode:!0},Fc=q(e=>{let{children:t,target:n,reuseTargetNode:r,ref:i,...a}=K(`Portal`,Pc,e),[o,s]=(0,w.useState)(!1),c=(0,w.useRef)(null);return fe(()=>(s(!0),c.current=Nc({target:n,reuseTargetNode:r,...a}),Ae(i,c.current),!n&&!r&&c.current&&document.body.appendChild(c.current),()=>{!n&&!r&&c.current&&document.body.removeChild(c.current)}),[n]),!o||!c.current?null:(0,Xe.createPortal)((0,G.jsx)(G.Fragment,{children:t}),c.current)});Fc.displayName=`@mantine/core/Portal`;var Ic=q(({withinPortal:e=!0,children:t,...n})=>nn()===`test`||!e?(0,G.jsx)(G.Fragment,{children:t}):(0,G.jsx)(Fc,{...n,children:t}));Ic.displayName=`@mantine/core/OptionalPortal`;var Lc=e=>({in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(.9) translateY(${e===`bottom`?10:-10}px)`},transitionProperty:`transform, opacity`}),Rc={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:`opacity`},"fade-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(30px)`},transitionProperty:`opacity, transform`},"fade-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-30px)`},transitionProperty:`opacity, transform`},"fade-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(30px)`},transitionProperty:`opacity, transform`},"fade-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-30px)`},transitionProperty:`opacity, transform`},scale:{in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-y":{in:{opacity:1,transform:`scaleY(1)`},out:{opacity:0,transform:`scaleY(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-x":{in:{opacity:1,transform:`scaleX(1)`},out:{opacity:0,transform:`scaleX(0)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"skew-up":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(-20px) skew(-10deg, -5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"skew-down":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(20px) skew(-10deg, -5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-left":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(-5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-right":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-100%)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(100%)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"slide-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(100%)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"slide-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-100%)`},common:{transformOrigin:`right`},transitionProperty:`transform, opacity`},pop:{...Lc(`bottom`),common:{transformOrigin:`center center`}},"pop-bottom-left":{...Lc(`bottom`),common:{transformOrigin:`bottom left`}},"pop-bottom-right":{...Lc(`bottom`),common:{transformOrigin:`bottom right`}},"pop-top-left":{...Lc(`top`),common:{transformOrigin:`top left`}},"pop-top-right":{...Lc(`top`),common:{transformOrigin:`top right`}}},zc={entering:`in`,entered:`in`,exiting:`out`,exited:`out`,"pre-exiting":`out`,"pre-entering":`out`};function Bc({transition:e,state:t,duration:n,timingFunction:r}){let i={WebkitBackfaceVisibility:`hidden`,transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e==`string`?e in Rc?{transitionProperty:Rc[e].transitionProperty,...i,...Rc[e].common,...Rc[e][zc[t]]}:{}:{transitionProperty:e.transitionProperty,...i,...e.common,...e[zc[t]]}}function Vc({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:i,onExit:a,onEntered:o,onExited:s,enterDelay:c,exitDelay:l}){let u=xn(),d=Pe(),f=u.respectReducedMotion?d:!1,[p,m]=(0,w.useState)(f?0:e),[h,g]=(0,w.useState)(r?`entered`:`exited`),_=(0,w.useRef)(-1),v=(0,w.useRef)(-1),y=(0,w.useRef)(-1);function b(){window.clearTimeout(_.current),window.clearTimeout(v.current),cancelAnimationFrame(y.current),y.current=-1}let x=n=>{b();let r=n?i:a,c=n?o:s,l=f?0:n?e:t;if(m(l),l===0)typeof r==`function`&&r(),typeof c==`function`&&c(),g(n?`entered`:`exited`);else{let e=requestAnimationFrame(()=>{Xe.flushSync(()=>{g(n?`pre-entering`:`pre-exiting`)}),y.current===e&&(y.current=requestAnimationFrame(()=>{typeof r==`function`&&r(),g(n?`entering`:`exiting`),_.current=window.setTimeout(()=>{typeof c==`function`&&c(),g(n?`entered`:`exited`)},l)}))});y.current=e}},S=e=>{b(),typeof(e?c:l)==`number`?v.current=window.setTimeout(()=>{x(e)},e?c:l):x(e)};return me(()=>{S(r)},[r]),(0,w.useEffect)(()=>()=>{b()},[]),{transitionDuration:p,transitionStatus:h,transitionTimingFunction:n||`ease`}}function Hc({keepMounted:e,keepMountedMode:t=`activity`,transition:n=`fade`,duration:r=250,exitDuration:i=r,mounted:a,children:o,timingFunction:s=`ease`,onExit:c,onEntered:l,onEnter:u,onExited:d,enterDelay:f,exitDelay:p}){let m=nn(),{transitionDuration:h,transitionStatus:g,transitionTimingFunction:_}=Vc({mounted:a,exitDuration:i,duration:r,timingFunction:s,onExit:c,onEntered:l,onEnter:u,onExited:d,enterDelay:f,exitDelay:p});if(m===`test`)return a?(0,G.jsx)(G.Fragment,{children:o({})}):e?o({display:`none`}):null;if(h===0)return e?t===`display-none`?a?(0,G.jsx)(G.Fragment,{children:o({})}):o({display:`none`}):(0,G.jsx)(w.Activity,{mode:a?`visible`:`hidden`,children:o({})}):a?(0,G.jsx)(G.Fragment,{children:o({})}):null;let v=g===`exited`;if(e){let e=o(v?t===`display-none`?{display:`none`}:{}:Bc({transition:n,duration:h,state:g,timingFunction:_}));return t===`display-none`?e:(0,G.jsx)(w.Activity,{mode:v?`hidden`:`visible`,children:e})}return v?null:(0,G.jsx)(G.Fragment,{children:o(Bc({transition:n,duration:h,state:g,timingFunction:_}))})}Hc.displayName=`@mantine/core/Transition`;var Uc={duration:100,transition:`fade`};function Wc(e,t){return{...Uc,...t,...e}}var[Gc,Kc]=E(`Popover component was not found in the tree`);function qc({childProps:e,disabled:t,opened:n,longPressDelay:r=500,setReference:i,open:a}){let o=(0,w.useRef)(!1),s=(0,w.useRef)(!1),c=(0,w.useRef)(null),l=(0,w.useRef)(t);l.current=t;let u=(e,t,n)=>{i({getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t,toJSON:()=>void 0}),contextElement:n}),a()},d=V(e.onMouseDown,e=>{t||e.button===2&&e.stopPropagation()}),f=V(e.onContextMenu,e=>{t||e.defaultPrevented||(e.preventDefault(),!s.current&&(u(e.clientX,e.clientY,e.currentTarget),o.current&&(s.current=!0)))}),p=We(e=>{if(l.current||s.current)return;let t=e,n=t.touches[0]??t.changedTouches[0];n&&(u(n.clientX,n.clientY,c.current),s.current=!0)},{threshold:r,events:[`touch`],cancelOnMove:!0,onStart:e=>{o.current=!0,s.current=!1,c.current=e.currentTarget},onFinish:e=>{o.current=!1,s.current=!1,l.current||e.preventDefault()},onCancel:()=>{o.current=!1,s.current=!1}});return{onContextMenu:f,onMouseDown:d,onTouchStart:V(e.onTouchStart,p.onTouchStart),onTouchEnd:V(e.onTouchEnd,p.onTouchEnd),onTouchCancel:V(e.onTouchCancel,p.onTouchCancel),onTouchMove:V(e.onTouchMove,p.onTouchMove),style:t?e.style:{...e.style,WebkitTouchCallout:`none`,WebkitUserSelect:`none`,userSelect:`none`},"data-expanded":n?!0:void 0}}function Jc(e){let{children:t,disabled:n,longPressDelay:r}=K(`PopoverContextMenu`,null,e),i=ht(t);if(!i)throw Error(`Popover.ContextMenu component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let a=Kc(),o=qc({childProps:i.props,disabled:n||a.disabled,opened:a.opened,longPressDelay:r,setReference:a.reference,open:()=>{a.opened||a.onToggle()}});return(0,w.cloneElement)(i,o)}Jc.displayName=`@mantine/core/PopoverContextMenu`;function Yc({children:e,active:t=!0,refProp:n=`ref`,innerRef:r}){let i=Me(Te(t),r),a=ht(e);return a?(0,w.cloneElement)(a,{[n]:i}):e}function Xc(e){return(0,G.jsx)(mc,{tabIndex:-1,"data-autofocus":!0,...e})}Yc.displayName=`@mantine/core/FocusTrap`,Xc.displayName=`@mantine/core/FocusTrapInitialFocus`,Yc.InitialFocus=Xc;var Zc={dropdown:`m_38a85659`,arrow:`m_a31dc6c1`,overlay:`m_3d7bc908`},Qc=q(e=>{let t=K(`PopoverDropdown`,null,e),{className:n,style:r,vars:i,children:a,onKeyDownCapture:o,variant:s,classNames:c,styles:l,ref:u,...d}=t,f=Kc(),{dir:p}=Ur(),m=f.arrowPosition===`merge`&&f.withArrow?Cc({position:f.placement,dir:p}):void 0,h=he({opened:f.opened,shouldReturnFocus:f.returnFocus}),g=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:`dialog`,tabIndex:-1}:{},_=Me(u,f.floating);return f.disabled?null:(0,G.jsx)(Ic,{...f.portalProps,withinPortal:f.withinPortal,children:(0,G.jsx)(Hc,{mounted:f.opened,...f.transitionProps,transition:f.transitionProps?.transition||`fade`,duration:f.transitionProps?.duration??150,keepMounted:f.keepMounted,keepMountedMode:f.keepMountedMode,exitDuration:typeof f.transitionProps?.exitDuration==`number`?f.transitionProps.exitDuration:f.transitionProps?.duration,children:e=>(0,G.jsx)(Yc,{active:f.trapFocus&&f.opened,innerRef:_,children:(0,G.jsxs)(J,{...g,...d,variant:s,onKeyDownCapture:F(()=>{f.onClose?.(),f.onDismiss?.()},{active:f.closeOnEscape,onTrigger:h,onKeyDown:o}),"data-position":f.placement,"data-fixed":f.floatingStrategy===`fixed`||void 0,...f.getStyles(`dropdown`,{className:n,props:t,classNames:c,styles:l,style:[{...e,...m,zIndex:f.zIndex,top:f.y??0,left:f.x??0,width:f.width===`target`?void 0:v(f.width),...f.referenceHidden?{display:`none`}:null},f.resolvedStyles?.dropdown,l?.dropdown,r]}),children:[a,(0,G.jsx)(wc,{ref:f.arrowRef,arrowX:f.arrowX,arrowY:f.arrowY,visible:f.withArrow,position:f.placement,arrowSize:f.arrowSize,arrowRadius:f.arrowRadius,arrowOffset:f.arrowOffset,arrowPosition:f.arrowPosition,...f.getStyles(`arrow`,{props:t,classNames:c,styles:l})})]})})})})});Qc.classes=Zc,Qc.displayName=`@mantine/core/PopoverDropdown`;var $c={refProp:`ref`,popupType:`dialog`},el=q(e=>{let{children:t,refProp:n,popupType:r,ref:i,...a}=K(`PopoverTarget`,$c,e),o=ht(t);if(!o)throw Error(`Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let s=a,c=Kc(),l=Me(c.reference,ut(o),i),u=c.withRoles?{"aria-haspopup":r,"aria-expanded":c.opened,"aria-controls":c.opened?c.getDropdownId():void 0,id:c.getTargetId()}:{},d=o.props;return(0,w.cloneElement)(o,{...s,...u,...c.targetProps,className:vt(c.targetProps.className,s.className,d.className),[n]:l,...c.controlled?null:{onClick:e=>{c.onToggle(),d.onClick?.(e)}}})});el.displayName=`@mantine/core/PopoverTarget`;function tl(e){if(e===void 0)return{shift:!0,flip:!0};let t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function nl(e,t,n,r){let i=tl(e.middlewares),a=[ns(e.offset),ss()];if(i.flip&&!n){let e=typeof i.flip==`boolean`?{}:i.flip,t=r?{fallbackStrategy:`initialPlacement`,...e}:e;a.push(as(t))}if(i.shift){let t=typeof i.shift==`boolean`?{}:i.shift;a.push(rs(n=>{let r=n.placement.startsWith(`top`)||n.placement.startsWith(`bottom`);return{limiter:is(),padding:5,...e.width===`target`&&r?{mainAxis:!1}:null,...t}}))}return i.inline&&a.push(typeof i.inline==`boolean`?cs():cs(i.inline)),a.push(ls({element:e.arrowRef,padding:e.arrowOffset})),(i.size||e.width===`target`)&&a.push(os({...typeof i.size==`boolean`?{}:i.size,apply({rects:n,availableWidth:r,availableHeight:a,...o}){let s=t().refs.floating.current?.style??{};i.size&&(typeof i.size==`object`&&i.size.apply?i.size.apply({rects:n,availableWidth:r,availableHeight:a,...o}):Object.assign(s,{maxWidth:`${r}px`,maxHeight:`${a}px`})),e.width===`target`&&Object.assign(s,{width:`${n.reference.width}px`})}})),a}function rl(e){let[t,n]=Ne({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=(0,w.useRef)(t),i=(0,w.useRef)(!1),[a,o]=(0,w.useState)(null),s=e.preventPositionChangeWhenVisible!==!1,c=(0,w.useRef)(t);t!==c.current&&(c.current=t,t&&a!==null&&o(null));let l=(0,w.useRef)(e.position);e.position!==l.current&&(l.current=e.position,i.current=!1,a!==null&&o(null));let u=(0,w.useCallback)(()=>o(null),[]),d=()=>{t&&!e.disabled&&n(!1)},f=()=>{e.disabled||n(!t)},p=Ys({open:t,strategy:e.strategy,placement:s?a??e.position:e.position,middleware:nl(e,()=>p,s&&a!==null,s),whileElementsMounted:e.keepMounted?void 0:zo});(0,w.useEffect)(()=>{if(!e.keepMounted)return;let n=p.refs.reference.current,r=p.refs.floating.current;if(t&&n&&r)return zo(n,r,p.update)},[e.keepMounted,t,p.update,p.elements.reference,p.elements.floating]),fe(()=>{if(!t){i.current=!1;return}if(!s||a!==null)return;let e=p.refs.floating.current;e&&e.offsetHeight!==0&&e.offsetWidth!==0&&(i.current?p.isPositioned&&o(p.placement):(i.current=!0,p.update()))},[s,t,p.isPositioned,p.placement,a,p.update]);let m=(0,w.useRef)(p.placement);return fe(()=>{m.current!==p.placement&&(m.current=p.placement,e.onPositionChange?.(p.placement))},[p.placement]),me(()=>{t!==r.current&&(t?e.onOpen?.():e.onClose?.()),r.current=t},[t,e.onClose,e.onOpen]),{floating:p,controlled:typeof e.opened==`boolean`,opened:t,onClose:d,onToggle:f,resetLockedPlacement:u}}var il={position:`bottom`,offset:8,transitionProps:{transition:`fade`,duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:`side`,closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,hideDetached:!0,preventPositionChangeWhenVisible:!0,clickOutsideEvents:[`mousedown`,`touchstart`],clickOutsideCapture:!1,zIndex:N(`popover`),__staticSelector:`Popover`,width:`max-content`},al=gt((e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":t===void 0?void 0:R(t),"--popover-shadow":B(n)}}));function ol(e){let t=K(`Popover`,il,e),{children:n,position:r,offset:i,onPositionChange:a,opened:o,transitionProps:s,onExitTransitionEnd:c,onEnterTransitionEnd:l,width:u,middlewares:d,withArrow:f,arrowSize:p,arrowOffset:m,arrowRadius:h,arrowPosition:g,unstyled:_,classNames:v,styles:y,closeOnClickOutside:b,withinPortal:x,portalProps:S,closeOnEscape:C,clickOutsideEvents:T,clickOutsideCapture:E,trapFocus:D,onClose:O,onDismiss:k,onOpen:A,onChange:j,zIndex:M,radius:N,shadow:P,id:F,defaultOpened:I,__staticSelector:L,withRoles:R,disabled:z,returnFocus:ee,variant:B,keepMounted:V,keepMountedMode:te,vars:ne,floatingStrategy:H,withOverlay:re,overlayProps:ie,hideDetached:ae,attributes:U,preventPositionChangeWhenVisible:W,...oe}=t,se=Qn({name:L,props:t,classes:Zc,classNames:v,styles:y,unstyled:_,attributes:U,rootSelector:`dropdown`,vars:ne,varsResolver:al}),{resolvedStyles:le}=Ln({classNames:v,styles:y,props:t}),ue=(0,w.useRef)(null),[de,fe]=(0,w.useState)(null),[pe,me]=(0,w.useState)(null),{dir:he}=Ur(),ge=nn(),_e=Oe(F),ve=rl({middlewares:d,width:u,position:Tc(he,r),offset:typeof i==`number`?i+(f?p/2:0):i,arrowRef:ue,arrowOffset:m,onPositionChange:a,opened:o,defaultOpened:I,onChange:j,onOpen:A,onClose:O,onDismiss:k,strategy:H,disabled:z,preventPositionChangeWhenVisible:W,keepMounted:V});ce(()=>{b&&(ve.onClose(),k?.())},T,[de,pe],!0,E);let ye=(0,w.useCallback)(e=>{fe(e),ve.floating.refs.setReference(e)},[ve.floating.refs.setReference]),be=(0,w.useCallback)(e=>{me(e),ve.floating.refs.setFloating(e)},[ve.floating.refs.setFloating]),xe=(0,w.useCallback)(()=>{s?.onExited?.(),c?.(),ve.resetLockedPlacement()},[s?.onExited,c,ve.resetLockedPlacement]),Se=(0,w.useCallback)(()=>{s?.onEntered?.(),l?.()},[s?.onEntered,l]);return(0,G.jsxs)(Gc,{value:{returnFocus:ee,disabled:z,controlled:ve.controlled,reference:ye,floating:be,x:ve.floating.x,y:ve.floating.y,arrowX:ve.floating?.middlewareData?.arrow?.x,arrowY:ve.floating?.middlewareData?.arrow?.y,opened:ve.opened,arrowRef:ue,transitionProps:{...s,onExited:xe,onEntered:Se},width:u,withArrow:f,arrowSize:p,arrowOffset:m,arrowRadius:h,arrowPosition:g,placement:ve.floating.placement,trapFocus:D,withinPortal:x,portalProps:S,zIndex:M,radius:N,shadow:P,closeOnEscape:C,onDismiss:k,onClose:ve.onClose,onToggle:ve.onToggle,getTargetId:()=>_e,getDropdownId:()=>`${_e}-dropdown`,withRoles:R,targetProps:oe,__staticSelector:L,classNames:v,styles:y,unstyled:_,variant:B,keepMounted:V,keepMountedMode:te,getStyles:se,resolvedStyles:le,floatingStrategy:H,referenceHidden:ae&&ge!==`test`?ve.floating.middlewareData.hide?.referenceHidden:!1},children:[n,re&&(0,G.jsx)(Hc,{transition:`fade`,mounted:ve.opened,duration:s?.duration||250,exitDuration:s?.exitDuration||250,children:e=>(0,G.jsx)(Ic,{withinPortal:x,children:(0,G.jsx)(Ac,{...ie,...se(`overlay`,{className:ie?.className,style:[e,ie?.style]})})})})]})}ol.Target=el,ol.Dropdown=Qc,ol.ContextMenu=Jc,ol.varsResolver=al,ol.displayName=`@mantine/core/Popover`,ol.extend=e=>e,ol.withProps=e=>{let t=t=>(0,G.jsx)(ol,{...e,...t});return t.extend=ol.extend,t.displayName=`WithProps(${ol.displayName})`,t};var sl={root:`m_5ae2e3c`,barsLoader:`m_7a2bd4cd`,bar:`m_870bb79`,"bars-loader-animation":`m_5d2b3b9d`,dotsLoader:`m_4e3f22d7`,dot:`m_870c4af`,"loader-dots-animation":`m_aac34a1`,ovalLoader:`m_b34414df`,"oval-loader-animation":`m_f8e89c4b`},cl=({className:e,...t})=>(0,G.jsxs)(J,{component:`span`,className:vt(sl.barsLoader,e),...t,children:[(0,G.jsx)(`span`,{className:sl.bar}),(0,G.jsx)(`span`,{className:sl.bar}),(0,G.jsx)(`span`,{className:sl.bar})]});cl.displayName=`@mantine/core/Bars`;var ll=({className:e,...t})=>(0,G.jsxs)(J,{component:`span`,className:vt(sl.dotsLoader,e),...t,children:[(0,G.jsx)(`span`,{className:sl.dot}),(0,G.jsx)(`span`,{className:sl.dot}),(0,G.jsx)(`span`,{className:sl.dot})]});ll.displayName=`@mantine/core/Dots`;var ul=({className:e,...t})=>(0,G.jsx)(J,{component:`span`,className:vt(sl.ovalLoader,e),...t});ul.displayName=`@mantine/core/Oval`;var dl={bars:cl,oval:ul,dots:ll},fl={loaders:dl,type:`oval`},pl=gt((e,{size:t,color:n})=>({root:{"--loader-size":I(t,`loader-size`),"--loader-color":n?It(n,e):void 0}})),ml=q(e=>{let t=K(`Loader`,fl,e),{size:n,color:r,type:i,vars:a,className:o,style:s,classNames:c,styles:l,unstyled:u,loaders:d,variant:f,children:p,attributes:m,...h}=t,g=Qn({name:`Loader`,props:t,classes:sl,className:o,style:s,classNames:c,styles:l,unstyled:u,attributes:m,vars:a,varsResolver:pl});return p?(0,G.jsx)(J,{...g(`root`),...h,children:p}):(0,G.jsx)(J,{...g(`root`),component:d[i],variant:f,size:n,...h})});ml.defaultLoaders=dl,ml.classes=sl,ml.varsResolver=pl,ml.displayName=`@mantine/core/Loader`;var hl={root:`m_8d3f4000`,icon:`m_8d3afb97`,loader:`m_302b9fb1`,group:`m_1a0f1b21`,groupSection:`m_437b6484`},gl={orientation:`horizontal`},_l=gt((e,{borderWidth:t})=>({group:{"--ai-border-width":v(t)}})),vl=q(e=>{let t=K(`ActionIconGroup`,gl,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,variant:u,mod:d,attributes:f,...p}=t,m=Qn({name:`ActionIconGroup`,props:t,classes:hl,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:c,varsResolver:_l,rootSelector:`group`});return(0,G.jsx)(J,{...m(`group`),variant:u,mod:[{orientation:s},d],role:`group`,...p})});vl.classes=hl,vl.varsResolver=_l,vl.displayName=`@mantine/core/ActionIconGroup`;var yl=gt((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":I(o,`section-height`),"--section-padding-x":I(o,`section-padding-x`),"--section-fz":z(o),"--section-radius":t===void 0?void 0:R(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),bl=q(e=>{let t=K(`ActionIconGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,variant:c,gradient:l,radius:u,autoContrast:d,attributes:f,...p}=t,m=Qn({name:`ActionIconGroupSection`,props:t,classes:hl,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:yl,rootSelector:`groupSection`});return(0,G.jsx)(J,{...m(`groupSection`),variant:c,...p})});bl.classes=hl,bl.varsResolver=yl,bl.displayName=`@mantine/core/ActionIconGroupSection`;var xl=gt((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ai-size":I(t,`ai-size`),"--ai-radius":n===void 0?void 0:R(n),"--ai-bg":a||r?s.background:void 0,"--ai-hover":a||r?s.hover:void 0,"--ai-hover-color":a||r?s.hoverColor:void 0,"--ai-color":s.color,"--ai-bd":a||r?s.border:void 0}}}),Sl=Fr(e=>{let t=K(`ActionIcon`,null,e),{className:n,unstyled:r,variant:i,classNames:a,styles:o,style:s,loading:c,loaderProps:l,size:u,color:d,radius:f,__staticSelector:p,gradient:m,vars:h,children:g,disabled:_,"data-disabled":v,autoContrast:y,mod:b,attributes:x,...S}=t,C=Qn({name:[`ActionIcon`,p],props:t,className:n,style:s,classes:hl,classNames:a,styles:o,unstyled:r,attributes:x,vars:h,varsResolver:xl});return(0,G.jsxs)(fc,{...C(`root`,{active:!_&&!c&&!v}),"aria-busy":c||void 0,...S,unstyled:r,variant:i,size:u,disabled:_||c,mod:[{loading:c,disabled:_||v},b],children:[typeof c==`boolean`&&(0,G.jsx)(Hc,{mounted:c,transition:`slide-down`,duration:150,children:e=>(0,G.jsx)(J,{component:`span`,...C(`loader`,{style:e}),"aria-hidden":!0,children:(0,G.jsx)(ml,{color:`var(--ai-color)`,size:`calc(var(--ai-size) * 0.55)`,...l})})}),(0,G.jsx)(J,{component:`span`,mod:{loading:c},...C(`icon`),children:g})]})});Sl.classes=hl,Sl.varsResolver=xl,Sl.displayName=`@mantine/core/ActionIcon`,Sl.Group=vl,Sl.GroupSection=bl;function Cl({size:e=`var(--cb-icon-size, 70%)`,style:t,...n}){return(0,G.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...t,width:e,height:e},...n,children:(0,G.jsx)(`path`,{d:`M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}Cl.displayName=`@mantine/core/CloseIcon`;var wl={root:`m_86a44da5`,"root--subtle":`m_220c80f2`},Tl={variant:`subtle`},El=gt((e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":I(t,`cb-size`),"--cb-radius":n===void 0?void 0:R(n),"--cb-icon-size":v(r)}})),Dl=Fr(e=>{let t=K(`CloseButton`,Tl,e),{iconSize:n,children:r,vars:i,radius:a,className:o,classNames:s,style:c,styles:l,unstyled:u,"data-disabled":d,disabled:f,variant:p,icon:m,mod:h,attributes:g,__staticSelector:_,...v}=t,y=Qn({name:_||`CloseButton`,props:t,className:o,style:c,classes:wl,classNames:s,styles:l,unstyled:u,attributes:g,vars:i,varsResolver:El});return(0,G.jsxs)(fc,{...v,unstyled:u,variant:p,disabled:f,mod:[{disabled:f||d},h],...y(`root`,{variant:p,active:!f&&!d}),children:[m||(0,G.jsx)(Cl,{}),r]})});Dl.classes=wl,Dl.varsResolver=El,Dl.displayName=`@mantine/core/CloseButton`;function Ol(e){return w.Children.toArray(e).filter(Boolean)}var kl={root:`m_4081bf90`},Al={preventGrowOverflow:!0,gap:`md`,align:`center`,justify:`flex-start`,wrap:`wrap`},jl=gt((e,{grow:t,preventGrowOverflow:n,gap:r,align:i,justify:a,wrap:o},{childWidth:s})=>({root:{"--group-child-width":t&&n?s:void 0,"--group-gap":L(r),"--group-align":i,"--group-justify":a,"--group-wrap":o}})),Ml=q(e=>{let t=K(`Group`,Al,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,children:s,gap:c,align:l,justify:u,wrap:d,grow:f,preventGrowOverflow:p,vars:m,variant:h,__size:g,mod:_,attributes:v,...y}=t,b=Ol(s),x=b.length,S=L(c??`md`),C=Qn({name:`Group`,props:t,stylesCtx:{childWidth:`calc(${100/x}% - (${S} - ${S} / ${x}))`},className:r,style:i,classes:kl,classNames:n,styles:a,unstyled:o,attributes:v,vars:m,varsResolver:jl});return(0,G.jsx)(J,{...C(`root`),variant:h,mod:[{grow:f},_],size:g,...y,children:b})});Ml.classes=kl,Ml.varsResolver=jl,Ml.displayName=`@mantine/core/Group`;var[Nl,Pl]=E(`ModalBase component was not found in tree`);function Fl({opened:e,transitionDuration:t}){let[n,r]=(0,w.useState)(e),i=(0,w.useRef)(-1),a=Pe()?0:t;return(0,w.useEffect)(()=>(e?(r(!0),window.clearTimeout(i.current)):a===0?r(!1):i.current=window.setTimeout(()=>r(!1),a),()=>window.clearTimeout(i.current)),[e,a]),n}function Il({id:e,transitionProps:t,opened:n,trapFocus:r,closeOnEscape:i,onClose:a,returnFocus:o,handledEscapeEvents:s}){let c=Oe(e),[l,u]=(0,w.useState)(!1),[d,f]=(0,w.useState)(!1),p=Fl({opened:n,transitionDuration:typeof t?.duration==`number`?t?.duration:200});return ke(`keydown`,e=>{e.key===`Escape`&&i&&!e.isComposing&&n&&!s?.has(e)&&e.target?.getAttribute(`data-mantine-stop-propagation`)!==`true`&&(s?.add(e),a())},{capture:!0}),he({opened:n,shouldReturnFocus:r&&o}),{_id:c,titleMounted:l,bodyMounted:d,shouldLockScroll:p,setTitleMounted:u,setBodyMounted:f}}var Ll=function(){return Ll=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ll.apply(this,arguments)};function Rl(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function zl(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Bl=`right-scroll-bar-position`,Vl=`width-before-scroll-bar`,Hl=`with-scroll-bars-hidden`,Ul=`--removed-body-scroll-bar-size`;function Wl(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Gl(e,t){var n=(0,w.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Kl=typeof window<`u`?w.useLayoutEffect:w.useEffect,ql=new WeakMap;function Jl(e,t){var n=Gl(t||null,function(t){return e.forEach(function(e){return Wl(e,t)})});return Kl(function(){var t=ql.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Wl(e,null)}),i.forEach(function(e){r.has(e)||Wl(e,a)})}ql.set(n,e)},[e]),n}function Yl(e){return e}function Xl(e,t){t===void 0&&(t=Yl);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Zl(e){e===void 0&&(e={});var t=Xl(null);return t.options=Ll({async:!0,ssr:!1},e),t}var Ql=function(e){var t=e.sideCar,n=Rl(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return w.createElement(r,Ll({},n))};Ql.isSideCarExport=!0;function $l(e,t){return e.useMedium(t),Ql}var eu=Zl(),tu=function(){},nu=w.forwardRef(function(e,t){var n=w.useRef(null),r=w.useState({onScrollCapture:tu,onWheelCapture:tu,onTouchMoveCapture:tu}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=Rl(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=Jl([n,t]),C=Ll(Ll({},b),i);return w.createElement(w.Fragment,null,u&&w.createElement(x,{sideCar:eu,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?w.cloneElement(w.Children.only(s),Ll(Ll({},C),{ref:S})):w.createElement(v,Ll({},C,{className:c,ref:S}),s))});nu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},nu.classNames={fullWidth:Vl,zeroRight:Bl};var ru=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function iu(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=ru();return t&&e.setAttribute(`nonce`,t),e}function au(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ou(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var su=function(){var e=0,t=null;return{add:function(n){e==0&&(t=iu())&&(au(t,n),ou(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},cu=function(){var e=su();return function(t,n){w.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},lu=function(){var e=cu();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},uu={left:0,top:0,right:0,gap:0},du=function(e){return parseInt(e||``,10)||0},fu=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[du(n),du(r),du(i)]},pu=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return uu;var t=fu(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},mu=lu(),hu=`data-scroll-locked`,gu=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
2
2
  .${Hl} {
3
3
  overflow: hidden ${r};
4
4
  padding-right: ${s}px ${r};
@@ -38,7 +38,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
38
38
  `},_u=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},vu=function(){w.useEffect(function(){return document.body.setAttribute(hu,(_u()+1).toString()),function(){var e=_u()-1;e<=0?document.body.removeAttribute(hu):document.body.setAttribute(hu,e.toString())}},[])},yu=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;vu();var a=w.useMemo(function(){return pu(i)},[i]);return w.createElement(mu,{styles:gu(a,!t,i,n?``:`!important`)})},bu=!1;if(typeof window<`u`)try{var xu=Object.defineProperty({},"passive",{get:function(){return bu=!0,!0}});window.addEventListener(`test`,xu,xu),window.removeEventListener(`test`,xu,xu)}catch{bu=!1}var Su=bu?{passive:!1}:!1,Cu=function(e){return e.tagName===`TEXTAREA`},wu=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Cu(e)&&n[t]===`visible`)},Tu=function(e){return wu(e,`overflowY`)},Eu=function(e){return wu(e,`overflowX`)},Du=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Au(e,r)){var i=ju(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ou=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},ku=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Au=function(e,t){return e===`v`?Tu(t):Eu(t)},ju=function(e,t){return e===`v`?Ou(t):ku(t)},Mu=function(e,t){return e===`h`&&t===`rtl`?-1:1},Nu=function(e,t,n,r,i){var a=Mu(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=ju(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Au(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Pu=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Fu=function(e){return[e.deltaX,e.deltaY]},Iu=function(e){return e&&`current`in e?e.current:e},Lu=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ru=function(e){return`
39
39
  .block-interactivity-${e} {pointer-events: none;}
40
40
  .allow-interactivity-${e} {pointer-events: all;}
41
- `},zu=0,Bu=[];function Vu(e){var t=w.useRef([]),n=w.useRef([0,0]),r=w.useRef(),i=w.useState(zu++)[0],a=w.useState(lu)[0],o=w.useRef(e);w.useEffect(function(){o.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=zl([e.lockRef.current],(e.shards||[]).map(Iu),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=w.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Pu(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Du(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Du(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Nu(h,t,e,h===`h`?s:c,!0)},[]),c=w.useCallback(function(e){var n=e;if(Bu.length&&Bu[Bu.length-1]===a){var r=`deltaY`in n?Fu(n):Pu(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Lu(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var c=(o.current.shards||[]).map(Iu).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=w.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Hu(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=w.useCallback(function(e){n.current=Pu(e),r.current=void 0},[]),d=w.useCallback(function(t){l(t.type,Fu(t),t.target,s(t,e.lockRef.current))},[]),f=w.useCallback(function(t){l(t.type,Pu(t),t.target,s(t,e.lockRef.current))},[]);w.useEffect(function(){return Bu.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,Su),document.addEventListener(`touchmove`,c,Su),document.addEventListener(`touchstart`,u,Su),function(){Bu=Bu.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Su),document.removeEventListener(`touchmove`,c,Su),document.removeEventListener(`touchstart`,u,Su)}},[]);var p=e.removeScrollBar,m=e.inert;return w.createElement(w.Fragment,null,m?w.createElement(a,{styles:Ru(i)}):null,p?w.createElement(yu,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Hu(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Uu=$l(eu,Vu),Wu=w.forwardRef(function(e,t){return w.createElement(nu,Ll({},e,{ref:t,sideCar:Uu}))});Wu.classNames=nu.classNames;function Gu({keepMounted:e,keepMountedMode:t=`activity`,opened:n,onClose:r,id:i,transitionProps:a,onExitTransitionEnd:o,onEnterTransitionEnd:s,trapFocus:c,closeOnEscape:l,returnFocus:u,closeOnClickOutside:d,withinPortal:f,portalProps:p,lockScroll:m,children:h,zIndex:g,shadow:_,padding:v,__vars:y,unstyled:b,removeScrollProps:x,__handledEscapeEvents:S,...C}){let{_id:w,titleMounted:T,bodyMounted:E,shouldLockScroll:D,setTitleMounted:O,setBodyMounted:k}=Il({id:i,transitionProps:a,opened:n,trapFocus:c,closeOnEscape:l,onClose:r,returnFocus:u,handledEscapeEvents:S}),{key:A,...j}=x||{};return(0,G.jsx)(Ic,{...p,withinPortal:f,children:(0,G.jsx)(Nl,{value:{opened:n,onClose:r,closeOnClickOutside:d,onExitTransitionEnd:o,onEnterTransitionEnd:s,transitionProps:{...a,keepMounted:e,keepMountedMode:t},getTitleId:()=>`${w}-title`,getBodyId:()=>`${w}-body`,titleMounted:T,bodyMounted:E,setTitleMounted:O,setBodyMounted:k,trapFocus:c,closeOnEscape:l,zIndex:g,unstyled:b},children:(0,G.jsx)(Wu,{enabled:D&&m,...j,children:(0,G.jsx)(J,{...C,id:w,__vars:{...y,"--mb-z-index":(g||N(`modal`)).toString(),"--mb-shadow":B(_),"--mb-padding":L(v)},children:h})},A)})})}Gu.displayName=`@mantine/core/ModalBase`;function Ku(){let e=Pl();return(0,w.useEffect)(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var qu={title:`m_615af6c9`,header:`m_b5489c3c`,inner:`m_60c222c7`,content:`m_fd1ab0aa`,close:`m_606cb269`,body:`m_5df29311`};function Ju({className:e,...t}){let n=Ku(),r=Pl();return(0,G.jsx)(J,{id:n,className:vt({[qu.body]:!r.unstyled},e),...t})}Ju.displayName=`@mantine/core/ModalBaseBody`;function Yu({className:e,onClick:t,...n}){let r=Pl();return(0,G.jsx)(Dl,{...n,onClick:e=>{r.onClose(),t?.(e)},className:vt({[qu.close]:!r.unstyled},e),unstyled:r.unstyled})}Yu.displayName=`@mantine/core/ModalBaseCloseButton`;function Xu({transitionProps:e,className:t,innerProps:n,onKeyDown:r,style:i,ref:a,...o}){let s=Pl();return(0,G.jsx)(Hc,{mounted:s.opened,transition:`pop`,...s.transitionProps,onExited:()=>{s.onExitTransitionEnd?.(),s.transitionProps?.onExited?.()},onEntered:()=>{s.onEnterTransitionEnd?.(),s.transitionProps?.onEntered?.()},...e,children:e=>(0,G.jsx)(`div`,{...n,className:vt({[qu.inner]:!s.unstyled},n.className),children:(0,G.jsx)(Yc,{active:s.opened&&s.trapFocus,innerRef:a,children:(0,G.jsx)(_c,{...o,component:`section`,role:`dialog`,tabIndex:-1,"aria-modal":!0,"aria-describedby":s.bodyMounted?s.getBodyId():void 0,"aria-labelledby":s.titleMounted?s.getTitleId():void 0,style:[i,e],className:vt({[qu.content]:!s.unstyled},t),unstyled:s.unstyled,children:o.children})})})})}Xu.displayName=`@mantine/core/ModalBaseContent`;function Zu({className:e,...t}){let n=Pl();return(0,G.jsx)(J,{component:`header`,className:vt({[qu.header]:!n.unstyled},e),...t})}Zu.displayName=`@mantine/core/ModalBaseHeader`;var Qu={duration:200,timingFunction:`ease`,transition:`fade`};function $u(e){let t=Pl();return{...Qu,...t.transitionProps,...e}}function ed({onClick:e,transitionProps:t,style:n,visible:r,...i}){let a=Pl(),o=$u(t);return(0,G.jsx)(Hc,{mounted:r===void 0?a.opened:r,...o,transition:`fade`,children:t=>(0,G.jsx)(Ac,{fixed:!0,style:[n,t],zIndex:a.zIndex,unstyled:a.unstyled,onClick:t=>{e?.(t),a.closeOnClickOutside&&a.onClose()},...i})})}ed.displayName=`@mantine/core/ModalBaseOverlay`;function td(){let e=Pl();return(0,w.useEffect)(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}function nd({className:e,...t}){let n=td(),r=Pl();return(0,G.jsx)(J,{component:`h2`,className:vt({[qu.title]:!r.unstyled},e),id:n,...t})}nd.displayName=`@mantine/core/ModalBaseTitle`;function rd({children:e}){return(0,G.jsx)(G.Fragment,{children:e})}var id=(0,w.createContext)({size:`sm`}),ad=q(e=>{let t=K(`InputClearButton`,null,e),{size:n,variant:r,vars:i,classNames:a,styles:o,...s}=t,c=(0,w.use)(id),{resolvedClassNames:l,resolvedStyles:u}=Ln({classNames:a,styles:o,props:t});return(0,G.jsx)(Dl,{variant:r||`transparent`,size:n||c?.size||`sm`,classNames:l,styles:u,__staticSelector:`InputClearButton`,style:{pointerEvents:`all`,background:`var(--input-bg)`,...s.style},...s})});ad.displayName=`@mantine/core/InputClearButton`;var od={xs:7,sm:8,md:10,lg:12,xl:15};function sd({__clearable:e,__clearSection:t,rightSection:n,__defaultRightSection:r,size:i=`sm`,__clearSectionMode:a=`both`}){let o=e&&t;return a===`rightSection`?n===null?null:n||r:a===`clear`?n===null?null:o||r:o&&(n||r)?(0,G.jsxs)(`div`,{"data-combined-clear-section":!0,style:{display:`flex`,gap:2,alignItems:`center`,paddingInlineEnd:od[i]},children:[o,n||r]}):n===null?null:n||o||r}var cd=(0,w.createContext)({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),ld={wrapper:`m_6c018570`,input:`m_8fb7ebe7`,bottomSection:`m_93f4ed57`,section:`m_82577fc2`,placeholder:`m_88bacfd0`,root:`m_46b77525`,label:`m_8fdc1311`,required:`m_78a94662`,error:`m_8f816625`,success:`m_9d9d40e0`,description:`m_fe47ce59`},ud=gt((e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${z(t)} - ${v(2)})`}})),dd=q(e=>{let t=K(`InputDescription`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,__inheritStyles:l=!0,attributes:u,...d}=K(`InputDescription`,null,t),f=(0,w.use)(cd),p=Qn({name:[`InputWrapper`,c],props:t,classes:ld,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,rootSelector:`description`,vars:s,varsResolver:ud}),m=l&&f?.getStyles||p;return(0,G.jsx)(J,{component:`p`,...m(`description`,f?.getStyles?{className:r,style:i}:void 0),...d})});dd.classes=ld,dd.varsResolver=ud,dd.displayName=`@mantine/core/InputDescription`;var fd=gt((e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${z(t)} - ${v(2)})`}})),pd=q(e=>{let t=K(`InputError`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,__staticSelector:l,__inheritStyles:u=!0,...d}=t,f=Qn({name:[`InputWrapper`,l],props:t,classes:ld,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,rootSelector:`error`,vars:s,varsResolver:fd}),p=(0,w.use)(cd),m=u&&p?.getStyles||f;return(0,G.jsx)(J,{component:`p`,...m(`error`,p?.getStyles?{className:r,style:i}:void 0),...d})});pd.classes=ld,pd.varsResolver=fd,pd.displayName=`@mantine/core/InputError`;var md={labelElement:`label`},hd=gt((e,{size:t})=>({label:{"--input-label-size":z(t),"--input-asterisk-color":void 0}})),gd=q(e=>{let t=K(`InputLabel`,md,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,labelElement:c,required:l,htmlFor:u,onMouseDown:d,children:f,__staticSelector:p,mod:m,attributes:h,...g}=t,_=Qn({name:[`InputWrapper`,p],props:t,classes:ld,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,rootSelector:`label`,vars:s,varsResolver:hd}),v=(0,w.use)(cd),y=v?.getStyles||_,b=g.component||c,x=typeof b!=`string`||b===`label`;return(0,G.jsxs)(J,{...y(`label`,v?.getStyles?{className:r,style:i}:void 0),component:c,htmlFor:x?u:void 0,mod:[{required:l},m],onMouseDown:e=>{d?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},...g,children:[f,l&&(0,G.jsx)(`span`,{...y(`required`),"aria-hidden":!0,children:` *`})]})});gd.classes=ld,gd.varsResolver=hd,gd.displayName=`@mantine/core/InputLabel`;var _d=q(e=>{let t=K(`InputPlaceholder`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,error:l,mod:u,attributes:d,...f}=t,p=Qn({name:[`InputPlaceholder`,c],props:t,classes:ld,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,rootSelector:`placeholder`});return(0,G.jsx)(J,{...p(`placeholder`),mod:[{error:!!l},u],component:`span`,...f})});_d.classes=ld,_d.displayName=`@mantine/core/InputPlaceholder`;var vd=gt((e,{size:t})=>({success:{"--input-success-size":t===void 0?void 0:`calc(${z(t)} - ${v(2)})`}})),yd=q(e=>{let t=K(`InputSuccess`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,__staticSelector:l,__inheritStyles:u=!0,...d}=t,f=Qn({name:[`InputWrapper`,l],props:t,classes:ld,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,rootSelector:`success`,vars:s,varsResolver:vd}),p=(0,w.use)(cd),m=u&&p?.getStyles||f;return(0,G.jsx)(J,{component:`p`,...m(`success`,p?.getStyles?{className:r,style:i}:void 0),...d})});yd.classes=ld,yd.varsResolver=vd,yd.displayName=`@mantine/core/InputSuccess`;function bd(e,{hasDescription:t,hasError:n}){let r=e.findIndex(e=>e===`input`),i=e.slice(0,r),a=e.slice(r+1),o=t&&i.includes(`description`)||n&&i.includes(`error`);return{offsetBottom:t&&a.includes(`description`)||n&&a.includes(`error`),offsetTop:o}}var xd={labelElement:`label`,inputContainer:e=>e,inputWrapperOrder:[`label`,`description`,`input`,`error`]},Sd=gt((e,{size:t})=>({label:{"--input-label-size":z(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${z(t)} - ${v(2)})`},success:{"--input-success-size":t===void 0?void 0:`calc(${z(t)} - ${v(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${z(t)} - ${v(2)})`}})),Cd=q(e=>{let t=K(`InputWrapper`,xd,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,size:c,variant:l,__staticSelector:u,inputContainer:d,inputWrapperOrder:f,label:p,error:m,success:h,description:g,labelProps:_,descriptionProps:v,errorProps:y,successProps:b,labelElement:x,children:S,withAsterisk:C,id:T,required:E,__stylesApiProps:D,mod:O,attributes:k,...A}=t,j=Qn({name:[`InputWrapper`,u],props:D||t,classes:ld,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:k,vars:s,varsResolver:Sd}),M={size:c,variant:l,__staticSelector:u},N=Oe(T),P=typeof C==`boolean`?C:E,F=y?.id||`${N}-error`,I=b?.id||`${N}-success`,L=v?.id||`${N}-description`,R=N,z=!!m&&typeof m!=`boolean`,ee=!!h&&typeof h!=`boolean`&&!m,B=!!g,V=z&&f.includes(`error`),te=ee&&f.includes(`error`),ne=B&&f.includes(`description`),H=`${V?F:``} ${te?I:``} ${ne?L:``}`,re=H.trim().length>0?H.trim():void 0,ie=_?.id||`${N}-label`,ae=p&&(0,G.jsx)(gd,{labelElement:x,id:ie,htmlFor:R,required:P,...M,..._,children:p},`label`),U=B&&(0,G.jsx)(dd,{...v,...M,size:v?.size||M.size,id:v?.id||L,children:g},`description`),W=(0,G.jsx)(w.Fragment,{children:d(S)},`input`),oe=z&&(0,w.createElement)(pd,{...y,...M,size:y?.size||M.size,key:`error`,id:y?.id||F},m),se=ee&&(0,w.createElement)(yd,{...b,...M,size:b?.size||M.size,key:`success`,id:b?.id||I},h),ce=f.map(e=>{switch(e){case`label`:return ae;case`input`:return W;case`description`:return U;case`error`:return oe||se;default:return null}});return(0,G.jsx)(cd,{value:{getStyles:j,describedBy:re,inputId:R,labelId:ae&&f.includes(`label`)?ie:void 0,...bd(f,{hasDescription:B,hasError:z||ee})},children:(0,G.jsx)(J,{variant:l,size:c,mod:[{error:!!m,success:!!h&&!m},O],id:x===`label`?void 0:T,...j(`root`),...A,children:ce})})});Cd.classes=ld,Cd.varsResolver=Sd,Cd.displayName=`@mantine/core/InputWrapper`;var wd={variant:`default`,leftSectionPointerEvents:`none`,rightSectionPointerEvents:`none`,withAria:!0,withErrorStyles:!0,withSuccessStyles:!0,size:`sm`,loading:!1,loadingPosition:`right`},Td=gt((e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-margin-bottom":n.offsetBottom?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-height":I(t.size,`input-height`),"--input-fz":z(t.size),"--input-radius":t.radius===void 0?void 0:R(t.radius),"--input-left-section-width":t.leftSectionWidth===void 0?void 0:v(t.leftSectionWidth),"--input-right-section-width":t.rightSectionWidth===void 0?void 0:v(t.rightSectionWidth),"--input-padding-y":t.multiline?I(t.size,`input-padding-y`):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}})),Ed=Fr(e=>{let t=K(`Input`,wd,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,required:s,__staticSelector:c,__stylesApiProps:l,size:u,wrapperProps:d,error:f,success:p,disabled:m,leftSection:h,leftSectionProps:g,leftSectionWidth:_,rightSection:v,rightSectionProps:y,rightSectionWidth:b,rightSectionPointerEvents:x,leftSectionPointerEvents:S,variant:C,vars:T,pointer:E,multiline:D,radius:O,id:k,withAria:A,withErrorStyles:j,withSuccessStyles:M,mod:N,inputSize:P,attributes:F,__clearSection:I,__clearable:L,__clearSectionMode:R,__defaultRightSection:z,loading:ee,loadingPosition:B,__bottomSection:V,__bottomSectionProps:te,rootRef:ne,dir:H,...re}=t,{styleProps:ie,rest:ae}=or(re),U=(0,w.use)(cd),W={offsetBottom:U?.offsetBottom,offsetTop:U?.offsetTop},oe=Qn({name:[`Input`,c],props:l||t,classes:ld,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:F,stylesCtx:W,rootSelector:`wrapper`,vars:T,varsResolver:Td}),se=A?{required:s,disabled:m,"aria-invalid":f?!0:void 0,"aria-describedby":U?.describedBy,id:U?.inputId||k}:{},ce=ee?(0,G.jsx)(ml,{size:B===`left`?`calc(var(--input-left-section-size) / 2)`:`calc(var(--input-right-section-size) / 2)`}):null,le=ee&&B===`left`?ce:h,ue=sd({__clearable:L,__clearSection:I,rightSection:ee&&B===`right`?ce:v,__defaultRightSection:z,size:u,__clearSectionMode:R});return(0,G.jsx)(id,{value:{size:u||`sm`},children:(0,G.jsxs)(J,{ref:ne,dir:H,...oe(`wrapper`),...ie,...d,mod:[{error:!!f&&j,success:!!p&&!f&&M,pointer:E,disabled:m,multiline:D,withRightSection:!!ue,withLeftSection:!!le,withBottomSection:!!V},N],variant:C,size:u,children:[le&&(0,G.jsx)(`div`,{...g,"data-position":`left`,...oe(`section`,{className:g?.className,style:g?.style}),children:le}),(0,G.jsx)(J,{component:`input`,...ae,...se,required:s,mod:{disabled:m,error:!!f&&j,success:!!p&&!f&&M},variant:C,__size:P,...oe(`input`)}),V&&(0,G.jsx)(`div`,{...te,...oe(`bottomSection`,{className:te?.className,style:te?.style}),children:V}),ue&&(0,G.jsx)(`div`,{...y,"data-position":`right`,...oe(`section`,{className:y?.className,style:y?.style}),children:ue})]})})});Ed.classes=ld,Ed.varsResolver=Td,Ed.Wrapper=Cd,Ed.Label=gd,Ed.Error=pd,Ed.Success=yd,Ed.Description=dd,Ed.Placeholder=_d,Ed.ClearButton=ad,Ed.displayName=`@mantine/core/Input`;function Dd(e,t,n){let r=K([`Input`,`InputWrapper`,e],t,n),{label:i,description:a,error:o,success:s,required:c,classNames:l,styles:u,className:d,unstyled:f,__staticSelector:p,__stylesApiProps:m,errorProps:h,successProps:g,labelProps:_,descriptionProps:v,wrapperProps:y,id:b,size:x,style:S,inputContainer:C,inputWrapperOrder:w,withAsterisk:T,variant:E,vars:D,mod:O,attributes:k,...A}=r,{styleProps:j,rest:M}=or(A),N={label:i,description:a,error:o,success:s,required:c,classNames:l,className:d,__staticSelector:p,__stylesApiProps:m||r,errorProps:h,successProps:g,labelProps:_,descriptionProps:v,unstyled:f,styles:u,size:x,style:S,inputContainer:C,inputWrapperOrder:w,withAsterisk:T,variant:E,id:b,mod:O,attributes:k,...y};return{...M,classNames:l,styles:u,unstyled:f,wrapperProps:{...N,...j},inputProps:{required:c,classNames:l,styles:u,unstyled:f,size:x,__staticSelector:p,__stylesApiProps:m||r,error:o,success:s,variant:E,id:b,attributes:k}}}var Od={__staticSelector:`InputBase`,withAria:!0,size:`sm`},kd=Fr(e=>{let{inputProps:t,wrapperProps:n,...r}=Dd(`InputBase`,Od,e);return(0,G.jsx)(Ed.Wrapper,{...n,children:(0,G.jsx)(Ed,{...t,...r})})});kd.classes={...Ed.classes,...Ed.Wrapper.classes},kd.displayName=`@mantine/core/InputBase`;function Ad(e,t){if(!t||!e)return!1;let n=t.parentNode;for(;n!=null;){if(n===e)return!0;n=n.parentNode}return!1}function jd({target:e,parent:t,ref:n,displayAfterTransitionEnd:r,onTransitionStart:i,onTransitionEnd:a}){let o=(0,w.useRef)(-1),s=(0,w.useRef)(e),[c,l]=(0,w.useState)(!1),[u,d]=(0,w.useState)(typeof r==`boolean`&&r),f=()=>{if(!e||!t||!n.current)return;let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a=t.offsetWidth===0?1:i.width/t.offsetWidth,o=t.offsetHeight===0?1:i.height/t.offsetHeight,s=window.getComputedStyle(e),c=window.getComputedStyle(t),l=oi(s.borderTopWidth)+oi(c.borderTopWidth),u=oi(s.borderLeftWidth)+oi(c.borderLeftWidth),d={top:(r.top-i.top)/o-l,left:(r.left-i.left)/a-u,width:r.width/a,height:r.height/o};n.current.style.transform=`translateY(${d.top}px) translateX(${d.left}px)`,n.current.style.width=`${d.width}px`,n.current.style.height=`${d.height}px`},p=()=>{window.clearTimeout(o.current),n.current&&(n.current.style.transitionDuration=`0ms`),f(),o.current=window.setTimeout(()=>{n.current&&(n.current.style.transitionDuration=``)},30)},m=(0,w.useRef)(null),h=(0,w.useRef)(null);return(0,w.useEffect)(()=>{if(c&&s.current!==e&&i&&i(),s.current=e,f(),e)return m.current=new ResizeObserver(p),m.current.observe(e),t&&(h.current=new ResizeObserver(p),h.current.observe(t)),()=>{m.current?.disconnect(),h.current?.disconnect()}},[t,e]),(0,w.useEffect)(()=>{if(t){let e=e=>{Ad(e.target,t)&&(p(),d(!1))};return t.addEventListener(`transitionend`,e),()=>{t.removeEventListener(`transitionend`,e)}}},[t]),(0,w.useEffect)(()=>{if(n.current&&a){let e=e=>{e.propertyName===`transform`&&a()};return n.current.addEventListener(`transitionend`,e),()=>{n.current?.removeEventListener(`transitionend`,e)}}},[a]),Re(()=>{lt()!==`test`&&l(!0)},20,{autoInvoke:!0}),Be(e=>{e.forEach(e=>{e.type===`attributes`&&e.attributeName===`dir`&&p()})},{attributes:!0,attributeFilter:[`dir`]},()=>document.documentElement),{initialized:c,hidden:u}}var Md={root:`m_96b553a6`},Nd=gt((e,{transitionDuration:t},{shouldReduceMotion:n})=>({root:{"--transition-duration":e.respectReducedMotion&&n?`0ms`:typeof t==`number`?`${t}ms`:t||`150ms`}})),Pd=q(e=>{let t=K(`FloatingIndicator`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,target:c,parent:l,transitionDuration:u,mod:d,displayAfterTransitionEnd:f,onTransitionStart:p,onTransitionEnd:m,attributes:h,ref:g,..._}=t,v=Qn({name:`FloatingIndicator`,classes:Md,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:Nd,stylesCtx:{shouldReduceMotion:Pe()}}),y=(0,w.useRef)(null),{initialized:b,hidden:x}=jd({target:c,parent:l,ref:y,displayAfterTransitionEnd:f,onTransitionStart:p,onTransitionEnd:m}),S=Me(g,y);return!c||!l?null:(0,G.jsx)(J,{ref:S,mod:[{initialized:b,hidden:x},d],...v(`root`),..._})});Pd.displayName=`@mantine/core/FloatingIndicator`,Pd.classes=Md,Pd.varsResolver=Nd;function Fd({style:e,size:t=16,...n}){return(0,G.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...e,width:v(t),height:v(t),display:`block`},...n,children:(0,G.jsx)(`path`,{d:`M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}Fd.displayName=`@mantine/core/AccordionChevron`;var Id={root:`m_66836ed3`,wrapper:`m_a5d60502`,body:`m_667c2793`,title:`m_6a03f287`,label:`m_698f4f23`,icon:`m_667f2a6a`,message:`m_7fa78076`,closeButton:`m_87f54839`},Ld=gt((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:r||`light`,autoContrast:i});return{root:{"--alert-radius":t===void 0?void 0:R(t),"--alert-bg":n||r?a.background:void 0,"--alert-color":a.color,"--alert-bd":n||r?a.border:void 0}}}),Rd=q(e=>{let t=K(`Alert`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:l,title:u,children:d,id:f,icon:p,withCloseButton:m,onClose:h,closeButtonLabel:g,variant:_,autoContrast:v,role:y,attributes:b,...x}=t,S=Qn({name:`Alert`,classes:Id,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:b,vars:s,varsResolver:Ld}),C=Oe(f),w=u&&`${C}-title`||void 0,T=`${C}-body`;return(0,G.jsx)(J,{id:C,...S(`root`,{variant:_}),variant:_,...x,role:y||`alert`,"aria-describedby":d?T:void 0,"aria-labelledby":u?w:void 0,children:(0,G.jsxs)(`div`,{...S(`wrapper`),children:[p&&(0,G.jsx)(`div`,{...S(`icon`),children:p}),(0,G.jsxs)(`div`,{...S(`body`),children:[u&&(0,G.jsx)(`div`,{...S(`title`),"data-with-close-button":m||void 0,children:(0,G.jsx)(`span`,{id:w,...S(`label`),children:u})}),d&&(0,G.jsx)(`div`,{id:T,...S(`message`),"data-variant":_,children:d})]}),m&&(0,G.jsx)(Dl,{...S(`closeButton`),onClick:h,variant:`transparent`,size:16,iconSize:16,"aria-label":g,unstyled:o})]})})});Rd.classes=Id,Rd.varsResolver=Ld,Rd.displayName=`@mantine/core/Alert`;var zd={root:`m_b6d8b162`};function Bd(e){if(e===`start`)return`start`;if(e===`end`||e)return`end`}var Vd={inherit:!1},Hd=gt((e,{variant:t,lineClamp:n,gradient:r,size:i,textWrap:a})=>({root:{"--text-fz":z(i),"--text-lh":ee(i),"--text-gradient":t===`gradient`?zt(r,e):void 0,"--text-line-clamp":typeof n==`number`?n.toString():void 0,"--text-text-wrap":a}})),Y=Fr(e=>{let t=K(`Text`,Vd,e),{lineClamp:n,truncate:r,inline:i,inherit:a,gradient:o,span:s,textWrap:c,__staticSelector:l,vars:u,className:d,style:f,classNames:p,styles:m,unstyled:h,variant:g,mod:_,size:v,attributes:y,...b}=t,x=Qn({name:[`Text`,l],props:t,classes:zd,className:d,style:f,classNames:p,styles:m,unstyled:h,attributes:y,vars:u,varsResolver:Hd});return(0,G.jsx)(J,{...x(`root`,{focusable:!0}),component:s?`span`:`p`,variant:g,mod:[{truncate:Bd(r),lineClamp:typeof n==`number`,inline:i,inherit:a},_],size:v,...b})});Y.classes=zd,Y.varsResolver=Hd,Y.displayName=`@mantine/core/Text`;var Ud={root:`m_849cf0da`},Wd={underline:`hover`},Gd=Fr(e=>{let{underline:t,className:n,unstyled:r,mod:i,...a}=K(`Anchor`,Wd,e);return(0,G.jsx)(Y,{component:`a`,className:vt({[Ud.root]:!r},n),...a,mod:[{underline:t},i],__staticSelector:`Anchor`,unstyled:r})});Gd.classes=Ud,Gd.displayName=`@mantine/core/Anchor`;var[Kd,qd]=E(`AppShell was not found in tree`);function Jd({size:e,min:t,max:n,viewportMax:r}){let i=Math.min(n??1/0,r);return Math.max(Math.min(t??0,i),Math.min(e,i))}function Yd(e,t){return t!==void 0&&e<t}var Xd={navbar:{axis:`horizontal`,orientation:`vertical`,sizeVariable:`--app-shell-navbar-width`,offsetVariable:`--app-shell-navbar-offset`,gridWidthVariable:`--app-shell-navbar-grid-width`,handleDisplayVariable:`--app-shell-navbar-resize-handle-display`,sign:1},aside:{axis:`horizontal`,orientation:`vertical`,sizeVariable:`--app-shell-aside-width`,offsetVariable:`--app-shell-aside-offset`,gridWidthVariable:`--app-shell-aside-grid-width`,handleDisplayVariable:`--app-shell-aside-resize-handle-display`,sign:-1},header:{axis:`vertical`,orientation:`horizontal`,sizeVariable:`--app-shell-header-height`,offsetVariable:`--app-shell-header-offset`,handleDisplayVariable:`--app-shell-header-resize-handle-display`,sign:1},footer:{axis:`vertical`,orientation:`horizontal`,sizeVariable:`--app-shell-footer-height`,offsetVariable:`--app-shell-footer-offset`,handleDisplayVariable:`--app-shell-footer-resize-handle-display`,safeAreaVariable:`--app-shell-footer-safe-area`,sign:-1}},Zd=Object.keys(Xd);function Qd({section:e,deltaX:t,deltaY:n,dir:r}){let i=Xd[e];return i.axis===`vertical`?n*i.sign:t*i.sign*(r===`rtl`?-1:1)}function $d(e,t){if(!t)return 0;let n=window.getComputedStyle(e).getPropertyValue(t),r=Number.parseFloat(n);return Number.isFinite(r)?r:0}var ef={navbar:`Resize navbar`,aside:`Resize aside`,header:`Resize header`,footer:`Resize footer`},tf=10,nf=50,rf={ArrowRight:{deltaX:1,deltaY:0},ArrowLeft:{deltaX:-1,deltaY:0},ArrowDown:{deltaX:0,deltaY:1},ArrowUp:{deltaX:0,deltaY:-1}};function af(e,t){t?document.body.style.setProperty(e,t):document.body.style.removeProperty(e)}function of({section:e,sectionId:t}){let n=qd(),r=n.resize,i=(0,w.useRef)(null),a=(0,w.useRef)({startSize:0,startX:0,startY:0,size:0,moved:!1}),o=(0,w.useRef)(null),s=(0,w.useRef)(null),c=(0,w.useRef)(null),{dir:l}=Ur(),u=xn(),d=Xd[e],f=r?.options[e]??{},p=()=>d.axis===`horizontal`?window.innerWidth:window.innerHeight,[m,h]=(0,w.useState)(0),[g,_]=(0,w.useState)(void 0),y=()=>p()/u.scale,b=e=>{let t=e.getBoundingClientRect();return((d.axis===`horizontal`?t.width:t.height)-$d(e,d.safeAreaVariable))/u.scale},x=t=>{let r=n.rootRef.current;if(!r)return;let i=v(t);r.style.setProperty(d.sizeVariable,i),n.resizeOffsets[e]&&r.style.setProperty(d.offsetVariable,i),n.mode===`static`&&d.gridWidthVariable&&r.style.setProperty(d.gridWidthVariable,i)},S=()=>{let e=n.rootRef.current;e&&(e.style.removeProperty(d.sizeVariable),e.style.removeProperty(d.offsetVariable),d.gridWidthVariable&&e.style.removeProperty(d.gridWidthVariable))},C=()=>{s.current?.abort(),s.current=null,o.current=null;let e=c.current;c.current=null,e&&(af(`user-select`,e.userSelect),af(`-webkit-user-select`,e.webkitUserSelect),af(`cursor`,e.cursor))},T=()=>{r?.reportCollapse(e,Yd(a.current.startSize,f.collapseThreshold)),r?.endResize(e,null)},E=t=>{if(t.pointerId!==o.current)return;a.current.moved=!0;let n=Qd({section:e,deltaX:t.clientX-a.current.startX,deltaY:t.clientY-a.current.startY,dir:l})/u.scale,s=a.current.startSize+n,c=Jd({size:s,min:f.min,max:f.max,viewportMax:y()});a.current.size=c,x(c),i.current?.setAttribute(`aria-valuenow`,String(Math.round(c))),r?.previewResize(e,c),r?.reportCollapse(e,Yd(s,f.collapseThreshold))},D=t=>{t.pointerId===o.current&&(C(),a.current.moved?r?.endResize(e,a.current.size):r?.endResize(e,null))},O=e=>{e.pointerId===o.current&&(C(),S(),T())},k=e=>{e.key===`Escape`&&(e.preventDefault(),C(),S(),i.current?.setAttribute(`aria-valuenow`,String(Math.round(a.current.startSize))),T())},A=()=>{let t=r?.[e].size;if(t!==void 0)return t;let n=i.current?.parentElement;return n?b(n):0},j=t=>{r?.initCollapse(e,Yd(A(),f.collapseThreshold)),r?.reportCollapse(e,Yd(t,f.collapseThreshold)),r?.endResize(e,Jd({size:t,min:f.min,max:f.max,viewportMax:y()}))},M=t=>{let n=t.shiftKey?nf:tf;if(t.key===`Home`){t.preventDefault(),j(f.min??0);return}if(t.key===`End`){t.preventDefault(),j(f.max??y());return}let r=rf[t.key];if(!r)return;let i=Qd({section:e,...r,dir:l});i!==0&&(t.preventDefault(),j(A()+i*n))},N=()=>{S(),r?.[e].reset()},P=t=>{if(t.button!==0||s.current!==null)return;let n=i.current?.parentElement;if(!n)return;let l=b(n);a.current={startSize:l,startX:t.clientX,startY:t.clientY,size:l,moved:!1},o.current=t.pointerId,r?.initCollapse(e,Yd(l,f.collapseThreshold));let u=new AbortController;s.current=u;let{signal:p}=u;c.current={userSelect:document.body.style.getPropertyValue(`user-select`),webkitUserSelect:document.body.style.getPropertyValue(`-webkit-user-select`),cursor:document.body.style.getPropertyValue(`cursor`)},document.body.style.setProperty(`user-select`,`none`),document.body.style.setProperty(`-webkit-user-select`,`none`),document.body.style.setProperty(`cursor`,d.axis===`horizontal`?`col-resize`:`row-resize`),r?.startResize(e),document.addEventListener(`pointermove`,E,{signal:p}),document.addEventListener(`pointerup`,D,{signal:p}),document.addEventListener(`pointercancel`,O,{signal:p}),document.addEventListener(`keydown`,k,{signal:p})};if(fe(()=>{r&&r.activeSection!==e&&S()},[r?.activeSection,r?.[e].size]),fe(()=>{h(p());let e=()=>h(p());return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[d.axis]),fe(()=>{r?.[e].size===void 0&&_(A())},[r?.[e].size,m]),fe(()=>()=>{let e=s.current!==null;C(),S(),e&&T()},[]),!r?.[e].enabled)return null;let F=m/u.scale,I=Math.min(f.max??F,F),L=r[e].size,R=L!==void 0&&m>0?Math.min(L,F):L??g;return(0,G.jsx)(J,{ref:i,role:`separator`,tabIndex:0,"aria-label":f.label??ef[e],"aria-controls":t,"aria-orientation":d.orientation,"aria-valuemin":f.min??0,"aria-valuemax":Math.round(I),"aria-valuenow":R===void 0?void 0:Math.round(R),onPointerDown:P,onKeyDown:M,onDoubleClick:N,mod:{section:e,orientation:d.orientation,active:r[e].active},...n.getStyles(`resizeHandle`)})}of.displayName=`@mantine/core/AppShellResizeHandle`;var sf={root:`m_89ab340`,navbar:`m_45252eee`,aside:`m_9cdde9a`,header:`m_3b16f56b`,main:`m_8983817`,footer:`m_3840c879`,section:`m_6dcfc7c7`,resizeHandle:`m_3b25945a`},cf=q(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=K(`AppShellAside`,null,e),d=qd(),f=Oe(u.id);if(d.disabled)return null;let p=d.resize?.aside.enabled??!1,m=d.getStyles(`aside`,{className:vt({[Wu.classNames.zeroRight]:d.offsetScrollbars},n),classNames:t,styles:i,style:r});if(!p)return(0,G.jsx)(J,{component:`aside`,mod:[{"with-border":s??d.withBorder},l],...m,...u,__vars:{"--app-shell-aside-z-index":`calc(${c??d.zIndex} + 1)`}});let{children:h,dangerouslySetInnerHTML:g,..._}=u;return(0,G.jsxs)(J,{component:`aside`,mod:[{"with-border":s??d.withBorder},l],...m,..._,__vars:{"--app-shell-aside-z-index":`calc(${c??d.zIndex} + 1)`},id:f,children:[g?(0,G.jsx)(`div`,{style:{display:`contents`},dangerouslySetInnerHTML:g}):h,(0,G.jsx)(of,{section:`aside`,sectionId:f})]})});cf.classes=sf,cf.displayName=`@mantine/core/AppShellAside`;var lf=q(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=K(`AppShellFooter`,null,e),d=qd(),f=Oe(u.id);if(d.disabled)return null;let p=d.resize?.footer.enabled??!1,m=d.getStyles(`footer`,{className:vt({[Wu.classNames.zeroRight]:d.offsetScrollbars},n),classNames:t,styles:i,style:r});if(!p)return(0,G.jsx)(J,{component:`footer`,mod:[{"with-border":s??d.withBorder},l],...m,...u,__vars:{"--app-shell-footer-z-index":(c??d.zIndex)?.toString()}});let{children:h,dangerouslySetInnerHTML:g,..._}=u;return(0,G.jsxs)(J,{component:`footer`,mod:[{"with-border":s??d.withBorder},l],...m,..._,__vars:{"--app-shell-footer-z-index":(c??d.zIndex)?.toString()},id:f,children:[g?(0,G.jsx)(`div`,{style:{display:`contents`},dangerouslySetInnerHTML:g}):h,(0,G.jsx)(of,{section:`footer`,sectionId:f})]})});lf.classes=sf,lf.displayName=`@mantine/core/AppShellFooter`;var uf=q(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=K(`AppShellHeader`,null,e),d=qd(),f=Oe(u.id);if(d.disabled)return null;let p=d.resize?.header.enabled??!1,m=d.getStyles(`header`,{className:vt({[Wu.classNames.zeroRight]:d.offsetScrollbars},n),classNames:t,styles:i,style:r});if(!p)return(0,G.jsx)(J,{component:`header`,mod:[{"with-border":s??d.withBorder},l],...m,...u,__vars:{"--app-shell-header-z-index":(c??d.zIndex)?.toString()}});let{children:h,dangerouslySetInnerHTML:g,..._}=u;return(0,G.jsxs)(J,{component:`header`,mod:[{"with-border":s??d.withBorder},l],...m,..._,__vars:{"--app-shell-header-z-index":(c??d.zIndex)?.toString()},id:f,children:[g?(0,G.jsx)(`div`,{style:{display:`contents`},dangerouslySetInnerHTML:g}):h,(0,G.jsx)(of,{section:`header`,sectionId:f})]})});uf.classes=sf,uf.displayName=`@mantine/core/AppShellHeader`;var df=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`AppShellMain`,null,e),s=qd();return(0,G.jsx)(J,{component:`main`,...s.getStyles(`main`,{className:n,style:r,classNames:t,styles:i}),...o})});df.classes=sf,df.displayName=`@mantine/core/AppShellMain`;var ff=q(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=K(`AppShellNavbar`,null,e),d=qd(),f=Oe(u.id);if(d.disabled)return null;let p=d.resize?.navbar.enabled??!1,m=d.getStyles(`navbar`,{className:n,classNames:t,styles:i,style:r});if(!p)return(0,G.jsx)(J,{component:`nav`,mod:[{"with-border":s??d.withBorder},l],...m,...u,__vars:{"--app-shell-navbar-z-index":`calc(${c??d.zIndex} + 1)`}});let{children:h,dangerouslySetInnerHTML:g,..._}=u;return(0,G.jsxs)(J,{component:`nav`,mod:[{"with-border":s??d.withBorder},l],...m,..._,__vars:{"--app-shell-navbar-z-index":`calc(${c??d.zIndex} + 1)`},id:f,children:[g?(0,G.jsx)(`div`,{style:{display:`contents`},dangerouslySetInnerHTML:g}):h,(0,G.jsx)(of,{section:`navbar`,sectionId:f})]})});ff.classes=sf,ff.displayName=`@mantine/core/AppShellNavbar`;var pf=Fr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,grow:o,mod:s,...c}=K(`AppShellSection`,null,e),l=qd();return(0,G.jsx)(J,{mod:[{grow:o},s],...l.getStyles(`section`,{className:n,style:r,classNames:t,styles:i}),...c})});pf.classes=sf,pf.displayName=`@mantine/core/AppShellSection`;function mf(e){return typeof e==`object`?e.base:e}function hf(e,t){return`min(${v(e)}, ${t===`horizontal`?`100vw`:`100dvh`})`}function gf(e){let t=typeof e==`object`&&!!e&&e.base!==void 0&&Object.keys(e).length===1;return typeof e==`number`||typeof e==`string`||t}function _f(e){return!(typeof e!=`object`||!e||Object.keys(e).length===1&&`base`in e)}function vf({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,aside:r,theme:i,mode:a,resizedSize:o,resizable:s}){let c=r?.width,l=`translateX(var(--app-shell-aside-width))`,d=`translateX(calc(var(--app-shell-aside-width) * -1))`;if(r?.breakpoint!==void 0&&!r?.collapsed?.mobile&&(n[r?.breakpoint]=n[r?.breakpoint]||{},a===`fixed`?(n[r?.breakpoint][`--app-shell-aside-width`]=`100%`,n[r?.breakpoint][`--app-shell-aside-offset`]=`0px`):(n[r?.breakpoint][`--app-shell-aside-width`]=`0px`,n[r?.breakpoint][`--app-shell-aside-offset`]=`0px`),s&&(n[r.breakpoint][`--app-shell-aside-resize-handle-display`]=`none`)),o!==void 0){let t=hf(o,`horizontal`);e[`--app-shell-aside-width`]=t,e[`--app-shell-aside-offset`]=t,a===`static`&&(e[`--app-shell-aside-grid-width`]=t)}else{if(gf(c)){let t=v(mf(c));e[`--app-shell-aside-width`]=t,e[`--app-shell-aside-offset`]=t}_f(c)&&(c.base!==void 0&&(e[`--app-shell-aside-width`]=v(c.base),e[`--app-shell-aside-offset`]=v(c.base)),u(c).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-aside-width`]=v(c[e]),t[e][`--app-shell-aside-offset`]=v(c[e]))}))}if(r?.breakpoint!==void 0&&a===`static`&&(t[r.breakpoint]=t[r.breakpoint]||{},t[r.breakpoint][`--app-shell-aside-position`]=`sticky`,t[r.breakpoint][`--app-shell-aside-grid-row`]=`2`,t[r.breakpoint][`--app-shell-aside-grid-column`]=`3`,t[r.breakpoint][`--app-shell-main-column-end`]=`3`),r?.collapsed?.desktop){let e=r.breakpoint;t[e]=t[e]||{},t[e][`--app-shell-aside-transform`]=l,t[e][`--app-shell-aside-transform-rtl`]=d,a===`fixed`?t[e][`--app-shell-aside-offset`]=`0px !important`:(t[e][`--app-shell-aside-width`]=`0px`,t[e][`--app-shell-aside-display`]=`none`,t[e][`--app-shell-main-column-end`]=`-1`),t[e][`--app-shell-aside-scroll-locked-visibility`]=`hidden`,s&&(t[e][`--app-shell-aside-resize-handle-display`]=`none`)}if(r?.collapsed?.mobile){let e=te(r.breakpoint,i.breakpoints)-.1;n[e]=n[e]||{},a===`fixed`?(n[e][`--app-shell-aside-width`]=`100%`,n[e][`--app-shell-aside-offset`]=`0px`):n[e][`--app-shell-aside-width`]=`0px`,n[e][`--app-shell-aside-transform`]=l,n[e][`--app-shell-aside-transform-rtl`]=d,n[e][`--app-shell-aside-scroll-locked-visibility`]=`hidden`,s&&(n[e][`--app-shell-aside-resize-handle-display`]=`none`)}}function yf({baseStyles:e,minMediaStyles:t,footer:n,mode:r,resizedSize:i,resizable:a}){let o=n?.height,s=r===`static`?!0:n?.offset??!0;if(r===`static`&&n&&(e[`--app-shell-footer-position`]=`sticky`,e[`--app-shell-footer-grid-column`]=`1 / -1`,e[`--app-shell-footer-grid-row`]=`3`),i!==void 0){let t=hf(i,`vertical`);e[`--app-shell-footer-height`]=t,s&&(e[`--app-shell-footer-offset`]=t)}else{if(gf(o)){let t=v(mf(o));e[`--app-shell-footer-height`]=t,s&&(e[`--app-shell-footer-offset`]=t)}_f(o)&&(o.base!==void 0&&(e[`--app-shell-footer-height`]=v(o.base),s&&(e[`--app-shell-footer-offset`]=v(o.base))),u(o).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-footer-height`]=v(o[e]),s&&(t[e][`--app-shell-footer-offset`]=v(o[e])))}))}n?.collapsed&&(e[`--app-shell-footer-transform`]=`translateY(var(--app-shell-footer-height))`,r===`fixed`&&(e[`--app-shell-footer-offset`]=`0px !important`),a&&(e[`--app-shell-footer-resize-handle-display`]=`none`))}function bf({baseStyles:e,minMediaStyles:t,header:n,mode:r,resizedSize:i,resizable:a}){let o=n?.height,s=r===`static`?!0:n?.offset??!0;if(r===`static`&&n&&(e[`--app-shell-header-position`]=`sticky`,e[`--app-shell-header-grid-column`]=`1 / -1`,e[`--app-shell-header-grid-row`]=`1`),i!==void 0){let t=hf(i,`vertical`);e[`--app-shell-header-height`]=t,s&&(e[`--app-shell-header-offset`]=t)}else{if(gf(o)){let t=v(mf(o));e[`--app-shell-header-height`]=t,s&&(e[`--app-shell-header-offset`]=t)}_f(o)&&(o.base!==void 0&&(e[`--app-shell-header-height`]=v(o.base),s&&(e[`--app-shell-header-offset`]=v(o.base))),u(o).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-header-height`]=v(o[e]),s&&(t[e][`--app-shell-header-offset`]=v(o[e])))}))}n?.collapsed&&(e[`--app-shell-header-transform`]=`translateY(calc(var(--app-shell-header-height) * -1))`,r===`fixed`&&(e[`--app-shell-header-offset`]=`0px !important`),a&&(e[`--app-shell-header-resize-handle-display`]=`none`))}function xf({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,navbar:r,theme:i,mode:a,resizedSize:o,resizable:s}){let c=r?.width,l=`translateX(calc(var(--app-shell-navbar-width) * -1))`,d=`translateX(var(--app-shell-navbar-width))`;if(r?.breakpoint!==void 0&&!r?.collapsed?.mobile&&(n[r?.breakpoint]=n[r?.breakpoint]||{},n[r?.breakpoint][`--app-shell-navbar-offset`]=`0px`,n[r?.breakpoint][`--app-shell-navbar-width`]=`100%`,a===`static`&&(n[r?.breakpoint][`--app-shell-navbar-grid-width`]=`0px`),s&&(n[r.breakpoint][`--app-shell-navbar-resize-handle-display`]=`none`)),o!==void 0){let t=hf(o,`horizontal`);e[`--app-shell-navbar-width`]=t,e[`--app-shell-navbar-offset`]=t,a===`static`&&(e[`--app-shell-navbar-grid-width`]=t)}else{if(gf(c)){let t=v(mf(c));e[`--app-shell-navbar-width`]=t,e[`--app-shell-navbar-offset`]=t,a===`static`&&(e[`--app-shell-navbar-grid-width`]=t)}_f(c)&&(c.base!==void 0&&(e[`--app-shell-navbar-width`]=v(c.base),e[`--app-shell-navbar-offset`]=v(c.base),a===`static`&&(e[`--app-shell-navbar-grid-width`]=v(c.base))),u(c).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-navbar-width`]=v(c[e]),t[e][`--app-shell-navbar-offset`]=v(c[e]),a===`static`&&(t[e][`--app-shell-navbar-grid-width`]=v(c[e])))}))}if(r?.breakpoint!==void 0&&a===`static`&&(t[r.breakpoint]=t[r.breakpoint]||{},t[r.breakpoint][`--app-shell-navbar-position`]=`sticky`,t[r.breakpoint][`--app-shell-navbar-grid-row`]=`2`,t[r.breakpoint][`--app-shell-navbar-grid-column`]=`1`,t[r.breakpoint][`--app-shell-main-column-start`]=`2`),r?.collapsed?.desktop){let e=r.breakpoint;t[e]=t[e]||{},t[e][`--app-shell-navbar-transform`]=l,t[e][`--app-shell-navbar-transform-rtl`]=d,a===`fixed`?t[e][`--app-shell-navbar-offset`]=`0px !important`:(t[e][`--app-shell-navbar-width`]=`0px`,t[e][`--app-shell-navbar-display`]=`none`,t[e][`--app-shell-main-column-start`]=`1`),s&&(t[e][`--app-shell-navbar-resize-handle-display`]=`none`)}if(r?.collapsed?.mobile){let e=te(r.breakpoint,i.breakpoints)-.1;n[e]=n[e]||{},n[e][`--app-shell-navbar-width`]=`100%`,n[e][`--app-shell-navbar-offset`]=`0px`,a===`static`&&(n[e][`--app-shell-navbar-grid-width`]=`0px`),n[e][`--app-shell-navbar-transform`]=l,n[e][`--app-shell-navbar-transform-rtl`]=d,s&&(n[e][`--app-shell-navbar-resize-handle-display`]=`none`)}}function Sf(e){return Number(e)===0?`0px`:L(e)}function Cf({padding:e,baseStyles:t,minMediaStyles:n}){gf(e)&&(t[`--app-shell-padding`]=Sf(mf(e))),_f(e)&&(e.base&&(t[`--app-shell-padding`]=Sf(e.base)),u(e).forEach(t=>{t!==`base`&&(n[t]=n[t]||{},n[t][`--app-shell-padding`]=Sf(e[t]))}))}function wf({navbar:e,header:t,footer:n,aside:r,padding:i,theme:a,mode:o,resize:s}){let c={},l={},d={};o===`static`&&(d[`--app-shell-main-grid-column`]=`1 / -1`,d[`--app-shell-main-grid-row`]=`2`),xf({baseStyles:d,minMediaStyles:c,maxMediaStyles:l,navbar:e,theme:a,mode:o,resizedSize:s?.sizes.navbar,resizable:s?.enabled.navbar}),vf({baseStyles:d,minMediaStyles:c,maxMediaStyles:l,aside:r,theme:a,mode:o,resizedSize:s?.sizes.aside,resizable:s?.enabled.aside}),bf({baseStyles:d,minMediaStyles:c,header:t,mode:o,resizedSize:s?.sizes.header,resizable:s?.enabled.header}),yf({baseStyles:d,minMediaStyles:c,footer:n,mode:o,resizedSize:s?.sizes.footer,resizable:s?.enabled.footer}),Cf({baseStyles:d,minMediaStyles:c,padding:i});let f=ne(u(c),a.breakpoints).map(e=>({query:`(min-width: ${y(e.px)})`,styles:c[e.value]})),p=ne(u(l),a.breakpoints).map(e=>({query:`(max-width: ${y(e.px)})`,styles:l[e.value]}));return{baseStyles:d,media:[...f,...p]}}function Tf({navbar:e,header:t,aside:n,footer:r,padding:i,mode:a,selector:o,resize:s}){let c=xn(),l=Jt(),{media:u,baseStyles:d}=wf({navbar:e,header:t,footer:r,aside:n,padding:i,theme:c,mode:a,resize:s});return(0,G.jsx)(rr,{media:u,styles:d,selector:o||l.cssVariablesSelector})}function Ef(e){return e>=128||e===45||e===95||e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function Df(e){return e>=48&&e<=57}function Of(e){let t=``;for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n),i=e.charAt(n);r===0?t+=`�`:r>=1&&r<=31||r===127||n===0&&Df(r)||n===1&&Df(r)&&e.charCodeAt(0)===45?t+=`\\${r.toString(16)} `:n===0&&e.length===1&&r===45?t+=`\\${i}`:Ef(r)?t+=i:t+=`\\${i}`}return t}function kf({transitionDuration:e,disabled:t,resizeKey:n}){let[r,i]=(0,w.useState)(!0),[a,o]=(0,w.useState)({key:n,active:!1}),s=(0,w.useRef)(-1),c=(0,w.useRef)(-1);return a.key!==n&&o({key:n,active:!0}),(0,w.useEffect)(()=>{if(!a.active)return;let t=window.setTimeout(()=>(0,w.startTransition)(()=>{o(e=>({...e,active:!1}))}),e||0);return()=>window.clearTimeout(t)},[a,e]),ke(`resize`,()=>{i(!0),clearTimeout(s.current),s.current=window.setTimeout(()=>(0,w.startTransition)(()=>{i(!1)}),200)}),fe(()=>{i(!0),clearTimeout(c.current),c.current=window.setTimeout(()=>(0,w.startTransition)(()=>{i(!1)}),e||0)},[t,e]),r||a.active}var Af={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:`ease`,zIndex:N(`app`),mode:`fixed`},jf=gt((e,{transitionDuration:t,transitionTimingFunction:n})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":n,"--app-shell-resize-handle-size":void 0}})),Mf=q(e=>{let t=K(`AppShell`,Af,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,navbar:c,withBorder:l,padding:u,transitionDuration:d,transitionTimingFunction:f,header:p,zIndex:m,layout:h,disabled:g,aside:_,footer:v,offsetScrollbars:y=!0,mode:b,mod:x,attributes:S,id:C,resize:T,ref:E,...D}=t,O=Qn({name:`AppShell`,classes:sf,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:S,vars:s,varsResolver:jf}),k=kf({disabled:g,transitionDuration:d,resizeKey:T?Zd.map(e=>T.sizes[e]).join(`|`):void 0}),A=Oe(C),j=(0,w.useRef)(null),M=T?{sizes:T.sizes,enabled:{navbar:T.navbar.enabled,aside:T.aside.enabled,header:T.header.enabled,footer:T.footer.enabled}}:void 0,N={navbar:!0,aside:!0,header:b===`static`?!0:p?.offset??!0,footer:b===`static`?!0:v?.offset??!0};return(0,G.jsxs)(Kd,{value:{getStyles:O,withBorder:l,zIndex:m,disabled:g,offsetScrollbars:y,mode:b,resize:T,rootRef:j,resizeOffsets:N},children:[(0,G.jsx)(Tf,{navbar:c,header:p,aside:_,footer:v,padding:u,mode:b,resize:M,selector:T||b===`static`?`#${Of(A)}`:void 0}),(0,G.jsx)(J,{...O(`root`),id:A,ref:Me(E,j),mod:[{resizing:k||T?.activeSection!=null,layout:h,disabled:g,mode:b},x],...D})]})});Mf.classes=sf,Mf.varsResolver=jf,Mf.displayName=`@mantine/core/AppShell`,Mf.Navbar=ff,Mf.Header=uf,Mf.Main=df,Mf.Aside=cf,Mf.Footer=lf,Mf.Section=pf;function Nf(e){return typeof e==`string`?{value:e,label:e}:typeof e==`object`&&`value`in e&&!(`label`in e)?{value:e.value,label:`${e.value}`,disabled:e.disabled}:typeof e==`object`&&`group`in e?{group:e.group,items:e.items.map(e=>Nf(e))}:typeof e==`number`||typeof e==`bigint`||typeof e==`boolean`?{value:e,label:`${e}`}:e}function Pf(e){return e?e.map(e=>Nf(e)):[]}function Ff(e){return e.reduce((e,t)=>`group`in t?{...e,...Ff(t.items)}:(e[`${t.value}`]=t,e),{})}var If={dropdown:`m_88b62a41`,search:`m_985517d8`,options:`m_b2821a6e`,option:`m_92253aa5`,empty:`m_2530cd1d`,header:`m_858f94bd`,footer:`m_82b967cb`,group:`m_254f3e4f`,groupLabel:`m_2bb2e9e5`,chevron:`m_2943220b`,optionsDropdownOption:`m_390b5f4`,optionsDropdownCheckIcon:`m_8ee53fc2`,optionsDropdownCheckPlaceholder:`m_a530ee0a`},Lf={error:null},Rf=gt((e,{size:t,color:n})=>({chevron:{"--combobox-chevron-size":I(t,`combobox-chevron-size`),"--combobox-chevron-color":n?It(n,e):void 0}})),zf=q(e=>{let t=K(`ComboboxChevron`,Lf,e),{size:n,error:r,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:l,attributes:u,mod:d,...f}=t,p=Qn({name:`ComboboxChevron`,classes:If,props:t,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:l,varsResolver:Rf,attributes:u,rootSelector:`chevron`});return(0,G.jsx)(J,{component:`svg`,...f,...p(`chevron`),size:n,viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,mod:[`combobox-chevron`,{error:r},d],children:(0,G.jsx)(`path`,{d:`M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})});zf.classes=If,zf.varsResolver=Rf,zf.displayName=`@mantine/core/ComboboxChevron`;var[Bf,Vf]=E(`Combobox component was not found in tree`);function Hf({onMouseDown:e,onClick:t,onClear:n,...r}){return(0,G.jsx)(Ed.ClearButton,{tabIndex:-1,"aria-hidden":!0,...r,onMouseDown:t=>{t.preventDefault(),e?.(t)},onClick:e=>{n(),t?.(e)}})}Hf.displayName=`@mantine/core/ComboboxClearButton`;var Uf=q(e=>{let{classNames:t,styles:n,className:r,style:i,hidden:a,...o}=K(`ComboboxDropdown`,null,e),s=Vf();return(0,G.jsx)(ol.Dropdown,{...o,role:`presentation`,"data-hidden":a||void 0,"data-floating-height":s.floatingHeight||void 0,...s.getStyles(`dropdown`,{className:r,style:i,classNames:t,styles:n})})});Uf.classes=If,Uf.displayName=`@mantine/core/ComboboxDropdown`;var Wf={refProp:`ref`},Gf=q(e=>{let{children:t,refProp:n,ref:r}=K(`ComboboxDropdownTarget`,Wf,e);if(Vf(),!T(t))throw Error(`Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);return(0,G.jsx)(ol.Target,{ref:r,refProp:n,children:t})});Gf.displayName=`@mantine/core/ComboboxDropdownTarget`;var Kf=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ComboboxEmpty`,null,e),s=Vf();return(0,G.jsx)(J,{...s.getStyles(`empty`,{className:n,classNames:t,styles:i,style:r}),...o})});Kf.classes=If,Kf.displayName=`@mantine/core/ComboboxEmpty`;function qf({onKeyDown:e,onClick:t,withKeyboardNavigation:n,withAriaAttributes:r,withExpandedAttribute:i,targetType:a,autoComplete:o}){let s=Vf(),[c,l]=(0,w.useState)(null),u=t=>{if(e?.(t),!s.readOnly&&n){if(t.nativeEvent.isComposing)return;if(t.nativeEvent.code===`ArrowDown`&&(t.preventDefault(),s.store.dropdownOpened?l(s.store.selectNextOption()):(s.store.openDropdown(`keyboard`),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`ArrowUp`&&(t.preventDefault(),s.store.dropdownOpened?l(s.store.selectPreviousOption()):(s.store.openDropdown(`keyboard`),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`Enter`||t.nativeEvent.code===`NumpadEnter`){if(t.nativeEvent.keyCode===229)return;let e=s.store.getSelectedOptionIndex();s.store.dropdownOpened&&e!==-1?(t.preventDefault(),s.store.clickSelectedOption()):a===`button`&&(t.preventDefault(),s.store.openDropdown(`keyboard`))}t.key===`Escape`&&s.store.closeDropdown(`keyboard`),t.nativeEvent.code===`Space`&&a===`button`&&(t.preventDefault(),s.store.toggleDropdown(`keyboard`))}},d=r?{...i?{role:`combobox`}:{},"aria-haspopup":`listbox`,"aria-expanded":i?!!(s.store.listId&&s.store.dropdownOpened):void 0,"aria-controls":s.store.dropdownOpened&&s.store.listId?s.store.listId:void 0,"aria-activedescendant":s.store.dropdownOpened&&c||void 0,autoComplete:o,"data-expanded":s.store.dropdownOpened||void 0,"data-mantine-stop-propagation":s.store.dropdownOpened||void 0}:{},f=e=>{a===`button`&&e.currentTarget.focus(),t?.(e)};return{...d,onKeyDown:u,onClick:f}}var Jf={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},Yf=q(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=K(`ComboboxEventsTarget`,Jf,e),u=ht(t);if(!u)throw Error(`Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let d=Vf(),f=qf({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s});return(0,w.cloneElement)(u,{...f,...l,[n]:Me(c,d.store.targetRef,ut(u))})});Yf.displayName=`@mantine/core/ComboboxEventsTarget`;var Xf=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ComboboxFooter`,null,e),s=Vf();return(0,G.jsx)(J,{...s.getStyles(`footer`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});Xf.classes=If,Xf.displayName=`@mantine/core/ComboboxFooter`;var Zf=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,label:s,id:c,...l}=K(`ComboboxGroup`,null,e),u=Vf(),d=Oe(c),f=s!=null&&s!==!1&&s!==``;return(0,G.jsxs)(J,{role:`group`,"aria-labelledby":f?d:void 0,...u.getStyles(`group`,{className:n,classNames:t,style:r,styles:i}),...l,children:[f&&(0,G.jsx)(`div`,{id:d,...u.getStyles(`groupLabel`,{classNames:t,styles:i}),children:s}),o]})});Zf.classes=If,Zf.displayName=`@mantine/core/ComboboxGroup`;var Qf=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ComboboxHeader`,null,e),s=Vf();return(0,G.jsx)(J,{...s.getStyles(`header`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});Qf.classes=If,Qf.displayName=`@mantine/core/ComboboxHeader`;function $f({value:e,valuesDivider:t=`,`,...n}){return(0,G.jsx)(`input`,{type:`hidden`,value:Array.isArray(e)?e.join(t):e?`${e}`:``,...n})}$f.displayName=`@mantine/core/ComboboxHiddenInput`;var ep=q(e=>{let t=K(`ComboboxOption`,null,e),{classNames:n,className:r,style:i,styles:a,vars:o,onClick:s,id:c,active:l,onMouseDown:u,onMouseOver:d,disabled:f,selected:p,mod:m,...h}=t,g=Vf(),_=(0,w.useId)(),v=c||_;return(0,G.jsx)(J,{...g.getStyles(`option`,{className:r,classNames:n,styles:a,style:i}),"aria-disabled":f||void 0,...h,id:v,mod:[`combobox-option`,{"combobox-active":l,"combobox-disabled":f,"combobox-selected":p},m],role:`option`,onClick:e=>{f?e.preventDefault():(g.onOptionSubmit?.(t.value,t),s?.(e))},onMouseDown:e=>{e.preventDefault(),u?.(e)},onMouseOver:e=>{g.resetSelectionOnOptionHover&&g.store.resetSelectedOption(),d?.(e)}})});ep.classes=If,ep.displayName=`@mantine/core/ComboboxOption`;var tp=q(e=>{let{classNames:t,className:n,style:r,styles:i,id:a,onMouseDown:o,labelledBy:s,...c}=K(`ComboboxOptions`,null,e),l=Vf(),u=Oe(a);return(0,w.useEffect)(()=>{l.store.setListId(u)},[u]),(0,G.jsx)(J,{...l.getStyles(`options`,{className:n,style:r,classNames:t,styles:i}),...c,id:u,role:`listbox`,"aria-labelledby":s,onMouseDown:e=>{e.preventDefault(),o?.(e)}})});tp.classes=If,tp.displayName=`@mantine/core/ComboboxOptions`;var np={withAriaAttributes:!0,withKeyboardNavigation:!0},rp=q(e=>{let{classNames:t,styles:n,unstyled:r,vars:i,withAriaAttributes:a,onKeyDown:o,onClick:s,withKeyboardNavigation:c,size:l,ref:u,...d}=K(`ComboboxSearch`,np,e),f=Vf(),p=f.getStyles(`search`),m=qf({targetType:`input`,withAriaAttributes:a,withKeyboardNavigation:c,withExpandedAttribute:!1,onKeyDown:o,onClick:s,autoComplete:`off`});return(0,G.jsx)(Ed,{ref:Me(u,f.store.searchRef),classNames:[{input:p.className},t],styles:[{input:p.style},n],size:l||f.size,...m,...d,__staticSelector:`Combobox`})});rp.classes=If,rp.displayName=`@mantine/core/ComboboxSearch`;var ip={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},ap=q(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=K(`ComboboxTarget`,ip,e),u=ht(t);if(!u)throw Error(`Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let d=Vf(),f=qf({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s}),p=(0,w.cloneElement)(u,{...f,...l});return(0,G.jsx)(ol.Target,{refProp:n,ref:Me(c,d.store.targetRef),children:p})});ap.displayName=`@mantine/core/ComboboxTarget`;function op(e,t,n){for(let n=e-1;n>=0;--n)if(!t[n].hasAttribute(`data-combobox-disabled`))return n;if(n){for(let e=t.length-1;e>-1;--e)if(!t[e].hasAttribute(`data-combobox-disabled`))return e}return e}function sp(e,t,n){for(let n=e+1;n<t.length;n+=1)if(!t[n].hasAttribute(`data-combobox-disabled`))return n;if(n){for(let e=0;e<t.length;e+=1)if(!t[e].hasAttribute(`data-combobox-disabled`))return e}return e}function cp(e){for(let t=0;t<e.length;t+=1)if(!e[t].hasAttribute(`data-combobox-disabled`))return t;return-1}function lp({defaultOpened:e,opened:t,onOpenedChange:n,onDropdownClose:r,onDropdownOpen:i,loop:a=!0,scrollBehavior:o=`instant`}={}){let[s,c]=Ne({value:t,defaultValue:e,finalValue:!1,onChange:n}),l=(0,w.useRef)(null),u=(0,w.useRef)(-1),d=(0,w.useRef)(null),f=(0,w.useRef)(null),p=(0,w.useRef)(-1),m=(0,w.useRef)(-1),h=(0,w.useRef)(-1),g=(0,w.useCallback)((e=`unknown`)=>{s||(c(!0),i?.(e))},[c,i,s]),_=(0,w.useCallback)((e=`unknown`)=>{s&&(c(!1),r?.(e))},[c,r,s]),v=(0,w.useCallback)((e=`unknown`)=>{s?_(e):g(e)},[_,g,s]),y=(0,w.useCallback)(()=>{let e=mt(f.current);ft(`#${l.current} [data-combobox-selected]`,e)?.removeAttribute(`data-combobox-selected`)},[]),b=(0,w.useCallback)(e=>{let t=mt(f.current),n=ft(`#${l.current}`,t),r=n?pt(`[data-combobox-option]`,n):null;if(!r)return null;let i=e>=r.length?0:e<0?r.length-1:e;return u.current=i,r?.[i]&&!r[i].hasAttribute(`data-combobox-disabled`)?(y(),r[i].setAttribute(`data-combobox-selected`,`true`),r[i].scrollIntoView({block:`nearest`,behavior:o}),r[i].id):null},[o,y]),x=(0,w.useCallback)(()=>{let e=mt(f.current),t=ft(`#${l.current} [data-combobox-active]`,e);if(t){let n=pt(`#${l.current} [data-combobox-option]`,e).findIndex(e=>e===t);return b(n)}return b(0)},[b]),S=(0,w.useCallback)(()=>{let e=mt(f.current),t=pt(`#${l.current} [data-combobox-option]`,e);return b(sp(u.current,t,a))},[b,a]),C=(0,w.useCallback)(()=>{let e=mt(f.current),t=pt(`#${l.current} [data-combobox-option]`,e);return b(op(u.current,t,a))},[b,a]),T=(0,w.useCallback)(()=>{let e=mt(f.current),t=pt(`#${l.current} [data-combobox-option]`,e);return b(cp(t))},[b]),E=(0,w.useCallback)((e=`selected`,t)=>{if(typeof e==`number`){u.current=e;let n=mt(f.current),r=pt(`#${l.current} [data-combobox-option]`,n);t?.scrollIntoView&&r[e]?.scrollIntoView({block:`nearest`,behavior:o})}else h.current=window.setTimeout(()=>{let n=mt(f.current),r=pt(`#${l.current} [data-combobox-option]`,n),i=r.findIndex(t=>t.hasAttribute(`data-combobox-${e}`));u.current=i,t?.scrollIntoView&&r[i]?.scrollIntoView({block:`nearest`,behavior:o})},0)},[]),D=(0,w.useCallback)(()=>{u.current=-1,y()},[y]),O=(0,w.useCallback)(()=>{let e=mt(f.current);(pt(`#${l.current} [data-combobox-option]`,e)?.[u.current])?.click()},[]),k=(0,w.useCallback)(e=>{l.current=e},[]),A=(0,w.useCallback)(()=>{p.current=window.setTimeout(()=>d.current?.focus(),0)},[]),j=(0,w.useCallback)(()=>{m.current=window.setTimeout(()=>f.current?.focus(),0)},[]),M=(0,w.useCallback)(()=>u.current,[]);return(0,w.useEffect)(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(m.current),window.clearTimeout(h.current)},[]),{dropdownOpened:s,openDropdown:g,closeDropdown:_,toggleDropdown:v,selectedOptionIndex:u.current,getSelectedOptionIndex:M,selectOption:b,selectFirstOption:T,selectActiveOption:x,selectNextOption:S,selectPreviousOption:C,resetSelectedOption:D,updateSelectedOptionIndex:E,listId:l.current,setListId:k,clickSelectedOption:O,searchRef:d,focusSearchInput:A,targetRef:f,focusTarget:j}}var up={keepMounted:!0,keepMountedMode:`display-none`,withinPortal:!0,resetSelectionOnOptionHover:!1,width:`target`,transitionProps:{transition:`fade`,duration:0},size:`sm`},dp=gt((e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":z(t),"--combobox-option-padding":I(t,`combobox-option-padding`)},dropdown:{"--combobox-padding":n===void 0?void 0:v(n),"--combobox-option-fz":z(t),"--combobox-option-padding":I(t,`combobox-option-padding`)}})),fp=e=>{let t=K(`Combobox`,up,e),{classNames:n,styles:r,unstyled:i,children:a,store:o,vars:s,onOptionSubmit:c,onClose:l,size:u,dropdownPadding:d,resetSelectionOnOptionHover:f,__staticSelector:p,readOnly:m,attributes:h,floatingHeight:g,middlewares:_,...v}=t,y=g===`viewport`?{..._,flip:!1,size:{...typeof _?.size==`object`?_.size:{},padding:typeof _?.size==`object`&&_.size.padding!==void 0?_.size.padding:10,apply:({availableHeight:e,availableWidth:t,elements:n,...r})=>{n.floating.style.setProperty(`--combobox-floating-max-height`,`${e}px`);let i=_?.size;typeof i==`object`&&i.apply?i.apply({availableHeight:e,availableWidth:t,elements:n,...r}):i&&Object.assign(n.floating.style,{maxWidth:`${t}px`,maxHeight:`${e}px`})}}}:_,b=lp(),x=o||b,S=Qn({name:p||`Combobox`,classes:If,props:t,classNames:n,styles:r,unstyled:i,attributes:h,vars:s,varsResolver:dp}),C=()=>{l?.(),x.closeDropdown()};return(0,G.jsx)(Bf,{value:{getStyles:S,store:x,onOptionSubmit:c,size:u,resetSelectionOnOptionHover:f,readOnly:m,floatingHeight:g},children:(0,G.jsx)(ol,{opened:x.dropdownOpened,...v,middlewares:y,onChange:e=>!e&&C(),withRoles:!1,unstyled:i,children:a})})};fp.extend=e=>e,fp.classes=If,fp.varsResolver=dp,fp.displayName=`@mantine/core/Combobox`,fp.Target=ap,fp.Dropdown=Uf,fp.Options=tp,fp.Option=ep,fp.Search=rp,fp.Empty=Kf,fp.Chevron=zf,fp.Footer=Xf,fp.Header=Qf,fp.EventsTarget=Yf,fp.DropdownTarget=Gf,fp.Group=Zf,fp.ClearButton=Hf,fp.HiddenInput=$f;function pp({children:e,role:t}){let n=(0,w.use)(cd);return n?(0,G.jsx)(`div`,{role:t,"aria-labelledby":n.labelId,"aria-describedby":n.describedBy,children:e}):(0,G.jsx)(G.Fragment,{children:e})}function mp({size:e,style:t,...n}){let r=e===void 0?t:{width:v(e),height:v(e),...t};return(0,G.jsx)(`svg`,{viewBox:`0 0 10 7`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:r,"aria-hidden":!0,...n,children:(0,G.jsx)(`path`,{d:`M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}var hp={root:`m_5f75b09e`,body:`m_5f6e695e`,labelWrapper:`m_d3ea56bb`,label:`m_8ee546b8`,description:`m_328f68c0`,error:`m_8e8a99cc`},gp=hp;function _p({__staticSelector:e,__stylesApiProps:t,className:n,classNames:r,styles:i,unstyled:a,children:o,label:s,description:c,id:l,disabled:u,error:d,size:f,labelPosition:p=`left`,bodyElement:m=`div`,labelElement:h=`label`,variant:g,style:_,vars:v,mod:y,attributes:b,...x}){let S=Qn({name:e,props:t,className:n,style:_,classes:hp,classNames:r,styles:i,unstyled:a,attributes:b}),C=c?`${l}-description`:void 0,w=d&&typeof d!=`boolean`?`${l}-error`:void 0;return(0,G.jsx)(J,{...S(`root`),__vars:{"--label-fz":z(f),"--label-lh":I(f,`label-lh`)},mod:[{"label-position":p},y],variant:g,size:f,...x,children:(0,G.jsxs)(J,{component:m,htmlFor:m===`label`?l:void 0,...S(`body`),children:[o,(0,G.jsxs)(`div`,{...S(`labelWrapper`),"data-disabled":u||void 0,children:[s&&(0,G.jsx)(J,{component:h,htmlFor:h===`label`?l:void 0,...S(`label`),"data-disabled":u||void 0,children:s}),c&&(0,G.jsx)(Ed.Description,{id:C,size:f,__inheritStyles:!1,...S(`description`),children:c}),d&&typeof d!=`boolean`&&(0,G.jsx)(Ed.Error,{id:w,size:f,__inheritStyles:!1,...S(`error`),children:d})]})]})})}_p.displayName=`@mantine/core/InlineInput`;function vp(e){return`group`in e}function yp({options:e,search:t,limit:n}){let r=t.trim().toLowerCase(),i=[];for(let a=0;a<e.length;a+=1){let o=e[a];if(i.length===n)return i;vp(o)&&i.push({group:o.group,items:yp({options:o.items,search:t,limit:n-i.length})}),vp(o)||o.label.toLowerCase().includes(r)&&i.push(o)}return i}function bp(e){if(e.length===0)return!0;for(let t of e)if(!(`group`in t)||t.items.length>0)return!1;return!0}function xp(e,t=new Set){if(Array.isArray(e))for(let n of e)if(vp(n))xp(n.items,t);else{if(n.value===void 0)throw Error(`[@mantine/core] Each option must have value property`);if(t.has(n.value))throw Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);t.add(n.value)}}function Sp(e,t){return Array.isArray(e)?e.includes(t):e===t}function Cp({data:e,withCheckIcon:t,withAlignedLabels:n,value:r,checkIconPosition:i,unstyled:a,renderOption:o}){if(!vp(e)){let s=Sp(r,e.value),c=t&&(s?(0,G.jsx)(mp,{className:If.optionsDropdownCheckIcon}):n?(0,G.jsx)(`div`,{className:If.optionsDropdownCheckPlaceholder}):null),l=(0,G.jsxs)(G.Fragment,{children:[i===`left`&&c,(0,G.jsx)(`span`,{children:e.label}),i===`right`&&c]});return(0,G.jsx)(fp.Option,{value:e.value,disabled:e.disabled,className:vt({[If.optionsDropdownOption]:!a}),"data-reverse":i===`right`||void 0,"data-checked":s||void 0,"aria-selected":s,active:s,children:typeof o==`function`?o({option:e,checked:s}):l})}let s=e.items.map(e=>(0,G.jsx)(Cp,{data:e,value:r,unstyled:a,withCheckIcon:t,withAlignedLabels:n,checkIconPosition:i,renderOption:o},`${e.value}`));return(0,G.jsx)(fp.Group,{label:e.group,children:s})}function wp({data:e,hidden:t,hiddenWhenEmpty:n,filter:r,search:i,limit:a,maxDropdownHeight:o,floatingHeight:s,withScrollArea:c=!0,filterOptions:l=!0,withCheckIcon:u=!1,withAlignedLabels:d=!1,value:f,checkIconPosition:p,nothingFoundMessage:m,unstyled:h,labelId:g,renderOption:_,scrollAreaProps:v,"aria-label":y}){let b=Vf();xp(e);let x=typeof i==`string`?(r||yp)({options:e,search:l?i:``,limit:a??1/0}):e,S=bp(x),C=x.map((e,t)=>(0,G.jsx)(Cp,{data:e,withCheckIcon:u,withAlignedLabels:d,value:f,checkIconPosition:p,unstyled:h,renderOption:_},vp(e)?`group-${typeof e.group==`string`?e.group:t}`:`${e.value}`));return(0,G.jsx)(fp.Dropdown,{hidden:t||n&&S,"data-composed":!0,children:(0,G.jsxs)(fp.Options,{labelledBy:g,"aria-label":y,children:[c?(0,G.jsx)(cc.Autosize,{mah:(s??b.floatingHeight)===`viewport`?`var(--combobox-floating-options-max-height)`:o??220,type:`scroll`,scrollbarSize:`var(--combobox-padding)`,offsetScrollbars:`y`,...v,children:C}):C,S&&m&&(0,G.jsx)(fp.Empty,{children:m})]})})}function Tp(e,t,n,r){if(t===n||r===`before`&&n===t+1||r===`after`&&n===t-1)return e;let i=e.slice(),[a]=i.splice(t,1),o=t<n?n-1:n;return r===`after`&&(o+=1),i.splice(o,0,a),i}var Ep=e=>{let t=e.lastElementChild;return t?t instanceof HTMLInputElement?t:t.querySelector(`input`):null},Dp=(e,t)=>{if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return!1;return!0};function Op({value:e,onChange:t,enabled:n}){let r=(0,w.useRef)({draggedIndex:null,currentDropTarget:null}),i=(0,w.useRef)(null),a=(0,w.useRef)(null),o=(0,w.useRef)(e);o.current=e,(0,w.useEffect)(()=>{let e=i.current;e&&(i.current=null,Dp(o.current,e.expectedValue)&&e.container?.querySelector(`[data-mantine-pill-index="${e.index}"]`)?.focus())});let s=(0,w.useCallback)(e=>{a.current=e},[]);return{getPillProps:e=>{if(n)return{draggable:!0,tabIndex:-1,"data-mantine-pill-index":e,"aria-keyshortcuts":`Alt+ArrowLeft Alt+ArrowRight`,onMouseDown:e=>{e.button===0&&e.stopPropagation()},onDragStart:t=>{t.stopPropagation(),t.dataTransfer.effectAllowed=`move`,t.dataTransfer.setData(`text/plain`,String(e)),r.current.draggedIndex=e;let n=t.currentTarget,i=n.getBoundingClientRect(),a=n.cloneNode(!0);a.removeAttribute(`data-dragging`),a.removeAttribute(`data-drag-over`),a.style.position=`fixed`,a.style.top=`-9999px`,a.style.left=`-9999px`,a.style.width=`${i.width}px`,a.style.height=`${i.height}px`,a.style.pointerEvents=`none`,document.body.appendChild(a),t.dataTransfer.setDragImage(a,t.clientX-i.left,t.clientY-i.top),setTimeout(()=>a.parentNode?.removeChild(a),0),requestAnimationFrame(()=>{n.setAttribute(`data-dragging`,`true`)})},onDragOver:t=>{let{draggedIndex:n}=r.current;if(n===null||n===e)return;let i=t.currentTarget,a=i.getBoundingClientRect(),o=t.clientX-a.left,s=(getComputedStyle(i).direction===`rtl`?o>a.width/2:o<a.width/2)?`before`:`after`;t.preventDefault(),t.stopPropagation(),t.dataTransfer.dropEffect=`move`;let c=r.current.currentDropTarget;c&&c!==i&&c.removeAttribute(`data-drag-over`),i.setAttribute(`data-drag-over`,s),r.current.currentDropTarget=i},onDragLeave:e=>{let t=e.currentTarget,n=e.relatedTarget;n&&t.contains(n)||(t.removeAttribute(`data-drag-over`),r.current.currentDropTarget===t&&(r.current.currentDropTarget=null))},onDrop:n=>{n.preventDefault(),n.stopPropagation();let i=n.currentTarget,a=i.getAttribute(`data-drag-over`);i.removeAttribute(`data-drag-over`);let{draggedIndex:s}=r.current;if(s!==null&&a&&s!==e){let n=Tp(o.current,s,e,a);n!==o.current&&t(n)}r.current.draggedIndex=null,r.current.currentDropTarget=null},onDragEnd:e=>{e.currentTarget.removeAttribute(`data-dragging`);let t=r.current.currentDropTarget;t&&t.removeAttribute(`data-drag-over`),r.current.draggedIndex=null,r.current.currentDropTarget=null},onKeyDown:n=>{if(n.key!==`ArrowLeft`&&n.key!==`ArrowRight`)return;let r=n.currentTarget,a=getComputedStyle(r).direction===`rtl`?n.key===`ArrowLeft`:n.key===`ArrowRight`,s=a?e+1:e-1;if(n.altKey){if(s<0||s>=o.current.length)return;n.preventDefault(),n.stopPropagation();let c=a?`after`:`before`,l=Tp(o.current,e,s,c);if(l===o.current)return;i.current={container:r.parentElement,index:s,expectedValue:l},t(l);return}if(s<0)return;let c=r.parentElement;c&&(n.preventDefault(),n.stopPropagation(),s>=o.current.length?Ep(c)?.focus():c.querySelector(`[data-mantine-pill-index="${s}"]`)?.focus())}}},getListProps:()=>n?{ref:s}:{},handleInputKeyDown:e=>{if(!n||e.key!==`ArrowLeft`)return;let t=e.currentTarget;if(!(t.value.length===0||t.selectionStart===0&&t.selectionEnd===0))return;let r=a.current;if(!r)return;let i=r.querySelectorAll(`[data-mantine-pill-index]`);i.length!==0&&(e.preventDefault(),i[i.length-1].focus())}}}function kp({id:e,label:t,labelProps:n,inputWrapperOrder:r}){if(t&&(!r||r.includes(`label`)))return n?.id||`${e}-label`}var Ap=q(e=>{let t=K([`Input`,`InputWrapper`,`Autocomplete`],{size:`sm`},e),{classNames:n,styles:r,unstyled:i,vars:a,dropdownOpened:o,defaultDropdownOpened:s,onDropdownClose:c,onDropdownOpen:l,onFocus:u,onBlur:d,onClick:f,onChange:p,data:m,value:h,defaultValue:g,selectFirstOptionOnChange:_,selectFirstOptionOnDropdownOpen:v,onOptionSubmit:y,comboboxProps:b,readOnly:x,disabled:S,filter:C,limit:T,withScrollArea:E,maxDropdownHeight:D,floatingHeight:O,size:k,id:A,renderOption:j,autoComplete:M,scrollAreaProps:N,onClear:P,clearButtonProps:F,error:I,clearable:L,clearSectionMode:R,rightSection:z,autoSelectOnBlur:ee,openOnFocus:B=!0,attributes:V,...te}=t,ne=Oe(A),H=kp({id:ne,label:te.label,labelProps:te.labelProps,inputWrapperOrder:te.inputWrapperOrder}),re=Pf(m),ie=Ff(re),[ae,U]=Ne({value:h,defaultValue:g,finalValue:``,onChange:p}),W=lp({opened:o,defaultOpened:s,onDropdownOpen:()=>{l?.(),v&&W.selectFirstOption()},onDropdownClose:()=>{c?.(),setTimeout(W.resetSelectedOption,0)}}),oe=e=>{U(e),W.resetSelectedOption()},{resolvedClassNames:se,resolvedStyles:ce}=Ln({props:t,styles:r,classNames:n});(0,w.useEffect)(()=>{_&&W.selectFirstOption()},[_,ae]);let le=(0,G.jsx)(fp.ClearButton,{...F,onClear:()=>{oe(``),P?.()}});return(0,G.jsxs)(fp,{store:W,__staticSelector:`Autocomplete`,classNames:se,styles:ce,unstyled:i,readOnly:x,size:k,attributes:V,floatingHeight:O,keepMounted:ee,onOptionSubmit:e=>{y?.(e),oe(ie[e].label),W.closeDropdown()},...b,children:[(0,G.jsx)(fp.Target,{autoComplete:M,withExpandedAttribute:!0,children:(0,G.jsx)(kd,{...te,size:k,__staticSelector:`Autocomplete`,__clearSection:le,__clearable:L&&!!ae&&!S&&!x,__clearSectionMode:R,rightSection:z,disabled:S,readOnly:x,value:ae,error:I,onChange:e=>{oe(e.currentTarget.value),W.openDropdown(),_&&W.selectFirstOption()},onFocus:e=>{B&&W.openDropdown(),u?.(e)},onBlur:e=>{ee&&W.clickSelectedOption(),W.closeDropdown(),d?.(e)},onClick:e=>{W.openDropdown(),f?.(e)},classNames:se,styles:ce,unstyled:i,attributes:V,id:ne})}),(0,G.jsx)(wp,{data:re,hidden:x||S,filter:C,search:ae,limit:T,hiddenWhenEmpty:!0,withScrollArea:E,maxDropdownHeight:D,unstyled:i,labelId:H,"aria-label":H?void 0:te[`aria-label`],renderOption:j,scrollAreaProps:N})]})});Ap.classes={...kd.classes,...fp.classes},Ap.displayName=`@mantine/core/Autocomplete`;var jp={root:`m_347db0ec`,"root--dot":`m_fbd81e3d`,label:`m_5add502a`,section:`m_91fdda9b`},Mp=gt((e,{radius:t,color:n,gradient:r,variant:i,size:a,autoContrast:o,circle:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:o});return{root:{"--badge-height":I(a,`badge-height`),"--badge-padding-x":I(a,`badge-padding-x`),"--badge-fz":I(a,`badge-fz`),"--badge-radius":s||t===void 0?void 0:R(t),"--badge-bg":n||i?c.background:void 0,"--badge-color":n||i?c.color:void 0,"--badge-bd":n||i?c.border:void 0,"--badge-dot-color":i===`dot`?It(n,e):void 0}}}),Np=Fr(e=>{let t=K(`Badge`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:l,gradient:u,leftSection:d,rightSection:f,children:p,variant:m,fullWidth:h,autoContrast:g,circle:_,mod:v,attributes:y,...b}=t,x=Qn({name:`Badge`,props:t,classes:jp,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:y,vars:s,varsResolver:Mp});return(0,G.jsxs)(J,{variant:m,mod:[{block:h,circle:_,"with-right-section":!!f,"with-left-section":!!d},v],...x(`root`,{variant:m}),...b,children:[d&&(0,G.jsx)(`span`,{...x(`section`),"data-position":`left`,children:d}),(0,G.jsx)(`span`,{...x(`label`),children:p}),f&&(0,G.jsx)(`span`,{...x(`section`),"data-position":`right`,children:f})]})});Np.classes=jp,Np.varsResolver=Mp,Np.displayName=`@mantine/core/Badge`;var Pp={root:`m_77c9d27d`,inner:`m_80f1301b`,label:`m_811560b9`,section:`m_a74036a`,loader:`m_a25b86ee`,group:`m_80d6d844`,groupSection:`m_70be2a01`},Fp={orientation:`horizontal`},Ip=gt((e,{borderWidth:t})=>({group:{"--button-border-width":v(t)}})),Lp=q(e=>{let t=K(`ButtonGroup`,Fp,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,mod:u,attributes:d,...f}=K(`ButtonGroup`,Fp,e),p=Qn({name:`ButtonGroup`,props:t,classes:Pp,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:c,varsResolver:Ip,rootSelector:`group`});return(0,G.jsx)(J,{...p(`group`),mod:[{orientation:s},u],role:`group`,...f})});Lp.classes=Pp,Lp.varsResolver=Ip,Lp.displayName=`@mantine/core/ButtonGroup`;var Rp=gt((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":I(o,`section-height`),"--section-padding-x":I(o,`section-padding-x`),"--section-fz":o?.includes(`compact`)?z(o.replace(`compact-`,``)):z(o),"--section-radius":t===void 0?void 0:R(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),zp=q(e=>{let t=K(`ButtonGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,gradient:c,radius:l,autoContrast:u,attributes:d,...f}=t,p=Qn({name:`ButtonGroupSection`,props:t,classes:Pp,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:Rp,rootSelector:`groupSection`});return(0,G.jsx)(J,{...p(`groupSection`),...f})});zp.classes=Pp,zp.varsResolver=Rp,zp.displayName=`@mantine/core/ButtonGroupSection`;var Bp={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${v(1)}))`},out:{opacity:0,transform:`translate(-50%, -200%)`},common:{transformOrigin:`center`},transitionProperty:`transform, opacity`},Vp=gt((e,{radius:t,color:n,gradient:r,variant:i,size:a,justify:o,autoContrast:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:s});return{root:{"--button-justify":o,"--button-height":I(a,`button-height`),"--button-padding-x":I(a,`button-padding-x`),"--button-fz":a?.includes(`compact`)?z(a.replace(`compact-`,``)):z(a),"--button-radius":t===void 0?void 0:R(t),"--button-bg":n||i?c.background:void 0,"--button-hover":n||i?c.hover:void 0,"--button-color":c.color,"--button-bd":n||i?c.border:void 0,"--button-hover-color":n||i?c.hoverColor:void 0}}}),Hp=Fr(e=>{let t=K(`Button`,null,e),{style:n,vars:r,className:i,color:a,disabled:o,children:s,leftSection:c,rightSection:l,fullWidth:u,variant:d,radius:f,loading:p,loaderProps:m,gradient:h,classNames:g,styles:_,unstyled:v,"data-disabled":y,autoContrast:b,mod:x,attributes:S,...C}=t,w=Qn({name:`Button`,props:t,classes:Pp,className:i,style:n,classNames:g,styles:_,unstyled:v,attributes:S,vars:r,varsResolver:Vp}),T=!!c,E=!!l;return(0,G.jsxs)(fc,{...w(`root`,{active:!o&&!p&&!y}),unstyled:v,variant:d,disabled:o||p,mod:[{disabled:o||y,loading:p,block:u,"with-left-section":T,"with-right-section":E},x],...C,children:[typeof p==`boolean`&&(0,G.jsx)(Hc,{mounted:p,transition:Bp,duration:150,children:e=>(0,G.jsx)(J,{component:`span`,...w(`loader`,{style:e}),"aria-hidden":!0,children:(0,G.jsx)(ml,{color:`var(--button-color)`,size:`calc(var(--button-height) / 1.8)`,...m})})}),(0,G.jsxs)(`span`,{...w(`inner`),children:[c&&(0,G.jsx)(J,{component:`span`,...w(`section`),mod:{position:`left`},children:c}),(0,G.jsx)(J,{component:`span`,mod:{loading:p},...w(`label`),children:s}),l&&(0,G.jsx)(J,{component:`span`,...w(`section`),mod:{position:`right`},children:l})]})]})});Hp.classes=Pp,Hp.varsResolver=Vp,Hp.displayName=`@mantine/core/Button`,Hp.Group=Lp,Hp.GroupSection=zp;var[Up,Wp]=E(`Card component was not found in tree`),Gp={root:`m_e615b15f`,section:`m_599a2148`},Kp=Fr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,withBorder:o,inheritPadding:s,mod:c,...l}=K(`CardSection`,null,e),u=Wp();return(0,G.jsx)(J,{mod:[{"with-border":o,"inherit-padding":s},c],...u.getStyles(`section`,{className:n,style:r,styles:i,classNames:t}),...l})});Kp.classes=Gp,Kp.displayName=`@mantine/core/CardSection`;var qp=gt((e,{padding:t})=>({root:{"--card-padding":L(t)}})),Jp={orientation:`vertical`},Yp=Fr(e=>{let t=K(`Card`,Jp,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,padding:l,attributes:u,orientation:d,...f}=t,p=Qn({name:`Card`,props:t,classes:Gp,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:qp}),m=w.Children.toArray(c),h=m.map((e,t)=>typeof e==`object`&&e&&`type`in e&&(e.type===Kp||e.type?.displayName===`@mantine/core/CardSection`)?(0,w.cloneElement)(e,{"data-orientation":d,"data-first-section":t===0||void 0,"data-last-section":t===m.length-1||void 0}):e);return(0,G.jsx)(Up,{value:{getStyles:p},children:(0,G.jsx)(_c,{unstyled:o,"data-orientation":d,...p(`root`),...f,children:h})})});Yp.classes=Gp,Yp.varsResolver=qp,Yp.displayName=`@mantine/core/Card`,Yp.Section=Kp;function Xp(e){let t=e.currentTarget;return mt(t).activeElement!==t}var Zp={root:`m_b183c0a2`},Qp=gt((e,{color:t})=>({root:{"--code-bg":t?It(t,e):void 0}})),$p=q(e=>{let t=K(`Code`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,block:l,mod:u,attributes:d,...f}=t,p=Qn({name:`Code`,props:t,classes:Zp,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:Qp});return(0,G.jsx)(J,{component:l?`pre`:`code`,mod:[{block:l},u],...p(`root`),...f,dir:`ltr`})});$p.classes=Zp,$p.varsResolver=Qp,$p.displayName=`@mantine/core/Code`;var em={root:`m_7485cace`},tm={strategy:`block`},nm=gt((e,{size:t,fluid:n})=>({root:{"--container-size":n?void 0:I(t,`container-size`)}})),rm=q(e=>{let t=K(`Container`,tm,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,fluid:c,mod:l,attributes:u,strategy:d,...f}=t,p=Qn({name:`Container`,classes:em,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:nm});return(0,G.jsx)(J,{mod:[{fluid:c,strategy:d},l],...p(`root`),...f})});rm.classes=em,rm.varsResolver=nm,rm.displayName=`@mantine/core/Container`;var[im,am]=E(`Grid component was not found in tree`),om=(e,t)=>{if(e===`content`)return`auto`;if(e===`auto`)return`0rem`;if(e)return e===t?`100%`:`calc(${100*e/t}% - ${(t-e)/t} * var(--grid-column-gap))`},sm=(e,t,n)=>n||e===`auto`?`100%`:e===`content`?`unset`:om(e,t),cm=(e,t)=>{if(e)return e===`auto`||t?`1`:`auto`},lm=(e,t)=>{if(e===0)return`0`;if(e)return`calc(${100*e/t}% + ${e/t} * var(--grid-column-gap))`};function um({span:e,order:t,offset:n,align:r,selector:i}){let a=xn(),o=am(),s=o.breakpoints||a.breakpoints,c=H(e),l=c===void 0?12:c,d=b({"--col-order":H(t)?.toString(),"--col-flex-grow":cm(l,o.grow),"--col-flex-basis":om(l,o.columns),"--col-width":l===`content`?`auto`:void 0,"--col-max-width":sm(l,o.columns,o.grow),"--col-offset":lm(H(n),o.columns),"--col-align-self":H(r)}),f=u(s).reduce((i,a)=>(i[a]||(i[a]={}),typeof t==`object`&&t[a]!==void 0&&(i[a][`--col-order`]=t[a]?.toString()),typeof e==`object`&&e[a]!==void 0&&(i[a][`--col-flex-grow`]=cm(e[a],o.grow),i[a][`--col-flex-basis`]=om(e[a],o.columns),i[a][`--col-width`]=e[a]===`content`?`auto`:void 0,i[a][`--col-max-width`]=sm(e[a],o.columns,o.grow)),typeof n==`object`&&n[a]!==void 0&&(i[a][`--col-offset`]=lm(n[a],o.columns)),typeof r==`object`&&r[a]!==void 0&&(i[a][`--col-align-self`]=r[a]),i),{}),p=ne(u(f),s).filter(e=>u(f[e.value]).length>0).map(e=>({query:o.type===`container`?`mantine-grid (min-width: ${s[e.value]})`:`(min-width: ${s[e.value]})`,styles:f[e.value]}));return(0,G.jsx)(rr,{styles:d,media:o.type===`container`?void 0:p,container:o.type===`container`?p:void 0,selector:i})}var dm={container:`m_8478a6da`,root:`m_410352e9`,inner:`m_dee7bd2f`,col:`m_96bdd299`},fm={span:12},pm=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,span:o,order:s,offset:c,align:l,...u}=K(`GridCol`,fm,e),d=am(),f=kr();return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(um,{selector:`.${f}`,span:o,order:s,offset:c,align:l}),(0,G.jsx)(J,{...d.getStyles(`col`,{className:vt(n,f),style:r,classNames:t,styles:i}),...u})]})});pm.classes=dm,pm.displayName=`@mantine/core/GridCol`;function mm({gap:e,rowGap:t,columnGap:n,selector:r,breakpoints:i,type:a}){let o=xn(),s=i||o.breakpoints,c=b({"--grid-gap":L(H(e)),"--grid-row-gap":L(H(t)),"--grid-column-gap":L(H(n))}),l=u(s).reduce((r,i)=>(r[i]||(r[i]={}),typeof e==`object`&&e[i]!==void 0&&(r[i][`--grid-gap`]=L(e[i])),typeof t==`object`&&t[i]!==void 0&&(r[i][`--grid-row-gap`]=L(t[i])),typeof n==`object`&&n[i]!==void 0&&(r[i][`--grid-column-gap`]=L(n[i])),r),{}),d=ne(u(l),s).filter(e=>u(l[e.value]).length>0).map(e=>({query:a===`container`?`mantine-grid (min-width: ${s[e.value]})`:`(min-width: ${s[e.value]})`,styles:l[e.value]}));return(0,G.jsx)(rr,{styles:c,media:a===`container`?void 0:d,container:a===`container`?d:void 0,selector:r})}var hm={gap:`md`,columns:12},gm=gt((e,{justify:t,align:n,overflow:r})=>({root:{"--grid-justify":t,"--grid-align":n,"--grid-overflow":r}})),_m=q(e=>{let t=K(`Grid`,hm,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,grow:c,gap:l,rowGap:u,columnGap:d,columns:f,align:p,justify:m,children:h,breakpoints:g,type:_,attributes:v,...y}=t,b=Qn({name:`Grid`,classes:dm,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:gm}),x=kr();return _===`container`&&g?(0,G.jsxs)(im,{value:{getStyles:b,grow:c,columns:f,breakpoints:g,type:_},children:[(0,G.jsx)(mm,{selector:`.${x}`,...t}),(0,G.jsx)(`div`,{...b(`container`),children:(0,G.jsx)(J,{...b(`root`,{className:x}),...y,children:(0,G.jsx)(`div`,{...b(`inner`),children:h})})})]}):(0,G.jsxs)(im,{value:{getStyles:b,grow:c,columns:f,breakpoints:g,type:_},children:[(0,G.jsx)(mm,{selector:`.${x}`,...t}),(0,G.jsx)(J,{...b(`root`,{className:x}),...y,children:(0,G.jsx)(`div`,{...b(`inner`),children:h})})]})});_m.classes=dm,_m.varsResolver=gm,_m.displayName=`@mantine/core/Grid`,_m.Col=pm;var vm=[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`,`boxSizing`,`fontFamily`,`fontSize`,`fontStyle`,`fontWeight`,`letterSpacing`,`lineHeight`,`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`,`tabSize`,`textIndent`,`textRendering`,`textTransform`,`width`,`wordBreak`,`wordSpacing`,`scrollbarGutter`],ym={"min-height":`0`,"max-height":`none`,height:`0`,visibility:`hidden`,overflow:`hidden`,position:`absolute`,"z-index":`-1000`,top:`0`,right:`0`,display:`block`};function bm(e){Object.keys(ym).forEach(t=>{e.style.setProperty(t,ym[t],`important`)})}function xm(e){let t=window.getComputedStyle(e);if(t===null)return null;let n={};for(let e of vm)n[e]=t[e];return n.boxSizing===``?null:{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)}}var Sm=null;function Cm(e,t,n=1,r=1/0){Sm||(Sm=document.createElement(`textarea`),Sm.setAttribute(`tabindex`,`-1`),Sm.setAttribute(`aria-hidden`,`true`),Sm.setAttribute(`aria-label`,`autosize measurement`),bm(Sm)),Sm.parentNode===null&&document.body.appendChild(Sm);let{paddingSize:i,borderSize:a,sizingStyle:o}=e,{boxSizing:s}=o;Object.keys(o).forEach(e=>{Sm.style[e]=o[e]}),bm(Sm),Sm.value=t;let c=s===`border-box`?Sm.scrollHeight+a:Sm.scrollHeight-i;Sm.value=t,c=s===`border-box`?Sm.scrollHeight+a:Sm.scrollHeight-i,Sm.value=`x`;let l=Sm.scrollHeight-i,u=l*n;s===`border-box`&&(u=u+i+a),c=Math.max(u,c);let d=l*r;return s===`border-box`&&(d=d+i+a),c=Math.min(d,c),[c,l]}function wm({maxRows:e,minRows:t,onChange:n,ref:r,...i}){let a=i.value!==void 0,o=(0,w.useRef)(null),s=Me(o,r),c=(0,w.useRef)(0),l=(0,w.useRef)(0),u=()=>{let n=o.current;if(!n)return;let r=xm(n);if(!r)return;let[i]=Cm(r,n.value||n.placeholder||`x`,t,e);c.current!==i&&(c.current=i,n.style.setProperty(`height`,`${i}px`,`important`))},d=(0,w.useEffectEvent)(u),f=e=>{a||u(),n?.(e)};return(0,w.useLayoutEffect)(u),(0,w.useEffect)(()=>{let e=()=>u();return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),(0,w.useEffect)(()=>{let e=o.current;if(!e||typeof ResizeObserver>`u`)return;l.current=e.offsetWidth;let t=0,n=new ResizeObserver(()=>{o.current&&o.current.offsetWidth!==l.current&&(l.current=o.current.offsetWidth,cancelAnimationFrame(t),t=requestAnimationFrame(d))});return n.observe(e),()=>{cancelAnimationFrame(t),n.disconnect()}},[]),(0,w.useEffect)(()=>{let e=()=>u();return document.fonts.addEventListener(`loadingdone`,e),()=>document.fonts.removeEventListener(`loadingdone`,e)},[]),(0,w.useEffect)(()=>{let e=e=>{if(o.current?.form===e.target&&!a){let e=o.current.value;requestAnimationFrame(()=>{o.current&&e!==o.current.value&&u()})}};return document.body.addEventListener(`reset`,e),()=>document.body.removeEventListener(`reset`,e)},[a]),(0,G.jsx)(`textarea`,{rows:t,...i,onChange:f,ref:s})}var Tm=q(e=>{let{autosize:t,maxRows:n,minRows:r,__staticSelector:i,resize:a,bottomSection:o,bottomSectionProps:s,...c}=K([`Input`,`InputWrapper`,`Textarea`],null,e),l=t&&lt()!==`test`,u=l?{maxRows:n,minRows:r}:{};return(0,G.jsx)(kd,{component:l?wm:`textarea`,...c,__staticSelector:i||`Textarea`,__bottomSection:o,__bottomSectionProps:s,multiline:!0,"data-no-overflow":t&&n===void 0||void 0,__vars:{"--input-resize":a},...u})});Tm.classes=kd.classes,Tm.displayName=`@mantine/core/Textarea`;var[Em,Dm]=E(`List component was not found in tree`),Om={root:`m_abbac491`,item:`m_abb6bec2`,itemWrapper:`m_75cd9f71`,itemIcon:`m_60f83e5b`},km=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,icon:o,children:s,mod:c,...l}=K(`ListItem`,null,e),u=Dm(),d=o||u.icon,f={classNames:t,styles:i};return(0,G.jsx)(J,{...u.getStyles(`item`,{...f,className:n,style:r}),component:`li`,mod:[{"with-icon":!!d,centered:u.center},c],...l,children:(0,G.jsxs)(`div`,{...u.getStyles(`itemWrapper`,f),children:[d&&(0,G.jsx)(`span`,{...u.getStyles(`itemIcon`,f),children:d}),(0,G.jsx)(`span`,{...u.getStyles(`itemLabel`,f),children:s})]})})});km.classes=Om,km.displayName=`@mantine/core/ListItem`;var Am={type:`unordered`},jm=gt((e,{size:t,spacing:n})=>({root:{"--list-fz":z(t),"--list-lh":ee(t),"--list-spacing":L(n)}})),Mm=q(e=>{let t=K(`List`,Am,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,type:l,withPadding:u,icon:d,spacing:f,center:p,listStyleType:m,mod:h,attributes:g,..._}=t,v=Qn({name:`List`,classes:Om,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:g,vars:s,varsResolver:jm});return(0,G.jsx)(Em,{value:{center:p,icon:d,getStyles:v},children:(0,G.jsx)(J,{...v(`root`,{style:{listStyleType:m}}),component:l===`unordered`?`ul`:`ol`,mod:[{"with-padding":u,type:d?`none`:m},h],..._,children:c})})});Mm.classes=Om,Mm.varsResolver=jm,Mm.displayName=`@mantine/core/List`,Mm.Item=km;var[Nm,Pm]=E(`Menu component was not found in the tree`),Fm=(0,w.createContext)(null);function Im(e){let{value:t,defaultValue:n,onChange:r,children:i}=K(`MenuCheckboxGroup`,null,e),[a,o]=Ne({value:t,defaultValue:n,finalValue:[],onChange:r}),s=(0,w.useCallback)(e=>{o(a.includes(e)?a.filter(t=>t!==e):[...a,e])},[a,o]);return(0,G.jsx)(Fm,{value:{values:a,onChange:s},children:i})}Im.displayName=`@mantine/core/MenuCheckboxGroup`;var Lm=(0,w.createContext)(null);function Rm({role:e,checked:t,indicator:n,onSelect:r,color:i,closeMenuOnClick:a,rightSection:o,children:s,disabled:c,dataDisabled:l,className:u,style:d,styles:f,classNames:p,buttonRef:m,others:h}){let g=Pm(),_=(0,w.use)(Lm),v=xn(),{dir:y}=Ur(),b=(0,w.useRef)(null),x=V(h.onClick,()=>{l||(r(),a&&g.closeDropdownImmediately())}),S=V(h.onMouseMove,()=>{if(!g.hasSearch)return;let e=b.current?.closest(`[data-menu-dropdown]`);e&&e.querySelectorAll(`[data-menu-active]`).forEach(t=>{t!==b.current&&t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}),C=V(h.onKeyDown,e=>{e.key===`ArrowLeft`&&_&&(_.close(),_.focusParentItem())}),T=i?v.variantColorResolver({color:i,theme:v,variant:`light`}):void 0,E=i?Ft({color:i,theme:v}):null,D=g.alignItemsLabels!==`none`||t;return(0,G.jsxs)(fc,{onMouseDown:e=>e.preventDefault(),...h,unstyled:g.unstyled,tabIndex:g.menuItemTabIndex,...g.getStyles(`item`,{className:u,style:d,styles:f,classNames:p}),ref:Me(b,m),role:e,"aria-checked":t,disabled:c,"data-menu-item":!0,"data-checked":t||void 0,"data-disabled":c||l||void 0,"data-mantine-stop-propagation":!0,onClick:x,onMouseMove:S,onKeyDown:j({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:g.loop,dir:y,orientation:`vertical`,onKeyDown:C}),__vars:{"--menu-item-color":E?.isThemeColor&&E?.shade===void 0?`var(--mantine-color-${E.color}-6)`:T?.color,"--menu-item-hover":T?.hover},children:[D&&(0,G.jsx)(`div`,{...g.getStyles(`itemIndicator`,{styles:f,classNames:p}),"data-checked":t||void 0,children:t?n:null}),s&&(0,G.jsx)(`div`,{...g.getStyles(`itemLabel`,{styles:f,classNames:p}),"data-menu-item-label":!0,children:s}),o&&(0,G.jsx)(`div`,{...g.getStyles(`itemSection`,{styles:f,classNames:p}),"data-position":`right`,children:o})]})}var zm={dropdown:`m_dc9b7c9f`,label:`m_9bfac126`,divider:`m_efdf90cb`,item:`m_99ac2aa1`,search:`m_ef8769b6`,itemLabel:`m_5476e0d3`,itemIndicator:`m_8395186e`,itemSection:`m_8b75e504`,chevron:`m_b85b0bed`},Bm=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,closeMenuOnClick:s,rightSection:c,children:l,disabled:u,"data-disabled":d,value:f,checked:p,defaultChecked:m,onChange:h,checkIcon:g,ref:_,...v}=K(`MenuCheckboxItem`,null,e),y=Pm(),b=(0,w.use)(Fm),x=b&&f!==void 0?b.values.includes(f):void 0,[S,C]=Ne({value:p??x,defaultValue:m,finalValue:!1,onChange:h}),T=g??y.checkIcon??(0,G.jsx)(mp,{size:10});return(0,G.jsx)(Rm,{role:`menuitemcheckbox`,checked:S,indicator:T,onSelect:()=>{h?C(!S):b&&f!==void 0?b.onChange(f):C(!S)},color:o,closeMenuOnClick:s,rightSection:c,disabled:u,dataDisabled:d,className:n,style:r,styles:i,classNames:t,buttonRef:_,others:v,children:l})});Bm.classes=zm,Bm.displayName=`@mantine/core/MenuCheckboxItem`;function Vm(e){let{children:t,disabled:n,longPressDelay:r}=K(`MenuContextMenu`,null,e),i=ht(t);if(!i)throw Error(`Menu.ContextMenu component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let a=Pm(),o=Kc(),s=qc({childProps:i.props,disabled:n||o.disabled,opened:a.opened,longPressDelay:r,setReference:o.reference,open:()=>a.openDropdown()});return(0,w.cloneElement)(i,s)}Vm.displayName=`@mantine/core/MenuContextMenu`;var Hm=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`MenuDivider`,null,e),s=Pm();return(0,G.jsx)(J,{...s.getStyles(`divider`,{className:n,style:r,styles:i,classNames:t}),...o})});Hm.classes=zm,Hm.displayName=`@mantine/core/MenuDivider`;var Um=500;function Wm(e){return((e.querySelector(`[data-menu-item-label]`)??e).textContent??``).trim().toLowerCase()}function Gm(e){return e.length>1&&e.split(``).every(t=>t===e[0])}function Km({enabled:e,opened:t,getDropdown:n}){let r=(0,w.useRef)({buffer:``,timeoutId:null});return(0,w.useEffect)(()=>{if(t&&e)return;let n=r.current;n.timeoutId!==null&&(window.clearTimeout(n.timeoutId),n.timeoutId=null),n.buffer=``},[t,e]),(0,w.useEffect)(()=>()=>{let{timeoutId:e}=r.current;e!==null&&window.clearTimeout(e)},[]),t=>{if(!e||t.defaultPrevented||t.ctrlKey||t.metaKey||t.altKey||t.key.length!==1||t.key===` `)return;let i=t.target;if(i&&(i.tagName===`INPUT`||i.tagName===`TEXTAREA`||i.tagName===`SELECT`||i.isContentEditable))return;let a=n();if(!a)return;let o=Array.from(a.querySelectorAll(`[data-menu-item]:not([data-disabled])`)).filter(e=>e.closest(`[data-menu-dropdown]`)===a);if(o.length===0)return;let s=r.current;s.buffer=(s.buffer+t.key).toLowerCase(),s.timeoutId!==null&&window.clearTimeout(s.timeoutId),s.timeoutId=window.setTimeout(()=>{s.buffer=``,s.timeoutId=null},Um);let c=document.activeElement,l=c?o.indexOf(c):-1,u=null;if(s.buffer.length===1||Gm(s.buffer)){let e=s.buffer[0],t=l+1;for(let n=0;n<o.length;n+=1){let r=(t+n)%o.length;if(Wm(o[r]).startsWith(e)){u=o[r];break}}}else for(let e=0;e<o.length;e+=1)if(Wm(o[e]).startsWith(s.buffer)){u=o[e];break}u&&(t.preventDefault(),u.focus())}}var qm=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,onMouseEnter:o,onMouseLeave:s,onKeyDown:c,children:l,ref:u,...d}=K(`MenuDropdown`,null,e),f=(0,w.useRef)(null),p=Pm(),m=Km({enabled:!p.hasSearch,opened:p.opened,getDropdown:()=>f.current}),h=V(c,e=>{m(e),!(e.defaultPrevented||p.hasSearch)&&(e.key===`ArrowUp`||e.key===`ArrowDown`)&&(e.preventDefault(),f.current?.querySelectorAll(`[data-menu-item]:not(:disabled)`)[0]?.focus())}),g=V(o,()=>(p.trigger===`hover`||p.trigger===`click-hover`)&&p.openDropdown()),_=V(s,()=>(p.trigger===`hover`||p.trigger===`click-hover`)&&p.closeDropdown());return(0,G.jsxs)(ol.Dropdown,{...d,onMouseEnter:g,onMouseLeave:_,role:`menu`,"aria-orientation":`vertical`,ref:Me(u,f),...p.getStyles(`dropdown`,{className:n,style:r,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:h,children:[p.withInitialFocusPlaceholder&&!p.hasSearch&&(0,G.jsx)(`div`,{role:`presentation`,tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),l]})});qm.classes=zm,qm.displayName=`@mantine/core/MenuDropdown`;var Jm=Fr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,closeMenuOnClick:s,leftSection:c,rightSection:l,children:u,disabled:d,"data-disabled":f,ref:p,...m}=K(`MenuItem`,null,e),h=Pm(),g=(0,w.use)(Lm),_=xn(),{dir:v}=Ur(),y=(0,w.useRef)(null),b=m,x=V(b.onClick,()=>{f||(typeof s==`boolean`?s&&h.closeDropdownImmediately():h.closeOnItemClick&&h.closeDropdownImmediately())}),S=V(b.onMouseMove,()=>{if(!h.hasSearch)return;let e=y.current?.closest(`[data-menu-dropdown]`);e&&e.querySelectorAll(`[data-menu-active]`).forEach(t=>{t!==y.current&&t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}),C=o?_.variantColorResolver({color:o,theme:_,variant:`light`}):void 0,T=o?Ft({color:o,theme:_}):null,E=V(b.onKeyDown,e=>{e.key===`ArrowLeft`&&g&&(g.close(),g.focusParentItem())});return(0,G.jsxs)(fc,{onMouseDown:e=>e.preventDefault(),...m,unstyled:h.unstyled,tabIndex:h.menuItemTabIndex,...h.getStyles(`item`,{className:n,style:r,styles:i,classNames:t}),ref:Me(y,p),role:`menuitem`,disabled:d,"data-menu-item":!0,"data-disabled":d||f||void 0,"data-mantine-stop-propagation":!0,onClick:x,onMouseMove:S,onKeyDown:j({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:h.loop,dir:v,orientation:`vertical`,onKeyDown:E}),__vars:{"--menu-item-color":T?.isThemeColor&&T?.shade===void 0?`var(--mantine-color-${T.color}-6)`:C?.color,"--menu-item-hover":C?.hover},children:[h.alignItemsLabels===`all`&&(0,G.jsx)(`div`,{...h.getStyles(`itemIndicator`,{styles:i,classNames:t}),"data-placeholder":!0}),c&&(0,G.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`left`,children:c}),u&&(0,G.jsx)(`div`,{...h.getStyles(`itemLabel`,{styles:i,classNames:t}),"data-menu-item-label":!0,children:u}),l&&(0,G.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`right`,children:l})]})});Jm.classes=zm,Jm.displayName=`@mantine/core/MenuItem`;var Ym=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`MenuLabel`,null,e),s=Pm();return(0,G.jsx)(J,{...s.getStyles(`label`,{className:n,style:r,styles:i,classNames:t}),...o})});Ym.classes=zm,Ym.displayName=`@mantine/core/MenuLabel`;var Xm=(0,w.createContext)(null);function Zm(e){let{value:t,defaultValue:n,onChange:r,children:i}=K(`MenuRadioGroup`,null,e),[a,o]=Ne({value:t,defaultValue:n,finalValue:null,onChange:r});return(0,G.jsx)(Xm,{value:{value:a,onChange:e=>o(e)},children:i})}Zm.displayName=`@mantine/core/MenuRadioGroup`;function Qm({size:e,style:t,...n}){return(0,G.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 5 5`,style:{width:v(e),height:v(e),...t},"aria-hidden":!0,...n,children:(0,G.jsx)(`circle`,{cx:`2.5`,cy:`2.5`,r:`2.5`,fill:`currentColor`})})}var $m=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,closeMenuOnClick:s,rightSection:c,children:l,disabled:u,"data-disabled":d,value:f,checked:p,onChange:m,checkIcon:h,ref:g,..._}=K(`MenuRadioItem`,null,e),v=Pm(),y=(0,w.use)(Xm),b=p??(y?y.value===f:!1),x=h??v.checkIcon??(0,G.jsx)(Qm,{size:5});return(0,G.jsx)(Rm,{role:`menuitemradio`,checked:b,indicator:x,onSelect:()=>{b||(m?m(f):y&&y.onChange(f))},color:o,closeMenuOnClick:s,rightSection:c,disabled:u,dataDisabled:d,className:n,style:r,styles:i,classNames:t,buttonRef:g,others:_,children:l})});$m.classes=zm,$m.displayName=`@mantine/core/MenuRadioItem`;var eh=`[data-menu-item]:not([data-disabled])`,th=`[data-menu-active]`;function nh(e){return e?.closest(`[data-menu-dropdown]`)}function rh(e){return e?Array.from(e.querySelectorAll(eh)).filter(t=>t.closest(`[data-menu-dropdown]`)===e):[]}function ih(e){e&&e.querySelectorAll(th).forEach(t=>{t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}function ah(e,t){ih(t),e&&(e.setAttribute(`data-menu-active`,`true`),e.scrollIntoView({block:`nearest`}))}function oh(e){return e.findIndex(e=>e.hasAttribute(`data-menu-active`))}var sh={clearSearchOnClose:!0},ch=q(e=>{let{classNames:t,styles:n,onKeyDown:r,onChange:i,size:a,clearSearchOnClose:o,ref:s,...c}=K(`MenuSearch`,sh,e),l=Pm(),u=(0,w.useRef)(null),d=Me(s,u),f=(0,w.useRef)(i);f.current=i,(0,w.useEffect)(()=>l.registerSearch(),[l.registerSearch]),(0,w.useEffect)(()=>{o?l.searchExitClearRef.current=()=>{f.current?.({currentTarget:{value:``}})}:l.searchExitClearRef.current=null},[o,l.searchExitClearRef]),(0,w.useEffect)(()=>{l.opened||ih(nh(u.current))},[l.opened]);let p=V(i,e=>{ih(nh(e.currentTarget))}),m=V(r,e=>{if(e.defaultPrevented)return;let t=nh(e.currentTarget),n=rh(t);if(e.key===`ArrowDown`){if(e.preventDefault(),n.length===0)return;let r=oh(n);ah(n[r>=n.length-1?l.loop?0:r:r+1]??null,t)}else if(e.key===`ArrowUp`){if(e.preventDefault(),n.length===0)return;let r=oh(n);ah(n[r<=0?r===-1||l.loop?n.length-1:0:r-1]??null,t)}else if(e.key===`Home`)e.preventDefault(),n.length>0&&ah(n[0],t);else if(e.key===`End`)e.preventDefault(),n.length>0&&ah(n[n.length-1],t);else if(e.key===`Enter`){if(e.nativeEvent.isComposing||e.nativeEvent.keyCode===229)return;let t=n[oh(n)];t&&(e.preventDefault(),t.hasAttribute(`data-sub-menu-item`)?(t.focus(),t.dispatchEvent(new KeyboardEvent(`keydown`,{key:`ArrowRight`,bubbles:!0}))):t.click())}}),h=l.getStyles(`search`);return(0,G.jsx)(Ed,{"data-autofocus":!0,"data-mantine-stop-propagation":!0,type:`search`,size:a,...c,ref:d,classNames:[{input:h.className},t],styles:[{input:h.style},n],onKeyDown:m,onChange:p,__staticSelector:`Menu`})});ch.classes=zm,ch.displayName=`@mantine/core/MenuSearch`;var lh=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,onMouseEnter:o,onMouseLeave:s,onPointerEnter:c,onPointerLeave:l,onKeyDown:u,children:d,ref:f,...p}=K(`MenuSubDropdown`,null,e),m=(0,w.useRef)(null),h=Pm(),g=(0,w.use)(Lm),_=Km({enabled:!h.hasSearch,opened:g?.opened??!1,getDropdown:()=>m.current}),v=V(u,e=>{_(e),!e.ctrlKey&&!e.metaKey&&!e.altKey&&e.key.length===1&&e.key!==` `&&e.stopPropagation()}),y=g?.getFloatingProps({onMouseEnter:o,onMouseLeave:s,onPointerEnter:c,onPointerLeave:l});return(0,G.jsx)(ol.Dropdown,{...p,...y,role:`menu`,"aria-orientation":`vertical`,ref:Me(f,m,g?.setFloating),...h.getStyles(`dropdown`,{className:n,style:r,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:v,children:d})});lh.classes=zm,lh.displayName=`@mantine/core/MenuSubDropdown`;var uh=Fr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,leftSection:s,rightSection:c,children:l,disabled:u,"data-disabled":d,closeMenuOnClick:f,ref:p,...m}=K(`MenuSubItem`,null,e),h=Pm(),g=(0,w.use)(Lm),_=xn(),{dir:v}=Ur(),y=(0,w.useRef)(null),b=m,x=o?_.variantColorResolver({color:o,theme:_,variant:`light`}):void 0,S=o?Ft({color:o,theme:_}):null,C=V(b.onKeyDown,e=>{e.key===`ArrowRight`&&(g?.open(),g?.focusFirstItem()),e.key===`ArrowLeft`&&g?.parentContext&&(g.parentContext.close(),g.parentContext.focusParentItem())}),T=V(b.onClick,()=>{!d&&f&&h.closeDropdownImmediately()}),E=V(b.onMouseMove,()=>{if(!h.hasSearch)return;let e=y.current?.closest(`[data-menu-dropdown]`);e&&e.querySelectorAll(`[data-menu-active]`).forEach(t=>{t!==y.current&&t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}),D=g?.getReferenceProps({onMouseEnter:b.onMouseEnter,onMouseLeave:b.onMouseLeave,onPointerEnter:b.onPointerEnter,onPointerLeave:b.onPointerLeave});return(0,G.jsxs)(fc,{onMouseDown:e=>e.preventDefault(),...m,...D,unstyled:h.unstyled,tabIndex:h.menuItemTabIndex,...h.getStyles(`item`,{className:n,style:r,styles:i,classNames:t}),ref:Me(y,p,g?.setReference),role:`menuitem`,disabled:u,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":u||d||void 0,"data-mantine-stop-propagation":!0,onClick:T,onMouseMove:E,onKeyDown:j({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:h.loop,dir:v,orientation:`vertical`,onKeyDown:C}),__vars:{"--menu-item-color":S?.isThemeColor&&S?.shade===void 0?`var(--mantine-color-${S.color}-6)`:x?.color,"--menu-item-hover":x?.hover},children:[h.alignItemsLabels===`all`&&(0,G.jsx)(`div`,{...h.getStyles(`itemIndicator`,{styles:i,classNames:t}),"data-placeholder":!0}),s&&(0,G.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`left`,children:s}),l&&(0,G.jsx)(`div`,{...h.getStyles(`itemLabel`,{styles:i,classNames:t}),"data-menu-item-label":!0,children:l}),(0,G.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`right`,children:c||(0,G.jsx)(Fd,{...h.getStyles(`chevron`),size:14})})]})});uh.classes=zm,uh.displayName=`@mantine/core/MenuSubItem`;function dh({children:e,refProp:t}){if(!T(e))throw Error(`Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);return Pm(),(0,G.jsx)(ol.Target,{refProp:t,popupType:`menu`,children:e})}dh.displayName=`@mantine/core/MenuSubTarget`;var fh={offset:0,position:`right-start`,safeAreaPolygon:!0,transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function ph(e){let{children:t,closeDelay:n,openDelay:r,position:i,safeAreaPolygon:a,opened:o,onChange:s,...c}=K(`MenuSub`,fh,e),l=Oe(),[u,d]=Ne({value:o,finalValue:!1,onChange:s}),f=(0,w.use)(Lm),p=Pm(),{dir:m}=Ur(),h=Tc(m,i),g=f?.registerOpenSub??p.registerOpenSub,_=(0,w.useRef)(null),v=(0,w.useCallback)(e=>{let t=_.current;return t&&t!==e&&t(),_.current=e,()=>{_.current===e&&(_.current=null)}},[]),y=(0,w.useRef)(d);y.current=d;let b=(0,w.useCallback)(()=>y.current(!0),[]),x=(0,w.useCallback)(()=>y.current(!1),[]);(0,w.useEffect)(()=>{if(u)return g(x)},[u,g,x]);let{context:S,refs:C}=Ys({placement:h,open:u,onOpenChange:e=>{e?b():x()}}),{getReferenceProps:T,getFloatingProps:E}=$s([Is(S,{handleClose:a?ac(typeof a==`object`?a:void 0):void 0,delay:{open:r,close:n}})]);return(0,G.jsx)(Lm,{value:{opened:u,close:x,open:b,focusFirstItem:()=>window.setTimeout(()=>{document.getElementById(`${l}-dropdown`)?.querySelectorAll(`[data-menu-item]:not([data-disabled])`)[0]?.focus()},16),focusParentItem:()=>window.setTimeout(()=>{document.getElementById(`${l}-target`)?.focus()},16),parentContext:f,setReference:C.setReference,setFloating:C.setFloating,getReferenceProps:T,getFloatingProps:E,registerOpenSub:v},children:(0,G.jsx)(ol,{opened:u,onChange:e=>e?b():x(),withArrow:!1,id:l,position:i,...c,withinPortal:!1,children:t})})}ph.extend=e=>e,ph.displayName=`@mantine/core/MenuSub`,ph.Target=dh,ph.Dropdown=lh,ph.Item=uh;var mh={refProp:`ref`};function hh(e){let{children:t,refProp:n,...r}=K(`MenuTarget`,mh,e),i=ht(t);if(!i)throw Error(`Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let a=Pm(),o=i.props,s=V(o.onClick,()=>{a.trigger===`click`?a.toggleDropdown():a.trigger===`click-hover`&&(a.setOpenedViaClick(!0),a.opened||a.openDropdown())}),c=V(o.onMouseEnter,()=>(a.trigger===`hover`||a.trigger===`click-hover`)&&a.openDropdown()),l=V(o.onMouseLeave,()=>{(a.trigger===`hover`||a.trigger===`click-hover`&&!a.openedViaClick)&&a.closeDropdown()});return(0,G.jsx)(ol.Target,{refProp:n,popupType:`menu`,...r,children:(0,w.cloneElement)(i,{onClick:s,onMouseEnter:c,onMouseLeave:l,"data-expanded":a.opened?!0:void 0})})}hh.displayName=`@mantine/core/MenuTarget`;var gh={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:[`mousedown`,`touchstart`,`keydown`],loop:!0,trigger:`click`,openDelay:0,closeDelay:100,menuItemTabIndex:-1,alignItemsLabels:`with-indicators`},_h=q(e=>{let t=K(`Menu`,gh,e),{children:n,onOpen:r,onClose:i,opened:a,defaultOpened:o,trapFocus:s,onChange:c,closeOnItemClick:l,loop:u,closeOnEscape:d,trigger:f,openDelay:p,closeDelay:m,classNames:h,styles:g,unstyled:_,variant:v,vars:y,menuItemTabIndex:b,keepMounted:x,withInitialFocusPlaceholder:S,attributes:C,onExitTransitionEnd:T,alignItemsLabels:E,checkIcon:D,...O}=t,k=Qn({name:`Menu`,classes:zm,props:t,classNames:h,styles:g,unstyled:_,attributes:C}),[A,j]=Ne({value:a,defaultValue:o,finalValue:!1,onChange:c}),[M,N]=(0,w.useState)(!1),P=()=>{j(!1),N(!1),A&&i?.()},F=()=>{j(!0),!A&&r?.()},I=()=>{A?P():F()},{openDropdown:L,closeDropdown:R}=Ec({open:F,close:P,closeDelay:m,openDelay:p}),z=(0,w.useRef)(null),ee=(0,w.useCallback)(e=>{let t=z.current;return t&&t!==e&&t(),z.current=e,()=>{z.current===e&&(z.current=null)}},[]),B=(0,w.useRef)(0),[V,te]=(0,w.useState)(!1),ne=(0,w.useCallback)(()=>(B.current+=1,B.current===1&&te(!0),()=>{--B.current,B.current===0&&te(!1)}),[]),H=(0,w.useRef)(null),ie=()=>{H.current?.(),T?.()},ae=e=>re(`[data-menu-item]`,`[data-menu-dropdown]`,e),{resolvedClassNames:U,resolvedStyles:W}=Ln({classNames:h,styles:g,props:t});return(0,G.jsx)(Nm,{value:{getStyles:k,opened:A,toggleDropdown:I,getItemIndex:ae,openedViaClick:M,setOpenedViaClick:N,closeOnItemClick:l,closeDropdown:f===`click`?P:R,openDropdown:f===`click`?F:L,closeDropdownImmediately:P,loop:u,trigger:f,unstyled:_,menuItemTabIndex:b,withInitialFocusPlaceholder:S,registerOpenSub:ee,hasSearch:V,registerSearch:ne,searchExitClearRef:H,alignItemsLabels:E,checkIcon:D},children:(0,G.jsx)(ol,{returnFocus:!0,...O,opened:A,onChange:I,defaultOpened:o,trapFocus:!x&&s,closeOnEscape:d,__staticSelector:`Menu`,classNames:U,styles:W,unstyled:_,variant:v,keepMounted:x,onExitTransitionEnd:ie,children:n})})});_h.displayName=`@mantine/core/Menu`,_h.classes=zm,_h.Item=Jm,_h.Label=Ym,_h.Dropdown=qm,_h.Target=hh,_h.Divider=Hm,_h.Search=ch,_h.Sub=ph,_h.CheckboxItem=Bm,_h.CheckboxGroup=Im,_h.RadioItem=$m,_h.RadioGroup=Zm,_h.ContextMenu=Vm;var[vh,yh]=E(`Modal component was not found in tree`),bh={root:`m_9df02822`,content:`m_54c44539`,inner:`m_1f958f16`,header:`m_d0e2b9cd`},xh=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ModalBody`,null,e),s=yh();return(0,G.jsx)(Ju,{...s.getStyles(`body`,{classNames:t,style:r,styles:i,className:n}),...o})});xh.classes=bh,xh.displayName=`@mantine/core/ModalBody`;var Sh=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ModalCloseButton`,null,e),s=yh();return(0,G.jsx)(Yu,{...s.getStyles(`close`,{classNames:t,style:r,styles:i,className:n}),...o})});Sh.classes=bh,Sh.displayName=`@mantine/core/ModalCloseButton`;var Ch=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,__hidden:s,...c}=K(`ModalContent`,null,e),l=yh(),u=l.scrollAreaComponent||rd;return(0,G.jsx)(Xu,{...l.getStyles(`content`,{className:n,style:r,styles:i,classNames:t}),innerProps:l.getStyles(`inner`,{className:n,style:r,styles:i,classNames:t}),"data-full-screen":l.fullScreen||void 0,"data-modal-content":!0,"data-hidden":s||void 0,...c,children:(0,G.jsx)(u,{style:{maxHeight:l.fullScreen?`100dvh`:`calc(100dvh - (${v(l.yOffset)} * 2))`},children:o})})});Ch.classes=bh,Ch.displayName=`@mantine/core/ModalContent`;var wh=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ModalHeader`,null,e),s=yh();return(0,G.jsx)(Zu,{...s.getStyles(`header`,{classNames:t,style:r,styles:i,className:n}),...o})});wh.classes=bh,wh.displayName=`@mantine/core/ModalHeader`;var Th=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ModalOverlay`,null,e),s=yh();return(0,G.jsx)(ed,{...s.getStyles(`overlay`,{classNames:t,style:r,styles:i,className:n}),...o})});Th.classes=bh,Th.displayName=`@mantine/core/ModalOverlay`;var Eh={__staticSelector:`Modal`,closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:N(`modal`),transitionProps:{duration:200,transition:`fade-down`},yOffset:`5dvh`},Dh=gt((e,{radius:t,size:n,yOffset:r,xOffset:i})=>({root:{"--modal-radius":t===void 0?void 0:R(t),"--modal-size":I(n,`modal-size`),"--modal-y-offset":v(r),"--modal-x-offset":v(i)}})),Oh=q(e=>{let t=K(`ModalRoot`,Eh,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,yOffset:c,scrollAreaComponent:l,radius:u,fullScreen:d,centered:f,xOffset:p,__staticSelector:m,attributes:h,...g}=t,_=Qn({name:m,classes:bh,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:Dh});return(0,G.jsx)(vh,{value:{yOffset:c,scrollAreaComponent:l,getStyles:_,fullScreen:d},children:(0,G.jsx)(Gu,{..._(`root`),"data-full-screen":d||void 0,"data-centered":f||void 0,"data-offset-scrollbars":l===cc.Autosize||void 0,unstyled:o,...g})})});Oh.classes=bh,Oh.varsResolver=Dh,Oh.displayName=`@mantine/core/ModalRoot`;var kh=(0,w.createContext)(null);function Ah({children:e}){let[t,n]=(0,w.useState)([]),[r,i]=(0,w.useState)(N(`modal`)),[a]=(0,w.useState)(()=>new WeakSet);return(0,G.jsx)(kh,{value:{stack:t,addModal:(e,t)=>{n(t=>[...new Set([...t,e])]),i(e=>typeof t==`number`&&typeof e==`number`?Math.max(e,t):e)},removeModal:e=>n(t=>t.filter(t=>t!==e)),getZIndex:e=>`calc(${r} + ${t.indexOf(e)} + 1)`,currentId:t[t.length-1],maxZIndex:r,handledEscapeEvents:a},children:e})}Ah.displayName=`@mantine/core/ModalStack`;var jh=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ModalTitle`,null,e),s=yh();return(0,G.jsx)(nd,{...s.getStyles(`title`,{classNames:t,style:r,styles:i,className:n}),...o})});jh.classes=bh,jh.displayName=`@mantine/core/ModalTitle`;var Mh={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:N(`modal`),transitionProps:{duration:200,transition:`fade-down`},withOverlay:!0,withCloseButton:!0},Nh=q(e=>{let{title:t,withOverlay:n,overlayProps:r,withCloseButton:i,closeButtonProps:a,children:o,radius:s,opened:c,stackId:l,zIndex:u,...d}=K(`Modal`,Mh,e),f=(0,w.use)(kh),p=!!t||i,m=f&&l?{closeOnEscape:f.currentId===l,trapFocus:f.currentId===l,zIndex:f.getZIndex(l),__handledEscapeEvents:f.handledEscapeEvents}:{},h=n===!1?!1:l&&f?f.currentId===l:c;return(0,w.useEffect)(()=>{f&&l&&(c?f.addModal(l,u||N(`modal`)):f.removeModal(l))},[c,l,u]),(0,G.jsxs)(Oh,{radius:s,opened:c,zIndex:f&&l?f.getZIndex(l):u,...d,...m,children:[n&&(0,G.jsx)(Th,{visible:h,transitionProps:f&&l?{duration:0}:void 0,...r}),(0,G.jsxs)(Ch,{radius:s,__hidden:f&&l&&c?l!==f.currentId:!1,children:[p&&(0,G.jsxs)(wh,{children:[t&&(0,G.jsx)(jh,{children:t}),i&&(0,G.jsx)(Sh,{...a})]}),(0,G.jsx)(xh,{children:o})]})]})});Nh.classes=bh,Nh.displayName=`@mantine/core/Modal`,Nh.Root=Oh,Nh.Overlay=Th,Nh.Content=Ch,Nh.Body=xh,Nh.Header=wh,Nh.Title=jh,Nh.CloseButton=Sh,Nh.Stack=Ah;var Ph=(0,w.createContext)(null),Fh={root:`m_7cda1cd6`,"root--default":`m_44da308b`,"root--contrast":`m_e3a01f8`,label:`m_1e0e6180`,remove:`m_ae386778`,group:`m_1dcfd90b`},Ih=(0,w.createContext)(null),Lh=gt((e,{gap:t},{size:n})=>({group:{"--pg-gap":t===void 0?I(n,`pg-gap`):I(t)}})),Rh=q(e=>{let t=K(`PillGroup`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,size:c,disabled:l,attributes:u,...d}=t,f=(0,w.use)(Ph)?.size||c||void 0,p=Qn({name:`PillGroup`,classes:Fh,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:Lh,stylesCtx:{size:f},rootSelector:`group`});return(0,G.jsx)(Ih,{value:{size:f,disabled:l},children:(0,G.jsx)(J,{size:f,...p(`group`),...d})})});Rh.classes=Fh,Rh.varsResolver=Lh,Rh.displayName=`@mantine/core/PillGroup`;var zh={variant:`default`},Bh=gt((e,{radius:t},{size:n})=>({root:{"--pill-fz":I(n,`pill-fz`),"--pill-height":I(n,`pill-height`),"--pill-radius":t===void 0?void 0:R(t)}})),Vh=q(e=>{let t=K(`Pill`,zh,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,variant:c,children:l,withRemoveButton:u,onRemove:d,removeButtonProps:f,radius:p,size:m,disabled:h,mod:g,attributes:_,...v}=t,y=(0,w.use)(Ih),b=(0,w.use)(Ph),x=m||y?.size||void 0,S=b?.variant===`filled`?`contrast`:c||`default`,C=Qn({name:`Pill`,classes:Fh,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:_,vars:s,varsResolver:Bh,stylesCtx:{size:x}});return(0,G.jsxs)(J,{component:`span`,variant:S,size:x,...C(`root`,{variant:S}),mod:[{"with-remove":u&&!h,disabled:h||y?.disabled},g],...v,children:[(0,G.jsx)(`span`,{...C(`label`),children:l}),u&&(0,G.jsx)(Dl,{variant:`transparent`,radius:p,tabIndex:-1,"aria-hidden":!0,unstyled:o,...f,...C(`remove`,{className:f?.className,style:f?.style}),onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),f?.onMouseDown?.(e)},onClick:e=>{e.stopPropagation(),d?.(),f?.onClick?.(e)}})]})});Vh.classes=Fh,Vh.varsResolver=Bh,Vh.displayName=`@mantine/core/Pill`,Vh.Group=Rh;var Hh={field:`m_45c4369d`},Uh={type:`visible`},Wh=q(e=>{let t=K(`PillsInputField`,Uh,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,type:c,disabled:l,id:u,pointer:d,mod:f,attributes:p,ref:m,...h}=t,g=(0,w.use)(Ph),_=(0,w.use)(cd),v=Qn({name:`PillsInputField`,classes:Hh,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,rootSelector:`field`}),y=l||g?.disabled;return(0,G.jsx)(J,{component:`input`,ref:Me(m,g?.fieldRef),"data-type":c,disabled:y,mod:[{disabled:y,pointer:d},f],...v(`field`),...h,id:_?.inputId||u,"aria-invalid":g?.hasError,"aria-describedby":_?.describedBy,type:`text`,onMouseDown:e=>!d&&e.stopPropagation()})});Wh.classes=Hh,Wh.displayName=`@mantine/core/PillsInputField`;var Gh={size:`sm`},Kh=q(e=>{let{children:t,onMouseDown:n,onClick:r,size:i,disabled:a,__staticSelector:o,error:s,variant:c,...l}=K([`Input`,`InputWrapper`,`PillsInput`],Gh,e),u=(0,w.useRef)(null);return(0,G.jsx)(Ph,{value:{fieldRef:u,size:i,disabled:a,hasError:!!s,variant:c},children:(0,G.jsx)(kd,{size:i,error:s,variant:c,component:`div`,"data-no-overflow":!0,onMouseDown:e=>{e.preventDefault(),n?.(e),u.current?.focus()},onClick:e=>{e.preventDefault(),e.currentTarget.closest(`fieldset`)?.disabled||(u.current?.focus(),r?.(e))},...l,multiline:!0,disabled:a,__staticSelector:o||`PillsInput`,withAria:!1,children:t})})});Kh.displayName=`@mantine/core/PillsInput`,Kh.classes=kd.classes,Kh.Field=Wh;function qh(e,t){let n=t.trim().toLowerCase();if(n===``)return;let r=Object.values(e).filter(e=>!e.disabled&&e.label.trim().toLowerCase()===n);return r.length===1?r[0]:void 0}function Jh(e){return typeof e==`string`?e.trim().toLowerCase():e}function Yh({data:e,value:t}){let n=t.map(Jh);return e.reduce((e,t)=>(vp(t)?e.push({group:t.group,items:t.items.filter(e=>n.indexOf(Jh(e.value))===-1)}):n.indexOf(Jh(t.value))===-1&&e.push(t),e),[])}var Xh={xs:41,sm:50,md:60,lg:72,xl:89},Zh={maxValues:1/0,withCheckIcon:!0,checkIconPosition:`left`,hiddenInputValuesDivider:`,`,clearSearchOnChange:!0,openOnFocus:!0,size:`sm`},Qh=Pr(e=>{let t=K([`Input`,`InputWrapper`,`MultiSelect`],Zh,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,size:c,value:l,defaultValue:u,onChange:d,onKeyDown:f,variant:p,data:m,dropdownOpened:h,defaultDropdownOpened:g,onDropdownOpen:_,onDropdownClose:v,selectFirstOptionOnChange:y,selectFirstOptionOnDropdownOpen:b,onOptionSubmit:x,comboboxProps:S,filter:C,limit:T,withScrollArea:E,maxDropdownHeight:D,floatingHeight:O,searchValue:k,defaultSearchValue:A,onSearchChange:j,readOnly:M,disabled:N,onFocus:P,onBlur:F,radius:I,rightSection:L,rightSectionWidth:R,rightSectionPointerEvents:z,rightSectionProps:ee,leftSection:B,leftSectionWidth:V,leftSectionPointerEvents:te,leftSectionProps:ne,inputContainer:H,inputWrapperOrder:re,withAsterisk:ie,labelProps:ae,descriptionProps:U,errorProps:W,successProps:oe,wrapperProps:se,description:ce,label:le,error:ue,success:de,maxValues:fe,searchable:pe,nothingFoundMessage:me,withCheckIcon:he,withAlignedLabels:ge,checkIconPosition:_e,hidePickedOptions:ve,withErrorStyles:ye,withSuccessStyles:be,name:xe,form:Se,id:Ce,clearable:we,clearSectionMode:Te,clearButtonProps:Ee,hiddenInputProps:De,placeholder:ke,hiddenInputValuesDivider:Ae,required:je,mod:Me,renderOption:Pe,renderPill:Fe,onRemove:Ie,onClear:Le,onMaxValues:Re,scrollAreaProps:ze,chevronColor:Be,attributes:Ve,clearSearchOnChange:He,openOnFocus:Ue,loading:We,loadingPosition:Ge,withPillsReorder:Ke,...qe}=t,Je=Oe(Ce),Ye=kp({id:Je,label:le,labelProps:ae,inputWrapperOrder:re}),Xe=Pf(m),Ze=Ff(Xe),Qe=(0,w.useRef)({}),$e=lp({opened:h,defaultOpened:g,onDropdownOpen:()=>{_?.(),b&&$e.selectFirstOption()},onDropdownClose:()=>{v?.(),$e.resetSelectedOption()}}),{styleProps:et,rest:{type:tt,autoComplete:nt,...rt}}=or(qe),[it,at]=Ne({value:l,defaultValue:u,finalValue:[],onChange:d}),{getPillProps:ot,getListProps:st,handleInputKeyDown:ct}=Op({value:it,onChange:at,enabled:Ke&&!N&&!M}),[lt,ut]=Ne({value:k,defaultValue:A,finalValue:``,onChange:j}),dt=e=>{ut(e),$e.resetSelectedOption()},ft=Qn({name:`MultiSelect`,classes:{},props:t,classNames:n,styles:a,unstyled:o,attributes:Ve}),{resolvedClassNames:pt,resolvedStyles:mt}=Ln({props:t,styles:a,classNames:n}),ht=e=>{f?.(e),!e.defaultPrevented&&(e.key===` `&&!pe&&(e.preventDefault(),$e.toggleDropdown()),e.key===`Backspace`&&lt.length===0&&it.length>0&&(Ie?.(it[it.length-1]),at(it.slice(0,it.length-1))),ct(e))},gt=it.map((e,t)=>{let n=Ze[`${e}`]||Qe.current[`${e}`],r=ot(t);return Fe?(0,G.jsx)(w.Fragment,{children:Fe({option:n,value:e,onRemove:()=>{at(it.filter(t=>e!==t)),Ie?.(e)},disabled:N,reorderProps:r})},`${e}-${t}`):(0,G.jsx)(Vh,{withRemoveButton:!M&&!Ze[`${e}`]?.disabled,onRemove:()=>{at(it.filter(t=>e!==t)),Ie?.(e)},unstyled:o,disabled:N,...ft(`pill`),...r,children:n?.label||e},`${e}-${t}`)});(0,w.useEffect)(()=>{y&&$e.selectFirstOption()},[y,lt]),(0,w.useEffect)(()=>{it.forEach(e=>{`${e}`in Ze&&(Qe.current[`${e}`]=Ze[`${e}`])})},[Ze,it]);let _t=(0,G.jsx)(fp.ClearButton,{...Ee,onClear:()=>{Le?.(),at([]),dt(``)}}),vt=Yh({data:Xe,value:it}),yt=we&&it.length>0&&!N&&!M,bt=yt?{paddingInlineEnd:Xh[c]??Xh.sm}:void 0;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(fp,{store:$e,classNames:pt,styles:mt,unstyled:o,size:c,readOnly:M,__staticSelector:`MultiSelect`,attributes:Ve,floatingHeight:O,onOptionSubmit:e=>{x?.(e),He&&dt(``),$e.updateSelectedOptionIndex(`selected`),it.includes(Ze[`${e}`].value)?(at(it.filter(t=>t!==Ze[`${e}`].value)),Ie?.(Ze[`${e}`].value)):it.length<fe?at([...it,Ze[`${e}`].value]):Re?.()},...S,children:[(0,G.jsx)(fp.DropdownTarget,{children:(0,G.jsx)(Kh,{...et,__staticSelector:`MultiSelect`,classNames:pt,styles:mt,unstyled:o,size:c,className:r,style:i,variant:p,disabled:N,radius:I,__defaultRightSection:(0,G.jsx)(fp.Chevron,{size:c,error:ue,unstyled:o,color:Be}),__clearSection:_t,__clearable:yt,__clearSectionMode:Te,rightSection:L,rightSectionPointerEvents:z||`none`,rightSectionWidth:R,rightSectionProps:ee,leftSection:B,leftSectionWidth:V,leftSectionPointerEvents:te,leftSectionProps:ne,loading:We,loadingPosition:Ge,inputContainer:H,inputWrapperOrder:re,withAsterisk:ie,labelProps:ae,descriptionProps:U,errorProps:W,successProps:oe,wrapperProps:se,description:ce,label:le,error:ue,success:de,withErrorStyles:ye,withSuccessStyles:be,__stylesApiProps:{...t,rightSectionPointerEvents:z||`none`,multiline:!0},pointer:!pe,onClick:()=>pe?$e.openDropdown():$e.toggleDropdown(),"data-expanded":$e.dropdownOpened||void 0,id:Je,required:je,mod:Me,attributes:Ve,children:(0,G.jsxs)(Vh.Group,{attributes:Ve,disabled:N,unstyled:o,...ft(`pillsList`,{style:bt}),...st(),children:[gt,(0,G.jsx)(fp.EventsTarget,{autoComplete:nt,withExpandedAttribute:!0,children:(0,G.jsx)(Kh.Field,{...rt,id:Je,placeholder:ke,type:!pe&&!ke?`hidden`:`visible`,...ft(`inputField`),unstyled:o,onFocus:e=>{P?.(e),Ue&&pe&&$e.openDropdown()},onBlur:e=>{F?.(e),$e.closeDropdown(),dt(``)},onKeyDown:ht,value:lt,onChange:e=>{if(Xp(e)){if(!M){let t=qh(Ze,e.currentTarget.value);t&&!it.includes(t.value)&&it.length<fe&&at([...it,t.value])}}else dt(e.currentTarget.value),pe&&$e.openDropdown(),y&&$e.selectFirstOption()},disabled:N,readOnly:M||!pe,pointer:!pe})})]})})}),(0,G.jsx)(wp,{data:ve?vt:Xe,hidden:M||N,filter:C,search:lt,limit:T,hiddenWhenEmpty:!me,withScrollArea:E,maxDropdownHeight:D,filterOptions:pe,value:it,checkIconPosition:_e,withCheckIcon:he,withAlignedLabels:ge,nothingFoundMessage:me,unstyled:o,labelId:Ye,"aria-label":Ye?void 0:qe[`aria-label`],renderOption:Pe,scrollAreaProps:ze})]}),(0,G.jsx)(fp.HiddenInput,{name:xe,valuesDivider:Ae,value:it,form:Se,disabled:N,...De})]})});Qh.classes={...kd.classes,...fp.classes},Qh.displayName=`@mantine/core/MultiSelect`;var $h={root:`m_f0824112`,description:`m_57492dcc`,section:`m_690090b5`,label:`m_1f6ac4c4`,body:`m_f07af9d2`,children:`m_e17b862f`,chevron:`m_1fd8a00b`},eg=gt((e,{variant:t,color:n,childrenOffset:r,autoContrast:i})=>{let a=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:t||`light`,autoContrast:i});return{root:{"--nl-bg":n||t?a.background:void 0,"--nl-hover":n||t?a.hover:void 0,"--nl-color":n||t?a.color:void 0},children:{"--nl-offset":L(r)}}}),tg=Fr(e=>{let t=K(`NavLink`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,opened:c,defaultOpened:l,onChange:u,children:d,active:f,disabled:p,leftSection:m,rightSection:h,label:g,description:_,disableRightSectionRotation:v,noWrap:y,childrenOffset:b,autoContrast:x,mod:S,attributes:C,onClick:w,onKeyDown:T,keepMounted:E,...D}=t,O=Qn({name:`NavLink`,props:t,classes:$h,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:C,vars:s,varsResolver:eg}),[k,A]=Ne({value:c,defaultValue:l,finalValue:!1,onChange:u}),j=!!d,M=e=>{w?.(e),j&&(e.preventDefault(),A(!k))};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(fc,{...O(`root`),component:`a`,onClick:M,onKeyDown:e=>{T?.(e),e.nativeEvent.code===`Space`&&j&&(e.preventDefault(),A(!k))},unstyled:o,mod:[{disabled:p,active:f,expanded:k},S],...D,children:[m&&(0,G.jsx)(J,{component:`span`,...O(`section`),mod:{position:`left`},children:m}),(0,G.jsxs)(J,{...O(`body`),mod:{"no-wrap":y},children:[(0,G.jsx)(J,{component:`span`,...O(`label`),children:g}),(0,G.jsx)(J,{component:`span`,mod:{active:f},...O(`description`),children:_})]}),(j||h!==void 0)&&(0,G.jsx)(J,{...O(`section`),component:`span`,mod:{rotate:k&&!v,position:`right`},children:j&&h===void 0?(0,G.jsx)(Fd,{...O(`chevron`)}):h})]}),j&&(0,G.jsx)(Gr,{expanded:k,keepMounted:E,...O(`collapse`),children:(0,G.jsx)(`div`,{...O(`children`),children:d})})]})});tg.classes=$h,tg.varsResolver=eg,tg.displayName=`@mantine/core/NavLink`;var ng={root:`m_a513464`,icon:`m_a4ceffb`,loader:`m_b0920b15`,body:`m_a49ed24`,title:`m_3feedf16`,description:`m_3d733a3a`,closeButton:`m_919a4d88`},rg={withCloseButton:!0},ig=gt((e,{radius:t,color:n})=>({root:{"--notification-radius":t===void 0?void 0:R(t),"--notification-color":n?It(n,e):void 0}})),ag=q(e=>{let t=K(`Notification`,rg,e),{className:n,color:r,radius:i,loading:a,withCloseButton:o,withBorder:s,title:c,icon:l,children:u,onClose:d,closeButtonProps:f,classNames:p,style:m,styles:h,unstyled:g,vars:_,mod:v,loaderProps:y,role:b,attributes:x,...S}=t,C=Qn({name:`Notification`,classes:ng,props:t,className:n,style:m,classNames:p,styles:h,unstyled:g,attributes:x,vars:_,varsResolver:ig});return(0,G.jsxs)(J,{...C(`root`),mod:[{withIcon:!!l||a,withBorder:s},v],role:b||`alert`,...S,children:[l&&!a&&(0,G.jsx)(`div`,{...C(`icon`),children:l}),a&&(0,G.jsx)(ml,{size:28,color:r,...C(`loader`),...y}),(0,G.jsxs)(`div`,{...C(`body`),children:[c&&(0,G.jsx)(`div`,{...C(`title`),children:c}),(0,G.jsx)(J,{...C(`description`),mod:{withTitle:!!c},children:u})]}),o&&(0,G.jsx)(Dl,{iconSize:16,color:`gray`,...f,unstyled:g,onClick:e=>{f?.onClick?.(e),d?.()},...C(`closeButton`)})]})});ag.classes=ng,ag.varsResolver=ig,ag.displayName=`@mantine/core/Notification`;function og(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var sg;(function(e){e.event=`event`,e.props=`prop`})(sg||={});function cg(){}function lg(e){var t,n=void 0;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t&&r.length===t.length&&r.every(function(e,n){return e===t[n]})||(t=r,n=e.apply(void 0,r)),n}}function ug(e){return!!(e||``).match(/\d/)}function dg(e){return e==null}function fg(e){return typeof e==`number`&&isNaN(e)}function pg(e){return dg(e)||fg(e)||typeof e==`number`&&!isFinite(e)}function mg(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,`\\$&`)}function hg(e){switch(e){case`lakh`:return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case`wan`:return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}function gg(e,t,n){var r=hg(n),i=e.search(/[1-9]/);return i=i===-1?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(r,`$1`+t)}function _g(e){var t=(0,w.useRef)(e);return t.current=e,(0,w.useRef)(function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}).current}function vg(e,t){t===void 0&&(t=!0);var n=e[0]===`-`,r=n&&t;e=e.replace(`-`,``);var i=e.split(`.`);return{beforeDecimal:i[0],afterDecimal:i[1]||``,hasNegation:n,addNegation:r}}function yg(e){if(!e)return e;var t=e[0]===`-`;t&&(e=e.substring(1,e.length));var n=e.split(`.`),r=n[0].replace(/^0+/,``)||`0`,i=n[1]||``;return(t?`-`:``)+r+(i?`.`+i:``)}function bg(e,t,n){for(var r=``,i=n?`0`:``,a=0;a<=t-1;a++)r+=e[a]||i;return r}function xg(e,t){return Array(t+1).join(e)}function Sg(e){var t=e+``,n=t[0]===`-`?`-`:``;n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],a=r[1];if(a=Number(a),!a)return n+i;i=i.replace(`.`,``);var o=1+a,s=i.length;return o<0?i=`0.`+xg(`0`,Math.abs(o))+i:o>=s?i+=xg(`0`,o-s):i=(i.substring(0,o)||`0`)+`.`+i.substring(o),n+i}function Cg(e,t,n){if([``,`-`].indexOf(e)!==-1)return e;var r=(e.indexOf(`.`)!==-1||n)&&t,i=vg(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,c=parseFloat(`0.`+(o||`0`)),l=(o.length<=t?`0.`+o:c.toFixed(t)).split(`.`),u=a;a&&Number(l[0])&&(u=a.split(``).reverse().reduce(function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},l[0]));var d=bg(l[1]||``,t,n),f=s?`-`:``,p=r?`.`:``;return``+f+u+p+d}function wg(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move(`character`,t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var Tg=lg(function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[a-1-r]&&a-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}}),eee=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function Eg(e,t,n){return Math.min(Math.max(e,t),n)}function Dg(e){return Math.max(e.selectionStart,e.selectionEnd)}function Og(){return typeof navigator<`u`&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function kg(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:``}}function Ag(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function jg(e,t,n,r,i,a,o){o===void 0&&(o=Ag);var s=i.findIndex(function(e){return e}),c=e.slice(0,s);!t&&!n.startsWith(c)&&(t=c,n=c+n,r+=c.length);for(var l=n.length,u=e.length,d={},f=Array(l),p=0;p<l;p++){f[p]=-1;for(var m=0,h=u;m<h;m++)if(o({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:p,formattedValueIndex:m})&&d[m]!==!0){f[p]=m,d[m]=!0;break}}for(var g=r;g<l&&(f[g]===-1||!a(n[g]));)g++;var _=g===l||f[g]===-1?u:f[g];for(g=r-1;g>0&&f[g]===-1;)g--;var v=g===-1||f[g]===-1?0:f[g]+1;return v>_?_:r-v<_-r?v:_}function Mg(e,t,n,r){var i=e.length;if(t=Eg(t,0,i),r===`left`){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=i&&!n[t];)t++;t>i&&(t=n.lastIndexOf(!0))}return t===-1&&(t=i),t}function Ng(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(ug(e[n])||ug(e[n-1]));return t}function Pg(e,t,n,r,i,a){a===void 0&&(a=cg);var o=_g(function(e,t){var n,a;return pg(e)?(a=``,n=``):typeof e==`number`||t?(a=typeof e==`number`?Sg(e):e,n=r(a)):(a=i(e,void 0),n=r(a)),{formattedValue:n,numAsString:a}}),s=(0,w.useState)(function(){return o(dg(e)?t:e,n)}),c=s[0],l=s[1],u=_g(function(e,t){e.formattedValue!==c.formattedValue&&l({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}),d=e,f=n;dg(e)&&(d=c.numAsString,f=!0);var p=o(d,f);return(0,w.useMemo)(function(){l(p)},[p.formattedValue]),(0,w.useEffect)(function(){if(!dg(t)&&dg(e)&&c.formattedValue!==``){var n=parseFloat(c.numAsString);u({formattedValue:c.formattedValue,value:c.numAsString,floatValue:isNaN(n)?void 0:n},{event:void 0,source:sg.props})}},[]),[c,u]}function Fg(e){return e.replace(/[^0-9]/g,``)}function Ig(e){return e}function Lg(e){var t=e.type;t===void 0&&(t=`text`);var n=e.displayType;n===void 0&&(n=`input`);var r=e.customInput,i=e.renderText,a=e.getInputRef,o=e.format;o===void 0&&(o=Ig);var s=e.removeFormatting;s===void 0&&(s=Fg);var c=e.defaultValue,l=e.valueIsNumericString,u=e.onValueChange,d=e.isAllowed,f=e.onChange;f===void 0&&(f=cg);var p=e.onKeyDown;p===void 0&&(p=cg);var m=e.onMouseUp;m===void 0&&(m=cg);var h=e.onFocus;h===void 0&&(h=cg);var g=e.onBlur;g===void 0&&(g=cg);var _=e.value,v=e.getCaretBoundary;v===void 0&&(v=Ng);var y=e.isValidInputCharacter;y===void 0&&(y=ug);var b=e.isCharacterSame,x=og(e,[`type`,`displayType`,`customInput`,`renderText`,`getInputRef`,`format`,`removeFormatting`,`defaultValue`,`valueIsNumericString`,`onValueChange`,`isAllowed`,`onChange`,`onKeyDown`,`onMouseUp`,`onFocus`,`onBlur`,`value`,`getCaretBoundary`,`isValidInputCharacter`,`isCharacterSame`]),S=Pg(_,c,!!l,o,s,u),C=S[0],T=C.formattedValue,E=C.numAsString,D=S[1],O=(0,w.useRef)(),k=(0,w.useRef)({formattedValue:T,numAsString:E}),A=function(e,t){k.current={formattedValue:e.formattedValue,numAsString:e.value},D(e,t)},j=(0,w.useState)(!1),M=j[0],N=j[1],P=(0,w.useRef)(null),F=(0,w.useRef)({setCaretTimeout:null,focusTimeout:null});(0,w.useEffect)(function(){return N(!0),function(){clearTimeout(F.current.setCaretTimeout),clearTimeout(F.current.focusTimeout)}},[]);var I=o,L=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},R=function(e,t,n){(e.selectionStart!==0||e.selectionEnd!==e.value.length)&&(wg(e,t),F.current.setCaretTimeout=setTimeout(function(){e.value===n&&e.selectionStart!==t&&wg(e,t)},0))},z=function(e,t,n){return Mg(e,t,v(e),n)},ee=function(e,t,n){var r=v(t),i=jg(t,T,e,n,r,y,b);return i=Mg(t,i,r),i},B=function(e){var t=e.formattedValue;t===void 0&&(t=``);var n=e.input,r=e.source,i=e.event,a=e.numAsString,o;if(n){var s=e.inputValue||n.value,c=Dg(n);n.value=t,o=ee(s,t,c),o!==void 0&&R(n,o,t)}t!==T&&A(L(t,a),{event:i,source:r})};(0,w.useEffect)(function(){var e=k.current,t=e.formattedValue,n=e.numAsString;(T!==t||E!==n)&&A(L(T,E),{event:void 0,source:sg.props})},[T,E]);var V=P.current?Dg(P.current):void 0;(typeof window<`u`?w.useLayoutEffect:w.useEffect)(function(){var e=P.current;if(T!==k.current.formattedValue&&e){var t=ee(k.current.formattedValue,T,V);e.value=T,R(e,t,T)}},[T]);var te=function(e,t,n){var r=t.target,i=O.current?eee(O.current,r.selectionEnd):Tg(T,e),a=Object.assign(Object.assign({},i),{lastValue:T}),o=s(e,a),c=I(o);if(o=s(c,void 0),d&&!d(L(c,o))){var l=t.target,u=ee(e,T,Dg(l));return l.value=T,R(l,u,T),!1}return B({formattedValue:c,numAsString:o,inputValue:e,event:t,source:n,input:t.target}),!0},ne=function(e,t){t===void 0&&(t=0),O.current={selectionStart:e.selectionStart,selectionEnd:e.selectionEnd+t}},H=function(e){var t=e.target.value;te(t,e,sg.event)&&f(e),O.current=void 0},re=function(e){var t=e.target,n=e.key,r=t.selectionStart,i=t.selectionEnd,a=t.value;a===void 0&&(a=``);var o;n===`ArrowLeft`||n===`Backspace`?o=Math.max(r-1,0):n===`ArrowRight`?o=Math.min(r+1,a.length):n===`Delete`&&(o=r);var s=0;n===`Delete`&&r===i&&(s=1);var c=n===`ArrowLeft`||n===`ArrowRight`;if(o===void 0||r!==i&&!c)p(e),ne(t,s);else{var l=o;c?(l=z(a,o,n===`ArrowLeft`?`left`:`right`),l!==o&&e.preventDefault()):n===`Delete`&&!y(a[o])?l=z(a,o,`right`):n===`Backspace`&&!y(a[o])&&(l=z(a,o,`left`)),l!==o&&R(t,l,a),p(e),ne(t,s)}},ie=function(e){var t=e.target,n=function(){var e=t.selectionStart,n=t.selectionEnd,r=t.value;if(r===void 0&&(r=``),e===n){var i=z(r,e);i!==e&&R(t,i,r)}};n(),requestAnimationFrame(function(){n()}),m(e),ne(t)},ae=function(e){e.persist&&e.persist();var t=e.target,n=e.currentTarget;P.current=t,F.current.focusTimeout=setTimeout(function(){var r=t.selectionStart,i=t.selectionEnd,a=t.value;a===void 0&&(a=``);var o=z(a,r);o!==r&&(r!==0||i!==a.length)&&R(t,o,a),h(Object.assign(Object.assign({},e),{currentTarget:n}))},0)},U=function(e){P.current=null,clearTimeout(F.current.focusTimeout),clearTimeout(F.current.setCaretTimeout),g(e)},W=M&&Og()?`numeric`:void 0,oe=Object.assign({inputMode:W},x,{type:t,value:T,onChange:H,onKeyDown:re,onMouseUp:ie,onFocus:ae,onBlur:U});if(n===`text`)return i?w.createElement(w.Fragment,null,i(T,x)||null):w.createElement(`span`,Object.assign({},x,{ref:a}),T);if(r){var se=r;return w.createElement(se,Object.assign({},oe,{ref:a}))}return w.createElement(`input`,Object.assign({},oe,{ref:a}))}function Rg(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i=``);var a=t.suffix;a===void 0&&(a=``);var o=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s=`thousand`),e===``||e===`-`)return e;var c=zg(t),l=c.thousandSeparator,u=c.decimalSeparator,d=n!==0&&e.indexOf(`.`)!==-1||n&&r,f=vg(e,o),p=f.beforeDecimal,m=f.afterDecimal,h=f.addNegation;return n!==void 0&&(m=bg(m,n,!!r)),l&&(p=gg(p,l,s)),i&&(p=i+p),a&&(m+=a),h&&(p=`-`+p),e=p+(d&&u||``)+m,e}function zg(e){var t=e.decimalSeparator;t===void 0&&(t=`.`);var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=`,`),r||=[t,`.`],{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function Bg(e,t){e===void 0&&(e=``);var n=RegExp(`(-)`),r=RegExp(`(-)(.)*(-)`),i=n.test(e),a=r.test(e);return e=e.replace(/-/g,``),i&&!a&&t&&(e=`-`+e),e}function Vg(e,t){return RegExp(`(^-)|[0-9]|`+mg(e),t?`g`:void 0)}function Hg(e,t,n){return e===``||!t?.match(/\d/)&&!n?.match(/\d/)&&typeof e==`string`&&!isNaN(Number(e))}function Ug(e,t,n){var r;t===void 0&&(t=kg(e));var i=n.allowNegative,a=n.prefix;a===void 0&&(a=``);var o=n.suffix;o===void 0&&(o=``);var s=n.decimalScale,c=t.from,l=t.to,u=l.start,d=l.end,f=zg(n),p=f.allowedDecimalSeparators,m=f.decimalSeparator,h=e[d]===m;if(ug(e)&&(e===a||e===o)&&t.lastValue===``)return e;if(d-u===1&&p.indexOf(e[u])!==-1){var g=s===0?``:m;e=e.substring(0,u)+g+e.substring(u+1,e.length)}var _=function(e,t,n){var r=!1,i=!1;a.startsWith(`-`)?r=!1:e.startsWith(`--`)?(r=!1,i=!0):o.startsWith(`-`)&&e.length===o.length?r=!1:e[0]===`-`&&(r=!0);var s=+!!r;return i&&(s=2),s&&(e=e.substring(s),t-=s,n-=s),{value:e,start:t,end:n,hasNegation:r}},v=_(e,u,d),y=v.hasNegation;r=v,e=r.value,u=r.start,d=r.end;var b=_(t.lastValue,c.start,c.end),x=b.start,S=b.end,C=b.value,w=e.substring(u,d);e.length&&C.length&&(x>C.length-o.length||S<a.length)&&!(w&&o.startsWith(w))&&(e=C);var T=0;e.startsWith(a)?T+=a.length:u<a.length&&(T=u),e=e.substring(T),d-=T;var E=e.length,D=e.length-o.length;e.endsWith(o)?E=D:(d>D||d>e.length-o.length)&&(E=d),e=e.substring(0,E),e=Bg(y?`-`+e:e,i),e=(e.match(Vg(m,!0))||[]).join(``);var O=e.indexOf(m);e=e.replace(new RegExp(mg(m),`g`),function(e,t){return t===O?`.`:``});var k=vg(e,i),A=k.beforeDecimal,j=k.afterDecimal,M=k.addNegation;return l.end-l.start<c.end-c.start&&A===``&&h&&!parseFloat(j)&&(e=M?`-`:``),e}function Wg(e,t){var n=t.prefix;n===void 0&&(n=``);var r=t.suffix;r===void 0&&(r=``);var i=Array.from({length:e.length+1}).map(function(){return!0}),a=e[0]===`-`;i.fill(!1,0,Math.min(n.length+ +!!a,e.length));var o=e.length;return i.fill(!1,o-r.length+1,o+1),i}function Gg(e){var t=zg(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i=``);var a=e.allowNegative;if(a===void 0&&(a=!0),n===r)throw Error(`
41
+ `},zu=0,Bu=[];function Vu(e){var t=w.useRef([]),n=w.useRef([0,0]),r=w.useRef(),i=w.useState(zu++)[0],a=w.useState(lu)[0],o=w.useRef(e);w.useEffect(function(){o.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=zl([e.lockRef.current],(e.shards||[]).map(Iu),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=w.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Pu(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Du(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Du(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Nu(h,t,e,h===`h`?s:c,!0)},[]),c=w.useCallback(function(e){var n=e;if(Bu.length&&Bu[Bu.length-1]===a){var r=`deltaY`in n?Fu(n):Pu(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Lu(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var c=(o.current.shards||[]).map(Iu).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=w.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Hu(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=w.useCallback(function(e){n.current=Pu(e),r.current=void 0},[]),d=w.useCallback(function(t){l(t.type,Fu(t),t.target,s(t,e.lockRef.current))},[]),f=w.useCallback(function(t){l(t.type,Pu(t),t.target,s(t,e.lockRef.current))},[]);w.useEffect(function(){return Bu.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,Su),document.addEventListener(`touchmove`,c,Su),document.addEventListener(`touchstart`,u,Su),function(){Bu=Bu.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Su),document.removeEventListener(`touchmove`,c,Su),document.removeEventListener(`touchstart`,u,Su)}},[]);var p=e.removeScrollBar,m=e.inert;return w.createElement(w.Fragment,null,m?w.createElement(a,{styles:Ru(i)}):null,p?w.createElement(yu,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Hu(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Uu=$l(eu,Vu),Wu=w.forwardRef(function(e,t){return w.createElement(nu,Ll({},e,{ref:t,sideCar:Uu}))});Wu.classNames=nu.classNames;function Gu({keepMounted:e,keepMountedMode:t=`activity`,opened:n,onClose:r,id:i,transitionProps:a,onExitTransitionEnd:o,onEnterTransitionEnd:s,trapFocus:c,closeOnEscape:l,returnFocus:u,closeOnClickOutside:d,withinPortal:f,portalProps:p,lockScroll:m,children:h,zIndex:g,shadow:_,padding:v,__vars:y,unstyled:b,removeScrollProps:x,__handledEscapeEvents:S,...C}){let{_id:w,titleMounted:T,bodyMounted:E,shouldLockScroll:D,setTitleMounted:O,setBodyMounted:k}=Il({id:i,transitionProps:a,opened:n,trapFocus:c,closeOnEscape:l,onClose:r,returnFocus:u,handledEscapeEvents:S}),{key:A,...j}=x||{};return(0,G.jsx)(Ic,{...p,withinPortal:f,children:(0,G.jsx)(Nl,{value:{opened:n,onClose:r,closeOnClickOutside:d,onExitTransitionEnd:o,onEnterTransitionEnd:s,transitionProps:{...a,keepMounted:e,keepMountedMode:t},getTitleId:()=>`${w}-title`,getBodyId:()=>`${w}-body`,titleMounted:T,bodyMounted:E,setTitleMounted:O,setBodyMounted:k,trapFocus:c,closeOnEscape:l,zIndex:g,unstyled:b},children:(0,G.jsx)(Wu,{enabled:D&&m,...j,children:(0,G.jsx)(J,{...C,id:w,__vars:{...y,"--mb-z-index":(g||N(`modal`)).toString(),"--mb-shadow":B(_),"--mb-padding":L(v)},children:h})},A)})})}Gu.displayName=`@mantine/core/ModalBase`;function Ku(){let e=Pl();return(0,w.useEffect)(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var qu={title:`m_615af6c9`,header:`m_b5489c3c`,inner:`m_60c222c7`,content:`m_fd1ab0aa`,close:`m_606cb269`,body:`m_5df29311`};function Ju({className:e,...t}){let n=Ku(),r=Pl();return(0,G.jsx)(J,{id:n,className:vt({[qu.body]:!r.unstyled},e),...t})}Ju.displayName=`@mantine/core/ModalBaseBody`;function Yu({className:e,onClick:t,...n}){let r=Pl();return(0,G.jsx)(Dl,{...n,onClick:e=>{r.onClose(),t?.(e)},className:vt({[qu.close]:!r.unstyled},e),unstyled:r.unstyled})}Yu.displayName=`@mantine/core/ModalBaseCloseButton`;function Xu({transitionProps:e,className:t,innerProps:n,onKeyDown:r,style:i,ref:a,...o}){let s=Pl();return(0,G.jsx)(Hc,{mounted:s.opened,transition:`pop`,...s.transitionProps,onExited:()=>{s.onExitTransitionEnd?.(),s.transitionProps?.onExited?.()},onEntered:()=>{s.onEnterTransitionEnd?.(),s.transitionProps?.onEntered?.()},...e,children:e=>(0,G.jsx)(`div`,{...n,className:vt({[qu.inner]:!s.unstyled},n.className),children:(0,G.jsx)(Yc,{active:s.opened&&s.trapFocus,innerRef:a,children:(0,G.jsx)(_c,{...o,component:`section`,role:`dialog`,tabIndex:-1,"aria-modal":!0,"aria-describedby":s.bodyMounted?s.getBodyId():void 0,"aria-labelledby":s.titleMounted?s.getTitleId():void 0,style:[i,e],className:vt({[qu.content]:!s.unstyled},t),unstyled:s.unstyled,children:o.children})})})})}Xu.displayName=`@mantine/core/ModalBaseContent`;function Zu({className:e,...t}){let n=Pl();return(0,G.jsx)(J,{component:`header`,className:vt({[qu.header]:!n.unstyled},e),...t})}Zu.displayName=`@mantine/core/ModalBaseHeader`;var Qu={duration:200,timingFunction:`ease`,transition:`fade`};function $u(e){let t=Pl();return{...Qu,...t.transitionProps,...e}}function ed({onClick:e,transitionProps:t,style:n,visible:r,...i}){let a=Pl(),o=$u(t);return(0,G.jsx)(Hc,{mounted:r===void 0?a.opened:r,...o,transition:`fade`,children:t=>(0,G.jsx)(Ac,{fixed:!0,style:[n,t],zIndex:a.zIndex,unstyled:a.unstyled,onClick:t=>{e?.(t),a.closeOnClickOutside&&a.onClose()},...i})})}ed.displayName=`@mantine/core/ModalBaseOverlay`;function td(){let e=Pl();return(0,w.useEffect)(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}function nd({className:e,...t}){let n=td(),r=Pl();return(0,G.jsx)(J,{component:`h2`,className:vt({[qu.title]:!r.unstyled},e),id:n,...t})}nd.displayName=`@mantine/core/ModalBaseTitle`;function rd({children:e}){return(0,G.jsx)(G.Fragment,{children:e})}var id=(0,w.createContext)({size:`sm`}),ad=q(e=>{let t=K(`InputClearButton`,null,e),{size:n,variant:r,vars:i,classNames:a,styles:o,...s}=t,c=(0,w.use)(id),{resolvedClassNames:l,resolvedStyles:u}=Ln({classNames:a,styles:o,props:t});return(0,G.jsx)(Dl,{variant:r||`transparent`,size:n||c?.size||`sm`,classNames:l,styles:u,__staticSelector:`InputClearButton`,style:{pointerEvents:`all`,background:`var(--input-bg)`,...s.style},...s})});ad.displayName=`@mantine/core/InputClearButton`;var od={xs:7,sm:8,md:10,lg:12,xl:15};function sd({__clearable:e,__clearSection:t,rightSection:n,__defaultRightSection:r,size:i=`sm`,__clearSectionMode:a=`both`}){let o=e&&t;return a===`rightSection`?n===null?null:n||r:a===`clear`?n===null?null:o||r:o&&(n||r)?(0,G.jsxs)(`div`,{"data-combined-clear-section":!0,style:{display:`flex`,gap:2,alignItems:`center`,paddingInlineEnd:od[i]},children:[o,n||r]}):n===null?null:n||o||r}var cd=(0,w.createContext)({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),ld={wrapper:`m_6c018570`,input:`m_8fb7ebe7`,bottomSection:`m_93f4ed57`,section:`m_82577fc2`,placeholder:`m_88bacfd0`,root:`m_46b77525`,label:`m_8fdc1311`,required:`m_78a94662`,error:`m_8f816625`,success:`m_9d9d40e0`,description:`m_fe47ce59`},ud=gt((e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${z(t)} - ${v(2)})`}})),dd=q(e=>{let t=K(`InputDescription`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,__inheritStyles:l=!0,attributes:u,...d}=K(`InputDescription`,null,t),f=(0,w.use)(cd),p=Qn({name:[`InputWrapper`,c],props:t,classes:ld,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,rootSelector:`description`,vars:s,varsResolver:ud}),m=l&&f?.getStyles||p;return(0,G.jsx)(J,{component:`p`,...m(`description`,f?.getStyles?{className:r,style:i}:void 0),...d})});dd.classes=ld,dd.varsResolver=ud,dd.displayName=`@mantine/core/InputDescription`;var fd=gt((e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${z(t)} - ${v(2)})`}})),pd=q(e=>{let t=K(`InputError`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,__staticSelector:l,__inheritStyles:u=!0,...d}=t,f=Qn({name:[`InputWrapper`,l],props:t,classes:ld,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,rootSelector:`error`,vars:s,varsResolver:fd}),p=(0,w.use)(cd),m=u&&p?.getStyles||f;return(0,G.jsx)(J,{component:`p`,...m(`error`,p?.getStyles?{className:r,style:i}:void 0),...d})});pd.classes=ld,pd.varsResolver=fd,pd.displayName=`@mantine/core/InputError`;var md={labelElement:`label`},hd=gt((e,{size:t})=>({label:{"--input-label-size":z(t),"--input-asterisk-color":void 0}})),gd=q(e=>{let t=K(`InputLabel`,md,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,labelElement:c,required:l,htmlFor:u,onMouseDown:d,children:f,__staticSelector:p,mod:m,attributes:h,...g}=t,_=Qn({name:[`InputWrapper`,p],props:t,classes:ld,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,rootSelector:`label`,vars:s,varsResolver:hd}),v=(0,w.use)(cd),y=v?.getStyles||_,b=g.component||c,x=typeof b!=`string`||b===`label`;return(0,G.jsxs)(J,{...y(`label`,v?.getStyles?{className:r,style:i}:void 0),component:c,htmlFor:x?u:void 0,mod:[{required:l},m],onMouseDown:e=>{d?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},...g,children:[f,l&&(0,G.jsx)(`span`,{...y(`required`),"aria-hidden":!0,children:` *`})]})});gd.classes=ld,gd.varsResolver=hd,gd.displayName=`@mantine/core/InputLabel`;var _d=q(e=>{let t=K(`InputPlaceholder`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,error:l,mod:u,attributes:d,...f}=t,p=Qn({name:[`InputPlaceholder`,c],props:t,classes:ld,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,rootSelector:`placeholder`});return(0,G.jsx)(J,{...p(`placeholder`),mod:[{error:!!l},u],component:`span`,...f})});_d.classes=ld,_d.displayName=`@mantine/core/InputPlaceholder`;var vd=gt((e,{size:t})=>({success:{"--input-success-size":t===void 0?void 0:`calc(${z(t)} - ${v(2)})`}})),yd=q(e=>{let t=K(`InputSuccess`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,__staticSelector:l,__inheritStyles:u=!0,...d}=t,f=Qn({name:[`InputWrapper`,l],props:t,classes:ld,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,rootSelector:`success`,vars:s,varsResolver:vd}),p=(0,w.use)(cd),m=u&&p?.getStyles||f;return(0,G.jsx)(J,{component:`p`,...m(`success`,p?.getStyles?{className:r,style:i}:void 0),...d})});yd.classes=ld,yd.varsResolver=vd,yd.displayName=`@mantine/core/InputSuccess`;function bd(e,{hasDescription:t,hasError:n}){let r=e.findIndex(e=>e===`input`),i=e.slice(0,r),a=e.slice(r+1),o=t&&i.includes(`description`)||n&&i.includes(`error`);return{offsetBottom:t&&a.includes(`description`)||n&&a.includes(`error`),offsetTop:o}}var xd={labelElement:`label`,inputContainer:e=>e,inputWrapperOrder:[`label`,`description`,`input`,`error`]},Sd=gt((e,{size:t})=>({label:{"--input-label-size":z(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${z(t)} - ${v(2)})`},success:{"--input-success-size":t===void 0?void 0:`calc(${z(t)} - ${v(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${z(t)} - ${v(2)})`}})),Cd=q(e=>{let t=K(`InputWrapper`,xd,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,size:c,variant:l,__staticSelector:u,inputContainer:d,inputWrapperOrder:f,label:p,error:m,success:h,description:g,labelProps:_,descriptionProps:v,errorProps:y,successProps:b,labelElement:x,children:S,withAsterisk:C,id:T,required:E,__stylesApiProps:D,mod:O,attributes:k,...A}=t,j=Qn({name:[`InputWrapper`,u],props:D||t,classes:ld,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:k,vars:s,varsResolver:Sd}),M={size:c,variant:l,__staticSelector:u},N=Oe(T),P=typeof C==`boolean`?C:E,F=y?.id||`${N}-error`,I=b?.id||`${N}-success`,L=v?.id||`${N}-description`,R=N,z=!!m&&typeof m!=`boolean`,ee=!!h&&typeof h!=`boolean`&&!m,B=!!g,V=z&&f.includes(`error`),te=ee&&f.includes(`error`),ne=B&&f.includes(`description`),H=`${V?F:``} ${te?I:``} ${ne?L:``}`,re=H.trim().length>0?H.trim():void 0,ie=_?.id||`${N}-label`,ae=p&&(0,G.jsx)(gd,{labelElement:x,id:ie,htmlFor:R,required:P,...M,..._,children:p},`label`),U=B&&(0,G.jsx)(dd,{...v,...M,size:v?.size||M.size,id:v?.id||L,children:g},`description`),W=(0,G.jsx)(w.Fragment,{children:d(S)},`input`),oe=z&&(0,w.createElement)(pd,{...y,...M,size:y?.size||M.size,key:`error`,id:y?.id||F},m),se=ee&&(0,w.createElement)(yd,{...b,...M,size:b?.size||M.size,key:`success`,id:b?.id||I},h),ce=f.map(e=>{switch(e){case`label`:return ae;case`input`:return W;case`description`:return U;case`error`:return oe||se;default:return null}});return(0,G.jsx)(cd,{value:{getStyles:j,describedBy:re,inputId:R,labelId:ae&&f.includes(`label`)?ie:void 0,...bd(f,{hasDescription:B,hasError:z||ee})},children:(0,G.jsx)(J,{variant:l,size:c,mod:[{error:!!m,success:!!h&&!m},O],id:x===`label`?void 0:T,...j(`root`),...A,children:ce})})});Cd.classes=ld,Cd.varsResolver=Sd,Cd.displayName=`@mantine/core/InputWrapper`;var wd={variant:`default`,leftSectionPointerEvents:`none`,rightSectionPointerEvents:`none`,withAria:!0,withErrorStyles:!0,withSuccessStyles:!0,size:`sm`,loading:!1,loadingPosition:`right`},Td=gt((e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-margin-bottom":n.offsetBottom?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-height":I(t.size,`input-height`),"--input-fz":z(t.size),"--input-radius":t.radius===void 0?void 0:R(t.radius),"--input-left-section-width":t.leftSectionWidth===void 0?void 0:v(t.leftSectionWidth),"--input-right-section-width":t.rightSectionWidth===void 0?void 0:v(t.rightSectionWidth),"--input-padding-y":t.multiline?I(t.size,`input-padding-y`):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}})),Ed=Fr(e=>{let t=K(`Input`,wd,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,required:s,__staticSelector:c,__stylesApiProps:l,size:u,wrapperProps:d,error:f,success:p,disabled:m,leftSection:h,leftSectionProps:g,leftSectionWidth:_,rightSection:v,rightSectionProps:y,rightSectionWidth:b,rightSectionPointerEvents:x,leftSectionPointerEvents:S,variant:C,vars:T,pointer:E,multiline:D,radius:O,id:k,withAria:A,withErrorStyles:j,withSuccessStyles:M,mod:N,inputSize:P,attributes:F,__clearSection:I,__clearable:L,__clearSectionMode:R,__defaultRightSection:z,loading:ee,loadingPosition:B,__bottomSection:V,__bottomSectionProps:te,rootRef:ne,dir:H,...re}=t,{styleProps:ie,rest:ae}=or(re),U=(0,w.use)(cd),W={offsetBottom:U?.offsetBottom,offsetTop:U?.offsetTop},oe=Qn({name:[`Input`,c],props:l||t,classes:ld,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:F,stylesCtx:W,rootSelector:`wrapper`,vars:T,varsResolver:Td}),se=A?{required:s,disabled:m,"aria-invalid":f?!0:void 0,"aria-describedby":U?.describedBy,id:U?.inputId||k}:{},ce=ee?(0,G.jsx)(ml,{size:B===`left`?`calc(var(--input-left-section-size) / 2)`:`calc(var(--input-right-section-size) / 2)`}):null,le=ee&&B===`left`?ce:h,ue=sd({__clearable:L,__clearSection:I,rightSection:ee&&B===`right`?ce:v,__defaultRightSection:z,size:u,__clearSectionMode:R});return(0,G.jsx)(id,{value:{size:u||`sm`},children:(0,G.jsxs)(J,{ref:ne,dir:H,...oe(`wrapper`),...ie,...d,mod:[{error:!!f&&j,success:!!p&&!f&&M,pointer:E,disabled:m,multiline:D,withRightSection:!!ue,withLeftSection:!!le,withBottomSection:!!V},N],variant:C,size:u,children:[le&&(0,G.jsx)(`div`,{...g,"data-position":`left`,...oe(`section`,{className:g?.className,style:g?.style}),children:le}),(0,G.jsx)(J,{component:`input`,...ae,...se,required:s,mod:{disabled:m,error:!!f&&j,success:!!p&&!f&&M},variant:C,__size:P,...oe(`input`)}),V&&(0,G.jsx)(`div`,{...te,...oe(`bottomSection`,{className:te?.className,style:te?.style}),children:V}),ue&&(0,G.jsx)(`div`,{...y,"data-position":`right`,...oe(`section`,{className:y?.className,style:y?.style}),children:ue})]})})});Ed.classes=ld,Ed.varsResolver=Td,Ed.Wrapper=Cd,Ed.Label=gd,Ed.Error=pd,Ed.Success=yd,Ed.Description=dd,Ed.Placeholder=_d,Ed.ClearButton=ad,Ed.displayName=`@mantine/core/Input`;function Dd(e,t,n){let r=K([`Input`,`InputWrapper`,e],t,n),{label:i,description:a,error:o,success:s,required:c,classNames:l,styles:u,className:d,unstyled:f,__staticSelector:p,__stylesApiProps:m,errorProps:h,successProps:g,labelProps:_,descriptionProps:v,wrapperProps:y,id:b,size:x,style:S,inputContainer:C,inputWrapperOrder:w,withAsterisk:T,variant:E,vars:D,mod:O,attributes:k,...A}=r,{styleProps:j,rest:M}=or(A),N={label:i,description:a,error:o,success:s,required:c,classNames:l,className:d,__staticSelector:p,__stylesApiProps:m||r,errorProps:h,successProps:g,labelProps:_,descriptionProps:v,unstyled:f,styles:u,size:x,style:S,inputContainer:C,inputWrapperOrder:w,withAsterisk:T,variant:E,id:b,mod:O,attributes:k,...y};return{...M,classNames:l,styles:u,unstyled:f,wrapperProps:{...N,...j},inputProps:{required:c,classNames:l,styles:u,unstyled:f,size:x,__staticSelector:p,__stylesApiProps:m||r,error:o,success:s,variant:E,id:b,attributes:k}}}var Od={__staticSelector:`InputBase`,withAria:!0,size:`sm`},kd=Fr(e=>{let{inputProps:t,wrapperProps:n,...r}=Dd(`InputBase`,Od,e);return(0,G.jsx)(Ed.Wrapper,{...n,children:(0,G.jsx)(Ed,{...t,...r})})});kd.classes={...Ed.classes,...Ed.Wrapper.classes},kd.displayName=`@mantine/core/InputBase`;function Ad(e,t){if(!t||!e)return!1;let n=t.parentNode;for(;n!=null;){if(n===e)return!0;n=n.parentNode}return!1}function jd({target:e,parent:t,ref:n,displayAfterTransitionEnd:r,onTransitionStart:i,onTransitionEnd:a}){let o=(0,w.useRef)(-1),s=(0,w.useRef)(e),[c,l]=(0,w.useState)(!1),[u,d]=(0,w.useState)(typeof r==`boolean`&&r),f=()=>{if(!e||!t||!n.current)return;let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a=t.offsetWidth===0?1:i.width/t.offsetWidth,o=t.offsetHeight===0?1:i.height/t.offsetHeight,s=window.getComputedStyle(e),c=window.getComputedStyle(t),l=oi(s.borderTopWidth)+oi(c.borderTopWidth),u=oi(s.borderLeftWidth)+oi(c.borderLeftWidth),d={top:(r.top-i.top)/o-l,left:(r.left-i.left)/a-u,width:r.width/a,height:r.height/o};n.current.style.transform=`translateY(${d.top}px) translateX(${d.left}px)`,n.current.style.width=`${d.width}px`,n.current.style.height=`${d.height}px`},p=()=>{window.clearTimeout(o.current),n.current&&(n.current.style.transitionDuration=`0ms`),f(),o.current=window.setTimeout(()=>{n.current&&(n.current.style.transitionDuration=``)},30)},m=(0,w.useRef)(null),h=(0,w.useRef)(null);return(0,w.useEffect)(()=>{if(c&&s.current!==e&&i&&i(),s.current=e,f(),e)return m.current=new ResizeObserver(p),m.current.observe(e),t&&(h.current=new ResizeObserver(p),h.current.observe(t)),()=>{m.current?.disconnect(),h.current?.disconnect()}},[t,e]),(0,w.useEffect)(()=>{if(t){let e=e=>{Ad(e.target,t)&&(p(),d(!1))};return t.addEventListener(`transitionend`,e),()=>{t.removeEventListener(`transitionend`,e)}}},[t]),(0,w.useEffect)(()=>{if(n.current&&a){let e=e=>{e.propertyName===`transform`&&a()};return n.current.addEventListener(`transitionend`,e),()=>{n.current?.removeEventListener(`transitionend`,e)}}},[a]),Re(()=>{lt()!==`test`&&l(!0)},20,{autoInvoke:!0}),Be(e=>{e.forEach(e=>{e.type===`attributes`&&e.attributeName===`dir`&&p()})},{attributes:!0,attributeFilter:[`dir`]},()=>document.documentElement),{initialized:c,hidden:u}}var Md={root:`m_96b553a6`},Nd=gt((e,{transitionDuration:t},{shouldReduceMotion:n})=>({root:{"--transition-duration":e.respectReducedMotion&&n?`0ms`:typeof t==`number`?`${t}ms`:t||`150ms`}})),Pd=q(e=>{let t=K(`FloatingIndicator`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,target:c,parent:l,transitionDuration:u,mod:d,displayAfterTransitionEnd:f,onTransitionStart:p,onTransitionEnd:m,attributes:h,ref:g,..._}=t,v=Qn({name:`FloatingIndicator`,classes:Md,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:Nd,stylesCtx:{shouldReduceMotion:Pe()}}),y=(0,w.useRef)(null),{initialized:b,hidden:x}=jd({target:c,parent:l,ref:y,displayAfterTransitionEnd:f,onTransitionStart:p,onTransitionEnd:m}),S=Me(g,y);return!c||!l?null:(0,G.jsx)(J,{ref:S,mod:[{initialized:b,hidden:x},d],...v(`root`),..._})});Pd.displayName=`@mantine/core/FloatingIndicator`,Pd.classes=Md,Pd.varsResolver=Nd;function Fd({style:e,size:t=16,...n}){return(0,G.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...e,width:v(t),height:v(t),display:`block`},...n,children:(0,G.jsx)(`path`,{d:`M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}Fd.displayName=`@mantine/core/AccordionChevron`;var Id={root:`m_66836ed3`,wrapper:`m_a5d60502`,body:`m_667c2793`,title:`m_6a03f287`,label:`m_698f4f23`,icon:`m_667f2a6a`,message:`m_7fa78076`,closeButton:`m_87f54839`},Ld=gt((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:r||`light`,autoContrast:i});return{root:{"--alert-radius":t===void 0?void 0:R(t),"--alert-bg":n||r?a.background:void 0,"--alert-color":a.color,"--alert-bd":n||r?a.border:void 0}}}),Rd=q(e=>{let t=K(`Alert`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:l,title:u,children:d,id:f,icon:p,withCloseButton:m,onClose:h,closeButtonLabel:g,variant:_,autoContrast:v,role:y,attributes:b,...x}=t,S=Qn({name:`Alert`,classes:Id,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:b,vars:s,varsResolver:Ld}),C=Oe(f),w=u&&`${C}-title`||void 0,T=`${C}-body`;return(0,G.jsx)(J,{id:C,...S(`root`,{variant:_}),variant:_,...x,role:y||`alert`,"aria-describedby":d?T:void 0,"aria-labelledby":u?w:void 0,children:(0,G.jsxs)(`div`,{...S(`wrapper`),children:[p&&(0,G.jsx)(`div`,{...S(`icon`),children:p}),(0,G.jsxs)(`div`,{...S(`body`),children:[u&&(0,G.jsx)(`div`,{...S(`title`),"data-with-close-button":m||void 0,children:(0,G.jsx)(`span`,{id:w,...S(`label`),children:u})}),d&&(0,G.jsx)(`div`,{id:T,...S(`message`),"data-variant":_,children:d})]}),m&&(0,G.jsx)(Dl,{...S(`closeButton`),onClick:h,variant:`transparent`,size:16,iconSize:16,"aria-label":g,unstyled:o})]})})});Rd.classes=Id,Rd.varsResolver=Ld,Rd.displayName=`@mantine/core/Alert`;var zd={root:`m_b6d8b162`};function Bd(e){if(e===`start`)return`start`;if(e===`end`||e)return`end`}var Vd={inherit:!1},Hd=gt((e,{variant:t,lineClamp:n,gradient:r,size:i,textWrap:a})=>({root:{"--text-fz":z(i),"--text-lh":ee(i),"--text-gradient":t===`gradient`?zt(r,e):void 0,"--text-line-clamp":typeof n==`number`?n.toString():void 0,"--text-text-wrap":a}})),Y=Fr(e=>{let t=K(`Text`,Vd,e),{lineClamp:n,truncate:r,inline:i,inherit:a,gradient:o,span:s,textWrap:c,__staticSelector:l,vars:u,className:d,style:f,classNames:p,styles:m,unstyled:h,variant:g,mod:_,size:v,attributes:y,...b}=t,x=Qn({name:[`Text`,l],props:t,classes:zd,className:d,style:f,classNames:p,styles:m,unstyled:h,attributes:y,vars:u,varsResolver:Hd});return(0,G.jsx)(J,{...x(`root`,{focusable:!0}),component:s?`span`:`p`,variant:g,mod:[{truncate:Bd(r),lineClamp:typeof n==`number`,inline:i,inherit:a},_],size:v,...b})});Y.classes=zd,Y.varsResolver=Hd,Y.displayName=`@mantine/core/Text`;var Ud={root:`m_849cf0da`},Wd={underline:`hover`},Gd=Fr(e=>{let{underline:t,className:n,unstyled:r,mod:i,...a}=K(`Anchor`,Wd,e);return(0,G.jsx)(Y,{component:`a`,className:vt({[Ud.root]:!r},n),...a,mod:[{underline:t},i],__staticSelector:`Anchor`,unstyled:r})});Gd.classes=Ud,Gd.displayName=`@mantine/core/Anchor`;var[Kd,qd]=E(`AppShell was not found in tree`);function Jd({size:e,min:t,max:n,viewportMax:r}){let i=Math.min(n??1/0,r);return Math.max(Math.min(t??0,i),Math.min(e,i))}function Yd(e,t){return t!==void 0&&e<t}var Xd={navbar:{axis:`horizontal`,orientation:`vertical`,sizeVariable:`--app-shell-navbar-width`,offsetVariable:`--app-shell-navbar-offset`,gridWidthVariable:`--app-shell-navbar-grid-width`,handleDisplayVariable:`--app-shell-navbar-resize-handle-display`,sign:1},aside:{axis:`horizontal`,orientation:`vertical`,sizeVariable:`--app-shell-aside-width`,offsetVariable:`--app-shell-aside-offset`,gridWidthVariable:`--app-shell-aside-grid-width`,handleDisplayVariable:`--app-shell-aside-resize-handle-display`,sign:-1},header:{axis:`vertical`,orientation:`horizontal`,sizeVariable:`--app-shell-header-height`,offsetVariable:`--app-shell-header-offset`,handleDisplayVariable:`--app-shell-header-resize-handle-display`,sign:1},footer:{axis:`vertical`,orientation:`horizontal`,sizeVariable:`--app-shell-footer-height`,offsetVariable:`--app-shell-footer-offset`,handleDisplayVariable:`--app-shell-footer-resize-handle-display`,safeAreaVariable:`--app-shell-footer-safe-area`,sign:-1}},Zd=Object.keys(Xd);function Qd({section:e,deltaX:t,deltaY:n,dir:r}){let i=Xd[e];return i.axis===`vertical`?n*i.sign:t*i.sign*(r===`rtl`?-1:1)}function $d(e,t){if(!t)return 0;let n=window.getComputedStyle(e).getPropertyValue(t),r=Number.parseFloat(n);return Number.isFinite(r)?r:0}var ef={navbar:`Resize navbar`,aside:`Resize aside`,header:`Resize header`,footer:`Resize footer`},tf=10,nf=50,rf={ArrowRight:{deltaX:1,deltaY:0},ArrowLeft:{deltaX:-1,deltaY:0},ArrowDown:{deltaX:0,deltaY:1},ArrowUp:{deltaX:0,deltaY:-1}};function af(e,t){t?document.body.style.setProperty(e,t):document.body.style.removeProperty(e)}function of({section:e,sectionId:t}){let n=qd(),r=n.resize,i=(0,w.useRef)(null),a=(0,w.useRef)({startSize:0,startX:0,startY:0,size:0,moved:!1}),o=(0,w.useRef)(null),s=(0,w.useRef)(null),c=(0,w.useRef)(null),{dir:l}=Ur(),u=xn(),d=Xd[e],f=r?.options[e]??{},p=()=>d.axis===`horizontal`?window.innerWidth:window.innerHeight,[m,h]=(0,w.useState)(0),[g,_]=(0,w.useState)(void 0),y=()=>p()/u.scale,b=e=>{let t=e.getBoundingClientRect();return((d.axis===`horizontal`?t.width:t.height)-$d(e,d.safeAreaVariable))/u.scale},x=t=>{let r=n.rootRef.current;if(!r)return;let i=v(t);r.style.setProperty(d.sizeVariable,i),n.resizeOffsets[e]&&r.style.setProperty(d.offsetVariable,i),n.mode===`static`&&d.gridWidthVariable&&r.style.setProperty(d.gridWidthVariable,i)},S=()=>{let e=n.rootRef.current;e&&(e.style.removeProperty(d.sizeVariable),e.style.removeProperty(d.offsetVariable),d.gridWidthVariable&&e.style.removeProperty(d.gridWidthVariable))},C=()=>{s.current?.abort(),s.current=null,o.current=null;let e=c.current;c.current=null,e&&(af(`user-select`,e.userSelect),af(`-webkit-user-select`,e.webkitUserSelect),af(`cursor`,e.cursor))},T=()=>{r?.reportCollapse(e,Yd(a.current.startSize,f.collapseThreshold)),r?.endResize(e,null)},E=t=>{if(t.pointerId!==o.current)return;a.current.moved=!0;let n=Qd({section:e,deltaX:t.clientX-a.current.startX,deltaY:t.clientY-a.current.startY,dir:l})/u.scale,s=a.current.startSize+n,c=Jd({size:s,min:f.min,max:f.max,viewportMax:y()});a.current.size=c,x(c),i.current?.setAttribute(`aria-valuenow`,String(Math.round(c))),r?.previewResize(e,c),r?.reportCollapse(e,Yd(s,f.collapseThreshold))},D=t=>{t.pointerId===o.current&&(C(),a.current.moved?r?.endResize(e,a.current.size):r?.endResize(e,null))},O=e=>{e.pointerId===o.current&&(C(),S(),T())},k=e=>{e.key===`Escape`&&(e.preventDefault(),C(),S(),i.current?.setAttribute(`aria-valuenow`,String(Math.round(a.current.startSize))),T())},A=()=>{let t=r?.[e].size;if(t!==void 0)return t;let n=i.current?.parentElement;return n?b(n):0},j=t=>{r?.initCollapse(e,Yd(A(),f.collapseThreshold)),r?.reportCollapse(e,Yd(t,f.collapseThreshold)),r?.endResize(e,Jd({size:t,min:f.min,max:f.max,viewportMax:y()}))},M=t=>{let n=t.shiftKey?nf:tf;if(t.key===`Home`){t.preventDefault(),j(f.min??0);return}if(t.key===`End`){t.preventDefault(),j(f.max??y());return}let r=rf[t.key];if(!r)return;let i=Qd({section:e,...r,dir:l});i!==0&&(t.preventDefault(),j(A()+i*n))},N=()=>{S(),r?.[e].reset()},P=t=>{if(t.button!==0||s.current!==null)return;let n=i.current?.parentElement;if(!n)return;let l=b(n);a.current={startSize:l,startX:t.clientX,startY:t.clientY,size:l,moved:!1},o.current=t.pointerId,r?.initCollapse(e,Yd(l,f.collapseThreshold));let u=new AbortController;s.current=u;let{signal:p}=u;c.current={userSelect:document.body.style.getPropertyValue(`user-select`),webkitUserSelect:document.body.style.getPropertyValue(`-webkit-user-select`),cursor:document.body.style.getPropertyValue(`cursor`)},document.body.style.setProperty(`user-select`,`none`),document.body.style.setProperty(`-webkit-user-select`,`none`),document.body.style.setProperty(`cursor`,d.axis===`horizontal`?`col-resize`:`row-resize`),r?.startResize(e),document.addEventListener(`pointermove`,E,{signal:p}),document.addEventListener(`pointerup`,D,{signal:p}),document.addEventListener(`pointercancel`,O,{signal:p}),document.addEventListener(`keydown`,k,{signal:p})};if(fe(()=>{r&&r.activeSection!==e&&S()},[r?.activeSection,r?.[e].size]),fe(()=>{h(p());let e=()=>h(p());return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[d.axis]),fe(()=>{r?.[e].size===void 0&&_(A())},[r?.[e].size,m]),fe(()=>()=>{let e=s.current!==null;C(),S(),e&&T()},[]),!r?.[e].enabled)return null;let F=m/u.scale,I=Math.min(f.max??F,F),L=r[e].size,R=L!==void 0&&m>0?Math.min(L,F):L??g;return(0,G.jsx)(J,{ref:i,role:`separator`,tabIndex:0,"aria-label":f.label??ef[e],"aria-controls":t,"aria-orientation":d.orientation,"aria-valuemin":f.min??0,"aria-valuemax":Math.round(I),"aria-valuenow":R===void 0?void 0:Math.round(R),onPointerDown:P,onKeyDown:M,onDoubleClick:N,mod:{section:e,orientation:d.orientation,active:r[e].active},...n.getStyles(`resizeHandle`)})}of.displayName=`@mantine/core/AppShellResizeHandle`;var sf={root:`m_89ab340`,navbar:`m_45252eee`,aside:`m_9cdde9a`,header:`m_3b16f56b`,main:`m_8983817`,footer:`m_3840c879`,section:`m_6dcfc7c7`,resizeHandle:`m_3b25945a`},cf=q(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=K(`AppShellAside`,null,e),d=qd(),f=Oe(u.id);if(d.disabled)return null;let p=d.resize?.aside.enabled??!1,m=d.getStyles(`aside`,{className:vt({[Wu.classNames.zeroRight]:d.offsetScrollbars},n),classNames:t,styles:i,style:r});if(!p)return(0,G.jsx)(J,{component:`aside`,mod:[{"with-border":s??d.withBorder},l],...m,...u,__vars:{"--app-shell-aside-z-index":`calc(${c??d.zIndex} + 1)`}});let{children:h,dangerouslySetInnerHTML:g,..._}=u;return(0,G.jsxs)(J,{component:`aside`,mod:[{"with-border":s??d.withBorder},l],...m,..._,__vars:{"--app-shell-aside-z-index":`calc(${c??d.zIndex} + 1)`},id:f,children:[g?(0,G.jsx)(`div`,{style:{display:`contents`},dangerouslySetInnerHTML:g}):h,(0,G.jsx)(of,{section:`aside`,sectionId:f})]})});cf.classes=sf,cf.displayName=`@mantine/core/AppShellAside`;var lf=q(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=K(`AppShellFooter`,null,e),d=qd(),f=Oe(u.id);if(d.disabled)return null;let p=d.resize?.footer.enabled??!1,m=d.getStyles(`footer`,{className:vt({[Wu.classNames.zeroRight]:d.offsetScrollbars},n),classNames:t,styles:i,style:r});if(!p)return(0,G.jsx)(J,{component:`footer`,mod:[{"with-border":s??d.withBorder},l],...m,...u,__vars:{"--app-shell-footer-z-index":(c??d.zIndex)?.toString()}});let{children:h,dangerouslySetInnerHTML:g,..._}=u;return(0,G.jsxs)(J,{component:`footer`,mod:[{"with-border":s??d.withBorder},l],...m,..._,__vars:{"--app-shell-footer-z-index":(c??d.zIndex)?.toString()},id:f,children:[g?(0,G.jsx)(`div`,{style:{display:`contents`},dangerouslySetInnerHTML:g}):h,(0,G.jsx)(of,{section:`footer`,sectionId:f})]})});lf.classes=sf,lf.displayName=`@mantine/core/AppShellFooter`;var uf=q(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=K(`AppShellHeader`,null,e),d=qd(),f=Oe(u.id);if(d.disabled)return null;let p=d.resize?.header.enabled??!1,m=d.getStyles(`header`,{className:vt({[Wu.classNames.zeroRight]:d.offsetScrollbars},n),classNames:t,styles:i,style:r});if(!p)return(0,G.jsx)(J,{component:`header`,mod:[{"with-border":s??d.withBorder},l],...m,...u,__vars:{"--app-shell-header-z-index":(c??d.zIndex)?.toString()}});let{children:h,dangerouslySetInnerHTML:g,..._}=u;return(0,G.jsxs)(J,{component:`header`,mod:[{"with-border":s??d.withBorder},l],...m,..._,__vars:{"--app-shell-header-z-index":(c??d.zIndex)?.toString()},id:f,children:[g?(0,G.jsx)(`div`,{style:{display:`contents`},dangerouslySetInnerHTML:g}):h,(0,G.jsx)(of,{section:`header`,sectionId:f})]})});uf.classes=sf,uf.displayName=`@mantine/core/AppShellHeader`;var df=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`AppShellMain`,null,e),s=qd();return(0,G.jsx)(J,{component:`main`,...s.getStyles(`main`,{className:n,style:r,classNames:t,styles:i}),...o})});df.classes=sf,df.displayName=`@mantine/core/AppShellMain`;var ff=q(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=K(`AppShellNavbar`,null,e),d=qd(),f=Oe(u.id);if(d.disabled)return null;let p=d.resize?.navbar.enabled??!1,m=d.getStyles(`navbar`,{className:n,classNames:t,styles:i,style:r});if(!p)return(0,G.jsx)(J,{component:`nav`,mod:[{"with-border":s??d.withBorder},l],...m,...u,__vars:{"--app-shell-navbar-z-index":`calc(${c??d.zIndex} + 1)`}});let{children:h,dangerouslySetInnerHTML:g,..._}=u;return(0,G.jsxs)(J,{component:`nav`,mod:[{"with-border":s??d.withBorder},l],...m,..._,__vars:{"--app-shell-navbar-z-index":`calc(${c??d.zIndex} + 1)`},id:f,children:[g?(0,G.jsx)(`div`,{style:{display:`contents`},dangerouslySetInnerHTML:g}):h,(0,G.jsx)(of,{section:`navbar`,sectionId:f})]})});ff.classes=sf,ff.displayName=`@mantine/core/AppShellNavbar`;var pf=Fr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,grow:o,mod:s,...c}=K(`AppShellSection`,null,e),l=qd();return(0,G.jsx)(J,{mod:[{grow:o},s],...l.getStyles(`section`,{className:n,style:r,classNames:t,styles:i}),...c})});pf.classes=sf,pf.displayName=`@mantine/core/AppShellSection`;function mf(e){return typeof e==`object`?e.base:e}function hf(e,t){return`min(${v(e)}, ${t===`horizontal`?`100vw`:`100dvh`})`}function gf(e){let t=typeof e==`object`&&!!e&&e.base!==void 0&&Object.keys(e).length===1;return typeof e==`number`||typeof e==`string`||t}function _f(e){return!(typeof e!=`object`||!e||Object.keys(e).length===1&&`base`in e)}function vf({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,aside:r,theme:i,mode:a,resizedSize:o,resizable:s}){let c=r?.width,l=`translateX(var(--app-shell-aside-width))`,d=`translateX(calc(var(--app-shell-aside-width) * -1))`;if(r?.breakpoint!==void 0&&!r?.collapsed?.mobile&&(n[r?.breakpoint]=n[r?.breakpoint]||{},a===`fixed`?(n[r?.breakpoint][`--app-shell-aside-width`]=`100%`,n[r?.breakpoint][`--app-shell-aside-offset`]=`0px`):(n[r?.breakpoint][`--app-shell-aside-width`]=`0px`,n[r?.breakpoint][`--app-shell-aside-offset`]=`0px`),s&&(n[r.breakpoint][`--app-shell-aside-resize-handle-display`]=`none`)),o!==void 0){let t=hf(o,`horizontal`);e[`--app-shell-aside-width`]=t,e[`--app-shell-aside-offset`]=t,a===`static`&&(e[`--app-shell-aside-grid-width`]=t)}else{if(gf(c)){let t=v(mf(c));e[`--app-shell-aside-width`]=t,e[`--app-shell-aside-offset`]=t}_f(c)&&(c.base!==void 0&&(e[`--app-shell-aside-width`]=v(c.base),e[`--app-shell-aside-offset`]=v(c.base)),u(c).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-aside-width`]=v(c[e]),t[e][`--app-shell-aside-offset`]=v(c[e]))}))}if(r?.breakpoint!==void 0&&a===`static`&&(t[r.breakpoint]=t[r.breakpoint]||{},t[r.breakpoint][`--app-shell-aside-position`]=`sticky`,t[r.breakpoint][`--app-shell-aside-grid-row`]=`2`,t[r.breakpoint][`--app-shell-aside-grid-column`]=`3`,t[r.breakpoint][`--app-shell-main-column-end`]=`3`),r?.collapsed?.desktop){let e=r.breakpoint;t[e]=t[e]||{},t[e][`--app-shell-aside-transform`]=l,t[e][`--app-shell-aside-transform-rtl`]=d,a===`fixed`?t[e][`--app-shell-aside-offset`]=`0px !important`:(t[e][`--app-shell-aside-width`]=`0px`,t[e][`--app-shell-aside-display`]=`none`,t[e][`--app-shell-main-column-end`]=`-1`),t[e][`--app-shell-aside-scroll-locked-visibility`]=`hidden`,s&&(t[e][`--app-shell-aside-resize-handle-display`]=`none`)}if(r?.collapsed?.mobile){let e=te(r.breakpoint,i.breakpoints)-.1;n[e]=n[e]||{},a===`fixed`?(n[e][`--app-shell-aside-width`]=`100%`,n[e][`--app-shell-aside-offset`]=`0px`):n[e][`--app-shell-aside-width`]=`0px`,n[e][`--app-shell-aside-transform`]=l,n[e][`--app-shell-aside-transform-rtl`]=d,n[e][`--app-shell-aside-scroll-locked-visibility`]=`hidden`,s&&(n[e][`--app-shell-aside-resize-handle-display`]=`none`)}}function yf({baseStyles:e,minMediaStyles:t,footer:n,mode:r,resizedSize:i,resizable:a}){let o=n?.height,s=r===`static`?!0:n?.offset??!0;if(r===`static`&&n&&(e[`--app-shell-footer-position`]=`sticky`,e[`--app-shell-footer-grid-column`]=`1 / -1`,e[`--app-shell-footer-grid-row`]=`3`),i!==void 0){let t=hf(i,`vertical`);e[`--app-shell-footer-height`]=t,s&&(e[`--app-shell-footer-offset`]=t)}else{if(gf(o)){let t=v(mf(o));e[`--app-shell-footer-height`]=t,s&&(e[`--app-shell-footer-offset`]=t)}_f(o)&&(o.base!==void 0&&(e[`--app-shell-footer-height`]=v(o.base),s&&(e[`--app-shell-footer-offset`]=v(o.base))),u(o).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-footer-height`]=v(o[e]),s&&(t[e][`--app-shell-footer-offset`]=v(o[e])))}))}n?.collapsed&&(e[`--app-shell-footer-transform`]=`translateY(var(--app-shell-footer-height))`,r===`fixed`&&(e[`--app-shell-footer-offset`]=`0px !important`),a&&(e[`--app-shell-footer-resize-handle-display`]=`none`))}function bf({baseStyles:e,minMediaStyles:t,header:n,mode:r,resizedSize:i,resizable:a}){let o=n?.height,s=r===`static`?!0:n?.offset??!0;if(r===`static`&&n&&(e[`--app-shell-header-position`]=`sticky`,e[`--app-shell-header-grid-column`]=`1 / -1`,e[`--app-shell-header-grid-row`]=`1`),i!==void 0){let t=hf(i,`vertical`);e[`--app-shell-header-height`]=t,s&&(e[`--app-shell-header-offset`]=t)}else{if(gf(o)){let t=v(mf(o));e[`--app-shell-header-height`]=t,s&&(e[`--app-shell-header-offset`]=t)}_f(o)&&(o.base!==void 0&&(e[`--app-shell-header-height`]=v(o.base),s&&(e[`--app-shell-header-offset`]=v(o.base))),u(o).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-header-height`]=v(o[e]),s&&(t[e][`--app-shell-header-offset`]=v(o[e])))}))}n?.collapsed&&(e[`--app-shell-header-transform`]=`translateY(calc(var(--app-shell-header-height) * -1))`,r===`fixed`&&(e[`--app-shell-header-offset`]=`0px !important`),a&&(e[`--app-shell-header-resize-handle-display`]=`none`))}function xf({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,navbar:r,theme:i,mode:a,resizedSize:o,resizable:s}){let c=r?.width,l=`translateX(calc(var(--app-shell-navbar-width) * -1))`,d=`translateX(var(--app-shell-navbar-width))`;if(r?.breakpoint!==void 0&&!r?.collapsed?.mobile&&(n[r?.breakpoint]=n[r?.breakpoint]||{},n[r?.breakpoint][`--app-shell-navbar-offset`]=`0px`,n[r?.breakpoint][`--app-shell-navbar-width`]=`100%`,a===`static`&&(n[r?.breakpoint][`--app-shell-navbar-grid-width`]=`0px`),s&&(n[r.breakpoint][`--app-shell-navbar-resize-handle-display`]=`none`)),o!==void 0){let t=hf(o,`horizontal`);e[`--app-shell-navbar-width`]=t,e[`--app-shell-navbar-offset`]=t,a===`static`&&(e[`--app-shell-navbar-grid-width`]=t)}else{if(gf(c)){let t=v(mf(c));e[`--app-shell-navbar-width`]=t,e[`--app-shell-navbar-offset`]=t,a===`static`&&(e[`--app-shell-navbar-grid-width`]=t)}_f(c)&&(c.base!==void 0&&(e[`--app-shell-navbar-width`]=v(c.base),e[`--app-shell-navbar-offset`]=v(c.base),a===`static`&&(e[`--app-shell-navbar-grid-width`]=v(c.base))),u(c).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-navbar-width`]=v(c[e]),t[e][`--app-shell-navbar-offset`]=v(c[e]),a===`static`&&(t[e][`--app-shell-navbar-grid-width`]=v(c[e])))}))}if(r?.breakpoint!==void 0&&a===`static`&&(t[r.breakpoint]=t[r.breakpoint]||{},t[r.breakpoint][`--app-shell-navbar-position`]=`sticky`,t[r.breakpoint][`--app-shell-navbar-grid-row`]=`2`,t[r.breakpoint][`--app-shell-navbar-grid-column`]=`1`,t[r.breakpoint][`--app-shell-main-column-start`]=`2`),r?.collapsed?.desktop){let e=r.breakpoint;t[e]=t[e]||{},t[e][`--app-shell-navbar-transform`]=l,t[e][`--app-shell-navbar-transform-rtl`]=d,a===`fixed`?t[e][`--app-shell-navbar-offset`]=`0px !important`:(t[e][`--app-shell-navbar-width`]=`0px`,t[e][`--app-shell-navbar-display`]=`none`,t[e][`--app-shell-main-column-start`]=`1`),s&&(t[e][`--app-shell-navbar-resize-handle-display`]=`none`)}if(r?.collapsed?.mobile){let e=te(r.breakpoint,i.breakpoints)-.1;n[e]=n[e]||{},n[e][`--app-shell-navbar-width`]=`100%`,n[e][`--app-shell-navbar-offset`]=`0px`,a===`static`&&(n[e][`--app-shell-navbar-grid-width`]=`0px`),n[e][`--app-shell-navbar-transform`]=l,n[e][`--app-shell-navbar-transform-rtl`]=d,s&&(n[e][`--app-shell-navbar-resize-handle-display`]=`none`)}}function Sf(e){return Number(e)===0?`0px`:L(e)}function Cf({padding:e,baseStyles:t,minMediaStyles:n}){gf(e)&&(t[`--app-shell-padding`]=Sf(mf(e))),_f(e)&&(e.base&&(t[`--app-shell-padding`]=Sf(e.base)),u(e).forEach(t=>{t!==`base`&&(n[t]=n[t]||{},n[t][`--app-shell-padding`]=Sf(e[t]))}))}function wf({navbar:e,header:t,footer:n,aside:r,padding:i,theme:a,mode:o,resize:s}){let c={},l={},d={};o===`static`&&(d[`--app-shell-main-grid-column`]=`1 / -1`,d[`--app-shell-main-grid-row`]=`2`),xf({baseStyles:d,minMediaStyles:c,maxMediaStyles:l,navbar:e,theme:a,mode:o,resizedSize:s?.sizes.navbar,resizable:s?.enabled.navbar}),vf({baseStyles:d,minMediaStyles:c,maxMediaStyles:l,aside:r,theme:a,mode:o,resizedSize:s?.sizes.aside,resizable:s?.enabled.aside}),bf({baseStyles:d,minMediaStyles:c,header:t,mode:o,resizedSize:s?.sizes.header,resizable:s?.enabled.header}),yf({baseStyles:d,minMediaStyles:c,footer:n,mode:o,resizedSize:s?.sizes.footer,resizable:s?.enabled.footer}),Cf({baseStyles:d,minMediaStyles:c,padding:i});let f=ne(u(c),a.breakpoints).map(e=>({query:`(min-width: ${y(e.px)})`,styles:c[e.value]})),p=ne(u(l),a.breakpoints).map(e=>({query:`(max-width: ${y(e.px)})`,styles:l[e.value]}));return{baseStyles:d,media:[...f,...p]}}function Tf({navbar:e,header:t,aside:n,footer:r,padding:i,mode:a,selector:o,resize:s}){let c=xn(),l=Jt(),{media:u,baseStyles:d}=wf({navbar:e,header:t,footer:r,aside:n,padding:i,theme:c,mode:a,resize:s});return(0,G.jsx)(rr,{media:u,styles:d,selector:o||l.cssVariablesSelector})}function Ef(e){return e>=128||e===45||e===95||e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function Df(e){return e>=48&&e<=57}function Of(e){let t=``;for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n),i=e.charAt(n);r===0?t+=`�`:r>=1&&r<=31||r===127||n===0&&Df(r)||n===1&&Df(r)&&e.charCodeAt(0)===45?t+=`\\${r.toString(16)} `:n===0&&e.length===1&&r===45?t+=`\\${i}`:Ef(r)?t+=i:t+=`\\${i}`}return t}function kf({transitionDuration:e,disabled:t,resizeKey:n}){let[r,i]=(0,w.useState)(!0),[a,o]=(0,w.useState)({key:n,active:!1}),s=(0,w.useRef)(-1),c=(0,w.useRef)(-1);return a.key!==n&&o({key:n,active:!0}),(0,w.useEffect)(()=>{if(!a.active)return;let t=window.setTimeout(()=>(0,w.startTransition)(()=>{o(e=>({...e,active:!1}))}),e||0);return()=>window.clearTimeout(t)},[a,e]),ke(`resize`,()=>{i(!0),clearTimeout(s.current),s.current=window.setTimeout(()=>(0,w.startTransition)(()=>{i(!1)}),200)}),fe(()=>{i(!0),clearTimeout(c.current),c.current=window.setTimeout(()=>(0,w.startTransition)(()=>{i(!1)}),e||0)},[t,e]),r||a.active}var Af={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:`ease`,zIndex:N(`app`),mode:`fixed`},jf=gt((e,{transitionDuration:t,transitionTimingFunction:n})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":n,"--app-shell-resize-handle-size":void 0}})),Mf=q(e=>{let t=K(`AppShell`,Af,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,navbar:c,withBorder:l,padding:u,transitionDuration:d,transitionTimingFunction:f,header:p,zIndex:m,layout:h,disabled:g,aside:_,footer:v,offsetScrollbars:y=!0,mode:b,mod:x,attributes:S,id:C,resize:T,ref:E,...D}=t,O=Qn({name:`AppShell`,classes:sf,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:S,vars:s,varsResolver:jf}),k=kf({disabled:g,transitionDuration:d,resizeKey:T?Zd.map(e=>T.sizes[e]).join(`|`):void 0}),A=Oe(C),j=(0,w.useRef)(null),M=T?{sizes:T.sizes,enabled:{navbar:T.navbar.enabled,aside:T.aside.enabled,header:T.header.enabled,footer:T.footer.enabled}}:void 0,N={navbar:!0,aside:!0,header:b===`static`?!0:p?.offset??!0,footer:b===`static`?!0:v?.offset??!0};return(0,G.jsxs)(Kd,{value:{getStyles:O,withBorder:l,zIndex:m,disabled:g,offsetScrollbars:y,mode:b,resize:T,rootRef:j,resizeOffsets:N},children:[(0,G.jsx)(Tf,{navbar:c,header:p,aside:_,footer:v,padding:u,mode:b,resize:M,selector:T||b===`static`?`#${Of(A)}`:void 0}),(0,G.jsx)(J,{...O(`root`),id:A,ref:Me(E,j),mod:[{resizing:k||T?.activeSection!=null,layout:h,disabled:g,mode:b},x],...D})]})});Mf.classes=sf,Mf.varsResolver=jf,Mf.displayName=`@mantine/core/AppShell`,Mf.Navbar=ff,Mf.Header=uf,Mf.Main=df,Mf.Aside=cf,Mf.Footer=lf,Mf.Section=pf;function Nf(e){return typeof e==`string`?{value:e,label:e}:typeof e==`object`&&`value`in e&&!(`label`in e)?{value:e.value,label:`${e.value}`,disabled:e.disabled}:typeof e==`object`&&`group`in e?{group:e.group,items:e.items.map(e=>Nf(e))}:typeof e==`number`||typeof e==`bigint`||typeof e==`boolean`?{value:e,label:`${e}`}:e}function Pf(e){return e?e.map(e=>Nf(e)):[]}function Ff(e){return e.reduce((e,t)=>`group`in t?{...e,...Ff(t.items)}:(e[`${t.value}`]=t,e),{})}var If={dropdown:`m_88b62a41`,search:`m_985517d8`,options:`m_b2821a6e`,option:`m_92253aa5`,empty:`m_2530cd1d`,header:`m_858f94bd`,footer:`m_82b967cb`,group:`m_254f3e4f`,groupLabel:`m_2bb2e9e5`,chevron:`m_2943220b`,optionsDropdownOption:`m_390b5f4`,optionsDropdownCheckIcon:`m_8ee53fc2`,optionsDropdownCheckPlaceholder:`m_a530ee0a`},Lf={error:null},Rf=gt((e,{size:t,color:n})=>({chevron:{"--combobox-chevron-size":I(t,`combobox-chevron-size`),"--combobox-chevron-color":n?It(n,e):void 0}})),zf=q(e=>{let t=K(`ComboboxChevron`,Lf,e),{size:n,error:r,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:l,attributes:u,mod:d,...f}=t,p=Qn({name:`ComboboxChevron`,classes:If,props:t,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:l,varsResolver:Rf,attributes:u,rootSelector:`chevron`});return(0,G.jsx)(J,{component:`svg`,...f,...p(`chevron`),size:n,viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,mod:[`combobox-chevron`,{error:r},d],children:(0,G.jsx)(`path`,{d:`M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})});zf.classes=If,zf.varsResolver=Rf,zf.displayName=`@mantine/core/ComboboxChevron`;var[Bf,Vf]=E(`Combobox component was not found in tree`);function Hf({onMouseDown:e,onClick:t,onClear:n,...r}){return(0,G.jsx)(Ed.ClearButton,{tabIndex:-1,"aria-hidden":!0,...r,onMouseDown:t=>{t.preventDefault(),e?.(t)},onClick:e=>{n(),t?.(e)}})}Hf.displayName=`@mantine/core/ComboboxClearButton`;var Uf=q(e=>{let{classNames:t,styles:n,className:r,style:i,hidden:a,...o}=K(`ComboboxDropdown`,null,e),s=Vf();return(0,G.jsx)(ol.Dropdown,{...o,role:`presentation`,"data-hidden":a||void 0,"data-floating-height":s.floatingHeight||void 0,...s.getStyles(`dropdown`,{className:r,style:i,classNames:t,styles:n})})});Uf.classes=If,Uf.displayName=`@mantine/core/ComboboxDropdown`;var Wf={refProp:`ref`},Gf=q(e=>{let{children:t,refProp:n,ref:r}=K(`ComboboxDropdownTarget`,Wf,e);if(Vf(),!T(t))throw Error(`Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);return(0,G.jsx)(ol.Target,{ref:r,refProp:n,children:t})});Gf.displayName=`@mantine/core/ComboboxDropdownTarget`;var Kf=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ComboboxEmpty`,null,e),s=Vf();return(0,G.jsx)(J,{...s.getStyles(`empty`,{className:n,classNames:t,styles:i,style:r}),...o})});Kf.classes=If,Kf.displayName=`@mantine/core/ComboboxEmpty`;function qf({onKeyDown:e,onClick:t,withKeyboardNavigation:n,withAriaAttributes:r,withExpandedAttribute:i,targetType:a,autoComplete:o}){let s=Vf(),[c,l]=(0,w.useState)(null),u=t=>{if(e?.(t),!s.readOnly&&n){if(t.nativeEvent.isComposing)return;if(t.nativeEvent.code===`ArrowDown`&&(t.preventDefault(),s.store.dropdownOpened?l(s.store.selectNextOption()):(s.store.openDropdown(`keyboard`),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`ArrowUp`&&(t.preventDefault(),s.store.dropdownOpened?l(s.store.selectPreviousOption()):(s.store.openDropdown(`keyboard`),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`Enter`||t.nativeEvent.code===`NumpadEnter`){if(t.nativeEvent.keyCode===229)return;let e=s.store.getSelectedOptionIndex();s.store.dropdownOpened&&e!==-1?(t.preventDefault(),s.store.clickSelectedOption()):a===`button`&&(t.preventDefault(),s.store.openDropdown(`keyboard`))}t.key===`Escape`&&s.store.closeDropdown(`keyboard`),t.nativeEvent.code===`Space`&&a===`button`&&(t.preventDefault(),s.store.toggleDropdown(`keyboard`))}},d=r?{...i?{role:`combobox`}:{},"aria-haspopup":`listbox`,"aria-expanded":i?!!(s.store.listId&&s.store.dropdownOpened):void 0,"aria-controls":s.store.dropdownOpened&&s.store.listId?s.store.listId:void 0,"aria-activedescendant":s.store.dropdownOpened&&c||void 0,autoComplete:o,"data-expanded":s.store.dropdownOpened||void 0,"data-mantine-stop-propagation":s.store.dropdownOpened||void 0}:{},f=e=>{a===`button`&&e.currentTarget.focus(),t?.(e)};return{...d,onKeyDown:u,onClick:f}}var Jf={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},Yf=q(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=K(`ComboboxEventsTarget`,Jf,e),u=ht(t);if(!u)throw Error(`Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let d=Vf(),f=qf({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s});return(0,w.cloneElement)(u,{...f,...l,[n]:Me(c,d.store.targetRef,ut(u))})});Yf.displayName=`@mantine/core/ComboboxEventsTarget`;var Xf=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ComboboxFooter`,null,e),s=Vf();return(0,G.jsx)(J,{...s.getStyles(`footer`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});Xf.classes=If,Xf.displayName=`@mantine/core/ComboboxFooter`;var Zf=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,label:s,id:c,...l}=K(`ComboboxGroup`,null,e),u=Vf(),d=Oe(c),f=s!=null&&s!==!1&&s!==``;return(0,G.jsxs)(J,{role:`group`,"aria-labelledby":f?d:void 0,...u.getStyles(`group`,{className:n,classNames:t,style:r,styles:i}),...l,children:[f&&(0,G.jsx)(`div`,{id:d,...u.getStyles(`groupLabel`,{classNames:t,styles:i}),children:s}),o]})});Zf.classes=If,Zf.displayName=`@mantine/core/ComboboxGroup`;var Qf=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ComboboxHeader`,null,e),s=Vf();return(0,G.jsx)(J,{...s.getStyles(`header`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});Qf.classes=If,Qf.displayName=`@mantine/core/ComboboxHeader`;function $f({value:e,valuesDivider:t=`,`,...n}){return(0,G.jsx)(`input`,{type:`hidden`,value:Array.isArray(e)?e.join(t):e?`${e}`:``,...n})}$f.displayName=`@mantine/core/ComboboxHiddenInput`;var ep=q(e=>{let t=K(`ComboboxOption`,null,e),{classNames:n,className:r,style:i,styles:a,vars:o,onClick:s,id:c,active:l,onMouseDown:u,onMouseOver:d,disabled:f,selected:p,mod:m,...h}=t,g=Vf(),_=(0,w.useId)(),v=c||_;return(0,G.jsx)(J,{...g.getStyles(`option`,{className:r,classNames:n,styles:a,style:i}),"aria-disabled":f||void 0,...h,id:v,mod:[`combobox-option`,{"combobox-active":l,"combobox-disabled":f,"combobox-selected":p},m],role:`option`,onClick:e=>{f?e.preventDefault():(g.onOptionSubmit?.(t.value,t),s?.(e))},onMouseDown:e=>{e.preventDefault(),u?.(e)},onMouseOver:e=>{g.resetSelectionOnOptionHover&&g.store.resetSelectedOption(),d?.(e)}})});ep.classes=If,ep.displayName=`@mantine/core/ComboboxOption`;var tp=q(e=>{let{classNames:t,className:n,style:r,styles:i,id:a,onMouseDown:o,labelledBy:s,...c}=K(`ComboboxOptions`,null,e),l=Vf(),u=Oe(a);return(0,w.useEffect)(()=>{l.store.setListId(u)},[u]),(0,G.jsx)(J,{...l.getStyles(`options`,{className:n,style:r,classNames:t,styles:i}),...c,id:u,role:`listbox`,"aria-labelledby":s,onMouseDown:e=>{e.preventDefault(),o?.(e)}})});tp.classes=If,tp.displayName=`@mantine/core/ComboboxOptions`;var np={withAriaAttributes:!0,withKeyboardNavigation:!0},rp=q(e=>{let{classNames:t,styles:n,unstyled:r,vars:i,withAriaAttributes:a,onKeyDown:o,onClick:s,withKeyboardNavigation:c,size:l,ref:u,...d}=K(`ComboboxSearch`,np,e),f=Vf(),p=f.getStyles(`search`),m=qf({targetType:`input`,withAriaAttributes:a,withKeyboardNavigation:c,withExpandedAttribute:!1,onKeyDown:o,onClick:s,autoComplete:`off`});return(0,G.jsx)(Ed,{ref:Me(u,f.store.searchRef),classNames:[{input:p.className},t],styles:[{input:p.style},n],size:l||f.size,...m,...d,__staticSelector:`Combobox`})});rp.classes=If,rp.displayName=`@mantine/core/ComboboxSearch`;var ip={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},ap=q(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=K(`ComboboxTarget`,ip,e),u=ht(t);if(!u)throw Error(`Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let d=Vf(),f=qf({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s}),p=(0,w.cloneElement)(u,{...f,...l});return(0,G.jsx)(ol.Target,{refProp:n,ref:Me(c,d.store.targetRef),children:p})});ap.displayName=`@mantine/core/ComboboxTarget`;function op(e,t,n){for(let n=e-1;n>=0;--n)if(!t[n].hasAttribute(`data-combobox-disabled`))return n;if(n){for(let e=t.length-1;e>-1;--e)if(!t[e].hasAttribute(`data-combobox-disabled`))return e}return e}function sp(e,t,n){for(let n=e+1;n<t.length;n+=1)if(!t[n].hasAttribute(`data-combobox-disabled`))return n;if(n){for(let e=0;e<t.length;e+=1)if(!t[e].hasAttribute(`data-combobox-disabled`))return e}return e}function cp(e){for(let t=0;t<e.length;t+=1)if(!e[t].hasAttribute(`data-combobox-disabled`))return t;return-1}function lp({defaultOpened:e,opened:t,onOpenedChange:n,onDropdownClose:r,onDropdownOpen:i,loop:a=!0,scrollBehavior:o=`instant`}={}){let[s,c]=Ne({value:t,defaultValue:e,finalValue:!1,onChange:n}),l=(0,w.useRef)(null),u=(0,w.useRef)(-1),d=(0,w.useRef)(null),f=(0,w.useRef)(null),p=(0,w.useRef)(-1),m=(0,w.useRef)(-1),h=(0,w.useRef)(-1),g=(0,w.useCallback)((e=`unknown`)=>{s||(c(!0),i?.(e))},[c,i,s]),_=(0,w.useCallback)((e=`unknown`)=>{s&&(c(!1),r?.(e))},[c,r,s]),v=(0,w.useCallback)((e=`unknown`)=>{s?_(e):g(e)},[_,g,s]),y=(0,w.useCallback)(()=>{let e=mt(f.current);ft(`#${l.current} [data-combobox-selected]`,e)?.removeAttribute(`data-combobox-selected`)},[]),b=(0,w.useCallback)(e=>{let t=mt(f.current),n=ft(`#${l.current}`,t),r=n?pt(`[data-combobox-option]`,n):null;if(!r)return null;let i=e>=r.length?0:e<0?r.length-1:e;return u.current=i,r?.[i]&&!r[i].hasAttribute(`data-combobox-disabled`)?(y(),r[i].setAttribute(`data-combobox-selected`,`true`),r[i].scrollIntoView({block:`nearest`,behavior:o}),r[i].id):null},[o,y]),x=(0,w.useCallback)(()=>{let e=mt(f.current),t=ft(`#${l.current} [data-combobox-active]`,e);if(t){let n=pt(`#${l.current} [data-combobox-option]`,e).findIndex(e=>e===t);return b(n)}return b(0)},[b]),S=(0,w.useCallback)(()=>{let e=mt(f.current),t=pt(`#${l.current} [data-combobox-option]`,e);return b(sp(u.current,t,a))},[b,a]),C=(0,w.useCallback)(()=>{let e=mt(f.current),t=pt(`#${l.current} [data-combobox-option]`,e);return b(op(u.current,t,a))},[b,a]),T=(0,w.useCallback)(()=>{let e=mt(f.current),t=pt(`#${l.current} [data-combobox-option]`,e);return b(cp(t))},[b]),E=(0,w.useCallback)((e=`selected`,t)=>{if(typeof e==`number`){u.current=e;let n=mt(f.current),r=pt(`#${l.current} [data-combobox-option]`,n);t?.scrollIntoView&&r[e]?.scrollIntoView({block:`nearest`,behavior:o})}else h.current=window.setTimeout(()=>{let n=mt(f.current),r=pt(`#${l.current} [data-combobox-option]`,n),i=r.findIndex(t=>t.hasAttribute(`data-combobox-${e}`));u.current=i,t?.scrollIntoView&&r[i]?.scrollIntoView({block:`nearest`,behavior:o})},0)},[]),D=(0,w.useCallback)(()=>{u.current=-1,y()},[y]),O=(0,w.useCallback)(()=>{let e=mt(f.current);(pt(`#${l.current} [data-combobox-option]`,e)?.[u.current])?.click()},[]),k=(0,w.useCallback)(e=>{l.current=e},[]),A=(0,w.useCallback)(()=>{p.current=window.setTimeout(()=>d.current?.focus(),0)},[]),j=(0,w.useCallback)(()=>{m.current=window.setTimeout(()=>f.current?.focus(),0)},[]),M=(0,w.useCallback)(()=>u.current,[]);return(0,w.useEffect)(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(m.current),window.clearTimeout(h.current)},[]),{dropdownOpened:s,openDropdown:g,closeDropdown:_,toggleDropdown:v,selectedOptionIndex:u.current,getSelectedOptionIndex:M,selectOption:b,selectFirstOption:T,selectActiveOption:x,selectNextOption:S,selectPreviousOption:C,resetSelectedOption:D,updateSelectedOptionIndex:E,listId:l.current,setListId:k,clickSelectedOption:O,searchRef:d,focusSearchInput:A,targetRef:f,focusTarget:j}}var up={keepMounted:!0,keepMountedMode:`display-none`,withinPortal:!0,resetSelectionOnOptionHover:!1,width:`target`,transitionProps:{transition:`fade`,duration:0},size:`sm`},dp=gt((e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":z(t),"--combobox-option-padding":I(t,`combobox-option-padding`)},dropdown:{"--combobox-padding":n===void 0?void 0:v(n),"--combobox-option-fz":z(t),"--combobox-option-padding":I(t,`combobox-option-padding`)}})),fp=e=>{let t=K(`Combobox`,up,e),{classNames:n,styles:r,unstyled:i,children:a,store:o,vars:s,onOptionSubmit:c,onClose:l,size:u,dropdownPadding:d,resetSelectionOnOptionHover:f,__staticSelector:p,readOnly:m,attributes:h,floatingHeight:g,middlewares:_,...v}=t,y=g===`viewport`?{..._,flip:!1,size:{...typeof _?.size==`object`?_.size:{},padding:typeof _?.size==`object`&&_.size.padding!==void 0?_.size.padding:10,apply:({availableHeight:e,availableWidth:t,elements:n,...r})=>{n.floating.style.setProperty(`--combobox-floating-max-height`,`${e}px`);let i=_?.size;typeof i==`object`&&i.apply?i.apply({availableHeight:e,availableWidth:t,elements:n,...r}):i&&Object.assign(n.floating.style,{maxWidth:`${t}px`,maxHeight:`${e}px`})}}}:_,b=lp(),x=o||b,S=Qn({name:p||`Combobox`,classes:If,props:t,classNames:n,styles:r,unstyled:i,attributes:h,vars:s,varsResolver:dp}),C=()=>{l?.(),x.closeDropdown()};return(0,G.jsx)(Bf,{value:{getStyles:S,store:x,onOptionSubmit:c,size:u,resetSelectionOnOptionHover:f,readOnly:m,floatingHeight:g},children:(0,G.jsx)(ol,{opened:x.dropdownOpened,...v,middlewares:y,onChange:e=>!e&&C(),withRoles:!1,unstyled:i,children:a})})};fp.extend=e=>e,fp.classes=If,fp.varsResolver=dp,fp.displayName=`@mantine/core/Combobox`,fp.Target=ap,fp.Dropdown=Uf,fp.Options=tp,fp.Option=ep,fp.Search=rp,fp.Empty=Kf,fp.Chevron=zf,fp.Footer=Xf,fp.Header=Qf,fp.EventsTarget=Yf,fp.DropdownTarget=Gf,fp.Group=Zf,fp.ClearButton=Hf,fp.HiddenInput=$f;function pp({children:e,role:t}){let n=(0,w.use)(cd);return n?(0,G.jsx)(`div`,{role:t,"aria-labelledby":n.labelId,"aria-describedby":n.describedBy,children:e}):(0,G.jsx)(G.Fragment,{children:e})}function mp({size:e,style:t,...n}){let r=e===void 0?t:{width:v(e),height:v(e),...t};return(0,G.jsx)(`svg`,{viewBox:`0 0 10 7`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:r,"aria-hidden":!0,...n,children:(0,G.jsx)(`path`,{d:`M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}var hp={root:`m_5f75b09e`,body:`m_5f6e695e`,labelWrapper:`m_d3ea56bb`,label:`m_8ee546b8`,description:`m_328f68c0`,error:`m_8e8a99cc`},gp=hp;function _p({__staticSelector:e,__stylesApiProps:t,className:n,classNames:r,styles:i,unstyled:a,children:o,label:s,description:c,id:l,disabled:u,error:d,size:f,labelPosition:p=`left`,bodyElement:m=`div`,labelElement:h=`label`,variant:g,style:_,vars:v,mod:y,attributes:b,...x}){let S=Qn({name:e,props:t,className:n,style:_,classes:hp,classNames:r,styles:i,unstyled:a,attributes:b}),C=c?`${l}-description`:void 0,w=d&&typeof d!=`boolean`?`${l}-error`:void 0;return(0,G.jsx)(J,{...S(`root`),__vars:{"--label-fz":z(f),"--label-lh":I(f,`label-lh`)},mod:[{"label-position":p},y],variant:g,size:f,...x,children:(0,G.jsxs)(J,{component:m,htmlFor:m===`label`?l:void 0,...S(`body`),children:[o,(0,G.jsxs)(`div`,{...S(`labelWrapper`),"data-disabled":u||void 0,children:[s&&(0,G.jsx)(J,{component:h,htmlFor:h===`label`?l:void 0,...S(`label`),"data-disabled":u||void 0,children:s}),c&&(0,G.jsx)(Ed.Description,{id:C,size:f,__inheritStyles:!1,...S(`description`),children:c}),d&&typeof d!=`boolean`&&(0,G.jsx)(Ed.Error,{id:w,size:f,__inheritStyles:!1,...S(`error`),children:d})]})]})})}_p.displayName=`@mantine/core/InlineInput`;function vp(e){return`group`in e}function yp({options:e,search:t,limit:n}){let r=t.trim().toLowerCase(),i=[];for(let a=0;a<e.length;a+=1){let o=e[a];if(i.length===n)return i;vp(o)&&i.push({group:o.group,items:yp({options:o.items,search:t,limit:n-i.length})}),vp(o)||o.label.toLowerCase().includes(r)&&i.push(o)}return i}function bp(e){if(e.length===0)return!0;for(let t of e)if(!(`group`in t)||t.items.length>0)return!1;return!0}function xp(e,t=new Set){if(Array.isArray(e))for(let n of e)if(vp(n))xp(n.items,t);else{if(n.value===void 0)throw Error(`[@mantine/core] Each option must have value property`);if(t.has(n.value))throw Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);t.add(n.value)}}function Sp(e,t){return Array.isArray(e)?e.includes(t):e===t}function Cp({data:e,withCheckIcon:t,withAlignedLabels:n,value:r,checkIconPosition:i,unstyled:a,renderOption:o}){if(!vp(e)){let s=Sp(r,e.value),c=t&&(s?(0,G.jsx)(mp,{className:If.optionsDropdownCheckIcon}):n?(0,G.jsx)(`div`,{className:If.optionsDropdownCheckPlaceholder}):null),l=(0,G.jsxs)(G.Fragment,{children:[i===`left`&&c,(0,G.jsx)(`span`,{children:e.label}),i===`right`&&c]});return(0,G.jsx)(fp.Option,{value:e.value,disabled:e.disabled,className:vt({[If.optionsDropdownOption]:!a}),"data-reverse":i===`right`||void 0,"data-checked":s||void 0,"aria-selected":s,active:s,children:typeof o==`function`?o({option:e,checked:s}):l})}let s=e.items.map(e=>(0,G.jsx)(Cp,{data:e,value:r,unstyled:a,withCheckIcon:t,withAlignedLabels:n,checkIconPosition:i,renderOption:o},`${e.value}`));return(0,G.jsx)(fp.Group,{label:e.group,children:s})}function wp({data:e,hidden:t,hiddenWhenEmpty:n,filter:r,search:i,limit:a,maxDropdownHeight:o,floatingHeight:s,withScrollArea:c=!0,filterOptions:l=!0,withCheckIcon:u=!1,withAlignedLabels:d=!1,value:f,checkIconPosition:p,nothingFoundMessage:m,unstyled:h,labelId:g,renderOption:_,scrollAreaProps:v,"aria-label":y}){let b=Vf();xp(e);let x=typeof i==`string`?(r||yp)({options:e,search:l?i:``,limit:a??1/0}):e,S=bp(x),C=x.map((e,t)=>(0,G.jsx)(Cp,{data:e,withCheckIcon:u,withAlignedLabels:d,value:f,checkIconPosition:p,unstyled:h,renderOption:_},vp(e)?`group-${typeof e.group==`string`?e.group:t}`:`${e.value}`));return(0,G.jsx)(fp.Dropdown,{hidden:t||n&&S,"data-composed":!0,children:(0,G.jsxs)(fp.Options,{labelledBy:g,"aria-label":y,children:[c?(0,G.jsx)(cc.Autosize,{mah:(s??b.floatingHeight)===`viewport`?`var(--combobox-floating-options-max-height)`:o??220,type:`scroll`,scrollbarSize:`var(--combobox-padding)`,offsetScrollbars:`y`,...v,children:C}):C,S&&m&&(0,G.jsx)(fp.Empty,{children:m})]})})}function Tp(e,t,n,r){if(t===n||r===`before`&&n===t+1||r===`after`&&n===t-1)return e;let i=e.slice(),[a]=i.splice(t,1),o=t<n?n-1:n;return r===`after`&&(o+=1),i.splice(o,0,a),i}var Ep=e=>{let t=e.lastElementChild;return t?t instanceof HTMLInputElement?t:t.querySelector(`input`):null},Dp=(e,t)=>{if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return!1;return!0};function Op({value:e,onChange:t,enabled:n}){let r=(0,w.useRef)({draggedIndex:null,currentDropTarget:null}),i=(0,w.useRef)(null),a=(0,w.useRef)(null),o=(0,w.useRef)(e);o.current=e,(0,w.useEffect)(()=>{let e=i.current;e&&(i.current=null,Dp(o.current,e.expectedValue)&&e.container?.querySelector(`[data-mantine-pill-index="${e.index}"]`)?.focus())});let s=(0,w.useCallback)(e=>{a.current=e},[]);return{getPillProps:e=>{if(n)return{draggable:!0,tabIndex:-1,"data-mantine-pill-index":e,"aria-keyshortcuts":`Alt+ArrowLeft Alt+ArrowRight`,onMouseDown:e=>{e.button===0&&e.stopPropagation()},onDragStart:t=>{t.stopPropagation(),t.dataTransfer.effectAllowed=`move`,t.dataTransfer.setData(`text/plain`,String(e)),r.current.draggedIndex=e;let n=t.currentTarget,i=n.getBoundingClientRect(),a=n.cloneNode(!0);a.removeAttribute(`data-dragging`),a.removeAttribute(`data-drag-over`),a.style.position=`fixed`,a.style.top=`-9999px`,a.style.left=`-9999px`,a.style.width=`${i.width}px`,a.style.height=`${i.height}px`,a.style.pointerEvents=`none`,document.body.appendChild(a),t.dataTransfer.setDragImage(a,t.clientX-i.left,t.clientY-i.top),setTimeout(()=>a.parentNode?.removeChild(a),0),requestAnimationFrame(()=>{n.setAttribute(`data-dragging`,`true`)})},onDragOver:t=>{let{draggedIndex:n}=r.current;if(n===null||n===e)return;let i=t.currentTarget,a=i.getBoundingClientRect(),o=t.clientX-a.left,s=(getComputedStyle(i).direction===`rtl`?o>a.width/2:o<a.width/2)?`before`:`after`;t.preventDefault(),t.stopPropagation(),t.dataTransfer.dropEffect=`move`;let c=r.current.currentDropTarget;c&&c!==i&&c.removeAttribute(`data-drag-over`),i.setAttribute(`data-drag-over`,s),r.current.currentDropTarget=i},onDragLeave:e=>{let t=e.currentTarget,n=e.relatedTarget;n&&t.contains(n)||(t.removeAttribute(`data-drag-over`),r.current.currentDropTarget===t&&(r.current.currentDropTarget=null))},onDrop:n=>{n.preventDefault(),n.stopPropagation();let i=n.currentTarget,a=i.getAttribute(`data-drag-over`);i.removeAttribute(`data-drag-over`);let{draggedIndex:s}=r.current;if(s!==null&&a&&s!==e){let n=Tp(o.current,s,e,a);n!==o.current&&t(n)}r.current.draggedIndex=null,r.current.currentDropTarget=null},onDragEnd:e=>{e.currentTarget.removeAttribute(`data-dragging`);let t=r.current.currentDropTarget;t&&t.removeAttribute(`data-drag-over`),r.current.draggedIndex=null,r.current.currentDropTarget=null},onKeyDown:n=>{if(n.key!==`ArrowLeft`&&n.key!==`ArrowRight`)return;let r=n.currentTarget,a=getComputedStyle(r).direction===`rtl`?n.key===`ArrowLeft`:n.key===`ArrowRight`,s=a?e+1:e-1;if(n.altKey){if(s<0||s>=o.current.length)return;n.preventDefault(),n.stopPropagation();let c=a?`after`:`before`,l=Tp(o.current,e,s,c);if(l===o.current)return;i.current={container:r.parentElement,index:s,expectedValue:l},t(l);return}if(s<0)return;let c=r.parentElement;c&&(n.preventDefault(),n.stopPropagation(),s>=o.current.length?Ep(c)?.focus():c.querySelector(`[data-mantine-pill-index="${s}"]`)?.focus())}}},getListProps:()=>n?{ref:s}:{},handleInputKeyDown:e=>{if(!n||e.key!==`ArrowLeft`)return;let t=e.currentTarget;if(!(t.value.length===0||t.selectionStart===0&&t.selectionEnd===0))return;let r=a.current;if(!r)return;let i=r.querySelectorAll(`[data-mantine-pill-index]`);i.length!==0&&(e.preventDefault(),i[i.length-1].focus())}}}function kp({id:e,label:t,labelProps:n,inputWrapperOrder:r}){if(t&&(!r||r.includes(`label`)))return n?.id||`${e}-label`}var Ap=q(e=>{let t=K([`Input`,`InputWrapper`,`Autocomplete`],{size:`sm`},e),{classNames:n,styles:r,unstyled:i,vars:a,dropdownOpened:o,defaultDropdownOpened:s,onDropdownClose:c,onDropdownOpen:l,onFocus:u,onBlur:d,onClick:f,onChange:p,data:m,value:h,defaultValue:g,selectFirstOptionOnChange:_,selectFirstOptionOnDropdownOpen:v,onOptionSubmit:y,comboboxProps:b,readOnly:x,disabled:S,filter:C,limit:T,withScrollArea:E,maxDropdownHeight:D,floatingHeight:O,size:k,id:A,renderOption:j,autoComplete:M,scrollAreaProps:N,onClear:P,clearButtonProps:F,error:I,clearable:L,clearSectionMode:R,rightSection:z,autoSelectOnBlur:ee,openOnFocus:B=!0,attributes:V,...te}=t,ne=Oe(A),H=kp({id:ne,label:te.label,labelProps:te.labelProps,inputWrapperOrder:te.inputWrapperOrder}),re=Pf(m),ie=Ff(re),[ae,U]=Ne({value:h,defaultValue:g,finalValue:``,onChange:p}),W=lp({opened:o,defaultOpened:s,onDropdownOpen:()=>{l?.(),v&&W.selectFirstOption()},onDropdownClose:()=>{c?.(),setTimeout(W.resetSelectedOption,0)}}),oe=e=>{U(e),W.resetSelectedOption()},{resolvedClassNames:se,resolvedStyles:ce}=Ln({props:t,styles:r,classNames:n});(0,w.useEffect)(()=>{_&&W.selectFirstOption()},[_,ae]);let le=(0,G.jsx)(fp.ClearButton,{...F,onClear:()=>{oe(``),P?.()}});return(0,G.jsxs)(fp,{store:W,__staticSelector:`Autocomplete`,classNames:se,styles:ce,unstyled:i,readOnly:x,size:k,attributes:V,floatingHeight:O,keepMounted:ee,onOptionSubmit:e=>{y?.(e),oe(ie[e].label),W.closeDropdown()},...b,children:[(0,G.jsx)(fp.Target,{autoComplete:M,withExpandedAttribute:!0,children:(0,G.jsx)(kd,{...te,size:k,__staticSelector:`Autocomplete`,__clearSection:le,__clearable:L&&!!ae&&!S&&!x,__clearSectionMode:R,rightSection:z,disabled:S,readOnly:x,value:ae,error:I,onChange:e=>{oe(e.currentTarget.value),W.openDropdown(),_&&W.selectFirstOption()},onFocus:e=>{B&&W.openDropdown(),u?.(e)},onBlur:e=>{ee&&W.clickSelectedOption(),W.closeDropdown(),d?.(e)},onClick:e=>{W.openDropdown(),f?.(e)},classNames:se,styles:ce,unstyled:i,attributes:V,id:ne})}),(0,G.jsx)(wp,{data:re,hidden:x||S,filter:C,search:ae,limit:T,hiddenWhenEmpty:!0,withScrollArea:E,maxDropdownHeight:D,unstyled:i,labelId:H,"aria-label":H?void 0:te[`aria-label`],renderOption:j,scrollAreaProps:N})]})});Ap.classes={...kd.classes,...fp.classes},Ap.displayName=`@mantine/core/Autocomplete`;var jp={root:`m_347db0ec`,"root--dot":`m_fbd81e3d`,label:`m_5add502a`,section:`m_91fdda9b`},Mp=gt((e,{radius:t,color:n,gradient:r,variant:i,size:a,autoContrast:o,circle:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:o});return{root:{"--badge-height":I(a,`badge-height`),"--badge-padding-x":I(a,`badge-padding-x`),"--badge-fz":I(a,`badge-fz`),"--badge-radius":s||t===void 0?void 0:R(t),"--badge-bg":n||i?c.background:void 0,"--badge-color":n||i?c.color:void 0,"--badge-bd":n||i?c.border:void 0,"--badge-dot-color":i===`dot`?It(n,e):void 0}}}),Np=Fr(e=>{let t=K(`Badge`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:l,gradient:u,leftSection:d,rightSection:f,children:p,variant:m,fullWidth:h,autoContrast:g,circle:_,mod:v,attributes:y,...b}=t,x=Qn({name:`Badge`,props:t,classes:jp,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:y,vars:s,varsResolver:Mp});return(0,G.jsxs)(J,{variant:m,mod:[{block:h,circle:_,"with-right-section":!!f,"with-left-section":!!d},v],...x(`root`,{variant:m}),...b,children:[d&&(0,G.jsx)(`span`,{...x(`section`),"data-position":`left`,children:d}),(0,G.jsx)(`span`,{...x(`label`),children:p}),f&&(0,G.jsx)(`span`,{...x(`section`),"data-position":`right`,children:f})]})});Np.classes=jp,Np.varsResolver=Mp,Np.displayName=`@mantine/core/Badge`;var Pp={root:`m_77c9d27d`,inner:`m_80f1301b`,label:`m_811560b9`,section:`m_a74036a`,loader:`m_a25b86ee`,group:`m_80d6d844`,groupSection:`m_70be2a01`},Fp={orientation:`horizontal`},Ip=gt((e,{borderWidth:t})=>({group:{"--button-border-width":v(t)}})),Lp=q(e=>{let t=K(`ButtonGroup`,Fp,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,mod:u,attributes:d,...f}=K(`ButtonGroup`,Fp,e),p=Qn({name:`ButtonGroup`,props:t,classes:Pp,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:c,varsResolver:Ip,rootSelector:`group`});return(0,G.jsx)(J,{...p(`group`),mod:[{orientation:s},u],role:`group`,...f})});Lp.classes=Pp,Lp.varsResolver=Ip,Lp.displayName=`@mantine/core/ButtonGroup`;var Rp=gt((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":I(o,`section-height`),"--section-padding-x":I(o,`section-padding-x`),"--section-fz":o?.includes(`compact`)?z(o.replace(`compact-`,``)):z(o),"--section-radius":t===void 0?void 0:R(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),zp=q(e=>{let t=K(`ButtonGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,gradient:c,radius:l,autoContrast:u,attributes:d,...f}=t,p=Qn({name:`ButtonGroupSection`,props:t,classes:Pp,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:Rp,rootSelector:`groupSection`});return(0,G.jsx)(J,{...p(`groupSection`),...f})});zp.classes=Pp,zp.varsResolver=Rp,zp.displayName=`@mantine/core/ButtonGroupSection`;var Bp={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${v(1)}))`},out:{opacity:0,transform:`translate(-50%, -200%)`},common:{transformOrigin:`center`},transitionProperty:`transform, opacity`},Vp=gt((e,{radius:t,color:n,gradient:r,variant:i,size:a,justify:o,autoContrast:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:s});return{root:{"--button-justify":o,"--button-height":I(a,`button-height`),"--button-padding-x":I(a,`button-padding-x`),"--button-fz":a?.includes(`compact`)?z(a.replace(`compact-`,``)):z(a),"--button-radius":t===void 0?void 0:R(t),"--button-bg":n||i?c.background:void 0,"--button-hover":n||i?c.hover:void 0,"--button-color":c.color,"--button-bd":n||i?c.border:void 0,"--button-hover-color":n||i?c.hoverColor:void 0}}}),Hp=Fr(e=>{let t=K(`Button`,null,e),{style:n,vars:r,className:i,color:a,disabled:o,children:s,leftSection:c,rightSection:l,fullWidth:u,variant:d,radius:f,loading:p,loaderProps:m,gradient:h,classNames:g,styles:_,unstyled:v,"data-disabled":y,autoContrast:b,mod:x,attributes:S,...C}=t,w=Qn({name:`Button`,props:t,classes:Pp,className:i,style:n,classNames:g,styles:_,unstyled:v,attributes:S,vars:r,varsResolver:Vp}),T=!!c,E=!!l;return(0,G.jsxs)(fc,{...w(`root`,{active:!o&&!p&&!y}),unstyled:v,variant:d,disabled:o||p,mod:[{disabled:o||y,loading:p,block:u,"with-left-section":T,"with-right-section":E},x],...C,children:[typeof p==`boolean`&&(0,G.jsx)(Hc,{mounted:p,transition:Bp,duration:150,children:e=>(0,G.jsx)(J,{component:`span`,...w(`loader`,{style:e}),"aria-hidden":!0,children:(0,G.jsx)(ml,{color:`var(--button-color)`,size:`calc(var(--button-height) / 1.8)`,...m})})}),(0,G.jsxs)(`span`,{...w(`inner`),children:[c&&(0,G.jsx)(J,{component:`span`,...w(`section`),mod:{position:`left`},children:c}),(0,G.jsx)(J,{component:`span`,mod:{loading:p},...w(`label`),children:s}),l&&(0,G.jsx)(J,{component:`span`,...w(`section`),mod:{position:`right`},children:l})]})]})});Hp.classes=Pp,Hp.varsResolver=Vp,Hp.displayName=`@mantine/core/Button`,Hp.Group=Lp,Hp.GroupSection=zp;var[Up,Wp]=E(`Card component was not found in tree`),Gp={root:`m_e615b15f`,section:`m_599a2148`},Kp=Fr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,withBorder:o,inheritPadding:s,mod:c,...l}=K(`CardSection`,null,e),u=Wp();return(0,G.jsx)(J,{mod:[{"with-border":o,"inherit-padding":s},c],...u.getStyles(`section`,{className:n,style:r,styles:i,classNames:t}),...l})});Kp.classes=Gp,Kp.displayName=`@mantine/core/CardSection`;var qp=gt((e,{padding:t})=>({root:{"--card-padding":L(t)}})),Jp={orientation:`vertical`},Yp=Fr(e=>{let t=K(`Card`,Jp,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,padding:l,attributes:u,orientation:d,...f}=t,p=Qn({name:`Card`,props:t,classes:Gp,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:qp}),m=w.Children.toArray(c),h=m.map((e,t)=>typeof e==`object`&&e&&`type`in e&&(e.type===Kp||e.type?.displayName===`@mantine/core/CardSection`)?(0,w.cloneElement)(e,{"data-orientation":d,"data-first-section":t===0||void 0,"data-last-section":t===m.length-1||void 0}):e);return(0,G.jsx)(Up,{value:{getStyles:p},children:(0,G.jsx)(_c,{unstyled:o,"data-orientation":d,...p(`root`),...f,children:h})})});Yp.classes=Gp,Yp.varsResolver=qp,Yp.displayName=`@mantine/core/Card`,Yp.Section=Kp;function Xp(e){let t=e.currentTarget;return mt(t).activeElement!==t}var Zp={root:`m_b183c0a2`},Qp=gt((e,{color:t})=>({root:{"--code-bg":t?It(t,e):void 0}})),$p=q(e=>{let t=K(`Code`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,block:l,mod:u,attributes:d,...f}=t,p=Qn({name:`Code`,props:t,classes:Zp,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:Qp});return(0,G.jsx)(J,{component:l?`pre`:`code`,mod:[{block:l},u],...p(`root`),...f,dir:`ltr`})});$p.classes=Zp,$p.varsResolver=Qp,$p.displayName=`@mantine/core/Code`;var em={root:`m_7485cace`},tm={strategy:`block`},nm=gt((e,{size:t,fluid:n})=>({root:{"--container-size":n?void 0:I(t,`container-size`)}})),rm=q(e=>{let t=K(`Container`,tm,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,fluid:c,mod:l,attributes:u,strategy:d,...f}=t,p=Qn({name:`Container`,classes:em,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:nm});return(0,G.jsx)(J,{mod:[{fluid:c,strategy:d},l],...p(`root`),...f})});rm.classes=em,rm.varsResolver=nm,rm.displayName=`@mantine/core/Container`;var[im,am]=E(`Grid component was not found in tree`),om=(e,t)=>{if(e===`content`)return`auto`;if(e===`auto`)return`0rem`;if(e)return e===t?`100%`:`calc(${100*e/t}% - ${(t-e)/t} * var(--grid-column-gap))`},sm=(e,t,n)=>n||e===`auto`?`100%`:e===`content`?`unset`:om(e,t),cm=(e,t)=>{if(e)return e===`auto`||t?`1`:`auto`},lm=(e,t)=>{if(e===0)return`0`;if(e)return`calc(${100*e/t}% + ${e/t} * var(--grid-column-gap))`};function um({span:e,order:t,offset:n,align:r,selector:i}){let a=xn(),o=am(),s=o.breakpoints||a.breakpoints,c=H(e),l=c===void 0?12:c,d=b({"--col-order":H(t)?.toString(),"--col-flex-grow":cm(l,o.grow),"--col-flex-basis":om(l,o.columns),"--col-width":l===`content`?`auto`:void 0,"--col-max-width":sm(l,o.columns,o.grow),"--col-offset":lm(H(n),o.columns),"--col-align-self":H(r)}),f=u(s).reduce((i,a)=>(i[a]||(i[a]={}),typeof t==`object`&&t[a]!==void 0&&(i[a][`--col-order`]=t[a]?.toString()),typeof e==`object`&&e[a]!==void 0&&(i[a][`--col-flex-grow`]=cm(e[a],o.grow),i[a][`--col-flex-basis`]=om(e[a],o.columns),i[a][`--col-width`]=e[a]===`content`?`auto`:void 0,i[a][`--col-max-width`]=sm(e[a],o.columns,o.grow)),typeof n==`object`&&n[a]!==void 0&&(i[a][`--col-offset`]=lm(n[a],o.columns)),typeof r==`object`&&r[a]!==void 0&&(i[a][`--col-align-self`]=r[a]),i),{}),p=ne(u(f),s).filter(e=>u(f[e.value]).length>0).map(e=>({query:o.type===`container`?`mantine-grid (min-width: ${s[e.value]})`:`(min-width: ${s[e.value]})`,styles:f[e.value]}));return(0,G.jsx)(rr,{styles:d,media:o.type===`container`?void 0:p,container:o.type===`container`?p:void 0,selector:i})}var dm={container:`m_8478a6da`,root:`m_410352e9`,inner:`m_dee7bd2f`,col:`m_96bdd299`},fm={span:12},pm=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,span:o,order:s,offset:c,align:l,...u}=K(`GridCol`,fm,e),d=am(),f=kr();return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(um,{selector:`.${f}`,span:o,order:s,offset:c,align:l}),(0,G.jsx)(J,{...d.getStyles(`col`,{className:vt(n,f),style:r,classNames:t,styles:i}),...u})]})});pm.classes=dm,pm.displayName=`@mantine/core/GridCol`;function mm({gap:e,rowGap:t,columnGap:n,selector:r,breakpoints:i,type:a}){let o=xn(),s=i||o.breakpoints,c=b({"--grid-gap":L(H(e)),"--grid-row-gap":L(H(t)),"--grid-column-gap":L(H(n))}),l=u(s).reduce((r,i)=>(r[i]||(r[i]={}),typeof e==`object`&&e[i]!==void 0&&(r[i][`--grid-gap`]=L(e[i])),typeof t==`object`&&t[i]!==void 0&&(r[i][`--grid-row-gap`]=L(t[i])),typeof n==`object`&&n[i]!==void 0&&(r[i][`--grid-column-gap`]=L(n[i])),r),{}),d=ne(u(l),s).filter(e=>u(l[e.value]).length>0).map(e=>({query:a===`container`?`mantine-grid (min-width: ${s[e.value]})`:`(min-width: ${s[e.value]})`,styles:l[e.value]}));return(0,G.jsx)(rr,{styles:c,media:a===`container`?void 0:d,container:a===`container`?d:void 0,selector:r})}var hm={gap:`md`,columns:12},gm=gt((e,{justify:t,align:n,overflow:r})=>({root:{"--grid-justify":t,"--grid-align":n,"--grid-overflow":r}})),_m=q(e=>{let t=K(`Grid`,hm,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,grow:c,gap:l,rowGap:u,columnGap:d,columns:f,align:p,justify:m,children:h,breakpoints:g,type:_,attributes:v,...y}=t,b=Qn({name:`Grid`,classes:dm,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:gm}),x=kr();return _===`container`&&g?(0,G.jsxs)(im,{value:{getStyles:b,grow:c,columns:f,breakpoints:g,type:_},children:[(0,G.jsx)(mm,{selector:`.${x}`,...t}),(0,G.jsx)(`div`,{...b(`container`),children:(0,G.jsx)(J,{...b(`root`,{className:x}),...y,children:(0,G.jsx)(`div`,{...b(`inner`),children:h})})})]}):(0,G.jsxs)(im,{value:{getStyles:b,grow:c,columns:f,breakpoints:g,type:_},children:[(0,G.jsx)(mm,{selector:`.${x}`,...t}),(0,G.jsx)(J,{...b(`root`,{className:x}),...y,children:(0,G.jsx)(`div`,{...b(`inner`),children:h})})]})});_m.classes=dm,_m.varsResolver=gm,_m.displayName=`@mantine/core/Grid`,_m.Col=pm;var vm=[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`,`boxSizing`,`fontFamily`,`fontSize`,`fontStyle`,`fontWeight`,`letterSpacing`,`lineHeight`,`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`,`tabSize`,`textIndent`,`textRendering`,`textTransform`,`width`,`wordBreak`,`wordSpacing`,`scrollbarGutter`],ym={"min-height":`0`,"max-height":`none`,height:`0`,visibility:`hidden`,overflow:`hidden`,position:`absolute`,"z-index":`-1000`,top:`0`,right:`0`,display:`block`};function bm(e){Object.keys(ym).forEach(t=>{e.style.setProperty(t,ym[t],`important`)})}function xm(e){let t=window.getComputedStyle(e);if(t===null)return null;let n={};for(let e of vm)n[e]=t[e];return n.boxSizing===``?null:{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)}}var Sm=null;function Cm(e,t,n=1,r=1/0){Sm||(Sm=document.createElement(`textarea`),Sm.setAttribute(`tabindex`,`-1`),Sm.setAttribute(`aria-hidden`,`true`),Sm.setAttribute(`aria-label`,`autosize measurement`),bm(Sm)),Sm.parentNode===null&&document.body.appendChild(Sm);let{paddingSize:i,borderSize:a,sizingStyle:o}=e,{boxSizing:s}=o;Object.keys(o).forEach(e=>{Sm.style[e]=o[e]}),bm(Sm),Sm.value=t;let c=s===`border-box`?Sm.scrollHeight+a:Sm.scrollHeight-i;Sm.value=t,c=s===`border-box`?Sm.scrollHeight+a:Sm.scrollHeight-i,Sm.value=`x`;let l=Sm.scrollHeight-i,u=l*n;s===`border-box`&&(u=u+i+a),c=Math.max(u,c);let d=l*r;return s===`border-box`&&(d=d+i+a),c=Math.min(d,c),[c,l]}function wm({maxRows:e,minRows:t,onChange:n,ref:r,...i}){let a=i.value!==void 0,o=(0,w.useRef)(null),s=Me(o,r),c=(0,w.useRef)(0),l=(0,w.useRef)(0),u=()=>{let n=o.current;if(!n)return;let r=xm(n);if(!r)return;let[i]=Cm(r,n.value||n.placeholder||`x`,t,e);c.current!==i&&(c.current=i,n.style.setProperty(`height`,`${i}px`,`important`))},d=(0,w.useEffectEvent)(u),f=e=>{a||u(),n?.(e)};return(0,w.useLayoutEffect)(u),(0,w.useEffect)(()=>{let e=()=>u();return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),(0,w.useEffect)(()=>{let e=o.current;if(!e||typeof ResizeObserver>`u`)return;l.current=e.offsetWidth;let t=0,n=new ResizeObserver(()=>{o.current&&o.current.offsetWidth!==l.current&&(l.current=o.current.offsetWidth,cancelAnimationFrame(t),t=requestAnimationFrame(d))});return n.observe(e),()=>{cancelAnimationFrame(t),n.disconnect()}},[]),(0,w.useEffect)(()=>{let e=()=>u();return document.fonts.addEventListener(`loadingdone`,e),()=>document.fonts.removeEventListener(`loadingdone`,e)},[]),(0,w.useEffect)(()=>{let e=e=>{if(o.current?.form===e.target&&!a){let e=o.current.value;requestAnimationFrame(()=>{o.current&&e!==o.current.value&&u()})}};return document.body.addEventListener(`reset`,e),()=>document.body.removeEventListener(`reset`,e)},[a]),(0,G.jsx)(`textarea`,{rows:t,...i,onChange:f,ref:s})}var Tm=q(e=>{let{autosize:t,maxRows:n,minRows:r,__staticSelector:i,resize:a,bottomSection:o,bottomSectionProps:s,...c}=K([`Input`,`InputWrapper`,`Textarea`],null,e),l=t&&lt()!==`test`,u=l?{maxRows:n,minRows:r}:{};return(0,G.jsx)(kd,{component:l?wm:`textarea`,...c,__staticSelector:i||`Textarea`,__bottomSection:o,__bottomSectionProps:s,multiline:!0,"data-no-overflow":t&&n===void 0||void 0,__vars:{"--input-resize":a},...u})});Tm.classes=kd.classes,Tm.displayName=`@mantine/core/Textarea`;var[Em,Dm]=E(`List component was not found in tree`),Om={root:`m_abbac491`,item:`m_abb6bec2`,itemWrapper:`m_75cd9f71`,itemIcon:`m_60f83e5b`},km=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,icon:o,children:s,mod:c,...l}=K(`ListItem`,null,e),u=Dm(),d=o||u.icon,f={classNames:t,styles:i};return(0,G.jsx)(J,{...u.getStyles(`item`,{...f,className:n,style:r}),component:`li`,mod:[{"with-icon":!!d,centered:u.center},c],...l,children:(0,G.jsxs)(`div`,{...u.getStyles(`itemWrapper`,f),children:[d&&(0,G.jsx)(`span`,{...u.getStyles(`itemIcon`,f),children:d}),(0,G.jsx)(`span`,{...u.getStyles(`itemLabel`,f),children:s})]})})});km.classes=Om,km.displayName=`@mantine/core/ListItem`;var Am={type:`unordered`},jm=gt((e,{size:t,spacing:n})=>({root:{"--list-fz":z(t),"--list-lh":ee(t),"--list-spacing":L(n)}})),Mm=q(e=>{let t=K(`List`,Am,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,type:l,withPadding:u,icon:d,spacing:f,center:p,listStyleType:m,mod:h,attributes:g,..._}=t,v=Qn({name:`List`,classes:Om,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:g,vars:s,varsResolver:jm});return(0,G.jsx)(Em,{value:{center:p,icon:d,getStyles:v},children:(0,G.jsx)(J,{...v(`root`,{style:{listStyleType:m}}),component:l===`unordered`?`ul`:`ol`,mod:[{"with-padding":u,type:d?`none`:m},h],..._,children:c})})});Mm.classes=Om,Mm.varsResolver=jm,Mm.displayName=`@mantine/core/List`,Mm.Item=km;var[Nm,Pm]=E(`Menu component was not found in the tree`),Fm=(0,w.createContext)(null);function Im(e){let{value:t,defaultValue:n,onChange:r,children:i}=K(`MenuCheckboxGroup`,null,e),[a,o]=Ne({value:t,defaultValue:n,finalValue:[],onChange:r}),s=(0,w.useCallback)(e=>{o(a.includes(e)?a.filter(t=>t!==e):[...a,e])},[a,o]);return(0,G.jsx)(Fm,{value:{values:a,onChange:s},children:i})}Im.displayName=`@mantine/core/MenuCheckboxGroup`;var Lm=(0,w.createContext)(null);function Rm({role:e,checked:t,indicator:n,onSelect:r,color:i,closeMenuOnClick:a,rightSection:o,children:s,disabled:c,dataDisabled:l,className:u,style:d,styles:f,classNames:p,buttonRef:m,others:h}){let g=Pm(),_=(0,w.use)(Lm),v=xn(),{dir:y}=Ur(),b=(0,w.useRef)(null),x=V(h.onClick,()=>{l||(r(),a&&g.closeDropdownImmediately())}),S=V(h.onMouseMove,()=>{if(!g.hasSearch)return;let e=b.current?.closest(`[data-menu-dropdown]`);e&&e.querySelectorAll(`[data-menu-active]`).forEach(t=>{t!==b.current&&t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}),C=V(h.onKeyDown,e=>{e.key===`ArrowLeft`&&_&&(_.close(),_.focusParentItem())}),T=i?v.variantColorResolver({color:i,theme:v,variant:`light`}):void 0,E=i?Ft({color:i,theme:v}):null,D=g.alignItemsLabels!==`none`||t;return(0,G.jsxs)(fc,{onMouseDown:e=>e.preventDefault(),...h,unstyled:g.unstyled,tabIndex:g.menuItemTabIndex,...g.getStyles(`item`,{className:u,style:d,styles:f,classNames:p}),ref:Me(b,m),role:e,"aria-checked":t,disabled:c,"data-menu-item":!0,"data-checked":t||void 0,"data-disabled":c||l||void 0,"data-mantine-stop-propagation":!0,onClick:x,onMouseMove:S,onKeyDown:j({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:g.loop,dir:y,orientation:`vertical`,onKeyDown:C}),__vars:{"--menu-item-color":E?.isThemeColor&&E?.shade===void 0?`var(--mantine-color-${E.color}-6)`:T?.color,"--menu-item-hover":T?.hover},children:[D&&(0,G.jsx)(`div`,{...g.getStyles(`itemIndicator`,{styles:f,classNames:p}),"data-checked":t||void 0,children:t?n:null}),s&&(0,G.jsx)(`div`,{...g.getStyles(`itemLabel`,{styles:f,classNames:p}),"data-menu-item-label":!0,children:s}),o&&(0,G.jsx)(`div`,{...g.getStyles(`itemSection`,{styles:f,classNames:p}),"data-position":`right`,children:o})]})}var zm={dropdown:`m_dc9b7c9f`,label:`m_9bfac126`,divider:`m_efdf90cb`,item:`m_99ac2aa1`,search:`m_ef8769b6`,itemLabel:`m_5476e0d3`,itemIndicator:`m_8395186e`,itemSection:`m_8b75e504`,chevron:`m_b85b0bed`},Bm=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,closeMenuOnClick:s,rightSection:c,children:l,disabled:u,"data-disabled":d,value:f,checked:p,defaultChecked:m,onChange:h,checkIcon:g,ref:_,...v}=K(`MenuCheckboxItem`,null,e),y=Pm(),b=(0,w.use)(Fm),x=b&&f!==void 0?b.values.includes(f):void 0,[S,C]=Ne({value:p??x,defaultValue:m,finalValue:!1,onChange:h}),T=g??y.checkIcon??(0,G.jsx)(mp,{size:10});return(0,G.jsx)(Rm,{role:`menuitemcheckbox`,checked:S,indicator:T,onSelect:()=>{h?C(!S):b&&f!==void 0?b.onChange(f):C(!S)},color:o,closeMenuOnClick:s,rightSection:c,disabled:u,dataDisabled:d,className:n,style:r,styles:i,classNames:t,buttonRef:_,others:v,children:l})});Bm.classes=zm,Bm.displayName=`@mantine/core/MenuCheckboxItem`;function Vm(e){let{children:t,disabled:n,longPressDelay:r}=K(`MenuContextMenu`,null,e),i=ht(t);if(!i)throw Error(`Menu.ContextMenu component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let a=Pm(),o=Kc(),s=qc({childProps:i.props,disabled:n||o.disabled,opened:a.opened,longPressDelay:r,setReference:o.reference,open:()=>a.openDropdown()});return(0,w.cloneElement)(i,s)}Vm.displayName=`@mantine/core/MenuContextMenu`;var Hm=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`MenuDivider`,null,e),s=Pm();return(0,G.jsx)(J,{...s.getStyles(`divider`,{className:n,style:r,styles:i,classNames:t}),...o})});Hm.classes=zm,Hm.displayName=`@mantine/core/MenuDivider`;var Um=500;function Wm(e){return((e.querySelector(`[data-menu-item-label]`)??e).textContent??``).trim().toLowerCase()}function Gm(e){return e.length>1&&e.split(``).every(t=>t===e[0])}function Km({enabled:e,opened:t,getDropdown:n}){let r=(0,w.useRef)({buffer:``,timeoutId:null});return(0,w.useEffect)(()=>{if(t&&e)return;let n=r.current;n.timeoutId!==null&&(window.clearTimeout(n.timeoutId),n.timeoutId=null),n.buffer=``},[t,e]),(0,w.useEffect)(()=>()=>{let{timeoutId:e}=r.current;e!==null&&window.clearTimeout(e)},[]),t=>{if(!e||t.defaultPrevented||t.ctrlKey||t.metaKey||t.altKey||t.key.length!==1||t.key===` `)return;let i=t.target;if(i&&(i.tagName===`INPUT`||i.tagName===`TEXTAREA`||i.tagName===`SELECT`||i.isContentEditable))return;let a=n();if(!a)return;let o=Array.from(a.querySelectorAll(`[data-menu-item]:not([data-disabled])`)).filter(e=>e.closest(`[data-menu-dropdown]`)===a);if(o.length===0)return;let s=r.current;s.buffer=(s.buffer+t.key).toLowerCase(),s.timeoutId!==null&&window.clearTimeout(s.timeoutId),s.timeoutId=window.setTimeout(()=>{s.buffer=``,s.timeoutId=null},Um);let c=document.activeElement,l=c?o.indexOf(c):-1,u=null;if(s.buffer.length===1||Gm(s.buffer)){let e=s.buffer[0],t=l+1;for(let n=0;n<o.length;n+=1){let r=(t+n)%o.length;if(Wm(o[r]).startsWith(e)){u=o[r];break}}}else for(let e=0;e<o.length;e+=1)if(Wm(o[e]).startsWith(s.buffer)){u=o[e];break}u&&(t.preventDefault(),u.focus())}}var qm=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,onMouseEnter:o,onMouseLeave:s,onKeyDown:c,children:l,ref:u,...d}=K(`MenuDropdown`,null,e),f=(0,w.useRef)(null),p=Pm(),m=Km({enabled:!p.hasSearch,opened:p.opened,getDropdown:()=>f.current}),h=V(c,e=>{m(e),!(e.defaultPrevented||p.hasSearch)&&(e.key===`ArrowUp`||e.key===`ArrowDown`)&&(e.preventDefault(),f.current?.querySelectorAll(`[data-menu-item]:not(:disabled)`)[0]?.focus())}),g=V(o,()=>(p.trigger===`hover`||p.trigger===`click-hover`)&&p.openDropdown()),_=V(s,()=>(p.trigger===`hover`||p.trigger===`click-hover`)&&p.closeDropdown());return(0,G.jsxs)(ol.Dropdown,{...d,onMouseEnter:g,onMouseLeave:_,role:`menu`,"aria-orientation":`vertical`,ref:Me(u,f),...p.getStyles(`dropdown`,{className:n,style:r,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:h,children:[p.withInitialFocusPlaceholder&&!p.hasSearch&&(0,G.jsx)(`div`,{role:`presentation`,tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),l]})});qm.classes=zm,qm.displayName=`@mantine/core/MenuDropdown`;var Jm=Fr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,closeMenuOnClick:s,leftSection:c,rightSection:l,children:u,disabled:d,"data-disabled":f,ref:p,...m}=K(`MenuItem`,null,e),h=Pm(),g=(0,w.use)(Lm),_=xn(),{dir:v}=Ur(),y=(0,w.useRef)(null),b=m,x=V(b.onClick,()=>{f||(typeof s==`boolean`?s&&h.closeDropdownImmediately():h.closeOnItemClick&&h.closeDropdownImmediately())}),S=V(b.onMouseMove,()=>{if(!h.hasSearch)return;let e=y.current?.closest(`[data-menu-dropdown]`);e&&e.querySelectorAll(`[data-menu-active]`).forEach(t=>{t!==y.current&&t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}),C=o?_.variantColorResolver({color:o,theme:_,variant:`light`}):void 0,T=o?Ft({color:o,theme:_}):null,E=V(b.onKeyDown,e=>{e.key===`ArrowLeft`&&g&&(g.close(),g.focusParentItem())});return(0,G.jsxs)(fc,{onMouseDown:e=>e.preventDefault(),...m,unstyled:h.unstyled,tabIndex:h.menuItemTabIndex,...h.getStyles(`item`,{className:n,style:r,styles:i,classNames:t}),ref:Me(y,p),role:`menuitem`,disabled:d,"data-menu-item":!0,"data-disabled":d||f||void 0,"data-mantine-stop-propagation":!0,onClick:x,onMouseMove:S,onKeyDown:j({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:h.loop,dir:v,orientation:`vertical`,onKeyDown:E}),__vars:{"--menu-item-color":T?.isThemeColor&&T?.shade===void 0?`var(--mantine-color-${T.color}-6)`:C?.color,"--menu-item-hover":C?.hover},children:[h.alignItemsLabels===`all`&&(0,G.jsx)(`div`,{...h.getStyles(`itemIndicator`,{styles:i,classNames:t}),"data-placeholder":!0}),c&&(0,G.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`left`,children:c}),u&&(0,G.jsx)(`div`,{...h.getStyles(`itemLabel`,{styles:i,classNames:t}),"data-menu-item-label":!0,children:u}),l&&(0,G.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`right`,children:l})]})});Jm.classes=zm,Jm.displayName=`@mantine/core/MenuItem`;var Ym=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`MenuLabel`,null,e),s=Pm();return(0,G.jsx)(J,{...s.getStyles(`label`,{className:n,style:r,styles:i,classNames:t}),...o})});Ym.classes=zm,Ym.displayName=`@mantine/core/MenuLabel`;var Xm=(0,w.createContext)(null);function Zm(e){let{value:t,defaultValue:n,onChange:r,children:i}=K(`MenuRadioGroup`,null,e),[a,o]=Ne({value:t,defaultValue:n,finalValue:null,onChange:r});return(0,G.jsx)(Xm,{value:{value:a,onChange:e=>o(e)},children:i})}Zm.displayName=`@mantine/core/MenuRadioGroup`;function Qm({size:e,style:t,...n}){return(0,G.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 5 5`,style:{width:v(e),height:v(e),...t},"aria-hidden":!0,...n,children:(0,G.jsx)(`circle`,{cx:`2.5`,cy:`2.5`,r:`2.5`,fill:`currentColor`})})}var $m=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,closeMenuOnClick:s,rightSection:c,children:l,disabled:u,"data-disabled":d,value:f,checked:p,onChange:m,checkIcon:h,ref:g,..._}=K(`MenuRadioItem`,null,e),v=Pm(),y=(0,w.use)(Xm),b=p??(y?y.value===f:!1),x=h??v.checkIcon??(0,G.jsx)(Qm,{size:5});return(0,G.jsx)(Rm,{role:`menuitemradio`,checked:b,indicator:x,onSelect:()=>{b||(m?m(f):y&&y.onChange(f))},color:o,closeMenuOnClick:s,rightSection:c,disabled:u,dataDisabled:d,className:n,style:r,styles:i,classNames:t,buttonRef:g,others:_,children:l})});$m.classes=zm,$m.displayName=`@mantine/core/MenuRadioItem`;var eh=`[data-menu-item]:not([data-disabled])`,th=`[data-menu-active]`;function nh(e){return e?.closest(`[data-menu-dropdown]`)}function rh(e){return e?Array.from(e.querySelectorAll(eh)).filter(t=>t.closest(`[data-menu-dropdown]`)===e):[]}function ih(e){e&&e.querySelectorAll(th).forEach(t=>{t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}function ah(e,t){ih(t),e&&(e.setAttribute(`data-menu-active`,`true`),e.scrollIntoView({block:`nearest`}))}function oh(e){return e.findIndex(e=>e.hasAttribute(`data-menu-active`))}var sh={clearSearchOnClose:!0},ch=q(e=>{let{classNames:t,styles:n,onKeyDown:r,onChange:i,size:a,clearSearchOnClose:o,ref:s,...c}=K(`MenuSearch`,sh,e),l=Pm(),u=(0,w.useRef)(null),d=Me(s,u),f=(0,w.useRef)(i);f.current=i,(0,w.useEffect)(()=>l.registerSearch(),[l.registerSearch]),(0,w.useEffect)(()=>{o?l.searchExitClearRef.current=()=>{f.current?.({currentTarget:{value:``}})}:l.searchExitClearRef.current=null},[o,l.searchExitClearRef]),(0,w.useEffect)(()=>{l.opened||ih(nh(u.current))},[l.opened]);let p=V(i,e=>{ih(nh(e.currentTarget))}),m=V(r,e=>{if(e.defaultPrevented)return;let t=nh(e.currentTarget),n=rh(t);if(e.key===`ArrowDown`){if(e.preventDefault(),n.length===0)return;let r=oh(n);ah(n[r>=n.length-1?l.loop?0:r:r+1]??null,t)}else if(e.key===`ArrowUp`){if(e.preventDefault(),n.length===0)return;let r=oh(n);ah(n[r<=0?r===-1||l.loop?n.length-1:0:r-1]??null,t)}else if(e.key===`Home`)e.preventDefault(),n.length>0&&ah(n[0],t);else if(e.key===`End`)e.preventDefault(),n.length>0&&ah(n[n.length-1],t);else if(e.key===`Enter`){if(e.nativeEvent.isComposing||e.nativeEvent.keyCode===229)return;let t=n[oh(n)];t&&(e.preventDefault(),t.hasAttribute(`data-sub-menu-item`)?(t.focus(),t.dispatchEvent(new KeyboardEvent(`keydown`,{key:`ArrowRight`,bubbles:!0}))):t.click())}}),h=l.getStyles(`search`);return(0,G.jsx)(Ed,{"data-autofocus":!0,"data-mantine-stop-propagation":!0,type:`search`,size:a,...c,ref:d,classNames:[{input:h.className},t],styles:[{input:h.style},n],onKeyDown:m,onChange:p,__staticSelector:`Menu`})});ch.classes=zm,ch.displayName=`@mantine/core/MenuSearch`;var lh=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,onMouseEnter:o,onMouseLeave:s,onPointerEnter:c,onPointerLeave:l,onKeyDown:u,children:d,ref:f,...p}=K(`MenuSubDropdown`,null,e),m=(0,w.useRef)(null),h=Pm(),g=(0,w.use)(Lm),_=Km({enabled:!h.hasSearch,opened:g?.opened??!1,getDropdown:()=>m.current}),v=V(u,e=>{_(e),!e.ctrlKey&&!e.metaKey&&!e.altKey&&e.key.length===1&&e.key!==` `&&e.stopPropagation()}),y=g?.getFloatingProps({onMouseEnter:o,onMouseLeave:s,onPointerEnter:c,onPointerLeave:l});return(0,G.jsx)(ol.Dropdown,{...p,...y,role:`menu`,"aria-orientation":`vertical`,ref:Me(f,m,g?.setFloating),...h.getStyles(`dropdown`,{className:n,style:r,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:v,children:d})});lh.classes=zm,lh.displayName=`@mantine/core/MenuSubDropdown`;var uh=Fr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,leftSection:s,rightSection:c,children:l,disabled:u,"data-disabled":d,closeMenuOnClick:f,ref:p,...m}=K(`MenuSubItem`,null,e),h=Pm(),g=(0,w.use)(Lm),_=xn(),{dir:v}=Ur(),y=(0,w.useRef)(null),b=m,x=o?_.variantColorResolver({color:o,theme:_,variant:`light`}):void 0,S=o?Ft({color:o,theme:_}):null,C=V(b.onKeyDown,e=>{e.key===`ArrowRight`&&(g?.open(),g?.focusFirstItem()),e.key===`ArrowLeft`&&g?.parentContext&&(g.parentContext.close(),g.parentContext.focusParentItem())}),T=V(b.onClick,()=>{!d&&f&&h.closeDropdownImmediately()}),E=V(b.onMouseMove,()=>{if(!h.hasSearch)return;let e=y.current?.closest(`[data-menu-dropdown]`);e&&e.querySelectorAll(`[data-menu-active]`).forEach(t=>{t!==y.current&&t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}),D=g?.getReferenceProps({onMouseEnter:b.onMouseEnter,onMouseLeave:b.onMouseLeave,onPointerEnter:b.onPointerEnter,onPointerLeave:b.onPointerLeave});return(0,G.jsxs)(fc,{onMouseDown:e=>e.preventDefault(),...m,...D,unstyled:h.unstyled,tabIndex:h.menuItemTabIndex,...h.getStyles(`item`,{className:n,style:r,styles:i,classNames:t}),ref:Me(y,p,g?.setReference),role:`menuitem`,disabled:u,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":u||d||void 0,"data-mantine-stop-propagation":!0,onClick:T,onMouseMove:E,onKeyDown:j({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:h.loop,dir:v,orientation:`vertical`,onKeyDown:C}),__vars:{"--menu-item-color":S?.isThemeColor&&S?.shade===void 0?`var(--mantine-color-${S.color}-6)`:x?.color,"--menu-item-hover":x?.hover},children:[h.alignItemsLabels===`all`&&(0,G.jsx)(`div`,{...h.getStyles(`itemIndicator`,{styles:i,classNames:t}),"data-placeholder":!0}),s&&(0,G.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`left`,children:s}),l&&(0,G.jsx)(`div`,{...h.getStyles(`itemLabel`,{styles:i,classNames:t}),"data-menu-item-label":!0,children:l}),(0,G.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`right`,children:c||(0,G.jsx)(Fd,{...h.getStyles(`chevron`),size:14})})]})});uh.classes=zm,uh.displayName=`@mantine/core/MenuSubItem`;function dh({children:e,refProp:t}){if(!T(e))throw Error(`Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);return Pm(),(0,G.jsx)(ol.Target,{refProp:t,popupType:`menu`,children:e})}dh.displayName=`@mantine/core/MenuSubTarget`;var fh={offset:0,position:`right-start`,safeAreaPolygon:!0,transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function ph(e){let{children:t,closeDelay:n,openDelay:r,position:i,safeAreaPolygon:a,opened:o,onChange:s,...c}=K(`MenuSub`,fh,e),l=Oe(),[u,d]=Ne({value:o,finalValue:!1,onChange:s}),f=(0,w.use)(Lm),p=Pm(),{dir:m}=Ur(),h=Tc(m,i),g=f?.registerOpenSub??p.registerOpenSub,_=(0,w.useRef)(null),v=(0,w.useCallback)(e=>{let t=_.current;return t&&t!==e&&t(),_.current=e,()=>{_.current===e&&(_.current=null)}},[]),y=(0,w.useRef)(d);y.current=d;let b=(0,w.useCallback)(()=>y.current(!0),[]),x=(0,w.useCallback)(()=>y.current(!1),[]);(0,w.useEffect)(()=>{if(u)return g(x)},[u,g,x]);let{context:S,refs:C}=Ys({placement:h,open:u,onOpenChange:e=>{e?b():x()}}),{getReferenceProps:T,getFloatingProps:E}=$s([Is(S,{handleClose:a?ac(typeof a==`object`?a:void 0):void 0,delay:{open:r,close:n}})]);return(0,G.jsx)(Lm,{value:{opened:u,close:x,open:b,focusFirstItem:()=>window.setTimeout(()=>{document.getElementById(`${l}-dropdown`)?.querySelectorAll(`[data-menu-item]:not([data-disabled])`)[0]?.focus()},16),focusParentItem:()=>window.setTimeout(()=>{document.getElementById(`${l}-target`)?.focus()},16),parentContext:f,setReference:C.setReference,setFloating:C.setFloating,getReferenceProps:T,getFloatingProps:E,registerOpenSub:v},children:(0,G.jsx)(ol,{opened:u,onChange:e=>e?b():x(),withArrow:!1,id:l,position:i,...c,withinPortal:!1,children:t})})}ph.extend=e=>e,ph.displayName=`@mantine/core/MenuSub`,ph.Target=dh,ph.Dropdown=lh,ph.Item=uh;var mh={refProp:`ref`};function hh(e){let{children:t,refProp:n,...r}=K(`MenuTarget`,mh,e),i=ht(t);if(!i)throw Error(`Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let a=Pm(),o=i.props,s=V(o.onClick,()=>{a.trigger===`click`?a.toggleDropdown():a.trigger===`click-hover`&&(a.setOpenedViaClick(!0),a.opened||a.openDropdown())}),c=V(o.onMouseEnter,()=>(a.trigger===`hover`||a.trigger===`click-hover`)&&a.openDropdown()),l=V(o.onMouseLeave,()=>{(a.trigger===`hover`||a.trigger===`click-hover`&&!a.openedViaClick)&&a.closeDropdown()});return(0,G.jsx)(ol.Target,{refProp:n,popupType:`menu`,...r,children:(0,w.cloneElement)(i,{onClick:s,onMouseEnter:c,onMouseLeave:l,"data-expanded":a.opened?!0:void 0})})}hh.displayName=`@mantine/core/MenuTarget`;var gh={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:[`mousedown`,`touchstart`,`keydown`],loop:!0,trigger:`click`,openDelay:0,closeDelay:100,menuItemTabIndex:-1,alignItemsLabels:`with-indicators`},_h=q(e=>{let t=K(`Menu`,gh,e),{children:n,onOpen:r,onClose:i,opened:a,defaultOpened:o,trapFocus:s,onChange:c,closeOnItemClick:l,loop:u,closeOnEscape:d,trigger:f,openDelay:p,closeDelay:m,classNames:h,styles:g,unstyled:_,variant:v,vars:y,menuItemTabIndex:b,keepMounted:x,withInitialFocusPlaceholder:S,attributes:C,onExitTransitionEnd:T,alignItemsLabels:E,checkIcon:D,...O}=t,k=Qn({name:`Menu`,classes:zm,props:t,classNames:h,styles:g,unstyled:_,attributes:C}),[A,j]=Ne({value:a,defaultValue:o,finalValue:!1,onChange:c}),[M,N]=(0,w.useState)(!1),P=()=>{j(!1),N(!1),A&&i?.()},F=()=>{j(!0),!A&&r?.()},I=()=>{A?P():F()},{openDropdown:L,closeDropdown:R}=Ec({open:F,close:P,closeDelay:m,openDelay:p}),z=(0,w.useRef)(null),ee=(0,w.useCallback)(e=>{let t=z.current;return t&&t!==e&&t(),z.current=e,()=>{z.current===e&&(z.current=null)}},[]),B=(0,w.useRef)(0),[V,te]=(0,w.useState)(!1),ne=(0,w.useCallback)(()=>(B.current+=1,B.current===1&&te(!0),()=>{--B.current,B.current===0&&te(!1)}),[]),H=(0,w.useRef)(null),ie=()=>{H.current?.(),T?.()},ae=e=>re(`[data-menu-item]`,`[data-menu-dropdown]`,e),{resolvedClassNames:U,resolvedStyles:W}=Ln({classNames:h,styles:g,props:t});return(0,G.jsx)(Nm,{value:{getStyles:k,opened:A,toggleDropdown:I,getItemIndex:ae,openedViaClick:M,setOpenedViaClick:N,closeOnItemClick:l,closeDropdown:f===`click`?P:R,openDropdown:f===`click`?F:L,closeDropdownImmediately:P,loop:u,trigger:f,unstyled:_,menuItemTabIndex:b,withInitialFocusPlaceholder:S,registerOpenSub:ee,hasSearch:V,registerSearch:ne,searchExitClearRef:H,alignItemsLabels:E,checkIcon:D},children:(0,G.jsx)(ol,{returnFocus:!0,...O,opened:A,onChange:I,defaultOpened:o,trapFocus:!x&&s,closeOnEscape:d,__staticSelector:`Menu`,classNames:U,styles:W,unstyled:_,variant:v,keepMounted:x,onExitTransitionEnd:ie,children:n})})});_h.displayName=`@mantine/core/Menu`,_h.classes=zm,_h.Item=Jm,_h.Label=Ym,_h.Dropdown=qm,_h.Target=hh,_h.Divider=Hm,_h.Search=ch,_h.Sub=ph,_h.CheckboxItem=Bm,_h.CheckboxGroup=Im,_h.RadioItem=$m,_h.RadioGroup=Zm,_h.ContextMenu=Vm;var[vh,yh]=E(`Modal component was not found in tree`),bh={root:`m_9df02822`,content:`m_54c44539`,inner:`m_1f958f16`,header:`m_d0e2b9cd`},xh=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ModalBody`,null,e),s=yh();return(0,G.jsx)(Ju,{...s.getStyles(`body`,{classNames:t,style:r,styles:i,className:n}),...o})});xh.classes=bh,xh.displayName=`@mantine/core/ModalBody`;var Sh=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ModalCloseButton`,null,e),s=yh();return(0,G.jsx)(Yu,{...s.getStyles(`close`,{classNames:t,style:r,styles:i,className:n}),...o})});Sh.classes=bh,Sh.displayName=`@mantine/core/ModalCloseButton`;var Ch=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,__hidden:s,...c}=K(`ModalContent`,null,e),l=yh(),u=l.scrollAreaComponent||rd;return(0,G.jsx)(Xu,{...l.getStyles(`content`,{className:n,style:r,styles:i,classNames:t}),innerProps:l.getStyles(`inner`,{className:n,style:r,styles:i,classNames:t}),"data-full-screen":l.fullScreen||void 0,"data-modal-content":!0,"data-hidden":s||void 0,...c,children:(0,G.jsx)(u,{style:{maxHeight:l.fullScreen?`100dvh`:`calc(100dvh - (${v(l.yOffset)} * 2))`},children:o})})});Ch.classes=bh,Ch.displayName=`@mantine/core/ModalContent`;var wh=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ModalHeader`,null,e),s=yh();return(0,G.jsx)(Zu,{...s.getStyles(`header`,{classNames:t,style:r,styles:i,className:n}),...o})});wh.classes=bh,wh.displayName=`@mantine/core/ModalHeader`;var Th=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ModalOverlay`,null,e),s=yh();return(0,G.jsx)(ed,{...s.getStyles(`overlay`,{classNames:t,style:r,styles:i,className:n}),...o})});Th.classes=bh,Th.displayName=`@mantine/core/ModalOverlay`;var Eh={__staticSelector:`Modal`,closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:N(`modal`),transitionProps:{duration:200,transition:`fade-down`},yOffset:`5dvh`},Dh=gt((e,{radius:t,size:n,yOffset:r,xOffset:i})=>({root:{"--modal-radius":t===void 0?void 0:R(t),"--modal-size":I(n,`modal-size`),"--modal-y-offset":v(r),"--modal-x-offset":v(i)}})),Oh=q(e=>{let t=K(`ModalRoot`,Eh,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,yOffset:c,scrollAreaComponent:l,radius:u,fullScreen:d,centered:f,xOffset:p,__staticSelector:m,attributes:h,...g}=t,_=Qn({name:m,classes:bh,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:Dh});return(0,G.jsx)(vh,{value:{yOffset:c,scrollAreaComponent:l,getStyles:_,fullScreen:d},children:(0,G.jsx)(Gu,{..._(`root`),"data-full-screen":d||void 0,"data-centered":f||void 0,"data-offset-scrollbars":l===cc.Autosize||void 0,unstyled:o,...g})})});Oh.classes=bh,Oh.varsResolver=Dh,Oh.displayName=`@mantine/core/ModalRoot`;var kh=(0,w.createContext)(null);function Ah({children:e}){let[t,n]=(0,w.useState)([]),[r,i]=(0,w.useState)(N(`modal`)),[a]=(0,w.useState)(()=>new WeakSet);return(0,G.jsx)(kh,{value:{stack:t,addModal:(e,t)=>{n(t=>[...new Set([...t,e])]),i(e=>typeof t==`number`&&typeof e==`number`?Math.max(e,t):e)},removeModal:e=>n(t=>t.filter(t=>t!==e)),getZIndex:e=>`calc(${r} + ${t.indexOf(e)} + 1)`,currentId:t[t.length-1],maxZIndex:r,handledEscapeEvents:a},children:e})}Ah.displayName=`@mantine/core/ModalStack`;var jh=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ModalTitle`,null,e),s=yh();return(0,G.jsx)(nd,{...s.getStyles(`title`,{classNames:t,style:r,styles:i,className:n}),...o})});jh.classes=bh,jh.displayName=`@mantine/core/ModalTitle`;var Mh={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:N(`modal`),transitionProps:{duration:200,transition:`fade-down`},withOverlay:!0,withCloseButton:!0},Nh=q(e=>{let{title:t,withOverlay:n,overlayProps:r,withCloseButton:i,closeButtonProps:a,children:o,radius:s,opened:c,stackId:l,zIndex:u,...d}=K(`Modal`,Mh,e),f=(0,w.use)(kh),p=!!t||i,m=f&&l?{closeOnEscape:f.currentId===l,trapFocus:f.currentId===l,zIndex:f.getZIndex(l),__handledEscapeEvents:f.handledEscapeEvents}:{},h=n===!1?!1:l&&f?f.currentId===l:c;return(0,w.useEffect)(()=>{f&&l&&(c?f.addModal(l,u||N(`modal`)):f.removeModal(l))},[c,l,u]),(0,G.jsxs)(Oh,{radius:s,opened:c,zIndex:f&&l?f.getZIndex(l):u,...d,...m,children:[n&&(0,G.jsx)(Th,{visible:h,transitionProps:f&&l?{duration:0}:void 0,...r}),(0,G.jsxs)(Ch,{radius:s,__hidden:f&&l&&c?l!==f.currentId:!1,children:[p&&(0,G.jsxs)(wh,{children:[t&&(0,G.jsx)(jh,{children:t}),i&&(0,G.jsx)(Sh,{...a})]}),(0,G.jsx)(xh,{children:o})]})]})});Nh.classes=bh,Nh.displayName=`@mantine/core/Modal`,Nh.Root=Oh,Nh.Overlay=Th,Nh.Content=Ch,Nh.Body=xh,Nh.Header=wh,Nh.Title=jh,Nh.CloseButton=Sh,Nh.Stack=Ah;var Ph=(0,w.createContext)(null),Fh={root:`m_7cda1cd6`,"root--default":`m_44da308b`,"root--contrast":`m_e3a01f8`,label:`m_1e0e6180`,remove:`m_ae386778`,group:`m_1dcfd90b`},Ih=(0,w.createContext)(null),Lh=gt((e,{gap:t},{size:n})=>({group:{"--pg-gap":t===void 0?I(n,`pg-gap`):I(t)}})),Rh=q(e=>{let t=K(`PillGroup`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,size:c,disabled:l,attributes:u,...d}=t,f=(0,w.use)(Ph)?.size||c||void 0,p=Qn({name:`PillGroup`,classes:Fh,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:Lh,stylesCtx:{size:f},rootSelector:`group`});return(0,G.jsx)(Ih,{value:{size:f,disabled:l},children:(0,G.jsx)(J,{size:f,...p(`group`),...d})})});Rh.classes=Fh,Rh.varsResolver=Lh,Rh.displayName=`@mantine/core/PillGroup`;var zh={variant:`default`},Bh=gt((e,{radius:t},{size:n})=>({root:{"--pill-fz":I(n,`pill-fz`),"--pill-height":I(n,`pill-height`),"--pill-radius":t===void 0?void 0:R(t)}})),Vh=q(e=>{let t=K(`Pill`,zh,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,variant:c,children:l,withRemoveButton:u,onRemove:d,removeButtonProps:f,radius:p,size:m,disabled:h,mod:g,attributes:_,...v}=t,y=(0,w.use)(Ih),b=(0,w.use)(Ph),x=m||y?.size||void 0,S=b?.variant===`filled`?`contrast`:c||`default`,C=Qn({name:`Pill`,classes:Fh,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:_,vars:s,varsResolver:Bh,stylesCtx:{size:x}});return(0,G.jsxs)(J,{component:`span`,variant:S,size:x,...C(`root`,{variant:S}),mod:[{"with-remove":u&&!h,disabled:h||y?.disabled},g],...v,children:[(0,G.jsx)(`span`,{...C(`label`),children:l}),u&&(0,G.jsx)(Dl,{variant:`transparent`,radius:p,tabIndex:-1,"aria-hidden":!0,unstyled:o,...f,...C(`remove`,{className:f?.className,style:f?.style}),onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),f?.onMouseDown?.(e)},onClick:e=>{e.stopPropagation(),d?.(),f?.onClick?.(e)}})]})});Vh.classes=Fh,Vh.varsResolver=Bh,Vh.displayName=`@mantine/core/Pill`,Vh.Group=Rh;var Hh={field:`m_45c4369d`},Uh={type:`visible`},Wh=q(e=>{let t=K(`PillsInputField`,Uh,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,type:c,disabled:l,id:u,pointer:d,mod:f,attributes:p,ref:m,...h}=t,g=(0,w.use)(Ph),_=(0,w.use)(cd),v=Qn({name:`PillsInputField`,classes:Hh,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,rootSelector:`field`}),y=l||g?.disabled;return(0,G.jsx)(J,{component:`input`,ref:Me(m,g?.fieldRef),"data-type":c,disabled:y,mod:[{disabled:y,pointer:d},f],...v(`field`),...h,id:_?.inputId||u,"aria-invalid":g?.hasError,"aria-describedby":_?.describedBy,type:`text`,onMouseDown:e=>!d&&e.stopPropagation()})});Wh.classes=Hh,Wh.displayName=`@mantine/core/PillsInputField`;var Gh={size:`sm`},Kh=q(e=>{let{children:t,onMouseDown:n,onClick:r,size:i,disabled:a,__staticSelector:o,error:s,variant:c,...l}=K([`Input`,`InputWrapper`,`PillsInput`],Gh,e),u=(0,w.useRef)(null);return(0,G.jsx)(Ph,{value:{fieldRef:u,size:i,disabled:a,hasError:!!s,variant:c},children:(0,G.jsx)(kd,{size:i,error:s,variant:c,component:`div`,"data-no-overflow":!0,onMouseDown:e=>{e.preventDefault(),n?.(e),u.current?.focus()},onClick:e=>{e.preventDefault(),e.currentTarget.closest(`fieldset`)?.disabled||(u.current?.focus(),r?.(e))},...l,multiline:!0,disabled:a,__staticSelector:o||`PillsInput`,withAria:!1,children:t})})});Kh.displayName=`@mantine/core/PillsInput`,Kh.classes=kd.classes,Kh.Field=Wh;function qh(e,t){let n=t.trim().toLowerCase();if(n===``)return;let r=Object.values(e).filter(e=>!e.disabled&&e.label.trim().toLowerCase()===n);return r.length===1?r[0]:void 0}function Jh(e){return typeof e==`string`?e.trim().toLowerCase():e}function Yh({data:e,value:t}){let n=t.map(Jh);return e.reduce((e,t)=>(vp(t)?e.push({group:t.group,items:t.items.filter(e=>n.indexOf(Jh(e.value))===-1)}):n.indexOf(Jh(t.value))===-1&&e.push(t),e),[])}var Xh={xs:41,sm:50,md:60,lg:72,xl:89},Zh={maxValues:1/0,withCheckIcon:!0,checkIconPosition:`left`,hiddenInputValuesDivider:`,`,clearSearchOnChange:!0,openOnFocus:!0,size:`sm`},Qh=Pr(e=>{let t=K([`Input`,`InputWrapper`,`MultiSelect`],Zh,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,size:c,value:l,defaultValue:u,onChange:d,onKeyDown:f,variant:p,data:m,dropdownOpened:h,defaultDropdownOpened:g,onDropdownOpen:_,onDropdownClose:v,selectFirstOptionOnChange:y,selectFirstOptionOnDropdownOpen:b,onOptionSubmit:x,comboboxProps:S,filter:C,limit:T,withScrollArea:E,maxDropdownHeight:D,floatingHeight:O,searchValue:k,defaultSearchValue:A,onSearchChange:j,readOnly:M,disabled:N,onFocus:P,onBlur:F,radius:I,rightSection:L,rightSectionWidth:R,rightSectionPointerEvents:z,rightSectionProps:ee,leftSection:B,leftSectionWidth:V,leftSectionPointerEvents:te,leftSectionProps:ne,inputContainer:H,inputWrapperOrder:re,withAsterisk:ie,labelProps:ae,descriptionProps:U,errorProps:W,successProps:oe,wrapperProps:se,description:ce,label:le,error:ue,success:de,maxValues:fe,searchable:pe,nothingFoundMessage:me,withCheckIcon:he,withAlignedLabels:ge,checkIconPosition:_e,hidePickedOptions:ve,withErrorStyles:ye,withSuccessStyles:be,name:xe,form:Se,id:Ce,clearable:we,clearSectionMode:Te,clearButtonProps:Ee,hiddenInputProps:De,placeholder:ke,hiddenInputValuesDivider:Ae,required:je,mod:Me,renderOption:Pe,renderPill:Fe,onRemove:Ie,onClear:Le,onMaxValues:Re,scrollAreaProps:ze,chevronColor:Be,attributes:Ve,clearSearchOnChange:He,openOnFocus:Ue,loading:We,loadingPosition:Ge,withPillsReorder:Ke,...qe}=t,Je=Oe(Ce),Ye=kp({id:Je,label:le,labelProps:ae,inputWrapperOrder:re}),Xe=Pf(m),Ze=Ff(Xe),Qe=(0,w.useRef)({}),$e=lp({opened:h,defaultOpened:g,onDropdownOpen:()=>{_?.(),b&&$e.selectFirstOption()},onDropdownClose:()=>{v?.(),$e.resetSelectedOption()}}),{styleProps:et,rest:{type:tt,autoComplete:nt,...rt}}=or(qe),[it,at]=Ne({value:l,defaultValue:u,finalValue:[],onChange:d}),{getPillProps:ot,getListProps:st,handleInputKeyDown:ct}=Op({value:it,onChange:at,enabled:Ke&&!N&&!M}),[lt,ut]=Ne({value:k,defaultValue:A,finalValue:``,onChange:j}),dt=e=>{ut(e),$e.resetSelectedOption()},ft=Qn({name:`MultiSelect`,classes:{},props:t,classNames:n,styles:a,unstyled:o,attributes:Ve}),{resolvedClassNames:pt,resolvedStyles:mt}=Ln({props:t,styles:a,classNames:n}),ht=e=>{f?.(e),!e.defaultPrevented&&(e.key===` `&&!pe&&(e.preventDefault(),$e.toggleDropdown()),e.key===`Backspace`&&lt.length===0&&it.length>0&&!M&&(Ie?.(it[it.length-1]),at(it.slice(0,it.length-1))),ct(e))},gt=it.map((e,t)=>{let n=Ze[`${e}`]||Qe.current[`${e}`],r=ot(t);return Fe?(0,G.jsx)(w.Fragment,{children:Fe({option:n,value:e,onRemove:()=>{at(it.filter(t=>e!==t)),Ie?.(e)},disabled:N,reorderProps:r})},`${e}-${t}`):(0,G.jsx)(Vh,{withRemoveButton:!M&&!Ze[`${e}`]?.disabled,onRemove:()=>{at(it.filter(t=>e!==t)),Ie?.(e)},unstyled:o,disabled:N,...ft(`pill`),...r,children:n?.label||e},`${e}-${t}`)});(0,w.useEffect)(()=>{y&&$e.selectFirstOption()},[y,lt]),(0,w.useEffect)(()=>{it.forEach(e=>{`${e}`in Ze&&(Qe.current[`${e}`]=Ze[`${e}`])})},[Ze,it]);let _t=(0,G.jsx)(fp.ClearButton,{...Ee,onClear:()=>{Le?.(),at([]),dt(``)}}),vt=Yh({data:Xe,value:it}),yt=we&&it.length>0&&!N&&!M,bt=yt?{paddingInlineEnd:Xh[c]??Xh.sm}:void 0;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(fp,{store:$e,classNames:pt,styles:mt,unstyled:o,size:c,readOnly:M,__staticSelector:`MultiSelect`,attributes:Ve,floatingHeight:O,onOptionSubmit:e=>{x?.(e),He&&dt(``),$e.updateSelectedOptionIndex(`selected`),it.includes(Ze[`${e}`].value)?(at(it.filter(t=>t!==Ze[`${e}`].value)),Ie?.(Ze[`${e}`].value)):it.length<fe?at([...it,Ze[`${e}`].value]):Re?.()},...S,children:[(0,G.jsx)(fp.DropdownTarget,{children:(0,G.jsx)(Kh,{...et,__staticSelector:`MultiSelect`,classNames:pt,styles:mt,unstyled:o,size:c,className:r,style:i,variant:p,disabled:N,radius:I,__defaultRightSection:(0,G.jsx)(fp.Chevron,{size:c,error:ue,unstyled:o,color:Be}),__clearSection:_t,__clearable:yt,__clearSectionMode:Te,rightSection:L,rightSectionPointerEvents:z||`none`,rightSectionWidth:R,rightSectionProps:ee,leftSection:B,leftSectionWidth:V,leftSectionPointerEvents:te,leftSectionProps:ne,loading:We,loadingPosition:Ge,inputContainer:H,inputWrapperOrder:re,withAsterisk:ie,labelProps:ae,descriptionProps:U,errorProps:W,successProps:oe,wrapperProps:se,description:ce,label:le,error:ue,success:de,withErrorStyles:ye,withSuccessStyles:be,__stylesApiProps:{...t,rightSectionPointerEvents:z||`none`,multiline:!0},pointer:!pe,onClick:()=>pe?$e.openDropdown():$e.toggleDropdown(),"data-expanded":$e.dropdownOpened||void 0,id:Je,required:je,mod:Me,attributes:Ve,children:(0,G.jsxs)(Vh.Group,{attributes:Ve,disabled:N,unstyled:o,...ft(`pillsList`,{style:bt}),...st(),children:[gt,(0,G.jsx)(fp.EventsTarget,{autoComplete:nt,withExpandedAttribute:!0,children:(0,G.jsx)(Kh.Field,{...rt,id:Je,placeholder:ke,type:!pe&&!ke?`hidden`:`visible`,...ft(`inputField`),unstyled:o,onFocus:e=>{P?.(e),Ue&&pe&&$e.openDropdown()},onBlur:e=>{F?.(e),$e.closeDropdown(),dt(``)},onKeyDown:ht,value:lt,onChange:e=>{if(Xp(e)){if(!M){let t=qh(Ze,e.currentTarget.value);t&&!it.includes(t.value)&&it.length<fe&&at([...it,t.value])}}else dt(e.currentTarget.value),pe&&$e.openDropdown(),y&&$e.selectFirstOption()},disabled:N,readOnly:M||!pe,pointer:!pe})})]})})}),(0,G.jsx)(wp,{data:ve?vt:Xe,hidden:M||N,filter:C,search:lt,limit:T,hiddenWhenEmpty:!me,withScrollArea:E,maxDropdownHeight:D,filterOptions:pe,value:it,checkIconPosition:_e,withCheckIcon:he,withAlignedLabels:ge,nothingFoundMessage:me,unstyled:o,labelId:Ye,"aria-label":Ye?void 0:qe[`aria-label`],renderOption:Pe,scrollAreaProps:ze})]}),(0,G.jsx)(fp.HiddenInput,{name:xe,valuesDivider:Ae,value:it,form:Se,disabled:N,...De})]})});Qh.classes={...kd.classes,...fp.classes},Qh.displayName=`@mantine/core/MultiSelect`;var $h={root:`m_f0824112`,description:`m_57492dcc`,section:`m_690090b5`,label:`m_1f6ac4c4`,body:`m_f07af9d2`,children:`m_e17b862f`,chevron:`m_1fd8a00b`},eg=gt((e,{variant:t,color:n,childrenOffset:r,autoContrast:i})=>{let a=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:t||`light`,autoContrast:i});return{root:{"--nl-bg":n||t?a.background:void 0,"--nl-hover":n||t?a.hover:void 0,"--nl-color":n||t?a.color:void 0},children:{"--nl-offset":L(r)}}}),tg=Fr(e=>{let t=K(`NavLink`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,opened:c,defaultOpened:l,onChange:u,children:d,active:f,disabled:p,leftSection:m,rightSection:h,label:g,description:_,disableRightSectionRotation:v,noWrap:y,childrenOffset:b,autoContrast:x,mod:S,attributes:C,onClick:w,onKeyDown:T,keepMounted:E,...D}=t,O=Qn({name:`NavLink`,props:t,classes:$h,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:C,vars:s,varsResolver:eg}),[k,A]=Ne({value:c,defaultValue:l,finalValue:!1,onChange:u}),j=!!d,M=e=>{w?.(e),j&&(e.preventDefault(),A(!k))};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(fc,{...O(`root`),component:`a`,onClick:M,onKeyDown:e=>{T?.(e),e.nativeEvent.code===`Space`&&j&&(e.preventDefault(),A(!k))},unstyled:o,mod:[{disabled:p,active:f,expanded:k},S],...D,children:[m&&(0,G.jsx)(J,{component:`span`,...O(`section`),mod:{position:`left`},children:m}),(0,G.jsxs)(J,{...O(`body`),mod:{"no-wrap":y},children:[(0,G.jsx)(J,{component:`span`,...O(`label`),children:g}),(0,G.jsx)(J,{component:`span`,mod:{active:f},...O(`description`),children:_})]}),(j||h!==void 0)&&(0,G.jsx)(J,{...O(`section`),component:`span`,mod:{rotate:k&&!v,position:`right`},children:j&&h===void 0?(0,G.jsx)(Fd,{...O(`chevron`)}):h})]}),j&&(0,G.jsx)(Gr,{expanded:k,keepMounted:E,...O(`collapse`),children:(0,G.jsx)(`div`,{...O(`children`),children:d})})]})});tg.classes=$h,tg.varsResolver=eg,tg.displayName=`@mantine/core/NavLink`;var ng={root:`m_a513464`,icon:`m_a4ceffb`,loader:`m_b0920b15`,body:`m_a49ed24`,title:`m_3feedf16`,description:`m_3d733a3a`,closeButton:`m_919a4d88`},rg={withCloseButton:!0},ig=gt((e,{radius:t,color:n})=>({root:{"--notification-radius":t===void 0?void 0:R(t),"--notification-color":n?It(n,e):void 0}})),ag=q(e=>{let t=K(`Notification`,rg,e),{className:n,color:r,radius:i,loading:a,withCloseButton:o,withBorder:s,title:c,icon:l,children:u,onClose:d,closeButtonProps:f,classNames:p,style:m,styles:h,unstyled:g,vars:_,mod:v,loaderProps:y,role:b,attributes:x,...S}=t,C=Qn({name:`Notification`,classes:ng,props:t,className:n,style:m,classNames:p,styles:h,unstyled:g,attributes:x,vars:_,varsResolver:ig});return(0,G.jsxs)(J,{...C(`root`),mod:[{withIcon:!!l||a,withBorder:s},v],role:b||`alert`,...S,children:[l&&!a&&(0,G.jsx)(`div`,{...C(`icon`),children:l}),a&&(0,G.jsx)(ml,{size:28,color:r,...C(`loader`),...y}),(0,G.jsxs)(`div`,{...C(`body`),children:[c&&(0,G.jsx)(`div`,{...C(`title`),children:c}),(0,G.jsx)(J,{...C(`description`),mod:{withTitle:!!c},children:u})]}),o&&(0,G.jsx)(Dl,{iconSize:16,color:`gray`,...f,unstyled:g,onClick:e=>{f?.onClick?.(e),d?.()},...C(`closeButton`)})]})});ag.classes=ng,ag.varsResolver=ig,ag.displayName=`@mantine/core/Notification`;function og(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var sg;(function(e){e.event=`event`,e.props=`prop`})(sg||={});function cg(){}function lg(e){var t,n=void 0;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t&&r.length===t.length&&r.every(function(e,n){return e===t[n]})||(t=r,n=e.apply(void 0,r)),n}}function ug(e){return!!(e||``).match(/\d/)}function dg(e){return e==null}function fg(e){return typeof e==`number`&&isNaN(e)}function pg(e){return dg(e)||fg(e)||typeof e==`number`&&!isFinite(e)}function mg(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,`\\$&`)}function hg(e){switch(e){case`lakh`:return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case`wan`:return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}function gg(e,t,n){var r=hg(n),i=e.search(/[1-9]/);return i=i===-1?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(r,`$1`+t)}function _g(e){var t=(0,w.useRef)(e);return t.current=e,(0,w.useRef)(function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}).current}function vg(e,t){t===void 0&&(t=!0);var n=e[0]===`-`,r=n&&t;e=e.replace(`-`,``);var i=e.split(`.`);return{beforeDecimal:i[0],afterDecimal:i[1]||``,hasNegation:n,addNegation:r}}function yg(e){if(!e)return e;var t=e[0]===`-`;t&&(e=e.substring(1,e.length));var n=e.split(`.`),r=n[0].replace(/^0+/,``)||`0`,i=n[1]||``;return(t?`-`:``)+r+(i?`.`+i:``)}function bg(e,t,n){for(var r=``,i=n?`0`:``,a=0;a<=t-1;a++)r+=e[a]||i;return r}function xg(e,t){return Array(t+1).join(e)}function Sg(e){var t=e+``,n=t[0]===`-`?`-`:``;n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],a=r[1];if(a=Number(a),!a)return n+i;i=i.replace(`.`,``);var o=1+a,s=i.length;return o<0?i=`0.`+xg(`0`,Math.abs(o))+i:o>=s?i+=xg(`0`,o-s):i=(i.substring(0,o)||`0`)+`.`+i.substring(o),n+i}function Cg(e,t,n){if([``,`-`].indexOf(e)!==-1)return e;var r=(e.indexOf(`.`)!==-1||n)&&t,i=vg(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,c=parseFloat(`0.`+(o||`0`)),l=(o.length<=t?`0.`+o:c.toFixed(t)).split(`.`),u=a;a&&Number(l[0])&&(u=a.split(``).reverse().reduce(function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},l[0]));var d=bg(l[1]||``,t,n),f=s?`-`:``,p=r?`.`:``;return``+f+u+p+d}function wg(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move(`character`,t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var Tg=lg(function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[a-1-r]&&a-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}}),eee=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function Eg(e,t,n){return Math.min(Math.max(e,t),n)}function Dg(e){return Math.max(e.selectionStart,e.selectionEnd)}function Og(){return typeof navigator<`u`&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function kg(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:``}}function Ag(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function jg(e,t,n,r,i,a,o){o===void 0&&(o=Ag);var s=i.findIndex(function(e){return e}),c=e.slice(0,s);!t&&!n.startsWith(c)&&(t=c,n=c+n,r+=c.length);for(var l=n.length,u=e.length,d={},f=Array(l),p=0;p<l;p++){f[p]=-1;for(var m=0,h=u;m<h;m++)if(o({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:p,formattedValueIndex:m})&&d[m]!==!0){f[p]=m,d[m]=!0;break}}for(var g=r;g<l&&(f[g]===-1||!a(n[g]));)g++;var _=g===l||f[g]===-1?u:f[g];for(g=r-1;g>0&&f[g]===-1;)g--;var v=g===-1||f[g]===-1?0:f[g]+1;return v>_?_:r-v<_-r?v:_}function Mg(e,t,n,r){var i=e.length;if(t=Eg(t,0,i),r===`left`){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=i&&!n[t];)t++;t>i&&(t=n.lastIndexOf(!0))}return t===-1&&(t=i),t}function Ng(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(ug(e[n])||ug(e[n-1]));return t}function Pg(e,t,n,r,i,a){a===void 0&&(a=cg);var o=_g(function(e,t){var n,a;return pg(e)?(a=``,n=``):typeof e==`number`||t?(a=typeof e==`number`?Sg(e):e,n=r(a)):(a=i(e,void 0),n=r(a)),{formattedValue:n,numAsString:a}}),s=(0,w.useState)(function(){return o(dg(e)?t:e,n)}),c=s[0],l=s[1],u=_g(function(e,t){e.formattedValue!==c.formattedValue&&l({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}),d=e,f=n;dg(e)&&(d=c.numAsString,f=!0);var p=o(d,f);return(0,w.useMemo)(function(){l(p)},[p.formattedValue]),(0,w.useEffect)(function(){if(!dg(t)&&dg(e)&&c.formattedValue!==``){var n=parseFloat(c.numAsString);u({formattedValue:c.formattedValue,value:c.numAsString,floatValue:isNaN(n)?void 0:n},{event:void 0,source:sg.props})}},[]),[c,u]}function Fg(e){return e.replace(/[^0-9]/g,``)}function Ig(e){return e}function Lg(e){var t=e.type;t===void 0&&(t=`text`);var n=e.displayType;n===void 0&&(n=`input`);var r=e.customInput,i=e.renderText,a=e.getInputRef,o=e.format;o===void 0&&(o=Ig);var s=e.removeFormatting;s===void 0&&(s=Fg);var c=e.defaultValue,l=e.valueIsNumericString,u=e.onValueChange,d=e.isAllowed,f=e.onChange;f===void 0&&(f=cg);var p=e.onKeyDown;p===void 0&&(p=cg);var m=e.onMouseUp;m===void 0&&(m=cg);var h=e.onFocus;h===void 0&&(h=cg);var g=e.onBlur;g===void 0&&(g=cg);var _=e.value,v=e.getCaretBoundary;v===void 0&&(v=Ng);var y=e.isValidInputCharacter;y===void 0&&(y=ug);var b=e.isCharacterSame,x=og(e,[`type`,`displayType`,`customInput`,`renderText`,`getInputRef`,`format`,`removeFormatting`,`defaultValue`,`valueIsNumericString`,`onValueChange`,`isAllowed`,`onChange`,`onKeyDown`,`onMouseUp`,`onFocus`,`onBlur`,`value`,`getCaretBoundary`,`isValidInputCharacter`,`isCharacterSame`]),S=Pg(_,c,!!l,o,s,u),C=S[0],T=C.formattedValue,E=C.numAsString,D=S[1],O=(0,w.useRef)(),k=(0,w.useRef)({formattedValue:T,numAsString:E}),A=function(e,t){k.current={formattedValue:e.formattedValue,numAsString:e.value},D(e,t)},j=(0,w.useState)(!1),M=j[0],N=j[1],P=(0,w.useRef)(null),F=(0,w.useRef)({setCaretTimeout:null,focusTimeout:null});(0,w.useEffect)(function(){return N(!0),function(){clearTimeout(F.current.setCaretTimeout),clearTimeout(F.current.focusTimeout)}},[]);var I=o,L=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},R=function(e,t,n){(e.selectionStart!==0||e.selectionEnd!==e.value.length)&&(wg(e,t),F.current.setCaretTimeout=setTimeout(function(){e.value===n&&e.selectionStart!==t&&wg(e,t)},0))},z=function(e,t,n){return Mg(e,t,v(e),n)},ee=function(e,t,n){var r=v(t),i=jg(t,T,e,n,r,y,b);return i=Mg(t,i,r),i},B=function(e){var t=e.formattedValue;t===void 0&&(t=``);var n=e.input,r=e.source,i=e.event,a=e.numAsString,o;if(n){var s=e.inputValue||n.value,c=Dg(n);n.value=t,o=ee(s,t,c),o!==void 0&&R(n,o,t)}t!==T&&A(L(t,a),{event:i,source:r})};(0,w.useEffect)(function(){var e=k.current,t=e.formattedValue,n=e.numAsString;(T!==t||E!==n)&&A(L(T,E),{event:void 0,source:sg.props})},[T,E]);var V=P.current?Dg(P.current):void 0;(typeof window<`u`?w.useLayoutEffect:w.useEffect)(function(){var e=P.current;if(T!==k.current.formattedValue&&e){var t=ee(k.current.formattedValue,T,V);e.value=T,R(e,t,T)}},[T]);var te=function(e,t,n){var r=t.target,i=O.current?eee(O.current,r.selectionEnd):Tg(T,e),a=Object.assign(Object.assign({},i),{lastValue:T}),o=s(e,a),c=I(o);if(o=s(c,void 0),d&&!d(L(c,o))){var l=t.target,u=ee(e,T,Dg(l));return l.value=T,R(l,u,T),!1}return B({formattedValue:c,numAsString:o,inputValue:e,event:t,source:n,input:t.target}),!0},ne=function(e,t){t===void 0&&(t=0),O.current={selectionStart:e.selectionStart,selectionEnd:e.selectionEnd+t}},H=function(e){var t=e.target.value;te(t,e,sg.event)&&f(e),O.current=void 0},re=function(e){var t=e.target,n=e.key,r=t.selectionStart,i=t.selectionEnd,a=t.value;a===void 0&&(a=``);var o;n===`ArrowLeft`||n===`Backspace`?o=Math.max(r-1,0):n===`ArrowRight`?o=Math.min(r+1,a.length):n===`Delete`&&(o=r);var s=0;n===`Delete`&&r===i&&(s=1);var c=n===`ArrowLeft`||n===`ArrowRight`;if(o===void 0||r!==i&&!c)p(e),ne(t,s);else{var l=o;c?(l=z(a,o,n===`ArrowLeft`?`left`:`right`),l!==o&&e.preventDefault()):n===`Delete`&&!y(a[o])?l=z(a,o,`right`):n===`Backspace`&&!y(a[o])&&(l=z(a,o,`left`)),l!==o&&R(t,l,a),p(e),ne(t,s)}},ie=function(e){var t=e.target,n=function(){var e=t.selectionStart,n=t.selectionEnd,r=t.value;if(r===void 0&&(r=``),e===n){var i=z(r,e);i!==e&&R(t,i,r)}};n(),requestAnimationFrame(function(){n()}),m(e),ne(t)},ae=function(e){e.persist&&e.persist();var t=e.target,n=e.currentTarget;P.current=t,F.current.focusTimeout=setTimeout(function(){var r=t.selectionStart,i=t.selectionEnd,a=t.value;a===void 0&&(a=``);var o=z(a,r);o!==r&&(r!==0||i!==a.length)&&R(t,o,a),h(Object.assign(Object.assign({},e),{currentTarget:n}))},0)},U=function(e){P.current=null,clearTimeout(F.current.focusTimeout),clearTimeout(F.current.setCaretTimeout),g(e)},W=M&&Og()?`numeric`:void 0,oe=Object.assign({inputMode:W},x,{type:t,value:T,onChange:H,onKeyDown:re,onMouseUp:ie,onFocus:ae,onBlur:U});if(n===`text`)return i?w.createElement(w.Fragment,null,i(T,x)||null):w.createElement(`span`,Object.assign({},x,{ref:a}),T);if(r){var se=r;return w.createElement(se,Object.assign({},oe,{ref:a}))}return w.createElement(`input`,Object.assign({},oe,{ref:a}))}function Rg(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i=``);var a=t.suffix;a===void 0&&(a=``);var o=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s=`thousand`),e===``||e===`-`)return e;var c=zg(t),l=c.thousandSeparator,u=c.decimalSeparator,d=n!==0&&e.indexOf(`.`)!==-1||n&&r,f=vg(e,o),p=f.beforeDecimal,m=f.afterDecimal,h=f.addNegation;return n!==void 0&&(m=bg(m,n,!!r)),l&&(p=gg(p,l,s)),i&&(p=i+p),a&&(m+=a),h&&(p=`-`+p),e=p+(d&&u||``)+m,e}function zg(e){var t=e.decimalSeparator;t===void 0&&(t=`.`);var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=`,`),r||=[t,`.`],{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function Bg(e,t){e===void 0&&(e=``);var n=RegExp(`(-)`),r=RegExp(`(-)(.)*(-)`),i=n.test(e),a=r.test(e);return e=e.replace(/-/g,``),i&&!a&&t&&(e=`-`+e),e}function Vg(e,t){return RegExp(`(^-)|[0-9]|`+mg(e),t?`g`:void 0)}function Hg(e,t,n){return e===``||!t?.match(/\d/)&&!n?.match(/\d/)&&typeof e==`string`&&!isNaN(Number(e))}function Ug(e,t,n){var r;t===void 0&&(t=kg(e));var i=n.allowNegative,a=n.prefix;a===void 0&&(a=``);var o=n.suffix;o===void 0&&(o=``);var s=n.decimalScale,c=t.from,l=t.to,u=l.start,d=l.end,f=zg(n),p=f.allowedDecimalSeparators,m=f.decimalSeparator,h=e[d]===m;if(ug(e)&&(e===a||e===o)&&t.lastValue===``)return e;if(d-u===1&&p.indexOf(e[u])!==-1){var g=s===0?``:m;e=e.substring(0,u)+g+e.substring(u+1,e.length)}var _=function(e,t,n){var r=!1,i=!1;a.startsWith(`-`)?r=!1:e.startsWith(`--`)?(r=!1,i=!0):o.startsWith(`-`)&&e.length===o.length?r=!1:e[0]===`-`&&(r=!0);var s=+!!r;return i&&(s=2),s&&(e=e.substring(s),t-=s,n-=s),{value:e,start:t,end:n,hasNegation:r}},v=_(e,u,d),y=v.hasNegation;r=v,e=r.value,u=r.start,d=r.end;var b=_(t.lastValue,c.start,c.end),x=b.start,S=b.end,C=b.value,w=e.substring(u,d);e.length&&C.length&&(x>C.length-o.length||S<a.length)&&!(w&&o.startsWith(w))&&(e=C);var T=0;e.startsWith(a)?T+=a.length:u<a.length&&(T=u),e=e.substring(T),d-=T;var E=e.length,D=e.length-o.length;e.endsWith(o)?E=D:(d>D||d>e.length-o.length)&&(E=d),e=e.substring(0,E),e=Bg(y?`-`+e:e,i),e=(e.match(Vg(m,!0))||[]).join(``);var O=e.indexOf(m);e=e.replace(new RegExp(mg(m),`g`),function(e,t){return t===O?`.`:``});var k=vg(e,i),A=k.beforeDecimal,j=k.afterDecimal,M=k.addNegation;return l.end-l.start<c.end-c.start&&A===``&&h&&!parseFloat(j)&&(e=M?`-`:``),e}function Wg(e,t){var n=t.prefix;n===void 0&&(n=``);var r=t.suffix;r===void 0&&(r=``);var i=Array.from({length:e.length+1}).map(function(){return!0}),a=e[0]===`-`;i.fill(!1,0,Math.min(n.length+ +!!a,e.length));var o=e.length;return i.fill(!1,o-r.length+1,o+1),i}function Gg(e){var t=zg(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i=``);var a=e.allowNegative;if(a===void 0&&(a=!0),n===r)throw Error(`
42
42
  Decimal separator can't be same as thousand separator.
43
43
  thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
44
44
  decimalSeparator: `+r+` (default value for decimalSeparator is .)
@@ -46,7 +46,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
46
46
  Prefix can't start with '-' when allowNegative is true.
47
47
  prefix: `+i+`
48
48
  allowNegative: `+a+`
49
- `),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function Kg(e){e=Gg(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=cg);var a=e.onBlur;a===void 0&&(a=cg);var o=e.thousandSeparator,s=e.decimalScale,c=e.fixedDecimalScale,l=e.prefix;l===void 0&&(l=``);var u=e.defaultValue,d=e.value,f=e.valueIsNumericString,p=e.onValueChange,m=og(e,[`decimalSeparator`,`allowedDecimalSeparators`,`thousandsGroupStyle`,`suffix`,`allowNegative`,`allowLeadingZeros`,`onKeyDown`,`onBlur`,`thousandSeparator`,`decimalScale`,`fixedDecimalScale`,`prefix`,`defaultValue`,`value`,`valueIsNumericString`,`onValueChange`]),h=zg(e),g=h.decimalSeparator,_=h.allowedDecimalSeparators,v=function(t){return Rg(t,e)},y=function(t,n){return Ug(t,n,e)},b=dg(d)?u:d,x=f??Hg(b,l,t);dg(d)?dg(u)||(x||=typeof u==`number`):x||=typeof d==`number`;var S=function(e){return pg(e)?e:(typeof e==`number`&&(e=Sg(e)),x&&typeof s==`number`?Cg(e,s,!!c):e)},C=Pg(S(d),S(u),!!x,v,y,p),w=C[0],T=w.numAsString,E=w.formattedValue,D=C[1];return Object.assign(Object.assign({},m),{value:E,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===g||ug(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,i=e.currentValueIndex,a=e.formattedValueIndex,o=t[i],u=r[a],f=Tg(n,t).to,p=function(e){return y(e).indexOf(`.`)+l.length};return d===0&&c&&s&&t[f.start]===g&&p(t)<i&&p(r)>a?!1:i>=f.start&&i<f.end&&_&&_.includes(o)&&u===g?!0:o===u},onValueChange:D,format:v,removeFormatting:y,getCaretBoundary:function(t){return Wg(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,a=t.selectionStart,u=t.selectionEnd,d=t.value;if(d===void 0&&(d=``),(r===`Backspace`||r===`Delete`)&&u<l.length&&d!==`-`)e.preventDefault();else if(a!==u)i(e);else{r===`Backspace`&&d[0]===`-`&&a===l.length+1&&n&&wg(t,1),s&&c&&(r===`Backspace`&&d[a-1]===g?(wg(t,a-1),e.preventDefault()):r===`Delete`&&d[a]===g&&e.preventDefault()),_?.includes(r)&&d[a]===g&&wg(t,a+1);var f=o===!0?`,`:o;r===`Backspace`&&d[a-1]===f&&wg(t,a-1),r===`Delete`&&d[a]===f&&wg(t,a+1),i(e)}},onBlur:function(t){var n=T;n.match(/\d/g)||(n=``),r||(n=yg(n)),c&&s&&(n=Cg(n,s,c)),n!==T&&D({formattedValue:Rg(n,e),value:n,floatValue:parseFloat(n)},{event:t,source:sg.event}),a(t)}})}function qg(e){var t=Kg(e);return w.createElement(Lg,Object.assign({},t))}function Jg(e,t){return/\d/.test(e)||e===t}function Yg(e,t,n,r){let i=0;for(let n=0;n<t&&n<e.length;n+=1)Jg(e[n],r)&&(i+=1);if(i===0)return Math.min(t,n.length);for(let e=0;e<n.length;e+=1)if(Jg(n[e],r)&&(--i,i===0))return e+1;return n.length}function Xg(e,t){let n=0;for(;t+n<e.length&&/\d/.test(e[t+n]);)n+=1;return n}function Zg(e,{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r,thousandsGroupStyle:i}){let a=new Set([...r,t].filter(e=>e.length===1)),o=e.split(``),s=o.reduce((e,t,n)=>(a.has(t)&&e.push(n),e),[]);if(s.length===0)return e;let c=s[s.length-1],l=o[c],u=s.filter(e=>o[e]===l).length,d=i===`wan`?4:3,f=-1;return u===1&&(f=l===t?c:l===n&&Xg(e,c+1)===d?-1:c),o.map((e,r)=>r===f?t:a.has(e)&&e!==n?``:e).join(``)}function Qg({direction:e,style:t,...n}){return(0,G.jsx)(`svg`,{style:{width:`var(--ni-chevron-size)`,height:`var(--ni-chevron-size)`,transform:e===`up`?`rotate(180deg)`:void 0,...t},viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...n,children:(0,G.jsx)(`path`,{d:`M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}var $g={root:`m_e2f5cd4e`,controls:`m_95e17d22`,control:`m_80b4b171`},e_=/^(0\.0*|-0(\.0*)?)$/,t_=/^-?0\d+(\.\d+)?\.?$/,n_=/\.\d*0$/,r_=/^-?\d+\.$/;function i_(e){return typeof e==`string`&&e!==``&&!Number.isNaN(Number(e))}function a_(e){return typeof e==`bigint`}function o_(e){return typeof e==`number`?e<2**53-1:e===``||i_(e)&&Number(e)<2**53-1}function s_(e,t){return e===``||e===`-`||!t&&e.startsWith(`-`)?!1:/^-?\d+$/.test(e)}function c_(e,t){return typeof e==`bigint`||e===``||s_(e,t)}function l_(e){if(!/^-?\d+$/.test(e))return null;try{return BigInt(e)}catch{return null}}function u_(e){if(typeof e==`bigint`)return e;if(typeof e==`number`&&Number.isFinite(e)&&Number.isInteger(e))return BigInt(e)}function d_(e,t,n){return t!==void 0&&e<t?t:n!==void 0&&e>n?n:e}function f_(e){return e.toString().replace(`.`,``).length}function p_(e,t){return(typeof e==`number`?e<2**53-1:!Number.isNaN(Number(e)))&&!Number.isNaN(e)&&f_(t)<14&&t!==``}function m_(e,t,n){return e===void 0||(t===void 0||e>=t)&&(n===void 0||e<=n)}var h_={size:`sm`,step:1,clampBehavior:`blur`,allowDecimal:!0,allowNegative:!0,withKeyboardEvents:!0,allowLeadingZeros:!0,trimLeadingZeroesOnBlur:!0,startValue:0,allowedDecimalSeparators:[`.`,`,`]},g_=gt((e,{size:t})=>({controls:{"--ni-chevron-size":I(t,`ni-chevron-size`)}}));function __(e,t){return t?`${e}.`:e}function v_(e,t){let n=r_.test(e),r=t.trim?e.replace(/^0+(?=\d)/,``):e,i=parseFloat(r);if(Number.isNaN(i))return r;if(!t.clamp)return t.trim?__(i,n):e;let a=i>2**53-1&&t.max!==void 0?t.max:ie(i,t.min,t.max);return!t.trim&&a===i?e:__(a,n)}function y_(e,t){if(e===``||e===`-`)return e;let n=l_(e);return n===null?e:t.clampBehavior===`blur`?d_(n,t.min,t.max):n}var b_=Pr(e=>{let t=K([`Input`,`InputWrapper`,`NumberInput`],h_,e),{className:n,classNames:r,styles:i,unstyled:a,vars:o,onChange:s,onValueChange:c,value:l,defaultValue:u,max:d,min:f,step:p,hideControls:m,rightSection:h,isAllowed:g,clampBehavior:_,onBlur:v,allowDecimal:y,decimalScale:b,onKeyDown:x,onKeyDownCapture:S,handlersRef:C,startValue:T,disabled:E,rightSectionPointerEvents:D,allowNegative:O,readOnly:k,size:A,rightSectionWidth:j,stepHoldInterval:M,stepHoldDelay:N,allowLeadingZeros:F,withKeyboardEvents:I,trimLeadingZeroesOnBlur:L,allowedDecimalSeparators:R,selectAllOnFocus:z,onMinReached:ee,onMaxReached:B,onFocus:V,attributes:te,ref:ne,...H}=t,re=O??!0,ae=F??!0,U=Qn({name:`NumberInput`,classes:$g,props:t,classNames:r,styles:i,unstyled:a,attributes:te,vars:o,varsResolver:g_}),{resolvedClassNames:W,resolvedStyles:oe}=Ln({classNames:r,styles:i,props:t}),se=(0,w.useRef)(a_(l)||a_(u)?`bigint`:`number`);a_(l)?se.current=`bigint`:typeof l==`number`&&(se.current=`number`);let ce=se.current===`bigint`,[le,ue]=Ne({value:l,defaultValue:u,finalValue:``,onChange:s}),de=N!==void 0&&M!==void 0,fe=(0,w.useRef)(null),pe=(0,w.useRef)(null),me=(0,w.useRef)(0),he=typeof f==`number`?f:void 0,ge=typeof d==`number`?d:void 0,_e=typeof p==`number`?p:h_.step,ve=typeof T==`number`?T:h_.startValue,ye=u_(f),be=u_(d),xe=u_(p)??BigInt(1),Se=u_(T)??BigInt(0),Ce=e=>!s_(e,re)||ae&&t_.test(e)?e:l_(e)??e,we=e=>{let t=Number(e);return Number.isSafeInteger(t)?t:void 0},Te=(e,t)=>{t.source===`event`&&ue(ce?Ce(e.value):p_(e.floatValue,e.value)&&!e_.test(e.value)&&!(ae&&t_.test(e.value))&&!n_.test(e.value)&&!r_.test(e.value)?e.floatValue:e.value),c?.(e,t)},Ee=e=>{let t=String(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},De=e=>{fe.current&&e!==void 0&&fe.current.setSelectionRange(e,e)},Oe=(0,w.useRef)(P);Oe.current=()=>{if(ce){if(!c_(le,re))return;let e,t=le;if(typeof t==`bigint`){let n=t+xe;be!==void 0&&n>be&&B?.(),e=be!==void 0&&n>be?be:n}else if(typeof t==`string`&&t!==``){let n=l_(t);if(n===null)return;let r=n+xe;be!==void 0&&r>be&&B?.(),e=be!==void 0&&r>be?be:r}else e=d_(Se,ye,be);let n=e.toString();ue(e),c?.({floatValue:we(e),formattedValue:n,value:n},{source:`increment`}),setTimeout(()=>De(fe.current?.value.length),0);return}if(!o_(le))return;let e,t=Ee(le),n=Ee(_e),r=Math.max(t,n),i=10**r;if(!i_(le)&&(typeof le!=`number`||Number.isNaN(le)))e=ie(ve,he,ge);else if(ge!==void 0){let t=(Math.round(Number(le)*i)+Math.round(_e*i))/i;t>ge&&B?.(),e=t<=ge?t:ge}else e=(Math.round(Number(le)*i)+Math.round(_e*i))/i;let a=e.toFixed(r);ue(parseFloat(a)),c?.({floatValue:parseFloat(a),formattedValue:a,value:a},{source:`increment`}),setTimeout(()=>De(fe.current?.value.length),0)};let ke=(0,w.useRef)(P);ke.current=()=>{if(ce){if(!c_(le,re))return;let e,t=ye===void 0?re?void 0:BigInt(0):ye,n=le;if(typeof n==`bigint`){let r=n-xe;t!==void 0&&r<t&&ee?.(),e=t!==void 0&&r<t?t:r}else if(typeof n==`string`&&n!==``){let r=l_(n);if(r===null)return;let i=r-xe;t!==void 0&&i<t&&ee?.(),e=t!==void 0&&i<t?t:i}else e=d_(Se,t,be);let r=e.toString();ue(e),c?.({floatValue:we(e),formattedValue:r,value:r},{source:`decrement`}),setTimeout(()=>De(fe.current?.value.length),0);return}if(!o_(le))return;let e,t=he===void 0?re?-(2**53-1):0:he,n=Ee(le),r=Ee(_e),i=Math.max(n,r),a=10**i;if(!i_(le)&&typeof le!=`number`||Number.isNaN(le))e=ie(ve,t,ge);else{let n=(Math.round(Number(le)*a)-Math.round(_e*a))/a;t!==void 0&&n<t&&ee?.(),e=t!==void 0&&n<t?t:n}let o=e.toFixed(i);ue(parseFloat(o)),c?.({floatValue:parseFloat(o),formattedValue:o,value:o},{source:`decrement`}),setTimeout(()=>De(fe.current?.value.length),0)};let je=e=>{let t=e.clipboardData.getData(`text`),n=H.decimalSeparator||`.`,r=Zg(t,{decimalSeparator:n,thousandSeparator:H.thousandSeparator===!0?`,`:H.thousandSeparator===!1?void 0:H.thousandSeparator,allowedDecimalSeparators:R||[`.`,`,`],thousandsGroupStyle:H.thousandsGroupStyle});if(r!==t){e.preventDefault();let t=fe.current;if(t){let e=t.selectionStart??0,i=t.selectionEnd??0,a=t.value,o=a.substring(0,e)+r+a.substring(i);(Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,`value`)?.set)?.call(t,o),t.dispatchEvent(new Event(`change`,{bubbles:!0}));let s=e+r.length;setTimeout(()=>De(Yg(o,s,t.value,n)),0)}}H.onPaste?.(e)},Pe=e=>{x?.(e),!k&&I&&(e.key===`ArrowUp`&&(e.preventDefault(),Oe.current?.()),e.key===`ArrowDown`&&(e.preventDefault(),ke.current?.()))},Fe=e=>{if(S?.(e),e.key===`Backspace`){let t=fe.current;t&&t.selectionStart===0&&t.selectionStart===t.selectionEnd&&(e.preventDefault(),window.setTimeout(()=>De(0),0))}},Ie=e=>{z&&window.setTimeout(()=>fe.current?.select(),0),V?.(e)},Le=e=>{let t=le;ce?(_===`blur`&&typeof t==`bigint`&&(t=d_(t,ye,be)),L&&typeof t==`string`&&(t=y_(t,{min:ye,max:be,clampBehavior:_}))):typeof t==`number`?_===`blur`&&(t=ie(t,he,ge)):typeof t==`string`&&(t=v_(t,{min:he,max:ge,trim:!!L&&Ee(t)<15,clamp:_===`blur`})),le!==t&&ue(t),v?.(e)};Ae(C,{increment:Oe.current,decrement:ke.current});let Re=e=>{e?Oe.current?.():ke.current?.(),me.current+=1},ze=e=>{if(Re(e),de){let t=typeof M==`number`?M:M(me.current);pe.current=window.setTimeout(()=>ze(e),t)}},Be=(e,t)=>{e.preventDefault(),fe.current?.focus(),Re(t),de&&(pe.current=window.setTimeout(()=>ze(t),N))},Ve=()=>{pe.current&&window.clearTimeout(pe.current),pe.current=null,me.current=0},He=(0,G.jsxs)(`div`,{...U(`controls`),children:[(0,G.jsx)(fc,{...U(`control`),tabIndex:-1,"aria-hidden":!0,disabled:E||typeof le==`number`&&ge!==void 0&&le>=ge||typeof le==`bigint`&&be!==void 0&&le>=be,mod:{direction:`up`},onMouseDown:e=>e.preventDefault(),onPointerDown:e=>{Be(e,!0)},onPointerUp:Ve,onPointerLeave:Ve,children:(0,G.jsx)(Qg,{direction:`up`})}),(0,G.jsx)(fc,{...U(`control`),tabIndex:-1,"aria-hidden":!0,disabled:E||typeof le==`number`&&he!==void 0&&le<=he||typeof le==`bigint`&&ye!==void 0&&le<=ye,mod:{direction:`down`},onMouseDown:e=>e.preventDefault(),onPointerDown:e=>{Be(e,!1)},onPointerUp:Ve,onPointerLeave:Ve,children:(0,G.jsx)(Qg,{direction:`down`})})]});return(0,G.jsx)(kd,{component:qg,allowNegative:O,className:vt($g.root,n),size:A,...H,inputMode:ce?`numeric`:`decimal`,readOnly:k,disabled:E,value:typeof le==`bigint`?le.toString():le,getInputRef:Me(ne,fe),onValueChange:Te,rightSection:m||k||!(ce?c_(le,re):o_(le))?h:h||He,classNames:W,styles:oe,unstyled:a,__staticSelector:`NumberInput`,decimalScale:ce?0:y?b:0,onPaste:je,onFocus:Ie,onKeyDown:Pe,onKeyDownCapture:Fe,rightSectionPointerEvents:D??(E?`none`:void 0),rightSectionWidth:j??`var(--ni-right-section-width-${A||`sm`})`,allowLeadingZeros:F,allowedDecimalSeparators:R,onBlur:Le,attributes:te,isAllowed:e=>{if(g&&!g(e))return!1;if(_!==`strict`)return!0;if(!ce)return m_(e.floatValue,he,ge);if(e.value===``||e.value===`-`)return!0;let t=l_(e.value);return t===null||(ye===void 0||t>=ye)&&(be===void 0||t<=be)}})});b_.classes={...kd.classes,...$g},b_.varsResolver=g_,b_.displayName=`@mantine/core/NumberInput`;var[x_,S_]=E(`Progress.Root component was not found in tree`),C_={root:`m_db6d6462`,section:`m_2242eb65`,"stripes-animation":`m_81a374bd`,"stripes-animation-vertical":`m_e0fb7a86`,label:`m_91e40b74`},w_=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ProgressLabel`,null,e),s=S_();return(0,G.jsx)(J,{...s.getStyles(`label`,{className:n,style:r,classNames:t,styles:i}),...o})});w_.classes=C_,w_.displayName=`@mantine/core/ProgressLabel`;var T_=gt((e,{size:t,radius:n,transitionDuration:r})=>({root:{"--progress-size":I(t,`progress-size`),"--progress-radius":n===void 0?void 0:R(n),"--progress-transition-duration":typeof r==`number`?`${r}ms`:void 0}})),E_=q(e=>{let t=K(`ProgressRoot`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,autoContrast:c,transitionDuration:l,orientation:u,attributes:d,mod:f,...p}=t,m=Qn({name:`Progress`,classes:C_,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:T_});return(0,G.jsx)(x_,{value:{getStyles:m,autoContrast:c},children:(0,G.jsx)(J,{mod:[{orientation:u},f],...m(`root`),...p})})});E_.classes=C_,E_.varsResolver=T_,E_.displayName=`@mantine/core/ProgressRoot`;var D_={withAria:!0},O_=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,value:o,withAria:s,color:c,striped:l,animated:u,mod:d,...f}=K(`ProgressSection`,D_,e),p=S_(),m=xn(),h=s?{role:`progressbar`,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o,"aria-valuetext":`${o}%`}:{};return(0,G.jsx)(J,{...p.getStyles(`section`,{className:n,classNames:t,styles:i,style:r}),...f,...h,mod:[{striped:l||u,animated:u},d],__vars:{"--progress-section-size":`${o}%`,"--progress-section-color":It(c,m),"--progress-label-color":Kt(p.autoContrast,m)?Ut({color:c,theme:m,autoContrast:p.autoContrast}):void 0}})});O_.classes=C_,O_.displayName=`@mantine/core/ProgressSection`;var k_=q(e=>{let t=K(`Progress`,null,e),{value:n,classNames:r,styles:i,vars:a,color:o,striped:s,animated:c,"aria-label":l,...u}=t,{resolvedClassNames:d,resolvedStyles:f}=Ln({classNames:r,styles:i,props:t});return(0,G.jsx)(E_,{classNames:d,styles:f,vars:a,...u,children:(0,G.jsx)(O_,{value:n,color:o,striped:s,animated:c,"aria-label":l})})});k_.classes=C_,k_.displayName=`@mantine/core/Progress`,k_.Section=O_,k_.Root=E_,k_.Label=w_;function A_({offset:e,position:t,defaultOpened:n}){let[r,i]=(0,w.useState)(n),a=(0,w.useRef)(null),{x:o,y:s,elements:c,refs:l,update:u,placement:d}=Ys({placement:t,middleware:[rs({crossAxis:!0,padding:5,rootBoundary:`document`})]}),f=d.includes(`right`)?e:t.includes(`left`)?e*-1:0,p=d.includes(`bottom`)?e:t.includes(`top`)?e*-1:0,m=(0,w.useCallback)(({clientX:e,clientY:t})=>{Number.isFinite(e)&&Number.isFinite(t)&&l.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e+f,top:t+p,right:e,bottom:t}}})},[c.reference]);return(0,w.useEffect)(()=>{if(l.floating.current){let e=a.current;e.addEventListener(`mousemove`,m);let t=Ki(l.floating.current);return t.forEach(e=>{e.addEventListener(`scroll`,u)}),()=>{e.removeEventListener(`mousemove`,m),t.forEach(e=>{e.removeEventListener(`scroll`,u)})}}},[c.reference,l.floating.current,u,m,r]),{handleMouseMove:m,x:o,y:s,opened:r,setOpened:i,boundaryRef:a,floating:l.setFloating}}var j_={tooltip:`m_1b3c8819`,arrow:`m_f898399f`},M_={refProp:`ref`,withinPortal:!0,offset:10,position:`right`,zIndex:N(`popover`)},N_=gt((e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:R(t),"--tooltip-bg":n?It(n,e):void 0,"--tooltip-color":n?`var(--mantine-color-white)`:void 0}})),P_=q(e=>{let t=K(`TooltipFloating`,M_,e),{children:n,refProp:r,withinPortal:i,style:a,className:o,classNames:s,styles:c,unstyled:l,radius:u,color:d,label:f,offset:p,position:m,multiline:h,zIndex:g,disabled:_,defaultOpened:v,variant:y,vars:b,portalProps:x,attributes:S,ref:C,...T}=t,E=xn(),D=Qn({name:`TooltipFloating`,props:t,classes:j_,className:o,style:a,classNames:s,styles:c,unstyled:l,attributes:S,rootSelector:`tooltip`,vars:b,varsResolver:N_}),{handleMouseMove:O,x:k,y:A,opened:j,boundaryRef:M,floating:N,setOpened:P}=A_({offset:p,position:m,defaultOpened:v}),F=ht(n);if(!F)throw Error(`[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let I=Me(M,ut(F),C),L=F.props,R=e=>{L.onMouseEnter?.(e),O(e),P(!0)},z=e=>{L.onMouseLeave?.(e),P(!1)};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Ic,{...x,withinPortal:i,children:(0,G.jsx)(J,{...T,...D(`tooltip`,{style:{...Ar(a,E),zIndex:g,display:!_&&j?`block`:`none`,top:Number.isFinite(A)?Math.round(A):``,left:Number.isFinite(k)?Math.round(k):``}}),variant:y,ref:N,mod:{multiline:h},children:f})}),(0,w.cloneElement)(F,{...L,[r]:I,onMouseEnter:R,onMouseLeave:z})]})});P_.classes=j_,P_.varsResolver=N_,P_.displayName=`@mantine/core/TooltipFloating`;var F_=(0,w.createContext)({withinGroup:!1}),I_={openDelay:0,closeDelay:0};function L_(e){let{openDelay:t,closeDelay:n,children:r}=K(`TooltipGroup`,I_,e);return(0,G.jsx)(F_,{value:{withinGroup:!0},children:(0,G.jsx)(Bs,{delay:{open:t,close:n},children:r})})}L_.displayName=`@mantine/core/TooltipGroup`,L_.extend=e=>e;function R_(e){if(e===void 0)return{shift:!0,flip:!0};let t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function z_(e){let t=R_(e.middlewares),n=[ns(e.offset),ss()];return t.shift&&n.push(rs(typeof t.shift==`boolean`?{padding:8}:{padding:8,...t.shift})),t.flip&&n.push(typeof t.flip==`boolean`?as():as(t.flip)),n.push(ls({element:e.arrowRef,padding:e.arrowOffset})),t.inline?n.push(typeof t.inline==`boolean`?cs():cs(t.inline)):e.inline&&n.push(cs()),n}function B_(e){let[t,n]=(0,w.useState)(e.defaultOpened),r=typeof e.opened==`boolean`?e.opened:t,i=(0,w.use)(F_).withinGroup,a=Oe(),o=nn(),s=(0,w.useCallback)(e=>{n(e),e&&v(a)},[a]),{x:c,y:l,context:u,refs:d,placement:f,middlewareData:{arrow:{x:p,y:m}={},hide:h}}=Ys({strategy:e.strategy,placement:e.position,open:r,onOpenChange:s,middleware:z_(e),whileElementsMounted:zo}),{delay:g,currentId:_,setCurrentId:v}=Vs(u,{id:a}),{getReferenceProps:y,getFloatingProps:b}=$s([Is(u,{enabled:e.events?.hover,delay:i?g:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch,handleClose:e.interactive?ac():null}),Zs(u,{enabled:e.events?.focus,visibleOnly:!0}),tc(u,{role:`tooltip`}),qs(u,{enabled:e.opened===void 0})]),x=(0,w.useRef)(f);fe(()=>{x.current!==f&&(x.current=f,e.onPositionChange?.(f))},[f]);let S=r&&_&&_!==a;return{x:c,y:l,arrowX:p,arrowY:m,reference:d.setReference,floating:d.setFloating,getFloatingProps:b,getReferenceProps:y,isGroupPhase:S,opened:r,placement:f,referenceHidden:e.hideDetached&&o!==`test`?h?.referenceHidden:!1}}var V_={position:`top`,refProp:`ref`,withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:`side`,offset:5,transitionProps:{duration:100,transition:`fade`},events:{hover:!0,focus:!1,touch:!1},zIndex:N(`popover`),middlewares:{flip:!0,shift:!0,inline:!1},hideDetached:!0},H_=gt((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({theme:e,color:n||e.primaryColor,autoContrast:i,variant:r||`filled`});return{tooltip:{"--tooltip-radius":t===void 0?void 0:R(t),"--tooltip-bg":n?a.background:void 0,"--tooltip-color":n?a.color:void 0}}}),U_=q(e=>{let t=K(`Tooltip`,V_,e),{children:n,position:r,refProp:i,label:a,openDelay:o,closeDelay:s,onPositionChange:c,opened:l,defaultOpened:u,withinPortal:d,radius:f,color:p,classNames:m,styles:h,unstyled:g,style:_,className:v,withArrow:y,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,offset:T,transitionProps:E,multiline:D,events:O,interactive:k,zIndex:A,disabled:j,onClick:M,onMouseEnter:N,onMouseLeave:P,inline:F,variant:I,keepMounted:L,vars:R,portalProps:z,mod:ee,floatingStrategy:B,middlewares:V,autoContrast:te,attributes:ne,target:H,hideDetached:re,ref:ie,...ae}=t,{dir:U}=Ur(),W=(0,w.useRef)(null),oe=B_({position:Tc(U,r),closeDelay:s,openDelay:o,onPositionChange:c,opened:l,defaultOpened:u,events:O,interactive:k,arrowRef:W,arrowOffset:x,offset:typeof T==`number`?T+(y?b/2:0):T,inline:F,strategy:B,middlewares:V,hideDetached:re});(0,w.useEffect)(()=>{let e=H instanceof HTMLElement?H:typeof H==`string`?document.querySelector(H):H?.current||null;e&&oe.reference(e)},[H,oe]);let se=Qn({name:`Tooltip`,props:t,classes:j_,className:v,style:_,classNames:m,styles:h,unstyled:g,attributes:ne,rootSelector:`tooltip`,vars:R,varsResolver:H_}),ce=ht(n);if(!H&&!ce)throw Error(`[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let le=se(`tooltip`),ue=k&&!j&&!!oe.opened,de=C===`merge`&&y?Cc({position:oe.placement,dir:U}):void 0;if(H){let e=Wc(E,{duration:100,transition:`fade`});return(0,G.jsx)(G.Fragment,{children:(0,G.jsx)(Ic,{...z,withinPortal:d,children:(0,G.jsx)(Hc,{...e,keepMounted:L,mounted:!j&&!!oe.opened,duration:oe.isGroupPhase?10:e.duration,children:e=>(0,G.jsxs)(J,{...ae,"data-fixed":B===`fixed`||void 0,variant:I,mod:[{multiline:D,interactive:ue},ee],...le,...oe.getFloatingProps({ref:oe.floating,className:le.className,style:{...le.style,...e,...de,zIndex:A,top:oe.y??0,left:oe.x??0,...oe.referenceHidden?{display:`none`}:null}}),children:[a,(0,G.jsx)(wc,{ref:W,arrowX:oe.arrowX,arrowY:oe.arrowY,visible:y,position:oe.placement,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,...se(`arrow`)})]})})})})}let fe=ce.props,pe=Me(oe.reference,ut(ce),ie),me=Wc(E,{duration:100,transition:`fade`});return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Ic,{...z,withinPortal:d,children:(0,G.jsx)(Hc,{...me,keepMounted:L,mounted:!j&&!!oe.opened,duration:oe.isGroupPhase?10:me.duration,children:e=>(0,G.jsxs)(J,{...ae,"data-fixed":B===`fixed`||void 0,variant:I,mod:[{multiline:D,interactive:ue},ee],...oe.getFloatingProps({ref:oe.floating,className:se(`tooltip`).className,style:{...se(`tooltip`).style,...e,...de,zIndex:A,top:oe.y??0,left:oe.x??0,...oe.referenceHidden?{display:`none`}:null}}),children:[a,(0,G.jsx)(wc,{ref:W,arrowX:oe.arrowX,arrowY:oe.arrowY,visible:y,position:oe.placement,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,...se(`arrow`)})]})})}),(0,w.cloneElement)(ce,oe.getReferenceProps({onClick:M,onMouseEnter:N,onMouseLeave:P,onMouseMove:t.onMouseMove,onPointerDown:t.onPointerDown,onPointerEnter:t.onPointerEnter,...fe,className:vt(v,fe.className),[i]:pe}))]})});U_.classes=j_,U_.varsResolver=H_,U_.displayName=`@mantine/core/Tooltip`,U_.Floating=P_,U_.Group=L_;var W_={root:`m_cf365364`,indicator:`m_9e182ccd`,label:`m_1738fcb2`,input:`m_1714d588`,control:`m_69686b9b`,innerLabel:`m_78882f40`},G_={withItemsBorders:!0},K_=gt((e,{radius:t,color:n,transitionDuration:r,size:i,transitionTimingFunction:a})=>({root:{"--sc-radius":t===void 0?void 0:R(t),"--sc-color":n?It(n,e):void 0,"--sc-shadow":n?void 0:`var(--mantine-shadow-xs)`,"--sc-transition-duration":r===void 0?void 0:`${r}ms`,"--sc-transition-timing-function":a,"--sc-padding":I(i,`sc-padding`),"--sc-font-size":z(i)}})),q_=Pr(e=>{let t=K(`SegmentedControl`,G_,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,data:c,value:l,defaultValue:u,onChange:d,size:f,name:p,disabled:m,readOnly:h,fullWidth:g,orientation:_,radius:v,color:y,transitionDuration:b,transitionTimingFunction:x,variant:S,autoContrast:C,withItemsBorders:T,mod:E,attributes:D,ref:O,...k}=t,A=Qn({name:`SegmentedControl`,props:t,classes:W_,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:D,vars:s,varsResolver:K_}),j=xn(),M=c.map(e=>dt(e)?{label:`${e}`,value:e}:e),N=Ve(),[P,F]=(0,w.useState)(0),[I,L]=(0,w.useState)(null),[R,z]=(0,w.useState)({}),ee=(e,t)=>{e!==null&&R[t]!==e&&(R[t]=e,z({...R}))},[B,V]=Ne({value:l,defaultValue:u,finalValue:Array.isArray(c)?M.find(e=>!e.disabled)?.value??c[0]?.value??null:null,onChange:d}),te=Oe(p),ne=M.map(e=>`${e.value}`),H=M.map(e=>(0,w.createElement)(J,{...A(`control`),mod:{active:B===e.value,orientation:_},key:`${e.value}`},(0,w.createElement)(`input`,{...A(`input`),disabled:m||e.disabled,type:`radio`,name:te,value:`${e.value}`,id:`${te}-${e.value}`,checked:B===e.value,onChange:()=>!h&&V(e.value),"data-focus-ring":j.focusRing,key:`${e.value}-input`}),(0,w.createElement)(J,{component:`label`,...A(`label`),mod:{active:B===e.value&&!(m||e.disabled),disabled:m||e.disabled,"read-only":h},htmlFor:`${te}-${e.value}`,ref:t=>ee(t,`${e.value}`),__vars:{"--sc-label-color":y===void 0?void 0:Ut({color:y,theme:j,autoContrast:C})},key:`${e.value}-label`},(0,G.jsx)(`span`,{...A(`innerLabel`),children:e.label})))),re=Me(O,L);return Le(()=>{F(e=>e+1)},[c.length]),Le(()=>{z(e=>{let t={};return ne.forEach(n=>{n in e&&(t[n]=e[n])}),Object.keys(t).length===Object.keys(e).length?e:t})},[ne]),c.length===0?null:(0,G.jsxs)(J,{...A(`root`),variant:S,size:f,ref:re,mod:[{"full-width":g,orientation:_,initialized:N,"with-items-borders":T},E],...k,role:`radiogroup`,"data-disabled":m,children:[B!==void 0&&(0,G.jsx)(Pd,{target:R[`${B}`],parent:I,component:`span`,transitionDuration:`var(--sc-transition-duration)`,...A(`indicator`)},P),H]})});q_.classes=W_,q_.varsResolver=K_,q_.displayName=`@mantine/core/SegmentedControl`;var J_={size:`sm`,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:`left`,openOnFocus:!0},Y_=Pr(e=>{let t=K([`Input`,`InputWrapper`,`Select`],J_,e),{classNames:n,styles:r,unstyled:i,vars:a,dropdownOpened:o,defaultDropdownOpened:s,onDropdownClose:c,onDropdownOpen:l,onFocus:u,onBlur:d,onClick:f,onChange:p,data:m,value:h,defaultValue:g,selectFirstOptionOnChange:_,selectFirstOptionOnDropdownOpen:v,onOptionSubmit:y,comboboxProps:b,readOnly:x,disabled:S,filter:C,limit:T,withScrollArea:E,maxDropdownHeight:D,floatingHeight:O,size:k,searchable:A,rightSection:j,checkIconPosition:M,withCheckIcon:N,withAlignedLabels:P,nothingFoundMessage:F,name:I,form:L,searchValue:R,defaultSearchValue:z,onSearchChange:ee,allowDeselect:B,error:V,rightSectionPointerEvents:te,id:ne,clearable:H,clearSectionMode:re,clearButtonProps:ie,hiddenInputProps:ae,renderOption:U,onClear:W,autoComplete:oe,scrollAreaProps:se,__defaultRightSection:ce,__clearSection:le,__clearable:ue,chevronColor:de,autoSelectOnBlur:fe,openOnFocus:pe,attributes:me,...he}=t,ge=(0,w.useMemo)(()=>Pf(m),[m]),_e=(0,w.useRef)({}),ve=(0,w.useMemo)(()=>Ff(ge),[ge]),ye=Oe(ne),be=kp({id:ye,label:he.label,labelProps:he.labelProps,inputWrapperOrder:he.inputWrapperOrder}),[xe,Se,Ce]=Ne({value:h,defaultValue:g,finalValue:null,onChange:p}),we=xe==null?void 0:`${xe}`in ve?ve[`${xe}`]:_e.current[`${xe}`],Te=ze(we),[Ee,De,ke]=Ne({value:R,defaultValue:z,finalValue:we?we.label:``,onChange:ee}),Ae=lp({opened:o,defaultOpened:s,onDropdownOpen:()=>{l?.(),v?Ae.selectFirstOption():Ae.updateSelectedOptionIndex(`active`,{scrollIntoView:!0})},onDropdownClose:()=>{c?.(),setTimeout(Ae.resetSelectedOption,0)}}),je=e=>{De(e),Ae.resetSelectedOption()},{resolvedClassNames:Me,resolvedStyles:Pe}=Ln({props:t,styles:r,classNames:n});(0,w.useEffect)(()=>{_&&Ae.selectFirstOption()},[_,Ee]),(0,w.useEffect)(()=>{h===null&&je(``),h!=null&&we&&(Te?.value!==we.value||Te?.label!==we.label)&&je(we.label)},[h,we]),(0,w.useEffect)(()=>{!Ce&&!ke&&je(xe==null?``:`${xe}`in ve?ve[`${xe}`]?.label:_e.current[`${xe}`]?.label||``)},[ve,xe]),(0,w.useEffect)(()=>{xe&&`${xe}`in ve&&(_e.current[`${xe}`]=ve[`${xe}`])},[ve,xe]);let Fe=(0,G.jsx)(fp.ClearButton,{...ie,onClear:()=>{Se(null,null),je(``),W?.()}}),Ie=H&&xe!=null&&!S&&!x;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(fp,{store:Ae,__staticSelector:`Select`,classNames:Me,styles:Pe,unstyled:i,readOnly:x,size:k,attributes:me,floatingHeight:O,keepMounted:fe,onOptionSubmit:e=>{y?.(e);let t=B&&`${ve[e].value}`==`${xe}`?null:ve[e],n=t?t.value:null;n!==xe&&Se(n,t),!Ce&&je(n==null?``:t?.label||``),Ae.closeDropdown()},...b,children:[(0,G.jsx)(fp.Target,{targetType:A?`input`:`button`,autoComplete:oe,withExpandedAttribute:!0,children:(0,G.jsx)(kd,{id:ye,__defaultRightSection:(0,G.jsx)(fp.Chevron,{size:k,error:V,unstyled:i,color:de}),__clearSection:Fe,__clearable:Ie,__clearSectionMode:re,rightSection:j,rightSectionPointerEvents:te||`none`,...he,size:k,__staticSelector:`Select`,disabled:S,readOnly:x||!A,value:Ee,onChange:e=>{if(Xp(e)){if(!x){let t=qh(ve,e.currentTarget.value);t&&`${t.value}`!=`${xe}`&&(Se(t.value,t),!Ce&&je(t.label))}}else je(e.currentTarget.value),Ae.openDropdown(),_&&Ae.selectFirstOption()},onFocus:e=>{pe&&A&&Ae.openDropdown(),u?.(e)},onBlur:e=>{fe&&Ae.clickSelectedOption(),Ae.closeDropdown();let t=xe!=null&&(`${xe}`in ve?ve[`${xe}`]:_e.current[`${xe}`]);je(t&&t.label||``),d?.(e)},onClick:e=>{A?Ae.openDropdown():Ae.toggleDropdown(),f?.(e)},classNames:Me,styles:Pe,unstyled:i,pointer:!A,error:V,attributes:me})}),(0,G.jsx)(wp,{data:ge,hidden:x||S,filter:C,search:Ee,limit:T,hiddenWhenEmpty:!F,withScrollArea:E,maxDropdownHeight:D,filterOptions:!!A&&we?.label!==Ee,value:xe,checkIconPosition:M,withCheckIcon:N,withAlignedLabels:P,nothingFoundMessage:F,unstyled:i,labelId:be,"aria-label":be?void 0:he[`aria-label`],renderOption:U,scrollAreaProps:se})]}),(0,G.jsx)(fp.HiddenInput,{value:xe,name:I,form:L,disabled:S,...ae})]})});Y_.classes={...kd.classes,...fp.classes},Y_.displayName=`@mantine/core/Select`;function X_(e){if(e!==void 0)return typeof e==`number`?v(e):e}function Z_({spacing:e,verticalSpacing:t,cols:n,minColWidth:r,autoRows:i,selector:a}){let o=xn(),s=t===void 0?e:t,c=r!==void 0,l=b({"--sg-spacing-x":L(H(e)),"--sg-spacing-y":L(H(s)),"--sg-auto-rows":i,...c?{"--sg-min-col-width":X_(r)}:{"--sg-cols":H(n)?.toString()}}),d=u(o.breakpoints).reduce((t,r)=>(t[r]||(t[r]={}),typeof e==`object`&&e[r]!==void 0&&(t[r][`--sg-spacing-x`]=L(e[r])),typeof s==`object`&&s[r]!==void 0&&(t[r][`--sg-spacing-y`]=L(s[r])),!c&&typeof n==`object`&&n[r]!==void 0&&(t[r][`--sg-cols`]=n[r]),t),{}),f=ne(u(d),o.breakpoints).filter(e=>u(d[e.value]).length>0).map(e=>({query:`(min-width: ${o.breakpoints[e.value]})`,styles:d[e.value]}));return(0,G.jsx)(rr,{styles:l,media:f,selector:a})}function Q_(e){return typeof e==`object`&&e?u(e):[]}function $_(e){return e.sort((e,t)=>h(e)-h(t))}function ev({spacing:e,verticalSpacing:t,cols:n,minColWidth:r}){return $_(Array.from(new Set([...Q_(e),...Q_(t),...r===void 0?Q_(n):[]])))}function tv({spacing:e,verticalSpacing:t,cols:n,minColWidth:r,autoRows:i,selector:a}){let o=t===void 0?e:t,s=r!==void 0,c=b({"--sg-spacing-x":L(H(e)),"--sg-spacing-y":L(H(o)),"--sg-auto-rows":i,...s?{"--sg-min-col-width":X_(r)}:{"--sg-cols":H(n)?.toString()}}),l=ev({spacing:e,verticalSpacing:t,cols:n,minColWidth:r}),u=l.reduce((t,r)=>(t[r]||(t[r]={}),typeof e==`object`&&e[r]!==void 0&&(t[r][`--sg-spacing-x`]=L(e[r])),typeof o==`object`&&o[r]!==void 0&&(t[r][`--sg-spacing-y`]=L(o[r])),!s&&typeof n==`object`&&n[r]!==void 0&&(t[r][`--sg-cols`]=n[r]),t),{}),d=l.map(e=>({query:`simple-grid (min-width: ${e})`,styles:u[e]}));return(0,G.jsx)(rr,{styles:c,container:d,selector:a})}var nv={container:`m_925c2d2c`,root:`m_2415a157`},rv={cols:1,spacing:`md`,type:`media`},iv=q(e=>{let t=K(`SimpleGrid`,rv,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,cols:c,verticalSpacing:l,spacing:u,type:d,minColWidth:f,autoFlow:p,autoRows:m,attributes:h,...g}=t,_=Qn({name:`SimpleGrid`,classes:nv,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s}),v=kr(),y=f===void 0?void 0:p||`auto-fill`;return d===`container`?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(tv,{...t,selector:`.${v}`}),(0,G.jsx)(`div`,{..._(`container`),children:(0,G.jsx)(J,{..._(`root`,{className:v}),...g,"data-auto-cols":y})})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Z_,{...t,selector:`.${v}`}),(0,G.jsx)(J,{..._(`root`,{className:v}),...g,"data-auto-cols":y})]})});iv.classes=nv,iv.displayName=`@mantine/core/SimpleGrid`;var av={root:`m_6d731127`},ov={gap:`md`,align:`stretch`,justify:`flex-start`},sv=gt((e,{gap:t,align:n,justify:r})=>({root:{"--stack-gap":L(t),"--stack-align":n,"--stack-justify":r}})),cv=q(e=>{let t=K(`Stack`,ov,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,align:c,justify:l,gap:u,variant:d,attributes:f,...p}=t,m=Qn({name:`Stack`,props:t,classes:av,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:sv});return(0,G.jsx)(J,{...m(`root`),variant:d,...p})});cv.classes=av,cv.varsResolver=sv,cv.displayName=`@mantine/core/Stack`;var lv=(0,w.createContext)(null),uv={hiddenInputValuesSeparator:`,`},dv=Pr((e=>{let{value:t,defaultValue:n,onChange:r,size:i,wrapperProps:a,children:o,readOnly:s,name:c,hiddenInputValuesSeparator:l,hiddenInputProps:u,maxSelectedValues:d,disabled:f,...p}=K(`SwitchGroup`,uv,e),[m,h]=Ne({value:t,defaultValue:n,finalValue:[],onChange:r}),g=e=>{let t=e.currentTarget.value;if(s)return;let n=m.includes(t);!n&&d&&m.length>=d||h(n?m.filter(e=>e!==t):[...m,t])},_=e=>{if(f)return!0;if(!d)return!1;let t=m.includes(e),n=m.length>=d;return!t&&n},v=m.join(l);return(0,G.jsx)(lv,{value:{value:m,onChange:g,size:i,isDisabled:_},children:(0,G.jsxs)(Ed.Wrapper,{size:i,...a,...p,labelElement:`div`,__staticSelector:`SwitchGroup`,children:[(0,G.jsx)(pp,{role:`group`,children:o}),(0,G.jsx)(`input`,{type:`hidden`,name:c,value:v,...u})]})})}));dv.classes=Ed.Wrapper.classes,dv.displayName=`@mantine/core/SwitchGroup`;var fv={root:`m_5f93f3bb`,input:`m_926b4011`,track:`m_9307d992`,thumb:`m_93039a1d`,trackLabel:`m_8277e082`},pv={labelPosition:`right`,withThumbIndicator:!0},mv=gt((e,{radius:t,color:n,size:r})=>({root:{"--switch-radius":t===void 0?void 0:R(t),"--switch-height":I(r,`switch-height`),"--switch-width":I(r,`switch-width`),"--switch-thumb-size":I(r,`switch-thumb-size`),"--switch-label-font-size":I(r,`switch-label-font-size`),"--switch-track-label-padding":I(r,`switch-track-label-padding`),"--switch-color":n?It(n,e):void 0}})),hv=q(e=>{let t=K(`Switch`,pv,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,label:l,offLabel:u,onLabel:d,id:f,size:p,radius:m,wrapperProps:h,thumbIcon:g,checked:_,defaultChecked:v,onChange:y,labelPosition:b,description:x,error:S,disabled:C,variant:T,rootRef:E,mod:D,withThumbIndicator:O,attributes:k,...A}=t,j=(0,w.use)(lv),M=p||j?.size,N=Qn({name:`Switch`,props:t,classes:fv,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:k,vars:s,varsResolver:mv}),{styleProps:P,rest:F}=or(A),I=Oe(f),L=[x?`${I}-description`:void 0,S&&typeof S!=`boolean`?`${I}-error`:void 0,F[`aria-describedby`]].filter(Boolean).join(` `)||void 0,R={checked:j?.value.includes(F.value)??_,onChange:e=>{j?.onChange(e),y?.(e)}},z=C||j?.isDisabled?.(F.value),[ee,B]=Ne({value:R.checked??_,defaultValue:v,finalValue:!1});return(0,G.jsxs)(_p,{...N(`root`),__staticSelector:`Switch`,__stylesApiProps:t,id:I,size:M,labelPosition:b,label:l,description:x,error:S,disabled:z,bodyElement:`label`,labelElement:`span`,classNames:n,styles:a,unstyled:o,"data-checked":R.checked,variant:T,ref:E,mod:D,attributes:k,inert:F.inert,...P,...h,children:[(0,G.jsx)(`input`,{...F,...R,disabled:z,checked:ee,"data-checked":R.checked,onChange:e=>{R.onChange?.(e),B(e.currentTarget.checked)},id:I,type:`checkbox`,role:`switch`,inert:F.inert,"aria-describedby":L,...N(`input`)}),(0,G.jsxs)(J,{"aria-hidden":`true`,component:`span`,mod:{error:S,"label-position":b,"without-labels":!d&&!u},...N(`track`),children:[(0,G.jsx)(J,{component:`span`,mod:{"reduce-motion":!0,"with-thumb-indicator":O&&!g},...N(`thumb`),children:g}),(0,G.jsx)(`span`,{...N(`trackLabel`),children:ee?d:u})]})]})});hv.classes={...fv,...gp},hv.varsResolver=mv,hv.displayName=`@mantine/core/Switch`,hv.Group=dv;var gv=q(e=>{let t=K([`Input`,`InputWrapper`,`TextInput`],null,e);return(0,G.jsx)(kd,{component:`input`,...t,__staticSelector:`TextInput`})});gv.classes=kd.classes,gv.displayName=`@mantine/core/TextInput`;var tee=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],nee=[`xs`,`sm`,`md`,`lg`,`xl`];function ree(e,t){let n=t===void 0?`h${e}`:t;return tee.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:nee.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:v(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var _v={root:`m_8a5d1357`},iee={order:1},vv=gt((e,{order:t,size:n,lineClamp:r,textWrap:i})=>{let a=ree(t||1,n);return{root:{"--title-fw":a.fontWeight,"--title-lh":a.lineHeight,"--title-fz":a.fontSize,"--title-line-clamp":typeof r==`number`?r.toString():void 0,"--title-text-wrap":i}}}),yv=q(e=>{let t=K(`Title`,iee,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,order:s,vars:c,size:l,variant:u,lineClamp:d,textWrap:f,mod:p,attributes:m,...h}=t,g=Qn({name:`Title`,props:t,classes:_v,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:m,vars:c,varsResolver:vv});return[1,2,3,4,5,6].includes(s)?(0,G.jsx)(J,{...g(`root`),component:`h${s}`,variant:u,mod:[{order:s,lineClamp:typeof d==`number`},p],size:l,...h}):null});yv.classes=_v,yv.varsResolver=vv,yv.displayName=`@mantine/core/Title`;function bv(e){let t=e,n=!1,r=new Set;return{getState(){return t},updateState(e){t=typeof e==`function`?e(t):e},setState(e){this.updateState(e),r.forEach(e=>e(t))},initialize(e){n||=(t=e,!0)},subscribe(e){return r.add(e),()=>r.delete(e)}}}function xv(e){return(0,w.useSyncExternalStore)(e.subscribe,()=>e.getState(),()=>e.getState())}var Sv=0;function Cv(e,t,n){let r=[],i=[],a=new Map;for(let n of e){let e=n.position||t,r=a.get(e);r?r.push(n):a.set(e,[n])}for(let e of a.values())e.sort((e,t)=>(t.priority??0)-(e.priority??0)||(e.__sequence??0)-(t.__sequence??0)),e.forEach((e,t)=>{t<n?i.push(e):r.push(e)});return{notifications:i,queue:r}}var wv=bv({notifications:[],queue:[],defaultPosition:`bottom-right`,limit:5}),Tv=(e=wv)=>xv(e);function Ev(e,t){let n=e.getState(),r=t([...n.notifications,...n.queue]);for(let e of r)e.__sequence===void 0&&(e.__sequence=Sv,Sv+=1);let i=Cv(r,n.defaultPosition,n.limit);e.setState({notifications:i.notifications,queue:i.queue,limit:n.limit,defaultPosition:n.defaultPosition})}function Dv(e,t=wv){let n=e.id||ae();return Ev(t,t=>e.id&&t.some(t=>t.id===e.id)?t:[...t,{...e,id:n}]),n}function Ov(e,t=wv){return Ev(t,t=>t.filter(t=>t.id!==e||(t.onClose?.(t),!1))),e}function kv(e,t=wv){return Ev(t,t=>t.map(t=>t.id===e.id?{...t,...e}:t)),e.id}function Av(e,t){return typeof e==`function`?e(t):e}function jv(e,t){let n=t.getState();return[...n.notifications,...n.queue].some(t=>t.id===e.id)?kv(e,t):Dv(e,t)}var Mv=new WeakMap;function Nv(e,t,n=wv){let r=t.id||ae(),i=Mv.get(n)||new Map,a={};Mv.set(n,i),i.set(r,a),jv({loading:!0,autoClose:!1,...t.loading,id:r},n);let o=e=>{i.get(r)===a&&(i.delete(r),jv({...t.loading,loading:!1,autoClose:void 0,...e,id:r},n))};return e.then(e=>o({color:`teal`,...Av(t.success,e)}),e=>o({color:`red`,...Av(t.error,e)})),e}function Pv(e=wv){Ev(e,()=>[])}function Fv(e=wv){let{defaultPosition:t,limit:n}=e.getState();Ev(e,e=>Cv(e,t,n).notifications)}var Iv={show:Dv,hide:Ov,update:kv,promise:Nv,clean:Pv,cleanQueue:Fv,updateState:Ev},Lv=[`bottom-center`,`bottom-left`,`bottom-right`,`top-center`,`top-left`,`top-right`];function Rv(e,t){return e.reduce((e,n)=>(e[n.position||t].push(n),e),Lv.reduce((e,t)=>(e[t]=[],e),{}))}var zv={left:`translateX(-100%)`,right:`translateX(100%)`,"top-center":`translateY(-100%)`,"bottom-center":`translateY(100%)`},Bv={left:`translateX(0)`,right:`translateX(0)`,"top-center":`translateY(0)`,"bottom-center":`translateY(0)`};function Vv({state:e,maxHeight:t,position:n,transitionDuration:r}){let[i,a]=n.split(`-`),o=a===`center`?`${i}-center`:a,s={opacity:0,maxHeight:t,transform:zv[o],transitionDuration:`${r}ms, ${r}ms, ${r}ms`,transitionTimingFunction:`cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear`,transitionProperty:`opacity, transform, max-height`},c={opacity:1,transform:Bv[o]},l={opacity:0,maxHeight:0,transform:zv[o]},u={entering:c,entered:c,exiting:l,exited:l};return{...s,...u[e]}}function Hv(e,t){return typeof t==`number`?t:t===!1||e===!1?!1:e}var Uv=120,Wv=4,Gv=new Set([`classNames`,`styles`,`unstyled`,`vars`,`attributes`,`variant`,`color`,`radius`,`icon`,`title`,`loading`,`withBorder`,`withCloseButton`,`closeButtonProps`,`className`,`style`,`role`,`ref`,`children`,`mod`]);function Kv(e){let{rest:t}=or(e);return Object.fromEntries(Object.entries(t).filter(([e,t])=>!Gv.has(e)&&t!==void 0))}function qv({data:e,onHide:t,autoClose:n,transitionDuration:r,allowDragDismiss:i,allowScrollDismiss:a,paused:o,withAutoCloseProgress:s,progressProps:c,onHoverStart:l,onHoverEnd:u,onExpandRequest:d,ref:f,style:p,renderNotification:m,layout:h,stackIndex:g,stackSize:_,stackPosition:v,stackExpanded:y,stackExpandedOffset:b,transitionState:x,...S}){let[C,T]=(0,w.useState)(0),[E,D]=(0,w.useState)(!1),[O,k]=(0,w.useState)(1),[A,j]=(0,w.useState)(!1),M=xn(),{autoClose:N,message:P,allowClose:F,position:I,style:L,withCloseButton:R,renderNotification:z,onOpen:ee,priority:B,withAutoCloseProgress:V,__sequence:te,...ne}=e,H=Hv(n,e.autoClose),[re,ie]=(0,w.useState)({running:!1,cycle:0}),ae=(e.withAutoCloseProgress??s)&&typeof H==`number`,U=(0,w.useRef)(-1),W=(0,w.useRef)(-1),oe=(0,w.useRef)(-1),se=(0,w.useRef)(null),ce=(0,w.useRef)(!1),le=(0,w.useRef)(!1),ue=(0,w.useRef)(!1),de=(0,w.useRef)(0),fe=F===!1,pe=()=>{let e=ce.current||le.current;e&&!ue.current?(ue.current=!0,l?.()):!e&&ue.current&&(ue.current=!1,u?.())},he=(0,w.useEffectEvent)(()=>{ue.current&&(ue.current=!1,u?.())});(0,w.useEffect)(()=>()=>he(),[]);let ge=()=>{window.clearTimeout(U.current),ie(e=>e.running?{...e,running:!1}:e)},_e=()=>window.clearTimeout(W.current),ve=()=>window.clearTimeout(oe.current),ye=e=>{de.current=e,T(e)},be=()=>{t(e.id),ge(),_e(),ve()},xe=(0,w.useRef)(o);(0,w.useEffect)(()=>{xe.current=o});let Se=()=>{E||ke||ce.current||le.current||xe.current||typeof H!=`number`||(ge(),U.current=window.setTimeout(be,H),ie(e=>({running:!0,cycle:e.cycle+1})))},Ce=e=>e*((se.current?.offsetWidth??440)+40),we=(e,t)=>{let n=se.current?.offsetWidth??440;return Math.abs(e)>n*.35||t>.5},Te=()=>{ve(),j(!1),ye(0)},Ee=e=>{k(e),D(!0),j(!1),ye(Ce(e)),ge(),_e(),ve(),W.current=window.setTimeout(be,r)},De=()=>{ve(),oe.current=window.setTimeout(()=>{j(!1),ye(0),Se()},Uv)},{ref:Oe,active:ke}=ct(e=>{if(!E){if(e.first&&ge(),e.last){if(e.tap||e.canceled){ye(0),Se();return}let t=e.movement[0],n=t===0?e.direction[0]===-1?-1:1:t>0?1:-1;we(t,e.velocity[0])?Ee(n):(ye(0),Se())}else ye(e.movement[0])}},{axis:`x`,threshold:5,filterTaps:!0,enabled:i&&!fe&&!E}),Ae=Me(f,se,Oe),je=Ar(p,M),Ne=Ar(L,M),Pe={...je,...Ne},Fe=typeof Pe.opacity==`number`?Pe.opacity:1,Ie=E?0:1-Math.min(Math.abs(C)/200,1)*.6,Le=Pe.transitionDuration??`${r}ms, ${r}ms, ${r}ms`,Re=h===`stacked`,ze=Re&&g!==void 0&&g>0,Be=ze&&!y,Ve=x===`exiting`||x===`exited`,He=v?.startsWith(`top`)?1:-1,Ue=Math.min(g??0,Wv),We=Be?Ue*10*He:0,Ge=Re?(g||0)*30:0,Ke=ke||A,qe=()=>Re?Ve?`translateY(${y?b||0:We}px) var(--notifications-state-transform) translate3d(var(--notifications-swipe-offset), 0, 0)`:y?`translateY(${b||0}px) translate3d(var(--notifications-swipe-offset), 0, 0)`:ze?`scale(${1-Ue*.03}) translateY(${We}px)`:`var(--notifications-state-transform) translate3d(var(--notifications-swipe-offset), 0, 0)`:`var(--notifications-state-transform) translate3d(var(--notifications-swipe-offset), 0, 0)`,Je={...Pe,...Re?{maxHeight:void 0}:{},"--notifications-state-transform":typeof Pe.transform==`string`?Pe.transform:`translateX(0)`,"--notifications-state-opacity":String(Fe),"--notifications-swipe-offset":`${C}px`,"--notifications-swipe-opacity":String(Ie),transform:qe(),opacity:`calc(var(--notifications-state-opacity) * var(--notifications-swipe-opacity))`,transitionDuration:Ke?`0ms, 0ms, 0ms`:Le,cursor:`default`,touchAction:`pan-y`,...Re?{gridArea:`1 / 1`,zIndex:(_||5)-(g??0),pointerEvents:Be?`none`:void 0,alignSelf:He===1?`start`:`end`,transitionProperty:Ke?`none`:`transform, opacity`,transitionDuration:`${r}ms, ${r}ms`,transitionTimingFunction:`cubic-bezier(.51,.3,0,1.21), ease`,transitionDelay:Ke||Ve?`0ms`:`${Ge}ms`}:{}},Ye=()=>{ce.current=!0,ge(),pe()},Xe=()=>{ce.current=!1,A||(Te(),Se()),pe()},Ze=Re?()=>{le.current=!0,ge(),pe()}:void 0,Qe=Re?()=>{le.current=!1,A||Se(),pe()}:void 0,$e=e=>{Re&&(e.pointerType===`touch`||e.pointerType===`pen`)&&d?.()},et=(0,w.useEffectEvent)(e=>{if(E||ke)return;let t=e.currentTarget===document;if(!t&&!ce.current)return;let{deltaX:n,deltaY:r}=e;if(Math.abs(n)<=Math.abs(r)||n===0||!a||fe)return;t||(e.preventDefault(),e.stopPropagation()),ge(),j(!0);let i=de.current-n,o=i>0?1:-1;we(i,0)?Ee(o):(ye(i),De())});(0,w.useEffect)(()=>{if(A)return document.addEventListener(`wheel`,et,{passive:!1}),()=>document.removeEventListener(`wheel`,et,{passive:!1})},[A]),(0,w.useEffect)(()=>{let e=()=>{E&&ye(Ce(O))};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[O,E]),(0,w.useEffect)(()=>{let e=se.current;if(e)return e.addEventListener(`wheel`,et,{passive:!1}),()=>e.removeEventListener(`wheel`,et,{passive:!1})},[]),(0,w.useEffect)(()=>()=>{_e(),ve()},[]),(0,w.useEffect)(()=>{e.onOpen?.(e)},[]);let tt=(0,w.useRef)(x);(0,w.useEffect)(()=>{let t=tt.current===`exiting`;tt.current=x,x===`entering`&&t&&(_e(),E?(D(!1),j(!1),ye(0)):Se(),e.onOpen?.(e))},[x]),(0,w.useEffect)(()=>(Se(),ge),[H,ke,E]),me(()=>{ae&&Se()},[ae]),(0,w.useEffect)(()=>(o?ge():Se(),ge),[o]);let nt={...S,...ne},rt={style:Je,inert:Be,onMouseEnter:e=>{nt.onMouseEnter?.(e),Ye()},onMouseLeave:e=>{nt.onMouseLeave?.(e),Xe()},onFocusCapture:e=>{nt.onFocusCapture?.(e),Ze?.()},onBlurCapture:e=>{nt.onBlurCapture?.(e),Qe?.()},onPointerDownCapture:e=>{nt.onPointerDownCapture?.(e),$e(e)}};if(m){let t=[S.className,ne.className].filter(Boolean).join(` `);return(0,G.jsx)(`div`,{ref:Ae,role:ne.role||S.role||`alert`,...Kv(nt),className:t||void 0,...rt,children:m(e)})}return(0,G.jsxs)(ag,{ref:Ae,...S,...ne,...rt,withCloseButton:!fe&&R,onClose:be,children:[P,ae&&(0,G.jsx)(`div`,{"aria-hidden":!0,...c,"data-paused":!re.running||void 0,style:{...c.style,"--notifications-progress-duration":`${H}ms`}},re.cycle)]})}qv.displayName=`@mantine/notifications/NotificationContainer`;var Jv={root:`m_b37d9ac7`,notification:`m_5ed0edd0`,progress:`m_836192`,"notifications-progress":`m_5f780017`,"notifications-progress-fade-in":`m_bb245a60`};function Yv(){return Yv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yv.apply(null,arguments)}function Xv(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Zv(e,t){return Zv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zv(e,t)}function Qv(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zv(e,t)}var $v={disabled:!1},ey=w.createContext(null),ty=function(e){return e.scrollTop},ny=`unmounted`,ry=`exited`,iy=`entering`,ay=`entered`,oy=`exiting`,sy=function(e){Qv(t,e);function t(t,n){var r=e.call(this,t,n)||this,i=n,a=i&&!i.isMounting?t.enter:t.appear,o;return r.appearStatus=null,t.in?a?(o=ry,r.appearStatus=iy):o=ay:o=t.unmountOnExit||t.mountOnEnter?ny:ry,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:ry}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==`entering`&&n!==`entered`&&(t=iy):(n===`entering`||n===`entered`)&&(t=oy)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=n=r=e,n,r;return e!=null&&typeof e!=`number`&&(t=e.exit,n=e.enter,r=e.appear===void 0?n:e.appear),{exit:t,enter:n,appear:r}},n.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null){if(this.cancelNextCallback(),t===`entering`){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Xe.default.findDOMNode(this);n&&ty(n)}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:ny})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Xe.default.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;!e&&!n||$v.disabled?this.safeSetState({status:ay},function(){t.props.onEntered(a)}):(this.props.onEnter(a,o),this.safeSetState({status:iy},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:ay},function(){t.props.onEntered(a,o)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Xe.default.findDOMNode(this);!t||$v.disabled?this.safeSetState({status:ry},function(){e.props.onExited(r)}):(this.props.onExit(r),this.safeSetState({status:oy},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:ry},function(){e.props.onExited(r)})})}))},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Xe.default.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r)setTimeout(this.nextCallback,0);else{if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}e!=null&&setTimeout(this.nextCallback,e)}},n.render=function(){var e=this.state.status;if(e===`unmounted`)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Xv(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return w.createElement(ey.Provider,{value:null},typeof n==`function`?n(e,r):w.cloneElement(w.Children.only(n),r))},t}(w.Component);sy.contextType=ey,sy.propTypes={};function cy(){}sy.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:cy,onEntering:cy,onEntered:cy,onExit:cy,onExiting:cy,onExited:cy},sy.UNMOUNTED=ny,sy.EXITED=ry,sy.ENTERING=iy,sy.ENTERED=ay,sy.EXITING=oy;function ly(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function uy(e,t){var n=function(e){return t&&(0,w.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&w.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function dy(e,t){e||={},t||={};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var c in t){if(r[c])for(o=0;o<r[c].length;o++){var l=r[c][o];s[r[c][o]]=n(l)}s[c]=n(c)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}function fy(e,t,n){return n[t]==null?e.props[t]:n[t]}function py(e,t){return uy(e.children,function(n){return(0,w.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:fy(n,`appear`,e),enter:fy(n,`enter`,e),exit:fy(n,`exit`,e)})})}function my(e,t,n){var r=uy(e.children),i=dy(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,w.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,w.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,w.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:fy(o,`exit`,e),enter:fy(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,w.cloneElement)(o,{in:!1}):c&&s&&(0,w.isValidElement)(l)&&(i[a]=(0,w.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:fy(o,`exit`,e),enter:fy(o,`enter`,e)}))}}),i}var hy=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},gy={component:`div`,childFactory:function(e){return e}},_y=function(e){Qv(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(ly(r)),firstRender:!0},r}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?py(e,r):my(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=uy(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Yv({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Xv(e,[`component`,`childFactory`]),i=this.state.contextValue,a=hy(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?w.createElement(ey.Provider,{value:i},a):w.createElement(ey.Provider,{value:i},w.createElement(t,r,a))},t}(w.Component);_y.propTypes={},_y.defaultProps=gy;var vy=sy,yy=16,by=80,xy={position:`bottom-right`,autoClose:4e3,transitionDuration:250,allowDragDismiss:!0,allowScrollDismiss:!0,containerWidth:440,notificationMaxHeight:200,limit:5,zIndex:N(`overlay`),store:wv,withinPortal:!0,pauseResetOnHover:`all`,layout:`default`,withAutoCloseProgress:!1},Sy=gt((e,{zIndex:t,containerWidth:n})=>({root:{"--notifications-z-index":t?.toString(),"--notifications-container-width":v(n)}})),Cy=q(e=>{let t=K(`Notifications`,xy,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,position:l,autoClose:u,transitionDuration:d,allowDragDismiss:f,allowScrollDismiss:p,containerWidth:m,notificationMaxHeight:h,limit:g,zIndex:_,store:v,portalProps:y,withinPortal:b,pauseResetOnHover:x,renderNotification:S,layout:C,withAutoCloseProgress:T,...E}=t,D=xn(),O=Tv(v),k=De(),A=Pe(),j=(0,w.useRef)({}),M=(0,w.useRef)(0),[N,P]=(0,w.useState)({}),[F,I]=(0,w.useState)({}),[L,R]=(0,w.useState)({}),[z,ee]=(0,w.useState)(null),B=(0,w.useRef)({}),V=Object.values(N).reduce((e,t)=>e+(t??0),0)+Object.values(L).filter(Boolean).length,te=(0,w.useCallback)(e=>P(t=>({...t,[e]:(t[e]??0)+1})),[]),ne=(0,w.useCallback)(e=>P(t=>({...t,[e]:Math.max(0,(t[e]??0)-1)})),[]),H=(0,w.useCallback)(e=>C===`stacked`?{onMouseEnter:()=>R(t=>({...t,[e]:!0})),onMouseLeave:()=>R(t=>({...t,[e]:!1}))}:{},[C]),re=(0,w.useCallback)(e=>ee(e),[]);(0,w.useEffect)(()=>{if(C!==`stacked`)return;let e=B.current;return Lv.forEach(t=>{(N[t]??0)>0||L[t]||z===t?(window.clearTimeout(e[t]),I(e=>e[t]?e:{...e,[t]:!0})):e[t]=window.setTimeout(()=>{I(e=>e[t]?{...e,[t]:!1}:e)},200)}),()=>Lv.forEach(t=>window.clearTimeout(e[t]))},[N,L,z,C]),(0,w.useEffect)(()=>{if(!z)return;let e=e=>{let t=e.target;t!==null&&Object.values(j.current).some(e=>e?.contains(t))||ee(null)};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[z]);let ie=Rv(O.notifications,l),ae=z?ie[z].length:0;(0,w.useEffect)(()=>{(C!==`stacked`||z!==null&&ae===0)&&ee(null)},[ae,z,C]),(0,w.useEffect)(()=>{C!==`stacked`&&R(e=>Object.values(e).some(Boolean)?{}:e)},[C]);let U=(0,w.useRef)(null),W=(0,w.useRef)({}),oe=(0,w.useRef)(new WeakMap),se=(0,w.useCallback)((e,t)=>{let n=t.offsetHeight;return W.current[e]!==n&&(W.current[e]=n,!0)},[]);(0,w.useEffect)(()=>{if(C!==`stacked`||typeof ResizeObserver>`u`)return;let e=new ResizeObserver(e=>{let t=!1;e.forEach(e=>{let n=oe.current.get(e.target);n&&se(n,e.target)&&(t=!0)}),t&&k()});return U.current=e,Object.values(j.current).forEach(t=>t&&e.observe(t)),()=>{e.disconnect(),U.current=null}},[C,k,se]);let ce=(0,w.useRef)({}),le=(0,w.useCallback)(e=>(ce.current[e]||(ce.current[e]=t=>{let n=j.current[e];n&&n!==t&&(U.current?.unobserve(n),oe.current.delete(n)),t?(j.current[e]=t,oe.current.set(t,e),se(e,t),U.current?.observe(t)):(delete j.current[e],delete ce.current[e],delete W.current[e])}),ce.current[e]),[se]),ue=D.respectReducedMotion&&A?1:d,de=Qn({name:`Notifications`,classes:Jv,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,vars:s,varsResolver:Sy});(0,w.useEffect)(()=>{v?.updateState(e=>({...e,limit:g||5,defaultPosition:l}))},[g,l]),me(()=>{O.notifications.length>M.current&&setTimeout(()=>k(),0),M.current=O.notifications.length},[O.notifications]);let fe=Lv.reduce((e,t)=>{let n=ie[t].length,r=Array(n).fill(0),i=C===`stacked`&&!!F[t],a=C===`stacked`?[...ie[t]].sort((e,t)=>(t.priority??0)-(e.priority??0)||(t.__sequence??0)-(e.__sequence??0)):ie[t];if(i&&n>0){let e=t.startsWith(`top`)?1:-1,i=0;for(let t=0;t<n;t+=1)r[t]=i*e,i+=(W.current[a[t].id]||by)+yy}return e[t]=a.map((e,a)=>{let{style:o,...s}=e;return(0,G.jsx)(vy,{timeout:ue,onEnter:()=>j.current[s.id].offsetHeight,nodeRef:{current:j.current[s.id]},children:e=>(0,G.jsx)(qv,{ref:le(s.id),data:s,onHide:e=>Ov(e,v),autoClose:u,transitionDuration:ue,allowDragDismiss:f,allowScrollDismiss:p,paused:x===`all`&&V>0||C===`stacked`&&!i&&a>0,onHoverStart:()=>te(t),onHoverEnd:()=>ne(t),onExpandRequest:()=>re(t),renderNotification:`renderNotification`in s?s.renderNotification:S,layout:C,withAutoCloseProgress:T,progressProps:de(`progress`),stackIndex:a,stackSize:n,stackPosition:t,stackExpanded:i,stackExpandedOffset:r[a],transitionState:e,...de(`notification`,{style:{...Vv({state:e,position:t,transitionDuration:ue,maxHeight:h}),...o}})})},s.id)}),e},{});return(0,G.jsxs)(Ic,{withinPortal:b,...y,children:[(0,G.jsx)(J,{...de(`root`),"data-position":`top-center`,"data-layout":C,...E,children:(0,G.jsx)(_y,{...H(`top-center`),children:fe[`top-center`]})}),(0,G.jsx)(J,{...de(`root`),"data-position":`top-left`,"data-layout":C,...E,children:(0,G.jsx)(_y,{...H(`top-left`),children:fe[`top-left`]})}),(0,G.jsx)(J,{...de(`root`,{className:Wu.classNames.fullWidth}),"data-position":`top-right`,"data-layout":C,...E,children:(0,G.jsx)(_y,{...H(`top-right`),children:fe[`top-right`]})}),(0,G.jsx)(J,{...de(`root`,{className:Wu.classNames.fullWidth}),"data-position":`bottom-right`,"data-layout":C,...E,children:(0,G.jsx)(_y,{...H(`bottom-right`),children:fe[`bottom-right`]})}),(0,G.jsx)(J,{...de(`root`),"data-position":`bottom-left`,"data-layout":C,...E,children:(0,G.jsx)(_y,{...H(`bottom-left`),children:fe[`bottom-left`]})}),(0,G.jsx)(J,{...de(`root`),"data-position":`bottom-center`,"data-layout":C,...E,children:(0,G.jsx)(_y,{...H(`bottom-center`),children:fe[`bottom-center`]})})]})});Cy.classes=Jv,Cy.varsResolver=Sy,Cy.displayName=`@mantine/notifications/Notifications`,Cy.show=Iv.show,Cy.hide=Iv.hide,Cy.update=Iv.update,Cy.promise=Iv.promise,Cy.clean=Iv.clean,Cy.cleanQueue=Iv.cleanQueue,Cy.updateState=Iv.updateState;var wy=w.createContext(void 0),Ty=e=>{let t=w.useContext(wy);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Ey=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,G.jsx)(wy.Provider,{value:e,children:t})),Dy={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Oy=new class{#e=Dy;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function ky(e){setTimeout(e,0)}var Ay=typeof window>`u`||`Deno`in globalThis;function jy(){}function My(e,t){return typeof e==`function`?e(t):e}function Ny(e){return typeof e==`number`&&e>=0&&e!==1/0}function Py(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Fy(e,t){return typeof e==`function`?e(t):e}function Iy(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Ry(o,t.options))return!1}else if(!By(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Ly(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(zy(t.options.mutationKey)!==zy(a))return!1}else if(!By(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Ry(e,t){return(t?.queryKeyHashFn||zy)(e)}function zy(e){return JSON.stringify(e,(e,t)=>Gy(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function By(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let n=0;n<t.length;n++)if(!By(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!By(e[r],t[r]))return!1;return!0}return!1}var Vy=Object.prototype.hasOwnProperty;function Hy(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=Wy(e)&&Wy(t);if(!r&&!(Gy(e)&&Gy(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:Vy.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=Hy(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function Uy(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function Wy(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Gy(e){if(!Ky(e))return!1;let t=Object.getPrototypeOf(e),n=t?.constructor;if(n===void 0)return!0;if(typeof n!=`function`)return!1;let r=n.prototype;return!(!Ky(r)||!r.hasOwnProperty(`isPrototypeOf`)||t!==Object.prototype)}function Ky(e){return Object.prototype.toString.call(e)===`[object Object]`}function qy(e){return new Promise(t=>{Oy.setTimeout(t,e)})}function Jy(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:Hy(e,t)}function Yy(e){return e}function Xy(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Zy(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Qy=Symbol();function $y(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Qy?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function eb(e,t){return typeof e==`function`?e(...t):!!e}function tb(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r||(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0})),i)}),e}var nb=()=>Ay,rb=()=>nb(),ib=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ab=new class extends ib{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},ob=ky;function sb(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=ob,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var cb=sb(),lb=new class extends ib{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function ub(e){return Math.min(1e3*2**e,3e4)}function db(e){return(e??`online`)!==`online`||lb.isOnline()}var fb=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function pb(e){let t=!1,n=0,r,i=`pending`,a,o,s=new Promise((e,t)=>{a=e,o=t});s.catch(jy);let c=()=>i!==`pending`,l=t=>{if(!c()){let n=new fb(t);h(n),e.onCancel?.(n)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>ab.isFocused()&&(e.networkMode===`always`||lb.isOnline())&&e.canRun(),p=()=>db(e.networkMode)&&e.canRun(),m=e=>{c()||(r?.(),i=`resolved`,a(e))},h=e=>{c()||(r?.(),i=`rejected`,o(e))},g=()=>new Promise(t=>{r=e=>{(c()||f())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),_=()=>{if(c())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(m).catch(r=>{if(c())return;let i=e.retry??(rb()?0:3),a=e.retryDelay??ub,o=typeof a==`function`?a(n,r):a,s=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);t||!s?h(r):(n++,e.onFail?.(n,r),qy(o).then(()=>f()?void 0:g()).then(()=>{t?h(r):_()}))})};return{promise:s,status:()=>i,cancel:l,continue:()=>(r?.(),s),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?_():g().then(_),s)}}var mb=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ny(this.gcTime)&&(this.#e=Oy.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(rb()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(Oy.clearTimeout(this.#e),this.#e=void 0)}};function hb(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{tb(e,()=>t.signal,()=>n=!0)},u=$y(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?Zy:Xy;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?_b:gb,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:gb(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function gb(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function _b(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var vb=class extends mb{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=xb(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=xb(this.options);e.data!==void 0&&(this.setState(bb(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=Jy(this.state.data,e,this.options);return this.#c({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#c({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(jy).catch(jy):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Fy(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Qy||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>Fy(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!Py(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){let t=this.observers.indexOf(e);t!==-1&&(this.observers.splice(t,1),this.observers.length||(this.#a&&(this.#s||this.state.fetchStatus===`paused`&&this.state.status===`pending`?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#c({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=$y(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?hb(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#c({type:`fetch`,meta:a.fetchOptions?.meta});let o=this.#a=pb({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof fb&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#c({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#c({type:`pause`})},onContinue:()=>{this.#c({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await o.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof fb){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#c({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.#a===o&&(this.#a=void 0),this.scheduleGc()}}#c(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...yb(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...bb(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),cb.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function yb(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:db(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function bb(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function xb(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Sb=class extends ib{#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p=new Set;constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),wb(this.#t,this.options)?this.#m():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Tb(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Tb(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof Fy(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!Uy(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&Eb(this.#t,n,this.options,t)&&this.#m(),this.updateResult(),r&&(this.#t!==n||Fy(this.options.enabled,this.#t)!==Fy(t.enabled,this.#t)||Fy(this.options.staleTime,this.#t)!==Fy(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||Fy(this.options.enabled,this.#t)!==Fy(t.enabled,this.#t)||i!==this.#f)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Uy(this.getCurrentResult(),n)||(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),Reflect.get(e,n))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t),r=()=>{},i,a=new Promise(e=>{i=e,r=this.#e.getQueryCache().subscribe(i=>{i.type===`updated`&&i.query.queryHash===n.queryHash&&n.state.data!==void 0&&(r(),e(this.createResult(n,t)))})});return Promise.race([n.fetch().then(()=>{let e=this.createResult(n,t);return i?.(e),e}).finally(()=>{r()}),a])}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#m(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(jy)),t}#h(e){return!rb()&&Fy(this.options.enabled,this.#t)!==!1&&Ny(e)}#g(){this.#b();let e=Fy(this.options.staleTime,this.#t);if(this.#r.isStale||!this.#h(e))return;let t=Py(this.#r.dataUpdatedAt,e)+1;this.#u=Oy.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return Fy(this.options.refetchInterval,this.#t)??!1}#v(e){this.#x(),this.#f=e,this.#f!==0&&this.#h(this.#f)&&(this.#d=Oy.setInterval(()=>{(this.options.refetchIntervalInBackground||ab.isFocused())&&this.#m()},this.#f))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#u!==void 0&&(Oy.clearTimeout(this.#u),this.#u=void 0)}#x(){this.#d!==void 0&&(Oy.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&wb(e,t),o=i&&Eb(e,n,t,r);(a||o)&&(l={...l,...yb(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#l?.state.data,this.#l):t.placeholderData,e!==void 0&&(m=`success`,d=Jy(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h){if(i&&d===a?.data&&t.select===this.#s)d=this.#c;else try{this.#s=t.select,d=t.select(d),d=Jy(i?.data,d,t),this.#c=d,this.#o=null}catch(e){this.#o=e}}else d===void 0&&(this.#o=null);this.#o&&(f=this.#o,d=this.#c,p=Date.now(),m=`error`,u=!1);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0;return{status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:Db(e,t),refetch:this.refetch,isEnabled:Fy(t.enabled,e)!==!1}}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#l=this.#t),Uy(t,e))return;this.#r=t;let n=(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#p.size)return!0;let r=new Set(n??this.#p);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})();cb.batch(()=>{n&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}};function Cb(e,t){return Fy(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||Fy(t.retryOnMount,e)!==!1)}function wb(e,t){return Cb(e,t)||e.state.data!==void 0&&Tb(e,t,t.refetchOnMount)}function Tb(e,t,n){if(Fy(t.enabled,e)!==!1&&Fy(t.staleTime,e)!==`static`){let r=Fy(n,e);return r===`always`||r!==!1&&Db(e,t)}return!1}function Eb(e,t,n,r){return(e!==t||Fy(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Db(e,n)}function Db(e,t){return Fy(t.enabled,e)!==!1&&e.isStaleByTime(Fy(t.staleTime,e))}var Ob=class extends mb{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||kb(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??(this.state.status===`pending`?this.execute(this.state.variables):Promise.resolve())}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},r=this.#r=pb({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)}),i=this.state.status===`pending`,a=!r.canStart();try{if(i)t();else{this.#i({type:`pending`,variables:e,isPaused:a}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:a})}let o=await r.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#i({type:`success`,data:o}),o}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#r===r&&(this.#r=void 0),this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),cb.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function kb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Ab=class extends ib{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,n){let r=new Ob({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=jb(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=jb(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=jb(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=jb(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){cb.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Ly(t,e))}findAll(e={}){return this.getAll().filter(t=>Ly(e,t))}notify(e){cb.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return cb.batch(()=>Promise.all(e.map(e=>e.continue().catch(jy))))}};function jb(e){return e.options.scope?.id}var Mb=class extends ib{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),Uy(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&zy(t.mutationKey)!==zy(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onSubscribe(){this.listeners.size===1&&this.#n&&(this.#n.addObserver(this),this.#i())}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??kb();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){cb.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},Nb=class extends ib{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??Ry(r,t),a=this.get(i);return a||(a=new vb({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){this.#e.get(e.queryHash)===e&&(e.destroy(),this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){cb.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Iy(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Iy(e,t)):t}notify(e){cb.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){cb.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){cb.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Pb=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Nb,this.#t=e.mutationCache||new Ab,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=ab.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=lb.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Fy(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=My(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return cb.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;cb.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return cb.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t},r=cb.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(jy).catch(jy)}invalidateQueries(e,t={}){return cb.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=cb.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(jy)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(jy)}async query(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t),r=n.isStaleByTime(Fy(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(Fy(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(jy).catch(jy)}infiniteQuery(e){return e._type=`infinite`,this.query(e)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(jy).catch(jy)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return lb.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(zy(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{By(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(zy(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{By(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=Ry(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===Qy&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Fb=w.createContext(!1),Ib=()=>w.useContext(Fb);Fb.Provider;function Lb(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Rb=w.createContext(Lb()),zb=()=>w.useContext(Rb),Bb=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?eb(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||r)&&(t.isReset()||(e.retryOnMount=!1))},Vb=e=>{w.useEffect(()=>{e.clearReset()},[e])},Hb=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||eb(n,[e.error,r])),Ub=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},Wb=(e,t)=>e?.suspense&&t.isPending,aee=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function oee(e,t,n){let r=Ib(),i=zb(),a=Ty(n),o=a.defaultQueryOptions(e),s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,Ub(o),Bb(o,i,s),Vb(i);let[l]=w.useState(()=>new t(a,o)),u=l.getOptimisticResult(o),d=!r&&c;if(w.useSyncExternalStore(w.useCallback(e=>{let t=d?l.subscribe(cb.batchCalls(e)):jy;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),w.useEffect(()=>{l.setOptions(o)},[o,l]),Wb(o,u))throw aee(o,l,i);if(Hb({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw u.error;return o.notifyOnChangeProps?u:l.trackResult(u)}function Gb(e,t){return oee(e,Sb,t)}function Kb(e,t){let n=Ty(t),[r]=w.useState(()=>new Mb(n,e));w.useEffect(()=>{r.setOptions(e)},[r,e]);let i=w.useSyncExternalStore(w.useCallback(e=>r.subscribe(cb.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=w.useCallback((...e)=>{r.mutate(e[0],e[1]).catch(jy)},[r]);if(i.error&&eb(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var see=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),cee=o(((e,t)=>{t.exports=see()})),lee=o((e=>{var t=cee(),n=C(),r=Ye();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}function f(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&f(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function p(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function m(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function h(e){var t=[null,null],n=p(e);return n===null||g(t,e,n.child,{foundSelf:!1}),t}function g(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&g(e,t,n.child,r))return!0;n=n.sibling}return!1}function _(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var v=null,y=null;function b(e,t,n){return e===n||e===t&&(v=e,!0)}function x(e,t,n){return e===n?(y=e,!1):e===t&&(y!==null&&(v=e),!0)}function S(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function w(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var T=Object.assign,E=Symbol.for(`react.element`),D=Symbol.for(`react.transitional.element`),O=Symbol.for(`react.portal`),k=Symbol.for(`react.fragment`),A=Symbol.for(`react.strict_mode`),j=Symbol.for(`react.profiler`),M=Symbol.for(`react.consumer`),N=Symbol.for(`react.context`),P=Symbol.for(`react.forward_ref`),F=Symbol.for(`react.suspense`),I=Symbol.for(`react.suspense_list`),L=Symbol.for(`react.memo`),R=Symbol.for(`react.lazy`),z=Symbol.for(`react.activity`),ee=Symbol.for(`react.legacy_hidden`),B=Symbol.for(`react.memo_cache_sentinel`),V=Symbol.for(`react.view_transition`),te=Symbol.for(`react.recoverable`),ne=Symbol.iterator;function H(e){return typeof e!=`object`||!e?null:(e=ne&&e[ne]||e[`@@iterator`],typeof e==`function`?e:null)}var re=Symbol.for(`react.client.reference`);function ie(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===re?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case k:return`Fragment`;case j:return`Profiler`;case A:return`StrictMode`;case F:return`Suspense`;case I:return`SuspenseList`;case z:return`Activity`;case V:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case O:return`Portal`;case N:return e.displayName||`Context`;case M:return(e._context.displayName||`Context`)+`.Consumer`;case P:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case L:return t=e.displayName||null,t===null?ie(e.type)||`Memo`:t;case R:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var ae=Array.isArray,U=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},se=[],ce=-1;function le(e){return{current:e}}function ue(e){0>ce||(e.current=se[ce],se[ce]=null,ce--)}function de(e,t){ce++,se[ce]=e.current,e.current=t}var fe=le(null),pe=le(null),me=le(null),he=le(null);function ge(e,t){switch(de(me,t),de(pe,e),de(fe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?pp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=pp(t),e=mp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ue(fe),de(fe,e)}function _e(){ue(fe),ue(pe),ue(me)}function ve(e){var t=e.memoizedState;t!==null&&(uh._currentValue=t.memoizedState,de(he,e)),t=fe.current;var n=mp(t,e.type);t!==n&&(de(pe,e),de(fe,n))}function ye(e){pe.current===e&&(ue(fe),ue(pe)),he.current===e&&(ue(he),uh._currentValue=oe)}var be,xe;function Se(e){if(be===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);be=t&&t[1]||``,xe=-1<e.stack.indexOf(`
49
+ `),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function Kg(e){e=Gg(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=cg);var a=e.onBlur;a===void 0&&(a=cg);var o=e.thousandSeparator,s=e.decimalScale,c=e.fixedDecimalScale,l=e.prefix;l===void 0&&(l=``);var u=e.defaultValue,d=e.value,f=e.valueIsNumericString,p=e.onValueChange,m=og(e,[`decimalSeparator`,`allowedDecimalSeparators`,`thousandsGroupStyle`,`suffix`,`allowNegative`,`allowLeadingZeros`,`onKeyDown`,`onBlur`,`thousandSeparator`,`decimalScale`,`fixedDecimalScale`,`prefix`,`defaultValue`,`value`,`valueIsNumericString`,`onValueChange`]),h=zg(e),g=h.decimalSeparator,_=h.allowedDecimalSeparators,v=function(t){return Rg(t,e)},y=function(t,n){return Ug(t,n,e)},b=dg(d)?u:d,x=f??Hg(b,l,t);dg(d)?dg(u)||(x||=typeof u==`number`):x||=typeof d==`number`;var S=function(e){return pg(e)?e:(typeof e==`number`&&(e=Sg(e)),x&&typeof s==`number`?Cg(e,s,!!c):e)},C=Pg(S(d),S(u),!!x,v,y,p),w=C[0],T=w.numAsString,E=w.formattedValue,D=C[1];return Object.assign(Object.assign({},m),{value:E,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===g||ug(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,i=e.currentValueIndex,a=e.formattedValueIndex,o=t[i],u=r[a],f=Tg(n,t).to,p=function(e){return y(e).indexOf(`.`)+l.length};return d===0&&c&&s&&t[f.start]===g&&p(t)<i&&p(r)>a?!1:i>=f.start&&i<f.end&&_&&_.includes(o)&&u===g?!0:o===u},onValueChange:D,format:v,removeFormatting:y,getCaretBoundary:function(t){return Wg(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,a=t.selectionStart,u=t.selectionEnd,d=t.value;if(d===void 0&&(d=``),(r===`Backspace`||r===`Delete`)&&u<l.length&&d!==`-`)e.preventDefault();else if(a!==u)i(e);else{r===`Backspace`&&d[0]===`-`&&a===l.length+1&&n&&wg(t,1),s&&c&&(r===`Backspace`&&d[a-1]===g?(wg(t,a-1),e.preventDefault()):r===`Delete`&&d[a]===g&&e.preventDefault()),_?.includes(r)&&d[a]===g&&wg(t,a+1);var f=o===!0?`,`:o;r===`Backspace`&&d[a-1]===f&&wg(t,a-1),r===`Delete`&&d[a]===f&&wg(t,a+1),i(e)}},onBlur:function(t){var n=T;n.match(/\d/g)||(n=``),r||(n=yg(n)),c&&s&&(n=Cg(n,s,c)),n!==T&&D({formattedValue:Rg(n,e),value:n,floatValue:parseFloat(n)},{event:t,source:sg.event}),a(t)}})}function qg(e){var t=Kg(e);return w.createElement(Lg,Object.assign({},t))}function Jg(e,t){return/\d/.test(e)||e===t}function Yg(e,t,n,r){let i=0;for(let n=0;n<t&&n<e.length;n+=1)Jg(e[n],r)&&(i+=1);if(i===0)return Math.min(t,n.length);for(let e=0;e<n.length;e+=1)if(Jg(n[e],r)&&(--i,i===0))return e+1;return n.length}function Xg(e,t){let n=0;for(;t+n<e.length&&/\d/.test(e[t+n]);)n+=1;return n}function Zg(e,{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r,thousandsGroupStyle:i}){let a=new Set([...r,t].filter(e=>e.length===1)),o=e.split(``),s=o.reduce((e,t,n)=>(a.has(t)&&e.push(n),e),[]);if(s.length===0)return e;let c=s[s.length-1],l=o[c],u=s.filter(e=>o[e]===l).length,d=i===`wan`?4:3,f=-1;return u===1&&(f=l===t?c:l===n&&Xg(e,c+1)===d?-1:c),o.map((e,r)=>r===f?t:a.has(e)&&e!==n?``:e).join(``)}function Qg({direction:e,style:t,...n}){return(0,G.jsx)(`svg`,{style:{width:`var(--ni-chevron-size)`,height:`var(--ni-chevron-size)`,transform:e===`up`?`rotate(180deg)`:void 0,...t},viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...n,children:(0,G.jsx)(`path`,{d:`M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}var $g={root:`m_e2f5cd4e`,controls:`m_95e17d22`,control:`m_80b4b171`},e_=/^(0\.0*|-0(\.0*)?)$/,t_=/^-?0\d+(\.\d+)?\.?$/,n_=/\.\d*0$/,r_=/^-?\d+\.$/;function i_(e){return typeof e==`string`&&e!==``&&!Number.isNaN(Number(e))}function a_(e){return typeof e==`bigint`}function o_(e){return typeof e==`number`?e<2**53-1:e===``||i_(e)&&Number(e)<2**53-1}function s_(e,t){return e===``||e===`-`||!t&&e.startsWith(`-`)?!1:/^-?\d+$/.test(e)}function c_(e,t){return typeof e==`bigint`||e===``||s_(e,t)}function l_(e){if(!/^-?\d+$/.test(e))return null;try{return BigInt(e)}catch{return null}}function u_(e){if(typeof e==`bigint`)return e;if(typeof e==`number`&&Number.isFinite(e)&&Number.isInteger(e))return BigInt(e)}function d_(e,t,n){return t!==void 0&&e<t?t:n!==void 0&&e>n?n:e}function f_(e){return e.toString().replace(`.`,``).length}function p_(e,t){return(typeof e==`number`?e<2**53-1:!Number.isNaN(Number(e)))&&!Number.isNaN(e)&&f_(t)<14&&t!==``}function m_(e,t,n){return e===void 0||(t===void 0||e>=t)&&(n===void 0||e<=n)}var h_={size:`sm`,step:1,clampBehavior:`blur`,allowDecimal:!0,allowNegative:!0,withKeyboardEvents:!0,allowLeadingZeros:!0,trimLeadingZeroesOnBlur:!0,startValue:0,allowedDecimalSeparators:[`.`,`,`]},g_=gt((e,{size:t})=>({controls:{"--ni-chevron-size":I(t,`ni-chevron-size`)}}));function __(e,t){return t?`${e}.`:e}function v_(e,t){let n=r_.test(e),r=t.trim?e.replace(/^0+(?=\d)/,``):e,i=parseFloat(r);if(Number.isNaN(i))return r;if(!t.clamp)return t.trim?__(i,n):e;let a=i>2**53-1&&t.max!==void 0?t.max:ie(i,t.min,t.max);return!t.trim&&a===i?e:__(a,n)}function y_(e,t){if(e===``||e===`-`)return e;let n=l_(e);return n===null?e:t.clampBehavior===`blur`?d_(n,t.min,t.max):n}var b_=Pr(e=>{let t=K([`Input`,`InputWrapper`,`NumberInput`],h_,e),{className:n,classNames:r,styles:i,unstyled:a,vars:o,onChange:s,onValueChange:c,value:l,defaultValue:u,max:d,min:f,step:p,hideControls:m,rightSection:h,isAllowed:g,clampBehavior:_,onBlur:v,allowDecimal:y,decimalScale:b,onKeyDown:x,onKeyDownCapture:S,handlersRef:C,startValue:T,disabled:E,rightSectionPointerEvents:D,allowNegative:O,readOnly:k,size:A,rightSectionWidth:j,stepHoldInterval:M,stepHoldDelay:N,allowLeadingZeros:F,withKeyboardEvents:I,trimLeadingZeroesOnBlur:L,allowedDecimalSeparators:R,selectAllOnFocus:z,onMinReached:ee,onMaxReached:B,onFocus:V,attributes:te,ref:ne,...H}=t,re=O??!0,ae=F??!0,U=Qn({name:`NumberInput`,classes:$g,props:t,classNames:r,styles:i,unstyled:a,attributes:te,vars:o,varsResolver:g_}),{resolvedClassNames:W,resolvedStyles:oe}=Ln({classNames:r,styles:i,props:t}),se=(0,w.useRef)(a_(l)||a_(u)?`bigint`:`number`);a_(l)?se.current=`bigint`:typeof l==`number`&&(se.current=`number`);let ce=se.current===`bigint`,[le,ue]=Ne({value:l,defaultValue:u,finalValue:``,onChange:s}),de=N!==void 0&&M!==void 0,fe=(0,w.useRef)(null),pe=(0,w.useRef)(null),me=(0,w.useRef)(0),he=typeof f==`number`?f:void 0,ge=typeof d==`number`?d:void 0,_e=typeof p==`number`?p:h_.step,ve=typeof T==`number`?T:h_.startValue,ye=u_(f),be=u_(d),xe=u_(p)??BigInt(1),Se=u_(T)??BigInt(0),Ce=e=>!s_(e,re)||ae&&t_.test(e)?e:l_(e)??e,we=e=>{let t=Number(e);return Number.isSafeInteger(t)?t:void 0},Te=(e,t)=>{t.source===`event`&&ue(ce?Ce(e.value):p_(e.floatValue,e.value)&&!e_.test(e.value)&&!(ae&&t_.test(e.value))&&!n_.test(e.value)&&!r_.test(e.value)?e.floatValue:e.value),c?.(e,t)},Ee=e=>{let t=String(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},De=e=>{fe.current&&e!==void 0&&fe.current.setSelectionRange(e,e)},Oe=(0,w.useRef)(P);Oe.current=()=>{if(ce){if(!c_(le,re))return;let e,t=le;if(typeof t==`bigint`){let n=t+xe;be!==void 0&&n>be&&B?.(),e=be!==void 0&&n>be?be:n}else if(typeof t==`string`&&t!==``){let n=l_(t);if(n===null)return;let r=n+xe;be!==void 0&&r>be&&B?.(),e=be!==void 0&&r>be?be:r}else e=d_(Se,ye,be);let n=e.toString();ue(e),c?.({floatValue:we(e),formattedValue:n,value:n},{source:`increment`}),setTimeout(()=>De(fe.current?.value.length),0);return}if(!o_(le))return;let e,t=Ee(le),n=Ee(_e),r=Math.max(t,n),i=10**r;if(!i_(le)&&(typeof le!=`number`||Number.isNaN(le)))e=ie(ve,he,ge);else if(ge!==void 0){let t=(Math.round(Number(le)*i)+Math.round(_e*i))/i;t>ge&&B?.(),e=t<=ge?t:ge}else e=(Math.round(Number(le)*i)+Math.round(_e*i))/i;let a=e.toFixed(r);ue(parseFloat(a)),c?.({floatValue:parseFloat(a),formattedValue:a,value:a},{source:`increment`}),setTimeout(()=>De(fe.current?.value.length),0)};let ke=(0,w.useRef)(P);ke.current=()=>{if(ce){if(!c_(le,re))return;let e,t=ye===void 0?re?void 0:BigInt(0):ye,n=le;if(typeof n==`bigint`){let r=n-xe;t!==void 0&&r<t&&ee?.(),e=t!==void 0&&r<t?t:r}else if(typeof n==`string`&&n!==``){let r=l_(n);if(r===null)return;let i=r-xe;t!==void 0&&i<t&&ee?.(),e=t!==void 0&&i<t?t:i}else e=d_(Se,t,be);let r=e.toString();ue(e),c?.({floatValue:we(e),formattedValue:r,value:r},{source:`decrement`}),setTimeout(()=>De(fe.current?.value.length),0);return}if(!o_(le))return;let e,t=he===void 0?re?-(2**53-1):0:he,n=Ee(le),r=Ee(_e),i=Math.max(n,r),a=10**i;if(!i_(le)&&typeof le!=`number`||Number.isNaN(le))e=ie(ve,t,ge);else{let n=(Math.round(Number(le)*a)-Math.round(_e*a))/a;t!==void 0&&n<t&&ee?.(),e=t!==void 0&&n<t?t:n}let o=e.toFixed(i);ue(parseFloat(o)),c?.({floatValue:parseFloat(o),formattedValue:o,value:o},{source:`decrement`}),setTimeout(()=>De(fe.current?.value.length),0)};let je=e=>{let t=e.clipboardData.getData(`text`),n=H.decimalSeparator||`.`,r=Zg(t,{decimalSeparator:n,thousandSeparator:H.thousandSeparator===!0?`,`:H.thousandSeparator===!1?void 0:H.thousandSeparator,allowedDecimalSeparators:R||[`.`,`,`],thousandsGroupStyle:H.thousandsGroupStyle});if(r!==t){e.preventDefault();let t=fe.current;if(t){let e=t.selectionStart??0,i=t.selectionEnd??0,a=t.value,o=a.substring(0,e)+r+a.substring(i);(Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,`value`)?.set)?.call(t,o),t.dispatchEvent(new Event(`change`,{bubbles:!0}));let s=e+r.length;setTimeout(()=>De(Yg(o,s,t.value,n)),0)}}H.onPaste?.(e)},Pe=e=>{x?.(e),!k&&I&&(e.key===`ArrowUp`&&(e.preventDefault(),Oe.current?.()),e.key===`ArrowDown`&&(e.preventDefault(),ke.current?.()))},Fe=e=>{if(S?.(e),e.key===`Backspace`){let t=fe.current;t&&t.selectionStart===0&&t.selectionStart===t.selectionEnd&&(e.preventDefault(),window.setTimeout(()=>De(0),0))}},Ie=e=>{z&&window.setTimeout(()=>fe.current?.select(),0),V?.(e)},Le=e=>{let t=le;ce?(_===`blur`&&typeof t==`bigint`&&(t=d_(t,ye,be)),L&&typeof t==`string`&&(t=y_(t,{min:ye,max:be,clampBehavior:_}))):typeof t==`number`?_===`blur`&&(t=ie(t,he,ge)):typeof t==`string`&&(t=v_(t,{min:he,max:ge,trim:!!L&&Ee(t)<15,clamp:_===`blur`})),le!==t&&ue(t),v?.(e)};Ae(C,{increment:Oe.current,decrement:ke.current});let Re=e=>{e?Oe.current?.():ke.current?.(),me.current+=1},ze=e=>{if(Re(e),de){let t=typeof M==`number`?M:M(me.current);pe.current=window.setTimeout(()=>ze(e),t)}},Be=(e,t)=>{e.preventDefault(),fe.current?.focus(),Re(t),de&&(pe.current=window.setTimeout(()=>ze(t),N))},Ve=()=>{pe.current&&window.clearTimeout(pe.current),pe.current=null,me.current=0},He=(0,G.jsxs)(`div`,{...U(`controls`),children:[(0,G.jsx)(fc,{...U(`control`),tabIndex:-1,"aria-hidden":!0,disabled:E||typeof le==`number`&&ge!==void 0&&le>=ge||typeof le==`bigint`&&be!==void 0&&le>=be,mod:{direction:`up`},onMouseDown:e=>e.preventDefault(),onPointerDown:e=>{Be(e,!0)},onPointerUp:Ve,onPointerLeave:Ve,children:(0,G.jsx)(Qg,{direction:`up`})}),(0,G.jsx)(fc,{...U(`control`),tabIndex:-1,"aria-hidden":!0,disabled:E||typeof le==`number`&&he!==void 0&&le<=he||typeof le==`bigint`&&ye!==void 0&&le<=ye,mod:{direction:`down`},onMouseDown:e=>e.preventDefault(),onPointerDown:e=>{Be(e,!1)},onPointerUp:Ve,onPointerLeave:Ve,children:(0,G.jsx)(Qg,{direction:`down`})})]});return(0,G.jsx)(kd,{component:qg,allowNegative:O,className:vt($g.root,n),size:A,...H,inputMode:ce?`numeric`:`decimal`,readOnly:k,disabled:E,value:typeof le==`bigint`?le.toString():le,getInputRef:Me(ne,fe),onValueChange:Te,rightSection:m||k||!(ce?c_(le,re):o_(le))?h:h||He,classNames:W,styles:oe,unstyled:a,__staticSelector:`NumberInput`,decimalScale:ce?0:y?b:0,onPaste:je,onFocus:Ie,onKeyDown:Pe,onKeyDownCapture:Fe,rightSectionPointerEvents:D??(E?`none`:void 0),rightSectionWidth:j??`var(--ni-right-section-width-${A||`sm`})`,allowLeadingZeros:F,allowedDecimalSeparators:R,onBlur:Le,attributes:te,isAllowed:e=>{if(g&&!g(e))return!1;if(_!==`strict`)return!0;if(!ce)return m_(e.floatValue,he,ge);if(e.value===``||e.value===`-`)return!0;let t=l_(e.value);return t===null||(ye===void 0||t>=ye)&&(be===void 0||t<=be)}})});b_.classes={...kd.classes,...$g},b_.varsResolver=g_,b_.displayName=`@mantine/core/NumberInput`;var[x_,S_]=E(`Progress.Root component was not found in tree`),C_={root:`m_db6d6462`,section:`m_2242eb65`,"stripes-animation":`m_81a374bd`,"stripes-animation-vertical":`m_e0fb7a86`,label:`m_91e40b74`},w_=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ProgressLabel`,null,e),s=S_();return(0,G.jsx)(J,{...s.getStyles(`label`,{className:n,style:r,classNames:t,styles:i}),...o})});w_.classes=C_,w_.displayName=`@mantine/core/ProgressLabel`;var T_=gt((e,{size:t,radius:n,transitionDuration:r})=>({root:{"--progress-size":I(t,`progress-size`),"--progress-radius":n===void 0?void 0:R(n),"--progress-transition-duration":typeof r==`number`?`${r}ms`:void 0}})),E_=q(e=>{let t=K(`ProgressRoot`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,autoContrast:c,transitionDuration:l,orientation:u,attributes:d,mod:f,...p}=t,m=Qn({name:`Progress`,classes:C_,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:T_});return(0,G.jsx)(x_,{value:{getStyles:m,autoContrast:c},children:(0,G.jsx)(J,{mod:[{orientation:u},f],...m(`root`),...p})})});E_.classes=C_,E_.varsResolver=T_,E_.displayName=`@mantine/core/ProgressRoot`;var D_={withAria:!0},O_=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,value:o,withAria:s,color:c,striped:l,animated:u,mod:d,...f}=K(`ProgressSection`,D_,e),p=S_(),m=xn(),h=s?{role:`progressbar`,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o,"aria-valuetext":`${o}%`}:{};return(0,G.jsx)(J,{...p.getStyles(`section`,{className:n,classNames:t,styles:i,style:r}),...f,...h,mod:[{striped:l||u,animated:u},d],__vars:{"--progress-section-size":`${o}%`,"--progress-section-color":It(c,m),"--progress-label-color":Kt(p.autoContrast,m)?Ut({color:c,theme:m,autoContrast:p.autoContrast}):void 0}})});O_.classes=C_,O_.displayName=`@mantine/core/ProgressSection`;var k_=q(e=>{let t=K(`Progress`,null,e),{value:n,classNames:r,styles:i,vars:a,color:o,striped:s,animated:c,"aria-label":l,...u}=t,{resolvedClassNames:d,resolvedStyles:f}=Ln({classNames:r,styles:i,props:t});return(0,G.jsx)(E_,{classNames:d,styles:f,vars:a,...u,children:(0,G.jsx)(O_,{value:n,color:o,striped:s,animated:c,"aria-label":l})})});k_.classes=C_,k_.displayName=`@mantine/core/Progress`,k_.Section=O_,k_.Root=E_,k_.Label=w_;function A_({offset:e,position:t,defaultOpened:n}){let[r,i]=(0,w.useState)(n),a=(0,w.useRef)(null),{x:o,y:s,elements:c,refs:l,update:u,placement:d}=Ys({placement:t,middleware:[rs({crossAxis:!0,padding:5,rootBoundary:`document`})]}),f=d.includes(`right`)?e:t.includes(`left`)?e*-1:0,p=d.includes(`bottom`)?e:t.includes(`top`)?e*-1:0,m=(0,w.useCallback)(({clientX:e,clientY:t})=>{Number.isFinite(e)&&Number.isFinite(t)&&l.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e+f,top:t+p,right:e,bottom:t}}})},[c.reference]);return(0,w.useEffect)(()=>{if(l.floating.current){let e=a.current;e.addEventListener(`mousemove`,m);let t=Ki(l.floating.current);return t.forEach(e=>{e.addEventListener(`scroll`,u)}),()=>{e.removeEventListener(`mousemove`,m),t.forEach(e=>{e.removeEventListener(`scroll`,u)})}}},[c.reference,l.floating.current,u,m,r]),{handleMouseMove:m,x:o,y:s,opened:r,setOpened:i,boundaryRef:a,floating:l.setFloating}}var j_={tooltip:`m_1b3c8819`,arrow:`m_f898399f`},M_={refProp:`ref`,withinPortal:!0,offset:10,position:`right`,zIndex:N(`popover`)},N_=gt((e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:R(t),"--tooltip-bg":n?It(n,e):void 0,"--tooltip-color":n?`var(--mantine-color-white)`:void 0}})),P_=q(e=>{let t=K(`TooltipFloating`,M_,e),{children:n,refProp:r,withinPortal:i,style:a,className:o,classNames:s,styles:c,unstyled:l,radius:u,color:d,label:f,offset:p,position:m,multiline:h,zIndex:g,disabled:_,defaultOpened:v,variant:y,vars:b,portalProps:x,attributes:S,ref:C,...T}=t,E=xn(),D=Qn({name:`TooltipFloating`,props:t,classes:j_,className:o,style:a,classNames:s,styles:c,unstyled:l,attributes:S,rootSelector:`tooltip`,vars:b,varsResolver:N_}),{handleMouseMove:O,x:k,y:A,opened:j,boundaryRef:M,floating:N,setOpened:P}=A_({offset:p,position:m,defaultOpened:v}),F=ht(n);if(!F)throw Error(`[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let I=Me(M,ut(F),C),L=F.props,R=e=>{L.onMouseEnter?.(e),O(e),P(!0)},z=e=>{L.onMouseLeave?.(e),P(!1)};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Ic,{...x,withinPortal:i,children:(0,G.jsx)(J,{...T,...D(`tooltip`,{style:{...Ar(a,E),zIndex:g,display:!_&&j?`block`:`none`,top:Number.isFinite(A)?Math.round(A):``,left:Number.isFinite(k)?Math.round(k):``}}),variant:y,ref:N,mod:{multiline:h},children:f})}),(0,w.cloneElement)(F,{...L,[r]:I,onMouseEnter:R,onMouseLeave:z})]})});P_.classes=j_,P_.varsResolver=N_,P_.displayName=`@mantine/core/TooltipFloating`;var F_=(0,w.createContext)({withinGroup:!1}),I_={openDelay:0,closeDelay:0};function L_(e){let{openDelay:t,closeDelay:n,children:r}=K(`TooltipGroup`,I_,e);return(0,G.jsx)(F_,{value:{withinGroup:!0},children:(0,G.jsx)(Bs,{delay:{open:t,close:n},children:r})})}L_.displayName=`@mantine/core/TooltipGroup`,L_.extend=e=>e;function R_(e){if(e===void 0)return{shift:!0,flip:!0};let t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function z_(e){let t=R_(e.middlewares),n=[ns(e.offset),ss()];return t.shift&&n.push(rs(typeof t.shift==`boolean`?{padding:8}:{padding:8,...t.shift})),t.flip&&n.push(typeof t.flip==`boolean`?as():as(t.flip)),n.push(ls({element:e.arrowRef,padding:e.arrowOffset})),t.inline?n.push(typeof t.inline==`boolean`?cs():cs(t.inline)):e.inline&&n.push(cs()),n}function B_(e){let[t,n]=(0,w.useState)(e.defaultOpened),r=typeof e.opened==`boolean`,i=!e.disabled&&(r?e.opened:t);(0,w.useEffect)(()=>{e.disabled&&n(!1)},[e.disabled]);let a=(0,w.use)(F_).withinGroup,o=Oe(),s=nn(),c=(0,w.useCallback)(e=>{n(e),e&&y(o)},[o]),{x:l,y:u,context:d,refs:f,placement:p,middlewareData:{arrow:{x:m,y:h}={},hide:g}}=Ys({strategy:e.strategy,placement:e.position,open:i,onOpenChange:c,middleware:z_(e),whileElementsMounted:zo}),{delay:_,currentId:v,setCurrentId:y}=Vs(d,{id:o}),{getReferenceProps:b,getFloatingProps:x}=$s([Is(d,{enabled:!e.disabled&&e.events?.hover,delay:a?_:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch,handleClose:e.interactive?ac():null}),Zs(d,{enabled:!e.disabled&&e.events?.focus,visibleOnly:!0}),tc(d,{role:`tooltip`}),qs(d,{enabled:e.opened===void 0})]),S=(0,w.useRef)(p);fe(()=>{S.current!==p&&(S.current=p,e.onPositionChange?.(p))},[p]);let C=i&&v&&v!==o;return{x:l,y:u,arrowX:m,arrowY:h,reference:f.setReference,floating:f.setFloating,getFloatingProps:x,getReferenceProps:b,isGroupPhase:C,opened:i,placement:p,referenceHidden:e.hideDetached&&s!==`test`?g?.referenceHidden:!1}}var V_={position:`top`,refProp:`ref`,withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:`side`,offset:5,transitionProps:{duration:100,transition:`fade`},events:{hover:!0,focus:!1,touch:!1},zIndex:N(`popover`),middlewares:{flip:!0,shift:!0,inline:!1},hideDetached:!0},H_=gt((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({theme:e,color:n||e.primaryColor,autoContrast:i,variant:r||`filled`});return{tooltip:{"--tooltip-radius":t===void 0?void 0:R(t),"--tooltip-bg":n?a.background:void 0,"--tooltip-color":n?a.color:void 0}}}),U_=q(e=>{let t=K(`Tooltip`,V_,e),{children:n,position:r,refProp:i,label:a,openDelay:o,closeDelay:s,onPositionChange:c,opened:l,defaultOpened:u,withinPortal:d,radius:f,color:p,classNames:m,styles:h,unstyled:g,style:_,className:v,withArrow:y,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,offset:T,transitionProps:E,multiline:D,events:O,interactive:k,zIndex:A,disabled:j,onClick:M,onMouseEnter:N,onMouseLeave:P,inline:F,variant:I,keepMounted:L,vars:R,portalProps:z,mod:ee,floatingStrategy:B,middlewares:V,autoContrast:te,attributes:ne,target:H,hideDetached:re,ref:ie,...ae}=t,{dir:U}=Ur(),W=(0,w.useRef)(null),oe=B_({position:Tc(U,r),closeDelay:s,openDelay:o,onPositionChange:c,opened:l,defaultOpened:u,disabled:j,events:O,interactive:k,arrowRef:W,arrowOffset:x,offset:typeof T==`number`?T+(y?b/2:0):T,inline:F,strategy:B,middlewares:V,hideDetached:re});(0,w.useEffect)(()=>{let e=H instanceof HTMLElement?H:typeof H==`string`?document.querySelector(H):H?.current||null;e&&oe.reference(e)},[H,oe]);let se=Qn({name:`Tooltip`,props:t,classes:j_,className:v,style:_,classNames:m,styles:h,unstyled:g,attributes:ne,rootSelector:`tooltip`,vars:R,varsResolver:H_}),ce=ht(n);if(!H&&!ce)throw Error(`[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let le=se(`tooltip`),ue=k&&!j&&!!oe.opened,de=C===`merge`&&y?Cc({position:oe.placement,dir:U}):void 0;if(H){let e=Wc(E,{duration:100,transition:`fade`});return(0,G.jsx)(G.Fragment,{children:(0,G.jsx)(Ic,{...z,withinPortal:d,children:(0,G.jsx)(Hc,{...e,keepMounted:L,mounted:!j&&!!oe.opened,duration:oe.isGroupPhase?10:e.duration,children:e=>(0,G.jsxs)(J,{...ae,"data-fixed":B===`fixed`||void 0,variant:I,mod:[{multiline:D,interactive:ue},ee],...le,...oe.getFloatingProps({ref:oe.floating,className:le.className,style:{...le.style,...e,...de,zIndex:A,top:oe.y??0,left:oe.x??0,...oe.referenceHidden?{display:`none`}:null}}),children:[a,(0,G.jsx)(wc,{ref:W,arrowX:oe.arrowX,arrowY:oe.arrowY,visible:y,position:oe.placement,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,...se(`arrow`)})]})})})})}let fe=ce.props,pe=Me(oe.reference,ut(ce),ie),me=Wc(E,{duration:100,transition:`fade`});return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Ic,{...z,withinPortal:d,children:(0,G.jsx)(Hc,{...me,keepMounted:L,mounted:!j&&!!oe.opened,duration:oe.isGroupPhase?10:me.duration,children:e=>(0,G.jsxs)(J,{...ae,"data-fixed":B===`fixed`||void 0,variant:I,mod:[{multiline:D,interactive:ue},ee],...oe.getFloatingProps({ref:oe.floating,className:se(`tooltip`).className,style:{...se(`tooltip`).style,...e,...de,zIndex:A,top:oe.y??0,left:oe.x??0,...oe.referenceHidden?{display:`none`}:null}}),children:[a,(0,G.jsx)(wc,{ref:W,arrowX:oe.arrowX,arrowY:oe.arrowY,visible:y,position:oe.placement,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,...se(`arrow`)})]})})}),(0,w.cloneElement)(ce,oe.getReferenceProps({onClick:M,onMouseEnter:N,onMouseLeave:P,onMouseMove:t.onMouseMove,onPointerDown:t.onPointerDown,onPointerEnter:t.onPointerEnter,...fe,className:vt(v,fe.className),[i]:pe}))]})});U_.classes=j_,U_.varsResolver=H_,U_.displayName=`@mantine/core/Tooltip`,U_.Floating=P_,U_.Group=L_;var W_={root:`m_cf365364`,indicator:`m_9e182ccd`,label:`m_1738fcb2`,input:`m_1714d588`,control:`m_69686b9b`,innerLabel:`m_78882f40`},G_={withItemsBorders:!0},K_=gt((e,{radius:t,color:n,transitionDuration:r,size:i,transitionTimingFunction:a})=>({root:{"--sc-radius":t===void 0?void 0:R(t),"--sc-color":n?It(n,e):void 0,"--sc-shadow":n?void 0:`var(--mantine-shadow-xs)`,"--sc-transition-duration":r===void 0?void 0:`${r}ms`,"--sc-transition-timing-function":a,"--sc-padding":I(i,`sc-padding`),"--sc-font-size":z(i)}})),q_=Pr(e=>{let t=K(`SegmentedControl`,G_,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,data:c,value:l,defaultValue:u,onChange:d,size:f,name:p,disabled:m,readOnly:h,fullWidth:g,orientation:_,radius:v,color:y,transitionDuration:b,transitionTimingFunction:x,variant:S,autoContrast:C,withItemsBorders:T,mod:E,attributes:D,ref:O,...k}=t,A=Qn({name:`SegmentedControl`,props:t,classes:W_,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:D,vars:s,varsResolver:K_}),j=xn(),M=c.map(e=>dt(e)?{label:`${e}`,value:e}:e),N=Ve(),[P,F]=(0,w.useState)(0),[I,L]=(0,w.useState)(null),[R,z]=(0,w.useState)({}),ee=(e,t)=>{e!==null&&R[t]!==e&&(R[t]=e,z({...R}))},[B,V]=Ne({value:l,defaultValue:u,finalValue:Array.isArray(c)?M.find(e=>!e.disabled)?.value??c[0]?.value??null:null,onChange:d}),te=Oe(p),ne=M.map(e=>`${e.value}`),H=M.map(e=>(0,w.createElement)(J,{...A(`control`),mod:{active:B===e.value,orientation:_},key:`${e.value}`},(0,w.createElement)(`input`,{...A(`input`),disabled:m||e.disabled,type:`radio`,name:te,value:`${e.value}`,id:`${te}-${e.value}`,checked:B===e.value,onChange:()=>!h&&V(e.value),"data-focus-ring":j.focusRing,key:`${e.value}-input`}),(0,w.createElement)(J,{component:`label`,...A(`label`),mod:{active:B===e.value&&!(m||e.disabled),disabled:m||e.disabled,"read-only":h},htmlFor:`${te}-${e.value}`,ref:t=>ee(t,`${e.value}`),__vars:{"--sc-label-color":y===void 0?void 0:Ut({color:y,theme:j,autoContrast:C})},key:`${e.value}-label`},(0,G.jsx)(`span`,{...A(`innerLabel`),children:e.label})))),re=Me(O,L);return Le(()=>{F(e=>e+1)},[c.length]),Le(()=>{z(e=>{let t={};return ne.forEach(n=>{n in e&&(t[n]=e[n])}),Object.keys(t).length===Object.keys(e).length?e:t})},[ne]),c.length===0?null:(0,G.jsxs)(J,{...A(`root`),variant:S,size:f,ref:re,mod:[{"full-width":g,orientation:_,initialized:N,"with-items-borders":T},E],...k,role:`radiogroup`,"data-disabled":m,children:[B!==void 0&&(0,G.jsx)(Pd,{target:R[`${B}`],parent:I,component:`span`,transitionDuration:`var(--sc-transition-duration)`,...A(`indicator`)},P),H]})});q_.classes=W_,q_.varsResolver=K_,q_.displayName=`@mantine/core/SegmentedControl`;var J_={size:`sm`,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:`left`,openOnFocus:!0},Y_=Pr(e=>{let t=K([`Input`,`InputWrapper`,`Select`],J_,e),{classNames:n,styles:r,unstyled:i,vars:a,dropdownOpened:o,defaultDropdownOpened:s,onDropdownClose:c,onDropdownOpen:l,onFocus:u,onBlur:d,onClick:f,onChange:p,data:m,value:h,defaultValue:g,selectFirstOptionOnChange:_,selectFirstOptionOnDropdownOpen:v,onOptionSubmit:y,comboboxProps:b,readOnly:x,disabled:S,filter:C,limit:T,withScrollArea:E,maxDropdownHeight:D,floatingHeight:O,size:k,searchable:A,rightSection:j,checkIconPosition:M,withCheckIcon:N,withAlignedLabels:P,nothingFoundMessage:F,name:I,form:L,searchValue:R,defaultSearchValue:z,onSearchChange:ee,allowDeselect:B,error:V,rightSectionPointerEvents:te,id:ne,clearable:H,clearSectionMode:re,clearButtonProps:ie,hiddenInputProps:ae,renderOption:U,onClear:W,autoComplete:oe,scrollAreaProps:se,__defaultRightSection:ce,__clearSection:le,__clearable:ue,chevronColor:de,autoSelectOnBlur:fe,openOnFocus:pe,attributes:me,...he}=t,ge=(0,w.useMemo)(()=>Pf(m),[m]),_e=(0,w.useRef)({}),ve=(0,w.useMemo)(()=>Ff(ge),[ge]),ye=Oe(ne),be=kp({id:ye,label:he.label,labelProps:he.labelProps,inputWrapperOrder:he.inputWrapperOrder}),[xe,Se,Ce]=Ne({value:h,defaultValue:g,finalValue:null,onChange:p}),we=xe==null?void 0:`${xe}`in ve?ve[`${xe}`]:_e.current[`${xe}`],Te=ze(we),[Ee,De,ke]=Ne({value:R,defaultValue:z,finalValue:we?we.label:``,onChange:ee}),Ae=lp({opened:o,defaultOpened:s,onDropdownOpen:()=>{l?.(),v?Ae.selectFirstOption():Ae.updateSelectedOptionIndex(`active`,{scrollIntoView:!0})},onDropdownClose:()=>{c?.(),setTimeout(Ae.resetSelectedOption,0)}}),je=e=>{De(e),Ae.resetSelectedOption()},{resolvedClassNames:Me,resolvedStyles:Pe}=Ln({props:t,styles:r,classNames:n});(0,w.useEffect)(()=>{_&&Ae.selectFirstOption()},[_,Ee]),(0,w.useEffect)(()=>{h===null&&je(``),h!=null&&we&&(Te?.value!==we.value||Te?.label!==we.label)&&je(we.label)},[h,we]),(0,w.useEffect)(()=>{!Ce&&!ke&&je(xe==null?``:`${xe}`in ve?ve[`${xe}`]?.label:_e.current[`${xe}`]?.label||``)},[ve,xe]),(0,w.useEffect)(()=>{xe&&`${xe}`in ve&&(_e.current[`${xe}`]=ve[`${xe}`])},[ve,xe]);let Fe=(0,G.jsx)(fp.ClearButton,{...ie,onClear:()=>{Se(null,null),je(``),W?.()}}),Ie=H&&xe!=null&&!S&&!x;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(fp,{store:Ae,__staticSelector:`Select`,classNames:Me,styles:Pe,unstyled:i,readOnly:x,size:k,attributes:me,floatingHeight:O,keepMounted:fe,onOptionSubmit:e=>{y?.(e);let t=B&&`${ve[e].value}`==`${xe}`?null:ve[e],n=t?t.value:null;n!==xe&&Se(n,t),!Ce&&je(n==null?``:t?.label||``),Ae.closeDropdown()},...b,children:[(0,G.jsx)(fp.Target,{targetType:A?`input`:`button`,autoComplete:oe,withExpandedAttribute:!0,children:(0,G.jsx)(kd,{id:ye,__defaultRightSection:(0,G.jsx)(fp.Chevron,{size:k,error:V,unstyled:i,color:de}),__clearSection:Fe,__clearable:Ie,__clearSectionMode:re,rightSection:j,rightSectionPointerEvents:te||`none`,...he,size:k,__staticSelector:`Select`,disabled:S,readOnly:x||!A,value:Ee,onChange:e=>{if(Xp(e)){if(!x){let t=qh(ve,e.currentTarget.value);t&&`${t.value}`!=`${xe}`&&(Se(t.value,t),!Ce&&je(t.label))}}else je(e.currentTarget.value),Ae.openDropdown(),_&&Ae.selectFirstOption()},onFocus:e=>{pe&&A&&Ae.openDropdown(),u?.(e)},onBlur:e=>{fe&&Ae.clickSelectedOption(),Ae.closeDropdown();let t=xe!=null&&(`${xe}`in ve?ve[`${xe}`]:_e.current[`${xe}`]);je(t&&t.label||``),d?.(e)},onClick:e=>{A?Ae.openDropdown():Ae.toggleDropdown(),f?.(e)},classNames:Me,styles:Pe,unstyled:i,pointer:!A,error:V,attributes:me})}),(0,G.jsx)(wp,{data:ge,hidden:x||S,filter:C,search:Ee,limit:T,hiddenWhenEmpty:!F,withScrollArea:E,maxDropdownHeight:D,filterOptions:!!A&&we?.label!==Ee,value:xe,checkIconPosition:M,withCheckIcon:N,withAlignedLabels:P,nothingFoundMessage:F,unstyled:i,labelId:be,"aria-label":be?void 0:he[`aria-label`],renderOption:U,scrollAreaProps:se})]}),(0,G.jsx)(fp.HiddenInput,{value:xe,name:I,form:L,disabled:S,...ae})]})});Y_.classes={...kd.classes,...fp.classes},Y_.displayName=`@mantine/core/Select`;function X_(e){if(e!==void 0)return typeof e==`number`?v(e):e}function Z_({spacing:e,verticalSpacing:t,cols:n,minColWidth:r,autoRows:i,selector:a}){let o=xn(),s=t===void 0?e:t,c=r!==void 0,l=b({"--sg-spacing-x":L(H(e)),"--sg-spacing-y":L(H(s)),"--sg-auto-rows":i,...c?{"--sg-min-col-width":X_(r)}:{"--sg-cols":H(n)?.toString()}}),d=u(o.breakpoints).reduce((t,r)=>(t[r]||(t[r]={}),typeof e==`object`&&e[r]!==void 0&&(t[r][`--sg-spacing-x`]=L(e[r])),typeof s==`object`&&s[r]!==void 0&&(t[r][`--sg-spacing-y`]=L(s[r])),!c&&typeof n==`object`&&n[r]!==void 0&&(t[r][`--sg-cols`]=n[r]),t),{}),f=ne(u(d),o.breakpoints).filter(e=>u(d[e.value]).length>0).map(e=>({query:`(min-width: ${o.breakpoints[e.value]})`,styles:d[e.value]}));return(0,G.jsx)(rr,{styles:l,media:f,selector:a})}function Q_(e){return typeof e==`object`&&e?u(e):[]}function $_(e){return e.sort((e,t)=>h(e)-h(t))}function ev({spacing:e,verticalSpacing:t,cols:n,minColWidth:r}){return $_(Array.from(new Set([...Q_(e),...Q_(t),...r===void 0?Q_(n):[]])))}function tv({spacing:e,verticalSpacing:t,cols:n,minColWidth:r,autoRows:i,selector:a}){let o=t===void 0?e:t,s=r!==void 0,c=b({"--sg-spacing-x":L(H(e)),"--sg-spacing-y":L(H(o)),"--sg-auto-rows":i,...s?{"--sg-min-col-width":X_(r)}:{"--sg-cols":H(n)?.toString()}}),l=ev({spacing:e,verticalSpacing:t,cols:n,minColWidth:r}),u=l.reduce((t,r)=>(t[r]||(t[r]={}),typeof e==`object`&&e[r]!==void 0&&(t[r][`--sg-spacing-x`]=L(e[r])),typeof o==`object`&&o[r]!==void 0&&(t[r][`--sg-spacing-y`]=L(o[r])),!s&&typeof n==`object`&&n[r]!==void 0&&(t[r][`--sg-cols`]=n[r]),t),{}),d=l.map(e=>({query:`simple-grid (min-width: ${e})`,styles:u[e]}));return(0,G.jsx)(rr,{styles:c,container:d,selector:a})}var nv={container:`m_925c2d2c`,root:`m_2415a157`},rv={cols:1,spacing:`md`,type:`media`},iv=q(e=>{let t=K(`SimpleGrid`,rv,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,cols:c,verticalSpacing:l,spacing:u,type:d,minColWidth:f,autoFlow:p,autoRows:m,attributes:h,...g}=t,_=Qn({name:`SimpleGrid`,classes:nv,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s}),v=kr(),y=f===void 0?void 0:p||`auto-fill`;return d===`container`?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(tv,{...t,selector:`.${v}`}),(0,G.jsx)(`div`,{..._(`container`),children:(0,G.jsx)(J,{..._(`root`,{className:v}),...g,"data-auto-cols":y})})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Z_,{...t,selector:`.${v}`}),(0,G.jsx)(J,{..._(`root`,{className:v}),...g,"data-auto-cols":y})]})});iv.classes=nv,iv.displayName=`@mantine/core/SimpleGrid`;var av={root:`m_6d731127`},ov={gap:`md`,align:`stretch`,justify:`flex-start`},sv=gt((e,{gap:t,align:n,justify:r})=>({root:{"--stack-gap":L(t),"--stack-align":n,"--stack-justify":r}})),cv=q(e=>{let t=K(`Stack`,ov,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,align:c,justify:l,gap:u,variant:d,attributes:f,...p}=t,m=Qn({name:`Stack`,props:t,classes:av,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:sv});return(0,G.jsx)(J,{...m(`root`),variant:d,...p})});cv.classes=av,cv.varsResolver=sv,cv.displayName=`@mantine/core/Stack`;var lv=(0,w.createContext)(null),uv={hiddenInputValuesSeparator:`,`},dv=Pr((e=>{let{value:t,defaultValue:n,onChange:r,size:i,wrapperProps:a,children:o,readOnly:s,name:c,hiddenInputValuesSeparator:l,hiddenInputProps:u,maxSelectedValues:d,disabled:f,...p}=K(`SwitchGroup`,uv,e),[m,h]=Ne({value:t,defaultValue:n,finalValue:[],onChange:r}),g=e=>{let t=e.currentTarget.value;if(s)return;let n=m.includes(t);!n&&d&&m.length>=d||h(n?m.filter(e=>e!==t):[...m,t])},_=e=>{if(f)return!0;if(!d)return!1;let t=m.includes(e),n=m.length>=d;return!t&&n},v=m.join(l);return(0,G.jsx)(lv,{value:{value:m,onChange:g,size:i,isDisabled:_},children:(0,G.jsxs)(Ed.Wrapper,{size:i,...a,...p,labelElement:`div`,__staticSelector:`SwitchGroup`,children:[(0,G.jsx)(pp,{role:`group`,children:o}),(0,G.jsx)(`input`,{type:`hidden`,name:c,value:v,...u})]})})}));dv.classes=Ed.Wrapper.classes,dv.displayName=`@mantine/core/SwitchGroup`;var fv={root:`m_5f93f3bb`,input:`m_926b4011`,track:`m_9307d992`,thumb:`m_93039a1d`,trackLabel:`m_8277e082`},pv={labelPosition:`right`,withThumbIndicator:!0},mv=gt((e,{radius:t,color:n,size:r})=>({root:{"--switch-radius":t===void 0?void 0:R(t),"--switch-height":I(r,`switch-height`),"--switch-width":I(r,`switch-width`),"--switch-thumb-size":I(r,`switch-thumb-size`),"--switch-label-font-size":I(r,`switch-label-font-size`),"--switch-track-label-padding":I(r,`switch-track-label-padding`),"--switch-color":n?It(n,e):void 0}})),hv=q(e=>{let t=K(`Switch`,pv,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,label:l,offLabel:u,onLabel:d,id:f,size:p,radius:m,wrapperProps:h,thumbIcon:g,checked:_,defaultChecked:v,onChange:y,labelPosition:b,description:x,error:S,disabled:C,variant:T,rootRef:E,mod:D,withThumbIndicator:O,attributes:k,...A}=t,j=(0,w.use)(lv),M=p||j?.size,N=Qn({name:`Switch`,props:t,classes:fv,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:k,vars:s,varsResolver:mv}),{styleProps:P,rest:F}=or(A),I=Oe(f),L=[x?`${I}-description`:void 0,S&&typeof S!=`boolean`?`${I}-error`:void 0,F[`aria-describedby`]].filter(Boolean).join(` `)||void 0,R={checked:j?.value.includes(F.value)??_,onChange:e=>{j?.onChange(e),y?.(e)}},z=C||j?.isDisabled?.(F.value),[ee,B]=Ne({value:R.checked??_,defaultValue:v,finalValue:!1});return(0,G.jsxs)(_p,{...N(`root`),__staticSelector:`Switch`,__stylesApiProps:t,id:I,size:M,labelPosition:b,label:l,description:x,error:S,disabled:z,bodyElement:`label`,labelElement:`span`,classNames:n,styles:a,unstyled:o,"data-checked":R.checked,variant:T,ref:E,mod:D,attributes:k,inert:F.inert,...P,...h,children:[(0,G.jsx)(`input`,{...F,...R,disabled:z,checked:ee,"data-checked":R.checked,onChange:e=>{R.onChange?.(e),B(e.currentTarget.checked)},id:I,type:`checkbox`,role:`switch`,inert:F.inert,"aria-describedby":L,...N(`input`)}),(0,G.jsxs)(J,{"aria-hidden":`true`,component:`span`,mod:{error:S,"label-position":b,"without-labels":!d&&!u},...N(`track`),children:[(0,G.jsx)(J,{component:`span`,mod:{"reduce-motion":!0,"with-thumb-indicator":O&&!g},...N(`thumb`),children:g}),(0,G.jsx)(`span`,{...N(`trackLabel`),children:ee?d:u})]})]})});hv.classes={...fv,...gp},hv.varsResolver=mv,hv.displayName=`@mantine/core/Switch`,hv.Group=dv;var gv=q(e=>{let t=K([`Input`,`InputWrapper`,`TextInput`],null,e);return(0,G.jsx)(kd,{component:`input`,...t,__staticSelector:`TextInput`})});gv.classes=kd.classes,gv.displayName=`@mantine/core/TextInput`;var tee=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],nee=[`xs`,`sm`,`md`,`lg`,`xl`];function ree(e,t){let n=t===void 0?`h${e}`:t;return tee.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:nee.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:v(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var _v={root:`m_8a5d1357`},iee={order:1},vv=gt((e,{order:t,size:n,lineClamp:r,textWrap:i})=>{let a=ree(t||1,n);return{root:{"--title-fw":a.fontWeight,"--title-lh":a.lineHeight,"--title-fz":a.fontSize,"--title-line-clamp":typeof r==`number`?r.toString():void 0,"--title-text-wrap":i}}}),yv=q(e=>{let t=K(`Title`,iee,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,order:s,vars:c,size:l,variant:u,lineClamp:d,textWrap:f,mod:p,attributes:m,...h}=t,g=Qn({name:`Title`,props:t,classes:_v,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:m,vars:c,varsResolver:vv});return[1,2,3,4,5,6].includes(s)?(0,G.jsx)(J,{...g(`root`),component:`h${s}`,variant:u,mod:[{order:s,lineClamp:typeof d==`number`},p],size:l,...h}):null});yv.classes=_v,yv.varsResolver=vv,yv.displayName=`@mantine/core/Title`;function bv(e){let t=e,n=!1,r=new Set;return{getState(){return t},updateState(e){t=typeof e==`function`?e(t):e},setState(e){this.updateState(e),r.forEach(e=>e(t))},initialize(e){n||=(t=e,!0)},subscribe(e){return r.add(e),()=>r.delete(e)}}}function xv(e){return(0,w.useSyncExternalStore)(e.subscribe,()=>e.getState(),()=>e.getState())}var Sv=0;function Cv(e,t,n){let r=[],i=[],a=new Map;for(let n of e){let e=n.position||t,r=a.get(e);r?r.push(n):a.set(e,[n])}for(let e of a.values())e.sort((e,t)=>(t.priority??0)-(e.priority??0)||(e.__sequence??0)-(t.__sequence??0)),e.forEach((e,t)=>{t<n?i.push(e):r.push(e)});return{notifications:i,queue:r}}var wv=bv({notifications:[],queue:[],defaultPosition:`bottom-right`,limit:5}),Tv=(e=wv)=>xv(e);function Ev(e,t){let n=e.getState(),r=t([...n.notifications,...n.queue]);for(let e of r)e.__sequence===void 0&&(e.__sequence=Sv,Sv+=1);let i=Cv(r,n.defaultPosition,n.limit);e.setState({notifications:i.notifications,queue:i.queue,limit:n.limit,defaultPosition:n.defaultPosition})}function Dv(e,t=wv){let n=e.id||ae();return Ev(t,t=>e.id&&t.some(t=>t.id===e.id)?t:[...t,{...e,id:n}]),n}function Ov(e,t=wv){return Ev(t,t=>t.filter(t=>t.id!==e||(t.onClose?.(t),!1))),e}function kv(e,t=wv){return Ev(t,t=>t.map(t=>t.id===e.id?{...t,...e}:t)),e.id}function Av(e,t){return typeof e==`function`?e(t):e}function jv(e,t){let n=t.getState();return[...n.notifications,...n.queue].some(t=>t.id===e.id)?kv(e,t):Dv(e,t)}var Mv=new WeakMap;function Nv(e,t,n=wv){let r=t.id||ae(),i=Mv.get(n)||new Map,a={};Mv.set(n,i),i.set(r,a),jv({loading:!0,autoClose:!1,...t.loading,id:r},n);let o=e=>{i.get(r)===a&&(i.delete(r),jv({...t.loading,loading:!1,autoClose:void 0,...e,id:r},n))};return e.then(e=>o({color:`teal`,...Av(t.success,e)}),e=>o({color:`red`,...Av(t.error,e)})),e}function Pv(e=wv){Ev(e,()=>[])}function Fv(e=wv){let{defaultPosition:t,limit:n}=e.getState();Ev(e,e=>Cv(e,t,n).notifications)}var Iv={show:Dv,hide:Ov,update:kv,promise:Nv,clean:Pv,cleanQueue:Fv,updateState:Ev},Lv=[`bottom-center`,`bottom-left`,`bottom-right`,`top-center`,`top-left`,`top-right`];function Rv(e,t){return e.reduce((e,n)=>(e[n.position||t].push(n),e),Lv.reduce((e,t)=>(e[t]=[],e),{}))}var zv={left:`translateX(-100%)`,right:`translateX(100%)`,"top-center":`translateY(-100%)`,"bottom-center":`translateY(100%)`},Bv={left:`translateX(0)`,right:`translateX(0)`,"top-center":`translateY(0)`,"bottom-center":`translateY(0)`};function Vv({state:e,maxHeight:t,position:n,transitionDuration:r}){let[i,a]=n.split(`-`),o=a===`center`?`${i}-center`:a,s={opacity:0,maxHeight:t,transform:zv[o],transitionDuration:`${r}ms, ${r}ms, ${r}ms`,transitionTimingFunction:`cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear`,transitionProperty:`opacity, transform, max-height`},c={opacity:1,transform:Bv[o]},l={opacity:0,maxHeight:0,transform:zv[o]},u={entering:c,entered:c,exiting:l,exited:l};return{...s,...u[e]}}function Hv(e,t){return typeof t==`number`?t:t===!1||e===!1?!1:e}var Uv=120,Wv=4,Gv=new Set([`classNames`,`styles`,`unstyled`,`vars`,`attributes`,`variant`,`color`,`radius`,`icon`,`title`,`loading`,`withBorder`,`withCloseButton`,`closeButtonProps`,`className`,`style`,`role`,`ref`,`children`,`mod`]);function Kv(e){let{rest:t}=or(e);return Object.fromEntries(Object.entries(t).filter(([e,t])=>!Gv.has(e)&&t!==void 0))}function qv({data:e,onHide:t,autoClose:n,transitionDuration:r,allowDragDismiss:i,allowScrollDismiss:a,paused:o,withAutoCloseProgress:s,progressProps:c,onHoverStart:l,onHoverEnd:u,onExpandRequest:d,ref:f,style:p,renderNotification:m,layout:h,stackIndex:g,stackSize:_,stackPosition:v,stackExpanded:y,stackExpandedOffset:b,transitionState:x,...S}){let[C,T]=(0,w.useState)(0),[E,D]=(0,w.useState)(!1),[O,k]=(0,w.useState)(1),[A,j]=(0,w.useState)(!1),M=xn(),{autoClose:N,message:P,allowClose:F,position:I,style:L,withCloseButton:R,renderNotification:z,onOpen:ee,priority:B,withAutoCloseProgress:V,__sequence:te,...ne}=e,H=Hv(n,e.autoClose),[re,ie]=(0,w.useState)({running:!1,cycle:0}),ae=(e.withAutoCloseProgress??s)&&typeof H==`number`,U=(0,w.useRef)(-1),W=(0,w.useRef)(-1),oe=(0,w.useRef)(-1),se=(0,w.useRef)(null),ce=(0,w.useRef)(!1),le=(0,w.useRef)(!1),ue=(0,w.useRef)(!1),de=(0,w.useRef)(0),fe=F===!1,pe=()=>{let e=ce.current||le.current;e&&!ue.current?(ue.current=!0,l?.()):!e&&ue.current&&(ue.current=!1,u?.())},he=(0,w.useEffectEvent)(()=>{ue.current&&(ue.current=!1,u?.())});(0,w.useEffect)(()=>()=>he(),[]);let ge=()=>{window.clearTimeout(U.current),ie(e=>e.running?{...e,running:!1}:e)},_e=()=>window.clearTimeout(W.current),ve=()=>window.clearTimeout(oe.current),ye=e=>{de.current=e,T(e)},be=()=>{t(e.id),ge(),_e(),ve()},xe=(0,w.useRef)(o);(0,w.useEffect)(()=>{xe.current=o});let Se=()=>{E||ke||ce.current||le.current||xe.current||typeof H!=`number`||(ge(),U.current=window.setTimeout(be,H),ie(e=>({running:!0,cycle:e.cycle+1})))},Ce=e=>e*((se.current?.offsetWidth??440)+40),we=(e,t)=>{let n=se.current?.offsetWidth??440;return Math.abs(e)>n*.35||t>.5},Te=()=>{ve(),j(!1),ye(0)},Ee=e=>{k(e),D(!0),j(!1),ye(Ce(e)),ge(),_e(),ve(),W.current=window.setTimeout(be,r)},De=()=>{ve(),oe.current=window.setTimeout(()=>{j(!1),ye(0),Se()},Uv)},{ref:Oe,active:ke}=ct(e=>{if(!E){if(e.first&&ge(),e.last){if(e.tap||e.canceled){ye(0),Se();return}let t=e.movement[0],n=t===0?e.direction[0]===-1?-1:1:t>0?1:-1;we(t,e.velocity[0])?Ee(n):(ye(0),Se())}else ye(e.movement[0])}},{axis:`x`,threshold:5,filterTaps:!0,enabled:i&&!fe&&!E}),Ae=Me(f,se,Oe),je=Ar(p,M),Ne=Ar(L,M),Pe={...je,...Ne},Fe=typeof Pe.opacity==`number`?Pe.opacity:1,Ie=E?0:1-Math.min(Math.abs(C)/200,1)*.6,Le=Pe.transitionDuration??`${r}ms, ${r}ms, ${r}ms`,Re=h===`stacked`,ze=Re&&g!==void 0&&g>0,Be=ze&&!y,Ve=x===`exiting`||x===`exited`,He=v?.startsWith(`top`)?1:-1,Ue=Math.min(g??0,Wv),We=Be?Ue*10*He:0,Ge=Re?(g||0)*30:0,Ke=ke||A,qe=()=>Re?Ve?`translateY(${y?b||0:We}px) var(--notifications-state-transform) translate3d(var(--notifications-swipe-offset), 0, 0)`:y?`translateY(${b||0}px) translate3d(var(--notifications-swipe-offset), 0, 0)`:ze?`scale(${1-Ue*.03}) translateY(${We}px)`:`var(--notifications-state-transform) translate3d(var(--notifications-swipe-offset), 0, 0)`:`var(--notifications-state-transform) translate3d(var(--notifications-swipe-offset), 0, 0)`,Je={...Pe,...Re?{maxHeight:void 0}:{},"--notifications-state-transform":typeof Pe.transform==`string`?Pe.transform:`translateX(0)`,"--notifications-state-opacity":String(Fe),"--notifications-swipe-offset":`${C}px`,"--notifications-swipe-opacity":String(Ie),transform:qe(),opacity:`calc(var(--notifications-state-opacity) * var(--notifications-swipe-opacity))`,transitionDuration:Ke?`0ms, 0ms, 0ms`:Le,cursor:`default`,touchAction:`pan-y`,...Re?{gridArea:`1 / 1`,zIndex:(_||5)-(g??0),pointerEvents:Be?`none`:void 0,alignSelf:He===1?`start`:`end`,transitionProperty:Ke?`none`:`transform, opacity`,transitionDuration:`${r}ms, ${r}ms`,transitionTimingFunction:`cubic-bezier(.51,.3,0,1.21), ease`,transitionDelay:Ke||Ve?`0ms`:`${Ge}ms`}:{}},Ye=()=>{ce.current=!0,ge(),pe()},Xe=()=>{ce.current=!1,A||(Te(),Se()),pe()},Ze=Re?()=>{le.current=!0,ge(),pe()}:void 0,Qe=Re?()=>{le.current=!1,A||Se(),pe()}:void 0,$e=e=>{Re&&(e.pointerType===`touch`||e.pointerType===`pen`)&&d?.()},et=(0,w.useEffectEvent)(e=>{if(E||ke)return;let t=e.currentTarget===document;if(!t&&!ce.current)return;let{deltaX:n,deltaY:r}=e;if(Math.abs(n)<=Math.abs(r)||n===0||!a||fe)return;t||(e.preventDefault(),e.stopPropagation()),ge(),j(!0);let i=de.current-n,o=i>0?1:-1;we(i,0)?Ee(o):(ye(i),De())});(0,w.useEffect)(()=>{if(A)return document.addEventListener(`wheel`,et,{passive:!1}),()=>document.removeEventListener(`wheel`,et,{passive:!1})},[A]),(0,w.useEffect)(()=>{let e=()=>{E&&ye(Ce(O))};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[O,E]),(0,w.useEffect)(()=>{let e=se.current;if(e)return e.addEventListener(`wheel`,et,{passive:!1}),()=>e.removeEventListener(`wheel`,et,{passive:!1})},[]),(0,w.useEffect)(()=>()=>{_e(),ve()},[]),(0,w.useEffect)(()=>{e.onOpen?.(e)},[]);let tt=(0,w.useRef)(x);(0,w.useEffect)(()=>{let t=tt.current===`exiting`;tt.current=x,x===`entering`&&t&&(_e(),E?(D(!1),j(!1),ye(0)):Se(),e.onOpen?.(e))},[x]),(0,w.useEffect)(()=>(Se(),ge),[H,ke,E]),me(()=>{ae&&Se()},[ae]),(0,w.useEffect)(()=>(o?ge():Se(),ge),[o]);let nt={...S,...ne},rt={style:Je,inert:Be,onMouseEnter:e=>{nt.onMouseEnter?.(e),Ye()},onMouseLeave:e=>{nt.onMouseLeave?.(e),Xe()},onFocusCapture:e=>{nt.onFocusCapture?.(e),Ze?.()},onBlurCapture:e=>{nt.onBlurCapture?.(e),Qe?.()},onPointerDownCapture:e=>{nt.onPointerDownCapture?.(e),$e(e)}};if(m){let t=[S.className,ne.className].filter(Boolean).join(` `);return(0,G.jsx)(`div`,{ref:Ae,role:ne.role||S.role||`alert`,...Kv(nt),className:t||void 0,...rt,children:m(e)})}return(0,G.jsxs)(ag,{ref:Ae,...S,...ne,...rt,withCloseButton:!fe&&R,onClose:be,children:[P,ae&&(0,G.jsx)(`div`,{"aria-hidden":!0,...c,"data-paused":!re.running||void 0,style:{...c.style,"--notifications-progress-duration":`${H}ms`}},re.cycle)]})}qv.displayName=`@mantine/notifications/NotificationContainer`;var Jv={root:`m_b37d9ac7`,notification:`m_5ed0edd0`,progress:`m_836192`,"notifications-progress":`m_5f780017`,"notifications-progress-fade-in":`m_bb245a60`};function Yv(){return Yv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yv.apply(null,arguments)}function Xv(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Zv(e,t){return Zv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zv(e,t)}function Qv(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zv(e,t)}var $v={disabled:!1},ey=w.createContext(null),ty=function(e){return e.scrollTop},ny=`unmounted`,ry=`exited`,iy=`entering`,ay=`entered`,oy=`exiting`,sy=function(e){Qv(t,e);function t(t,n){var r=e.call(this,t,n)||this,i=n,a=i&&!i.isMounting?t.enter:t.appear,o;return r.appearStatus=null,t.in?a?(o=ry,r.appearStatus=iy):o=ay:o=t.unmountOnExit||t.mountOnEnter?ny:ry,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:ry}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==`entering`&&n!==`entered`&&(t=iy):(n===`entering`||n===`entered`)&&(t=oy)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=n=r=e,n,r;return e!=null&&typeof e!=`number`&&(t=e.exit,n=e.enter,r=e.appear===void 0?n:e.appear),{exit:t,enter:n,appear:r}},n.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null){if(this.cancelNextCallback(),t===`entering`){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Xe.default.findDOMNode(this);n&&ty(n)}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:ny})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Xe.default.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;!e&&!n||$v.disabled?this.safeSetState({status:ay},function(){t.props.onEntered(a)}):(this.props.onEnter(a,o),this.safeSetState({status:iy},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:ay},function(){t.props.onEntered(a,o)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Xe.default.findDOMNode(this);!t||$v.disabled?this.safeSetState({status:ry},function(){e.props.onExited(r)}):(this.props.onExit(r),this.safeSetState({status:oy},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:ry},function(){e.props.onExited(r)})})}))},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Xe.default.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r)setTimeout(this.nextCallback,0);else{if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}e!=null&&setTimeout(this.nextCallback,e)}},n.render=function(){var e=this.state.status;if(e===`unmounted`)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Xv(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return w.createElement(ey.Provider,{value:null},typeof n==`function`?n(e,r):w.cloneElement(w.Children.only(n),r))},t}(w.Component);sy.contextType=ey,sy.propTypes={};function cy(){}sy.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:cy,onEntering:cy,onEntered:cy,onExit:cy,onExiting:cy,onExited:cy},sy.UNMOUNTED=ny,sy.EXITED=ry,sy.ENTERING=iy,sy.ENTERED=ay,sy.EXITING=oy;function ly(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function uy(e,t){var n=function(e){return t&&(0,w.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&w.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function dy(e,t){e||={},t||={};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var c in t){if(r[c])for(o=0;o<r[c].length;o++){var l=r[c][o];s[r[c][o]]=n(l)}s[c]=n(c)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}function fy(e,t,n){return n[t]==null?e.props[t]:n[t]}function py(e,t){return uy(e.children,function(n){return(0,w.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:fy(n,`appear`,e),enter:fy(n,`enter`,e),exit:fy(n,`exit`,e)})})}function my(e,t,n){var r=uy(e.children),i=dy(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,w.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,w.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,w.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:fy(o,`exit`,e),enter:fy(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,w.cloneElement)(o,{in:!1}):c&&s&&(0,w.isValidElement)(l)&&(i[a]=(0,w.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:fy(o,`exit`,e),enter:fy(o,`enter`,e)}))}}),i}var hy=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},gy={component:`div`,childFactory:function(e){return e}},_y=function(e){Qv(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(ly(r)),firstRender:!0},r}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?py(e,r):my(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=uy(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Yv({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Xv(e,[`component`,`childFactory`]),i=this.state.contextValue,a=hy(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?w.createElement(ey.Provider,{value:i},a):w.createElement(ey.Provider,{value:i},w.createElement(t,r,a))},t}(w.Component);_y.propTypes={},_y.defaultProps=gy;var vy=sy,yy=16,by=80,xy={position:`bottom-right`,autoClose:4e3,transitionDuration:250,allowDragDismiss:!0,allowScrollDismiss:!0,containerWidth:440,notificationMaxHeight:200,limit:5,zIndex:N(`overlay`),store:wv,withinPortal:!0,pauseResetOnHover:`all`,layout:`default`,withAutoCloseProgress:!1},Sy=gt((e,{zIndex:t,containerWidth:n})=>({root:{"--notifications-z-index":t?.toString(),"--notifications-container-width":v(n)}})),Cy=q(e=>{let t=K(`Notifications`,xy,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,position:l,autoClose:u,transitionDuration:d,allowDragDismiss:f,allowScrollDismiss:p,containerWidth:m,notificationMaxHeight:h,limit:g,zIndex:_,store:v,portalProps:y,withinPortal:b,pauseResetOnHover:x,renderNotification:S,layout:C,withAutoCloseProgress:T,...E}=t,D=xn(),O=Tv(v),k=De(),A=Pe(),j=(0,w.useRef)({}),M=(0,w.useRef)(0),[N,P]=(0,w.useState)({}),[F,I]=(0,w.useState)({}),[L,R]=(0,w.useState)({}),[z,ee]=(0,w.useState)(null),B=(0,w.useRef)({}),V=Object.values(N).reduce((e,t)=>e+(t??0),0)+Object.values(L).filter(Boolean).length,te=(0,w.useCallback)(e=>P(t=>({...t,[e]:(t[e]??0)+1})),[]),ne=(0,w.useCallback)(e=>P(t=>({...t,[e]:Math.max(0,(t[e]??0)-1)})),[]),H=(0,w.useCallback)(e=>C===`stacked`?{onMouseEnter:()=>R(t=>({...t,[e]:!0})),onMouseLeave:()=>R(t=>({...t,[e]:!1}))}:{},[C]),re=(0,w.useCallback)(e=>ee(e),[]);(0,w.useEffect)(()=>{if(C!==`stacked`)return;let e=B.current;return Lv.forEach(t=>{(N[t]??0)>0||L[t]||z===t?(window.clearTimeout(e[t]),I(e=>e[t]?e:{...e,[t]:!0})):e[t]=window.setTimeout(()=>{I(e=>e[t]?{...e,[t]:!1}:e)},200)}),()=>Lv.forEach(t=>window.clearTimeout(e[t]))},[N,L,z,C]),(0,w.useEffect)(()=>{if(!z)return;let e=e=>{let t=e.target;t!==null&&Object.values(j.current).some(e=>e?.contains(t))||ee(null)};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[z]);let ie=Rv(O.notifications,l),ae=z?ie[z].length:0;(0,w.useEffect)(()=>{(C!==`stacked`||z!==null&&ae===0)&&ee(null)},[ae,z,C]),(0,w.useEffect)(()=>{C!==`stacked`&&R(e=>Object.values(e).some(Boolean)?{}:e)},[C]);let U=(0,w.useRef)(null),W=(0,w.useRef)({}),oe=(0,w.useRef)(new WeakMap),se=(0,w.useCallback)((e,t)=>{let n=t.offsetHeight;return W.current[e]!==n&&(W.current[e]=n,!0)},[]);(0,w.useEffect)(()=>{if(C!==`stacked`||typeof ResizeObserver>`u`)return;let e=new ResizeObserver(e=>{let t=!1;e.forEach(e=>{let n=oe.current.get(e.target);n&&se(n,e.target)&&(t=!0)}),t&&k()});return U.current=e,Object.values(j.current).forEach(t=>t&&e.observe(t)),()=>{e.disconnect(),U.current=null}},[C,k,se]);let ce=(0,w.useRef)({}),le=(0,w.useCallback)(e=>(ce.current[e]||(ce.current[e]=t=>{let n=j.current[e];n&&n!==t&&(U.current?.unobserve(n),oe.current.delete(n)),t?(j.current[e]=t,oe.current.set(t,e),se(e,t),U.current?.observe(t)):(delete j.current[e],delete ce.current[e],delete W.current[e])}),ce.current[e]),[se]),ue=D.respectReducedMotion&&A?1:d,de=Qn({name:`Notifications`,classes:Jv,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,vars:s,varsResolver:Sy});(0,w.useEffect)(()=>{v?.updateState(e=>({...e,limit:g||5,defaultPosition:l}))},[g,l]),me(()=>{O.notifications.length>M.current&&setTimeout(()=>k(),0),M.current=O.notifications.length},[O.notifications]);let fe=Lv.reduce((e,t)=>{let n=ie[t].length,r=Array(n).fill(0),i=C===`stacked`&&!!F[t],a=C===`stacked`?[...ie[t]].sort((e,t)=>(t.priority??0)-(e.priority??0)||(t.__sequence??0)-(e.__sequence??0)):ie[t];if(i&&n>0){let e=t.startsWith(`top`)?1:-1,i=0;for(let t=0;t<n;t+=1)r[t]=i*e,i+=(W.current[a[t].id]||by)+yy}return e[t]=a.map((e,a)=>{let{style:o,...s}=e;return(0,G.jsx)(vy,{timeout:ue,onEnter:()=>j.current[s.id].offsetHeight,nodeRef:{current:j.current[s.id]},children:e=>(0,G.jsx)(qv,{ref:le(s.id),data:s,onHide:e=>Ov(e,v),autoClose:u,transitionDuration:ue,allowDragDismiss:f,allowScrollDismiss:p,paused:x===`all`&&V>0||C===`stacked`&&!i&&a>0,onHoverStart:()=>te(t),onHoverEnd:()=>ne(t),onExpandRequest:()=>re(t),renderNotification:`renderNotification`in s?s.renderNotification:S,layout:C,withAutoCloseProgress:T,progressProps:de(`progress`),stackIndex:a,stackSize:n,stackPosition:t,stackExpanded:i,stackExpandedOffset:r[a],transitionState:e,...de(`notification`,{style:{...Vv({state:e,position:t,transitionDuration:ue,maxHeight:h}),...o}})})},s.id)}),e},{});return(0,G.jsxs)(Ic,{withinPortal:b,...y,children:[(0,G.jsx)(J,{...de(`root`),"data-position":`top-center`,"data-layout":C,...E,children:(0,G.jsx)(_y,{...H(`top-center`),children:fe[`top-center`]})}),(0,G.jsx)(J,{...de(`root`),"data-position":`top-left`,"data-layout":C,...E,children:(0,G.jsx)(_y,{...H(`top-left`),children:fe[`top-left`]})}),(0,G.jsx)(J,{...de(`root`,{className:Wu.classNames.fullWidth}),"data-position":`top-right`,"data-layout":C,...E,children:(0,G.jsx)(_y,{...H(`top-right`),children:fe[`top-right`]})}),(0,G.jsx)(J,{...de(`root`,{className:Wu.classNames.fullWidth}),"data-position":`bottom-right`,"data-layout":C,...E,children:(0,G.jsx)(_y,{...H(`bottom-right`),children:fe[`bottom-right`]})}),(0,G.jsx)(J,{...de(`root`),"data-position":`bottom-left`,"data-layout":C,...E,children:(0,G.jsx)(_y,{...H(`bottom-left`),children:fe[`bottom-left`]})}),(0,G.jsx)(J,{...de(`root`),"data-position":`bottom-center`,"data-layout":C,...E,children:(0,G.jsx)(_y,{...H(`bottom-center`),children:fe[`bottom-center`]})})]})});Cy.classes=Jv,Cy.varsResolver=Sy,Cy.displayName=`@mantine/notifications/Notifications`,Cy.show=Iv.show,Cy.hide=Iv.hide,Cy.update=Iv.update,Cy.promise=Iv.promise,Cy.clean=Iv.clean,Cy.cleanQueue=Iv.cleanQueue,Cy.updateState=Iv.updateState;var wy=w.createContext(void 0),Ty=e=>{let t=w.useContext(wy);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Ey=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,G.jsx)(wy.Provider,{value:e,children:t})),Dy={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Oy=new class{#e=Dy;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function ky(e){setTimeout(e,0)}var Ay=typeof window>`u`||`Deno`in globalThis;function jy(){}function My(e,t){return typeof e==`function`?e(t):e}function Ny(e){return typeof e==`number`&&e>=0&&e!==1/0}function Py(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Fy(e,t){return typeof e==`function`?e(t):e}function Iy(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Ry(o,t.options))return!1}else if(!By(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Ly(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(zy(t.options.mutationKey)!==zy(a))return!1}else if(!By(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Ry(e,t){return(t?.queryKeyHashFn||zy)(e)}function zy(e){return JSON.stringify(e,(e,t)=>Gy(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function By(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let n=0;n<t.length;n++)if(!By(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!By(e[r],t[r]))return!1;return!0}return!1}var Vy=Object.prototype.hasOwnProperty;function Hy(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=Wy(e)&&Wy(t);if(!r&&!(Gy(e)&&Gy(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:Vy.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=Hy(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function Uy(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function Wy(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Gy(e){if(!Ky(e))return!1;let t=Object.getPrototypeOf(e),n=t?.constructor;if(n===void 0)return!0;if(typeof n!=`function`)return!1;let r=n.prototype;return!(!Ky(r)||!r.hasOwnProperty(`isPrototypeOf`)||t!==Object.prototype)}function Ky(e){return Object.prototype.toString.call(e)===`[object Object]`}function qy(e){return new Promise(t=>{Oy.setTimeout(t,e)})}function Jy(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:Hy(e,t)}function Yy(e){return e}function Xy(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Zy(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Qy=Symbol();function $y(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Qy?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function eb(e,t){return typeof e==`function`?e(...t):!!e}function tb(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r||(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0})),i)}),e}var nb=()=>Ay,rb=()=>nb(),ib=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ab=new class extends ib{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},ob=ky;function sb(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=ob,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var cb=sb(),lb=new class extends ib{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function ub(e){return Math.min(1e3*2**e,3e4)}function db(e){return(e??`online`)!==`online`||lb.isOnline()}var fb=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function pb(e){let t=!1,n=0,r,i=`pending`,a,o,s=new Promise((e,t)=>{a=e,o=t});s.catch(jy);let c=()=>i!==`pending`,l=t=>{if(!c()){let n=new fb(t);h(n),e.onCancel?.(n)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>ab.isFocused()&&(e.networkMode===`always`||lb.isOnline())&&e.canRun(),p=()=>db(e.networkMode)&&e.canRun(),m=e=>{c()||(r?.(),i=`resolved`,a(e))},h=e=>{c()||(r?.(),i=`rejected`,o(e))},g=t=>new Promise(n=>{r=e=>{(c()||t())&&n(e)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),_=()=>{if(c())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(m).catch(r=>{if(c())return;let i=e.retry??(rb()?0:3),a=e.retryDelay??ub,o=typeof a==`function`?a(n,r):a,s=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);t||!s?h(r):(n++,e.onFail?.(n,r),qy(o).then(()=>f()?void 0:g(f)).then(()=>{t?h(r):_()}))})};return{promise:s,status:()=>i,cancel:l,continue:()=>(r?.(),s),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?_():g(p).then(_),s)}}var mb=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ny(this.gcTime)&&(this.#e=Oy.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(rb()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(Oy.clearTimeout(this.#e),this.#e=void 0)}};function hb(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{tb(e,()=>t.signal,()=>n=!0)},u=$y(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?Zy:Xy;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?_b:gb,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:gb(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function gb(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function _b(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var vb=class extends mb{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=xb(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=xb(this.options);e.data!==void 0&&(this.setState(bb(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=Jy(this.state.data,e,this.options);return this.#c({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#c({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(jy).catch(jy):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Fy(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Qy||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>Fy(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!Py(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){let t=this.observers.indexOf(e);t!==-1&&(this.observers.splice(t,1),this.observers.length||(this.#a&&(this.#s||this.state.fetchStatus===`paused`&&this.state.status===`pending`?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#c({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=$y(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?hb(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#c({type:`fetch`,meta:a.fetchOptions?.meta});let o=this.#a=pb({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof fb&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#c({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#c({type:`pause`})},onContinue:()=>{this.#c({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await o.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof fb){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#c({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.#a===o&&(this.#a=void 0),this.scheduleGc()}}#c(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...yb(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...bb(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),cb.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function yb(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:db(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function bb(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function xb(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Sb=class extends ib{#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p=new Set;constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),wb(this.#t,this.options)?this.#m():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Tb(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Tb(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof Fy(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!Uy(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&Eb(this.#t,n,this.options,t)&&this.#m(),this.updateResult(),r&&(this.#t!==n||Fy(this.options.enabled,this.#t)!==Fy(t.enabled,this.#t)||Fy(this.options.staleTime,this.#t)!==Fy(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||Fy(this.options.enabled,this.#t)!==Fy(t.enabled,this.#t)||i!==this.#f)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Uy(this.getCurrentResult(),n)||(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),Reflect.get(e,n))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t),r=()=>{},i,a=new Promise(e=>{i=e,r=this.#e.getQueryCache().subscribe(i=>{i.type===`updated`&&i.query.queryHash===n.queryHash&&n.state.data!==void 0&&(r(),e(this.createResult(n,t)))})});return Promise.race([n.fetch().then(()=>{let e=this.createResult(n,t);return i?.(e),e}).finally(()=>{r()}),a])}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#m(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(jy)),t}#h(e){return!rb()&&Fy(this.options.enabled,this.#t)!==!1&&Ny(e)}#g(){this.#b();let e=Fy(this.options.staleTime,this.#t);if(this.#r.isStale||!this.#h(e))return;let t=Py(this.#r.dataUpdatedAt,e)+1;this.#u=Oy.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return Fy(this.options.refetchInterval,this.#t)??!1}#v(e){this.#x(),this.#f=e,this.#f!==0&&this.#h(this.#f)&&(this.#d=Oy.setInterval(()=>{(this.options.refetchIntervalInBackground||ab.isFocused())&&this.#m()},this.#f))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#u!==void 0&&(Oy.clearTimeout(this.#u),this.#u=void 0)}#x(){this.#d!==void 0&&(Oy.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&wb(e,t),o=i&&Eb(e,n,t,r);(a||o)&&(l={...l,...yb(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#l?.state.data,this.#l):t.placeholderData,e!==void 0&&(m=`success`,d=Jy(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h){if(i&&d===a?.data&&t.select===this.#s)d=this.#c;else try{this.#s=t.select,d=t.select(d),d=Jy(i?.data,d,t),this.#c=d,this.#o=null}catch(e){this.#o=e}}else d===void 0&&(this.#o=null);this.#o&&(f=this.#o,d=this.#c,p=Date.now(),m=`error`,u=!1);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0;return{status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:Db(e,t),refetch:this.refetch,isEnabled:Fy(t.enabled,e)!==!1}}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#l=this.#t),Uy(t,e))return;this.#r=t;let n=(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#p.size)return!0;let r=new Set(n??this.#p);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})();cb.batch(()=>{n&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}};function Cb(e,t){return Fy(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||Fy(t.retryOnMount,e)!==!1)}function wb(e,t){return Cb(e,t)||e.state.data!==void 0&&Tb(e,t,t.refetchOnMount)}function Tb(e,t,n){if(Fy(t.enabled,e)!==!1&&Fy(t.staleTime,e)!==`static`){let r=Fy(n,e);return r===`always`||r!==!1&&Db(e,t)}return!1}function Eb(e,t,n,r){return(e!==t||Fy(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Db(e,n)}function Db(e,t){return Fy(t.enabled,e)!==!1&&e.isStaleByTime(Fy(t.staleTime,e))}var Ob=class extends mb{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||kb(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??(this.state.status===`pending`?this.execute(this.state.variables):Promise.resolve())}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},r=this.#r=pb({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)}),i=this.state.status===`pending`,a=!r.canStart();try{if(i)t();else{this.#i({type:`pending`,variables:e,isPaused:a}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:a})}let o=await r.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#i({type:`success`,data:o}),o}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#r===r&&(this.#r=void 0),this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),cb.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function kb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Ab=class extends ib{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,n){let r=new Ob({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=jb(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=jb(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=jb(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=jb(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){cb.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Ly(t,e))}findAll(e={}){return this.getAll().filter(t=>Ly(e,t))}notify(e){cb.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return cb.batch(()=>Promise.all(e.map(e=>e.continue().catch(jy))))}};function jb(e){return e.options.scope?.id}var Mb=class extends ib{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),Uy(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&zy(t.mutationKey)!==zy(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onSubscribe(){this.listeners.size===1&&this.#n&&(this.#n.addObserver(this),this.#i())}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??kb();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){cb.batch(()=>{let t=this.#r;if(t&&this.hasListeners()){let n=this.#t.variables,r=this.#t.context,i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{t.onSuccess?.(e.data,n,r,i)}catch(e){Promise.reject(e)}try{t.onSettled?.(e.data,null,n,r,i)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{t.onError?.(e.error,n,r,i)}catch(e){Promise.reject(e)}try{t.onSettled?.(void 0,e.error,n,r,i)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},Nb=class extends ib{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??Ry(r,t),a=this.get(i);return a||(a=new vb({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){this.#e.get(e.queryHash)===e&&(e.destroy(),this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){cb.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Iy(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Iy(e,t)):t}notify(e){cb.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){cb.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){cb.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Pb=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Nb,this.#t=e.mutationCache||new Ab,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=ab.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=lb.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Fy(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=My(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return cb.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;cb.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return cb.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t},r=cb.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(jy).catch(jy)}invalidateQueries(e,t={}){return cb.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=cb.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(jy)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(jy)}async query(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t),r=n.isStaleByTime(Fy(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(Fy(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(jy).catch(jy)}infiniteQuery(e){return e._type=`infinite`,this.query(e)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(jy).catch(jy)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return lb.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(zy(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{By(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(zy(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{By(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=Ry(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===Qy&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Fb=w.createContext(!1),Ib=()=>w.useContext(Fb);Fb.Provider;function Lb(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Rb=w.createContext(Lb()),zb=()=>w.useContext(Rb),Bb=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?eb(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||r)&&(t.isReset()||(e.retryOnMount=!1))},Vb=e=>{w.useEffect(()=>{e.clearReset()},[e])},Hb=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||eb(n,[e.error,r])),Ub=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},Wb=(e,t)=>e?.suspense&&t.isPending,aee=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function oee(e,t,n){let r=Ib(),i=zb(),a=Ty(n),o=a.defaultQueryOptions(e),s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,Ub(o),Bb(o,i,s),Vb(i);let[l]=w.useState(()=>new t(a,o)),u=l.getOptimisticResult(o),d=!r&&c;if(w.useSyncExternalStore(w.useCallback(e=>{let t=d?l.subscribe(cb.batchCalls(e)):jy;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),w.useEffect(()=>{l.setOptions(o)},[o,l]),Wb(o,u))throw aee(o,l,i);if(Hb({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw u.error;return o.notifyOnChangeProps?u:l.trackResult(u)}function Gb(e,t){return oee(e,Sb,t)}function Kb(e,t){let n=Ty(t),[r]=w.useState(()=>new Mb(n,e));w.useEffect(()=>{r.setOptions(e)},[r,e]);let i=w.useSyncExternalStore(w.useCallback(e=>r.subscribe(cb.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=w.useCallback((...e)=>{r.mutate(e[0],e[1]).catch(jy)},[r]);if(i.error&&eb(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var see=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),cee=o(((e,t)=>{t.exports=see()})),lee=o((e=>{var t=cee(),n=C(),r=Ye();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}function f(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&f(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function p(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function m(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function h(e){var t=[null,null],n=p(e);return n===null||g(t,e,n.child,{foundSelf:!1}),t}function g(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&g(e,t,n.child,r))return!0;n=n.sibling}return!1}function _(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var v=null,y=null;function b(e,t,n){return e===n||e===t&&(v=e,!0)}function x(e,t,n){return e===n?(y=e,!1):e===t&&(y!==null&&(v=e),!0)}function S(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function w(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var T=Object.assign,E=Symbol.for(`react.element`),D=Symbol.for(`react.transitional.element`),O=Symbol.for(`react.portal`),k=Symbol.for(`react.fragment`),A=Symbol.for(`react.strict_mode`),j=Symbol.for(`react.profiler`),M=Symbol.for(`react.consumer`),N=Symbol.for(`react.context`),P=Symbol.for(`react.forward_ref`),F=Symbol.for(`react.suspense`),I=Symbol.for(`react.suspense_list`),L=Symbol.for(`react.memo`),R=Symbol.for(`react.lazy`),z=Symbol.for(`react.activity`),ee=Symbol.for(`react.legacy_hidden`),B=Symbol.for(`react.memo_cache_sentinel`),V=Symbol.for(`react.view_transition`),te=Symbol.for(`react.recoverable`),ne=Symbol.iterator;function H(e){return typeof e!=`object`||!e?null:(e=ne&&e[ne]||e[`@@iterator`],typeof e==`function`?e:null)}var re=Symbol.for(`react.client.reference`);function ie(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===re?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case k:return`Fragment`;case j:return`Profiler`;case A:return`StrictMode`;case F:return`Suspense`;case I:return`SuspenseList`;case z:return`Activity`;case V:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case O:return`Portal`;case N:return e.displayName||`Context`;case M:return(e._context.displayName||`Context`)+`.Consumer`;case P:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case L:return t=e.displayName||null,t===null?ie(e.type)||`Memo`:t;case R:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var ae=Array.isArray,U=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},se=[],ce=-1;function le(e){return{current:e}}function ue(e){0>ce||(e.current=se[ce],se[ce]=null,ce--)}function de(e,t){ce++,se[ce]=e.current,e.current=t}var fe=le(null),pe=le(null),me=le(null),he=le(null);function ge(e,t){switch(de(me,t),de(pe,e),de(fe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?pp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=pp(t),e=mp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ue(fe),de(fe,e)}function _e(){ue(fe),ue(pe),ue(me)}function ve(e){var t=e.memoizedState;t!==null&&(uh._currentValue=t.memoizedState,de(he,e)),t=fe.current;var n=mp(t,e.type);t!==n&&(de(pe,e),de(fe,n))}function ye(e){pe.current===e&&(ue(fe),ue(pe)),he.current===e&&(ue(he),uh._currentValue=oe)}var be,xe;function Se(e){if(be===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);be=t&&t[1]||``,xe=-1<e.stack.indexOf(`
50
50
  at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
51
51
  `+be+e+xe}var Ce=!1;function we(e,t){if(!e||Ce)return``;Ce=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
52
52
  `),l=s.split(`
@@ -54,7 +54,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
54
54
  `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Ce=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Se(n):``}function Te(e,t){switch(e.tag){case 26:case 27:case 5:return Se(e.type);case 16:return Se(`Lazy`);case 13:return e.child!==t&&t!==null?Se(`Suspense Fallback`):Se(`Suspense`);case 19:return Se(`SuspenseList`);case 0:case 15:return we(e.type,!1);case 11:return we(e.type.render,!1);case 1:return we(e.type,!0);case 31:return Se(`Activity`);case 30:return Se(`ViewTransition`);default:return``}}function Ee(e){try{var t=``,n=null;do t+=Te(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
55
55
  Error generating stack: `+e.message+`
56
56
  `+e.stack}}var De=Object.prototype.hasOwnProperty,Oe=t.unstable_scheduleCallback,ke=t.unstable_cancelCallback,Ae=t.unstable_shouldYield,je=t.unstable_requestPaint,Me=t.unstable_now,Ne=t.unstable_getCurrentPriorityLevel,Pe=t.unstable_ImmediatePriority,Fe=t.unstable_UserBlockingPriority,Ie=t.unstable_NormalPriority,Le=t.unstable_LowPriority,Re=t.unstable_IdlePriority,ze=t.log,Be=t.unstable_setDisableYieldValue,Ve=null,He=null;function Ue(e){if(typeof ze==`function`&&Be(e),He&&typeof He.setStrictMode==`function`)try{He.setStrictMode(Ve,e)}catch{}}var We=Math.clz32?Math.clz32:qe,Ge=Math.log,Ke=Math.LN2;function qe(e){return e>>>=0,e===0?32:31-(Ge(e)/Ke|0)|0}var Je=256,Xe=262144,Ze=4194304;function Qe(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $e(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Qe(n))):i=Qe(o):i=Qe(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Qe(n))):i=Qe(o)):i=Qe(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function et(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function tt(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-We(n),i=1<<r;t|=e[r],n&=~i}return t}function nt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rt(){var e=Ze;return Ze<<=1,!(Ze&62914560)&&(Ze=4194304),e}function it(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function at(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ot(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-We(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&st(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function st(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-We(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ct(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-We(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function lt(e,t){var n=t&-t;return n=n&42?1:ut(n),(n&(e.suspendedLanes|t))===0?n:0}function ut(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function dt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function ft(){var e=W.p;return e===0?(e=window.event,e===void 0?32:Eh(e.type)):e}function pt(e,t){var n=W.p;try{return W.p=e,t()}finally{W.p=n}}var mt=Math.random().toString(36).slice(2),ht=`__reactFiber$`+mt,gt=`__reactProps$`+mt,_t=`__reactContainer$`+mt,vt=`__reactEvents$`+mt,yt=`__reactListeners$`+mt,bt=`__reactHandles$`+mt,xt=`__reactResources$`+mt,St=`__reactMarker$`+mt,Ct=`__reactLoad$`+mt;function wt(e){delete e[ht],delete e[gt],delete e[yt],delete e[bt]}function Tt(e){var t;if(t=e[ht])return t;for(var n=e.parentNode;n;){if(t=n[_t]||n[ht]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hm(e);e!==null;){if(n=e[ht])return n;e=hm(e)}return t}e=n,n=e.parentNode}return null}function Et(e){if(e=e[ht]||e[_t]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Dt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Ot(e){var t=e[xt];return t||=e[xt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function kt(e){e[St]=!0}function At(e){e[Ct]=void 0}var jt=new Set,Mt={};function Nt(e,t){Pt(e,t),Pt(e+`Capture`,t)}function Pt(e,t){for(Mt[e]=t,e=0;e<t.length;e++)jt.add(t[e])}var Ft=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),It={},Lt={};function Rt(e){return De.call(Lt,e)?!0:De.call(It,e)?!1:Ft.test(e)?Lt[e]=!0:(It[e]=!0,!1)}var zt=!1;function Bt(){var e=zt;return zt=!1,e}function Vt(e,t,n){if(Rt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function Ht(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function Ut(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function Wt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Gt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Kt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qt(e){if(!e._valueTracker){var t=Gt(e)?`checked`:`value`;e._valueTracker=Kt(e,t,``+e[t])}}function Jt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Gt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var Yt=/[\n"\\]/g;function Xt(e){return e.replace(Yt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Zt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Wt(t)):e.value!==``+Wt(t)&&(e.value=``+Wt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):$t(e,Wt(n)):o===`number`&&e.value==t?$t(e,Wt(e.value)):$t(e,Wt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Wt(s):e.removeAttribute(`name`)}function Qt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){qt(e);return}n=n==null?``:``+Wt(n),t=t==null?n:``+Wt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),qt(e)}function $t(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function en(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Wt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function tn(e,t,n){t!=null&&(t=``+Wt(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+Wt(n)}function nn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ae(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Wt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),qt(e)}function rn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var an=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function on(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||an.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function sn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,zt=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(on(e,a,r),zt=!0)}else for(var o in t)t.hasOwnProperty(o)&&on(e,o,t[o])}function cn(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var ln=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`maskType`,`mask-type`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),un=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function dn(e){return un.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function fn(){}var pn=null;function mn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hn=null,gn=null;function _n(e){var t=Et(e);if(t&&(e=t.stateNode)){var n=e[gt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Zt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Xt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[gt]||null;if(!a)throw Error(i(90));Zt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Jt(r)}break a;case`textarea`:tn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&en(e,!!n.multiple,t,!1)}}}var vn=!1;function G(e,t,n){if(vn)return e(t,n);vn=!0;try{return e(t)}finally{if(vn=!1,(hn!==null||gn!==null)&&(Bd(),hn&&(t=hn,e=gn,gn=hn=null,_n(t),e)))for(t=0;t<e.length;t++)_n(e[t])}}function yn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[gt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var bn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,xn=!1;if(bn)try{var Sn={};Object.defineProperty(Sn,"passive",{get:function(){xn=!0}}),window.addEventListener(`test`,Sn,Sn),window.removeEventListener(`test`,Sn,Sn)}catch{xn=!1}var Cn=null,wn=null,Tn=null;function En(){if(Tn)return Tn;var e,t=wn,n=t.length,r,i=`value`in Cn?Cn.value:Cn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Tn=i.slice(e,1<r?1-r:void 0)}function Dn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function On(){return!0}function kn(){return!1}function An(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?On:kn,this.isPropagationStopped=kn,this}return T(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=On)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=On)},persist:function(){},isPersistent:On}),t}var jn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mn=An(jn),Nn=T({},jn,{view:0,detail:0}),Pn=An(Nn),Fn,K,In,Ln=T({},Nn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==In&&(In&&e.type===`mousemove`?(Fn=e.screenX-In.screenX,K=e.screenY-In.screenY):K=Fn=0,In=e),Fn)},movementY:function(e){return`movementY`in e?e.movementY:K}}),Rn=An(Ln),zn=An(T({},Ln,{dataTransfer:0})),Bn=An(T({},Nn,{relatedTarget:0})),Vn=An(T({},jn,{animationName:0,elapsedTime:0,pseudoElement:0})),Hn=An(T({},jn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Un=An(T({},jn,{data:0})),Wn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Gn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Kn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function qn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Kn[e])?!!t[e]:!1}function Jn(){return qn}var Yn=An(T({},Nn,{key:function(e){if(e.key){var t=Wn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Dn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Gn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jn,charCode:function(e){return e.type===`keypress`?Dn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Dn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Xn=An(T({},Ln,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Zn=An(T({},jn,{submitter:0})),Qn=An(T({},Nn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jn})),$n=An(T({},jn,{propertyName:0,elapsedTime:0,pseudoElement:0})),er=An(T({},Ln,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),tr=An(T({},jn,{newState:0,oldState:0,source:0})),nr=[9,13,27,32],rr=bn&&`CompositionEvent`in window,ir=null;bn&&`documentMode`in document&&(ir=document.documentMode);var ar=bn&&`TextEvent`in window&&!ir,or=bn&&(!rr||ir&&8<ir&&11>=ir),sr=` `,cr=!1;function lr(e,t){switch(e){case`keyup`:return nr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function ur(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var dr=!1;function fr(e,t){switch(e){case`compositionend`:return ur(t);case`keypress`:return t.which===32?(cr=!0,sr):null;case`textInput`:return e=t.data,e===sr&&cr?null:e;default:return null}}function pr(e,t){if(dr)return e===`compositionend`||!rr&&lr(e,t)?(e=En(),Tn=wn=Cn=null,dr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return or&&t.locale!==`ko`?null:t.data;default:return null}}var mr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!mr[e.type]:t===`textarea`}function gr(e,t,n,r){hn?gn?gn.push(r):gn=[r]:hn=r,t=Xf(t,`onChange`),0<t.length&&(n=new Mn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var _r=null,vr=null;function yr(e){Hf(e,0)}function br(e){if(Jt(Dt(e)))return e}function xr(e,t){if(e===`change`)return t}var Sr=!1;if(bn){var Cr;if(bn){var wr=`oninput`in document;if(!wr){var Tr=document.createElement(`div`);Tr.setAttribute(`oninput`,`return;`),wr=typeof Tr.oninput==`function`}Cr=wr}else Cr=!1;Sr=Cr&&(!document.documentMode||9<document.documentMode)}function Er(){_r&&(_r.detachEvent(`onpropertychange`,Dr),vr=_r=null)}function Dr(e){if(e.propertyName===`value`&&br(vr)){var t=[];gr(t,vr,e,mn(e)),G(yr,t)}}function Or(e,t,n){e===`focusin`?(Er(),_r=t,vr=n,_r.attachEvent(`onpropertychange`,Dr)):e===`focusout`&&Er()}function kr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return br(vr)}function Ar(e,t){if(e===`click`)return br(t)}function jr(e,t){if(e===`input`||e===`change`)return br(t)}function Mr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Nr=typeof Object.is==`function`?Object.is:Mr;function q(e,t){if(Nr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!De.call(t,i)||!Nr(e[i],t[i]))return!1}return!0}function Pr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ir(e,t){var n=Fr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Fr(n)}}function Lr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Pr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Pr(e.document)}return t}function zr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Br=bn&&`documentMode`in document&&11>=document.documentMode,Vr=null,J=null,Hr=null,Ur=!1;function Wr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ur||Vr==null||Vr!==Pr(r)||(r=Vr,`selectionStart`in r&&zr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Hr&&q(Hr,r)||(Hr=r,r=Xf(J,`onSelect`),0<r.length&&(t=new Mn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Vr)))}function Gr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Kr={animationend:Gr(`Animation`,`AnimationEnd`),animationiteration:Gr(`Animation`,`AnimationIteration`),animationstart:Gr(`Animation`,`AnimationStart`),transitionrun:Gr(`Transition`,`TransitionRun`),transitionstart:Gr(`Transition`,`TransitionStart`),transitioncancel:Gr(`Transition`,`TransitionCancel`),transitionend:Gr(`Transition`,`TransitionEnd`)},qr={},Jr={};bn&&(Jr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Kr.animationend.animation,delete Kr.animationiteration.animation,delete Kr.animationstart.animation),`TransitionEvent`in window||delete Kr.transitionend.transition);function Yr(e){if(qr[e])return qr[e];if(!Kr[e])return e;var t=Kr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Jr)return qr[e]=t[n];return e}var Xr=Yr(`animationend`),Zr=Yr(`animationiteration`),Qr=Yr(`animationstart`),$r=Yr(`transitionrun`),ei=Yr(`transitionstart`),ti=Yr(`transitioncancel`),ni=Yr(`transitionend`),ri=new Map,ii=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);ii.push(`scrollEnd`);function ai(e,t){ri.set(e,t),Nt(t,[e])}var oi=0;function si(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=xd.identifierPrefix;var n=oi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function ci(e){if(e==null||typeof e==`string`)return e;var t=null,n=kd;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function li(e,t){return e=ci(e),t=ci(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var ui=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},di=[],fi=0,pi=0;function mi(){for(var e=fi,t=pi=fi=0;t<e;){var n=di[t];di[t++]=null;var r=di[t];di[t++]=null;var i=di[t];di[t++]=null;var a=di[t];if(di[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&vi(n,i,a)}}function hi(e,t,n,r){di[fi++]=e,di[fi++]=t,di[fi++]=n,di[fi++]=r,pi|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function gi(e,t,n,r){return hi(e,t,n,r),yi(e)}function _i(e,t){return hi(e,null,null,t),yi(e)}function vi(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-We(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function yi(e){if(50<Ad)throw Ad=0,jd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var bi={};function xi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Si(e,t,n,r){return new xi(e,t,n,r)}function Ci(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wi(e,t){var n=e.alternate;return n===null?(n=Si(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Ti(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ei(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Ci(r)&&(s=1);else if(typeof r==`string`)s=Xm(e,n,fe.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case z:return e=Si(31,n,t,a),e.elementType=z,e.lanes=o,e;case k:return Di(n.children,a,o,t);case A:s=8,a|=24;break;case j:return e=Si(12,n,t,a|2),e.elementType=j,e.lanes=o,e;case F:return e=Si(13,n,t,a),e.elementType=F,e.lanes=o,e;case I:return e=Si(19,n,t,a),e.elementType=I,e.lanes=o,e;case ee:case V:return e=a|32,e=Si(30,n,t,e),e.elementType=V,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case N:s=10;break a;case M:s=9;break a;case P:s=11;break a;case L:s=14;break a;case R:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Si(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Di(e,t,n,r){return e=Si(7,e,r,t),e.lanes=n,e}function Oi(e,t,n){return e=Si(6,e,null,t),e.lanes=n,e}function ki(e){var t=Si(18,null,null,0);return t.stateNode=e,t}function Ai(e,t,n){return t=Si(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ji=new WeakMap;function Mi(e,t){if(typeof e==`object`&&e){var n=ji.get(e);return n===void 0?(t={value:e,source:t,stack:Ee(t)},ji.set(e,t),t):n}return{value:e,source:t,stack:Ee(t)}}var Ni=[],Pi=0,Fi=null,Ii=0,Li=[],Ri=0,zi=null,Bi=1,Vi=``;function Hi(e,t){Ni[Pi++]=Ii,Ni[Pi++]=Fi,Fi=e,Ii=t}function Ui(e,t,n){Li[Ri++]=Bi,Li[Ri++]=Vi,Li[Ri++]=zi,zi=e;var r=Bi;e=Vi;var i=32-We(r)-1;r&=~(1<<i),n+=1;var a=32-We(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Bi=1<<32-We(t)+i|n<<i|r,Vi=a+e}else Bi=1<<a|n<<i|r,Vi=e}function Wi(e){e.return!==null&&(Hi(e,1),Ui(e,1,0))}function Gi(e){for(;e===Fi;)Fi=Ni[--Pi],Ni[Pi]=null,Ii=Ni[--Pi],Ni[Pi]=null;for(;e===zi;)zi=Li[--Ri],Li[Ri]=null,Vi=Li[--Ri],Li[Ri]=null,Bi=Li[--Ri],Li[Ri]=null}function Ki(e,t){Li[Ri++]=Bi,Li[Ri++]=Vi,Li[Ri++]=zi,Bi=t.id,Vi=t.overflow,zi=e}var qi=null,Ji=null,Yi=!1,Xi=null,Zi=!1,Qi=Error(i(519));function $i(e){throw aa(Mi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Qi}function ea(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ht]=e,t[gt]=r,n){case`dialog`:Uf(`cancel`,t),Uf(`close`,t);break;case`iframe`:case`object`:case`embed`:Uf(`load`,t);break;case`video`:case`audio`:for(n=0;n<Bf.length;n++)Uf(Bf[n],t);break;case`source`:Uf(`error`,t);break;case`img`:case`image`:case`link`:Uf(`error`,t),Uf(`load`,t);break;case`details`:Uf(`toggle`,t);break;case`input`:Uf(`invalid`,t),Qt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Uf(`invalid`,t);break;case`textarea`:Uf(`invalid`,t),nn(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||np(t.textContent,n)?(r.popover!=null&&(Uf(`beforetoggle`,t),Uf(`toggle`,t)),r.onScroll!=null&&Uf(`scroll`,t),r.onScrollEnd!=null&&Uf(`scrollend`,t),r.onClick!=null&&(t.onclick=fn),t=!0):t=!1,t||$i(e,!0)}function ta(e){for(qi=e.return;qi;)switch(qi.tag){case 5:case 31:case 13:Zi=!1;return;case 27:case 3:Zi=!0;return;default:qi=qi.return}}function na(e){if(e!==qi)return!1;if(!Yi)return ta(e),Yi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||gp(e.type,e.memoizedProps)),n=!n),n&&Ji&&$i(e),ta(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ji=mm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ji=mm(e)}else t===27?(t=Ji,Tp(e.type)?(e=pm,pm=null,Ji=e):Ji=t):Ji=qi?fm(e.stateNode.nextSibling):null;return!0}function ra(){Ji=qi=null,Yi=!1}function ia(){var e=Xi;return e!==null&&(pd===null?pd=e:pd.push.apply(pd,e),Xi=null),e}function aa(e){Xi===null?Xi=[e]:Xi.push(e)}var oa=le(null),sa=null,ca=null;function la(e,t,n){de(oa,t._currentValue),t._currentValue=n}function ua(e){e._currentValue=oa.current,ue(oa)}function da(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function fa(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),da(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),da(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),da(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function pa(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Nr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===he.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[uh]:e.push(uh))}a=a.return}return e!==null&&fa(t,e,n,r),t.flags|=262144,e!==null}function ma(e){for(e=e.firstContext;e!==null;){if(!Nr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ha(e){sa=e,ca=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ga(e){return va(sa,e)}function _a(e,t){return sa===null&&ha(e),va(e,t)}function va(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ca===null){if(e===null)throw Error(i(308));ca=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ca=ca.next=t;return n}var ya=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ba=t.unstable_scheduleCallback,xa=t.unstable_NormalPriority,Sa={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ca(){return{controller:new ya,data:new Map,refCount:0}}function wa(e){e.refCount--,e.refCount===0&&ba(xa,function(){e.controller.abort()})}function Ta(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var Ea=null;function Da(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Oa=null,ka=0,Aa=0,ja=null;function Ma(e,t){if(Oa===null){var n=Oa=[];ka=0,Aa=Ff(),ja={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ka++,t.then(Na,Na),t}function Na(){if(--ka===0&&(Ea=null,Oa!==null)){ja!==null&&(ja.status=`fulfilled`);var e=Oa;Oa=null,Aa=0,ja=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Pa(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Fa=U.S;U.S=function(e,t){if(gd=Me(),typeof t==`object`&&t&&typeof t.then==`function`&&Ma(e,t),Ea!==null)for(var n=xf;n!==null;)Ta(n,Ea),n=n.next;if(n=e.types,n!==null){for(var r=xf;r!==null;)Ta(r,n),r=r.next;if(Aa!==0){r=Ea,r===null&&(r=Ea=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Fa!==null&&Fa(e,t)};var Ia=le(null);function La(){var e=Ia.current;return e===null?Zu.pooledCache:e}function Ra(e,t){t===null?de(Ia,Ia.current):de(Ia,t.pool)}function za(){var e=La();return e===null?null:{parent:Sa._currentValue,pool:e}}var Ba=Error(i(460)),Va=Error(i(474)),Ha=Error(i(542)),Ua={then:function(){}};function Wa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ga(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(fn,fn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ya(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(fn,fn);else{if(e=Zu,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ya(e),e}throw qa=t,Ba}}function Ka(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(qa=e,Ba):e}}var qa=null;function Ja(){if(qa===null)throw Error(i(459));var e=qa;return qa=null,e}function Ya(e){if(e===Ba||e===Ha)throw Error(i(483))}var Xa=null,Za=0;function Qa(e){var t=Za;return Za+=1,Xa===null&&(Xa=[]),Ga(Xa,e,t)}function $a(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function eo(e,t){throw t.$$typeof===E?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function to(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=wi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Oi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===k?(e=d(e,t,n.props.children,r,n.key),$a(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===R&&Ka(i)===t.type)?(t=a(t,n.props),$a(t,n),t.return=e,t):(t=Ei(n.type,n.key,n.props,null,e.mode,r),$a(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Ai(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Di(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Oi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case D:return n=Ei(t.type,t.key,t.props,null,e.mode,n),$a(n,t),n.return=e,n;case O:return t=Ai(t,e.mode,n),t.return=e,t;case R:return t=Ka(t),f(e,t,n)}if(ae(t)||H(t))return t=Di(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Qa(t),n);if(t.$$typeof===N)return f(e,_a(e,t),n);eo(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case D:return n.key===i?l(e,t,n,r):null;case O:return n.key===i?u(e,t,n,r):null;case R:return n=Ka(n),p(e,t,n,r)}if(ae(n)||H(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Qa(n),r);if(n.$$typeof===N)return p(e,t,_a(e,n),r);eo(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case D:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case O:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case R:return r=Ka(r),m(e,t,n,r,i)}if(ae(r)||H(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Qa(r),i);if(r.$$typeof===N)return m(e,t,n,_a(t,r),i);eo(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Yi&&Hi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Yi&&Hi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Yi&&Hi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Yi&&Hi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Yi&&Hi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Yi&&Hi(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===k&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case D:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===k){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),$a(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===R&&Ka(l)===r.type){n(e,r.sibling),c=a(r,o.props),$a(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===k?(c=Di(o.props.children,e.mode,c,o.key),$a(c,o),c.return=e,e=c):(c=Ei(o.type,o.key,o.props,null,e.mode,c),$a(c,o),c.return=e,e=c)}return s(e);case O:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Ai(o,e.mode,c),c.return=e,e=c}return s(e);case R:return o=Ka(o),_(e,r,o,c)}if(ae(o))return h(e,r,o,c);if(H(o)){if(l=H(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,Qa(o),c);if(o.$$typeof===N)return _(e,r,_a(e,o),c);eo(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Oi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Za=0;var i=_(e,t,n,r);return Xa=null,i}catch(t){if(t===Ba||t===Ha)throw t;var a=Si(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var no=to(!0),ro=to(!1),io=!1;function ao(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function oo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function so(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function co(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Xu&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=yi(e),vi(e,null,n),t}return hi(e,r,t,n),yi(e)}function lo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ct(e,n)}}function uo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var fo=!1;function po(){if(fo){var e=ja;if(e!==null)throw e}}function mo(e,t,n,r){fo=!1;var i=e.updateQueue;io=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?($u&f)===f:(r&f)===f){f!==0&&f===Aa&&(fo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=T({},d,f);break a;case 2:io=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),sd|=o,e.lanes=o,e.memoizedState=d}}function ho(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function go(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)ho(n[e],t)}var _o=le(null),vo=le(0);function yo(e,t){e=ad,de(vo,e),de(_o,t),ad=e|t.baseLanes}function bo(){de(vo,ad),de(_o,_o.current)}function xo(){ad=vo.current,ue(_o),ue(vo)}var So=le(null),Co=null;function wo(e){var t=e.alternate;de(ko,ko.current&1),de(So,e),Co===null&&(t===null||_o.current!==null||t.memoizedState!==null)&&(Co=e)}function To(e){de(ko,ko.current),de(So,e),Co===null&&(Co=e)}function Eo(e){e.tag===22?(de(ko,ko.current),de(So,e),Co===null&&(Co=e)):Do()}function Do(){de(ko,ko.current),de(So,So.current)}function Oo(e){ue(So),Co===e&&(Co=null),ue(ko)}var ko=le(0);function Ao(e,t){de(So,So.current),de(ko,t)}function jo(e){ue(ko),ue(So),Co===e&&(Co=null)}function Mo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||lm(n)||um(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var No=0,Po=null,Fo=null,Io=null,Lo=!1,Ro=!1,zo=!1,Bo=0,Vo=0,Ho=null,Uo=0;function Wo(){throw Error(i(321))}function Go(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Nr(e[n],t[n]))return!1;return!0}function Ko(e,t,n,r,i,a){return No=a,Po=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?lc:uc,zo=!1,a=n(r,i),zo=!1,Ro&&(a=Jo(t,n,r,i)),qo(e),a}function qo(e){U.H=cc;var t=Fo!==null&&Fo.next!==null;if(No=0,Io=Fo=Po=null,Lo=!1,Vo=0,Ho=null,t)throw Error(i(300));e===null||Dc||(e=e.dependencies,e!==null&&ma(e)&&(Dc=!0))}function Jo(e,t,n,r){Po=e;var a=0;do{if(Ro&&(Ho=null),Vo=0,Ro=!1,25<=a)throw Error(i(301));if(a+=1,Io=Fo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}U.H=dc,o=t(n,r)}while(Ro);return o}function Yo(){var e=U.H,t=e.useState()[0];return t=typeof t.then==`function`?ns(t):t,e=e.useState()[0],(Fo===null?null:Fo.memoizedState)!==e&&(Po.flags|=1024),t}function Xo(){var e=Bo!==0;return Bo=0,e}function Zo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Qo(e){if(Lo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Lo=!1}No=0,Io=Fo=Po=null,Ro=!1,Vo=Bo=0,Ho=null}function $o(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Io===null?Po.memoizedState=Io=e:Io=Io.next=e,Io}function es(){if(Fo===null){var e=Po.alternate;e=e===null?null:e.memoizedState}else e=Fo.next;var t=Io===null?Po.memoizedState:Io.next;if(t!==null)Io=t,Fo=e;else{if(e===null)throw Po.alternate===null?Error(i(467)):Error(i(310));Fo=e,e={memoizedState:Fo.memoizedState,baseState:Fo.baseState,baseQueue:Fo.baseQueue,queue:Fo.queue,next:null},Io===null?Po.memoizedState=Io=e:Io=Io.next=e}return Io}function ts(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ns(e){var t=Vo;return Vo+=1,Ho===null&&(Ho=[]),e=Ga(Ho,e,t),t=Po,(Io===null?t.memoizedState:Io.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?lc:uc),e}function rs(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ns(e);if(e.$$typeof===te)return;if(e.$$typeof===N)return ga(e)}throw Error(i(438,String(e)))}function is(e){var t=null,n=Po.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Po.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=ts(),Po.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=B;return t.index++,n}function as(e,t){return typeof t==`function`?t(e):t}function os(e){return ss(es(),Fo,e)}function ss(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(No&f)===f:($u&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Aa&&(d=!0);else if((No&p)===p){u=u.next,p===Aa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,Po.lanes|=p,sd|=p;f=u.action,zo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,Po.lanes|=f,sd|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Nr(o,e.memoizedState)&&(Dc=!0,d&&(n=ja,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function cs(e){var t=es(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Nr(o,t.memoizedState)||(Dc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ls(e,t,n){var r=Po,a=es(),o=Yi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Nr((Fo||a).memoizedState,n);if(s&&(a.memoizedState=n,Dc=!0),a=a.queue,Ps(fs.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Io!==null&&!!(Io.memoizedState.tag&1),ks(e?9:8,{destroy:void 0},ds.bind(null,r,a,n,t),null),e){if(r.flags|=2048,Zu===null)throw Error(i(349));o||No&127||us(r,t,n)}return n}function us(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Po.updateQueue,t===null?(t=ts(),Po.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ds(e,t,n,r){t.value=n,t.getSnapshot=r,ps(t)&&ms(e)}function fs(e,t,n){return n(function(){ps(t)&&ms(e)})}function ps(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Nr(e,n)}catch{return!0}}function ms(e){var t=_i(e,2);t!==null&&Fd(t,e,2)}function hs(e){var t=$o();if(typeof e==`function`){var n=e;if(e=n(),zo){Ue(!0);try{n()}finally{Ue(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:as,lastRenderedState:e},t}function gs(e,t,n,r){return e.baseState=n,ss(e,Fo,typeof r==`function`?r:as)}function _s(e,t,n,r,a){if(ac(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};U.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,vs(t,o)):(o.next=n.next,t.pending=n.next=o)}}function vs(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=U.T,o={};o.types=a===null?null:a.types,U.T=o;try{var s=n(i,r),c=U.S;c!==null&&c(o,s),ys(e,t,s)}catch(n){xs(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),U.T=a}}else try{a=n(i,r),ys(e,t,a)}catch(n){xs(e,t,n)}}function ys(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){bs(e,t,n)},function(n){return xs(e,t,n)}):bs(e,t,n)}function bs(e,t,n){t.status=`fulfilled`,t.value=n,Ss(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,vs(e,n)))}function xs(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ss(t),t=t.next;while(t!==r)}e.action=null}function Ss(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Cs(e,t){return t}function ws(e,t){if(Yi){var n=Zu.formState;if(n!==null){a:{var r=Po;if(Yi){if(Ji){b:{for(var i=Ji,a=Zi;i.nodeType!==8;)if(!a||(i=fm(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ji=fm(i.nextSibling),r=i.data===`F!`;break a}}$i(r)}r=!1}r&&(t=n[0])}}return n=$o(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cs,lastRenderedState:t},n.queue=r,n=nc.bind(null,Po,r),r.dispatch=n,r=hs(!1),a=ic.bind(null,Po,!1,r.queue),r=$o(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=_s.bind(null,Po,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ts(e){return Es(es(),Fo,e)}function Es(e,t,n){if(t=ss(e,t,Cs)[0],e=os(as)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ns(t)}catch(e){throw e===Ba?Ha:e}else r=t;t=es();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Po.flags|=2048,ks(9,{destroy:void 0},Ds.bind(null,i,n),null)),[r,a,e]}function Ds(e,t){e.action=t}function Os(e){var t=es(),n=Fo;if(n!==null)return Es(t,n,e);es(),t=t.memoizedState,n=es();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ks(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Po.updateQueue,t===null&&(t=ts(),Po.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function As(){return es().memoizedState}function js(e,t,n,r){var i=$o();Po.flags|=e,i.memoizedState=ks(1|t,{destroy:void 0},n,r===void 0?null:r)}function Ms(e,t,n,r){var i=es();r=r===void 0?null:r;var a=i.memoizedState.inst;Fo!==null&&r!==null&&Go(r,Fo.memoizedState.deps)?i.memoizedState=ks(t,a,n,r):(Po.flags|=e,i.memoizedState=ks(1|t,a,n,r))}function Ns(e,t){js(8390656,8,e,t)}function Ps(e,t){Ms(2048,8,e,t)}function Fs(e){Po.flags|=4;var t=Po.updateQueue;if(t===null)t=ts(),Po.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Is(e){var t=es().memoizedState;return Fs({ref:t,nextImpl:e}),function(){if(Xu&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Ls(e,t){return Ms(4,2,e,t)}function Rs(e,t){return Ms(4,4,e,t)}function zs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Bs(e,t,n){n=n==null?null:n.concat([e]),Ms(4,4,zs.bind(null,t,e),n)}function Vs(){}function Hs(e,t){var n=es();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Go(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Us(e,t){var n=es();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Go(t,r[1]))return r[0];if(r=e(),zo){Ue(!0);try{e()}finally{Ue(!1)}}return n.memoizedState=[r,t],r}function Ws(e,t,n){return n===void 0||No&1073741824&&!($u&261930)?e.memoizedState=t:(e.memoizedState=n,e=Nd(),Po.lanes|=e,sd|=e,n)}function Gs(e,t,n,r){return Nr(n,t)?n:_o.current===null?!(No&106)||No&1073741824&&!($u&261930)?(Dc=!0,e.memoizedState=n):(e=Nd(),Po.lanes|=e,sd|=e,t):(e=Ws(e,n,r),Nr(e,t)||(Dc=!0),e)}function Ks(e,t,n,r,i){var a=W.p;W.p=a!==0&&8>a?a:8;var o=U.T,s={};s.types=o===null?null:o.types,U.T=s,ic(e,!1,t,n);try{var c=i(),l=U.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?rc(e,t,Pa(c,r),Md(e)):rc(e,t,r,Md(e))}catch(n){rc(e,t,{then:function(){},status:`rejected`,reason:n},Md())}finally{W.p=a,o!==null&&s.types!==null&&(o.types=s.types),U.T=o}}function qs(){}function Js(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Ys(e).queue;Ks(e,a,t,oe,n===null?qs:function(){return Xs(e),n(r)})}function Ys(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:as,lastRenderedState:oe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:as,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Xs(e){var t=Ys(e);t.next===null&&(t=e.alternate.memoizedState),rc(e,t.next.queue,{},Md())}function Zs(){return ga(uh)}function Qs(){return es().memoizedState}function $s(){return es().memoizedState}function ec(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Md();e=so(n);var r=co(t,e,n);r!==null&&(Fd(r,t,n),lo(r,t,n)),t={cache:Ca()},e.payload=t;return}t=t.return}}function tc(e,t,n){var r=Md();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ac(e)?oc(t,n):(n=gi(e,t,n,r),n!==null&&(Fd(n,e,r),sc(n,t,r)))}function nc(e,t,n){rc(e,t,n,Md())}function rc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ac(e))oc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Nr(s,o))return hi(e,t,i,0),Zu===null&&mi(),!1}catch{}if(n=gi(e,t,i,r),n!==null)return Fd(n,e,r),sc(n,t,r),!0}return!1}function ic(e,t,n,r){if(r={lane:2,revertLane:Ff(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ac(e)){if(t)throw Error(i(479))}else t=gi(e,n,r,2),t!==null&&Fd(t,e,2)}function ac(e){var t=e.alternate;return e===Po||t!==null&&t===Po}function oc(e,t){Ro=Lo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ct(e,n)}}var cc={readContext:ga,use:rs,useCallback:Wo,useContext:Wo,useEffect:Wo,useImperativeHandle:Wo,useLayoutEffect:Wo,useInsertionEffect:Wo,useMemo:Wo,useReducer:Wo,useRef:Wo,useState:Wo,useDebugValue:Wo,useDeferredValue:Wo,useTransition:Wo,useSyncExternalStore:Wo,useId:Wo,useHostTransitionStatus:Wo,useFormState:Wo,useActionState:Wo,useOptimistic:Wo,useMemoCache:Wo,useCacheRefresh:Wo,useEffectEvent:Wo},lc={readContext:ga,use:rs,useCallback:function(e,t){return $o().memoizedState=[e,t===void 0?null:t],e},useContext:ga,useEffect:Ns,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),js(4194308,4,zs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return js(4194308,4,e,t)},useInsertionEffect:function(e,t){js(4,2,e,t)},useMemo:function(e,t){var n=$o();t=t===void 0?null:t;var r=e();if(zo){Ue(!0);try{e()}finally{Ue(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=$o();if(n!==void 0){var i=n(t);if(zo){Ue(!0);try{n(t)}finally{Ue(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=tc.bind(null,Po,e),[r.memoizedState,e]},useRef:function(e){var t=$o();return e={current:e},t.memoizedState=e},useState:function(e){e=hs(e);var t=e.queue,n=nc.bind(null,Po,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Vs,useDeferredValue:function(e,t){return Ws($o(),e,t)},useTransition:function(){var e=hs(!1);return e=Ks.bind(null,Po,e.queue,!0,!1),$o().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Po,a=$o();if(Yi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Zu===null)throw Error(i(349));$u&127||us(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Ns(fs.bind(null,r,o,e),[e]),r.flags|=2048,ks(9,{destroy:void 0},ds.bind(null,r,o,n,t),null),n},useId:function(){var e=$o(),t=Zu.identifierPrefix;if(Yi){var n=Vi,r=Bi;n=(r&~(1<<32-We(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Bo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Uo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Zs,useFormState:ws,useActionState:ws,useOptimistic:function(e){var t=$o();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ic.bind(null,Po,!0,n),n.dispatch=t,[e,t]},useMemoCache:is,useCacheRefresh:function(){return $o().memoizedState=ec.bind(null,Po)},useEffectEvent:function(e){var t=$o(),n={impl:e};return t.memoizedState=n,function(){if(Xu&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},uc={readContext:ga,use:rs,useCallback:Hs,useContext:ga,useEffect:Ps,useImperativeHandle:Bs,useInsertionEffect:Ls,useLayoutEffect:Rs,useMemo:Us,useReducer:os,useRef:As,useState:function(){return os(as)},useDebugValue:Vs,useDeferredValue:function(e,t){return Gs(es(),Fo.memoizedState,e,t)},useTransition:function(){var e=os(as)[0],t=es().memoizedState;return[typeof e==`boolean`?e:ns(e),t]},useSyncExternalStore:ls,useId:Qs,useHostTransitionStatus:Zs,useFormState:Ts,useActionState:Ts,useOptimistic:function(e,t){return gs(es(),Fo,e,t)},useMemoCache:is,useCacheRefresh:$s,useEffectEvent:Is},dc={readContext:ga,use:rs,useCallback:Hs,useContext:ga,useEffect:Ps,useImperativeHandle:Bs,useInsertionEffect:Ls,useLayoutEffect:Rs,useMemo:Us,useReducer:cs,useRef:As,useState:function(){return cs(as)},useDebugValue:Vs,useDeferredValue:function(e,t){var n=es();return Fo===null?Ws(n,e,t):Gs(n,Fo.memoizedState,e,t)},useTransition:function(){var e=cs(as)[0],t=es().memoizedState;return[typeof e==`boolean`?e:ns(e),t]},useSyncExternalStore:ls,useId:Qs,useHostTransitionStatus:Zs,useFormState:Os,useActionState:Os,useOptimistic:function(e,t){var n=es();return Fo===null?(n.baseState=e,[e,n.queue.dispatch]):gs(n,Fo,e,t)},useMemoCache:is,useCacheRefresh:$s,useEffectEvent:Is};function fc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:T({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var pc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Md(),i=so(r);i.payload=t,n!=null&&(i.callback=n),t=co(e,i,r),t!==null&&(Fd(t,e,r),lo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Md(),i=so(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=co(e,i,r),t!==null&&(Fd(t,e,r),lo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Md(),r=so(n);r.tag=2,t!=null&&(r.callback=t),t=co(e,r,n),t!==null&&(Fd(t,e,n),lo(t,e,n))}};function mc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!q(n,r)||!q(i,a):!0}function hc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&pc.enqueueReplaceState(t,t.state,null)}function gc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=T({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function _c(e){ui(e)}function vc(e){console.error(e)}function yc(e){ui(e)}function bc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function xc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Sc(e,t,n){return n=so(n),n.tag=3,n.payload={element:null},n.callback=function(){bc(e,t)},n}function Cc(e){return e=so(e),e.tag=3,e}function wc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){xc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){xc(t,n,r),typeof i!=`function`&&(yd===null?yd=new Set([this]):yd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Tc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&pa(t,n,a,!0),n=So.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Co===null?Kd():n.alternate===null&&od===0&&(od=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ua?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),hf(e,r,a)),!1;case 22:return n.flags|=65536,r===Ua?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),hf(e,r,a)),!1}throw Error(i(435,n.tag))}return hf(e,r,a),Kd(),!1}if(Yi)return t=So.current,t===null?(r!==Qi&&(t=Error(i(423),{cause:r}),aa(Mi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Mi(r,n),a=Sc(e.stateNode,r,a),uo(e,a),od!==4&&(od=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Qi&&(e=Error(i(422),{cause:r}),aa(Mi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Mi(o,n),fd===null?fd=[o]:fd.push(o),od!==4&&(od=2),t===null)return!0;r=Mi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Sc(n.stateNode,r,e),uo(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(yd===null||!yd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Cc(a),wc(a,e,n,r),uo(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Ec=Error(i(461)),Dc=!1;function Oc(e,t,n,r){t.child=e===null?ro(t,null,n,r):no(t,e.child,n,r)}function kc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ha(t),r=Ko(e,t,n,o,a,i),s=Xo(),e!==null&&!Dc?(Zo(e,t,i),rl(e,t,i)):(Yi&&s&&Wi(t),t.flags|=1,Oc(e,t,r,i),t.child)}function Ac(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Ci(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,jc(e,t,a,r,i)):(e=Ei(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!il(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?q:n,n(o,r)&&e.ref===t.ref)return rl(e,t,i)}return t.flags|=1,e=wi(a,r),e.ref=t.ref,e.return=t,t.child=e}function jc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(q(a,r)&&e.ref===t.ref){if(Dc=!1,t.pendingProps=r=a,il(e,i))e.flags&131072&&(Dc=!0);else return t.lanes=e.lanes,rl(e,t,i)}}return zc(e,t,n,r,i)}function Mc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Pc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ra(t,a===null?null:a.cachePool),a===null?bo():yo(t,a),Eo(t);else return r=t.lanes=536870912,Pc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ra(t,null),bo(),Do()):(Ra(t,a.cachePool),yo(t,a),Do(),t.memoizedState=null);return Oc(e,t,i,n),t.child}function Nc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Pc(e,t,n,r,i){var a=La();return a=a===null?null:{parent:Sa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ra(t,null),bo(),Eo(t),e!==null&&pa(e,t,r,!0),t.childLanes=i,null}function Fc(e,t){return t=Jc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ic(e,t,n){return no(t,e.child,null,n),e=Fc(t,t.pendingProps),e.flags|=2,Oo(t),t.memoizedState=null,e}function Lc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(Yi){if(r.mode===`hidden`)return e=Fc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Nc(null,e);if(To(t),(e=Ji)?(e=cm(e,Zi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:zi===null?null:{id:Bi,overflow:Vi},retryLane:536870912,hydrationErrors:null},n=ki(e),n.return=t,t.child=n,qi=t,Ji=null)):e=null,e===null)throw $i(t);return t.lanes=536870912,null}return Fc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(To(t),a){if(t.flags&256)t.flags&=-257,t=Ic(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Dc||pa(e,t,n,!1),a=(n&e.childLanes)!==0,Dc||a){if(_o.current===null){if(r=Zu,r!==null&&(s=lt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,_i(e,s),Fd(r,e,s),Ec;Kd()}t=Ic(e,t,n)}else e=o.treeContext,Ji=fm(s.nextSibling),qi=t,Yi=!0,Xi=null,Zi=!1,e!==null&&Ki(t,e),t=Fc(t,r),t.flags|=134221824;return t}return e=wi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Rc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function zc(e,t,n,r,i){return ha(t),n=Ko(e,t,n,r,void 0,i),r=Xo(),e!==null&&!Dc?(Zo(e,t,i),rl(e,t,i)):(Yi&&r&&Wi(t),t.flags|=1,Oc(e,t,n,i),t.child)}function Bc(e,t,n,r,i,a){return ha(t),t.updateQueue=null,n=Jo(t,r,n,i),qo(e),r=Xo(),e!==null&&!Dc?(Zo(e,t,a),rl(e,t,a)):(Yi&&r&&Wi(t),t.flags|=1,Oc(e,t,n,a),t.child)}function Vc(e,t,n,r,i){if(ha(t),t.stateNode===null){var a=bi,o=n.contextType;typeof o==`object`&&o&&(a=ga(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=pc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},ao(t),o=n.contextType,a.context=typeof o==`object`&&o?ga(o):bi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(fc(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&pc.enqueueReplaceState(a,a.state,null),mo(t,r,a,i),po(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=gc(n,s);a.props=c;var l=a.context,u=n.contextType;o=bi,typeof u==`object`&&u&&(o=ga(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&hc(t,a,r,o),io=!1;var f=t.memoizedState;a.state=f,mo(t,r,a,i),po(),l=t.memoizedState,s||f!==l||io?(typeof d==`function`&&(fc(t,n,d,r),l=t.memoizedState),(c=io||mc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,oo(e,t),o=t.memoizedProps,u=gc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=bi,typeof l==`object`&&l&&(c=ga(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&hc(t,a,r,c),io=!1,f=t.memoizedState,a.state=f,mo(t,r,a,i),po();var p=t.memoizedState;o!==d||f!==p||io||e!==null&&e.dependencies!==null&&ma(e.dependencies)?(typeof s==`function`&&(fc(t,n,s,r),p=t.memoizedState),(u=io||mc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ma(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Rc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=no(t,e.child,null,i),t.child=no(t,null,n,i)):Oc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=rl(e,t,i),e}function Hc(e,t,n,r){return ra(),t.flags|=256,Oc(e,t,n,r),t.child}var Uc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Wc(e){return{baseLanes:e,cachePool:za()}}function Gc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=ud),e}function Kc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(ko.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(Yi){if(i?wo(t):Do(),(e=Ji)?(e=cm(e,Zi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:zi===null?null:{id:Bi,overflow:Vi},retryLane:536870912,hydrationErrors:null},n=ki(e),n.return=t,t.child=n,qi=t,Ji=null)):e=null,e===null)throw $i(t);return t.lanes=um(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Do(),i=t.mode,a=Jc({mode:`hidden`,children:a},i),r=Di(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Wc(n),r.childLanes=Gc(e,o,n),t.memoizedState=Uc,Nc(null,r)):(wo(t),qc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return Xc(e,t,a,o,r,c,s,n)}return i?(Do(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=wi(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Di(i,a,n,null),i.flags|=2):i=wi(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Nc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Wc(n):(a=i.cachePool,a===null?a=za():(s=Sa._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Gc(e,o,n),t.memoizedState=Uc,Nc(e.child,r)):(wo(t),n=e.child,e=n.sibling,n=wi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function qc(e,t){return t=Jc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Jc(e,t){return e=Si(22,e,null,t),e.lanes=0,e}function Yc(e,t,n){return no(t,e.child,null,n),e=qc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xc(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(wo(t),t.flags&=-257,Yc(e,t,c)):t.memoizedState===null?(Do(),o=a.fallback,s=t.mode,a=Jc({mode:`visible`,children:a.children},s),o=Di(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,no(t,e.child,null,c),a=t.child,a.memoizedState=Wc(c),a.childLanes=Gc(e,r,c),t.memoizedState=Uc,Nc(null,a)):(Do(),t.child=e.child,t.flags|=128,null);if(wo(t),um(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,aa({value:a,source:null,stack:null})),Yc(e,t,c)}if(Dc||pa(e,t,c,!1),r=(c&e.childLanes)!==0,Dc||r){if(_o.current!==null)return Yc(e,t,c);if(r=Zu,r!==null&&(a=lt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,_i(e,a),Fd(r,e,a),Ec;return lm(o)||Kd(),Yc(e,t,c)}return lm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,Ji=fm(o.nextSibling),qi=t,Yi=!0,Xi=null,Zi=!1,e!==null&&Ki(t,e),t=qc(t,a.children),t.flags|=134221824,t)}function Zc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),da(e.return,t,n)}function Qc(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Mo(n)===null&&(t=e),e=e.sibling}return t}function $c(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function el(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function tl(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=ko.current;if(t.flags&128)return Ao(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Ao(t,o),i===`backwards`&&e!==null?(el(e),Oc(e,t,r,n),el(e)):Oc(e,t,r,n),r=Yi?Ii:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zc(e,n,t);else if(e.tag===19)Zc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=Qc(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,el(t)),$c(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Mo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}$c(t,!0,n,null,a,r);break;case`together`:$c(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=Qc(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),$c(t,!1,i,n,a,r)}return t.child}function nl(e,t,n){var r=t.pendingProps;return la(t,t.type,r.value),Oc(e,t,r.children,n),t.child}function rl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),sd|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(pa(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=wi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=wi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function il(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&ma(e)))}function al(e,t,n){switch(t.tag){case 3:ge(t,t.stateNode.containerInfo),la(t,Sa,e.memoizedState.cache),ra();break;case 27:case 5:ve(t);break;case 4:ge(t,t.stateNode.containerInfo);break;case 10:la(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,To(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return wo(t),t.flags|=128,null;r=pa(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Kc(e,t,n):(wo(t),e=rl(e,t,n),e===null?null:e.sibling)}wo(t);break;case 19:if(t.flags&128)return tl(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(pa(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return tl(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ao(t,ko.current),r)break;return null;case 22:return t.lanes=0,Mc(e,t,n,t.pendingProps);case 24:la(t,Sa,e.memoizedState.cache)}return rl(e,t,n)}function ol(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Dc=!0;else{if(!il(e,n)&&!(t.flags&128))return Dc=!1,al(e,t,n);Dc=!!(e.flags&131072)}}else Dc=!1,Yi&&t.flags&1048576&&Ui(t,Ii,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ka(t.elementType),t.type=e,typeof e==`function`)Ci(e)?(r=gc(e,r),t.tag=1,t=Vc(null,t,e,r,n)):(t.tag=0,t=zc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===P){t.tag=11,t=kc(null,t,e,r,n);break a}if(a===L){t.tag=14,t=Ac(null,t,e,r,n);break a}if(a===N){t.tag=10,t.type=e,t=nl(null,t,n);break a}}throw t=ie(e)||e,Error(i(306,t,``))}}return t;case 0:return zc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=gc(r,t.pendingProps),Vc(e,t,r,a,n);case 3:a:{if(ge(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,oo(e,t),mo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,la(t,Sa,r),r!==o.cache&&fa(t,[Sa],n,!0),po(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Hc(e,t,r,n);break a}if(r!==a){a=Mi(Error(i(424)),t),aa(a),t=Hc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Ji=fm(e.firstChild),qi=t,Yi=!0,Xi=null,Zi=!0,n=ro(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(ra(),r===a){t=rl(e,t,n);break a}Oc(e,t,r,n)}t=t.child}return t;case 26:return Rc(e,t),e===null?(n=Im(t.type,null,t.pendingProps,null))?t.memoizedState=n:Yi||(t.stateNode=hp(t.type,t.pendingProps,me.current,t)):t.memoizedState=Im(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ve(t),e===null&&Yi&&(r=t.stateNode=vm(t.type,t.pendingProps,me.current),qi=t,Zi=!0,a=Ji,Tp(t.type)?(pm=a,Ji=fm(r.firstChild)):Ji=a),Oc(e,t,t.pendingProps.children,n),Rc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Yi&&((a=r=Ji)&&(r=om(r,t.type,t.pendingProps,Zi),r===null?a=!1:(t.stateNode=r,qi=t,Ji=fm(r.firstChild),Zi=!1,a=!0)),a||$i(t)),ve(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,gp(a,o)?r=null:s!==null&&gp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Ko(e,t,Yo,null,null,n),uh._currentValue=a),Rc(e,t),Oc(e,t,r,n),t.child;case 6:return e===null&&Yi&&((e=n=Ji)&&(n=sm(n,t.pendingProps,Zi),n===null?e=!1:(t.stateNode=n,qi=t,Ji=null,e=!0)),e||$i(t)),null;case 13:return Kc(e,t,n);case 4:return ge(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=no(t,null,r,n):Oc(e,t,r,n),t.child;case 11:return kc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Rc(e,t),Oc(e,t,r,n),t.child;case 8:return Oc(e,t,t.pendingProps.children,n),t.child;case 12:return Oc(e,t,t.pendingProps.children,n),t.child;case 10:return nl(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,ha(t),a=ga(a),r=r(a),t.flags|=1,Oc(e,t,r,n),t.child;case 14:return Ac(e,t,t.type,t.pendingProps,n);case 15:return jc(e,t,t.type,t.pendingProps,n);case 19:return tl(e,t,n);case 31:return Lc(e,t,n);case 22:return Mc(e,t,n,t.pendingProps);case 24:return ha(t),r=ga(Sa),e===null?(a=La(),a===null&&(a=Zu,o=Ca(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},ao(t),la(t,Sa,a)):((e.lanes&n)!==0&&(oo(e,t),mo(t,null,null,n),po()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,la(t,Sa,r),r!==a.cache&&fa(t,[Sa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),la(t,Sa,r))),Oc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:Yi&&Wi(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Rc(e,t),Oc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function sl(e){e.flags|=4}function cl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Zm(t,r):Zm(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Ud())e.flags|=8192;else throw qa=Ua,Va}}else e.flags&=-16777217}function ll(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Qm(t)){if(Ud())e.flags|=8192;else throw qa=Ua,Va}}function ul(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:rt(),e.lanes|=t,dd|=t)}function dl(e,t){if(!Yi)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function fl(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function pl(e,t,n){var r=t.pendingProps;switch(Gi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fl(t),null;case 1:return fl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ua(Sa),_e(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(na(t)?sl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ia())),fl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(sl(t),o===null?(fl(t),cl(t,a,null,r,n)):(fl(t),ll(t,o))):o?o===e.memoizedState?(fl(t),t.flags&=-16777217):(sl(t),fl(t),ll(t,o)):(e=e.memoizedProps,e!==r&&sl(t),fl(t),cl(t,a,e,r,n)),null;case 27:if(ye(t),n=me.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&sl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return fl(t),t.subtreeFlags&=-33554433,null}e=fe.current,na(t)?ea(t,e):(e=vm(a,r,n),t.stateNode=e,sl(t))}return fl(t),t.subtreeFlags&=-33554433,null;case 5:if(ye(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&sl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return fl(t),t.subtreeFlags&=-33554433,null}if(o=fe.current,na(t))ea(t,o);else{var s=fp(me.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[ht]=t,o[gt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(ap(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&sl(t)}}return fl(t),t.subtreeFlags&=-33554433,cl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&sl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=me.current,na(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=qi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ht]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||np(e.nodeValue,n)),e||$i(t,!0)}else e=fp(e).createTextNode(r),e[ht]=t,t.stateNode=e}return fl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=na(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ht]=t}else ra(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;fl(t),e=!1}else n=ia(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Oo(t),t):(Oo(t),null);if(t.flags&128)throw Error(i(558))}return fl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=na(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ht]=t}else ra(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;fl(t),a=!1}else a=ia(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Oo(t),t):(Oo(t),null)}return Oo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ul(t,t.updateQueue),fl(t),null);case 4:return _e(),e===null&&Kf(t.stateNode.containerInfo),t.flags|=67108864,fl(t),null;case 10:return ua(t.type),fl(t),null;case 19:if(jo(t),r=t.memoizedState,r===null)return fl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)dl(r,!1);else{if(od!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Mo(e),o!==null){for(t.flags|=128,dl(r,!1),e=o.updateQueue,t.updateQueue=e,ul(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ti(n,e),n=n.sibling;return Ao(t,ko.current&1|2),Yi&&Hi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Me()>_d&&(t.flags|=128,a=!0,dl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Mo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,ul(t,e),dl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!Yi)return fl(t),null}else 2*Me()-r.renderingStartTime>_d&&n!==536870912&&(t.flags|=128,a=!0,dl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Me(),e.sibling=null,o=ko.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||Yi?Ao(t,o):(n=o,de(So,t),de(ko,n),Co===null&&(Co=t)),Yi&&Hi(t,r.treeForkCount),e}return fl(t),null;case 22:case 23:return Oo(t),xo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(fl(t),t.subtreeFlags&6&&(t.flags|=8192)):fl(t),n=t.updateQueue,n!==null&&ul(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ue(Ia),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ua(Sa),fl(t),null;case 25:return null;case 30:return t.flags|=33554432,fl(t),null}throw Error(i(156,t.tag))}function ml(e,t){switch(Gi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ua(Sa),_e(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ye(t),null;case 31:if(t.memoizedState!==null){if(Oo(t),t.alternate===null)throw Error(i(340));ra()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Oo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ra()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return jo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return _e(),null;case 10:return ua(t.type),null;case 22:case 23:return Oo(t),xo(),e!==null&&ue(Ia),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ua(Sa),null;case 25:return null;default:return null}}function hl(e,t){switch(Gi(t),t.tag){case 3:ua(Sa),_e();break;case 26:case 27:case 5:ye(t);break;case 4:_e();break;case 31:t.memoizedState!==null&&Oo(t);break;case 13:Oo(t);break;case 19:jo(t);break;case 10:ua(t.type);break;case 22:case 23:Oo(t),xo(),e!==null&&ue(Ia);break;case 24:ua(Sa)}}function gl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){mf(t,t.return,e)}}function _l(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){mf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){mf(t,t.return,e)}}function vl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{go(t,n)}catch(t){mf(e,e.return,t)}}}function yl(e,t,n){n.props=gc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){mf(e,t,n)}}function bl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=si(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Lp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Rp(e);f(e.child,!1,tm,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){mf(e,t,n)}}function xl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){mf(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){mf(e,t,n)}else n.current=null}}function Sl(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)rm(e.stateNode,t[n])}function Cl(e){for(var t=e.return;t!==null&&(El(t)&&rm(e.stateNode,t.stateNode),!Tl(t));)t=t.return}function wl(e){for(var t=e.return;t!==null&&(El(t)&&im(e.stateNode,t.stateNode),!Tl(t));)t=t.return}function Tl(e){return e.tag===5||e.tag===3||e.tag===27}function El(e){return e&&e.tag===7&&e.stateNode!==null}function Dl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){mf(e,e.return,t)}}function Ol(e,t,n){try{var r=e.stateNode;sp(r,e.type,n,t),r[gt]=t}catch(t){mf(e,e.return,t)}}function kl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Tp(e.type)||e.tag===4}function Al(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||kl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Tp(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=fn)),Sl(e,r),zt=!0;else if(i!==4&&(i===27&&(Sl(e,r),r=null,Tp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(jl(e,t,n,r),e=e.sibling;e!==null;)jl(e,t,n,r),e=e.sibling}function Ml(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Sl(e,r),zt=!0;else if(i!==4&&(i===27&&(Sl(e,r),r=null,Tp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Ml(e,t,n,r),e=e.sibling;e!==null;)Ml(e,t,n,r),e=e.sibling}function Nl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);ap(t,r,n),t[ht]=e,t[gt]=n}catch(t){mf(e,e.return,t)}}var Pl=!1,Fl=null;function Il(e){(e.tag===30||e.subtreeFlags&33554432)&&(Pl=!0)}var Ll=null;function Rl(){var e=Ll;return Ll=null,e}var zl=0;function Bl(e,t,n,r,i){return zl=0,Vl(e.child,t,n,r,i)}function Vl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=jp(o);r.push(s),s.view&&(a=!0)}else a||jp(o).view&&(a=!0);Pl=!0,Op(o,zl===0?t:t+`_`+zl,n),zl++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Vl(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function Hl(e,t){for(;e!==null;)e.tag===5?kp(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Hl(e.child,t)),e=e.sibling}function Ul(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Ul(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=li(t.default,t.share),t!==`none`&&(Bl(e,n,t,null,!1)||Hl(e.child,!1))}e=e.sibling}}function Wl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=si(r,n),a=li(r.default,n.paired?r.share:r.enter);a===`none`?Ul(e):Bl(e,i,a,null,!1)?(Ul(e),n.paired||t||Pd(e,r.onEnter)):Hl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Wl(e,t),e=e.sibling;else Ul(e)}function Gl(e){if(Fl!==null&&Fl.size!==0){var t=Fl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=li(n.default,n.share);if(a!==`none`&&(Bl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Pd(e,n.onShare)):Hl(e.child,!1)),t.delete(r),t.size===0)break}}}Gl(e)}e=e.sibling}}}function Kl(e){if(e.tag===30){var t=e.memoizedProps,n=si(t,e.stateNode),r=Fl===null?void 0:Fl.get(n),i=li(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Bl(e,n,i,null,!1)?r===void 0?Pd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Fl.delete(n),Pd(e,t.onShare)):Hl(e.child,!1)),Fl!==null&&Gl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Kl(e),e=e.sibling;else Fl!==null&&Gl(e)}function ql(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=si(t,e.stateNode);t=li(t.default,t.update),e.flags&=-5,t!==`none`&&Bl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&ql(e);e=e.sibling}}function Jl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Hl(e.child,!1))}Jl(e)}e=e.sibling}}function Yl(e){if(e.tag===30)e.stateNode.paired=null,Hl(e.child,!1),Jl(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Yl(e),e=e.sibling;else Jl(e)}function Xl(e){for(e=e.child;e!==null;)e.tag===30?Hl(e.child,!1):e.subtreeFlags&33554432&&Xl(e),e=e.sibling}function Zl(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&zl<a.length){var l=a[zl],u=jp(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Op(c,zl===0?n:n+`_`+zl,i),s&&e.flags&4||(Ll===null&&(Ll=[]),Ll.push(c,zl===0?r:r+`_`+zl,t.memoizedProps)),zl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:Zl(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function Ql(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=si(n,r),a=li(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Mp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;zl=0,i=Zl(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Pd(e,n.onUpdate))}else e.subtreeFlags&33554432&&Ql(e,t);e=e.sibling}}var $l=!1,eu=!1,tu=!1,nu=!1,ru=typeof WeakSet==`function`?WeakSet:Set,iu=null,au=!1,ou=!1,su=!1,cu=!1;function lu(e,t,n){if(e=e.containerInfo,up=yh,e=Rr(e),zr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(dp={focusedElem:e,selectionRange:r},yh=!1,n=(n&335544064)===n,iu=t,t=n?9270:1024;iu!==null;){if(e=iu,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Kl(r[a]);if(e.alternate===null&&e.flags&2)n&&Il(e),uu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Kl(r),uu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Il(e),uu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,iu=r):(n&&ql(e),uu(n))}}Fl=null}function uu(e){for(;iu!==null;){var t=iu,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=gc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){mf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)am(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:am(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=si(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=li(a.default,a.update),a!==`none`&&Bl(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,iu=r;break}iu=t.return}}function du(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:ju(e,n),r&4&&gl(5,n);break;case 1:if(ju(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){mf(n,n.return,e)}else{var i=gc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){mf(n,n.return,e)}}}r&64&&vl(n),r&512&&bl(n,n.return);break;case 3:if(ju(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{go(e,t)}catch(e){mf(n,n.return,e)}}break;case 27:t===null&&r&4&&Nl(n);case 26:case 5:ju(e,n),t===null&&r&4&&Dl(n),r&512&&bl(n,n.return);break;case 12:ju(e,n);break;case 31:ju(e,n),r&4&&bu(e,n);break;case 13:ju(e,n),r&4&&xu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=vf.bind(null,n),dm(e,n))));break;case 22:if(r=n.memoizedState!==null||$l,!r){var a=t!==null&&t.memoizedState!==null||eu;t=$l,i=eu,$l=r,(eu=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Nu(e,n,r)):ju(e,n),$l=t,eu=i}break;case 30:ju(e,n),r&512&&bl(n,n.return);break;case 7:r&512&&bl(n,n.return);default:ju(e,n)}}function fu(e,t){for(e=e.child;e!==null;)pu(e,t),e=e.sibling}function pu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){mf(e,e.return,t)}mu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,zt=!0}catch(t){mf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Dp(s,!0):Dp(e.stateNode,!1)}catch(t){mf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&fu(e,t);break;default:fu(e,t)}}function mu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:pu(n,r);break a;case 22:n.memoizedState===null&&mu(n,r);break a;default:mu(n,r)}}e=e.sibling}}function hu(e){var t=e.alternate;t!==null&&(e.alternate=null,hu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&wt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var gu=null,_u=!1;function vu(e,t,n){for(n=n.child;n!==null;)yu(e,t,n),n=n.sibling}function yu(e,t,n){if(He&&typeof He.onCommitFiberUnmount==`function`)try{He.onCommitFiberUnmount(Ve,n)}catch{}switch(n.tag){case 26:eu||xl(n,t),vu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!eu&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:eu||xl(n,t),wl(n);var r=gu,i=_u;Tp(n.type)&&(gu=n.stateNode,_u=!1),vu(e,t,n),ym(n.stateNode,n.type,n.memoizedProps),gu=r,_u=i;break;case 5:eu||xl(n,t),wl(n);case 6:if(n.tag===6&&wl(n),r=gu,i=_u,gu=null,vu(e,t,n),gu=r,_u=i,gu!==null){if(_u)try{(gu.nodeType===9?gu.body:gu.nodeName===`HTML`?gu.ownerDocument.body:gu).removeChild(n.stateNode),zt=!0}catch(e){mf(n,t,e)}else try{gu.removeChild(n.stateNode),zt=!0}catch(e){mf(n,t,e)}}break;case 18:gu!==null&&(_u?(e=gu,Ep(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Gh(e)):Ep(gu,n.stateNode));break;case 4:r=gu,i=_u,gu=n.stateNode.containerInfo,_u=!0,vu(e,t,n),gu=r,_u=i;break;case 0:case 11:case 14:case 15:_l(2,n,t),eu||_l(4,n,t),vu(e,t,n);break;case 1:eu||(xl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&yl(n,t,r)),vu(e,t,n);break;case 21:vu(e,t,n);break;case 22:eu=(r=eu)||n.memoizedState!==null,vu(e,t,n),eu=r;break;case 30:xl(n,t),vu(e,t,n);break;case 7:eu||xl(n,t),vu(e,t,n);break;default:vu(e,t,n)}}function bu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Gh(e)}catch(e){mf(t,t.return,e)}}}function xu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Gh(e)}catch(e){mf(t,t.return,e)}}function Su(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ru),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ru),t;default:throw Error(i(435,e.tag))}}function Cu(e,t){var n=Su(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=yf.bind(null,e,t);t.then(r,r)}})}function wu(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Tp(l.type)){gu=l.stateNode,_u=!1;break a}break;case 5:gu=l.stateNode,_u=!1;break a;case 3:case 4:gu=l.stateNode.containerInfo,_u=!0;break a}l=l.return}if(gu===null)throw Error(i(160));yu(s,c,o),gu=null,_u=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Eu(t,e,n),t=t.sibling}var Tu=null;function Eu(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}wu(t,e,n),Du(e),a&4&&(_l(3,e,e.return),gl(3,e),_l(5,e,e.return));break;case 1:wu(t,e,n),Du(e),a&512&&(eu||r===null||xl(r,r.return)),a&64&&$l&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Tu,wu(t,e,n),Du(e),a&512&&(eu||r===null||xl(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if($l)e.stateNode=hp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[St]||r[ht]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),ap(r,t,n),r[ht]=e,kt(r),t=r;break a;case`link`:if(o=Jm(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),ap(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=Jm(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),ap(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[ht]=e,kt(r),t=r}e.stateNode=t}}else $l||Ym(o,e.type,e.stateNode)}else e.stateNode=Um(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Ol(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||eu||t.parentNode.removeChild(t)):a.count--,n===null?$l||Ym(o,e.type,e.stateNode):Um(o,n,e.memoizedProps))}break;case 27:wu(t,e,n),Du(e),a&512&&(eu||r===null||xl(r,r.return)),r!==null&&a&4&&Ol(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=tu,tu=!1,wu(t,e,n),tu=o,Du(e),a&512&&(eu||r===null||xl(r,r.return)),e.flags&32){t=e.stateNode;try{rn(t,``),zt=!0}catch(t){mf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Ol(e,t,r===null?t:r.memoizedProps)),a&1024&&(nu=!0);break;case 6:if(wu(t,e,n),Du(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,zt=!0}catch(t){mf(e,e.return,t)}}break;case 3:if(zt=!1,qm=null,o=Tu,Tu=Cm(t.containerInfo),wu(t,e,n),Tu=o,Du(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Gh(t.containerInfo)}catch(t){mf(e,e.return,t)}nu&&(nu=!1,Ou(e)),zt=!1;break;case 4:a=tu,tu=$l,r=Bt(),o=Tu,Tu=Cm(e.stateNode.containerInfo),wu(t,e,n),Du(e),Tu=o,zt&&ou&&(su=!0),zt=r,tu=a;break;case 12:wu(t,e,n),Du(e);break;case 31:wu(t,e,n),Du(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Cu(e,t)));break;case 13:wu(t,e,n),Du(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(hd=Me()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Cu(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=$l,l=eu,u=tu;$l=c||o,tu=u||o,eu=l||s,wu(t,e,n),eu=l,tu=u,$l=c,Du(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||$l||eu||(t=s||eu,n=$l,r=eu,$l=o||$l,eu=t,Mu(e,2),$l=n,eu=r),!o&&tu||fu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Cu(e,n))));break;case 19:wu(t,e,n),Du(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Cu(e,t)));break;case 30:a&512&&(eu||r===null||xl(r,r.return)),a=Bt(),o=ou,s=(n&335544064)===n,c=e.memoizedProps,ou=s&&li(c.default,c.update)!==`none`,wu(t,e,n),Du(e),s&&r!==null&&zt&&(e.flags|=4),ou=o,zt=a;break;case 21:break;case 7:a&512&&(eu||r===null||xl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:wu(t,e,n),Du(e)}}function Du(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(kl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(El(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(Tl(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Ml(e,Al(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(rn(l,``),n.flags&=-33),Ml(e,Al(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;jl(e,Al(e),u,s);break;default:throw Error(i(161))}}catch(t){mf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ou(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ou(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,yh=!0,t.reset(),yh=!1),e=e.sibling}}function ku(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Au(t,e),t=t.sibling;else Ql(t,!1)}function Au(e,t){var n=e.alternate;if(n===null)Wl(e,!1);else switch(e.tag){case 3:if(cu=au=!1,Rl(),ku(t,e),!au&&!su){if(e=Ll,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];kp(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),cu=!0}Ll=null;break;case 5:ku(t,e);break;case 4:r=au,au=!1,ku(t,e),au&&(su=!0),au=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?ku(t,e):Wl(e,!1));break;case 30:r=au,i=Rl(),au=!1,ku(t,e),au&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=si(a,o),o=si(n.memoizedProps,o);var s=li(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,zl=0,t=Zl(e,n,t,o,s,a,!0),zl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Pd(e,e.memoizedProps.onUpdate),Ll=i):i!==null&&(i.push.apply(i,Ll),Ll=i),au=e.flags&32?!0:r;break;default:ku(t,e)}}function ju(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)du(e,t.alternate,t),t=t.sibling}function Mu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:_l(4,n,n.return),Mu(n,r);break;case 1:xl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&yl(n,n.return,i),Mu(n,r);break;case 27:r&2&&ym(n.stateNode,n.type,n.memoizedProps);case 5:xl(n,n.return),n.tag!==5&&n.tag!==27||wl(n),Mu(n,r);break;case 6:wl(n);break;case 26:xl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||eu||i.parentNode.removeChild(i),Mu(n,r);break;case 22:n.memoizedState===null&&Mu(n,r);break;case 30:xl(n,n.return),Mu(n,r);break;case 7:xl(n,n.return);default:Mu(n,r)}e=e.sibling}}function Nu(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Nu(i,a,n),gl(4,a);break;case 1:if(Nu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){mf(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)ho(l[i],c)}catch(e){mf(r,r.return,e)}}s&&o&64&&vl(a),bl(a,a.return);break;case 27:n&2&&Nl(a);case 5:a.tag!==5&&a.tag!==27||Cl(a),Nu(i,a,n),s&&r===null&&o&4&&Dl(a),bl(a,a.return);break;case 6:Cl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||$l||Ym(Cm(c.ownerDocument),a.type,c),Nu(i,a,n),s&&r===null&&o&4&&Dl(a),bl(a,a.return);break;case 12:Nu(i,a,n);break;case 31:Nu(i,a,n),s&&o&4&&bu(i,a);break;case 13:Nu(i,a,n),s&&o&4&&xu(i,a);break;case 22:a.memoizedState===null&&Nu(i,a,n),bl(a,a.return);break;case 30:Nu(i,a,n),bl(a,a.return);break;case 7:bl(a,a.return);default:Nu(i,a,n)}t=t.sibling}}function Pu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&wa(n))}function Fu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&wa(e))}function Iu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Lu(e,t,n,r),t=t.sibling;else i&&Xl(t)}function Lu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Yl(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Iu(e,t,n,r),a&2048&&gl(9,t);break;case 1:Iu(e,t,n,r);break;case 3:Iu(e,t,n,r),i&&cu&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&wa(a)));break;case 12:if(a&2048){Iu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){mf(t,t.return,e)}}else Iu(e,t,n,r);break;case 31:Iu(e,t,n,r);break;case 13:Iu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&Yl(t),o._visibility&2?Iu(e,t,n,r):(o._visibility|=2,Ru(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&Yl(s),o._visibility&2?Iu(e,t,n,r):zu(e,t)),a&2048&&Pu(s,t);break;case 24:Iu(e,t,n,r),a&2048&&Fu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Hl(a.child,!0),Hl(t.child,!0))),Iu(e,t,n,r);break;default:Iu(e,t,n,r)}}function Ru(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Ru(a,o,s,c,i),gl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Ru(a,o,s,c,i)):u._visibility&2?Ru(a,o,s,c,i):zu(a,o),i&&l&2048&&Pu(o.alternate,o);break;case 24:Ru(a,o,s,c,i),i&&l&2048&&Fu(o.alternate,o);break;default:Ru(a,o,s,c,i)}t=t.sibling}}function zu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:zu(n,r),i&2048&&Pu(r.alternate,r);break;case 24:zu(n,r),i&2048&&Fu(r.alternate,r);break;default:zu(n,r)}t=t.sibling}}var Bu=8192;function Vu(e,t,n){if(e.subtreeFlags&Bu)for(e=e.child;e!==null;)Hu(e,t,n),e=e.sibling}function Hu(e,t,n){switch(e.tag){case 26:Vu(e,t,n),e.flags&Bu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&eh(n,e)):th(n,Tu,e.memoizedState,e.memoizedProps));break;case 5:Vu(e,t,n),e.flags&Bu&&(e=e.stateNode,(t&335544128)===t&&eh(n,e));break;case 3:case 4:var r=Tu;Tu=Cm(e.stateNode.containerInfo),Vu(e,t,n),Tu=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Bu,Bu=16777216,Vu(e,t,n),Bu=r):Vu(e,t,n));break;case 30:if((e.flags&Bu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Fl===null&&(Fl=new Map),Fl.set(r,i)}Vu(e,t,n);break;default:Vu(e,t,n)}}function Uu(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Wu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];iu=r,qu(r,e)}Uu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Gu(e),e=e.sibling}function Gu(e){switch(e.tag){case 0:case 11:case 15:Wu(e),e.flags&2048&&_l(9,e,e.return);break;case 3:Wu(e);break;case 12:Wu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ku(e)):Wu(e);break;default:Wu(e)}}function Ku(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];iu=r,qu(r,e)}Uu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:_l(8,t,t.return),Ku(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ku(t));break;default:Ku(t)}e=e.sibling}}function qu(e,t){for(;iu!==null;){var n=iu;switch(n.tag){case 0:case 11:case 15:_l(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:wa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,iu=r;else a:for(n=e;iu!==null;){r=iu;var i=r.sibling,a=r.return;if(hu(r),r===n){iu=null;break a}if(i!==null){i.return=a,iu=i;break a}iu=a}}}var Ju={getCacheForType:function(e){var t=ga(Sa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ga(Sa).controller.signal}},Yu=typeof WeakMap==`function`?WeakMap:Map,Xu=0,Zu=null,Qu=null,$u=0,ed=0,td=null,nd=!1,rd=!1,id=!1,ad=0,od=0,sd=0,cd=0,ld=0,ud=0,dd=0,fd=null,pd=null,md=!1,hd=0,gd=0,_d=1/0,vd=null,yd=null,bd=0,xd=null,Sd=null,Cd=0,wd=0,Td=null,Ed=null,Dd=null,Od=null,kd=null,Ad=0,jd=null;function Md(){return Xu&2&&$u!==0?$u&-$u:U.T===null?ft():Ff()}function Nd(){if(ud===0){if(!($u&536870912)||Yi){var e=Xe;Xe<<=1,!(Xe&3932160)&&(Xe=262144),ud=e}else ud=536870912}return e=So.current,e!==null&&(e.flags|=32),ud}function Pd(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Lp(si(e.memoizedProps,n))),Od===null&&(Od=[]),Od.push(t.bind(null,r))}}function Fd(e,t,n){(e===Zu&&(ed===2||ed===9)||e.cancelPendingCommit!==null)&&(Hd(e,0),zd(e,$u,ud,!1)),at(e,n),(!(Xu&2)||e!==Zu)&&(e===Zu&&(!(Xu&2)&&(cd|=n),od===4&&zd(e,$u,ud,!1)),Df(e))}function Id(e,t,n){if(Xu&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||et(e,t),a=r?Yd(e,t):qd(e,t,!0),o=r;do{if(a===0){rd&&!r&&zd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Rd(n))a=qd(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=fd;var l=c.current.memoizedState.isDehydrated;if(l&&(Hd(c,s).flags|=256),s=qd(c,s,!1),s!==2&&s!==6){if(id&&!l){c.errorRecoveryDisabledLanes|=o,cd|=o,a=4;break a}o=pd,pd=a,o!==null&&(pd===null?pd=o:pd.push.apply(pd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Hd(e,0),zd(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:zd(r,t,ud,!nd);break a;case 2:pd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=hd+300-Me(),10<a)){if(zd(r,t,ud,!nd),$e(r,0,!0)!==0)break a;Cd=t,r.timeoutHandle=yp(Ld.bind(null,r,n,pd,vd,md,t,ud,cd,dd,nd,o,`Throttled`,-0,0),a);break a}Ld(r,n,pd,vd,md,t,ud,cd,dd,nd,o,null,-0,0)}break}}while(1);Df(e)}function Ld(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:fn},Fl=null,Hu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=ah.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?hd-Me():(a&4194048)===a?gd-Me():0,m=rh(d,m),m!==null)?(Cd=a,e.cancelPendingCommit=m(nf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),zd(e,a,o,!l)):nf(e,t,a,n,r,i,o,s,c,l,u,d)}function Rd(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Nr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function zd(e,t,n,r){t=tt(e,t),t&=~ld,t&=~cd,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-We(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&st(e,n,t)}function Bd(){return Xu&6?!0:(Of(0,!1),!1)}function Vd(){if(Qu!==null){if(ed===0)var e=Qu.return;else e=Qu,ca=sa=null,Qo(e),Xa=null,Za=0,e=Qu;for(;e!==null;)hl(e.alternate,e),e=e.return;Qu=null}}function Hd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,bp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Cd=0,Vd(),Zu=e,Qu=n=wi(e.current,null),$u=t,ed=0,td=null,nd=!1,rd=et(e,t),id=!1,dd=ud=ld=cd=sd=od=0,pd=fd=null,md=!1,ad=tt(e,t),mi(),n}function Y(e,t){Po=null,U.H=cc,t===Ba||t===Ha?(t=Ja(),ed=3):t===Va?(t=Ja(),ed=4):ed=t===Ec?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,td=t,Qu===null&&(od=1,bc(e,Mi(t,e.current)))}function Ud(){var e=So.current;return e===null?!0:($u&4194048)===$u?Co===null:($u&62914560)===$u||$u&536870912?e===Co:!1}function Wd(){var e=U.H;return U.H=cc,e===null?cc:e}function Gd(){var e=U.A;return U.A=Ju,e}function Kd(){od=4,nd||($u&4194048)!==$u&&So.current!==null||(rd=!0),!(sd&134217727)&&!(cd&134217727)||Zu===null||zd(Zu,$u,ud,!1)}function qd(e,t,n){var r=Xu;Xu|=2;var i=Wd(),a=Gd();(Zu!==e||$u!==t)&&(vd=null,Hd(e,t)),t=!1;var o=od;a:do try{if(ed!==0&&Qu!==null){var s=Qu,c=td;switch(ed){case 8:Vd(),o=6;break a;case 3:case 2:case 9:case 6:So.current===null&&(t=!0);var l=ed;if(ed=0,td=null,$d(e,s,c,l),n&&rd){o=0;break a}break;default:l=ed,ed=0,td=null,$d(e,s,c,l)}}Jd(),o=od;break}catch(t){Y(e,t)}while(1);return t&&e.shellSuspendCounter++,ca=sa=null,Xu=r,U.H=i,U.A=a,Qu===null&&(Zu=null,$u=0,mi()),o}function Jd(){for(;Qu!==null;)Zd(Qu)}function Yd(e,t){var n=Xu;Xu|=2;var r=Wd(),a=Gd();Zu!==e||$u!==t?(vd=null,_d=Me()+500,Hd(e,t)):rd=et(e,t);a:do try{if(ed!==0&&Qu!==null){t=Qu;var o=td;b:switch(ed){case 1:ed=0,td=null,$d(e,t,o,1);break;case 2:case 9:if(Wa(o)){ed=0,td=null,Qd(t);break}t=function(){ed!==2&&ed!==9||Zu!==e||(ed=7),Df(e)},o.then(t,t);break a;case 3:ed=7;break a;case 4:ed=5;break a;case 7:Wa(o)?(ed=0,td=null,Qd(t)):(ed=0,td=null,$d(e,t,o,7));break;case 5:var s=null;switch(Qu.tag){case 26:s=Qu.memoizedState;case 5:case 27:var c=Qu;if(s?Qm(s):c.stateNode.complete){ed=0,td=null;var l=c.sibling;if(l!==null)Qu=l;else{var u=c.return;u===null?Qu=null:(Qu=u,ef(u))}break b}}ed=0,td=null,$d(e,t,o,5);break;case 6:ed=0,td=null,$d(e,t,o,6);break;case 8:Vd(),od=6;break a;default:throw Error(i(462))}}Xd();break}catch(t){Y(e,t)}while(1);return ca=sa=null,U.H=r,U.A=a,Xu=n,Qu===null?(Zu=null,$u=0,mi(),od):0}function Xd(){for(;Qu!==null&&!Ae();)Zd(Qu)}function Zd(e){var t=ol(e.alternate,e,ad);e.memoizedProps=e.pendingProps,t===null?ef(e):Qu=t}function Qd(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Bc(n,t,t.pendingProps,t.type,void 0,$u);break;case 11:t=Bc(n,t,t.pendingProps,t.type.render,t.ref,$u);break;case 5:Qo(t);var r=t;r===qi&&(Yi?(ta(r),r.tag===5&&r.stateNode!=null&&(Ji=r.stateNode)):(ta(r),Yi=!0));default:hl(n,t),t=Qu=Ti(t,ad),t=ol(n,t,ad)}e.memoizedProps=e.pendingProps,t===null?ef(e):Qu=t}function $d(e,t,n,r){ca=sa=null,Qo(t),Xa=null,Za=0;var i=t.return;try{if(Tc(e,i,t,n,$u)){od=1,bc(e,Mi(n,e.current)),Qu=null;return}}catch(t){if(i!==null)throw Qu=i,t;od=1,bc(e,Mi(n,e.current)),Qu=null;return}t.flags&32768?(Yi||r===1?e=!0:rd||$u&536870912?e=!1:(nd=e=!0,(r===2||r===9||r===3||r===6)&&(r=So.current,r!==null&&r.tag===13&&(r.flags|=16384))),tf(t,e)):ef(t)}function ef(e){var t=e;do{if(t.flags&32768){tf(t,nd);return}e=t.return;var n=pl(t.alternate,t,ad);if(n!==null){Qu=n;return}if(t=t.sibling,t!==null){Qu=t;return}Qu=t=e}while(t!==null);od===0&&(od=5)}function tf(e,t){do{var n=ml(e.alternate,e);if(n!==null){n.flags&=32767,Qu=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Qu=e;return}Qu=e=n}while(e!==null);od=6,Qu=null}function nf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do df();while(bd!==0);if(Xu&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===Zu&&(Qu=Zu=null,$u=0),Sd=t,xd=e,Cd=n,Td=a,Ed=r,rf(e,t,n,s,c,l,f)}}function rf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(wd=s,s|=pi,ot(e,n,s,r,i,a),Od=null,(n&335544064)===n?(kd=Da(e),r=10262):(kd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,bf(Ie,function(){return ff(),null})):(e.callbackNode=null,e.callbackPriority=0),Pl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=U.T,U.T=null,i=W.p,W.p=2,a=Xu,Xu|=4;try{lu(e,t,n)}finally{Xu=a,W.p=i,U.T=r}}bd=1,Pl?Dd=Fp(o,e.containerInfo,kd,sf,cf,of,lf,ff,af,null,null):(sf(),cf(),lf())}function af(e){if(bd!==0){var t=xd.onRecoverableError;t(e,{componentStack:null})}}function of(){bd===3&&(bd=0,Au(Sd,xd),bd=4)}function sf(){if(bd===1){bd=0;var e=xd,t=Sd,n=Cd,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=U.T,U.T=null;var i=W.p;W.p=2;var a=Xu;Xu|=4;try{ou=su=!1,Eu(t,e,n),n=dp;var o=Rr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Lr(s.ownerDocument.documentElement,s)){if(c!==null&&zr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Ir(s,h),v=Ir(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}yh=!!up,dp=up=null}finally{Xu=a,W.p=i,U.T=r}}e.current=t,bd=2}}function cf(){if(bd===2){bd=0;var e=xd,t=Sd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=U.T,U.T=null;var r=W.p;W.p=2;var i=Xu;Xu|=4;try{du(e,t.alternate,t)}finally{Xu=i,W.p=r,U.T=n}}bd=3}}function lf(){if(bd===4||bd===3){bd=0;var e=Dd;Dd=null,je();var t=xd,n=Sd,r=Cd,i=Ed,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?bd=5:(bd=0,Sd=xd=null,uf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(yd=null),dt(r),n=n.stateNode,He&&typeof He.onCommitFiberRoot==`function`)try{He.onCommitFiberRoot(Ve,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=U.T,a=W.p,W.p=2,U.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{U.T=n,W.p=a}}if(i=Od,o=kd,kd=null,i!==null&&(Od=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Cd&3&&df(),Df(t),a=t.pendingLanes,r&261930&&a&42?t===jd?Ad++:(Ad=0,jd=t):(Ad=0,jd=null),Of(0,!1)}}function uf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,wa(t)))}function df(){return Dd!==null&&(Dd.skipTransition(),Dd=null),sf(),cf(),lf(),ff()}function ff(){if(bd!==5)return!1;var e=xd,t=wd;wd=0;var n=dt(Cd),r=U.T,a=W.p;try{W.p=32>n?32:n,U.T=null,n=Td,Td=null;var o=xd,s=Cd;if(bd=0,Sd=xd=null,Cd=0,Xu&6)throw Error(i(331));var c=Xu;if(Xu|=4,Gu(o.current),Lu(o,o.current,s,n),Xu=c,Of(0,!1),He&&typeof He.onPostCommitFiberRoot==`function`)try{He.onPostCommitFiberRoot(Ve,o)}catch{}return!0}finally{W.p=a,U.T=r,uf(e,t)}}function pf(e,t,n){t=Mi(n,t),t=Sc(e.stateNode,t,2),e=co(e,t,2),e!==null&&(at(e,2),Df(e))}function mf(e,t,n){if(e.tag===3)pf(e,e,n);else for(;t!==null;){if(t.tag===3){pf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(yd===null||!yd.has(r))){e=Mi(n,e),n=Cc(2),r=co(t,n,2),r!==null&&(wc(n,r,t,e),at(r,2),Df(r));break}}t=t.return}}function hf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Yu;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(id=!0,i.add(n),e=gf.bind(null,e,t,n),t.then(e,e))}function gf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Zu===e&&($u&n)===n&&(od===4||od===3&&($u&62914560)===$u&&300>Me()-hd?Xu&2?ld|=n:Hd(e,0):ld|=n,dd===$u&&(dd=0)),Df(e)}function _f(e,t){t===0&&(t=rt()),e=_i(e,t),e!==null&&(at(e,t),Df(e))}function vf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_f(e,n)}function yf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),_f(e,n)}function bf(e,t){return Oe(e,t)}var xf=null,Sf=null,Cf=!1,wf=!1,Tf=!1,Ef=0;function Df(e){e!==Sf&&e.next===null&&(Sf===null?xf=Sf=e:Sf=Sf.next=e),wf=!0,Cf||(Cf=!0,Pf())}function Of(e,t){if(!Tf&&wf){Tf=!0;do for(var n=!1,r=xf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-We(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Nf(r,a))}else a=$u,a=$e(r,r===Zu?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||et(r,a)||(n=!0,Nf(r,a))}r=r.next}while(n);Tf=!1}}function kf(){Af()}function Af(){wf=Cf=!1;var e=0;Ef!==0&&vp()&&(e=Ef);for(var t=Me(),n=null,r=xf;r!==null;){var i=r.next,a=jf(r,t);a===0?(r.next=null,n===null?xf=i:n.next=i,i===null&&(Sf=n)):(n=r,(e!==0||a&3)&&(wf=!0)),r=i}bd!==0&&bd!==5||Of(e,!1),Ef!==0&&(Ef=0)}function jf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-We(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=nt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Zu,n=$u,n=$e(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(ed===2||ed===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&ke(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||et(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&ke(r),dt(n)){case 2:case 8:n=Fe;break;case 32:n=Ie;break;case 268435456:n=Re;break;default:n=Ie}return r=Mf.bind(null,e),n=Oe(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&ke(r),e.callbackPriority=2,e.callbackNode=null,2}function Mf(e,t){if(bd!==0&&bd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(df()&&e.callbackNode!==n)return null;var r=$u;return r=$e(e,e===Zu?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Id(e,r,t),jf(e,Me()),e.callbackNode!=null&&e.callbackNode===n?Mf.bind(null,e):null)}function Nf(e,t){if(df())return null;Id(e,t,!0)}function Pf(){Cp(function(){Xu&6?Oe(Pe,kf):Af()})}function Ff(){if(Ef===0){var e=Aa;e===0&&(e=Je,Je<<=1,!(Je&261888)&&(Je=256)),Ef=e}return Ef}function If(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:dn(e)}function Lf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=If((i[gt]||null).action),o=r.submitter;o&&(t=(t=o[gt]||null)?If(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Mn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Ef!==0){var e=new FormData(i,o);Js(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),Js(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Rf=0;Rf<ii.length;Rf++){var zf=ii[Rf];ai(zf.toLowerCase(),`on`+(zf[0].toUpperCase()+zf.slice(1)))}ai(Xr,`onAnimationEnd`),ai(Zr,`onAnimationIteration`),ai(Qr,`onAnimationStart`),ai(`dblclick`,`onDoubleClick`),ai(`focusin`,`onFocus`),ai(`focusout`,`onBlur`),ai($r,`onTransitionRun`),ai(ei,`onTransitionStart`),ai(ti,`onTransitionCancel`),ai(ni,`onTransitionEnd`),Pt(`onMouseEnter`,[`mouseout`,`mouseover`]),Pt(`onMouseLeave`,[`mouseout`,`mouseover`]),Pt(`onPointerEnter`,[`pointerout`,`pointerover`]),Pt(`onPointerLeave`,[`pointerout`,`pointerover`]),Nt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Nt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Nt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Nt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Nt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Nt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Bf=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),Vf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Bf));function Hf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ui(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ui(e)}i.currentTarget=null,a=c}}}}function Uf(e,t){var n=t[vt];n===void 0&&(n=t[vt]=new Set);var r=e+`__bubble`;n.has(r)||(qf(t,e,2,!1),n.add(r))}function Wf(e,t,n){var r=0;t&&(r|=4),qf(n,e,r,t)}var Gf=`_reactListening`+Math.random().toString(36).slice(2);function Kf(e){if(!e[Gf]){e[Gf]=!0,jt.forEach(function(t){t!==`selectionchange`&&(Vf.has(t)||Wf(t,!1,e),Wf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Gf]||(t[Gf]=!0,Wf(`selectionchange`,!1,t))}}function qf(e,t,n,r){switch(Eh(t)){case 2:var i=bh;break;case 8:i=xh;break;default:i=Sh}n=i.bind(null,t,n,e),i=void 0,!xn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Jf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=Tt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}G(function(){var r=a,i=mn(n),s=[];a:{var c=ri.get(e);if(c!==void 0){var l=Mn,u=e;switch(e){case`keypress`:if(Dn(n)===0)break a;case`keydown`:case`keyup`:l=Yn;break;case`focusin`:u=`focus`,l=Bn;break;case`focusout`:u=`blur`,l=Bn;break;case`beforeblur`:case`afterblur`:l=Bn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Rn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=zn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Qn;break;case Xr:case Zr:case Qr:l=Vn;break;case ni:l=$n;break;case`scroll`:case`scrollend`:l=Pn;break;case`wheel`:l=er;break;case`copy`:case`cut`:case`paste`:l=Hn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Xn;break;case`submit`:l=Zn;break;case`toggle`:case`beforetoggle`:l=tr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=yn(m,p),g!=null&&d.push(Yf(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==pn&&(u=n.relatedTarget||n.fromElement)&&(Tt(u)||u[_t]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Tt(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Rn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Xn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Dt(c),h=l==null?u:Dt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,Tt(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?w(c,l,Zf):null,c!==null&&Qf(s,u,c,d,!1),l!==null&&f!==null&&Qf(s,f,l,d,!0)))}a:{if(c=r?Dt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=xr;else if(hr(c)){if(Sr)_=jr;else{_=kr;var v=Or}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&cn(r.elementType)&&(_=xr):_=Ar;if(_&&=_(e,r)){gr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Dt(r):window,e){case`focusin`:(hr(v)||v.contentEditable===`true`)&&(Vr=v,J=r,Hr=null);break;case`focusout`:Hr=J=Vr=null;break;case`mousedown`:Ur=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Ur=!1,Wr(s,n,i);break;case`selectionchange`:if(Br)break;case`keydown`:case`keyup`:Wr(s,n,i)}var y;if(rr)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else dr?lr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(or&&n.locale!==`ko`&&(dr||b!==`onCompositionStart`?b===`onCompositionEnd`&&dr&&(y=En()):(Cn=i,wn=`value`in Cn?Cn.value:Cn.textContent,dr=!0)),v=Xf(r,b),0<v.length&&(b=new Un(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=ur(n),y!==null&&(b.data=y)))),(y=ar?fr(e,n):pr(e,n))&&(b=Xf(r,`onBeforeInput`),0<b.length&&(v=new Un(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Lf(s,e,r,n,i)}Hf(s,t)})}function Yf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Xf(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=yn(e,n),i!=null&&r.unshift(Yf(e,i,a)),i=yn(e,t),i!=null&&r.push(Yf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Zf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Qf(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=yn(n,a),l!=null&&o.unshift(Yf(n,l,c))):i||(l=yn(n,a),l!=null&&o.push(Yf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var $f=/\r\n?/g,ep=/\u0000|\uFFFD/g;function tp(e){return(typeof e==`string`?e:``+e).replace($f,`
57
- `).replace(ep,``)}function np(e,t){return t=tp(t),tp(e)===t}function rp(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||rn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&rn(e,``+r);else return;break;case`className`:Ht(e,`class`,r);break;case`tabIndex`:Ht(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Ht(e,n,r);break;case`style`:sn(e,r,o);return;case`data`:if(t!==`object`){Ht(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=dn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&rp(e,t,`name`,a.name,a,null),rp(e,t,`formEncType`,a.formEncType,a,null),rp(e,t,`formMethod`,a.formMethod,a,null),rp(e,t,`formTarget`,a.formTarget,a,null)):(rp(e,t,`encType`,a.encType,a,null),rp(e,t,`method`,a.method,a,null),rp(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=dn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=fn);return;case`onScroll`:r!=null&&Uf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Uf(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=dn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Uf(`beforetoggle`,e),Uf(`toggle`,e),Vt(e,`popover`,r);break;case`xlinkActuate`:Ut(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Ut(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Ut(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Ut(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Ut(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Ut(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Ut(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Ut(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Ut(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Vt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=ln.get(n)||n,Vt(e,n,r);else return}zt=!0}function ip(e,t,n,r,a,o){switch(n){case`style`:sn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)rn(e,r);else if(typeof r==`number`||typeof r==`bigint`)rn(e,``+r);else return;break;case`onScroll`:r!=null&&Uf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Uf(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=fn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Mt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[gt]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}zt=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Vt(e,n,r)}return}zt=!0}function ap(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Uf(`error`,e),Uf(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:rp(e,t,o,s,n,null)}}a&&rp(e,t,`srcSet`,n.srcSet,n,null),r&&rp(e,t,`src`,n.src,n,null);return;case`input`:Uf(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:rp(e,t,r,d,n,null)}}Qt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Uf(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:rp(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&en(e,!!r,n,!0):en(e,!!r,t,!1);return;case`textarea`:for(s in Uf(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:rp(e,t,s,c,n,null)}nn(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:rp(e,t,l,r,n,null)}return;case`dialog`:Uf(`beforetoggle`,e),Uf(`toggle`,e),Uf(`cancel`,e),Uf(`close`,e);break;case`iframe`:case`object`:Uf(`load`,e);break;case`video`:case`audio`:for(r=0;r<Bf.length;r++)Uf(Bf[r],e);break;case`image`:Uf(`error`,e),Uf(`load`,e);break;case`details`:Uf(`toggle`,e);break;case`embed`:case`source`:case`link`:Uf(`error`,e),Uf(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:rp(e,t,u,r,n,null)}return;default:if(cn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&ip(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&rp(e,t,c,r,n,null))}var op={};function sp(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||rp(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(zt=!0),o=m;break;case`name`:m!==f&&(zt=!0),a=m;break;case`checked`:m!==f&&(zt=!0),u=m;break;case`defaultChecked`:m!==f&&(zt=!0),d=m;break;case`value`:m!==f&&(zt=!0),s=m;break;case`defaultValue`:m!==f&&(zt=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&rp(e,t,p,m,r,f)}}Zt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||rp(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(zt=!0),p=o;break;case`defaultValue`:o!==l&&(zt=!0),c=o;break;case`multiple`:o!==l&&(zt=!0),s=o;default:o!==l&&rp(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?en(e,!!n,n?[]:``,!1):en(e,!!n,t,!0)):en(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:rp(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(zt=!0),p=a;break;case`defaultValue`:a!==o&&(zt=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&rp(e,t,s,a,r,o)}tn(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:rp(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(zt=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:rp(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&rp(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:rp(e,t,u,p,r,m)}return;default:if(cn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&ip(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||ip(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&rp(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||rp(e,t,f,p,r,m)}function cp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function lp(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&cp(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&cp(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var up=null,dp=null;function fp(e){return e.nodeType===9?e:e.ownerDocument}function pp(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function mp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function hp(e,t,n,r){return n=fp(n).createElement(e),n[ht]=r,n[gt]=t,ap(n,e,t),kt(n),n}function gp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var _p=null;function vp(){var e=window.event;return e&&e.type===`popstate`?e!==_p&&(_p=e,!0):(_p=null,!1)}var yp=typeof setTimeout==`function`?setTimeout:void 0,bp=typeof clearTimeout==`function`?clearTimeout:void 0,xp=typeof Promise==`function`?Promise:void 0,Sp=typeof requestAnimationFrame==`function`?requestAnimationFrame:yp,Cp=typeof queueMicrotask==`function`?queueMicrotask:xp===void 0?yp:function(e){return xp.resolve(null).then(e).catch(wp)};function wp(e){setTimeout(function(){throw e})}function Tp(e){return e===`head`}function Ep(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Gh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)bm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,bm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[St]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&bm(e.ownerDocument.body)}n=i}while(n);Gh(t)}function Dp(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function Op(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function kp(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Ap(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function jp(e){return Ap(e.getBoundingClientRect(),getComputedStyle(e),e)}function Mp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Ap(t,n,e)}function Np(e){return e.documentElement.clientHeight}function Pp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Fp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Np(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=$m(f),u>nh){s.length=o;break}f=new Promise(Pp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Ip(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Ip.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:T({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Ip.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Ip.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Lp(e){return{name:e,group:new Ip(`group`,e),imagePair:new Ip(`image-pair`,e),old:new Ip(`old`,e),new:new Ip(`new`,e)}}function Rp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Rp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Up(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Vp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),f(this._fragmentFiber.child,!1,zp,e,s,r)}this._eventListeners=a}};function zp(e,t,n,r){return _(e).addEventListener(t,n,r),!1}Rp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Up(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Vp(i.optionsOrUseCapture),f(this._fragmentFiber.child,!1,Bp,e,n,i),r.splice(t,1),a!==null&&a()}};function Bp(e,t,n,r){return _(e).removeEventListener(t,n,r),!1}function Vp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Hp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Up(e,t,n,r){if(e.length===0)return-1;r=Hp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Hp(a.optionsOrUseCapture)===r)return i}return-1}Rp.prototype.dispatchEvent=function(e){var t=p(this._fragmentFiber);if(t===null)return!0;t=_(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Vp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Vp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Rp.prototype.focus=function(e){f(this._fragmentFiber.child,!0,Wp,e,void 0,void 0)};function Wp(e,t){return e.tag!==6&&(e=_(e),gm(e,t))}Rp.prototype.focusLast=function(e){var t=[];f(this._fragmentFiber.child,!0,Gp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Wp(t[n],e);n--);};function Gp(e,t){return t.push(e),!1}Rp.prototype.blur=function(){var e=p(this._fragmentFiber);e!==null&&(e=_(e),e=fp(e).activeElement,e!==null&&f(this._fragmentFiber.child,!1,Kp,e,void 0,void 0))};function Kp(e,t){return e.tag!==6&&(e=_(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Rp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),f(this._fragmentFiber.child,!1,qp,e,void 0,void 0)};function qp(e,t){return e.tag===6||(e=_(e),t.observe(e)),!1}Rp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),f(this._fragmentFiber.child,!1,Jp,e,void 0,void 0);for(var n=t=0;n<Yp.length;n++){var r=Yp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Yp[t++]=r}Yp.length=t}};function Jp(e,t){return e.tag===6||(e=_(e),t.unobserve(e)),!1}var Yp=[],Xp=!1;function Zp(e,t,n){Yp.push({fragmentInstance:e,observer:t,instance:n}),Xp||(Xp=!0,_m(function(){Xp=!1;var e=Yp;Yp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Rp.prototype.getClientRects=function(){var e=[];return f(this._fragmentFiber.child,!1,Qp,e,void 0,void 0),e};function Qp(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=_(e),t.push.apply(t,e.getClientRects());return!1}Rp.prototype.getRootNode=function(e){var t=p(this._fragmentFiber);return t===null?this:_(t).getRootNode(e)},Rp.prototype.compareDocumentPosition=function(e){var t=p(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];f(this._fragmentFiber.child,!1,Gp,n,void 0,void 0);var r=_(t);if(n.length===0){if(n=r,m(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=h(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=_(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=_(n[0]),i=_(n[n.length-1]);var a=m(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||$p(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function $p(e,t,n,r,i){var a=Tt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=p(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=w(n,a,S),t===null?t=!1:(f(t,!0,b,a,n),a=v,v=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=w(r,a,S),t===null?t=!1:(f(t,!0,x,a,r),a=v,y=v=null,t=a!==null)),t):!1}function em(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Rp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];f(this._fragmentFiber.child,!1,Gp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=h(this._fragmentFiber);if(r=n?r[1]||r[0]||p(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=_(r),em(e,n);return}if(r=_(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=_(a),em(a,n)):_(a).scrollIntoView(e),r+=n?-1:1}};function tm(e,t){return e=_(e),nm(e,t),!1}function nm(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function rm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Vp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Yp.length;i++){var a=Yp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Yp[r++]=a)}Yp.length=r,n.observe(e)}),nm(e,t))}function im(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Vp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Zp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function am(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:am(n),wt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function om(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[St])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=fm(e.nextSibling),e===null)break}return null}function sm(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=fm(e.nextSibling),e===null))return null;return e}function cm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=fm(e.nextSibling),e===null))return null;return e}function lm(e){return e.data===`$?`||e.data===`$~`}function um(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function dm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function fm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var pm=null;function mm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return fm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function hm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function gm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function _m(e){Sp(function(){Sp(function(t){return e(t)})})}function vm(e,t,n){switch(t=fp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function ym(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&rp(e,t,r,null,op,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===fn&&(e.onclick=null),wt(e)}function bm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);wt(e)}var xm=new Map,Sm=new Set;function Cm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var wm=W.d;W.d={f:Tm,r:Em,D:km,C:Am,L:jm,m:Mm,X:Pm,S:Nm,M:Fm};function Tm(){var e=wm.f(),t=Bd();return e||t}function Em(e){var t=Et(e);t!==null&&t.tag===5&&t.type===`form`?Xs(t):wm.r(e)}var Dm=typeof document>`u`?null:document;function Om(e,t,n){var r=Dm;if(r&&typeof t==`string`&&t){var i=Xt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Sm.has(i)||(Sm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),ap(t,`link`,e),kt(t),r.head.appendChild(t)))}}function km(e){wm.D(e),Om(`dns-prefetch`,e,null)}function Am(e,t){wm.C(e,t),Om(`preconnect`,e,t)}function jm(e,t,n){wm.L(e,t,n);var r=Dm;if(r&&e&&t){var i=`link[rel="preload"][as="`+Xt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Xt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Xt(n.imageSizes)+`"]`)):i+=`[href="`+Xt(e)+`"]`;var a=i;switch(t){case`style`:a=Lm(e);break;case`script`:a=Vm(e)}if(!(xm.has(a)||(e=T({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),xm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Rm(a))||t===`script`&&r.querySelector(Hm(a))))){var o=r.createElement(`link`);ap(o,`link`,e),t===`style`&&(o[Ct]=!0,o.onload=o.onerror=function(){At(o)}),kt(o),r.head.appendChild(o)}}}function Mm(e,t){wm.m(e,t);var n=Dm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Xt(r)+`"][href="`+Xt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Vm(e)}if(!xm.has(a)&&(e=T({rel:`modulepreload`,href:e},t),xm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Hm(a)))return}r=n.createElement(`link`),ap(r,`link`,e),kt(r),n.head.appendChild(r)}}}function Nm(e,t,n){wm.S(e,t,n);var r=Dm;if(r&&e){var i=Ot(r).hoistableStyles,a=Lm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Rm(a)))s.loading=5;else{e=T({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=xm.get(a))&&Gm(e,n);var c=o=r.createElement(`link`);kt(c),ap(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Wm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Pm(e,t){wm.X(e,t);var n=Dm;if(n&&e){var r=Ot(n).hoistableScripts,i=Vm(e),a=r.get(i);a||(a=n.querySelector(Hm(i)),a||(e=T({src:e,async:!0},t),(t=xm.get(i))&&Km(e,t),a=n.createElement(`script`),kt(a),ap(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Fm(e,t){wm.M(e,t);var n=Dm;if(n&&e){var r=Ot(n).hoistableScripts,i=Vm(e),a=r.get(i);a||(a=n.querySelector(Hm(i)),a||(e=T({src:e,async:!0,type:`module`},t),(t=xm.get(i))&&Km(e,t),a=n.createElement(`script`),kt(a),ap(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Im(e,t,n,r){var a=(a=me.current)?Cm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Lm(n.href),t=Ot(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Lm(n.href);var o=Ot(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Rm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=xm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},xm.set(e,o)),Bm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Vm(n),t=Ot(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Lm(e){return`href="`+Xt(e)+`"`}function Rm(e){return`link[rel="stylesheet"][`+e+`]`}function zm(e){return T({},e,{"data-precedence":e.precedence,precedence:null})}function Bm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Ct]){r.loading=1;return}}else t=e.createElement(`link`),t[Ct]=!0,t.onload=t.onerror=At.bind(null,t),ap(t,`link`,n),kt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Vm(e){return`[src="`+Xt(e)+`"]`}function Hm(e){return`script[async]`+e}function Um(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Xt(n.href)+`"]`);if(r)return t.instance=r,kt(r),r;var a=T({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),kt(r),ap(r,`style`,a),Wm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Lm(n.href);var o=e.querySelector(Rm(a));if(o)return t.state.loading|=4,t.instance=o,kt(o),o;r=zm(n),(a=xm.get(a))&&Gm(r,a),o=(e.ownerDocument||e).createElement(`link`),kt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),ap(o,`link`,r),t.state.loading|=4,Wm(o,n.precedence,e),t.instance=o;case`script`:return o=Vm(n.src),(a=e.querySelector(Hm(o)))?(t.instance=a,kt(a),a):(r=n,(a=xm.get(o))&&(r=T({},n),Km(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),kt(a),ap(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Wm(r,n.precedence,e));return t.instance}function Wm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Gm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Km(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var qm=null;function Jm(e,t,n){if(qm===null){var r=new Map,i=qm=new Map;i.set(n,r)}else i=qm,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[St]||a[ht]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Ym(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Xm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Zm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Qm(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function $m(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function eh(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=$m(t),e.suspenseyImages.push(t)),e=oh.bind(e),t.decode().then(e,e))}function th(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Lm(r.href),a=t.querySelector(Rm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=ah.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,kt(a);return}a=t.ownerDocument||t,r=zm(r),(i=xm.get(i))&&Gm(r,i),a=a.createElement(`link`),kt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),ap(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=ah.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var nh=0;function rh(e,t){return e.stylesheets&&e.count===0&&ch(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ch(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&nh===0&&(nh=62500*lp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ch(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>nh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function ih(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ch(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function ah(){this.count--,ih(this)}function oh(){this.imgCount--,ih(this)}var sh=null;function ch(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,sh=new Map,t.forEach(lh,e),sh=null,ah.call(e))}function lh(e,t){if(!(t.state.loading&4)){var n=sh.get(e);if(n)var r=n.get(null);else{n=new Map,sh.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=ah.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var uh={$$typeof:N,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function dh(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=it(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=it(0),this.hiddenUpdates=it(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function fh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new dh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Si(3,null,null,t),e.current=a,a.stateNode=e,t=Ca(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},ao(a),e}function ph(e){return e?(e=bi,e):bi}function mh(e,t,n,r,i,a){i=ph(i),r.context===null?r.context=i:r.pendingContext=i,r=so(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=co(e,r,t),n!==null&&(Fd(n,e,t),lo(n,e,t))}function hh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function gh(e,t){hh(e,t),(e=e.alternate)&&hh(e,t)}function _h(e){if(e.tag===13||e.tag===31){var t=_i(e,67108864);t!==null&&Fd(t,e,67108864),gh(e,67108864)}}function vh(e){if(e.tag===13||e.tag===31){var t=Md();t=ut(t);var n=_i(e,t);n!==null&&Fd(n,e,t),gh(e,t)}}var yh=!0;function bh(e,t,n,r){var i=U.T;U.T=null;var a=W.p;try{W.p=2,Sh(e,t,n,r)}finally{W.p=a,U.T=i}}function xh(e,t,n,r){var i=U.T;U.T=null;var a=W.p;try{W.p=8,Sh(e,t,n,r)}finally{W.p=a,U.T=i}}function Sh(e,t,n,r){if(yh){var i=Ch(r);if(i===null)Jf(e,t,r,wh,n),Fh(e,r);else if(Lh(i,e,t,n,r))r.stopPropagation();else if(Fh(e,r),t&4&&-1<Ph.indexOf(e)){for(;i!==null;){var a=Et(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Qe(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-We(o);s.entanglements[1]|=c,o&=~c}Df(a),!(Xu&6)&&(_d=Me()+500,Of(0,!1))}}break;case 31:case 13:s=_i(a,2),s!==null&&Fd(s,a,2),Bd(),gh(a,2)}if(a=Ch(r),a===null&&Jf(e,t,r,wh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Jf(e,t,r,null,n)}}function Ch(e){return e=mn(e),Th(e)}var wh=null;function Th(e){if(wh=null,e=Tt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return wh=e,null}function Eh(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ne()){case Pe:return 2;case Fe:return 8;case Ie:case Le:return 32;case Re:return 268435456;default:return 32}default:return 32}}var Dh=!1,Oh=null,kh=null,Ah=null,jh=new Map,Mh=new Map,Nh=[],Ph=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Fh(e,t){switch(e){case`focusin`:case`focusout`:Oh=null;break;case`dragenter`:case`dragleave`:kh=null;break;case`mouseover`:case`mouseout`:Ah=null;break;case`pointerover`:case`pointerout`:jh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Mh.delete(t.pointerId)}}function Ih(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Et(t),t!==null&&_h(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Lh(e,t,n,r,i){switch(t){case`focusin`:return Oh=Ih(Oh,e,t,n,r,i),!0;case`dragenter`:return kh=Ih(kh,e,t,n,r,i),!0;case`mouseover`:return Ah=Ih(Ah,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return jh.set(a,Ih(jh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Mh.set(a,Ih(Mh.get(a)||null,e,t,n,r,i)),!0}return!1}function Rh(e){var t=Tt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,pt(e.priority,function(){vh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,pt(e.priority,function(){vh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function zh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ch(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);pn=r,n.target.dispatchEvent(r),pn=null}else return t=Et(n),t!==null&&_h(t),e.blockedOn=n,!1;t.shift()}return!0}function Bh(e,t,n){zh(e)&&n.delete(t)}function Vh(){Dh=!1,Oh!==null&&zh(Oh)&&(Oh=null),kh!==null&&zh(kh)&&(kh=null),Ah!==null&&zh(Ah)&&(Ah=null),jh.forEach(Bh),Mh.forEach(Bh)}function Hh(e,n){e.blockedOn===n&&(e.blockedOn=null,Dh||(Dh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Vh)))}var Uh=null;function Wh(e){Uh!==e&&(Uh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Uh===e&&(Uh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Th(r||n)===null)continue;break}var a=Et(n);a!==null&&(e.splice(t,3),t-=3,Js(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Gh(e){function t(t){return Hh(t,e)}Oh!==null&&Hh(Oh,e),kh!==null&&Hh(kh,e),Ah!==null&&Hh(Ah,e),jh.forEach(t),Mh.forEach(t);for(var n=0;n<Nh.length;n++){var r=Nh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Nh.length&&(n=Nh[0],n.blockedOn===null);)Rh(n),n.blockedOn===null&&Nh.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[gt]||null;if(typeof a==`function`)o||Wh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[gt]||null)s=o.formAction;else if(Th(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Wh(n)}}}function Kh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function qh(e){this._internalRoot=e}Jh.prototype.render=qh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;mh(n,Md(),e,t,null,null)},Jh.prototype.unmount=qh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;mh(e.current,2,null,e,null,null),Bd(),t[_t]=null}};function Jh(e){this._internalRoot=e}Jh.prototype.unstable_scheduleHydration=function(e){if(e){var t=ft();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nh.length&&t!==0&&t<Nh[n].priority;n++);Nh.splice(n,0,e),n===0&&Rh(e)}};var Yh=n.version;if(Yh!==`19.3.0`)throw Error(i(527,Yh,`19.3.0`));W.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Xh={bundleType:0,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:U,reconcilerVersion:`19.3.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Zh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zh.isDisabled&&Zh.supportsFiber)try{Ve=Zh.inject(Xh),He=Zh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=_c,s=vc,c=yc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=fh(e,1,!1,null,null,n,r,null,o,s,c,Kh),e[_t]=t.current,Kf(e),new qh(t)}})),uee=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=lee()})),dee=`modulepreload`,fee=function(e){return`/app/`+e},pee={},mee=function(e){return e.pathname.endsWith(`.css`)},hee=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},gee=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=fee(t,n);let r=s(t),i=mee(r);return hee(pee,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:dee,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},qb=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Jb=/^[\\/]{2}/;function Yb(e,t){return t+e.replace(/\\/g,`/`)}var Xb=`popstate`;function Zb(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function Qb(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return rx(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:ix(t)}return ox(t,n,null,e)}function $b(e,t){if(e===!1||e==null)throw Error(t)}function ex(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function tx(){return Math.random().toString(36).substring(2,10)}function nx(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function rx(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?ax(t):t,state:n,key:t&&t.key||r||tx(),mask:i}}function ix({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function ax(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function ox(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=Zb(e)?e:rx(h.location,e,t);n&&n(r,e),l=u()+1;let d=nx(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=Zb(e)?e:rx(h.location,e,t);n&&n(r,e),l=u();let i=nx(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return sx(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(Xb,d),c=e,()=>{i.removeEventListener(Xb,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function sx(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),$b(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:ix(t);return i=i.replace(/ $/,`%20`),!n&&Jb.test(i)&&(i=r+i),new URL(i,r)}function cx(e,t,n=`/`){return lx(e,t,n,!1)}function lx(e,t,n,r,i){let a=Ox((typeof t==`string`?ax(t):t).pathname||`/`,n);if(a==null)return null;let o=i??ux(e),s=null,c=Dx(a);for(let e=0;s==null&&e<o.length;++e)s=Cx(o[e],c,r);return s}function ux(e){let t=dx(e);return px(t),t}function dx(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;$b(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Ix([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&($b(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),dx(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:xx(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=Ex(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of fx(e.path))a(e,t,!0,n)}),t}function fx(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=fx(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function px(e){e.sort((e,t)=>e.score===t.score?Sx(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var mx=/^:[\w-]+$/,hx=3,gx=2,_x=1,vx=10,yx=-2,bx=e=>e===`*`;function xx(e,t){let n=e.split(`/`),r=n.length;return n.some(bx)&&(r+=yx),t&&(r+=gx),n.filter(e=>!bx(e)).reduce((e,t)=>e+(mx.test(t)?hx:t===``?_x:vx),r)}function Sx(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function Cx(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?Tx(u,l,s.matcher,s.compiledParams):wx(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=wx({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Ix([a,d.pathname]),pathnameBase:Rx(Ix([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=Ix([a,d.pathnameBase]))}return o}function wx(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Ex(e.path,e.caseSensitive,e.end);return Tx(e,t,n,r)}function Tx(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=Lx(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=Lx(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Ex(e,t=!1,n=!0){ex(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function Dx(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return ex(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Ox(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function kx(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?ax(e):e,a;return n?(n=Fx(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?Ax(n.substring(1),`/`):Ax(n,t)):a=t,{pathname:a,search:zx(r),hash:Bx(i)}}function Ax(e,t){let n=Lx(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function jx(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Mx(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Nx(e){let t=Mx(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Px(e,t,n,r=!1){let i;typeof e==`string`?i=ax(e):(i={...e},$b(!i.pathname||!i.pathname.includes(`?`),jx(`?`,`pathname`,`search`,i)),$b(!i.pathname||!i.pathname.includes(`#`),jx(`#`,`pathname`,`hash`,i)),$b(!i.search||!i.search.includes(`#`),jx(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=kx(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Fx=e=>e.replace(/[\\/]{2,}/g,`/`),Ix=e=>Fx(e.join(`/`));function Lx(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var Rx=e=>Lx(e).replace(/^\/*/,`/`),zx=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Bx=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Vx=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Hx(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Ux(e){return Ix(e.map(e=>e.route.path).filter(Boolean))||`/`}var Wx=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Gx(e,t){let n=e;if(typeof n!=`string`||!qb.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Wx)try{let e=new URL(window.location.href),r=Jb.test(n)?new URL(Yb(n,e.protocol)):new URL(n),a=Ox(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{ex(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Kx=new URL(`http://localhost`);function qx(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),Kx)}catch{return Kx}}function Jx(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function Yx(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function Xx(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!Jx(i,n),s=!Jx(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!Yx(e,i)||!Jx(i,a)))throw Error(`External navigation is not allowed`)}var Zx=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(Zx);var Qx=[`GET`,...Zx];new Set(Qx);var $x=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function eS(e){try{return $x.includes(new URL(e).protocol)}catch{return!1}}var tS=w.createContext(null);tS.displayName=`DataRouter`;var nS=w.createContext(null);nS.displayName=`DataRouterState`;var rS=w.createContext(!1);function iS(){return w.useContext(rS)}var aS=w.createContext({isTransitioning:!1});aS.displayName=`ViewTransition`;var oS=w.createContext(new Map);oS.displayName=`Fetchers`;var sS=w.createContext(null);sS.displayName=`Await`;var cS=w.createContext(null);cS.displayName=`Navigation`;var lS=w.createContext(null);lS.displayName=`Location`;var uS=w.createContext({outlet:null,matches:[],isDataRoute:!1});uS.displayName=`Route`;var dS=w.createContext(null);dS.displayName=`RouteError`;var fS=`REACT_ROUTER_ERROR`,pS=`REDIRECT`,mS=`ROUTE_ERROR_RESPONSE`;function hS(e){if(e.startsWith(`${fS}:${pS}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function gS(e){if(e.startsWith(`${fS}:${mS}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Vx(t.status,t.statusText,t.data)}catch{}}function _S(e,{relative:t}={}){$b(vS(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=w.useContext(cS),{hash:i,pathname:a,search:o}=DS(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Ix([n,a])),r.createHref({pathname:s,search:o,hash:i})}function vS(){return w.useContext(lS)!=null}function yS(){return $b(vS(),`useLocation() may be used only in the context of a <Router> component.`),w.useContext(lS).location}var bS=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function xS(e){w.useContext(cS).static||w.useLayoutEffect(e)}function SS(){let{isDataRoute:e}=w.useContext(uS);return e?WS():CS()}function CS(){$b(vS(),`useNavigate() may be used only in the context of a <Router> component.`);let e=w.useContext(tS),{basename:t,navigator:n}=w.useContext(cS),{matches:r}=w.useContext(uS),{pathname:i}=yS(),a=JSON.stringify(Nx(r)),o=w.useRef(!1);return xS(()=>{o.current=!0}),w.useCallback((r,s={})=>{if(ex(o.current,bS),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Px(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Ix([t,c.pathname])),Xx(typeof r==`string`?r:ix(r),n.createHref(c),qx(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var wS=w.createContext(null);function TS(e){let t=w.useContext(uS).outlet;return w.useMemo(()=>t&&w.createElement(wS.Provider,{value:e},t),[t,e])}function ES(){let{matches:e}=w.useContext(uS);return e[e.length-1]?.params??{}}function DS(e,{relative:t}={}){let{matches:n}=w.useContext(uS),{pathname:r}=yS(),i=JSON.stringify(Nx(n));return w.useMemo(()=>Px(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function OS(e,t){return kS(e,t)}function kS(e,t,n){$b(vS(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=w.useContext(cS),{matches:i}=w.useContext(uS),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;KS(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
57
+ `).replace(ep,``)}function np(e,t){return t=tp(t),tp(e)===t}function rp(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||rn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&rn(e,``+r);else return;break;case`className`:Ht(e,`class`,r);break;case`tabIndex`:Ht(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Ht(e,n,r);break;case`style`:sn(e,r,o);return;case`data`:if(t!==`object`){Ht(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=dn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&rp(e,t,`name`,a.name,a,null),rp(e,t,`formEncType`,a.formEncType,a,null),rp(e,t,`formMethod`,a.formMethod,a,null),rp(e,t,`formTarget`,a.formTarget,a,null)):(rp(e,t,`encType`,a.encType,a,null),rp(e,t,`method`,a.method,a,null),rp(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=dn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=fn);return;case`onScroll`:r!=null&&Uf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Uf(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=dn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Uf(`beforetoggle`,e),Uf(`toggle`,e),Vt(e,`popover`,r);break;case`xlinkActuate`:Ut(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Ut(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Ut(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Ut(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Ut(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Ut(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Ut(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Ut(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Ut(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Vt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=ln.get(n)||n,Vt(e,n,r);else return}zt=!0}function ip(e,t,n,r,a,o){switch(n){case`style`:sn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)rn(e,r);else if(typeof r==`number`||typeof r==`bigint`)rn(e,``+r);else return;break;case`onScroll`:r!=null&&Uf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Uf(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=fn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Mt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[gt]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}zt=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Vt(e,n,r)}return}zt=!0}function ap(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Uf(`error`,e),Uf(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:rp(e,t,o,s,n,null)}}a&&rp(e,t,`srcSet`,n.srcSet,n,null),r&&rp(e,t,`src`,n.src,n,null);return;case`input`:Uf(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:rp(e,t,r,d,n,null)}}Qt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Uf(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:rp(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&en(e,!!r,n,!0):en(e,!!r,t,!1);return;case`textarea`:for(s in Uf(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:rp(e,t,s,c,n,null)}nn(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:rp(e,t,l,r,n,null)}return;case`dialog`:Uf(`beforetoggle`,e),Uf(`toggle`,e),Uf(`cancel`,e),Uf(`close`,e);break;case`iframe`:case`object`:Uf(`load`,e);break;case`video`:case`audio`:for(r=0;r<Bf.length;r++)Uf(Bf[r],e);break;case`image`:Uf(`error`,e),Uf(`load`,e);break;case`details`:Uf(`toggle`,e);break;case`embed`:case`source`:case`link`:Uf(`error`,e),Uf(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:rp(e,t,u,r,n,null)}return;default:if(cn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&ip(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&rp(e,t,c,r,n,null))}var op={};function sp(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||rp(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(zt=!0),o=m;break;case`name`:m!==f&&(zt=!0),a=m;break;case`checked`:m!==f&&(zt=!0),u=m;break;case`defaultChecked`:m!==f&&(zt=!0),d=m;break;case`value`:m!==f&&(zt=!0),s=m;break;case`defaultValue`:m!==f&&(zt=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&rp(e,t,p,m,r,f)}}Zt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||rp(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(zt=!0),p=o;break;case`defaultValue`:o!==l&&(zt=!0),c=o;break;case`multiple`:o!==l&&(zt=!0),s=o;default:o!==l&&rp(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?en(e,!!n,n?[]:``,!1):en(e,!!n,t,!0)):en(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:rp(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(zt=!0),p=a;break;case`defaultValue`:a!==o&&(zt=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&rp(e,t,s,a,r,o)}tn(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:rp(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(zt=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:rp(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&rp(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:rp(e,t,u,p,r,m)}return;default:if(cn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&ip(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||ip(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&rp(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||rp(e,t,f,p,r,m)}function cp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function lp(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&cp(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&cp(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var up=null,dp=null;function fp(e){return e.nodeType===9?e:e.ownerDocument}function pp(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function mp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function hp(e,t,n,r){return n=fp(n).createElement(e),n[ht]=r,n[gt]=t,ap(n,e,t),kt(n),n}function gp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var _p=null;function vp(){var e=window.event;return e&&e.type===`popstate`?e!==_p&&(_p=e,!0):(_p=null,!1)}var yp=typeof setTimeout==`function`?setTimeout:void 0,bp=typeof clearTimeout==`function`?clearTimeout:void 0,xp=typeof Promise==`function`?Promise:void 0,Sp=typeof requestAnimationFrame==`function`?requestAnimationFrame:yp,Cp=typeof queueMicrotask==`function`?queueMicrotask:xp===void 0?yp:function(e){return xp.resolve(null).then(e).catch(wp)};function wp(e){setTimeout(function(){throw e})}function Tp(e){return e===`head`}function Ep(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Gh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)bm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,bm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[St]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&bm(e.ownerDocument.body)}n=i}while(n);Gh(t)}function Dp(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function Op(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function kp(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Ap(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function jp(e){return Ap(e.getBoundingClientRect(),getComputedStyle(e),e)}function Mp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Ap(t,n,e)}function Np(e){return e.documentElement.clientHeight}function Pp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Fp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Np(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=$m(f),u>nh){s.length=o;break}f=new Promise(Pp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Ip(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Ip.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:T({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Ip.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Ip.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Lp(e){return{name:e,group:new Ip(`group`,e),imagePair:new Ip(`image-pair`,e),old:new Ip(`old`,e),new:new Ip(`new`,e)}}function Rp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Rp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Up(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Vp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),f(this._fragmentFiber.child,!1,zp,e,s,r)}this._eventListeners=a}};function zp(e,t,n,r){return _(e).addEventListener(t,n,r),!1}Rp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Up(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Vp(i.optionsOrUseCapture),f(this._fragmentFiber.child,!1,Bp,e,n,i),r.splice(t,1),a!==null&&a()}};function Bp(e,t,n,r){return _(e).removeEventListener(t,n,r),!1}function Vp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Hp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Up(e,t,n,r){if(e.length===0)return-1;r=Hp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Hp(a.optionsOrUseCapture)===r)return i}return-1}Rp.prototype.dispatchEvent=function(e){var t=p(this._fragmentFiber);if(t===null)return!0;t=_(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Vp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Vp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Rp.prototype.focus=function(e){f(this._fragmentFiber.child,!0,Wp,e,void 0,void 0)};function Wp(e,t){return e.tag!==6&&(e=_(e),gm(e,t))}Rp.prototype.focusLast=function(e){var t=[];f(this._fragmentFiber.child,!0,Gp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Wp(t[n],e);n--);};function Gp(e,t){return t.push(e),!1}Rp.prototype.blur=function(){var e=p(this._fragmentFiber);e!==null&&(e=_(e),e=fp(e).activeElement,e!==null&&f(this._fragmentFiber.child,!1,Kp,e,void 0,void 0))};function Kp(e,t){return e.tag!==6&&(e=_(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Rp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),f(this._fragmentFiber.child,!1,qp,e,void 0,void 0)};function qp(e,t){return e.tag===6||(e=_(e),t.observe(e)),!1}Rp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),f(this._fragmentFiber.child,!1,Jp,e,void 0,void 0);for(var n=t=0;n<Yp.length;n++){var r=Yp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Yp[t++]=r}Yp.length=t}};function Jp(e,t){return e.tag===6||(e=_(e),t.unobserve(e)),!1}var Yp=[],Xp=!1;function Zp(e,t,n){Yp.push({fragmentInstance:e,observer:t,instance:n}),Xp||(Xp=!0,_m(function(){Xp=!1;var e=Yp;Yp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Rp.prototype.getClientRects=function(){var e=[];return f(this._fragmentFiber.child,!1,Qp,e,void 0,void 0),e};function Qp(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=_(e),t.push.apply(t,e.getClientRects());return!1}Rp.prototype.getRootNode=function(e){var t=p(this._fragmentFiber);return t===null?this:_(t).getRootNode(e)},Rp.prototype.compareDocumentPosition=function(e){var t=p(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];f(this._fragmentFiber.child,!1,Gp,n,void 0,void 0);var r=_(t);if(n.length===0){if(n=r,m(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=h(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=_(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=_(n[0]),i=_(n[n.length-1]);var a=m(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||$p(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function $p(e,t,n,r,i){var a=Tt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=p(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=w(n,a,S),t===null?t=!1:(f(t,!0,b,a,n),a=v,v=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=w(r,a,S),t===null?t=!1:(f(t,!0,x,a,r),a=v,y=v=null,t=a!==null)),t):!1}function em(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Rp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];f(this._fragmentFiber.child,!1,Gp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=h(this._fragmentFiber);if(r=n?r[1]||r[0]||p(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=_(r),em(e,n);return}if(r=_(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=_(a),em(a,n)):_(a).scrollIntoView(e),r+=n?-1:1}};function tm(e,t){return e=_(e),nm(e,t),!1}function nm(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function rm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Vp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Yp.length;i++){var a=Yp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Yp[r++]=a)}Yp.length=r,n.observe(e)}),nm(e,t))}function im(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Vp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Zp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function am(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:am(n),wt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function om(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[St])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=fm(e.nextSibling),e===null)break}return null}function sm(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=fm(e.nextSibling),e===null))return null;return e}function cm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=fm(e.nextSibling),e===null))return null;return e}function lm(e){return e.data===`$?`||e.data===`$~`}function um(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function dm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function fm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var pm=null;function mm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return fm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function hm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function gm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function _m(e){Sp(function(){Sp(function(t){return e(t)})})}function vm(e,t,n){switch(t=fp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function ym(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&rp(e,t,r,null,op,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===fn&&(e.onclick=null),wt(e)}function bm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);wt(e)}var xm=new Map,Sm=new Set;function Cm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var wm=W.d;W.d={f:Tm,r:Em,D:km,C:Am,L:jm,m:Mm,X:Pm,S:Nm,M:Fm};function Tm(){var e=wm.f(),t=Bd();return e||t}function Em(e){var t=Et(e);t!==null&&t.tag===5&&t.type===`form`?Xs(t):wm.r(e)}var Dm=typeof document>`u`?null:document;function Om(e,t,n){var r=Dm;if(r&&typeof t==`string`&&t){var i=Xt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Sm.has(i)||(Sm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),ap(t,`link`,e),kt(t),r.head.appendChild(t)))}}function km(e){wm.D(e),Om(`dns-prefetch`,e,null)}function Am(e,t){wm.C(e,t),Om(`preconnect`,e,t)}function jm(e,t,n){wm.L(e,t,n);var r=Dm;if(r&&e&&t){var i=`link[rel="preload"][as="`+Xt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Xt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Xt(n.imageSizes)+`"]`)):i+=`[href="`+Xt(e)+`"]`;var a=i;switch(t){case`style`:a=Lm(e);break;case`script`:a=Vm(e)}if(!(xm.has(a)||(e=T({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),xm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Rm(a))||t===`script`&&r.querySelector(Hm(a))))){var o=r.createElement(`link`);ap(o,`link`,e),t===`style`&&(o[Ct]=!0,o.onload=o.onerror=function(){At(o)}),kt(o),r.head.appendChild(o)}}}function Mm(e,t){wm.m(e,t);var n=Dm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Xt(r)+`"][href="`+Xt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Vm(e)}if(!xm.has(a)&&(e=T({rel:`modulepreload`,href:e},t),xm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Hm(a)))return}r=n.createElement(`link`),ap(r,`link`,e),kt(r),n.head.appendChild(r)}}}function Nm(e,t,n){wm.S(e,t,n);var r=Dm;if(r&&e){var i=Ot(r).hoistableStyles,a=Lm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Rm(a)))s.loading=5;else{e=T({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=xm.get(a))&&Gm(e,n);var c=o=r.createElement(`link`);kt(c),ap(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Wm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Pm(e,t){wm.X(e,t);var n=Dm;if(n&&e){var r=Ot(n).hoistableScripts,i=Vm(e),a=r.get(i);a||(a=n.querySelector(Hm(i)),a||(e=T({src:e,async:!0},t),(t=xm.get(i))&&Km(e,t),a=n.createElement(`script`),kt(a),ap(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Fm(e,t){wm.M(e,t);var n=Dm;if(n&&e){var r=Ot(n).hoistableScripts,i=Vm(e),a=r.get(i);a||(a=n.querySelector(Hm(i)),a||(e=T({src:e,async:!0,type:`module`},t),(t=xm.get(i))&&Km(e,t),a=n.createElement(`script`),kt(a),ap(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Im(e,t,n,r){var a=(a=me.current)?Cm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Lm(n.href),t=Ot(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Lm(n.href);var o=Ot(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Rm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=xm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},xm.set(e,o)),Bm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Vm(n),t=Ot(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Lm(e){return`href="`+Xt(e)+`"`}function Rm(e){return`link[rel="stylesheet"][`+e+`]`}function zm(e){return T({},e,{"data-precedence":e.precedence,precedence:null})}function Bm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Ct]){r.loading=1;return}}else t=e.createElement(`link`),t[Ct]=!0,t.onload=t.onerror=At.bind(null,t),ap(t,`link`,n),kt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Vm(e){return`[src="`+Xt(e)+`"]`}function Hm(e){return`script[async]`+e}function Um(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Xt(n.href)+`"]`);if(r)return t.instance=r,kt(r),r;var a=T({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),kt(r),ap(r,`style`,a),Wm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Lm(n.href);var o=e.querySelector(Rm(a));if(o)return t.state.loading|=4,t.instance=o,kt(o),o;r=zm(n),(a=xm.get(a))&&Gm(r,a),o=(e.ownerDocument||e).createElement(`link`),kt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),ap(o,`link`,r),t.state.loading|=4,Wm(o,n.precedence,e),t.instance=o;case`script`:return o=Vm(n.src),(a=e.querySelector(Hm(o)))?(t.instance=a,kt(a),a):(r=n,(a=xm.get(o))&&(r=T({},n),Km(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),kt(a),ap(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Wm(r,n.precedence,e));return t.instance}function Wm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Gm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Km(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var qm=null;function Jm(e,t,n){if(qm===null){var r=new Map,i=qm=new Map;i.set(n,r)}else i=qm,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[St]||a[ht]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Ym(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Xm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Zm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Qm(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function $m(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function eh(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=$m(t),e.suspenseyImages.push(t)),e=oh.bind(e),t.decode().then(e,e))}function th(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Lm(r.href),a=t.querySelector(Rm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=ah.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,kt(a);return}a=t.ownerDocument||t,r=zm(r),(i=xm.get(i))&&Gm(r,i),a=a.createElement(`link`),kt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),ap(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=ah.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var nh=0;function rh(e,t){return e.stylesheets&&e.count===0&&ch(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ch(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&nh===0&&(nh=62500*lp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ch(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>nh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function ih(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ch(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function ah(){this.count--,ih(this)}function oh(){this.imgCount--,ih(this)}var sh=null;function ch(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,sh=new Map,t.forEach(lh,e),sh=null,ah.call(e))}function lh(e,t){if(!(t.state.loading&4)){var n=sh.get(e);if(n)var r=n.get(null);else{n=new Map,sh.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=ah.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var uh={$$typeof:N,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function dh(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=it(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=it(0),this.hiddenUpdates=it(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function fh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new dh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Si(3,null,null,t),e.current=a,a.stateNode=e,t=Ca(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},ao(a),e}function ph(e){return e?(e=bi,e):bi}function mh(e,t,n,r,i,a){i=ph(i),r.context===null?r.context=i:r.pendingContext=i,r=so(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=co(e,r,t),n!==null&&(Fd(n,e,t),lo(n,e,t))}function hh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function gh(e,t){hh(e,t),(e=e.alternate)&&hh(e,t)}function _h(e){if(e.tag===13||e.tag===31){var t=_i(e,67108864);t!==null&&Fd(t,e,67108864),gh(e,67108864)}}function vh(e){if(e.tag===13||e.tag===31){var t=Md();t=ut(t);var n=_i(e,t);n!==null&&Fd(n,e,t),gh(e,t)}}var yh=!0;function bh(e,t,n,r){var i=U.T;U.T=null;var a=W.p;try{W.p=2,Sh(e,t,n,r)}finally{W.p=a,U.T=i}}function xh(e,t,n,r){var i=U.T;U.T=null;var a=W.p;try{W.p=8,Sh(e,t,n,r)}finally{W.p=a,U.T=i}}function Sh(e,t,n,r){if(yh){var i=Ch(r);if(i===null)Jf(e,t,r,wh,n),Fh(e,r);else if(Lh(i,e,t,n,r))r.stopPropagation();else if(Fh(e,r),t&4&&-1<Ph.indexOf(e)){for(;i!==null;){var a=Et(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Qe(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-We(o);s.entanglements[1]|=c,o&=~c}Df(a),!(Xu&6)&&(_d=Me()+500,Of(0,!1))}}break;case 31:case 13:s=_i(a,2),s!==null&&Fd(s,a,2),Bd(),gh(a,2)}if(a=Ch(r),a===null&&Jf(e,t,r,wh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Jf(e,t,r,null,n)}}function Ch(e){return e=mn(e),Th(e)}var wh=null;function Th(e){if(wh=null,e=Tt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return wh=e,null}function Eh(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ne()){case Pe:return 2;case Fe:return 8;case Ie:case Le:return 32;case Re:return 268435456;default:return 32}default:return 32}}var Dh=!1,Oh=null,kh=null,Ah=null,jh=new Map,Mh=new Map,Nh=[],Ph=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Fh(e,t){switch(e){case`focusin`:case`focusout`:Oh=null;break;case`dragenter`:case`dragleave`:kh=null;break;case`mouseover`:case`mouseout`:Ah=null;break;case`pointerover`:case`pointerout`:jh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Mh.delete(t.pointerId)}}function Ih(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Et(t),t!==null&&_h(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Lh(e,t,n,r,i){switch(t){case`focusin`:return Oh=Ih(Oh,e,t,n,r,i),!0;case`dragenter`:return kh=Ih(kh,e,t,n,r,i),!0;case`mouseover`:return Ah=Ih(Ah,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return jh.set(a,Ih(jh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Mh.set(a,Ih(Mh.get(a)||null,e,t,n,r,i)),!0}return!1}function Rh(e){var t=Tt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,pt(e.priority,function(){vh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,pt(e.priority,function(){vh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function zh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ch(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);pn=r,n.target.dispatchEvent(r),pn=null}else return t=Et(n),t!==null&&_h(t),e.blockedOn=n,!1;t.shift()}return!0}function Bh(e,t,n){zh(e)&&n.delete(t)}function Vh(){Dh=!1,Oh!==null&&zh(Oh)&&(Oh=null),kh!==null&&zh(kh)&&(kh=null),Ah!==null&&zh(Ah)&&(Ah=null),jh.forEach(Bh),Mh.forEach(Bh)}function Hh(e,n){e.blockedOn===n&&(e.blockedOn=null,Dh||(Dh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Vh)))}var Uh=null;function Wh(e){Uh!==e&&(Uh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Uh===e&&(Uh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Th(r||n)===null)continue;break}var a=Et(n);a!==null&&(e.splice(t,3),t-=3,Js(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Gh(e){function t(t){return Hh(t,e)}Oh!==null&&Hh(Oh,e),kh!==null&&Hh(kh,e),Ah!==null&&Hh(Ah,e),jh.forEach(t),Mh.forEach(t);for(var n=0;n<Nh.length;n++){var r=Nh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Nh.length&&(n=Nh[0],n.blockedOn===null);)Rh(n),n.blockedOn===null&&Nh.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[gt]||null;if(typeof a==`function`)o||Wh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[gt]||null)s=o.formAction;else if(Th(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Wh(n)}}}function Kh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function qh(e){this._internalRoot=e}Jh.prototype.render=qh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;mh(n,Md(),e,t,null,null)},Jh.prototype.unmount=qh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;mh(e.current,2,null,e,null,null),Bd(),t[_t]=null}};function Jh(e){this._internalRoot=e}Jh.prototype.unstable_scheduleHydration=function(e){if(e){var t=ft();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nh.length&&t!==0&&t<Nh[n].priority;n++);Nh.splice(n,0,e),n===0&&Rh(e)}};var Yh=n.version;if(Yh!==`19.3.1`)throw Error(i(527,Yh,`19.3.1`));W.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Xh={bundleType:0,version:`19.3.1`,rendererPackageName:`react-dom`,currentDispatcherRef:U,reconcilerVersion:`19.3.1`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Zh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zh.isDisabled&&Zh.supportsFiber)try{Ve=Zh.inject(Xh),He=Zh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=_c,s=vc,c=yc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=fh(e,1,!1,null,null,n,r,null,o,s,c,Kh),e[_t]=t.current,Kf(e),new qh(t)}})),uee=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=lee()})),dee=`modulepreload`,fee=function(e){return`/app/`+e},pee={},mee=function(e){return e.pathname.endsWith(`.css`)},hee=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},gee=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=fee(t,n);let r=s(t),i=mee(r);return hee(pee,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:dee,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},qb=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Jb=/^[\\/]{2}/;function Yb(e,t){return t+e.replace(/\\/g,`/`)}var Xb=`popstate`;function Zb(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function Qb(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return rx(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:ix(t)}return ox(t,n,null,e)}function $b(e,t){if(e===!1||e==null)throw Error(t)}function ex(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function tx(){return Math.random().toString(36).substring(2,10)}function nx(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function rx(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?ax(t):t,state:n,key:t&&t.key||r||tx(),mask:i}}function ix({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function ax(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function ox(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=Zb(e)?e:rx(h.location,e,t);n&&n(r,e),l=u()+1;let d=nx(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=Zb(e)?e:rx(h.location,e,t);n&&n(r,e),l=u();let i=nx(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return sx(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(Xb,d),c=e,()=>{i.removeEventListener(Xb,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function sx(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),$b(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:ix(t);return i=i.replace(/ $/,`%20`),!n&&Jb.test(i)&&(i=r+i),new URL(i,r)}function cx(e,t,n=`/`){return lx(e,t,n,!1)}function lx(e,t,n,r,i){let a=Ox((typeof t==`string`?ax(t):t).pathname||`/`,n);if(a==null)return null;let o=i??ux(e),s=null,c=Dx(a);for(let e=0;s==null&&e<o.length;++e)s=Cx(o[e],c,r);return s}function ux(e){let t=dx(e);return px(t),t}function dx(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;$b(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Ix([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&($b(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),dx(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:xx(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=Ex(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of fx(e.path))a(e,t,!0,n)}),t}function fx(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=fx(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function px(e){e.sort((e,t)=>e.score===t.score?Sx(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var mx=/^:[\w-]+$/,hx=3,gx=2,_x=1,vx=10,yx=-2,bx=e=>e===`*`;function xx(e,t){let n=e.split(`/`),r=n.length;return n.some(bx)&&(r+=yx),t&&(r+=gx),n.filter(e=>!bx(e)).reduce((e,t)=>e+(mx.test(t)?hx:t===``?_x:vx),r)}function Sx(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function Cx(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?Tx(u,l,s.matcher,s.compiledParams):wx(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=wx({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Ix([a,d.pathname]),pathnameBase:Rx(Ix([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=Ix([a,d.pathnameBase]))}return o}function wx(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Ex(e.path,e.caseSensitive,e.end);return Tx(e,t,n,r)}function Tx(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=Lx(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=Lx(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Ex(e,t=!1,n=!0){ex(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function Dx(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return ex(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Ox(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function kx(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?ax(e):e,a;return n?(n=Fx(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?Ax(n.substring(1),`/`):Ax(n,t)):a=t,{pathname:a,search:zx(r),hash:Bx(i)}}function Ax(e,t){let n=Lx(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function jx(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Mx(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Nx(e){let t=Mx(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Px(e,t,n,r=!1){let i;typeof e==`string`?i=ax(e):(i={...e},$b(!i.pathname||!i.pathname.includes(`?`),jx(`?`,`pathname`,`search`,i)),$b(!i.pathname||!i.pathname.includes(`#`),jx(`#`,`pathname`,`hash`,i)),$b(!i.search||!i.search.includes(`#`),jx(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=kx(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Fx=e=>e.replace(/[\\/]{2,}/g,`/`),Ix=e=>Fx(e.join(`/`));function Lx(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var Rx=e=>Lx(e).replace(/^\/*/,`/`),zx=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Bx=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Vx=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Hx(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Ux(e){return Ix(e.map(e=>e.route.path).filter(Boolean))||`/`}var Wx=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Gx(e,t){let n=e;if(typeof n!=`string`||!qb.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Wx)try{let e=new URL(window.location.href),r=Jb.test(n)?new URL(Yb(n,e.protocol)):new URL(n),a=Ox(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{ex(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Kx=new URL(`http://localhost`);function qx(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),Kx)}catch{return Kx}}function Jx(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function Yx(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function Xx(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!Jx(i,n),s=!Jx(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!Yx(e,i)||!Jx(i,a)))throw Error(`External navigation is not allowed`)}var Zx=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(Zx);var Qx=[`GET`,...Zx];new Set(Qx);var $x=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function eS(e){try{return $x.includes(new URL(e).protocol)}catch{return!1}}var tS=w.createContext(null);tS.displayName=`DataRouter`;var nS=w.createContext(null);nS.displayName=`DataRouterState`;var rS=w.createContext(!1);function iS(){return w.useContext(rS)}var aS=w.createContext({isTransitioning:!1});aS.displayName=`ViewTransition`;var oS=w.createContext(new Map);oS.displayName=`Fetchers`;var sS=w.createContext(null);sS.displayName=`Await`;var cS=w.createContext(null);cS.displayName=`Navigation`;var lS=w.createContext(null);lS.displayName=`Location`;var uS=w.createContext({outlet:null,matches:[],isDataRoute:!1});uS.displayName=`Route`;var dS=w.createContext(null);dS.displayName=`RouteError`;var fS=`REACT_ROUTER_ERROR`,pS=`REDIRECT`,mS=`ROUTE_ERROR_RESPONSE`;function hS(e){if(e.startsWith(`${fS}:${pS}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function gS(e){if(e.startsWith(`${fS}:${mS}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Vx(t.status,t.statusText,t.data)}catch{}}function _S(e,{relative:t}={}){$b(vS(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=w.useContext(cS),{hash:i,pathname:a,search:o}=DS(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Ix([n,a])),r.createHref({pathname:s,search:o,hash:i})}function vS(){return w.useContext(lS)!=null}function yS(){return $b(vS(),`useLocation() may be used only in the context of a <Router> component.`),w.useContext(lS).location}var bS=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function xS(e){w.useContext(cS).static||w.useLayoutEffect(e)}function SS(){let{isDataRoute:e}=w.useContext(uS);return e?WS():CS()}function CS(){$b(vS(),`useNavigate() may be used only in the context of a <Router> component.`);let e=w.useContext(tS),{basename:t,navigator:n}=w.useContext(cS),{matches:r}=w.useContext(uS),{pathname:i}=yS(),a=JSON.stringify(Nx(r)),o=w.useRef(!1);return xS(()=>{o.current=!0}),w.useCallback((r,s={})=>{if(ex(o.current,bS),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Px(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Ix([t,c.pathname])),Xx(typeof r==`string`?r:ix(r),n.createHref(c),qx(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var wS=w.createContext(null);function TS(e){let t=w.useContext(uS).outlet;return w.useMemo(()=>t&&w.createElement(wS.Provider,{value:e},t),[t,e])}function ES(){let{matches:e}=w.useContext(uS);return e[e.length-1]?.params??{}}function DS(e,{relative:t}={}){let{matches:n}=w.useContext(uS),{pathname:r}=yS(),i=JSON.stringify(Nx(n));return w.useMemo(()=>Px(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function OS(e,t){return kS(e,t)}function kS(e,t,n){$b(vS(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=w.useContext(cS),{matches:i}=w.useContext(uS),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;KS(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
58
58
 
59
59
  Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=yS(),d;if(t){let e=typeof t==`string`?ax(t):t;$b(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):cx(e,{pathname:p});ex(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),ex(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=IS(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Ix([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Ix([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?w.createElement(lS.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function AS(){let e=US(),t=Hx(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=w.createElement(w.Fragment,null,w.createElement(`p`,null,`💿 Hey developer 👋`),w.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,w.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,w.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),w.createElement(w.Fragment,null,w.createElement(`h2`,null,`Unexpected Application Error!`),w.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?w.createElement(`pre`,{style:i},n):null,o)}var jS=w.createElement(AS,null),MS=class extends w.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=gS(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:w.createElement(uS.Provider,{value:this.props.routeContext},w.createElement(dS.Provider,{value:e,children:this.props.component}));return this.context?w.createElement(PS,{error:e},t):t}};MS.contextType=rS;var NS=new WeakMap;function PS({children:e,error:t}){let{basename:n,navigator:r}=w.useContext(cS);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=hS(t.digest);if(e){let i=NS.get(t);if(i)throw i;let a=Gx(e.location,n),o=a.absoluteURL||a.to;if(Xx(e.location,o,qx(r),`allow-explicit`),eS(o))throw Error(`Invalid redirect location`);if(Wx&&!NS.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw NS.set(t,n),n}}return w.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function FS({routeContext:e,match:t,children:n}){let r=w.useContext(tS);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement(uS.Provider,{value:e},n)}function IS(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);$b(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Ux(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||jS,o&&(s<0&&c===0?(KS(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?w.createElement(n.route.Component,null):n.route.element?n.route.element:e,w.createElement(FS,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?w.createElement(MS,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function LS(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function RS(e){let t=w.useContext(tS);return $b(t,LS(e)),t}function zS(e){let t=w.useContext(nS);return $b(t,LS(e)),t}function BS(e){let t=w.useContext(uS);return $b(t,LS(e)),t}function VS(e){let t=BS(e),n=t.matches[t.matches.length-1];return $b(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function HS(){return VS(`useRouteId`)}function US(){let e=w.useContext(dS),t=zS(`useRouteError`),n=VS(`useRouteError`);return e===void 0?t.errors?.[n]:e}function WS(){let{router:e}=RS(`useNavigate`),t=VS(`useNavigate`),n=w.useRef(!1);return xS(()=>{n.current=!0}),w.useCallback(async(r,i={})=>{ex(n.current,bS),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var GS={};function KS(e,t,n){!t&&!GS[e]&&(GS[e]=!0,ex(!1,n))}w.memo(qS);function qS({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return kS(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function JS(e){return TS(e.context)}function YS(e){$b(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function XS({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){$b(!vS(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=w.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=ax(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=w.useMemo(()=>{let e=Ox(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return ex(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:w.createElement(cS.Provider,{value:c},w.createElement(lS.Provider,{children:t,value:h}))}function ZS({children:e,location:t}){return OS(QS(e),t)}w.Component;function QS(e,t=[]){let n=[];return w.Children.forEach(e,(e,r)=>{if(!w.isValidElement(e))return;let i=[...t,r];if(e.type===w.Fragment){n.push.apply(n,QS(e.props.children,i));return}$b(e.type===YS,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),$b(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=QS(e.props.children,i)),n.push(a)}),n}var $S=`get`,eC=`application/x-www-form-urlencoded`;function tC(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function nC(e){return tC(e)&&e.tagName.toLowerCase()===`button`}function rC(e){return tC(e)&&e.tagName.toLowerCase()===`form`}function iC(e){return tC(e)&&e.tagName.toLowerCase()===`input`}function aC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function oC(e,t){return e.button===0&&(!t||t===`_self`)&&!aC(e)}function sC(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function cC(e,t){let n=sC(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var lC=null;function uC(){if(lC===null)try{new FormData(document.createElement(`form`),0),lC=!1}catch{lC=!0}return lC}var dC=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function fC(e){return e!=null&&!dC.has(e)?(ex(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${eC}"`),null):e}function pC(e,t){let n,r,i,a,o;if(rC(e)){let o=e.getAttribute(`action`);r=o?Ox(o,t):null,n=e.getAttribute(`method`)||$S,i=fC(e.getAttribute(`enctype`))||eC,a=new FormData(e)}else if(nC(e)||iC(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Ox(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||$S,i=fC(e.getAttribute(`formenctype`))||fC(o.getAttribute(`enctype`))||eC,a=new FormData(o,e),!uC()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(tC(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=$S,r=null,i=eC,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function mC(e,t){if(e===!1||e==null)throw Error(t)}function hC(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&Ox(i.pathname,t)===`/`?`${Lx(t)}/_root.${r}`:`${Lx(i.pathname)}.${r}`,i}async function gC(e,t){if(e.id in t)return t[e.id];try{let n=await gee(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function _C(e){return e!=null&&typeof e.page==`string`}function vC(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function yC(e,t,n){return wC((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await gC(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(vC).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function bC(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function xC(e,t,{includeHydrateFallback:n}={}){return SC(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function SC(e){return[...new Set(e)]}function CC(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function wC(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!_C(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(CC(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function TC(){let e=w.useContext(tS);return mC(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function EC(){let e=w.useContext(nS);return mC(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var DC=w.createContext(void 0);DC.displayName=`FrameworkContext`;function OC(){let e=w.useContext(DC);return mC(e,`You must render this element inside a <HydratedRouter> element`),e}function kC(e,t){let n=w.useContext(DC),[r,i]=w.useState(!1),[a,o]=w.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=w.useRef(null);w.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),w.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:AC(s,p),onBlur:AC(c,m),onMouseEnter:AC(l,p),onMouseLeave:AC(u,m),onTouchStart:AC(d,p)}]:[a,f,{}]:[!1,f,{}]}function AC(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function jC({page:e,...t}){let n=iS(),{nonce:r}=OC(),{router:i}=TC(),a=w.useMemo(()=>cx(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?w.createElement(NC,{page:e,matches:a,...t}):w.createElement(PC,{page:e,matches:a,...t})):null}function MC(e){let{manifest:t,routeModules:n}=OC(),[r,i]=w.useState([]);return w.useEffect(()=>{let r=!1;return yC(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function NC({page:e,matches:t,...n}){let r=yS(),{future:i}=OC(),{basename:a}=TC(),o=w.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=hC(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return w.createElement(w.Fragment,null,o.map(e=>w.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function PC({page:e,matches:t,...n}){let r=yS(),{future:i,manifest:a,routeModules:o}=OC(),{basename:s}=TC(),{loaderData:c,matches:l}=EC(),u=w.useMemo(()=>bC(e,t,l,a,r,`data`),[e,t,l,a,r]),d=w.useMemo(()=>bC(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=w.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=hC(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=w.useMemo(()=>xC(d,a),[d,a]),m=MC(d);return w.createElement(w.Fragment,null,f.map(e=>w.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>w.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>w.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function FC(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}w.Component;var IC=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{IC&&(window.__reactRouterVersion=`7.18.4`)}catch{}function LC({basename:e,children:t,useTransitions:n,window:r}){let i=w.useRef();i.current??=Qb({window:r,v5Compat:!0});let a=i.current,[o,s]=w.useState({action:a.action,location:a.location}),c=w.useCallback(e=>{n===!1?s(e):w.startTransition(()=>s(e))},[n]);return w.useLayoutEffect(()=>a.listen(c),[a,c]),w.createElement(XS,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}var RC=w.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=w.useContext(cS),v=typeof l==`string`&&qb.test(l),y=Gx(l,h);l=y.to;let b=_S(l,{relative:r}),x=yS(),S=null;if(o){let e=Px(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:Ix([h,e.pathname])),S=g.createHref(e)}let[C,T,E]=kC(n,p),D=UC(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function O(t){e&&e(t),t.defaultPrevented||D(t)}let k=!(y.isExternal||i),A=w.createElement(`a`,{...p,...E,href:(k?S:void 0)||y.absoluteURL||b,onClick:k?O:e,ref:FC(m,T),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return C&&!v?w.createElement(w.Fragment,null,A,w.createElement(jC,{page:b})):A});RC.displayName=`Link`;var zC=w.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=DS(a,{relative:c.relative}),d=yS(),f=w.useContext(nS),{navigator:p,basename:m}=w.useContext(cS),h=f!=null&&YC(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=Ox(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),S={isActive:b,isPending:x,isTransitioning:h},C=b?e:void 0,T;T=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(S):i;return w.createElement(RC,{...c,"aria-current":C,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(S):s)});zC.displayName=`NavLink`;var BC=w.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=$S,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=w.useContext(cS),g=qC(),_=JC(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&qb.test(s);return w.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?w.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});BC.displayName=`Form`;function VC(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function HC(e){let t=w.useContext(tS);return $b(t,VC(e)),t}function UC(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=SS(),d=yS(),f=DS(e,{relative:o});return w.useCallback(p=>{if(oC(p,t)){p.preventDefault();let t=n===void 0?ix(d)===ix(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?w.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function WC(e){ex(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=w.useRef(sC(e)),n=w.useRef(!1),r=yS(),i=w.useMemo(()=>cC(r.search,n.current?null:t.current),[r.search]),a=SS();return[i,w.useCallback((e,t)=>{let r=sC(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var GC=0,KC=()=>`__${String(++GC)}__`;function qC(){let{router:e}=HC(`useSubmit`),{basename:t}=w.useContext(cS),n=HS(),r=e.fetch,i=e.navigate;return w.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=pC(e,t);if(a.navigate===!1){let e=a.fetcherKey||KC();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function JC(e,{relative:t}={}){let{basename:n}=w.useContext(cS),r=w.useContext(uS);$b(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...DS(e||`.`,{relative:t})},o=yS();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Ix([n,a.pathname])),ix(a)}function YC(e,{relative:t}={}){let n=w.useContext(aS);$b(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=HC(`useViewTransitionState`),i=DS(e,{relative:t});if(!n.isTransitioning)return!1;let a=Ox(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Ox(n.nextLocation.pathname,r)||n.nextLocation.pathname;return wx(i.pathname,o)!=null||wx(i.pathname,a)!=null}var XC={outline:{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},filled:{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`currentColor`,stroke:`none`}},ZC=(e,t,n,r)=>{let i=(0,w.forwardRef)(({color:n=`currentColor`,size:i=24,stroke:a=2,title:o,className:s,children:c,...l},u)=>(0,w.createElement)(`svg`,{ref:u,...XC[e],width:i,height:i,className:[`tabler-icon`,`tabler-icon-${t}`,s].filter(Boolean).join(` `),...e===`filled`?{fill:n}:{strokeWidth:a,stroke:n},...l},[o&&(0,w.createElement)(`title`,{key:`svg-title`},o),...r.map(([e,t])=>(0,w.createElement)(e,t)),...Array.isArray(c)?c:[c]]));return i.displayName=`${n}`,i},QC=ZC(`outline`,`adjustments-horizontal`,`AdjustmentsHorizontal`,[[`path`,{d:`M12 6a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-0`}],[`path`,{d:`M4 6l8 0`,key:`svg-1`}],[`path`,{d:`M16 6l4 0`,key:`svg-2`}],[`path`,{d:`M6 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-3`}],[`path`,{d:`M4 12l2 0`,key:`svg-4`}],[`path`,{d:`M10 12l10 0`,key:`svg-5`}],[`path`,{d:`M15 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-6`}],[`path`,{d:`M4 18l11 0`,key:`svg-7`}],[`path`,{d:`M19 18l1 0`,key:`svg-8`}]]),$C=ZC(`outline`,`alert-circle`,`AlertCircle`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,key:`svg-0`}],[`path`,{d:`M12 8v4`,key:`svg-1`}],[`path`,{d:`M12 16h.01`,key:`svg-2`}]]),ew=ZC(`outline`,`alert-triangle`,`AlertTriangle`,[[`path`,{d:`M12 9v4`,key:`svg-0`}],[`path`,{d:`M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0`,key:`svg-1`}],[`path`,{d:`M12 16h.01`,key:`svg-2`}]]),tw=ZC(`outline`,`arrow-back-up`,`ArrowBackUp`,[[`path`,{d:`M9 14l-4 -4l4 -4`,key:`svg-0`}],[`path`,{d:`M5 10h11a4 4 0 1 1 0 8h-1`,key:`svg-1`}]]),nw=ZC(`outline`,`arrow-left`,`ArrowLeft`,[[`path`,{d:`M5 12l14 0`,key:`svg-0`}],[`path`,{d:`M5 12l6 6`,key:`svg-1`}],[`path`,{d:`M5 12l6 -6`,key:`svg-2`}]]),rw=ZC(`outline`,`arrow-right`,`ArrowRight`,[[`path`,{d:`M5 12l14 0`,key:`svg-0`}],[`path`,{d:`M13 18l6 -6`,key:`svg-1`}],[`path`,{d:`M13 6l6 6`,key:`svg-2`}]]),iw=ZC(`outline`,`arrows-diff`,`ArrowsDiff`,[[`path`,{d:`M11 16h10`,key:`svg-0`}],[`path`,{d:`M11 16l4 4`,key:`svg-1`}],[`path`,{d:`M11 16l4 -4`,key:`svg-2`}],[`path`,{d:`M13 8h-10`,key:`svg-3`}],[`path`,{d:`M13 8l-4 4`,key:`svg-4`}],[`path`,{d:`M13 8l-4 -4`,key:`svg-5`}]]),aw=ZC(`outline`,`book`,`Book`,[[`path`,{d:`M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0`,key:`svg-0`}],[`path`,{d:`M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0`,key:`svg-1`}],[`path`,{d:`M3 6l0 13`,key:`svg-2`}],[`path`,{d:`M12 6l0 13`,key:`svg-3`}],[`path`,{d:`M21 6l0 13`,key:`svg-4`}]]),ow=ZC(`outline`,`check`,`Check`,[[`path`,{d:`M5 12l5 5l10 -10`,key:`svg-0`}]]),sw=ZC(`outline`,`chevron-down`,`ChevronDown`,[[`path`,{d:`M6 9l6 6l6 -6`,key:`svg-0`}]]),cw=ZC(`outline`,`chevron-left`,`ChevronLeft`,[[`path`,{d:`M15 6l-6 6l6 6`,key:`svg-0`}]]),lw=ZC(`outline`,`chevron-right`,`ChevronRight`,[[`path`,{d:`M9 6l6 6l-6 6`,key:`svg-0`}]]),uw=ZC(`outline`,`chevrons-left`,`ChevronsLeft`,[[`path`,{d:`M11 7l-5 5l5 5`,key:`svg-0`}],[`path`,{d:`M17 7l-5 5l5 5`,key:`svg-1`}]]),dw=ZC(`outline`,`chevrons-right`,`ChevronsRight`,[[`path`,{d:`M7 7l5 5l-5 5`,key:`svg-0`}],[`path`,{d:`M13 7l5 5l-5 5`,key:`svg-1`}]]),fw=ZC(`outline`,`clock`,`Clock`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,key:`svg-0`}],[`path`,{d:`M12 7v5l3 3`,key:`svg-1`}]]),pw=ZC(`outline`,`copy`,`Copy`,[[`path`,{d:`M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667l0 -8.666`,key:`svg-0`}],[`path`,{d:`M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1`,key:`svg-1`}]]),mw=ZC(`outline`,`database`,`Database`,[[`path`,{d:`M4 6a8 3 0 1 0 16 0a8 3 0 1 0 -16 0`,key:`svg-0`}],[`path`,{d:`M4 6v6a8 3 0 0 0 16 0v-6`,key:`svg-1`}],[`path`,{d:`M4 12v6a8 3 0 0 0 16 0v-6`,key:`svg-2`}]]),hw=ZC(`outline`,`device-desktop`,`DeviceDesktop`,[[`path`,{d:`M3 5a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-10`,key:`svg-0`}],[`path`,{d:`M7 20h10`,key:`svg-1`}],[`path`,{d:`M9 16v4`,key:`svg-2`}],[`path`,{d:`M15 16v4`,key:`svg-3`}]]),gw=ZC(`outline`,`dots`,`Dots`,[[`path`,{d:`M4 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-0`}],[`path`,{d:`M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-1`}],[`path`,{d:`M18 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-2`}]]),_w=ZC(`outline`,`download`,`Download`,[[`path`,{d:`M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2`,key:`svg-0`}],[`path`,{d:`M7 11l5 5l5 -5`,key:`svg-1`}],[`path`,{d:`M12 4l0 12`,key:`svg-2`}]]),vw=ZC(`outline`,`edit`,`Edit`,[[`path`,{d:`M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1`,key:`svg-0`}],[`path`,{d:`M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415`,key:`svg-1`}],[`path`,{d:`M16 5l3 3`,key:`svg-2`}]]),yw=ZC(`outline`,`file-text`,`FileText`,[[`path`,{d:`M14 3v4a1 1 0 0 0 1 1h4`,key:`svg-0`}],[`path`,{d:`M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2`,key:`svg-1`}],[`path`,{d:`M9 9l1 0`,key:`svg-2`}],[`path`,{d:`M9 13l6 0`,key:`svg-3`}],[`path`,{d:`M9 17l6 0`,key:`svg-4`}]]),bw=ZC(`outline`,`flask`,`Flask`,[[`path`,{d:`M9 3l6 0`,key:`svg-0`}],[`path`,{d:`M10 9l4 0`,key:`svg-1`}],[`path`,{d:`M10 3v6l-4 11a.7 .7 0 0 0 .5 1h11a.7 .7 0 0 0 .5 -1l-4 -11v-6`,key:`svg-2`}]]),xw=ZC(`outline`,`folder`,`Folder`,[[`path`,{d:`M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2`,key:`svg-0`}]]),Sw=ZC(`outline`,`history`,`History`,[[`path`,{d:`M12 8l0 4l2 2`,key:`svg-0`}],[`path`,{d:`M3.05 11a9 9 0 1 1 .5 4m-.5 5v-5h5`,key:`svg-1`}]]),Cw=ZC(`outline`,`link`,`Link`,[[`path`,{d:`M9 15l6 -6`,key:`svg-0`}],[`path`,{d:`M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464`,key:`svg-1`}],[`path`,{d:`M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463`,key:`svg-2`}]]),ww=ZC(`outline`,`list`,`List`,[[`path`,{d:`M9 6l11 0`,key:`svg-0`}],[`path`,{d:`M9 12l11 0`,key:`svg-1`}],[`path`,{d:`M9 18l11 0`,key:`svg-2`}],[`path`,{d:`M5 6l0 .01`,key:`svg-3`}],[`path`,{d:`M5 12l0 .01`,key:`svg-4`}],[`path`,{d:`M5 18l0 .01`,key:`svg-5`}]]),Tw=ZC(`outline`,`lock-open`,`LockOpen`,[[`path`,{d:`M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2l0 -6`,key:`svg-0`}],[`path`,{d:`M11 16a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-1`}],[`path`,{d:`M8 11v-5a4 4 0 0 1 8 0`,key:`svg-2`}]]),Ew=ZC(`outline`,`lock`,`Lock`,[[`path`,{d:`M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6`,key:`svg-0`}],[`path`,{d:`M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0`,key:`svg-1`}],[`path`,{d:`M8 11v-4a4 4 0 1 1 8 0v4`,key:`svg-2`}]]),Dw=ZC(`outline`,`map-pin`,`MapPin`,[[`path`,{d:`M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0`,key:`svg-0`}],[`path`,{d:`M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0`,key:`svg-1`}]]),Ow=ZC(`outline`,`moon`,`Moon`,[[`path`,{d:`M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454l0 .008`,key:`svg-0`}]]),kw=ZC(`outline`,`player-play`,`PlayerPlay`,[[`path`,{d:`M7 4v16l13 -8l-13 -8`,key:`svg-0`}]]),Aw=ZC(`outline`,`plus`,`Plus`,[[`path`,{d:`M12 5l0 14`,key:`svg-0`}],[`path`,{d:`M5 12l14 0`,key:`svg-1`}]]),jw=ZC(`outline`,`robot`,`Robot`,[[`path`,{d:`M6 6a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2l0 -4`,key:`svg-0`}],[`path`,{d:`M12 2v2`,key:`svg-1`}],[`path`,{d:`M9 12v9`,key:`svg-2`}],[`path`,{d:`M15 12v9`,key:`svg-3`}],[`path`,{d:`M5 16l4 -2`,key:`svg-4`}],[`path`,{d:`M15 14l4 2`,key:`svg-5`}],[`path`,{d:`M9 18h6`,key:`svg-6`}],[`path`,{d:`M10 8v.01`,key:`svg-7`}],[`path`,{d:`M14 8v.01`,key:`svg-8`}]]),Mw=ZC(`outline`,`search`,`Search`,[[`path`,{d:`M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0`,key:`svg-0`}],[`path`,{d:`M21 21l-6 -6`,key:`svg-1`}]]),Nw=ZC(`outline`,`sparkles`,`Sparkles`,[[`path`,{d:`M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2m0 -12a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2m-7 12a6 6 0 0 1 6 -6a6 6 0 0 1 -6 -6a6 6 0 0 1 -6 6a6 6 0 0 1 6 6`,key:`svg-0`}]]),Pw=ZC(`outline`,`stack-2`,`Stack2`,[[`path`,{d:`M12 4l-8 4l8 4l8 -4l-8 -4`,key:`svg-0`}],[`path`,{d:`M4 12l8 4l8 -4`,key:`svg-1`}],[`path`,{d:`M4 16l8 4l8 -4`,key:`svg-2`}]]),Fw=ZC(`outline`,`sun`,`Sun`,[[`path`,{d:`M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0`,key:`svg-0`}],[`path`,{d:`M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7`,key:`svg-1`}]]),Iw=ZC(`outline`,`terminal-2`,`Terminal2`,[[`path`,{d:`M8 9l3 3l-3 3`,key:`svg-0`}],[`path`,{d:`M13 15l3 0`,key:`svg-1`}],[`path`,{d:`M3 6a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2l0 -12`,key:`svg-2`}]]),Lw=ZC(`outline`,`trash-x`,`TrashX`,[[`path`,{d:`M4 7h16`,key:`svg-0`}],[`path`,{d:`M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12`,key:`svg-1`}],[`path`,{d:`M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3`,key:`svg-2`}],[`path`,{d:`M10 12l4 4m0 -4l-4 4`,key:`svg-3`}]]),Rw=ZC(`outline`,`trash`,`Trash`,[[`path`,{d:`M4 7l16 0`,key:`svg-0`}],[`path`,{d:`M10 11l0 6`,key:`svg-1`}],[`path`,{d:`M14 11l0 6`,key:`svg-2`}],[`path`,{d:`M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12`,key:`svg-3`}],[`path`,{d:`M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3`,key:`svg-4`}]]),zw=ZC(`outline`,`upload`,`Upload`,[[`path`,{d:`M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2`,key:`svg-0`}],[`path`,{d:`M7 9l5 -5l5 5`,key:`svg-1`}],[`path`,{d:`M12 4l0 12`,key:`svg-2`}]]),Bw=ZC(`outline`,`x`,`X`,[[`path`,{d:`M18 6l-12 12`,key:`svg-0`}],[`path`,{d:`M6 6l12 12`,key:`svg-1`}]]),Vw=uee(),Hw=`/api/v1`,Uw=class extends Error{status;statusText;body;constructor(e,t,n){let r=``;try{let e=JSON.parse(n);typeof e.detail==`string`&&e.detail&&(r=e.detail)}catch{}super(r?`${r} (HTTP ${e})`:`API error ${e}: ${t}`),this.name=`ApiError`,this.status=e,this.statusText=t,this.body=n}},Ww=class extends Uw{errorMessage;see;note;constructor(e,t){super(503,`Service Unavailable`,e),this.name=`V07IngestionDeferredError`,this.errorMessage=t.error,this.see=t.see??null,this.note=t.note??null}};function Gw(e){try{let t=JSON.parse(e),n=t.error;return typeof n!=`string`||!n.toLowerCase().includes(`v0.7`)?null:{error:n,see:typeof t.see==`string`?t.see:void 0,note:typeof t.note==`string`?t.note:void 0}}catch{}return null}async function Kw(e,t){return(await qw(e,t)).json()}async function qw(e,t){let n=`${Hw}${e}`,r=await fetch(n,{...t,headers:{"Content-Type":`application/json`,...t?.headers}});if(!r.ok){let e=await r.text();if(r.status===503){let t=Gw(e);if(t)throw new Ww(e,t)}throw new Uw(r.status,r.statusText,e)}return r}async function Jw(e){if(e.status!==503)return null;let t=await e.text(),n=Gw(t);return n?new Ww(t,n):null}async function Yw(e){let t=``;try{t=await e.text()}catch{}try{let e=JSON.parse(t);for(let t of[e.detail,e.error])if(typeof t==`string`&&t.trim())return t}catch{}return`Upload failed: ${e.status}`}function Xw(e){let t=Object.entries(e).filter(([,e])=>e!==void 0&&e!==``);return t.length===0?``:`?`+new URLSearchParams(t.map(([e,t])=>[e,String(t)])).toString()}async function Zw(){return Kw(`/preferences`)}async function Qw(e){await Kw(`/preferences`,{method:`PUT`,body:JSON.stringify(e)})}function $w(){let{colorScheme:e,setColorScheme:t}=on();return(0,w.useEffect)(()=>{let n=!1;return Zw().then(r=>{!n&&r.theme&&r.theme!==e&&t(r.theme)}).catch(()=>{}),()=>{n=!0}},[]),{theme:e,setTheme:e=>{t(e),Qw({theme:e}).catch(()=>{})}}}async function eT(){return Kw(`/version`)}function tT(){let{data:e}=Gb({queryKey:[`version`],queryFn:eT,staleTime:1/0,retry:!1}),t=e?.env_label?.trim();return t?(0,G.jsxs)(Rd,{icon:(0,G.jsx)(bw,{size:18}),color:`grape`,withCloseButton:!1,mb:`md`,"data-testid":`environment-banner`,children:[(0,G.jsxs)(Y,{size:`sm`,fw:600,children:[t.toUpperCase(),` environment — not production.`]}),(0,G.jsxs)(Y,{size:`xs`,c:`dimmed`,children:[`This server is running against the `,(0,G.jsx)(Y,{span:!0,fw:600,children:t}),` `,`database. Changes made here do not affect production.`]})]}):null}var nT=`/api/v1`;async function rT(){let e=await fetch(`${nT}/docs`);if(!e.ok)throw Error(`Failed to load docs index: ${e.status}`);return e.json()}async function iT(e){let t=await fetch(`${nT}/docs/${e.split(`/`).map(encodeURIComponent).join(`/`)}`);if(!t.ok)throw Error(`Failed to load doc '${e}': ${t.status}`);return t.text()}async function aT(){let e=await fetch(`${nT}/schema-version`);if(!e.ok)throw Error(`Failed to load schema version: ${e.status}`);return e.json()}function oT(){let{data:e}=Gb({queryKey:[`schema-version`],queryFn:aT,refetchInterval:6e4,staleTime:3e4,retry:!1}),t=e?.level===`below-min`;return!e||!t&&!e.mismatch?null:(0,G.jsxs)(Rd,{icon:(0,G.jsx)(ew,{size:18}),color:t?`red`:`yellow`,title:t?`Database schema is incompatible`:`Database schema out of date`,withCloseButton:!1,mb:`md`,children:[(0,G.jsx)(Y,{size:`sm`,children:t?(0,G.jsxs)(G.Fragment,{children:[`This Cerefox client (v`,e.bundled,`) requires schema v`,e.min,` or newer, but your Supabase has v`,e.deployed??`unknown`,`. Features will not work correctly until you redeploy.`]}):(0,G.jsxs)(G.Fragment,{children:[`Cerefox v`,e.bundled,` ships a newer schema than what is currently deployed to your Supabase (v`,e.deployed??`unknown`,`). Some features may behave incorrectly until you redeploy.`]})}),(0,G.jsx)(Y,{size:`sm`,mt:`xs`,children:`Redeploy with the Cerefox CLI:`}),(0,G.jsx)($p,{block:!0,mt:`xs`,children:`cerefox server deploy --schema-only`})]})}var sT=`https://github.com/fstamatelopoulos/cerefox/releases`;function cT(){let{data:e}=Gb({queryKey:[`version`],queryFn:eT,staleTime:1/0,refetchInterval:216e5,retry:!1});return!e?.latest||!e.update_command?null:(0,G.jsx)(U_,{label:(0,G.jsxs)(G.Fragment,{children:[`Run`,` `,(0,G.jsx)($p,{bg:`color-mix(in srgb, currentColor 18%, transparent)`,children:e.update_command}),` `,`to upgrade`]}),withArrow:!0,children:(0,G.jsxs)(Np,{component:`a`,href:`${sT}/tag/v${e.latest}`,target:`_blank`,rel:`noopener noreferrer`,color:`orange`,variant:`light`,size:`sm`,style:{cursor:`pointer`,textTransform:`none`},"data-testid":`update-badge`,children:[`v`,e.latest,` available`]})})}var lT=`https://github.com/fstamatelopoulos/cerefox/releases`;function uT(){let{data:e}=Gb({queryKey:[`version`],queryFn:eT,staleTime:1/0,retry:!1});if(!e)return null;let t=`${lT}/tag/v${e.version}`,n=e.git_commit_short?` (${e.git_commit_short})`:``;return(0,G.jsx)(Ml,{justify:`center`,py:`sm`,gap:`xs`,children:(0,G.jsxs)(Y,{size:`xs`,c:`dimmed`,children:[`Cerefox`,` `,(0,G.jsxs)(Gd,{href:t,target:`_blank`,rel:`noopener noreferrer`,size:`xs`,c:`dimmed`,underline:`hover`,children:[`v`,e.version]}),n]})})}var dT=[{label:`Dashboard`,path:`/`},{label:`Search`,path:`/search`},{label:`Metadata Search`,path:`/metadata-search`},{label:`Ingest`,path:`/ingest`},{label:`Projects`,path:`/projects`},{label:`Audit Log`,path:`/audit-log`},{label:`Trash`,path:`/trash`},{label:`Analytics`,path:`/analytics`},{label:`Settings`,path:`/settings`},{label:`Help`,path:`/help`}],fT=[{value:`light`,label:`Light`,icon:Fw},{value:`dark`,label:`Dark`,icon:Ow},{value:`auto`,label:`System`,icon:hw}];function pT(){let e=SS(),t=yS(),{theme:n,setTheme:r}=$w(),i=n===`light`?Fw:n===`dark`?Ow:hw;return(0,G.jsxs)(Mf,{header:{height:56},padding:`xs`,children:[(0,G.jsxs)(Mf.Header,{style:{position:`relative`},children:[(0,G.jsxs)(Ml,{h:`100%`,px:`md`,justify:`space-between`,children:[(0,G.jsxs)(Ml,{gap:`sm`,children:[(0,G.jsx)(`img`,{src:`/app/cerefox_icon.png`,alt:`Cerefox`,height:32,width:32,style:{borderRadius:4}}),(0,G.jsxs)(Y,{component:`span`,onClick:()=>e(`/`),style:{fontFamily:`var(--font-display)`,fontSize:18,fontWeight:600,letterSpacing:`-0.01em`,cursor:`pointer`},children:[`Cere`,(0,G.jsx)(`span`,{style:{color:`var(--primary)`},children:`fox`})]}),(0,G.jsx)(cT,{})]}),(0,G.jsxs)(Ml,{gap:`lg`,children:[dT.map(n=>(0,G.jsx)(fc,{onClick:()=>e(n.path),children:(0,G.jsx)(Y,{size:`sm`,fw:t.pathname===n.path?700:400,c:t.pathname===n.path?void 0:`dimmed`,children:n.label})},n.label)),(0,G.jsxs)(_h,{position:`bottom-end`,withArrow:!0,shadow:`md`,width:150,children:[(0,G.jsx)(_h.Target,{children:(0,G.jsx)(Sl,{variant:`subtle`,size:`lg`,title:`Color theme`,"aria-label":`Color theme`,children:(0,G.jsx)(i,{size:18})})}),(0,G.jsxs)(_h.Dropdown,{children:[(0,G.jsx)(_h.Label,{children:`Theme`}),fT.map(e=>{let t=e.icon;return(0,G.jsx)(_h.Item,{leftSection:(0,G.jsx)(t,{size:16}),rightSection:n===e.value?(0,G.jsx)(ow,{size:14}):null,onClick:()=>r(e.value),children:e.label},e.value)})]})]})]})]}),(0,G.jsx)(`div`,{style:{position:`absolute`,left:0,right:0,bottom:0,height:2,background:`linear-gradient(90deg, var(--primary), var(--violet) 60%, transparent)`}})]}),(0,G.jsxs)(Mf.Main,{children:[(0,G.jsx)(tT,{}),(0,G.jsx)(oT,{}),(0,G.jsx)(JS,{}),(0,G.jsx)(uT,{})]})]})}async function mT(e){return Kw(`/audit-log${Xw(e??{})}`)}async function hT(e,t){return Kw(`/documents/${e}/review-status`,{method:`POST`,body:JSON.stringify({status:t})})}async function gT(e,t,n){return Kw(`/documents/${e}/versions/${t}/archive`,{method:`POST`,body:JSON.stringify({archived:n})})}var X={eyebrow:`_eyebrow_jg14y_6`,pageTitle:`_pageTitle_jg14y_25`,pageSub:`_pageSub_jg14y_34`,mono:`_mono_jg14y_44`,dim:`_dim_jg14y_45`,faint:`_faint_jg14y_46`,col:`_col_jg14y_47`,row:`_row_jg14y_48`,link:`_link_jg14y_49`,btn:`_btn_jg14y_59`,btnPrimary:`_btnPrimary_jg14y_74`,btnGhost:`_btnGhost_jg14y_84`,btnSubtle:`_btnSubtle_jg14y_93`,btnDanger:`_btnDanger_jg14y_105`,btnWarn:`_btnWarn_jg14y_111`,card:`_card_jg14y_121`,cardPad:`_cardPad_jg14y_127`,badge:`_badge_jg14y_130`,bPrimary:`_bPrimary_jg14y_142`,bViolet:`_bViolet_jg14y_143`,bBlue:`_bBlue_jg14y_144`,bGreen:`_bGreen_jg14y_145`,bYellow:`_bYellow_jg14y_146`,bRed:`_bRed_jg14y_147`,bNeutral:`_bNeutral_jg14y_148`,secHead:`_secHead_jg14y_151`,secTitle:`_secTitle_jg14y_157`,countPill:`_countPill_jg14y_168`,srcChip:`_srcChip_jg14y_180`,srcChipAgent:`_srcChipAgent_jg14y_193`,whatis:`_whatis_jg14y_200`,pageHead:`_pageHead_jg14y_219`,divider:`_divider_jg14y_228`,iconBtn:`_iconBtn_jg14y_104`,iconBtnSm:`_iconBtnSm_jg14y_253`,iconBtnDanger:`_iconBtnDanger_jg14y_104`,seg:`_seg_jg14y_277`,segBtn:`_segBtn_jg14y_285`,segBtnOn:`_segBtnOn_jg14y_304`,chip:`_chip_jg14y_311`,chipOn:`_chipOn_jg14y_330`,selectWrap:`_selectWrap_jg14y_337`,selectEl:`_selectEl_jg14y_351`,cliCard:`_cliCard_jg14y_370`,cliBlock:`_cliBlock_jg14y_374`,cliP:`_cliP_jg14y_383`,cliS:`_cliS_jg14y_387`,cliOut:`_cliOut_jg14y_390`,cliLine:`_cliLine_jg14y_396`,cliLineCmd:`_cliLineCmd_jg14y_404`,cliCopyBtn:`_cliCopyBtn_jg14y_411`,cliHintBlock:`_cliHintBlock_jg14y_427`,cliHintArgs:`_cliHintArgs_jg14y_445`,rise:`_rise_jg14y_453`};function _T({cmd:e,args:t,docPath:n=`guides/cli.md`}){let r=SS(),[i,a]=(0,w.useState)(!1),o=(0,w.useRef)(null),s=t?`${e} ${t}`:e;return(0,w.useEffect)(()=>()=>{o.current&&clearTimeout(o.current)},[]),(0,G.jsxs)(`span`,{style:{display:`inline-flex`,alignItems:`center`,gap:8,flexWrap:`wrap`,justifyContent:`flex-end`},children:[(0,G.jsxs)(`button`,{type:`button`,className:X.cliHintBlock,title:i?`Copied!`:`Copy command to clipboard`,onClick:()=>{navigator.clipboard?.writeText(s),a(!0),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>a(!1),1200)},children:[(0,G.jsx)(`span`,{style:{color:`var(--primary)`},children:`$`}),(0,G.jsx)(`span`,{children:e}),t&&(0,G.jsx)(`span`,{className:X.cliHintArgs,children:t}),i?(0,G.jsx)(ow,{size:12,style:{color:`var(--green)`,flexShrink:0}}):(0,G.jsx)(pw,{size:12,style:{color:`var(--text-faint)`,flexShrink:0}})]}),(0,G.jsx)(`button`,{type:`button`,className:X.whatis,onClick:()=>r(`/help/${n}`),children:`cli docs`})]})}var vT=`cerefox:rowsPerPage`,yT=[10,25,50,100],bT=10;function xT(){try{let e=Number(localStorage.getItem(vT));if(yT.includes(e))return e}catch{}return bT}function ST(){let[e,t]=(0,w.useState)(xT);return[e,e=>{t(e);try{localStorage.setItem(vT,String(e))}catch{}}]}var CT={wrap:`_wrap_17ha0_4`,toolbar:`_toolbar_17ha0_11`,search:`_search_17ha0_18`,count:`_count_17ha0_49`,tbl:`_tbl_17ha0_58`,actions:`_actions_17ha0_92`,foot:`_foot_17ha0_99`,pgBtn:`_pgBtn_17ha0_110`,emptyRow:`_emptyRow_17ha0_130`,faint:`_faint_17ha0_135`};function wT({page:e,pageCount:t,total:n,pageSize:r,onPage:i,onPageSize:a,loading:o=!1}){let s=n===0?0:(e-1)*r+1,c=Math.min(n,(e-1)*r+r),l=e<=1,u=e>=t;return(0,G.jsxs)(`div`,{className:CT.foot,children:[(0,G.jsxs)(`span`,{className:CT.faint,children:[n===0?`0`:`${s}–${c}`,` of `,n,o?` · loading…`:``]}),(0,G.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8},children:[(0,G.jsx)(`span`,{className:CT.faint,style:{fontSize:11.5},children:`Rows`}),(0,G.jsx)(`span`,{className:X.selectWrap,style:{height:28},children:(0,G.jsx)(`select`,{className:X.selectEl,value:r,onChange:e=>a(Number(e.currentTarget.value)),"aria-label":`Rows per page`,children:yT.map(e=>(0,G.jsx)(`option`,{value:e,children:e},e))})}),(0,G.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:6},children:[(0,G.jsx)(`button`,{type:`button`,className:CT.pgBtn,disabled:l,onClick:()=>i(1),"aria-label":`First page`,children:(0,G.jsx)(uw,{size:14})}),(0,G.jsx)(`button`,{type:`button`,className:CT.pgBtn,disabled:l,onClick:()=>i(e-1),"aria-label":`Previous page`,children:(0,G.jsx)(cw,{size:14})}),(0,G.jsxs)(`span`,{className:CT.faint,children:[`page `,e,` / `,t]}),(0,G.jsx)(`button`,{type:`button`,className:CT.pgBtn,disabled:u,onClick:()=>i(e+1),"aria-label":`Next page`,children:(0,G.jsx)(lw,{size:14})}),(0,G.jsx)(`button`,{type:`button`,className:CT.pgBtn,disabled:u,onClick:()=>i(t),"aria-label":`Last page`,children:(0,G.jsx)(dw,{size:14})})]})]})]})}function TT({eyebrow:e,title:t,subtitle:n,headerRight:r,toolbarExtra:i,searchValue:a,onSearchChange:o,searchPlaceholder:s=`Filter…`,searchText:c,columns:l,rows:u,rowKey:d,rowClick:f,actions:p,loading:m=!1,emptyText:h=`No matching rows.`}){let[g,_]=(0,w.useState)(0),[v,y]=ST(),b=(0,w.useMemo)(()=>{let e=a.trim().toLowerCase();return!e||!c?u:u.filter(t=>c(t).toLowerCase().includes(e))},[u,a,c]),x=b.length,S=Math.max(1,Math.ceil(x/v)),C=Math.min(g,S-1),T=b.slice(C*v,C*v+v),E=!!p,D=l.length+ +!!E;return(0,G.jsxs)(`div`,{className:CT.wrap,children:[(0,G.jsxs)(`div`,{className:X.pageHead,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`p`,{className:X.eyebrow,children:e}),(0,G.jsx)(`h1`,{className:X.pageTitle,"data-testid":`page-title`,children:t}),n&&(0,G.jsx)(`p`,{className:X.pageSub,children:n})]}),r]}),(0,G.jsxs)(`div`,{className:CT.toolbar,children:[(0,G.jsxs)(`span`,{className:CT.search,children:[(0,G.jsx)(Mw,{size:16}),(0,G.jsx)(`input`,{value:a,onChange:e=>{o(e.currentTarget.value),_(0)},placeholder:s})]}),i,(0,G.jsxs)(`span`,{className:CT.count,children:[x,` `,x===1?`row`:`rows`]})]}),(0,G.jsxs)(`div`,{className:`${X.card} ${X.rise}`,style:{overflow:`hidden`},children:[(0,G.jsxs)(`table`,{className:CT.tbl,children:[(0,G.jsx)(`thead`,{children:(0,G.jsxs)(`tr`,{children:[l.map(e=>(0,G.jsx)(`th`,{style:{width:e.width,textAlign:e.align??`left`},children:e.label},e.key)),E&&(0,G.jsx)(`th`,{style:{width:1}})]})}),(0,G.jsx)(`tbody`,{children:m?(0,G.jsx)(`tr`,{children:(0,G.jsx)(`td`,{colSpan:D,className:CT.emptyRow,children:`Loading…`})}):T.length===0?(0,G.jsx)(`tr`,{children:(0,G.jsx)(`td`,{colSpan:D,className:CT.emptyRow,children:h})}):T.map(e=>(0,G.jsxs)(`tr`,{style:f?{cursor:`pointer`}:void 0,onClick:f?()=>f(e):void 0,children:[l.map(t=>(0,G.jsx)(`td`,{style:{textAlign:t.align??`left`},children:t.render(e)},t.key)),E&&(0,G.jsx)(`td`,{onClick:e=>e.stopPropagation(),children:(0,G.jsx)(`div`,{className:CT.actions,children:p(e)})})]},d(e)))})]}),(0,G.jsx)(wT,{page:C+1,pageCount:S,total:x,pageSize:v,onPage:e=>_(e-1),onPageSize:e=>{y(e),_(0)}})]})]})}function ET(e){return e?new Date(e).toLocaleDateString():``}function DT(e){if(!e)return``;let t=new Date(e);return t.toLocaleDateString()+` `+t.toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})}var OT=[`config-change`,`project-create`,`project-edit`,`project-delete`];[...OT];function kT(e,t){if(e==null&&t==null)return null;let n=e??{},r=t??{},i=e=>typeof e==`string`?e:JSON.stringify(e),a=Object.keys(r).filter(e=>JSON.stringify(r[e])!==JSON.stringify(n[e])).map(e=>`${e}=${i(r[e])}`),o=Object.keys(n).filter(e=>!Object.hasOwn(r,e));if(a.length===0&&o.length===0)return null;let s=[];return a.length&&s.push(`set ${a.join(`, `)}`),o.length&&s.push(`removed ${o.join(`, `)}`),s.join(`; `)}function AT(e,t=60){let n=e.replace(/\s+/g,` `).trim();return n.length<=t?n:`${n.slice(0,t-1).trimEnd()}…`}function jT({page:e,dirty:t}){let n=e?.trim()?AT(e):`Cerefox`;return`${t?`• `:``}${n}`}function MT(e,t={}){let n=t.dirty??!1;(0,w.useEffect)(()=>{document.title=jT({page:e,dirty:n})},[e,n])}var NT=[{value:`config-change`,label:`Config change`,tone:`yellow`},{value:`project-create`,label:`Project create`,tone:`green`},{value:`project-edit`,label:`Project edit`,tone:`violet`},{value:`project-delete`,label:`Project delete`,tone:`red`}],PT=new Set(OT),FT=[{value:``,label:`All operations`},{value:`create`,label:`Create`},{value:`update-content`,label:`Update content`},{value:`update-metadata`,label:`Update metadata`},{value:`insert`,label:`Insert (partial edit)`},{value:`replace-section`,label:`Replace section`},{value:`delete-section`,label:`Delete section`},{value:`rename-section`,label:`Rename section`},{value:`delete`,label:`Delete`},{value:`restore`,label:`Restore`},{value:`status-change`,label:`Status change`},{value:`archive`,label:`Archive`},{value:`unarchive`,label:`Unarchive`},...NT.map(e=>({value:e.value,label:e.label}))],IT={create:X.bGreen,"update-content":X.bBlue,"update-metadata":X.bViolet,insert:X.bBlue,"replace-section":X.bBlue,"delete-section":X.bRed,"rename-section":X.bViolet,"status-change":X.bYellow,archive:X.bPrimary,unarchive:X.bPrimary,restore:X.bGreen,delete:X.bRed,...Object.fromEntries(NT.map(e=>[e.value,{yellow:X.bYellow,green:X.bGreen,violet:X.bViolet,red:X.bRed}[e.tone]]))};function LT(){MT(`Audit log`);let e=SS(),[t]=WC(),[n,r]=(0,w.useState)(t.get(`operation`)||``),[i]=(0,w.useState)(t.get(`document_id`)||``),[a,o]=(0,w.useState)(``),[s,c]=(0,w.useState)(``),[l,u]=(0,w.useState)(`100`),[d,f]=(0,w.useState)(``),{data:p,isLoading:m}=Gb({queryKey:[`audit-log`,n,i,a,s,l],queryFn:()=>mT({operation:n||void 0,document_id:i||void 0,since:a?`${a}T00:00:00`:void 0,until:s?`${s}T23:59:59`:void 0,limit:Number(l)})});return(0,G.jsx)(TT,{eyebrow:`Every read & write`,title:`Audit Log`,subtitle:`A complete trail of changes — by human and agent alike.`,headerRight:(0,G.jsx)(_T,{cmd:`cerefox audit list`}),searchValue:d,onSearchChange:f,searchPlaceholder:`Filter by document or description…`,searchText:e=>`${e.doc_title??``} ${e.description??``} ${e.author??``}`,toolbarExtra:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Y_,{data:FT,value:n,onChange:e=>r(e||``),placeholder:`All operations`,size:`sm`,w:170,clearable:!0}),(0,G.jsx)(gv,{type:`date`,"aria-label":`From`,value:a,onChange:e=>o(e.currentTarget.value),size:`sm`,w:150}),(0,G.jsx)(gv,{type:`date`,"aria-label":`To`,value:s,onChange:e=>c(e.currentTarget.value),size:`sm`,w:150}),(0,G.jsx)(Y_,{data:[`100`,`250`,`500`,`1000`],value:l,onChange:e=>u(e||`100`),size:`sm`,w:100})]}),columns:[{key:`time`,label:`Time`,width:150,render:e=>(0,G.jsx)(`span`,{className:`${X.faint} ${X.mono}`,style:{fontSize:12,whiteSpace:`nowrap`},children:DT(e.created_at)})},{key:`op`,label:`Operation`,width:150,render:e=>(0,G.jsx)(`span`,{className:`${X.badge} ${IT[e.operation]??X.bNeutral}`,children:e.operation})},{key:`author`,label:`Author`,width:170,render:e=>(0,G.jsxs)(`span`,{className:`${X.srcChip} ${e.author_type===`agent`?X.srcChipAgent:``}`,children:[e.author_type===`agent`?(0,G.jsx)(Nw,{size:12}):(0,G.jsx)(Dw,{size:12}),e.author]})},{key:`doc`,label:`Document`,render:e=>e.document_id?(0,G.jsx)(`span`,{className:`${X.link}`,style:{fontSize:13},children:e.doc_title||`${e.document_id.slice(0,8)}…`}):(0,G.jsx)(`span`,{className:X.faint,style:{fontSize:12},children:PT.has(e.operation)?`(store)`:`(deleted)`})},{key:`delta`,label:`Change`,width:200,align:`right`,render:e=>{let t=kT(e.metadata_before,e.metadata_after);if(t)return(0,G.jsx)(`span`,{className:X.mono,style:{fontSize:12},title:t,children:t.length>40?`${t.slice(0,39)}…`:t});if(e.size_before==null&&e.size_after==null)return(0,G.jsx)(`span`,{className:`${X.faint} ${X.mono}`,style:{fontSize:12},children:`—`});let n=(e.size_after??0)-(e.size_before??0),r=n>0?`var(--green)`:n<0?`var(--red)`:`var(--text-faint)`;return(0,G.jsxs)(`span`,{className:X.mono,style:{fontSize:12,color:r},children:[n>0?`+`:``,n.toLocaleString()]})}}],rows:p??[],rowKey:e=>e.id,rowClick:t=>t.document_id&&e(`/document/${t.document_id}`),loading:m,emptyText:`No audit log entries found.`})}async function RT(e={}){return Kw(`/usage-log/summary${Xw({...e})}`)}async function zT(e={}){return Kw(`/usage-log${Xw({...e,limit:e.limit??100})}`)}function BT(e={}){return`/api/v1/usage-log/export.csv${Xw({...e})}`}async function VT(e){return(await Kw(`/config/${e}`)).value}async function HT(e,t){await Kw(`/config/${e}`,{method:`PUT`,body:JSON.stringify({value:t})})}function UT(e){let t=t=>e?.find(e=>e.access_path===t)?.count??0,n=t(`local-mcp`),r=t(`remote-mcp`),i=t(`edge-function`),a=t(`api`);return{localMcpOps:n,remoteMcpOps:r,efOps:i,apiOps:a,agentOps:n+r+i+a,cliOps:t(`cli`),webOps:t(`webapp`)}}function WT({title:e,commands:t,docPath:n=`guides/cli.md`}){let r=SS(),[i,a]=(0,w.useState)(null),o=(0,w.useRef)(null);(0,w.useEffect)(()=>()=>{o.current&&clearTimeout(o.current)},[]);let s=(e,t)=>{navigator.clipboard?.writeText(t.args?`${t.cmd} ${t.args}`:t.cmd),a(e),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>a(null),1200)};return(0,G.jsxs)(`div`,{className:`${X.card} ${X.cliCard} ${X.rise}`,children:[(0,G.jsxs)(`div`,{className:X.row,style:{gap:8,marginBottom:10},children:[(0,G.jsx)(Iw,{size:15}),(0,G.jsx)(`span`,{style:{fontWeight:600,fontSize:13.5},children:e}),(0,G.jsx)(`button`,{type:`button`,className:X.whatis,style:{marginLeft:`auto`},onClick:()=>r(`/help/${n}`),children:`cli docs`})]}),(0,G.jsx)(`div`,{className:X.cliBlock,children:t.map((e,t)=>(0,G.jsxs)(`div`,{className:X.cliLine,children:[(0,G.jsxs)(`span`,{className:X.cliLineCmd,children:[(0,G.jsx)(`span`,{className:X.cliP,children:`$`}),e.cmd,e.args&&(0,G.jsxs)(G.Fragment,{children:[` `,(0,G.jsx)(`span`,{className:X.cliS,children:e.args})]})]}),(0,G.jsx)(`button`,{type:`button`,className:X.cliCopyBtn,title:i===t?`Copied!`:`Copy command to clipboard`,onClick:()=>s(t,e),children:i===t?(0,G.jsx)(ow,{size:13,style:{color:`var(--green)`}}):(0,G.jsx)(pw,{size:13})})]},t))})]})}async function GT(){return Kw(`/dashboard`)}async function KT(e){return Kw(`/dashboard/recent-docs${e?`?project_id=${encodeURIComponent(e)}`:``}`)}var qT={wrap:`_wrap_nzwkl_5`,dashHero:`_dashHero_nzwkl_12`,dashHeroActions:`_dashHeroActions_nzwkl_20`,quickSearch:`_quickSearch_nzwkl_24`,qsGo:`_qsGo_nzwkl_52`,statGrid:`_statGrid_nzwkl_66`,statTile:`_statTile_nzwkl_72`,statTop:`_statTop_nzwkl_78`,statIco:`_statIco_nzwkl_84`,statValue:`_statValue_nzwkl_91`,statLabel:`_statLabel_nzwkl_99`,statSub:`_statSub_nzwkl_106`,emptyVal:`_emptyVal_nzwkl_112`,dashSplit:`_dashSplit_nzwkl_121`,dashRail:`_dashRail_nzwkl_133`,tbl:`_tbl_nzwkl_140`,colDoc:`_colDoc_nzwkl_157`,colAuthor:`_colAuthor_nzwkl_158`,colChunks:`_colChunks_nzwkl_159`,colSize:`_colSize_nzwkl_160`,colUpdated:`_colUpdated_nzwkl_161`,authorCell:`_authorCell_nzwkl_163`,alignRight:`_alignRight_nzwkl_191`,docCell:`_docCell_nzwkl_193`,docDot:`_docDot_nzwkl_198`,docTitle:`_docTitle_nzwkl_204`,docBadges:`_docBadges_nzwkl_216`,projList:`_projList_nzwkl_231`,projScroll:`_projScroll_nzwkl_236`,projRow:`_projRow_nzwkl_245`,projDot:`_projDot_nzwkl_259`,projName:`_projName_nzwkl_265`,projCounts:`_projCounts_nzwkl_276`,trashCount:`_trashCount_nzwkl_285`,projBar:`_projBar_nzwkl_291`,projChev:`_projChev_nzwkl_304`,projFoot:`_projFoot_nzwkl_311`},JT=[`--primary`,`--violet`,`--blue`,`--green`,`--yellow`,`--red`];function _ee(e){return e>=1e6?`${(e/1e6).toFixed(2)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function YT(){let e=new Date().getHours();return e<12?`Good morning`:e<18?`Good afternoon`:`Good evening`}function XT(e){let t=(e??`manual`).toLowerCase();switch(t){case`agent`:return{icon:Nw,label:`agent`,agent:!0};case`cli`:return{icon:Iw,label:`cli`,agent:!1};case`file`:return{icon:yw,label:`file`,agent:!1};case`paste`:return{icon:yw,label:`paste`,agent:!1};case`url`:return{icon:Cw,label:`url`,agent:!1};default:return{icon:Dw,label:t,agent:!1}}}var ZT=new Date(Date.now()-2592e6).toISOString();function QT(){MT();let e=SS(),[t,n]=(0,w.useState)(``),[r,i]=(0,w.useState)(``),{data:a}=Gb({queryKey:[`dashboard`],queryFn:GT}),{data:o}=Gb({queryKey:[`dashboard-recent`,r],queryFn:()=>KT(r||void 0),placeholderData:Yy}),s=ZT,{data:c}=Gb({queryKey:[`usage-summary-30d`,s],queryFn:()=>RT({start:s}),staleTime:6e4}),{localMcpOps:l,remoteMcpOps:u,efOps:d,apiOps:f,agentOps:p,cliOps:m,webOps:h}=UT(c?.ops_by_access_path),g=new Map((a?.projects??[]).map(e=>[e.id,e.name])),_=new Map((a?.projects??[]).map((e,t)=>[e.id,JT[t%JT.length]])),v=a?.project_doc_counts??{},y=a?.project_deleted_doc_counts??{},b=Object.values(y).reduce((e,t)=>e+t,0),x=Math.max(1,...Object.values(v)),S=()=>{let n=t.trim();e(n?`/search?q=${encodeURIComponent(n)}&mode=docs`:`/search`)},C=e=>`var(${_.get(e.project_ids[0])??`--border`})`;return(0,G.jsxs)(`div`,{className:qT.wrap,children:[(0,G.jsxs)(`div`,{className:`${qT.dashHero} ${X.rise}`,children:[(0,G.jsxs)(`div`,{style:{minWidth:0},children:[(0,G.jsx)(`p`,{className:X.eyebrow,children:`Memory layer · online`}),(0,G.jsxs)(`h1`,{className:X.pageTitle,"data-testid":`page-title`,children:[YT(),`, operator.`]})]}),(0,G.jsxs)(`div`,{className:qT.dashHeroActions,children:[(0,G.jsxs)(`form`,{className:qT.quickSearch,onSubmit:e=>{e.preventDefault(),S()},children:[(0,G.jsx)(Mw,{size:16}),(0,G.jsx)(`input`,{value:t,onChange:e=>n(e.currentTarget.value),placeholder:`Quick search…`}),(0,G.jsx)(`button`,{type:`submit`,className:qT.qsGo,"aria-label":`Search`,children:(0,G.jsx)(rw,{size:15})})]}),(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnPrimary}`,onClick:()=>e(`/ingest`),children:[(0,G.jsx)(Aw,{size:16}),`Ingest content`]})]})]}),(0,G.jsxs)(`div`,{className:qT.statGrid,children:[(0,G.jsxs)(`div`,{className:`${X.card} ${qT.statTile} ${X.rise}`,children:[(0,G.jsxs)(`div`,{className:qT.statTop,children:[(0,G.jsx)(`span`,{className:`${qT.statIco} ${X.bPrimary}`,children:(0,G.jsx)(mw,{size:18})}),b>0&&(0,G.jsxs)(`span`,{className:`${X.badge} ${X.bNeutral}`,children:[b,` docs in trash`]})]}),(0,G.jsx)(`div`,{className:qT.statValue,children:(a?.doc_count??0).toLocaleString()}),(0,G.jsx)(`div`,{className:qT.statLabel,children:`Documents`})]}),(0,G.jsxs)(`div`,{className:`${X.card} ${qT.statTile} ${X.rise}`,children:[(0,G.jsxs)(`div`,{className:qT.statTop,children:[(0,G.jsx)(`span`,{className:`${qT.statIco} ${X.bViolet}`,children:(0,G.jsx)(Pw,{size:18})}),(0,G.jsxs)(`span`,{className:`${X.badge} ${X.bViolet}`,children:[_ee(a?.total_chars??0),` chars`]})]}),(0,G.jsx)(`div`,{className:qT.statValue,children:(a?.total_chunks??0).toLocaleString()}),(0,G.jsx)(`div`,{className:qT.statLabel,children:`Indexed chunks`})]}),(0,G.jsxs)(`div`,{className:`${X.card} ${qT.statTile} ${X.rise}`,children:[(0,G.jsx)(`div`,{className:qT.statTop,children:(0,G.jsx)(`span`,{className:`${qT.statIco} ${X.bBlue}`,children:(0,G.jsx)(xw,{size:18})})}),(0,G.jsx)(`div`,{className:qT.statValue,children:a?.project_count??0}),(0,G.jsx)(`div`,{className:qT.statLabel,children:`Projects`})]}),(0,G.jsxs)(`div`,{className:`${X.card} ${qT.statTile} ${X.rise}`,children:[(0,G.jsxs)(`div`,{className:qT.statTop,children:[(0,G.jsx)(`span`,{className:`${qT.statIco} ${X.bGreen}`,children:(0,G.jsx)(Nw,{size:18})}),p>0?(0,G.jsxs)(`span`,{className:`${X.badge} ${X.bGreen}`,title:`MCP transports, last 30 days. Other paths are listed below the count.`,children:[l.toLocaleString(),` local · `,u.toLocaleString(),` remote`]}):(0,G.jsxs)(ol,{width:260,position:`bottom-end`,withArrow:!0,shadow:`md`,children:[(0,G.jsx)(ol.Target,{children:(0,G.jsx)(`button`,{type:`button`,className:X.whatis,children:`Why no data?`})}),(0,G.jsx)(ol.Dropdown,{children:(0,G.jsxs)(Y,{size:`xs`,c:`dimmed`,children:[`No agent activity on the MCP or Edge Function paths in the last 30 days. That is not the same as "no agents" — CLI and web operations are counted separately below, and the Edge Function path is only used by ChatGPT Actions, so a zero there is normal unless you run a Custom GPT. Agent ops are recorded in the usage log, which is `,(0,G.jsx)(`b`,{children:`opt-in`}),` — enable it with`,` `,(0,G.jsx)(`code`,{children:`cerefox config set usage_tracking_enabled true`}),` if it's off.`]})})]})]}),(0,G.jsx)(`div`,{className:p>0?qT.statValue:qT.emptyVal,children:p>0?p.toLocaleString():`—`}),(0,G.jsx)(`div`,{className:qT.statLabel,children:`Agent operations · 30d`}),(d>0||f>0||m>0||h>0)&&(0,G.jsxs)(`div`,{className:qT.statSub,title:`edge = ChatGPT Actions and api = an /api/v1 client that identified itself (both counted in the total above). cli and web are NOT counted as agent operations: the usage summary cannot separate an agent's CLI use from a person's, and web is the bundled UI.`,children:[d.toLocaleString(),` edge · `,f.toLocaleString(),` api ·`,` `,m.toLocaleString(),` cli · `,h.toLocaleString(),` web`]})]})]}),(0,G.jsxs)(`div`,{className:qT.dashSplit,children:[(0,G.jsxs)(`section`,{className:X.rise,children:[(0,G.jsxs)(`div`,{className:X.secHead,children:[(0,G.jsxs)(`h2`,{className:X.secTitle,children:[(0,G.jsx)(fw,{size:16}),`Recently changed documents`]}),(0,G.jsxs)(`span`,{className:X.selectWrap,title:`Scope recent documents to a project`,children:[(0,G.jsx)(xw,{size:14}),(0,G.jsxs)(`select`,{className:X.selectEl,value:r,"data-testid":`recent-project-select`,onChange:e=>i(e.currentTarget.value),children:[(0,G.jsx)(`option`,{value:``,children:`All projects`}),(a?.projects??[]).map(e=>(0,G.jsx)(`option`,{value:e.id,children:e.name},e.id))]}),(0,G.jsx)(sw,{size:14})]})]}),(0,G.jsx)(`div`,{className:X.card,style:{overflow:`hidden`},children:(0,G.jsxs)(`table`,{className:qT.tbl,children:[(0,G.jsx)(`thead`,{children:(0,G.jsxs)(`tr`,{children:[(0,G.jsx)(`th`,{className:qT.colDoc,children:`Document`}),(0,G.jsx)(`th`,{className:`${qT.colAuthor} ${qT.authorCell}`,children:`Author`}),(0,G.jsx)(`th`,{className:`${qT.colChunks} ${qT.alignRight}`,children:`Chunks`}),(0,G.jsx)(`th`,{className:`${qT.colSize} ${qT.alignRight}`,children:`Size`}),(0,G.jsx)(`th`,{className:`${qT.colUpdated} ${qT.alignRight}`,children:`Updated`})]})}),(0,G.jsx)(`tbody`,{children:(r?o?.recent_docs??[]:o?.recent_docs??a?.recent_docs??[]).map(t=>{let n=t.author?{icon:t.author_type===`agent`?Nw:Dw,label:t.author,agent:t.author_type===`agent`}:XT(t.source),r=n.icon,i=t.review_status===`pending_review`;return(0,G.jsxs)(`tr`,{"data-testid":`recent-doc-row`,onClick:()=>e(`/document/${t.id}`),children:[(0,G.jsx)(`td`,{children:(0,G.jsxs)(`div`,{className:qT.docCell,children:[(0,G.jsx)(`span`,{className:qT.docDot,style:{background:C(t)}}),(0,G.jsxs)(`div`,{className:X.col,style:{gap:3,minWidth:0},children:[(0,G.jsx)(RC,{to:`/document/${t.id}`,className:`${X.link} ${qT.docTitle}`,onClick:e=>e.stopPropagation(),children:t.title||`Untitled`}),(0,G.jsxs)(`div`,{className:qT.docBadges,children:[t.project_ids.filter(e=>g.has(e)).slice(0,1).map(e=>(0,G.jsx)(`span`,{className:`${X.badge} ${X.bNeutral}`,children:g.get(e)},e)),i&&(0,G.jsxs)(`span`,{className:`${X.badge} ${X.bYellow}`,children:[(0,G.jsx)(`span`,{style:{width:6,height:6,borderRadius:`50%`,background:`currentColor`}}),`pending review`]})]})]})]})}),(0,G.jsx)(`td`,{className:qT.authorCell,title:n.label,children:(0,G.jsxs)(`span`,{className:`${X.srcChip} ${n.agent?X.srcChipAgent:``}`,children:[(0,G.jsx)(r,{size:12}),n.label]})}),(0,G.jsx)(`td`,{className:`${qT.alignRight} ${X.mono} ${X.dim}`,children:t.chunk_count}),(0,G.jsx)(`td`,{className:`${qT.alignRight} ${X.mono} ${X.dim}`,children:t.total_chars.toLocaleString()}),(0,G.jsx)(`td`,{className:`${qT.alignRight} ${X.faint}`,children:DT(t.updated_at)})]},t.id)})})]})})]}),(0,G.jsxs)(`aside`,{className:qT.dashRail,children:[(0,G.jsxs)(`section`,{className:X.rise,style:{minHeight:0},children:[(0,G.jsxs)(`div`,{className:X.secHead,children:[(0,G.jsxs)(`h2`,{className:X.secTitle,children:[(0,G.jsx)(Pw,{size:16}),`Projects `,(0,G.jsx)(`span`,{className:X.countPill,children:a?.project_count??0})]}),(0,G.jsx)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,onClick:()=>e(`/projects`),children:`Manage`})]}),(0,G.jsxs)(`div`,{className:`${X.card} ${qT.projList}`,children:[(0,G.jsx)(`div`,{className:qT.projScroll,children:(a?.projects??[]).map(t=>{let n=v[t.id]??0,r=y[t.id]??0,i=`var(${_.get(t.id)??`--border`})`;return(0,G.jsxs)(`button`,{type:`button`,className:qT.projRow,onClick:()=>e(`/projects/${t.id}/documents`),children:[(0,G.jsx)(`span`,{className:qT.projDot,style:{background:i}}),(0,G.jsxs)(`div`,{className:X.col,style:{gap:5,minWidth:0,flex:1},children:[(0,G.jsxs)(`div`,{className:X.row,style:{justifyContent:`space-between`,gap:8},children:[(0,G.jsx)(RC,{to:`/projects/${t.id}/documents`,className:qT.projName,onClick:e=>e.stopPropagation(),children:t.name}),(0,G.jsxs)(`span`,{className:qT.projCounts,children:[(0,G.jsx)(`span`,{children:n}),r>0&&(0,G.jsxs)(`span`,{className:qT.trashCount,title:`${r} in trash`,children:[(0,G.jsx)(Rw,{size:11}),r]})]})]}),(0,G.jsx)(`div`,{className:qT.projBar,children:(0,G.jsx)(`span`,{style:{width:`${n/x*100}%`,background:i}})})]}),(0,G.jsx)(`span`,{className:qT.projChev,children:(0,G.jsx)(lw,{size:15})})]},t.id)})}),(0,G.jsxs)(`div`,{className:qT.projFoot,children:[(0,G.jsxs)(`span`,{children:[a?.project_count??0,` projects`]}),(0,G.jsxs)(`span`,{className:X.faint,children:[b,` docs in trash`]})]})]})]}),(0,G.jsx)(WT,{title:`Same memory, your terminal`,commands:[{cmd:`cerefox search`,args:`"retry backoff" --mode hybrid`},{cmd:`cerefox document ingest`,args:`./rfc-018.md --project-name infra`}]})]})]})]})}async function $T(e,t){return Kw(`/documents/${e}${Xw({version_id:t})}`)}async function eE(e){return Kw(`/documents/${e}/chunks`)}async function tE(e,t){return Kw(`/documents/${e}/edit`,{method:`POST`,body:JSON.stringify(t)})}async function nE(e){return Kw(`/documents/${e}`,{method:`DELETE`})}async function rE(e){return Kw(`/ingest`,{method:`POST`,body:JSON.stringify({mode:`paste`,...e})})}async function iE(e){return Kw(`/check-filename${Xw({filename:e})}`)}async function aE(e,t){return Kw(`/documents/${e}?version_id=${t}`)}function oE(e,t){let n=`/api/v1/documents/${e}/download`;return t?`${n}?version_id=${t}`:n}function sE(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var cE=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,lE=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,uE={};function dE(e,t){return((t||uE).jsx?lE:cE).test(e)}var fE=/[ \t\n\f\r]/g;function pE(e){return typeof e==`object`?e.type===`text`&&mE(e.value):mE(e)}function mE(e){return e.replace(fE,``)===``}var hE=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};hE.prototype.normal={},hE.prototype.property={},hE.prototype.space=void 0;function gE(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new hE(n,r,t)}function _E(e){return e.toLowerCase()}var vE=class{constructor(e,t){this.attribute=t,this.property=e}};vE.prototype.attribute=``,vE.prototype.booleanish=!1,vE.prototype.boolean=!1,vE.prototype.commaOrSpaceSeparated=!1,vE.prototype.commaSeparated=!1,vE.prototype.defined=!1,vE.prototype.mustUseProperty=!1,vE.prototype.number=!1,vE.prototype.overloadedBoolean=!1,vE.prototype.property=``,vE.prototype.spaceSeparated=!1,vE.prototype.space=void 0;var yE=s({boolean:()=>xE,booleanish:()=>SE,commaOrSpaceSeparated:()=>EE,commaSeparated:()=>TE,number:()=>Z,overloadedBoolean:()=>CE,spaceSeparated:()=>wE}),bE=0,xE=DE(),SE=DE(),CE=DE(),Z=DE(),wE=DE(),TE=DE(),EE=DE();function DE(){return 2**++bE}var OE=Object.keys(yE),kE=class extends vE{constructor(e,t,n,r){let i=-1;if(super(e,t),AE(this,`space`,r),typeof n==`number`)for(;++i<OE.length;){let e=OE[i];AE(this,OE[i],(n&yE[e])===yE[e])}}};kE.prototype.defined=!0;function AE(e,t,n){n&&(e[t]=n)}function jE(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new kE(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[_E(r)]=r,n[_E(a.attribute)]=r}return new hE(t,n,e.space)}var ME=jE({properties:{ariaActiveDescendant:null,ariaAtomic:SE,ariaAutoComplete:null,ariaBusy:SE,ariaChecked:SE,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:wE,ariaCurrent:null,ariaDescribedBy:wE,ariaDetails:null,ariaDisabled:SE,ariaDropEffect:wE,ariaErrorMessage:null,ariaExpanded:SE,ariaFlowTo:wE,ariaGrabbed:SE,ariaHasPopup:null,ariaHidden:SE,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:wE,ariaLevel:Z,ariaLive:null,ariaModal:SE,ariaMultiLine:SE,ariaMultiSelectable:SE,ariaOrientation:null,ariaOwns:wE,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:SE,ariaReadOnly:SE,ariaRelevant:null,ariaRequired:SE,ariaRoleDescription:wE,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:SE,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function NE(e,t){return t in e?e[t]:t}function PE(e,t){return NE(e,t.toLowerCase())}var FE=jE({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:TE,acceptCharset:wE,accessKey:wE,action:null,allow:null,allowFullScreen:xE,allowPaymentRequest:xE,allowUserMedia:xE,alpha:xE,alt:null,as:null,async:xE,autoCapitalize:null,autoComplete:wE,autoFocus:xE,autoPlay:xE,blocking:wE,capture:null,charSet:null,checked:xE,cite:null,className:wE,closedBy:null,colorSpace:null,cols:Z,colSpan:Z,command:null,commandFor:null,content:null,contentEditable:SE,controls:xE,controlsList:wE,coords:Z|TE,crossOrigin:null,data:null,dateTime:null,decoding:null,default:xE,defer:xE,dir:null,dirName:null,disabled:xE,download:CE,draggable:SE,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:xE,formTarget:null,headers:wE,height:Z,hidden:CE,high:Z,href:null,hrefLang:null,htmlFor:wE,httpEquiv:wE,id:null,imageSizes:null,imageSrcSet:null,inert:xE,inputMode:null,integrity:null,is:null,isMap:xE,itemId:null,itemProp:wE,itemRef:wE,itemScope:xE,itemType:wE,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:xE,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:xE,muted:xE,name:null,nonce:null,noModule:xE,noValidate:xE,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:xE,optimum:Z,pattern:null,ping:wE,placeholder:null,playsInline:xE,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:xE,referrerPolicy:null,rel:wE,required:xE,reversed:xE,rows:Z,rowSpan:Z,sandbox:wE,scope:null,scoped:xE,seamless:xE,selected:xE,shadowRootClonable:xE,shadowRootCustomElementRegistry:xE,shadowRootDelegatesFocus:xE,shadowRootMode:null,shadowRootSerializable:xE,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:SE,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:xE,useMap:null,value:SE,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:wE,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:xE,declare:xE,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:xE,noHref:xE,noShade:xE,noWrap:xE,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:SE,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:xE,disablePictureInPicture:xE,disableRemotePlayback:xE,exportParts:TE,part:wE,prefix:null,property:null,results:Z,security:null,unselectable:null},space:`html`,transform:PE}),IE=jE({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:EE,accentHeight:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,className:wE,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:xE,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:TE,g2:TE,glyphName:TE,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:EE,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Z,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:wE,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:EE,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:EE,rev:EE,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:EE,requiredFeatures:EE,requiredFonts:EE,requiredFormats:EE,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:EE,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:EE,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:EE,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:NE}),LE=jE({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),RE=jE({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:PE}),zE=jE({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),BE={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},VE=/[A-Z]/g,HE=/-[a-z]/g,UE=/^data[-\w.:]+$/i;function WE(e,t){let n=_E(t),r=t,i=vE;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&UE.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(HE,KE);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!HE.test(e)){let n=e.replace(VE,GE);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=kE}return new i(r,t)}function GE(e){return`-`+e.toLowerCase()}function KE(e){return e.charAt(1).toUpperCase()}var qE=gE([ME,FE,LE,RE,zE],`html`),JE=gE([ME,IE,LE,RE,zE],`svg`);function YE(e){return e.join(` `).trim()}var XE=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
60
60
  `);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function v(e){var t;for(e||=[];t=y();)t!==!1&&e.push(t);return e}function y(){var t=p();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function b(){var e=p(),t=g(a);if(t){if(y(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function x(){var e=[];v(e);for(var t;t=b();)t!==!1&&(e.push(t),v(e));return e}return _(),x()}function d(e){return e?e.replace(l,``):``}t.exports=u})),ZE=o((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=t(XE());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),QE=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),$E=o(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(ZE()),r=QE();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),eD=nD(`end`),tD=nD(`start`);function nD(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function rD(e){let t=tD(e),n=eD(e);if(t&&n)return{start:t,end:n}}function iD(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?oD(e.position):`start`in e||`end`in e?oD(e):`line`in e||`column`in e?aD(e):``}function aD(e){return sD(e&&e.line)+`:`+sD(e&&e.column)}function oD(e){return aD(e&&e.start)+`-`+aD(e&&e.end)}function sD(e){return e&&typeof e==`number`?e:1}var cD=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=iD(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};cD.prototype.file=``,cD.prototype.name=``,cD.prototype.reason=``,cD.prototype.message=``,cD.prototype.stack=``,cD.prototype.column=void 0,cD.prototype.line=void 0,cD.prototype.ancestors=void 0,cD.prototype.cause=void 0,cD.prototype.fatal=void 0,cD.prototype.place=void 0,cD.prototype.ruleId=void 0,cD.prototype.source=void 0;var lD=l($E(),1),uD={}.hasOwnProperty,dD=new Map,fD=/[A-Z]/g,pD=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),mD=new Set([`td`,`th`]),hD=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function gD(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=See(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=xee(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?JE:qE,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=_D(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function _D(e,t,n){if(t.type===`element`)return vD(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return yD(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return vee(e,t,n);if(t.type===`mdxjsEsm`)return bD(e,t);if(t.type===`root`)return yee(e,t,n);if(t.type===`text`)return bee(e,t)}function vD(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=JE,e.schema=i),e.ancestors.push(t);let a=wD(e,t.tagName,!1),o=Cee(e,t),s=CD(e,t);return pD.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!pE(e)})),xD(e,o,a,t),SD(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function yD(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}TD(e,t.position)}function bD(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);TD(e,t.position)}function vee(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=JE,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:wD(e,t.name,!0),o=wee(e,t),s=CD(e,t);return xD(e,o,a,t),SD(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function yee(e,t,n){let r={};return SD(r,CD(e,t)),e.create(t,e.Fragment,r,n)}function bee(e,t){return t.value}function xD(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function SD(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function xee(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function See(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=tD(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Cee(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&uD.call(t.properties,i)){let a=Tee(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&mD.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function wee(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else TD(e,t.position)}else{let i=r.name,a;if(r.value&&typeof r.value==`object`){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else TD(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function CD(e,t){let n=[],r=-1,i=e.passKeys?new Map:dD;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=_D(e,a,o);s!==void 0&&n.push(s)}return n}function Tee(e,t,n){let r=WE(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?sE(n):YE(n)),r.property===`style`){let t=typeof n==`object`?n:Eee(e,String(n));return e.stylePropertyNameCase===`css`&&(t=Dee(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?BE[r.property]||r.property:r.attribute,n]}}function Eee(e,t){try{return(0,lD.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new cD("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=hD+`#cannot-parse-style-attribute`,r}}function wD(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=dE(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=dE(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return uD.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);TD(e)}function TD(e,t){let n=new cD("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=hD+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function Dee(e){let t={},n;for(n in e)uD.call(e,n)&&(t[Oee(n)]=e[n]);return t}function Oee(e){let t=e.replace(fD,kee);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function kee(e){return`-`+e.toLowerCase()}var ED={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},Aee={};function DD(e,t){let n=t||Aee;return OD(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function OD(e,t,n){if(jee(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return kD(e.children,t,n)}return Array.isArray(e)?kD(e,t,n):``}function kD(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=OD(e[i],t,n);return r.join(``)}function jee(e){return!!(e&&typeof e==`object`)}var AD=document.createElement(`i`);function jD(e){let t=`&`+e+`;`;AD.innerHTML=t;let n=AD.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function MD(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function ND(e,t){return e.length>0?(MD(e,e.length,0,t),e):t}var PD={}.hasOwnProperty;function FD(e){let t={},n=-1;for(;++n<e.length;)Mee(t,e[n]);return t}function Mee(e,t){let n;for(n in t){let r=(PD.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){PD.call(r,a)||(r[a]=[]);let e=i[a];Nee(r[a],Array.isArray(e)?e:e?[e]:[])}}}function Nee(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);MD(e,0,0,r)}function ID(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function LD(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var RD=YD(/[A-Za-z]/),zD=YD(/[\dA-Za-z]/),Pee=YD(/[#-'*+\--9=?A-Z^-~]/);function BD(e){return e!==null&&(e<32||e===127)}var VD=YD(/\d/),HD=YD(/[\dA-Fa-f]/),UD=YD(/[!-/:-@[-`{-~]/);function WD(e){return e!==null&&e<-2}function GD(e){return e!==null&&(e<0||e===32)}function KD(e){return e===-2||e===-1||e===32}var qD=YD(/\p{P}|\p{S}/u),JD=YD(/\s/);function YD(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function XD(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&zD(e.charCodeAt(n+1))&&zD(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function ZD(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return KD(r)?(e.enter(n),s(r)):t(r)}function s(r){return KD(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var Fee={tokenize:QD};function QD(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null)e.consume(n);else return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),ZD(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null)e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);else return WD(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var $D={tokenize:tO},eO={tokenize:nO};function tO(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return MD(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!(!i.currentConstruct||i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(eO,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(eO,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null)i&&v(),_(0),e.consume(n);else return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null)g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);else return WD(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;MD(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function nO(e,t,n){return ZD(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function rO(e){if(e===null||GD(e)||JD(e))return 1;if(qD(e))return 2}function iO(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var aO={name:`attention`,resolveAll:oO,tokenize:sO};function oO(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};cO(d,-c),cO(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=ND(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=ND(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=ND(l,iO(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=ND(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=ND(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,MD(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function sO(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=rO(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=rO(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function cO(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var lO={name:`autolink`,tokenize:uO};function uO(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return RD(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||zD(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||zD(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||BD(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):Pee(t)?(e.consume(t),l):n(t)}function u(e){return zD(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||zD(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var dO={partial:!0,tokenize:fO};function fO(e,t,n){return r;function r(t){return KD(t)?ZD(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||WD(e)?t(e):n(e)}}var pO={continuation:{tokenize:hO},exit:gO,name:`blockQuote`,tokenize:mO};function mO(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return KD(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function hO(e,t,n){let r=this;return i;function i(t){return KD(t)?ZD(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(pO,t,n)(r)}}function gO(e){e.exit(`blockQuote`)}var _O={name:`characterEscape`,tokenize:Iee};function Iee(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return UD(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var vO={name:`characterReference`,tokenize:yO};function yO(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=zD,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=HD,u):(e.enter(`characterReferenceValue`),a=7,o=VD,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===zD&&!jD(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var bO={partial:!0,tokenize:CO},xO={concrete:!0,name:`codeFenced`,tokenize:SO};function SO(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),KD(t)?ZD(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||WD(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(bO,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||WD(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):KD(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),ZD(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||WD(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||WD(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&KD(t)?ZD(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||WD(t)?e.check(bO,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||WD(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),KD(t)?ZD(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),KD(t)?ZD(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||WD(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function CO(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var wO={name:`codeIndented`,tokenize:EO},TO={partial:!0,tokenize:DO};function EO(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),ZD(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):WD(t)?e.attempt(TO,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||WD(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function DO(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):WD(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):ZD(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):WD(e)?i(e):n(e)}}var OO={name:`codeText`,previous:AO,resolve:kO,tokenize:jO};function kO(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function AO(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function jO(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):WD(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||WD(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var MO=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&NO(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),NO(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),NO(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)){if(e<this.left.length){let t=this.left.splice(e,1/0);NO(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);NO(this.left,t.reverse())}}}};function NO(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function PO(e){let t={},n=-1,r,i,a,o,s,c,l,u=new MO(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,FO(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`&&o[1].type!==`listItemIndent`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return MD(e,0,1/0,u.slice(0)),!l}function FO(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var IO={resolve:RO,tokenize:zO},LO={partial:!0,tokenize:BO};function RO(e){return PO(e),e}function zO(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):WD(t)?e.check(LO,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function BO(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),ZD(e,a,`linePrefix`)}function a(i){if(i===null||WD(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function VO(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||BD(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||WD(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||GD(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||BD(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function HO(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):WD(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||WD(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!KD(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function UO(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):WD(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),ZD(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||WD(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function WO(e,t){let n;return r;function r(i){return WD(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):KD(i)?ZD(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var GO={name:`definition`,tokenize:qO},KO={partial:!0,tokenize:JO};function qO(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return HO.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=LD(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return GD(t)?WO(e,l)(t):l(t)}function l(t){return VO(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(KO,d,d)(t)}function d(t){return KD(t)?ZD(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||WD(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function JO(e,t,n){return r;function r(t){return GD(t)?WO(e,i)(t):n(t)}function i(t){return UO(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return KD(t)?ZD(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||WD(e)?t(e):n(e)}}var YO={name:`hardBreakEscape`,tokenize:XO};function XO(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return WD(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var ZO={name:`headingAtx`,resolve:QO,tokenize:$O};function QO(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},MD(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function $O(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||GD(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||WD(n)?(e.exit(`atxHeading`),t(n)):KD(n)?ZD(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||GD(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var ek=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),tk=[`pre`,`script`,`style`,`textarea`],nk={concrete:!0,name:`htmlFlow`,resolveTo:ak,tokenize:ok},rk={partial:!0,tokenize:ck},ik={partial:!0,tokenize:sk};function ak(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function ok(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:I):RD(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):RD(a)?(e.consume(a),i=4,r.interrupt?t:I):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:I):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return RD(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||GD(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&tk.includes(l)?(i=1,r.interrupt?t(s):O(s)):ek.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||zD(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return KD(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||RD(t)?(e.consume(t),b):KD(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||zD(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):KD(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):KD(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||WD(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||GD(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||KD(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||WD(t)?O(t):KD(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),L):t===63&&i===3?(e.consume(t),I):t===93&&i===5?(e.consume(t),F):WD(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(rk,R,k)(t)):t===null||WD(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(ik,A,R)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||WD(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),I):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return tk.includes(n)?(e.consume(t),L):O(t)}return RD(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function F(t){return t===93?(e.consume(t),I):O(t)}function I(t){return t===62?(e.consume(t),L):t===45&&i===2?(e.consume(t),I):O(t)}function L(t){return t===null||WD(t)?(e.exit(`htmlFlowData`),R(t)):(e.consume(t),L)}function R(n){return e.exit(`htmlFlow`),t(n)}}function sk(e,t,n){let r=this;return i;function i(t){return WD(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function ck(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(dO,t,n)}}var lk={name:`htmlText`,tokenize:uk};function uk(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):RD(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):RD(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):WD(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):WD(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):WD(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):WD(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return RD(t)?(e.consume(t),S):n(t)}function S(t){return t===45||zD(t)?(e.consume(t),S):C(t)}function C(t){return WD(t)?(o=C,N(t)):KD(t)?(e.consume(t),C):M(t)}function w(t){return t===45||zD(t)?(e.consume(t),w):t===47||t===62||GD(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||RD(t)?(e.consume(t),E):WD(t)?(o=T,N(t)):KD(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||zD(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):WD(t)?(o=D,N(t)):KD(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):WD(t)?(o=O,N(t)):KD(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):WD(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||GD(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||GD(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return KD(t)?ZD(e,F,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):F(t)}function F(t){return e.enter(`htmlTextData`),o(t)}}var dk={name:`labelEnd`,resolveAll:hk,resolveTo:gk,tokenize:_k},fk={tokenize:vk},pk={tokenize:yk},mk={tokenize:bk};function hk(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&MD(e,0,e.length,n),e}function gk(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=ND(s,e.slice(a+1,a+r+3)),s=ND(s,[[`enter`,u,t]]),s=ND(s,iO(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=ND(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=ND(s,e.slice(o+1)),s=ND(s,[[`exit`,c,t]]),MD(e,a,e.length,s),e}function _k(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(LD(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(fk,u,o?u:d)(t):t===91?e.attempt(pk,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(mk,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function vk(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return GD(t)?WO(e,a)(t):a(t)}function a(t){return t===41?u(t):VO(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return GD(t)?WO(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?UO(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return GD(t)?WO(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function yk(e,t,n){let r=this;return i;function i(t){return HO.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(LD(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function bk(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var xk={name:`labelStartImage`,resolveAll:dk.resolveAll,tokenize:Sk};function Sk(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var Ck={name:`labelStartLink`,resolveAll:dk.resolveAll,tokenize:wk};function wk(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var Tk={name:`lineEnding`,tokenize:Ek};function Ek(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),ZD(e,t,`linePrefix`)}}var Dk={name:`thematicBreak`,tokenize:Ok};function Ok(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||WD(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),KD(t)?ZD(e,s,`whitespace`)(t):s(t))}}var kk={continuation:{tokenize:Nk},exit:Fk,name:`list`,tokenize:Mk},Ak={partial:!0,tokenize:Ik},jk={partial:!0,tokenize:Pk};function Mk(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:VD(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(Dk,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return VD(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(dO,r.interrupt?n:u,e.attempt(Ak,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return KD(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function Nk(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(dO,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ZD(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!KD(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(jk,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,ZD(e,e.attempt(kk,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function Pk(e,t,n){let r=this;return ZD(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function Fk(e){e.exit(this.containerState.type)}function Ik(e,t,n){let r=this;return ZD(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!KD(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var Lk={name:`setextUnderline`,resolveTo:Rk,tokenize:zk};function Rk(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function zk(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),KD(t)?ZD(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||WD(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var Bk={tokenize:Vk};function Vk(e){let t=this,n=e.attempt(dO,r,e.attempt(this.parser.constructs.flowInitial,i,ZD(e,e.attempt(this.parser.constructs.flow,i,e.attempt(IO,i)),`linePrefix`)));return n;function r(r){if(r===null)e.consume(r);else return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null)e.consume(r);else return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var Hk={resolveAll:Kk()},Uk=Gk(`string`),Wk=Gk(`text`);function Gk(e){return{resolveAll:Kk(e===`text`?qk:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null)t.consume(e);else return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function Kk(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function qk(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var Jk=s({attentionMarkers:()=>nA,contentInitial:()=>Xk,disable:()=>rA,document:()=>Yk,flow:()=>Qk,flowInitial:()=>Zk,insideSpan:()=>tA,string:()=>$k,text:()=>eA}),Yk={42:kk,43:kk,45:kk,48:kk,49:kk,50:kk,51:kk,52:kk,53:kk,54:kk,55:kk,56:kk,57:kk,62:pO},Xk={91:GO},Zk={[-2]:wO,[-1]:wO,32:wO},Qk={35:ZO,42:Dk,45:[Lk,Dk],60:nk,61:Lk,95:Dk,96:xO,126:xO},$k={38:vO,92:_O},eA={[-5]:Tk,[-4]:Tk,[-3]:Tk,33:xk,38:vO,42:aO,60:[lO,lk],91:Ck,92:[YO,_O],93:dk,95:aO,96:OO},tA={null:[aO,Hk]},nA={null:[42,95]},rA={null:[]};function iA(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=ND(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=iO(a,l.events,l),l.events):[]}function f(e,t){return oA(p(e),t)}function p(e){return aA(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){WD(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&MD(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function aA(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function oA(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
@@ -118,4 +118,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
118
118
  L0 `+r+`
119
119
  L`+r/2+` 0
120
120
  `,fill:i,opacity:o,strokeWidth:c,stroke:l===void 0?`transparent`:l,style:{pointerEvents:`none`}})})};function X6(){return X6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X6.apply(null,arguments)}var Z6={translateX:0,translateY:0,padding:0,itemsSpacing:0,itemDirection:`left-to-right`,justify:!1,symbolShape:`square`,symbolSize:16,symbolSpacing:8},Q6={top:0,right:0,bottom:0,left:0},$6=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,a=e.itemCount,o=e.itemWidth,s=e.itemHeight;if(typeof i!=`number`&&(typeof(t=i)!=`object`||Array.isArray(t)||t===null))throw Error(`Invalid property padding, must be one of: number, object`);var c=typeof i==`number`?{top:i,right:i,bottom:i,left:i}:X6({},Q6,i),l=c.left+c.right,u=c.top+c.bottom,d=o+l,f=s+u,p=(a-1)*r;return n===`row`?d=o*a+p+l:n===`column`&&(f=s*a+p+u),{width:d,height:f,padding:c}},e8=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,a=e.containerHeight,o=e.width,s=e.height,c=n,l=r;switch(t){case`top`:c+=(i-o)/2;break;case`top-right`:c+=i-o;break;case`right`:c+=i-o,l+=(a-s)/2;break;case`bottom-right`:c+=i-o,l+=a-s;break;case`bottom`:c+=(i-o)/2,l+=a-s;break;case`bottom-left`:l+=a-s;break;case`left`:l+=(a-s)/2;break;case`center`:c+=(i-o)/2,l+=(a-s)/2}return{x:c,y:l}},t8=function(e){var t,n,r,i,a,o,s=e.direction,c=e.justify,l=e.symbolSize,u=e.symbolSpacing,d=e.width,f=e.height;switch(s){case`left-to-right`:t=0,n=(f-l)/2,i=f/2,o=`central`,c?(r=d,a=`end`):(r=l+u,a=`start`);break;case`right-to-left`:t=d-l,n=(f-l)/2,i=f/2,o=`central`,c?(r=0,a=`start`):(r=d-l-u,a=`end`);break;case`top-to-bottom`:t=(d-l)/2,n=0,r=d/2,a=`middle`,c?(i=f,o=`alphabetic`):(i=l+u,o=`text-before-edge`);break;case`bottom-to-top`:t=(d-l)/2,n=f-l,r=d/2,a=`middle`,c?(i=0,o=`text-before-edge`):(i=f-l-u,o=`alphabetic`)}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:a,labelAlignment:o}},n8={circle:K6,diamond:q6,square:J6,triangle:Y6},r8=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.data,o=e.direction,s=o===void 0?Z6.itemDirection:o,c=e.justify,l=c===void 0?Z6.justify:c,u=e.textColor,d=e.background,f=d===void 0?`transparent`:d,p=e.opacity,m=p===void 0?1:p,h=e.symbolShape,g=h===void 0?Z6.symbolShape:h,_=e.symbolSize,v=_===void 0?Z6.symbolSize:_,y=e.symbolSpacing,b=y===void 0?Z6.symbolSpacing:y,x=e.symbolBorderWidth,S=x===void 0?0:x,C=e.symbolBorderColor,T=C===void 0?`transparent`:C,E=e.onClick,D=e.onMouseEnter,O=e.onMouseLeave,k=e.toggleSerie,A=e.effects,j=(0,w.useState)({}),M=j[0],N=j[1],P=oU(),F=(0,w.useCallback)((function(e){A&&N(A.filter((function(e){return e.on===`hover`})).reduce((function(e,t){return X6({},e,t.style)}),{})),D?.(a,e)}),[D,a,A]),I=(0,w.useCallback)((function(e){A&&N(A.filter((function(e){return e.on!==`hover`})).reduce((function(e,t){return X6({},e,t.style)}),{})),O?.(a,e)}),[O,a,A]),L=t8({direction:s,justify:l,symbolSize:M.symbolSize??v,symbolSpacing:b,width:r,height:i}),R=L.symbolX,z=L.symbolY,ee=L.labelX,B=L.labelY,V=L.labelAnchor,te=L.labelAlignment,ne=[E,D,O,k].some((function(e){return e!==void 0})),H=typeof g==`function`?g:n8[g];return(0,G.jsxs)(`g`,{transform:`translate(`+t+`,`+n+`)`,style:{opacity:M.itemOpacity??m},children:[(0,G.jsx)(`rect`,{width:r,height:i,fill:M.itemBackground??f,style:{cursor:ne?`pointer`:`auto`},onClick:function(e){E?.(a,e),k?.(a.id)},onMouseEnter:F,onMouseLeave:I}),w.createElement(H,X6({id:a.id,x:R,y:z,size:M.symbolSize??v,fill:a.fill??a.color??`black`,borderWidth:M.symbolBorderWidth??S,borderColor:M.symbolBorderColor??T},a.hidden?P.legends.hidden.symbol:void 0)),(0,G.jsx)(R2,{textAnchor:V,style:X6({},P.legends.text,{fill:M.itemTextColor??u??P.legends.text.fill??`black`,dominantBaseline:te,pointerEvents:`none`,userSelect:`none`},a.hidden?P.legends.hidden.text:void 0),x:ee,y:B,children:a.label})]})},i8=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,a=e.padding,o=a===void 0?Z6.padding:a,s=e.justify,c=e.effects,l=e.itemWidth,u=e.itemHeight,d=e.itemDirection,f=d===void 0?Z6.itemDirection:d,p=e.itemsSpacing,m=p===void 0?Z6.itemsSpacing:p,h=e.itemTextColor,g=e.itemBackground,_=g===void 0?`transparent`:g,v=e.itemOpacity,y=v===void 0?1:v,b=e.symbolShape,x=e.symbolSize,S=e.symbolSpacing,C=e.symbolBorderWidth,w=e.symbolBorderColor,T=e.onClick,E=e.onMouseEnter,D=e.onMouseLeave,O=e.toggleSerie,k=$6({itemCount:t.length,itemWidth:l,itemHeight:u,itemsSpacing:m,direction:i,padding:o}).padding,A=i===`row`?l+m:0,j=i===`column`?u+m:0;return(0,G.jsx)(`g`,{transform:`translate(`+n+`,`+r+`)`,children:t.map((function(e,t){return(0,G.jsx)(r8,{data:e,x:t*A+k.left,y:t*j+k.top,width:l,height:u,direction:f,justify:s,effects:c,textColor:h,background:_,opacity:y,symbolShape:b,symbolSize:x,symbolSpacing:S,symbolBorderWidth:C,symbolBorderColor:w,onClick:T,onMouseEnter:E,onMouseLeave:D,toggleSerie:O},t)}))})},a8=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,i=e.translateX,a=i===void 0?Z6.translateX:i,o=e.translateY,s=o===void 0?Z6.translateY:o,c=e.anchor,l=e.direction,u=e.padding,d=u===void 0?Z6.padding:u,f=e.justify,p=e.itemsSpacing,m=p===void 0?Z6.itemsSpacing:p,h=e.itemWidth,g=e.itemHeight,_=e.itemDirection,v=e.itemTextColor,y=e.itemBackground,b=e.itemOpacity,x=e.symbolShape,S=e.symbolSize,C=e.symbolSpacing,w=e.symbolBorderWidth,T=e.symbolBorderColor,E=e.onClick,D=e.onMouseEnter,O=e.onMouseLeave,k=e.toggleSerie,A=e.effects,j=$6({itemCount:t.length,itemsSpacing:m,itemWidth:h,itemHeight:g,direction:l,padding:d}),M=j.width,N=j.height,P=e8({anchor:c,translateX:a,translateY:s,containerWidth:n,containerHeight:r,width:M,height:N}),F=P.x,I=P.y;return(0,G.jsx)(i8,{data:t,x:F,y:I,direction:l,padding:d,justify:f,effects:A,itemsSpacing:m,itemWidth:h,itemHeight:g,itemDirection:_,itemTextColor:v,itemBackground:y,itemOpacity:b,symbolShape:x,symbolSize:S,symbolSpacing:C,symbolBorderWidth:w,symbolBorderColor:T,onClick:E,onMouseEnter:D,onMouseLeave:O,toggleSerie:typeof k==`boolean`?void 0:k})},o8={start:`left`,middle:`center`,end:`right`},s8=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,a=t.translateX,o=a===void 0?0:a,s=t.translateY,c=s===void 0?0:s,l=t.anchor,u=t.direction,d=t.padding,f=d===void 0?0:d,p=t.justify,m=p!==void 0&&p,h=t.itemsSpacing,g=h===void 0?0:h,_=t.itemWidth,v=t.itemHeight,y=t.itemDirection,b=y===void 0?`left-to-right`:y,x=t.itemTextColor,S=t.symbolSize,C=S===void 0?16:S,w=t.symbolSpacing,T=w===void 0?8:w,E=t.theme,D=$6({itemCount:n.length,itemWidth:_,itemHeight:v,itemsSpacing:g,direction:u,padding:f}),O=D.width,k=D.height,A=D.padding,j=e8({anchor:l,translateX:o,translateY:c,containerWidth:r,containerHeight:i,width:O,height:k}),M=j.x,N=j.y,P=u===`row`?_+g:0,F=u===`column`?v+g:0;e.save(),e.translate(M,N),M2(e,E.legends.text),n.forEach((function(t,n){var r=n*P+A.left,i=n*F+A.top,a=t8({direction:b,justify:m,symbolSize:C,symbolSpacing:T,width:_,height:v}),o=a.symbolX,s=a.symbolY,c=a.labelX,l=a.labelY,u=a.labelAnchor,d=a.labelAlignment;e.fillStyle=t.color??`black`,e.fillRect(r+o,i+s,C,C),e.textAlign=o8[u],d===`central`&&(e.textBaseline=`middle`),N2(e,X6({},E.legends.text,{fill:x??E.legends.text.fill}),String(t.label),r+c,i+l)})),e.restore()},c8=function(e,t,n,r,i,a){a>0?(e.moveTo(t+a,n),e.lineTo(t+r-a,n),e.quadraticCurveTo(t+r,n,t+r,n+a),e.lineTo(t+r,n+i-a),e.quadraticCurveTo(t+r,n+i,t+r-a,n+i),e.lineTo(t+a,n+i),e.quadraticCurveTo(t,n+i,t,n+i-a),e.lineTo(t,n+a),e.quadraticCurveTo(t,n,t+a,n),e.closePath()):e.rect(t,n,r,i)};function l8(){return l8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l8.apply(null,arguments)}function u8(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var d8,f8=function(e){var t=e.bars,n=e.annotations,r=p6({data:t,annotations:n,getPosition:function(e){return{x:e.x+e.width/2,y:e.y+e.height/2}},getDimensions:function(e){var t=e.height,n=e.width;return{width:n,height:t,size:Math.max(n,t)}}});return(0,G.jsx)(G.Fragment,{children:r.map((function(e,t){return(0,G.jsx)(x6,l8({},e),t)}))})},p8=function(e){var t=e.width,n=e.height,r=e.legends,i=e.toggleSerie;return(0,G.jsx)(G.Fragment,{children:r.map((function(e,r){var a=e[0],o=e[1];return(0,G.jsx)(a8,l8({},a,{containerWidth:t,containerHeight:n,data:a.data??o,toggleSerie:a.toggleSerie&&a.dataFrom===`keys`?i:void 0}),r)}))})},m8=[`data`],h8=function(e){var t=e.bar,n=t.data,r=u8(t,m8),i=e.style,a=i.borderColor,o=i.color,s=i.height,c=i.labelColor,l=i.labelOpacity,u=i.labelX,d=i.labelY,f=i.transform,p=i.width,m=i.textAnchor,h=e.borderRadius,g=e.borderWidth,_=e.label,v=e.shouldRenderLabel,y=e.isInteractive,b=e.onClick,x=e.onMouseEnter,S=e.onMouseLeave,C=e.tooltip,T=e.isFocusable,E=e.ariaLabel,D=e.ariaLabelledBy,O=e.ariaDescribedBy,k=e.ariaDisabled,A=e.ariaHidden,j=oU(),M=SU(),N=M.showTooltipFromEvent,P=M.showTooltipAt,F=M.hideTooltip,I=(0,w.useMemo)((function(){return function(){return(0,w.createElement)(C,l8({},r,n))}}),[C,r,n]),L=(0,w.useCallback)((function(e){b?.(l8({color:r.color},n),e)}),[r,n,b]),R=(0,w.useCallback)((function(e){return N(I(),e)}),[N,I]),z=(0,w.useCallback)((function(e){x?.(n,e),N(I(),e)}),[n,x,N,I]),ee=(0,w.useCallback)((function(e){S?.(n,e),F()}),[n,F,S]),B=(0,w.useCallback)((function(){P(I(),[r.absX+r.width/2,r.absY])}),[P,I,r]),V=(0,w.useCallback)((function(){F()}),[F]);return(0,G.jsxs)(BB.g,{transform:f,children:[(0,G.jsx)(BB.rect,{width:bB(p,(function(e){return Math.max(e,0)})),height:bB(s,(function(e){return Math.max(e,0)})),rx:h,ry:h,fill:n.fill??o,strokeWidth:g,stroke:a,focusable:T,tabIndex:T?0:void 0,"aria-label":E?E(n):void 0,"aria-labelledby":D?D(n):void 0,"aria-describedby":O?O(n):void 0,"aria-disabled":k?k(n):void 0,"aria-hidden":A?A(n):void 0,onMouseEnter:y?z:void 0,onMouseMove:y?R:void 0,onMouseLeave:y?ee:void 0,onClick:y?L:void 0,onFocus:y&&T?B:void 0,onBlur:y&&T?V:void 0,"data-testid":`bar.item.`+n.id+`.`+n.index}),v&&(0,G.jsx)(R2,{x:u,y:d,textAnchor:m,dominantBaseline:`central`,fillOpacity:l,style:l8({},j.labels.text,{pointerEvents:`none`,fill:c}),children:_})]})},g8=[`color`,`label`],_8={indexBy:`id`,keys:[`value`],groupMode:`stacked`,layout:`vertical`,valueScale:{type:`linear`,nice:!0,round:!1},indexScale:{type:`band`,round:!1},padding:.1,innerPadding:0,enableGridX:!1,enableGridY:!0,enableLabel:!0,label:`formattedValue`,labelPosition:`middle`,labelOffset:0,labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{theme:`labels.text.fill`},colorBy:`id`,colors:{scheme:`nivo`},borderRadius:0,borderWidth:0,borderColor:{from:`color`},isInteractive:!0,tooltip:function(e){var t=e.color,n=e.label,r=u8(e,g8);return(0,G.jsx)(pU,{id:n,value:r.formattedValue,enableChip:!0,color:t})},tooltipLabel:function(e){return e.id+` - `+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],enableTotals:!1,totalsOffset:10},v8=l8({},_8,{layers:[`grid`,`axes`,`bars`,`totals`,`markers`,`legends`,`annotations`],axisTop:null,axisRight:null,axisBottom:{},axisLeft:{},barComponent:h8,defs:[],fill:[],markers:[],animate:!0,animateOnMount:!1,motionConfig:`default`,role:`img`,isFocusable:!1}),y8=l8({},_8,{layers:[`grid`,`axes`,`bars`,`totals`,`legends`,`annotations`],axisTop:null,axisRight:null,axisBottom:{},axisLeft:{},renderBar:function(e,t){var n=t.bar,r=n.color,i=n.height,a=n.width,o=n.x,s=n.y,c=t.borderColor,l=t.borderRadius,u=t.borderWidth,d=t.label,f=t.shouldRenderLabel,p=t.labelStyle,m=t.labelX,h=t.labelY,g=t.textAnchor;e.fillStyle=r,u>0&&(e.strokeStyle=c,e.lineWidth=u),e.beginPath(),c8(e,o,s,a,i,Math.min(l,i)),e.fill(),u>0&&e.stroke(),f&&(e.textBaseline=`middle`,e.textAlign=g===`middle`?`center`:g,N2(e,p,d,o+m,s+h))},pixelRatio:typeof window<`u`&&(d8=window.devicePixelRatio)!=null?d8:1}),b8=function(e,t,n,r,i,a){return c3(r,{all:e.map(t),min:0,max:0},i,a).padding(n)},x8=function(e,t){return e.map((function(e){return l8({},t.reduce((function(e,t){return e[t]=null,e}),{}),e)}))},S8=function(e){return Object.keys(e).reduce((function(t,n){return e[n]&&(t[n]=e[n]),t}),{})},C8=function(e){return[e,Number(e)]};function w8(e,t,n,r){return e===void 0&&(e=_8.layout),n===void 0&&(n=_8.labelPosition),r===void 0&&(r=_8.labelOffset),function(i,a){var o=r*(t?-1:1);if(e===`horizontal`){var s=i/2;return n===`start`?s=t?i:0:n===`end`&&(s=t?0:i),{labelX:s+o,labelY:a/2,textAnchor:n===`middle`?`middle`:t?`end`:`start`}}var c=a/2;return n===`start`?c=t?0:a:n===`end`&&(c=t?a:0),{labelX:i/2,labelY:c-o,textAnchor:`middle`}}}var T8=[`layout`,`width`,`height`,`padding`,`innerPadding`,`valueScale`,`indexScale`,`hiddenIds`],E8=function(e,t){return e>t},D8=function(e,t){return e<t},O8=function(e,t){return Array.from(` `.repeat(t-e),(function(t,n){return e+n}))},k8=function(e){return E8(e,0)?0:e},A8=function(e,t,n,r){var i=e.data,a=e.formatValue,o=e.getColor,s=e.getIndex,c=e.getTooltipLabel,l=e.innerPadding,u=l===void 0?0:l,d=e.keys,f=e.xScale,p=e.yScale,m=e.margin,h=n?D8:E8,g=i.map(S8),_=[];return d.forEach((function(e,n){return O8(0,f.domain().length).forEach((function(l){var d,v=C8(i[l][e]),y=v[0],b=v[1],x=s(i[l]),S=(f(x)??0)+t*n+u*n,C=h(d=b,0)?p(d)??0:r,w=function(e,t){return h(e,0)?r-t:(p(e)??0)-r}(b,C),T={id:e,value:y===null?y:b,formattedValue:a(b),hidden:!1,index:l,indexValue:x,data:g[l]};_.push({key:e+`.`+T.indexValue,index:_.length,data:T,x:S,y:C,absX:m.left+S,absY:m.top+C,width:t,height:w,color:o(T),label:c(T)})}))})),_},j8=function(e,t,n,r){var i=e.data,a=e.formatValue,o=e.getIndex,s=e.getColor,c=e.getTooltipLabel,l=e.keys,u=e.innerPadding,d=u===void 0?0:u,f=e.xScale,p=e.yScale,m=e.margin,h=n?D8:E8,g=i.map(S8),_=[];return l.forEach((function(e,n){return O8(0,p.domain().length).forEach((function(l){var u,v=C8(i[l][e]),y=v[0],b=v[1],x=o(i[l]),S=h(u=b,0)?r:f(u)??0,C=(p(x)??0)+t*n+d*n,w=function(e,t){return h(e,0)?(f(e)??0)-r:r-t}(b,S),T={id:e,value:y===null?y:b,formattedValue:a(b),hidden:!1,index:l,indexValue:x,data:g[l]};_.push({key:e+`.`+T.indexValue,index:_.length,data:T,x:S,y:C,absX:m.left+S,absY:m.top+C,width:w,height:t,color:s(T),label:c(T)})}))})),_},M8=function(e){var t,n,r=e.layout,i=e.width,a=e.height,o=e.padding,s=o===void 0?0:o,c=e.innerPadding,l=c===void 0?0:c,u=e.valueScale,d=e.indexScale,f=e.hiddenIds,p=f===void 0?[]:f,m=u8(e,T8),h=m.keys.filter((function(e){return!p.includes(e)})),g=x8(m.data,h),_=r===`vertical`?[`y`,`x`,i]:[`x`,`y`,a],v=_[0],y=_[1],b=_[2],x=b8(g,m.getIndex,s,d,b,y),S=u.min===`auto`?k8:function(e){return e},C=g.reduce((function(e,t){return[].concat(e,h.map((function(e){return t[e]})))}),[]).filter(Boolean),w=c3(u,{all:C,min:S(Math.min.apply(Math,C)),max:(n=Math.max.apply(Math,C),isFinite(n)?n:0)},v===`x`?i:a,v),T=r===`vertical`?[x,w]:[w,x],E=T[0],D=T[1],O=(x.bandwidth()-l*(h.length-1))/h.length,k=[l8({},m,{data:g,keys:h,innerPadding:l,xScale:E,yScale:D}),O,(t=u.reverse)!=null&&t,w(0)??0];return{xScale:E,yScale:D,bars:O>0?r===`vertical`?A8.apply(void 0,k):j8.apply(void 0,k):[]}},N8=[`data`,`layout`,`width`,`height`,`padding`,`valueScale`,`indexScale`,`hiddenIds`],P8=function(e){var t;return e.some(Array.isArray)?P8((t=[]).concat.apply(t,e)):e},F8=function(e,t,n){var r=e.formatValue,i=e.getColor,a=e.getIndex,o=e.getTooltipLabel,s=e.innerPadding,c=e.stackedData,l=e.xScale,u=e.yScale,d=e.margin,f=[];return c.forEach((function(e){return l.domain().forEach((function(c,p){var m=e[p],h=l(a(m.data))??0,g=(function(e){return u(e[+!n])}(m)??0)+.5*s,_=function(e,t){return(u(e[+!!n])??0)-t}(m,g)-s,v=C8(m.data[e.key]),y=v[0],b=v[1],x={id:e.key,value:y===null?y:b,formattedValue:r(b),hidden:!1,index:p,indexValue:c,data:S8(m.data)};f.push({key:e.key+`.`+c,index:f.length,data:x,x:h,y:g,absX:d.left+h,absY:d.top+g,width:t,height:_,color:i(x),label:o(x)})}))})),f},I8=function(e,t,n){var r=e.formatValue,i=e.getColor,a=e.getIndex,o=e.getTooltipLabel,s=e.innerPadding,c=e.stackedData,l=e.xScale,u=e.yScale,d=e.margin,f=[];return c.forEach((function(e){return u.domain().forEach((function(c,p){var m=e[p],h=u(a(m.data))??0,g=(function(e){return l(e[+!!n])}(m)??0)+.5*s,_=function(e,t){return(l(e[+!n])??0)-t}(m,g)-s,v=C8(m.data[e.key]),y=v[0],b=v[1],x={id:e.key,value:y===null?y:b,formattedValue:r(b),hidden:!1,index:p,indexValue:c,data:S8(m.data)};f.push({key:e.key+`.`+c,index:f.length,data:x,x:g,y:h,absX:d.left+g,absY:d.top+h,width:_,height:t,color:i(x),label:o(x)})}))})),f},L8=function(e){var t,n,r=e.data,i=e.layout,a=e.width,o=e.height,s=e.padding,c=s===void 0?0:s,l=e.valueScale,u=e.indexScale,d=e.hiddenIds,f=d===void 0?[]:d,p=u8(e,N8),m=p.keys.filter((function(e){return!f.includes(e)})),h=cq().keys(m).offset(lq)(x8(r,m)),g=i===`vertical`?[`y`,`x`,a]:[`x`,`y`,o],_=g[0],v=g[1],y=g[2],b=b8(r,p.getIndex,c,u,y,v),x=(n=P8(h),l.type===`log`?n.filter((function(e){return e!==0})):n),S=c3(l,{all:x,min:Math.min.apply(Math,x),max:Math.max.apply(Math,x)},_===`x`?a:o,_),C=i===`vertical`?[b,S]:[S,b],w=C[0],T=C[1],E=p.innerPadding>0?p.innerPadding:0,D=b.bandwidth(),O=[l8({},p,{innerPadding:E,stackedData:h,xScale:w,yScale:T}),D,(t=l.reverse)!=null&&t];return{xScale:w,yScale:T,bars:D>0?i===`vertical`?F8.apply(void 0,O):I8.apply(void 0,O):[]}},R8=function(e){var t=e.bars,n=e.direction,r=e.from,i=e.groupMode,a=e.layout,o=e.legendLabel,s=e.reverse,c=x2(o??(r===`indexes`?`indexValue`:`id`));return r===`indexes`?function(e,t,n){var r=(0,W4.default)(e.map((function(e){return{id:e.data.indexValue??``,label:n(e.data),hidden:e.data.hidden,color:e.color??`#000`}})),(function(e){return e.id}));return t===`horizontal`&&r.reverse(),r}(t,a,c):function(e,t,n,r,i,a){var o=(0,W4.default)(e.map((function(e){return{id:e.data.id,label:a(e.data),hidden:e.data.hidden,color:e.color??`#000`}})),(function(e){return e.id}));return(t===`vertical`&&r===`stacked`&&n===`column`&&!0!==i||t===`horizontal`&&r===`stacked`&&!0===i)&&o.reverse(),o}(t,a,n,i,s,c)},z8=function(e,t,n){var r=e.get(t)||0;e.set(t,r+n)},B8=function(e,t,n){var r=e.get(t)||0;e.set(t,r+(n>0?n:0))},V8=function(e,t,n){var r=e.get(t)||0;e.set(t,Math.max(r,Number(n)))},H8=function(e,t){var n=e.get(t)||0;e.set(t,n+1)},U8=function(e){var t,n=e.indexBy,r=n===void 0?_8.indexBy:n,i=e.keys,a=i===void 0?_8.keys:i,o=e.label,s=o===void 0?_8.label:o,c=e.tooltipLabel,l=c===void 0?_8.tooltipLabel:c,u=e.valueFormat,d=e.colors,f=d===void 0?_8.colors:d,p=e.colorBy,m=p===void 0?_8.colorBy:p,h=e.borderColor,g=h===void 0?_8.borderColor:h,_=e.labelTextColor,v=_===void 0?_8.labelTextColor:_,y=e.groupMode,b=y===void 0?_8.groupMode:y,x=e.layout,S=x===void 0?_8.layout:x,C=e.data,T=e.margin,E=e.width,D=e.height,O=e.padding,k=O===void 0?_8.padding:O,A=e.innerPadding,j=A===void 0?_8.innerPadding:A,M=e.valueScale,N=M===void 0?_8.valueScale:M,P=e.indexScale,F=P===void 0?_8.indexScale:P,I=e.initialHiddenIds,L=I===void 0?_8.initialHiddenIds:I,R=e.enableLabel,z=R===void 0?_8.enableLabel:R,ee=e.labelSkipWidth,B=ee===void 0?_8.labelSkipWidth:ee,V=e.labelSkipHeight,te=V===void 0?_8.labelSkipHeight:V,ne=e.legends,H=ne===void 0?_8.legends:ne,re=e.legendLabel,ie=e.totalsOffset,ae=ie===void 0?_8.totalsOffset:ie,U=(0,w.useState)(L??[]),W=U[0],oe=U[1],se=(0,w.useCallback)((function(e){oe((function(t){return t.indexOf(e)>-1?t.filter((function(t){return t!==e})):[].concat(t,[e])}))}),[]),ce=S2(r),le=S2(s),ue=S2(l),de=b2(u),fe=oU(),pe=G6(f,m),me=U6(g,fe),he=U6(v,fe),ge=(b===`grouped`?M8:L8)({layout:S,data:C,getIndex:ce,keys:a,width:E,height:D,getColor:pe,padding:k,innerPadding:j,valueScale:N,indexScale:F,hiddenIds:W,formatValue:de,getTooltipLabel:ue,margin:T}),_e=ge.bars,ve=ge.xScale,ye=ge.yScale,be=(0,w.useMemo)((function(){return _e.filter((function(e){return e.data.value!==null})).map((function(e,t){return l8({},e,{index:t})}))}),[_e]),xe=(0,w.useCallback)((function(e){var t=e.width,n=e.height;return!!z&&!(B>0&&t<B)&&!(te>0&&n<te)}),[z,B,te]),Se=(0,w.useMemo)((function(){return a.map((function(e){var t=_e.find((function(t){return t.data.id===e}));return l8({},t,{data:l8({id:e},t?.data,{hidden:W.includes(e)})})}))}),[W,a,_e]),Ce=(t=N.reverse)!=null&&t;return{bars:_e,barsWithValue:be,xScale:ve,yScale:ye,getIndex:ce,getLabel:le,getTooltipLabel:ue,formatValue:de,getColor:pe,getBorderColor:me,getLabelColor:he,shouldRenderBarLabel:xe,hiddenIds:W,toggleSerie:se,legendsWithData:(0,w.useMemo)((function(){return H.map((function(e){return[e,R8({bars:e.dataFrom===`keys`?Se:_e,direction:e.direction,from:e.dataFrom,groupMode:b,layout:S,legendLabel:re,reverse:Ce})]}))}),[H,Se,_e,b,S,re,Ce]),barTotals:(0,w.useMemo)((function(){return function(e,t,n,r,i,a,o){r===void 0&&(r=_8.layout),i===void 0&&(i=_8.groupMode);var s=[];if(e.length===0)return s;var c=new Map,l=e[0].width,u=e[0].height;if(i===`stacked`){var d=new Map;e.forEach((function(e){var t=e.data,n=t.indexValue,r=t.value;z8(c,n,Number(r)),B8(d,n,Number(r))})),d.forEach((function(e,i){var d,f,p,m=c.get(i)||0;r===`vertical`?(d=t(i),f=n(e),p=n(e/2)):(d=t(e),f=n(i),p=t(e/2)),d+=r===`vertical`?l/2:a,f+=r===`vertical`?-a:u/2,s.push({key:`total_`+i,x:d,y:f,value:m,formattedValue:o(m),animationOffset:p})}))}else if(i===`grouped`){var f=new Map,p=new Map;e.forEach((function(e){var t=e.data,n=t.indexValue,r=t.value;z8(c,n,Number(r)),V8(f,n,Number(r)),H8(p,n)})),f.forEach((function(e,i){var d,f,m,h=c.get(i)||0,g=p.get(i);r===`vertical`?(d=t(i),f=n(e),m=n(e/2)):(d=t(e),f=n(i),m=t(e/2)),d+=r===`vertical`?g*l/2:a,f+=r===`vertical`?-a:g*u/2,s.push({key:`total_`+i,x:d,y:f,value:h,formattedValue:o(h),animationOffset:m})}))}return s}(_e,ve,ye,S,b,ae,de)}),[_e,ve,ye,S,b,ae,de])}},W8=function(e){var t=e.data,n=e.springConfig,r=e.animate,i=e.layout,a=i===void 0?v8.layout:i,o=oU();return pB(t,{keys:function(e){return e.key},from:function(e){return{x:a===`vertical`?e.x:e.animationOffset,y:a===`vertical`?e.animationOffset:e.y,labelOpacity:0}},enter:function(e){return{x:e.x,y:e.y,labelOpacity:1}},update:function(e){return{x:e.x,y:e.y,labelOpacity:1}},leave:function(e){return{x:a===`vertical`?e.x:e.animationOffset,y:a===`vertical`?e.animationOffset:e.y,labelOpacity:0}},config:n,immediate:!r,initial:r?void 0:null})((function(e,t){return(0,G.jsx)(BB.text,{x:e.x,y:e.y,fillOpacity:e.labelOpacity,style:l8({},o.labels.text,{pointerEvents:`none`}),fontWeight:`bold`,fontSize:o.labels.text.fontSize,fontFamily:o.labels.text.fontFamily,textAnchor:a===`vertical`?`middle`:`start`,alignmentBaseline:a===`vertical`?`alphabetic`:`middle`,children:t.formattedValue},t.key)}))},G8=[`isInteractive`,`animate`,`motionConfig`,`theme`,`renderWrapper`],K8=function(e){var t,n=e.data,r=e.indexBy,i=e.keys,a=e.margin,o=e.width,s=e.height,c=e.groupMode,l=e.layout,u=e.valueScale,d=e.indexScale,f=e.padding,p=e.innerPadding,m=e.axisTop,h=e.axisRight,g=e.axisBottom,_=g===void 0?v8.axisBottom:g,v=e.axisLeft,y=v===void 0?v8.axisLeft:v,b=e.enableGridX,x=b===void 0?v8.enableGridX:b,S=e.enableGridY,C=S===void 0?v8.enableGridY:S,T=e.gridXValues,E=e.gridYValues,D=e.layers,O=D===void 0?v8.layers:D,k=e.barComponent,A=k===void 0?v8.barComponent:k,j=e.enableLabel,M=j===void 0?v8.enableLabel:j,N=e.label,P=e.labelSkipWidth,F=P===void 0?v8.labelSkipWidth:P,I=e.labelSkipHeight,L=I===void 0?v8.labelSkipHeight:I,R=e.labelTextColor,z=e.labelPosition,ee=z===void 0?v8.labelPosition:z,B=e.labelOffset,V=B===void 0?v8.labelOffset:B,te=e.markers,ne=te===void 0?v8.markers:te,H=e.colorBy,re=e.colors,ie=e.defs,ae=ie===void 0?v8.defs:ie,U=e.fill,W=U===void 0?v8.fill:U,oe=e.borderRadius,se=oe===void 0?v8.borderRadius:oe,ce=e.borderWidth,le=ce===void 0?v8.borderWidth:ce,ue=e.borderColor,de=e.annotations,fe=de===void 0?v8.annotations:de,pe=e.legendLabel,me=e.tooltipLabel,he=e.valueFormat,ge=e.isInteractive,_e=ge===void 0?v8.isInteractive:ge,ve=e.tooltip,ye=ve===void 0?v8.tooltip:ve,be=e.onClick,xe=e.onMouseEnter,Se=e.onMouseLeave,Ce=e.legends,we=e.role,Te=we===void 0?v8.role:we,Ee=e.ariaLabel,De=e.ariaLabelledBy,Oe=e.ariaDescribedBy,ke=e.isFocusable,Ae=ke===void 0?v8.isFocusable:ke,je=e.barAriaLabel,Me=e.barAriaLabelledBy,Ne=e.barAriaDescribedBy,Pe=e.barAriaHidden,Fe=e.barAriaDisabled,Ie=e.initialHiddenIds,Le=e.enableTotals,Re=Le===void 0?v8.enableTotals:Le,ze=e.totalsOffset,Be=ze===void 0?v8.totalsOffset:ze,Ve=e.forwardedRef,He=F0(),Ue=He.animate,We=He.config,Ge=_2(o,s,a),Ke=Ge.outerWidth,qe=Ge.outerHeight,Je=Ge.margin,Ye=Ge.innerWidth,Xe=Ge.innerHeight,Ze=U8({indexBy:r,label:N,tooltipLabel:me,valueFormat:he,colors:re,colorBy:H,borderColor:ue,labelTextColor:R,groupMode:c,layout:l,data:n,keys:i,margin:Je,width:Ye,height:Xe,padding:f,innerPadding:p,valueScale:u,indexScale:d,enableLabel:M,labelSkipWidth:F,labelSkipHeight:L,legends:Ce,legendLabel:pe,initialHiddenIds:Ie,totalsOffset:Be}),Qe=Ze.bars,$e=Ze.barsWithValue,et=Ze.xScale,tt=Ze.yScale,nt=Ze.getLabel,rt=Ze.getTooltipLabel,it=Ze.getBorderColor,at=Ze.getLabelColor,ot=Ze.shouldRenderBarLabel,st=Ze.toggleSerie,ct=Ze.legendsWithData,lt=Ze.barTotals,ut=Ze.getColor,dt=w8(l,(t=u?.reverse)!=null&&t,ee,V),ft=pB($e,{keys:function(e){return e.key},from:function(e){return l8({borderColor:it(e),color:e.color,height:0,labelColor:at(e),labelOpacity:0},dt(e.width,e.height),{transform:`translate(`+e.x+`, `+(e.y+e.height)+`)`,width:e.width},l===`vertical`?{}:{height:e.height,transform:`translate(`+e.x+`, `+e.y+`)`,width:0})},enter:function(e){return l8({borderColor:it(e),color:e.color,height:e.height,labelColor:at(e),labelOpacity:1},dt(e.width,e.height),{transform:`translate(`+e.x+`, `+e.y+`)`,width:e.width})},update:function(e){return l8({borderColor:it(e),color:e.color,height:e.height,labelColor:at(e),labelOpacity:1},dt(e.width,e.height),{transform:`translate(`+e.x+`, `+e.y+`)`,width:e.width})},leave:function(e){return l8({borderColor:it(e),color:e.color,height:0,labelColor:at(e),labelOpacity:0},dt(e.width,e.height),{labelY:0,transform:`translate(`+e.x+`, `+(e.y+e.height)+`)`,width:e.width},l===`vertical`?{}:l8({},dt(e.width,e.height),{labelX:0,height:e.height,transform:`translate(`+e.x+`, `+e.y+`)`,width:0}))},config:We,immediate:!Ue,initial:Ue?void 0:null}),pt=(0,w.useMemo)((function(){return{borderRadius:se,borderWidth:le,enableLabel:M,isInteractive:_e,labelSkipWidth:F,labelSkipHeight:L,onClick:be,onMouseEnter:xe,onMouseLeave:Se,getTooltipLabel:rt,tooltip:ye,isFocusable:Ae,ariaLabel:je,ariaLabelledBy:Me,ariaDescribedBy:Ne,ariaHidden:Pe,ariaDisabled:Fe}}),[se,le,M,rt,_e,L,F,be,xe,Se,ye,Ae,je,Me,Ne,Pe,Fe]),mt=A2(ae,Qe,W,{dataKey:`data`,targetKey:`data.fill`}),ht={annotations:null,axes:null,bars:null,grid:null,legends:null,markers:null,totals:null};O.includes(`annotations`)&&(ht.annotations=(0,G.jsx)(f8,{bars:Qe,annotations:fe},`annotations`)),O.includes(`axes`)&&(ht.axes=(0,G.jsx)(S3,{xScale:et,yScale:tt,width:Ye,height:Xe,top:m,right:h,bottom:_,left:y},`axes`)),O.includes(`bars`)&&(ht.bars=(0,G.jsx)(w.Fragment,{children:ft((function(e,t){return(0,w.createElement)(A,l8({},pt,{bar:t,style:e,shouldRenderLabel:ot(t),label:nt(t.data)}))}))},`bars`)),O.includes(`grid`)&&(ht.grid=(0,G.jsx)(T3,{width:Ye,height:Xe,xScale:x?et:null,yScale:C?tt:null,xValues:T,yValues:E},`grid`)),O.includes(`legends`)&&(ht.legends=(0,G.jsx)(p8,{width:Ye,height:Xe,legends:ct,toggleSerie:st},`legends`)),O.includes(`markers`)&&(ht.markers=(0,G.jsx)(f2,{markers:ne,width:Ye,height:Xe,xScale:et,yScale:tt},`markers`)),O.includes(`totals`)&&Re&&(ht.totals=(0,G.jsx)(W8,{data:lt,springConfig:We,animate:Ue,layout:l},`totals`));var gt=l8({},pt,{margin:Je,width:o,height:s,innerWidth:Ye,innerHeight:Xe,bars:Qe,legendData:ct,enableLabel:M,xScale:et,yScale:tt,tooltip:ye,getTooltipLabel:rt,onClick:be,onMouseEnter:xe,onMouseLeave:Se,getColor:ut});return(0,G.jsx)(l2,{width:Ke,height:qe,margin:Je,defs:mt,role:Te,ariaLabel:Ee,ariaLabelledBy:De,ariaDescribedBy:Oe,isFocusable:Ae,ref:Ve,children:O.map((function(e,t){return typeof e==`function`?(0,G.jsx)(w.Fragment,{children:(0,w.createElement)(e,gt)},t):ht?.[e]??null}))})},q8=(0,w.forwardRef)((function(e,t){var n=e.isInteractive,r=n===void 0?v8.isInteractive:n,i=e.animate,a=i===void 0?v8.animate:i,o=e.motionConfig,s=o===void 0?v8.motionConfig:o,c=e.theme,l=e.renderWrapper,u=u8(e,G8);return(0,G.jsx)(R0,{animate:a,isInteractive:r,motionConfig:s,renderWrapper:l,theme:c,children:(0,G.jsx)(K8,l8({},u,{isInteractive:r,forwardedRef:t}))})})),J8=[`isInteractive`,`renderWrapper`,`theme`],Y8=function(e,t,n,r){return e.find((function(e){return T2(e.x+t.left,e.y+t.top,e.width,e.height,n,r)}))},X8=function(e){var t,n=e.data,r=e.indexBy,i=e.keys,a=e.margin,o=e.width,s=e.height,c=e.groupMode,l=e.layout,u=e.valueScale,d=e.indexScale,f=e.padding,p=e.innerPadding,m=e.axisTop,h=e.axisRight,g=e.axisBottom,_=g===void 0?y8.axisBottom:g,v=e.axisLeft,y=v===void 0?y8.axisLeft:v,b=e.enableGridX,x=b===void 0?y8.enableGridX:b,S=e.enableGridY,C=S===void 0?y8.enableGridY:S,T=e.gridXValues,E=e.gridYValues,D=e.labelPosition,O=D===void 0?y8.labelPosition:D,k=e.labelOffset,A=k===void 0?y8.labelOffset:k,j=e.layers,M=j===void 0?y8.layers:j,N=e.renderBar,P=N===void 0?y8.renderBar:N,F=e.enableLabel,I=F===void 0?y8.enableLabel:F,L=e.label,R=e.labelSkipWidth,z=R===void 0?y8.labelSkipWidth:R,ee=e.labelSkipHeight,B=ee===void 0?y8.labelSkipHeight:ee,V=e.labelTextColor,te=e.colorBy,ne=e.colors,H=e.borderRadius,re=H===void 0?y8.borderRadius:H,ie=e.borderWidth,ae=ie===void 0?y8.borderWidth:ie,U=e.borderColor,W=e.annotations,oe=W===void 0?y8.annotations:W,se=e.legendLabel,ce=e.tooltipLabel,le=e.valueFormat,ue=e.isInteractive,de=ue===void 0?y8.isInteractive:ue,fe=e.tooltip,pe=fe===void 0?y8.tooltip:fe,me=e.onClick,he=e.onMouseEnter,ge=e.onMouseLeave,_e=e.legends,ve=e.pixelRatio,ye=ve===void 0?y8.pixelRatio:ve,be=e.role,xe=e.forwardedRef,Se=e.enableTotals,Ce=Se===void 0?y8.enableTotals:Se,we=e.totalsOffset,Te=we===void 0?y8.totalsOffset:we,Ee=(0,w.useRef)(null),De=oU(),Oe=_2(o,s,a),ke=Oe.margin,Ae=Oe.innerWidth,je=Oe.innerHeight,Me=Oe.outerWidth,Ne=Oe.outerHeight,Pe=U8({indexBy:r,label:L,tooltipLabel:ce,valueFormat:le,colors:ne,colorBy:te,borderColor:U,labelTextColor:V,groupMode:c,layout:l,data:n,keys:i,margin:ke,width:Ae,height:je,padding:f,innerPadding:p,valueScale:u,indexScale:d,enableLabel:I,labelSkipWidth:z,labelSkipHeight:B,legends:_e,legendLabel:se,totalsOffset:Te}),Fe=Pe.bars,Ie=Pe.barsWithValue,Le=Pe.xScale,Re=Pe.yScale,ze=Pe.getLabel,Be=Pe.getTooltipLabel,Ve=Pe.getBorderColor,He=Pe.getLabelColor,Ue=Pe.shouldRenderBarLabel,We=Pe.legendsWithData,Ge=Pe.barTotals,Ke=Pe.getColor,qe=SU(),Je=qe.showTooltipFromEvent,Ye=qe.hideTooltip,Xe=m6({annotations:p6({data:Fe,annotations:oe,getPosition:function(e){return{x:e.x,y:e.y}},getDimensions:function(e){var t=e.width,n=e.height;return{width:t,height:n,size:Math.max(t,n)}}})}),Ze=(0,w.useMemo)((function(){return{borderRadius:re,borderWidth:ae,isInteractive:de,isFocusable:!1,labelSkipWidth:z,labelSkipHeight:B,margin:ke,width:o,height:s,innerWidth:Ae,innerHeight:je,bars:Fe,legendData:We,enableLabel:I,xScale:Le,yScale:Re,tooltip:pe,getTooltipLabel:Be,onClick:me,onMouseEnter:he,onMouseLeave:ge,getColor:Ke}}),[re,ae,de,z,B,ke,o,s,Ae,je,Fe,We,I,Le,Re,pe,Be,me,he,ge,Ke]),Qe=b2(le),$e=w8(l,(t=u?.reverse)!=null&&t,O,A);(0,w.useEffect)((function(){if(Ee.current){Ee.current.width=Me*ye,Ee.current.height=Ne*ye;var e=Ee.current.getContext(`2d`);e.scale(ye,ye),e.fillStyle=De.background,e.fillRect(0,0,Me,Ne),e.translate(ke.left,ke.top),M.forEach((function(t){t===`grid`?typeof De.grid.line.strokeWidth==`number`&&De.grid.line.strokeWidth>0&&(e.lineWidth=De.grid.line.strokeWidth,e.strokeStyle=De.grid.line.stroke,x&&O3(e,{width:Ae,height:je,scale:Le,axis:`x`,values:T}),C&&O3(e,{width:Ae,height:je,scale:Re,axis:`y`,values:E})):t===`axes`?D3(e,{xScale:Le,yScale:Re,width:Ae,height:je,top:m,right:h,bottom:_,left:y,theme:De}):t===`bars`?(M2(e,De.text),Ie.forEach((function(t){P(e,l8({bar:t,borderColor:Ve(t),borderRadius:re,borderWidth:ae,label:ze(t.data),shouldRenderLabel:Ue(t),labelStyle:l8({},De.labels.text,{fill:He(t)})},$e(t.width,t.height)))}))):t===`legends`?We.forEach((function(t){var n=t[0],r=t[1];s8(e,l8({},n,{data:r,containerWidth:Ae,containerHeight:je,theme:De}))})):t===`annotations`?C6(e,{annotations:Xe,theme:De}):t===`totals`&&Ce?function(e,t,n,r){r===void 0&&(r=y8.layout),M2(e,n.labels.text),e.textBaseline=r===`vertical`?`alphabetic`:`middle`,e.textAlign=r===`vertical`?`center`:`start`,t.forEach((function(t){N2(e,n.labels.text,t.formattedValue,t.x,t.y)}))}(e,Ge,De,l):typeof t==`function`&&t(e,Ze)})),e.save()}}),[_,y,h,m,Ie,re,ae,Xe,x,C,Ve,ze,He,T,E,c,s,je,Ae,Ze,M,l,We,ke.left,ke.top,Ne,Me,ye,P,Le,Re,Ue,De,o,Ge,Ce,Qe,$e]);var et=(0,w.useCallback)((function(e){if(Fe&&Ee.current){var t=E2(Ee.current,e),n=t[0],r=t[1],i=Y8(Fe,ke,n,r);i===void 0?Ye():(Je((0,w.createElement)(pe,l8({},i.data,{color:i.color,label:i.label,value:Number(i.data.value)})),e),e.type===`mouseenter`&&he?.(i.data,e))}}),[Ye,ke,he,Fe,Je,pe]),tt=(0,w.useCallback)((function(e){if(Fe&&Ee.current){Ye();var t=E2(Ee.current,e),n=t[0],r=t[1],i=Y8(Fe,ke,n,r);i&&ge?.(i.data,e)}}),[Ye,ke,ge,Fe]),nt=(0,w.useCallback)((function(e){if(Fe&&Ee.current){var t=E2(Ee.current,e),n=t[0],r=t[1],i=Y8(Fe,ke,n,r);i!==void 0&&me?.(l8({},i.data,{color:i.color}),e)}}),[ke,me,Fe]);return(0,G.jsx)(`canvas`,{ref:j2(Ee,xe),width:Me*ye,height:Ne*ye,style:{width:Me,height:Ne,cursor:de?`auto`:`normal`},onMouseEnter:de?et:void 0,onMouseMove:de?et:void 0,onMouseLeave:de?tt:void 0,onClick:de?nt:void 0,role:be})},Z8=(0,w.forwardRef)((function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,a=u8(e,J8);return(0,G.jsx)(R0,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:(0,G.jsx)(X8,l8({},a,{isInteractive:n,forwardedRef:t}))})})),Q8=[`defaultWidth`,`defaultHeight`,`onResize`,`debounceResize`],$8=(0,w.forwardRef)((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=u8(e,Q8);return(0,G.jsx)(V0,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(e){var n=e.width,r=e.height;return(0,G.jsx)(q8,l8({},o,{width:n,height:r,ref:t}))}})})),e5=[`defaultWidth`,`defaultHeight`,`onResize`,`debounceResize`];(0,w.forwardRef)((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=u8(e,e5);return(0,G.jsx)(V0,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(e){var n=e.width,r=e.height;return(0,G.jsx)(Z8,l8({},o,{width:n,height:r,ref:t}))}})}));function t5(){return t5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t5.apply(null,arguments)}var n5={pointerEvents:`none`},r5=function(e){var t=e.label,n=e.style,r=oU();return(0,G.jsx)(BB.g,{transform:n.transform,opacity:n.progress,style:n5,children:(0,G.jsx)(R2,{textAnchor:`middle`,dominantBaseline:`central`,style:t5({},r.labels.text,{fill:n.textColor}),children:t})})},i5=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},a5=function(e,t){return e.filter((function(e){return Math.abs(Z0(e.arc.endAngle-e.arc.startAngle))>=t}))},o5={startAngle:{enter:function(e){return t5({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return t5({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return t5({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return t5({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return t5({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return t5({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return t5({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return t5({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return t5({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return t5({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return t5({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return t5({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return t5({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return t5({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return t5({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return t5({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},s5=function(e,t){return(0,w.useMemo)((function(){var n=o5[e];return{enter:function(e){return t5({progress:0},n.enter(e.arc),t?t.enter(e):{})},update:function(e){return t5({progress:1},n.update(e.arc),t?t.update(e):{})},leave:function(e){return t5({progress:0},n.leave(e.arc),t?t.leave(e):{})}}}),[e,t])},c5=function(e,t){return $0(Q0(e)-Math.PI/2,e.innerRadius+(e.outerRadius-e.innerRadius)*t)},l5=function(e){return function(t,n,r,i){return bB([t,n,r,i],(function(t,n,r,i){var a=c5({startAngle:t,endAngle:n,innerRadius:r,outerRadius:i},e);return`translate(`+a.x+`,`+a.y+`)`}))}},u5=function(e,t,n,r){t===void 0&&(t=.5),n===void 0&&(n=`innerRadius`);var i=F0(),a=i.animate,o=i.config,s=s5(n,r);return{transition:pB(e,{keys:function(e){return e.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:o,immediate:!a}),interpolate:l5(t)}},d5=function(e){var t=e.data,n=e.offset,r=n===void 0?.5:n,i=e.skipAngle,a=i===void 0?0:i,o=e.computeExtraProps,s=o===void 0?function(){return{}}:o;return(0,w.useMemo)((function(){return a5(t,a).map((function(e){var t=c5(e.arc,r);return t5({},s(e),{x:t.x,y:t.y,data:e})}))}),[t,r,a,s])},f5=function(e){var t=e.center,n=e.data,r=e.transitionMode,i=e.label,a=e.radiusOffset,o=e.skipAngle,s=e.skipRadius,c=e.textColor,l=e.component,u=l===void 0?r5:l,d=S2(i),f=U6(c,oU()),p=u5((0,w.useMemo)((function(){return n.filter((function(e){var t=Math.abs(Z0(e.arc.endAngle-e.arc.startAngle)),n=Math.abs(e.arc.outerRadius-e.arc.innerRadius);return t>=o&&n>=s}))}),[n,o,s]),a,r),m=p.transition,h=p.interpolate,g=u;return(0,G.jsx)(`g`,{transform:`translate(`+t[0]+`,`+t[1]+`)`,children:m((function(e,t){return(0,w.createElement)(g,{key:t.id,datum:t,label:d(t),style:{progress:e.progress,transform:h(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius),textColor:f(t)}})}))})},p5=function(e,t,n){M2(e,n.labels.text),e.textAlign=`center`,e.textBaseline=`middle`,t.forEach((function(t){N2(e,t5({},n.labels.text,{fill:t.textColor}),String(t.label),t.x,t.y)}))},m5=function(e){var t=e.data,n=e.offset,r=e.skipAngle,i=e.label,a=e.textColor,o=S2(i),s=U6(a,oU());return d5({data:t,offset:n,skipAngle:r,computeExtraProps:(0,w.useCallback)((function(e){return{label:o(e),textColor:s(e)}}),[o,s])})},h5=function(e){var t=e.label,n=e.style,r=oU();return(0,G.jsxs)(BB.g,{opacity:n.opacity,children:[(0,G.jsx)(BB.path,{fill:`none`,stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),(0,G.jsx)(R2,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:`central`,style:t5({},r.labels.text,{fill:n.textColor}),children:t})]})},g5=function(e){var t=i5(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?`start`:`end`},_5=function(e,t,n,r){var i,a,o=i5(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),s=$0(o,e.outerRadius+t),c=$0(o,e.outerRadius+t+n);return o<Math.PI/2||o>1.5*Math.PI?(i=`after`,a={x:c.x+r,y:c.y}):(i=`before`,a={x:c.x-r,y:c.y}),{side:i,points:[s,c,a]}},v5=fK().x((function(e){return e.x})).y((function(e){return e.y})),y5=function(e,t,n,r,i,a,o){return bB([e,t,n,r,i,a,o],(function(e,t,n,r,i,a,o){var s=_5({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r},i,a,o).points;return v5(s)}))},b5=function(e,t,n,r){return bB([e,t,n,r],(function(e,t,n,r){return g5({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r})}))},x5=function(e,t,n,r,i,a,o,s){return bB([e,t,n,r,i,a,o,s],(function(e,t,n,r,i,a,o,s){var c=_5({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r},i,a,o),l=c.points,u=c.side,d=l[2];return u===`before`?d.x-=s:d.x+=s,`translate(`+d.x+`,`+d.y+`)`}))},S5=function(e){var t=e.data,n=e.offset,r=n===void 0?0:n,i=e.diagonalLength,a=e.straightLength,o=e.skipAngle,s=o===void 0?0:o,c=e.textOffset,l=e.linkColor,u=e.textColor,d=F0(),f=d.animate,p=d.config,m=oU(),h=U6(l,m),g=U6(u,m),_=function(e,t){return(0,w.useMemo)((function(){return a5(e,t)}),[e,t])}(t,s),v=function(e){var t=e.offset,n=e.diagonalLength,r=e.straightLength,i=e.textOffset,a=e.getLinkColor,o=e.getTextColor;return(0,w.useMemo)((function(){return{enter:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:t,diagonalLength:0,straightLength:0,textOffset:i,linkColor:a(e),textColor:o(e),opacity:0}},update:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:t,diagonalLength:n,straightLength:r,textOffset:i,linkColor:a(e),textColor:o(e),opacity:1}},leave:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:t,diagonalLength:0,straightLength:0,textOffset:i,linkColor:a(e),textColor:o(e),opacity:0}}}}),[n,r,i,a,o,t])}({offset:r,diagonalLength:i,straightLength:a,textOffset:c,getLinkColor:h,getTextColor:g});return{transition:pB(_,{keys:function(e){return e.id},initial:v.update,from:v.enter,enter:v.update,update:v.update,leave:v.leave,config:p,immediate:!f}),interpolateLink:y5,interpolateTextAnchor:b5,interpolateTextPosition:x5}},C5=function(e){var t=e.center,n=e.data,r=e.label,i=e.skipAngle,a=e.offset,o=e.diagonalLength,s=e.straightLength,c=e.strokeWidth,l=e.textOffset,u=e.textColor,d=e.linkColor,f=e.component,p=f===void 0?h5:f,m=S2(r),h=S5({data:n,skipAngle:i,offset:a,diagonalLength:o,straightLength:s,textOffset:l,linkColor:d,textColor:u}),g=h.transition,_=h.interpolateLink,v=h.interpolateTextAnchor,y=h.interpolateTextPosition,b=p;return(0,G.jsx)(`g`,{transform:`translate(`+t[0]+`,`+t[1]+`)`,children:g((function(e,t){return(0,w.createElement)(b,{key:t.id,datum:t,label:m(t),style:t5({},e,{thickness:c,path:_(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,e.offset,e.diagonalLength,e.straightLength),textAnchor:v(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius),textPosition:y(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,e.offset,e.diagonalLength,e.straightLength,e.textOffset)})})}))})},w5=function(e,t,n,r){e.textBaseline=`middle`,M2(e,n.labels.text),t.forEach((function(t){e.textAlign=t2.canvas.align[t.textAnchor],N2(e,t5({},n.labels.text,{fill:t.textColor}),String(t.label),t.x,t.y),e.beginPath(),e.strokeStyle=t.linkColor,e.lineWidth=r,t.points.forEach((function(t,n){n===0?e.moveTo(t.x,t.y):e.lineTo(t.x,t.y)})),e.stroke()}))},T5=function(e){var t=e.data,n=e.skipAngle,r=n===void 0?0:n,i=e.offset,a=i===void 0?.5:i,o=e.diagonalLength,s=e.straightLength,c=e.computeExtraProps,l=c===void 0?function(){return{}}:c,u=(0,w.useMemo)((function(){return t.filter((function(e){return Math.abs(Z0(e.arc.endAngle-e.arc.startAngle))>=r})).map((function(e){return t5({},_5(e.arc,a,o,s),{data:e})}))}),[t,r,a,o,s]);return(0,w.useMemo)((function(){return u.map((function(e){return t5({},l(e),e)}))}),[u,l])},E5=function(e){var t=e.data,n=e.skipAngle,r=e.offset,i=e.diagonalLength,a=e.straightLength,o=e.textOffset,s=o===void 0?0:o,c=e.label,l=e.linkColor,u=e.textColor,d=S2(c),f=oU(),p=U6(l,f),m=U6(u,f);return T5({data:t,skipAngle:n,offset:r,diagonalLength:i,straightLength:a,computeExtraProps:(0,w.useCallback)((function(e){var t,n={x:e.points[2].x,y:e.points[2].y};return e.side===`before`?(n.x-=s,t=`end`):(n.x+=s,t=`start`),t5({},n,{label:d(e.data),linkColor:p(e.data),textAnchor:t,textColor:m(e.data)})}),[d,p,m,s])})},D5=function(e){var t=e.datum,n=e.style,r=e.onClick,i=e.onMouseEnter,a=e.onMouseMove,o=e.onMouseLeave,s=(0,w.useCallback)((function(e){return r?.(t,e)}),[r,t]),c=(0,w.useCallback)((function(e){return i?.(t,e)}),[i,t]),l=(0,w.useCallback)((function(e){return a?.(t,e)}),[a,t]),u=(0,w.useCallback)((function(e){return o?.(t,e)}),[o,t]);return(0,G.jsx)(BB.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:r?s:void 0,onMouseEnter:i?c:void 0,onMouseMove:a?l:void 0,onMouseLeave:o?u:void 0,"data-testid":`arc.`+t.id})},O5=function(e,t,n,r,i){return bB([e,t,n,r],(function(e,t,n,r){return i({startAngle:e,endAngle:t,innerRadius:Math.max(0,n),outerRadius:Math.max(0,r)})}))},k5=function(e,t,n){t===void 0&&(t=`innerRadius`);var r=F0(),i=r.animate,a=r.config,o=s5(t,n);return{transition:pB(e,{keys:function(e){return e.id},initial:o.update,from:o.enter,enter:o.update,update:o.update,leave:o.leave,config:a,immediate:!i}),interpolate:O5}},A5=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,a=e.borderColor,o=e.onClick,s=e.onMouseEnter,c=e.onMouseMove,l=e.onMouseLeave,u=e.transitionMode,d=e.component,f=d===void 0?D5:d,p=U6(a,oU()),m=k5(n,u,{enter:function(e){return{opacity:0,color:e.color,borderColor:p(e)}},update:function(e){return{opacity:1,color:e.color,borderColor:p(e)}},leave:function(e){return{opacity:0,color:e.color,borderColor:p(e)}}}),h=m.transition,g=m.interpolate,_=f;return(0,G.jsx)(`g`,{transform:`translate(`+t[0]+`,`+t[1]+`)`,children:h((function(e,t){return(0,w.createElement)(_,{key:t.id,datum:t,style:t5({},e,{borderWidth:i,path:g(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,r)}),onClick:o,onMouseEnter:s,onMouseMove:c,onMouseLeave:l})}))})},j5=function(e,t,n,r,i,a){a===void 0&&(a=!0);var o=[],s=$0(X0(r),n);o.push([s.x,s.y]);var c=$0(X0(i),n);o.push([c.x,c.y]);for(var l=Math.round(Math.min(r,i));l<=Math.round(Math.max(r,i));l++)if(l%90==0){var u=$0(X0(l),n);o.push([u.x,u.y])}o=o.map((function(n){var r=n[0],i=n[1];return[e+r,t+i]})),a&&o.push([e,t]);var d=o.map((function(e){return e[0]})),f=o.map((function(e){return e[1]})),p=Math.min.apply(Math,d),m=Math.max.apply(Math,d),h=Math.min.apply(Math,f);return{points:o,x:p,y:h,width:m-p,height:Math.max.apply(Math,f)-h}},M5=function(e,t,n,r,i,a){var o=C2(i,a,e,t);return o<n&&o>r},N5=function(e,t,n,r,i,a,o){if(M5(e,t,n,r,a,o)){var s=w2(a,o,e,t);return i.find((function(e){var t=e.startAngle,n=e.endAngle;return s>=t&&s<n}))}},P5=function(e){var t=e===void 0?{}:e,n=t.cornerRadius,r=n===void 0?0:n,i=t.padAngle,a=i===void 0?0:i;return(0,w.useMemo)((function(){return oK().innerRadius((function(e){return e.innerRadius})).outerRadius((function(e){return e.outerRadius})).cornerRadius(r).padAngle(a)}),[r,a])};function F5(){return F5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},F5.apply(null,arguments)}function I5(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var L5,R5=function(e){var t=e.width,n=e.height,r=e.legends,i=e.data,a=e.toggleSerie;return(0,G.jsx)(G.Fragment,{children:r.map((function(e,r){return(0,G.jsx)(a8,F5({},e,{containerWidth:t,containerHeight:n,data:e.data??i,toggleSerie:e.toggleSerie?a:void 0}),r)}))})},$={id:`id`,value:`value`,sortByValue:!1,innerRadius:0,padAngle:0,cornerRadius:0,layers:[`arcs`,`arcLinkLabels`,`arcLabels`,`legends`],startAngle:0,endAngle:360,fit:!0,activeInnerRadiusOffset:0,activeOuterRadiusOffset:0,borderWidth:0,borderColor:{from:`color`,modifiers:[[`darker`,1]]},enableArcLabels:!0,arcLabel:`formattedValue`,arcLabelsSkipAngle:0,arcLabelsSkipRadius:0,arcLabelsRadiusOffset:.5,arcLabelsTextColor:{theme:`labels.text.fill`},enableArcLinkLabels:!0,arcLinkLabel:`id`,arcLinkLabelsSkipAngle:0,arcLinkLabelsOffset:0,arcLinkLabelsDiagonalLength:16,arcLinkLabelsStraightLength:24,arcLinkLabelsThickness:1,arcLinkLabelsTextOffset:6,arcLinkLabelsTextColor:{theme:`labels.text.fill`},arcLinkLabelsColor:{theme:`axis.ticks.line.stroke`},colors:{scheme:`nivo`},defs:[],fill:[],isInteractive:!0,animate:!0,motionConfig:`gentle`,transitionMode:`innerRadius`,tooltip:function(e){var t=e.datum;return(0,G.jsx)(pU,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:`img`,pixelRatio:typeof window<`u`&&(L5=window.devicePixelRatio)!=null?L5:1},z5=[`points`],B5=function(e){var t=e.data,n=e.id,r=n===void 0?$.id:n,i=e.value,a=i===void 0?$.value:i,o=e.valueFormat,s=e.colors,c=s===void 0?$.colors:s,l=S2(r),u=S2(a),d=b2(o),f=G6(c,`id`);return(0,w.useMemo)((function(){return t.map((function(e){var t=l(e),n=u(e),r={id:t,label:e.label??t,hidden:!1,value:n,formattedValue:d(n),data:e};return F5({},r,{color:f(r)})}))}),[t,l,u,d,f])},V5=function(e){var t=e.data,n=e.startAngle,r=e.endAngle,i=e.innerRadius,a=e.outerRadius,o=e.padAngle,s=e.sortByValue,c=e.activeId,l=e.activeInnerRadiusOffset,u=e.activeOuterRadiusOffset,d=e.hiddenIds,f=e.forwardLegendData,p=(0,w.useMemo)((function(){var e=hK().value((function(e){return e.value})).startAngle(X0(n)).endAngle(X0(r)).padAngle(X0(o));return s||e.sortValues(null),e}),[n,r,o,s]),m=(0,w.useMemo)((function(){return{dataWithArc:p(t.filter((function(e){return!d.includes(e.id)}))).map((function(e){var t=Math.abs(e.endAngle-e.startAngle);return F5({},e.data,{arc:{index:e.index,startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:c===e.data.id?i-l:i,outerRadius:c===e.data.id?a+u:a,thickness:a-i,padAngle:e.padAngle,angle:t,angleDeg:Z0(t)}})})),legendData:t.map((function(e){return{id:e.id,label:e.label,color:e.color,hidden:d.includes(e.id),data:e}}))}}),[p,t,d,c,i,l,a,u]),h=m.legendData,g=(0,w.useRef)(f);return(0,w.useEffect)((function(){typeof g.current==`function`&&g.current(h)}),[g,h]),m},H5=function(e){var t=e.activeId,n=e.onActiveIdChange,r=e.defaultActiveId,i=t!==void 0,a=(0,w.useState)(i||r===void 0?null:r),o=a[0],s=a[1];return{activeId:i?t:o,setActiveId:(0,w.useCallback)((function(e){n&&n(e),i||s(e)}),[i,n,s])}},U5=function(e){var t=e.data,n=e.width,r=e.height,i=e.innerRadius,a=i===void 0?$.innerRadius:i,o=e.startAngle,s=o===void 0?$.startAngle:o,c=e.endAngle,l=c===void 0?$.endAngle:c,u=e.padAngle,d=u===void 0?$.padAngle:u,f=e.sortByValue,p=f===void 0?$.sortByValue:f,m=e.cornerRadius,h=m===void 0?$.cornerRadius:m,g=e.fit,_=g===void 0?$.fit:g,v=e.activeInnerRadiusOffset,y=v===void 0?$.activeInnerRadiusOffset:v,b=e.activeOuterRadiusOffset,x=b===void 0?$.activeOuterRadiusOffset:b,S=e.activeId,C=e.onActiveIdChange,T=e.defaultActiveId,E=e.forwardLegendData,D=H5({activeId:S,onActiveIdChange:C,defaultActiveId:T}),O=D.activeId,k=D.setActiveId,A=(0,w.useState)([]),j=A[0],M=A[1],N=(0,w.useMemo)((function(){var e,t=Math.min(n,r)/2,i=t*Math.min(a,1),o=n/2,c=r/2;if(_){var u=j5(o,c,t,s-90,l-90),d=u.points,f=I5(u,z5),p=Math.min(n/f.width,r/f.height),m={width:f.width*p,height:f.height*p};m.x=(n-m.width)/2,m.y=(r-m.height)/2,o=(o-f.x)/f.width*f.width*p+m.x,c=(c-f.y)/f.height*f.height*p+m.y,e={box:f,ratio:p,points:d},t*=p,i*=p}return{centerX:o,centerY:c,radius:t,innerRadius:i,debug:e}}),[n,r,a,s,l,_]),P=V5({data:t,startAngle:s,endAngle:l,innerRadius:N.innerRadius,outerRadius:N.radius,padAngle:d,sortByValue:p,activeId:O,activeInnerRadiusOffset:y,activeOuterRadiusOffset:x,hiddenIds:j,forwardLegendData:E}),F=(0,w.useCallback)((function(e){M((function(t){return t.indexOf(e)>-1?t.filter((function(t){return t!==e})):[].concat(t,[e])}))}),[]);return F5({arcGenerator:P5({cornerRadius:h,padAngle:X0(d)}),activeId:O,setActiveId:k,toggleSerie:F},P,N)},W5=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,i=e.centerY,a=e.radius,o=e.innerRadius;return(0,w.useMemo)((function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:i,radius:a,innerRadius:o}}),[t,n,r,i,a,o])},G5=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,a=e.borderColor,o=e.isInteractive,s=e.onClick,c=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,d=e.setActiveId,f=e.tooltip,p=e.transitionMode,m=SU(),h=m.showTooltipFromEvent,g=m.hideTooltip,_=(0,w.useMemo)((function(){if(o)return function(e,t){s?.(e,t)}}),[o,s]),v=(0,w.useMemo)((function(){if(o)return function(e,t){h((0,w.createElement)(f,{datum:e}),t),d(e.id),c?.(e,t)}}),[o,h,d,c,f]),y=(0,w.useMemo)((function(){if(o)return function(e,t){h((0,w.createElement)(f,{datum:e}),t),l?.(e,t)}}),[o,h,l,f]),b=(0,w.useMemo)((function(){if(o)return function(e,t){g(),d(null),u?.(e,t)}}),[o,g,d,u]);return(0,G.jsx)(A5,{center:t,data:n,arcGenerator:r,borderWidth:i,borderColor:a,transitionMode:p,onClick:_,onMouseEnter:v,onMouseMove:y,onMouseLeave:b})},K5=[`isInteractive`,`animate`,`motionConfig`,`theme`,`renderWrapper`],q5=function(e){var t=e.data,n=e.id,r=n===void 0?$.id:n,i=e.value,a=i===void 0?$.value:i,o=e.valueFormat,s=e.sortByValue,c=s===void 0?$.sortByValue:s,l=e.layers,u=l===void 0?$.layers:l,d=e.startAngle,f=d===void 0?$.startAngle:d,p=e.endAngle,m=p===void 0?$.endAngle:p,h=e.padAngle,g=h===void 0?$.padAngle:h,_=e.fit,v=_===void 0?$.fit:_,y=e.innerRadius,b=y===void 0?$.innerRadius:y,x=e.cornerRadius,S=x===void 0?$.cornerRadius:x,C=e.activeInnerRadiusOffset,T=C===void 0?$.activeInnerRadiusOffset:C,E=e.activeOuterRadiusOffset,D=E===void 0?$.activeOuterRadiusOffset:E,O=e.width,k=e.height,A=e.margin,j=e.colors,M=j===void 0?$.colors:j,N=e.borderWidth,P=N===void 0?$.borderWidth:N,F=e.borderColor,I=F===void 0?$.borderColor:F,L=e.enableArcLabels,R=L===void 0?$.enableArcLabels:L,z=e.arcLabel,ee=z===void 0?$.arcLabel:z,B=e.arcLabelsSkipAngle,V=B===void 0?$.arcLabelsSkipAngle:B,te=e.arcLabelsSkipRadius,ne=te===void 0?$.arcLabelsSkipRadius:te,H=e.arcLabelsTextColor,re=H===void 0?$.arcLabelsTextColor:H,ie=e.arcLabelsRadiusOffset,ae=ie===void 0?$.arcLabelsRadiusOffset:ie,U=e.arcLabelsComponent,W=e.enableArcLinkLabels,oe=W===void 0?$.enableArcLinkLabels:W,se=e.arcLinkLabel,ce=se===void 0?$.arcLinkLabel:se,le=e.arcLinkLabelsSkipAngle,ue=le===void 0?$.arcLinkLabelsSkipAngle:le,de=e.arcLinkLabelsOffset,fe=de===void 0?$.arcLinkLabelsOffset:de,pe=e.arcLinkLabelsDiagonalLength,me=pe===void 0?$.arcLinkLabelsDiagonalLength:pe,he=e.arcLinkLabelsStraightLength,ge=he===void 0?$.arcLinkLabelsStraightLength:he,_e=e.arcLinkLabelsThickness,ve=_e===void 0?$.arcLinkLabelsThickness:_e,ye=e.arcLinkLabelsTextOffset,be=ye===void 0?$.arcLinkLabelsTextOffset:ye,xe=e.arcLinkLabelsTextColor,Se=xe===void 0?$.arcLinkLabelsTextColor:xe,Ce=e.arcLinkLabelsColor,we=Ce===void 0?$.arcLinkLabelsColor:Ce,Te=e.arcLinkLabelComponent,Ee=e.defs,De=Ee===void 0?$.defs:Ee,Oe=e.fill,ke=Oe===void 0?$.fill:Oe,Ae=e.isInteractive,je=Ae===void 0?$.isInteractive:Ae,Me=e.onClick,Ne=e.onMouseEnter,Pe=e.onMouseMove,Fe=e.onMouseLeave,Ie=e.tooltip,Le=Ie===void 0?$.tooltip:Ie,Re=e.activeId,ze=e.onActiveIdChange,Be=e.defaultActiveId,Ve=e.transitionMode,He=Ve===void 0?$.transitionMode:Ve,Ue=e.legends,We=Ue===void 0?$.legends:Ue,Ge=e.forwardLegendData,Ke=e.role,qe=Ke===void 0?$.role:Ke,Je=e.forwardedRef,Ye=_2(O,k,A),Xe=Ye.outerWidth,Ze=Ye.outerHeight,Qe=Ye.margin,$e=Ye.innerWidth,et=Ye.innerHeight,tt=U5({data:B5({data:t,id:r,value:a,valueFormat:o,colors:M}),width:$e,height:et,fit:v,innerRadius:b,startAngle:f,endAngle:m,padAngle:g,sortByValue:c,cornerRadius:S,activeInnerRadiusOffset:T,activeOuterRadiusOffset:D,activeId:Re,onActiveIdChange:ze,defaultActiveId:Be,forwardLegendData:Ge}),nt=tt.dataWithArc,rt=tt.legendData,it=tt.arcGenerator,at=tt.centerX,ot=tt.centerY,st=tt.radius,ct=tt.innerRadius,lt=tt.setActiveId,ut=tt.toggleSerie,dt=A2(De,nt,ke),ft={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};u.includes(`arcs`)&&(ft.arcs=(0,G.jsx)(G5,{center:[at,ot],data:nt,arcGenerator:it,borderWidth:P,borderColor:I,isInteractive:je,onClick:Me,onMouseEnter:Ne,onMouseMove:Pe,onMouseLeave:Fe,setActiveId:lt,tooltip:Le,transitionMode:He},`arcs`)),oe&&u.includes(`arcLinkLabels`)&&(ft.arcLinkLabels=(0,G.jsx)(C5,{center:[at,ot],data:nt,label:ce,skipAngle:ue,offset:fe,diagonalLength:me,straightLength:ge,strokeWidth:ve,textOffset:be,textColor:Se,linkColor:we,component:Te},`arcLinkLabels`)),R&&u.includes(`arcLabels`)&&(ft.arcLabels=(0,G.jsx)(f5,{center:[at,ot],data:nt,label:ee,radiusOffset:ae,skipAngle:V,skipRadius:ne,textColor:re,transitionMode:He,component:U},`arcLabels`)),We.length>0&&u.includes(`legends`)&&(ft.legends=(0,G.jsx)(R5,{width:$e,height:et,data:rt,legends:We,toggleSerie:ut},`legends`));var pt=W5({dataWithArc:nt,arcGenerator:it,centerX:at,centerY:ot,radius:st,innerRadius:ct});return(0,G.jsx)(l2,{width:Xe,height:Ze,margin:Qe,defs:dt,role:qe,ref:Je,children:u.map((function(e,t){return ft[e]===void 0?typeof e==`function`?(0,G.jsx)(w.Fragment,{children:(0,w.createElement)(e,pt)},t):null:ft[e]}))})},J5=(0,w.forwardRef)((function(e,t){var n=e.isInteractive,r=n===void 0?$.isInteractive:n,i=e.animate,a=i===void 0?$.animate:i,o=e.motionConfig,s=o===void 0?$.motionConfig:o,c=e.theme,l=e.renderWrapper,u=I5(e,K5);return(0,G.jsx)(R0,{animate:a,isInteractive:r,motionConfig:s,renderWrapper:l,theme:c,children:(0,G.jsx)(q5,F5({isInteractive:r},u,{forwardedRef:t}))})})),Y5=[`defaultWidth`,`defaultHeight`,`onResize`,`debounceResize`],X5=(0,w.forwardRef)((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=I5(e,Y5);return(0,G.jsx)(V0,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(e){var n=e.width,r=e.height;return(0,G.jsx)(J5,F5({width:n,height:r},o,{ref:t}))}})})),Z5=[`isInteractive`,`theme`,`renderWrapper`],Q5=function(e){var t=e.data,n=e.id,r=n===void 0?$.id:n,i=e.value,a=i===void 0?$.value:i,o=e.valueFormat,s=e.sortByValue,c=s===void 0?$.sortByValue:s,l=e.startAngle,u=l===void 0?$.startAngle:l,d=e.endAngle,f=d===void 0?$.endAngle:d,p=e.padAngle,m=p===void 0?$.padAngle:p,h=e.fit,g=h===void 0?$.fit:h,_=e.innerRadius,v=_===void 0?$.innerRadius:_,y=e.cornerRadius,b=y===void 0?$.cornerRadius:y,x=e.activeInnerRadiusOffset,S=x===void 0?$.activeInnerRadiusOffset:x,C=e.activeOuterRadiusOffset,T=C===void 0?$.activeOuterRadiusOffset:C,E=e.width,D=e.height,O=e.margin,k=e.pixelRatio,A=k===void 0?$.pixelRatio:k,j=e.colors,M=j===void 0?$.colors:j,N=e.borderWidth,P=N===void 0?$.borderWidth:N,F=e.borderColor,I=F===void 0?$.borderColor:F,L=e.enableArcLabels,R=L===void 0?$.enableArcLabels:L,z=e.arcLabel,ee=z===void 0?$.arcLabel:z,B=e.arcLabelsSkipAngle,V=B===void 0?$.arcLabelsSkipAngle:B,te=e.arcLabelsTextColor,ne=te===void 0?$.arcLabelsTextColor:te,H=e.arcLabelsRadiusOffset,re=H===void 0?$.arcLabelsRadiusOffset:H,ie=e.enableArcLinkLabels,ae=ie===void 0?$.enableArcLinkLabels:ie,U=e.arcLinkLabel,W=U===void 0?$.arcLinkLabel:U,oe=e.arcLinkLabelsSkipAngle,se=oe===void 0?$.arcLinkLabelsSkipAngle:oe,ce=e.arcLinkLabelsOffset,le=ce===void 0?$.arcLinkLabelsOffset:ce,ue=e.arcLinkLabelsDiagonalLength,de=ue===void 0?$.arcLinkLabelsDiagonalLength:ue,fe=e.arcLinkLabelsStraightLength,pe=fe===void 0?$.arcLinkLabelsStraightLength:fe,me=e.arcLinkLabelsThickness,he=me===void 0?$.arcLinkLabelsThickness:me,ge=e.arcLinkLabelsTextOffset,_e=ge===void 0?$.arcLinkLabelsTextOffset:ge,ve=e.arcLinkLabelsTextColor,ye=ve===void 0?$.arcLinkLabelsTextColor:ve,be=e.arcLinkLabelsColor,xe=be===void 0?$.arcLinkLabelsColor:be,Se=e.isInteractive,Ce=Se===void 0?$.isInteractive:Se,we=e.onClick,Te=e.onMouseMove,Ee=e.tooltip,De=Ee===void 0?$.tooltip:Ee,Oe=e.activeId,ke=e.onActiveIdChange,Ae=e.defaultActiveId,je=e.legends,Me=je===void 0?$.legends:je,Ne=e.forwardLegendData,Pe=e.role,Fe=e.forwardedRef,Ie=(0,w.useRef)(null),Le=oU(),Re=_2(E,D,O),ze=Re.margin,Be=Re.innerWidth,Ve=Re.innerHeight,He=Re.outerWidth,Ue=Re.outerHeight,We=U5({data:B5({data:t,id:r,value:a,valueFormat:o,colors:M}),width:Be,height:Ve,fit:g,innerRadius:v,startAngle:u,endAngle:f,padAngle:m,sortByValue:c,cornerRadius:b,activeInnerRadiusOffset:S,activeOuterRadiusOffset:T,activeId:Oe,onActiveIdChange:ke,defaultActiveId:Ae,forwardLegendData:Ne}),Ge=We.dataWithArc,Ke=We.arcGenerator,qe=We.centerX,Je=We.centerY,Ye=We.radius,Xe=We.innerRadius,Ze=We.setActiveId,Qe=U6(I,Le),$e=m5({data:Ge,label:ee,skipAngle:V,offset:re,textColor:ne}),et=E5({data:Ge,skipAngle:se,offset:le,diagonalLength:de,straightLength:pe,label:W,linkColor:xe,textOffset:_e,textColor:ye});(0,w.useEffect)((function(){if(Ie.current){Ie.current.width=He*A,Ie.current.height=Ue*A;var e=Ie.current.getContext(`2d`);e.scale(A,A),e.fillStyle=Le.background,e.fillRect(0,0,He,Ue),e.save(),e.translate(ze.left,ze.top),Ke.context(e),e.save(),e.translate(qe,Je),Ge.forEach((function(t){e.beginPath(),e.fillStyle=t.color,e.strokeStyle=Qe(t),e.lineWidth=P,Ke(t.arc),e.fill(),P>0&&e.stroke()})),!0===ae&&w5(e,et,Le,he),!0===R&&p5(e,$e,Le),e.restore(),Me.forEach((function(t){s8(e,F5({},t,{data:Ge,containerWidth:Be,containerHeight:Ve,theme:Le}))}))}}),[Ie,Be,Ve,He,Ue,ze.top,ze.left,A,qe,Je,Ke,Ge,P,Qe,R,$e,ae,et,he,Me,Le]);var tt=(0,w.useMemo)((function(){return Ge.map((function(e){return F5({id:e.id},e.arc)}))}),[Ge]),nt=function(e){if(!Ie.current)return null;var t=E2(Ie.current,e),n=t[0],r=t[1],i=N5(ze.left+qe,ze.top+Je,Ye,Xe,tt,n,r);return i?Ge.find((function(e){return e.id===i.id})):null},rt=SU(),it=rt.showTooltipFromEvent,at=rt.hideTooltip,ot=function(e){var t=nt(e);t?(Te?.(t,e),Ze(t.id),it((0,w.createElement)(De,{datum:t}),e)):(Ze(null),at())};return(0,G.jsx)(`canvas`,{ref:j2(Ie,Fe),width:He*A,height:Ue*A,style:{width:He,height:Ue,cursor:Ce?`auto`:`normal`},onMouseEnter:Ce?ot:void 0,onMouseMove:Ce?ot:void 0,onMouseLeave:Ce?function(){at()}:void 0,onClick:Ce?function(e){if(we){var t=nt(e);t&&we(t,e)}}:void 0,role:Pe})},$5=(0,w.forwardRef)((function(e,t){var n=e.isInteractive,r=n===void 0?$.isInteractive:n,i=e.theme,a=e.renderWrapper,o=I5(e,Z5);return(0,G.jsx)(R0,{isInteractive:r,renderWrapper:a,theme:i,children:(0,G.jsx)(Q5,F5({isInteractive:r},o,{forwardedRef:t}))})})),e7=[`defaultWidth`,`defaultHeight`,`onResize`,`debounceResize`];(0,w.forwardRef)((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=I5(e,e7);return(0,G.jsx)(V0,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(e){var n=e.width,r=e.height;return(0,G.jsx)($5,F5({width:n,height:r},o,{ref:t}))}})}));function t7({data:e}){let{colorScheme:t}=on(),n=t===`dark`;if(e.length===0)return(0,G.jsx)(Y,{c:`dimmed`,size:`sm`,children:`No reader data available.`});let r=Math.max(...e.map(e=>e.value),1),i=Math.min(...e.map(e=>e.value),0),a=r-i||1,o=n?[`#74c0fc`,`#63e6be`,`#ffa94d`,`#da77f2`,`#66d9e8`,`#ff8787`,`#a9e34b`]:[`#1c7ed6`,`#0ca678`,`#e67700`,`#9c36b5`,`#0c8599`,`#e03131`,`#5c940d`],s=[...e].sort((e,t)=>t.value-e.value);return(0,G.jsx)(`div`,{style:{display:`flex`,flexWrap:`wrap`,justifyContent:`center`,alignItems:`center`,gap:8,padding:16,minHeight:150},children:s.map((e,t)=>{let n=(e.value-i)/a,r=Math.round(14+n*40),s=o[t%o.length];return(0,G.jsx)(`span`,{style:{fontSize:r,fontWeight:n>.5?700:500,color:s,lineHeight:1.2,cursor:`default`},title:`${e.text}: ${e.value} calls`,children:e.text},e.text)})})}var n7={value:()=>{}};function r7(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new i7(n)}function i7(e){this._=e}function a7(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}i7.prototype=r7.prototype={constructor:i7,on:function(e,t){var n=this._,r=a7(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=o7(n[i],e.name)))return i}else{if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=s7(n[i],e.name,t);else if(t==null)for(i in n)n[i]=s7(n[i],e.name,null);return this}},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new i7(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function o7(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function s7(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=n7,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var c7={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function l7(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),c7.hasOwnProperty(t)?{space:c7[t],local:e}:e}function u7(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function d7(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function f7(e){var t=l7(e);return(t.local?d7:u7)(t)}function p7(){}function m7(e){return e==null?p7:function(){return this.querySelector(e)}}function h7(e){typeof e!=`function`&&(e=m7(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new l9(r,this._parents)}function g7(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function _7(){return[]}function v7(e){return e==null?_7:function(){return this.querySelectorAll(e)}}function y7(e){return function(){return g7(e.apply(this,arguments))}}function b7(e){e=typeof e==`function`?y7(e):v7(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new l9(r,i)}function x7(e){return function(){return this.matches(e)}}function S7(e){return function(t){return t.matches(e)}}var C7=Array.prototype.find;function w7(e){return function(){return C7.call(this.children,e)}}function T7(){return this.firstElementChild}function E7(e){return this.select(e==null?T7:w7(typeof e==`function`?e:S7(e)))}var D7=Array.prototype.filter;function O7(){return Array.from(this.children)}function k7(e){return function(){return D7.call(this.children,e)}}function A7(e){return this.selectAll(e==null?O7:k7(typeof e==`function`?e:S7(e)))}function j7(e){typeof e!=`function`&&(e=x7(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new l9(r,this._parents)}function M7(e){return Array(e.length)}function N7(){return new l9(this._enter||this._groups.map(M7),this._parents)}function P7(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}P7.prototype={constructor:P7,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function F7(e){return function(){return e}}function I7(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new P7(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function L7(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new P7(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function R7(e){return e.__data__}function z7(e,t){if(!arguments.length)return Array.from(this,R7);var n=t?L7:I7,r=this._parents,i=this._groups;typeof e!=`function`&&(e=F7(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=B7(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new l9(o,r),o._enter=s,o._exit=c,o}function B7(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function V7(){return new l9(this._exit||this._groups.map(M7),this._parents)}function H7(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function U7(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new l9(s,this._parents)}function W7(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function G7(e){e||=K7;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new l9(i,this._parents).order()}function K7(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function q7(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function J7(){return Array.from(this)}function Y7(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function X7(){let e=0;for(let t of this)++e;return e}function Z7(){return!this.node()}function Q7(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function $7(e){return function(){this.removeAttribute(e)}}function tte(e){return function(){this.removeAttributeNS(e.space,e.local)}}function nte(e,t){return function(){this.setAttribute(e,t)}}function rte(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function ite(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function ate(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function ote(e,t){var n=l7(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?tte:$7:typeof t==`function`?n.local?ate:ite:n.local?rte:nte)(n,t))}function e9(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function ste(e){return function(){this.style.removeProperty(e)}}function cte(e,t,n){return function(){this.style.setProperty(e,t,n)}}function lte(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function ute(e,t,n){return arguments.length>1?this.each((t==null?ste:typeof t==`function`?lte:cte)(e,t,n??``)):t9(this.node(),e)}function t9(e,t){return e.style.getPropertyValue(t)||e9(e).getComputedStyle(e,null).getPropertyValue(t)}function dte(e){return function(){delete this[e]}}function fte(e,t){return function(){this[e]=t}}function pte(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function mte(e,t){return arguments.length>1?this.each((t==null?dte:typeof t==`function`?pte:fte)(e,t)):this.node()[e]}function n9(e){return e.trim().split(/^|\s+/)}function r9(e){return e.classList||new i9(e)}function i9(e){this._node=e,this._names=n9(e.getAttribute(`class`)||``)}i9.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function a9(e,t){for(var n=r9(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function o9(e,t){for(var n=r9(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function hte(e){return function(){a9(this,e)}}function gte(e){return function(){o9(this,e)}}function _te(e,t){return function(){(t.apply(this,arguments)?a9:o9)(this,e)}}function vte(e,t){var n=n9(e+``);if(arguments.length<2){for(var r=r9(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?_te:t?hte:gte)(n,t))}function yte(){this.textContent=``}function bte(e){return function(){this.textContent=e}}function xte(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function Ste(e){return arguments.length?this.each(e==null?yte:(typeof e==`function`?xte:bte)(e)):this.node().textContent}function Cte(){this.innerHTML=``}function wte(e){return function(){this.innerHTML=e}}function Tte(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function Ete(e){return arguments.length?this.each(e==null?Cte:(typeof e==`function`?Tte:wte)(e)):this.node().innerHTML}function Dte(){this.nextSibling&&this.parentNode.appendChild(this)}function Ote(){return this.each(Dte)}function kte(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ate(){return this.each(kte)}function jte(e){var t=typeof e==`function`?e:f7(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Mte(){return null}function Nte(e,t){var n=typeof e==`function`?e:f7(e),r=t==null?Mte:typeof t==`function`?t:m7(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Pte(){var e=this.parentNode;e&&e.removeChild(this)}function Fte(){return this.each(Pte)}function Ite(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Lte(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Rte(e){return this.select(e?Lte:Ite)}function zte(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Bte(e){return function(t){e.call(this,t,this.__data__)}}function Vte(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Hte(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Ute(e,t,n){return function(){var r=this.__on,i,a=Bte(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Wte(e,t,n){var r=Vte(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}}else{for(s=t?Ute:Hte,i=0;i<a;++i)this.each(s(r[i],t,n));return this}}function s9(e,t,n){var r=e9(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Gte(e,t){return function(){return s9(this,e,t)}}function Kte(e,t){return function(){return s9(this,e,t.apply(this,arguments))}}function qte(e,t){return this.each((typeof t==`function`?Kte:Gte)(e,t))}function*Jte(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var c9=[null];function l9(e,t){this._groups=e,this._parents=t}function u9(){return new l9([[document.documentElement]],c9)}function Yte(){return this}l9.prototype=u9.prototype={constructor:l9,select:h7,selectAll:b7,selectChild:E7,selectChildren:A7,filter:j7,data:z7,enter:N7,exit:V7,join:H7,merge:U7,selection:Yte,order:W7,sort:G7,call:q7,nodes:J7,node:Y7,size:X7,empty:Z7,each:Q7,attr:ote,style:ute,property:mte,classed:vte,text:Ste,html:Ete,raise:Ote,lower:Ate,append:jte,insert:Nte,remove:Fte,clone:Rte,datum:zte,on:Wte,dispatch:qte,[Symbol.iterator]:Jte};function d9(e){return typeof e==`string`?new l9([[document.querySelector(e)]],[document.documentElement]):new l9([[e]],c9)}var f9=0,p9=0,m9=0,h9=1e3,g9,_9,v9=0,y9=0,b9=0,x9=typeof performance==`object`&&performance.now?performance:Date,S9=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function C9(){return y9||=(S9(Xte),x9.now()+b9)}function Xte(){y9=0}function w9(){this._call=this._time=this._next=null}w9.prototype=T9.prototype={constructor:w9,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?C9():+n)+(t==null?0:+t),!this._next&&_9!==this&&(_9?_9._next=this:g9=this,_9=this),this._call=e,this._time=n,D9()},stop:function(){this._call&&(this._call=null,this._time=1/0,D9())}};function T9(e,t,n){var r=new w9;return r.restart(e,t,n),r}function Zte(){C9(),++f9;for(var e=g9,t;e;)(t=y9-e._time)>=0&&e._call.call(void 0,t),e=e._next;--f9}function E9(){y9=(v9=x9.now())+b9,f9=p9=0;try{Zte()}finally{f9=0,$te(),y9=0}}function Qte(){var e=x9.now(),t=e-v9;t>h9&&(b9-=t,v9=e)}function $te(){for(var e,t=g9,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:g9=n);_9=e,D9(r)}function D9(e){f9||(p9&&=clearTimeout(p9),e-y9>24?(e<1/0&&(p9=setTimeout(E9,e-x9.now()-b9)),m9&&=clearInterval(m9)):(m9||=(v9=x9.now(),setInterval(Qte,h9)),f9=1,S9(E9)))}function O9(e,t,n){var r=new w9;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var ene=r7(`start`,`end`,`cancel`,`interrupt`),tne=[];function k9(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;nne(e,n,{name:t,index:r,group:i,on:ene,tween:tne,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function A9(e,t){var n=M9(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function j9(e,t){var n=M9(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function M9(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function nne(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=T9(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return O9(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(O9(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function rne(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n)(r=n[o]).name===t?(i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]):a=!1;a&&delete e.__transition}}function ine(e){return this.each(function(){rne(this,e)})}function ane(e,t){var n,r;return function(){var i=j9(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function one(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=j9(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function sne(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=M9(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?ane:one)(n,e,t))}function N9(e,t,n){var r=e._id;return e.each(function(){var e=j9(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return M9(e,r).value[t]}}function P9(e,t){var n;return(typeof t==`number`?eG:t instanceof sW?qW:(n=sW(t))?(t=n,qW):oG)(e,t)}function cne(e){return function(){this.removeAttribute(e)}}function lne(e){return function(){this.removeAttributeNS(e.space,e.local)}}function une(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function dne(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function fne(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function pne(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function mne(e,t){var n=l7(e),r=n===`transform`?_G:P9;return this.attrTween(e,typeof t==`function`?(n.local?pne:fne)(n,r,N9(this,`attr.`+e,t)):t==null?(n.local?lne:cne)(n):(n.local?dne:une)(n,r,t))}function hne(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function gne(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function _ne(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&gne(e,i)),n}return i._value=t,i}function vne(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&hne(e,i)),n}return i._value=t,i}function yne(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=l7(e);return this.tween(n,(r.local?_ne:vne)(r,t))}function bne(e,t){return function(){A9(this,e).delay=+t.apply(this,arguments)}}function xne(e,t){return t=+t,function(){A9(this,e).delay=t}}function Sne(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?bne:xne)(t,e)):M9(this.node(),t).delay}function Cne(e,t){return function(){j9(this,e).duration=+t.apply(this,arguments)}}function wne(e,t){return t=+t,function(){j9(this,e).duration=t}}function Tne(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Cne:wne)(t,e)):M9(this.node(),t).duration}function Ene(e,t){if(typeof t!=`function`)throw Error();return function(){j9(this,e).ease=t}}function Dne(e){var t=this._id;return arguments.length?this.each(Ene(t,e)):M9(this.node(),t).ease}function One(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();j9(this,e).ease=n}}function kne(e){if(typeof e!=`function`)throw Error();return this.each(One(this._id,e))}function Ane(e){typeof e!=`function`&&(e=x7(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new I9(r,this._parents,this._name,this._id)}function jne(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new I9(o,this._parents,this._name,this._id)}function Mne(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function Nne(e,t,n){var r,i,a=Mne(t)?A9:j9;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function Pne(e,t){var n=this._id;return arguments.length<2?M9(this.node(),n).on.on(e):this.each(Nne(n,e,t))}function Fne(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Ine(){return this.on(`end.remove`,Fne(this._id))}function Lne(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=m7(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,k9(l[f],t,n,f,l,M9(u,n)));return new I9(a,this._parents,t,n)}function Rne(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=v7(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=M9(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&k9(p,t,n,h,f,m);a.push(f),o.push(u)}return new I9(a,o,t,n)}var zne=u9.prototype.constructor;function Bne(){return new zne(this._groups,this._parents)}function Vne(e,t){var n,r,i;return function(){var a=t9(this,e),o=(this.style.removeProperty(e),t9(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function F9(e){return function(){this.style.removeProperty(e)}}function Hne(e,t,n){var r,i=n+``,a;return function(){var o=t9(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function Une(e,t,n){var r,i,a;return function(){var o=t9(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),t9(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function Wne(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=j9(this,e),l=c.on,u=c.value[a]==null?s||=F9(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function Gne(e,t,n){var r=(e+=``)==`transform`?gG:P9;return t==null?this.styleTween(e,Vne(e,r)).on(`end.style.`+e,F9(e)):typeof t==`function`?this.styleTween(e,Une(e,r,N9(this,`style.`+e,t))).each(Wne(this._id,e)):this.styleTween(e,Hne(e,r,t),n).on(`end.style.`+e,null)}function Kne(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function qne(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Kne(e,a,n)),r}return a._value=t,a}function Jne(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,qne(e,t,n??``))}function Yne(e){return function(){this.textContent=e}}function Xne(e){return function(){var t=e(this);this.textContent=t??``}}function Zne(e){return this.tween(`text`,typeof e==`function`?Xne(N9(this,`text`,e)):Yne(e==null?``:e+``))}function Qne(e){return function(t){this.textContent=e.call(this,t)}}function $ne(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Qne(r)),t}return r._value=e,r}function ere(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,$ne(e))}function tre(){for(var e=this._name,t=this._id,n=L9(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=M9(c,t);k9(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new I9(r,this._parents,e,n)}function nre(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=j9(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var rre=0;function I9(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function L9(){return++rre}var R9=u9.prototype;I9.prototype={constructor:I9,select:Lne,selectAll:Rne,selectChild:R9.selectChild,selectChildren:R9.selectChildren,filter:Ane,merge:jne,selection:Bne,transition:tre,call:R9.call,nodes:R9.nodes,node:R9.node,size:R9.size,empty:R9.empty,each:R9.each,on:Pne,attr:mne,attrTween:yne,style:Gne,styleTween:Jne,text:Zne,textTween:ere,remove:Ine,tween:sne,delay:Sne,duration:Tne,ease:Dne,easeVarying:kne,end:nre,[Symbol.iterator]:R9[Symbol.iterator]};function ire(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var are={time:null,delay:0,duration:250,ease:ire};function ore(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function sre(e){var t,n;e instanceof I9?(t=e._id,e=e._name):(t=L9(),(n=are).time=C9(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&k9(c,e,t,l,o,n||ore(c,t));return new I9(r,this._parents,e,t)}u9.prototype.interrupt=ine,u9.prototype.transition=sre;var{abs:cre,max:lre,min:ure}=Math;[`w`,`e`].map(z9),[`n`,`s`].map(z9),[`n`,`w`,`e`,`s`,`nw`,`ne`,`sw`,`se`].map(z9);function z9(e){return{type:e}}function B9(e,t,n){this.k=e,this.x=t,this.y=n}B9.prototype={constructor:B9,scale:function(e){return e===1?this:new B9(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new B9(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var dre=new B9(1,0,0);fre.prototype=B9.prototype;function fre(e){for(;!e.__zoom;)if(!(e=e.parentNode))return dre;return e.__zoom}function pre({usageLog:e,width:t=400,height:n=400}){let r=(0,w.useRef)(null),{colorScheme:i}=on(),a=i===`dark`,{links:o,readers:s,docs:c}=(0,w.useMemo)(()=>{let t=[],n=new Map;for(let t of e){if(!t.requestor||!t.doc_title)continue;let e=`${t.requestor}|||${t.doc_title}`;n.set(e,(n.get(e)??0)+1)}for(let[e,r]of n){let[n,i]=e.split(`|||`);t.push({requestor:n,doc:i,count:r})}return{links:t,readers:[...new Set(t.map(e=>e.requestor))],docs:[...new Set(t.map(e=>e.doc))]}},[e]);return(0,w.useEffect)(()=>{if(!r.current||o.length===0)return;let e=d9(r.current);e.selectAll(`*`).remove();let i=[...s.map(e=>({id:e,group:`reader`})),...c.map(e=>({id:e,group:`document`}))];if(i.length===0)return;let l=Math.min(t,n)/2-60,u=t/2,d=n/2,f=Math.PI/Math.max(s.length,1),p=Math.PI/Math.max(c.length,1),m=new Map;s.forEach((e,t)=>{let n=Math.PI/2+f*(t+.5);m.set(e,{x:u+l*Math.cos(n),y:d+l*Math.sin(n)})}),c.forEach((e,t)=>{let n=-Math.PI/2+p*(t+.5);m.set(e,{x:u+l*Math.cos(n),y:d+l*Math.sin(n)})});let h=a?`#c1c2c5`:`#495057`,g=a?`rgba(116, 192, 252, 0.3)`:`rgba(28, 126, 214, 0.2)`,_=a?`rgba(116, 192, 252, 0.8)`:`rgba(28, 126, 214, 0.6)`,v=a?`#74c0fc`:`#1c7ed6`,y=a?`#63e6be`:`#0ca678`,b=Math.max(...o.map(e=>e.count),1),x=e.append(`g`);x.selectAll(`path.link`).data(o).enter().append(`path`).attr(`class`,`link`).attr(`d`,e=>{let t=m.get(e.requestor),n=m.get(e.doc);return`M${t.x},${t.y} Q${u},${d} ${n.x},${n.y}`}).attr(`fill`,`none`).attr(`stroke`,g).attr(`stroke-width`,e=>1+e.count/b*3).on(`mouseenter`,function(){d9(this).attr(`stroke`,_).attr(`stroke-width`,3)}).on(`mouseleave`,function(e,t){d9(this).attr(`stroke`,g).attr(`stroke-width`,1+t.count/b*3)}),x.selectAll(`circle.node`).data(i).enter().append(`circle`).attr(`class`,`node`).attr(`cx`,e=>m.get(e.id).x).attr(`cy`,e=>m.get(e.id).y).attr(`r`,5).attr(`fill`,e=>e.group===`reader`?v:y),x.selectAll(`text.label`).data(i).enter().append(`text`).attr(`class`,`label`).attr(`x`,e=>{let t=m.get(e.id);return t.x<u?t.x-10:t.x+10}).attr(`y`,e=>m.get(e.id).y).attr(`text-anchor`,e=>m.get(e.id).x<u?`end`:`start`).attr(`dominant-baseline`,`middle`).attr(`fill`,h).attr(`font-size`,`11px`).text(e=>e.id.length>35?e.id.slice(0,33)+`...`:e.id)},[o,s,c,t,n,a]),o.length===0?(0,G.jsx)(Y,{c:`dimmed`,size:`sm`,children:`Need reader + document data to show access patterns.`}):(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`svg`,{ref:r,width:t,height:n}),(0,G.jsxs)(`div`,{style:{display:`flex`,gap:16,justifyContent:`center`,marginTop:4},children:[(0,G.jsx)(`span`,{style:{fontSize:11,color:a?`#74c0fc`:`#1c7ed6`},children:`● Readers`}),(0,G.jsx)(`span`,{style:{fontSize:11,color:a?`#63e6be`:`#0ca678`},children:`● Documents`})]})]})}function mre({usageLog:e,width:t=400,height:n=400}){let r=(0,w.useRef)(null),{colorScheme:i}=on(),a=i===`dark`,{links:o,requestors:s,operations:c}=(0,w.useMemo)(()=>{let t=[],n=new Map;for(let t of e){if(!t.requestor)continue;let e=`${t.requestor}|||${t.operation}`;n.set(e,(n.get(e)??0)+1)}for(let[e,r]of n){let[n,i]=e.split(`|||`);t.push({requestor:n,operation:i,count:r})}return{links:t,requestors:[...new Set(t.map(e=>e.requestor))],operations:[...new Set(t.map(e=>e.operation))]}},[e]);return(0,w.useEffect)(()=>{if(!r.current||o.length===0)return;let e=d9(r.current);e.selectAll(`*`).remove();let i=[...s.map(e=>({id:e,group:`requestor`})),...c.map(e=>({id:e,group:`operation`}))];if(i.length===0)return;let l=Math.min(t,n)/2-60,u=t/2,d=n/2,f=Math.PI/Math.max(s.length,1),p=Math.PI/Math.max(c.length,1),m=new Map;s.forEach((e,t)=>{let n=Math.PI/2+f*(t+.5);m.set(e,{x:u+l*Math.cos(n),y:d+l*Math.sin(n)})}),c.forEach((e,t)=>{let n=-Math.PI/2+p*(t+.5);m.set(e,{x:u+l*Math.cos(n),y:d+l*Math.sin(n)})});let h=a?`#c1c2c5`:`#495057`,g=a?`rgba(255, 169, 77, 0.3)`:`rgba(232, 89, 12, 0.2)`,_=a?`rgba(255, 169, 77, 0.8)`:`rgba(232, 89, 12, 0.6)`,v=a?`#74c0fc`:`#1c7ed6`,y=a?`#ffa94d`:`#e8590c`,b=Math.max(...o.map(e=>e.count),1),x=e.append(`g`);x.selectAll(`path.link`).data(o).enter().append(`path`).attr(`class`,`link`).attr(`d`,e=>{let t=m.get(e.requestor),n=m.get(e.operation);return`M${t.x},${t.y} Q${u},${d} ${n.x},${n.y}`}).attr(`fill`,`none`).attr(`stroke`,g).attr(`stroke-width`,e=>1+e.count/b*4).on(`mouseenter`,function(){d9(this).attr(`stroke`,_).attr(`stroke-width`,4)}).on(`mouseleave`,function(e,t){d9(this).attr(`stroke`,g).attr(`stroke-width`,1+t.count/b*4)}),x.selectAll(`circle.node`).data(i).enter().append(`circle`).attr(`class`,`node`).attr(`cx`,e=>m.get(e.id).x).attr(`cy`,e=>m.get(e.id).y).attr(`r`,5).attr(`fill`,e=>e.group===`requestor`?v:y),x.selectAll(`text.label`).data(i).enter().append(`text`).attr(`class`,`label`).attr(`x`,e=>{let t=m.get(e.id);return t.x<u?t.x-10:t.x+10}).attr(`y`,e=>m.get(e.id).y).attr(`text-anchor`,e=>m.get(e.id).x<u?`end`:`start`).attr(`dominant-baseline`,`middle`).attr(`fill`,h).attr(`font-size`,`11px`).text(e=>e.id.length>35?e.id.slice(0,33)+`...`:e.id)},[o,s,c,t,n,a]),o.length===0?(0,G.jsx)(Y,{c:`dimmed`,size:`sm`,children:`Need requestor + operation data to show patterns.`}):(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`svg`,{ref:r,width:t,height:n}),(0,G.jsxs)(`div`,{style:{display:`flex`,gap:16,justifyContent:`center`,marginTop:4},children:[(0,G.jsx)(`span`,{style:{fontSize:11,color:a?`#74c0fc`:`#1c7ed6`},children:`● Requestors`}),(0,G.jsx)(`span`,{style:{fontSize:11,color:a?`#ffa94d`:`#e8590c`},children:`● Operations`})]})]})}var hre=[{value:`7`,label:`Last 7 days`},{value:`30`,label:`Last 30 days`},{value:`90`,label:`Last 90 days`},{value:`all`,label:`All time`}],gre={"remote-mcp":`Remote MCP`,"local-mcp":`Local MCP`,"edge-function":`Edge Function`,webapp:`Web App`,cli:`CLI`,api:`API (identified)`},_re=[{value:``,label:`All paths`},...LI.map(e=>({value:e,label:gre[e]}))],V9=[`#228be6`,`#12b886`,`#e8590c`,`#9c36b5`,`#15aabf`,`#e03131`,`#74b816`,`#4263eb`],H9={text:{fill:`var(--mantine-color-text)`},axis:{ticks:{text:{fill:`var(--mantine-color-dimmed)`,fontSize:11}},legend:{text:{fill:`var(--mantine-color-text)`,fontSize:12}}},grid:{line:{stroke:`var(--mantine-color-default-border)`,strokeWidth:1}},tooltip:{container:{background:`var(--mantine-color-body)`,color:`var(--mantine-color-text)`,border:`1px solid var(--mantine-color-default-border)`,borderRadius:4,fontSize:12}}};function vre(e){let t=new Date;return t.setDate(t.getDate()-e),t.toISOString()}function U9(e,t,n,r,i){let a={};return e!==`all`&&(a.start=vre(Number(e))),t&&(a.start=t),n&&(a.end=n),r&&(a.project_id=r),i&&(a.access_path=i),a}function yre(){MT(`Analytics`);let e=Ty(),[t,n]=(0,w.useState)(`30`),[r,i]=(0,w.useState)(``),[a,o]=(0,w.useState)(``),[s,c]=(0,w.useState)(``),[l,u]=(0,w.useState)(``),[d,f]=(0,w.useState)(null),{data:p}=Gb({queryKey:[`projects`],queryFn:jF,staleTime:6e4,retry:1}),{data:m}=Gb({queryKey:[`config`,`usage_tracking_enabled`],queryFn:()=>VT(`usage_tracking_enabled`),staleTime:1e4,retry:1}),{data:h,isLoading:g,error:_}=Gb({queryKey:[`usageSummary`,d],queryFn:()=>RT(d),enabled:d!==null,staleTime:6e4,retry:0}),{data:v,isLoading:y}=Gb({queryKey:[`usageLog`,d],queryFn:()=>zT({...d,limit:200}),enabled:d!==null&&h!==void 0,staleTime:6e4,retry:0}),b=Kb({mutationFn:e=>HT(`usage_tracking_enabled`,e?`true`:`false`),onSuccess:(t,n)=>{e.invalidateQueries({queryKey:[`config`]}),RF(`Usage tracking ${n?`enabled`:`disabled`}`,n?`Reads and writes will now be recorded in the usage log.`:`Operations will no longer be recorded.`)}}),x=[{value:``,label:`All projects`},...(p??[]).map(e=>({value:e.id,label:e.name}))],S=m===`true`,C=g||y,T=_,E=(0,w.useCallback)(()=>{let e=U9(t,s,l,r,a);f(e)},[t,s,l,r,a]),D=d??U9(t,s,l,r,a);return(0,G.jsxs)(rm,{size:`xl`,children:[(0,G.jsx)(`p`,{className:X.eyebrow,children:`Usage`}),(0,G.jsxs)(Ml,{justify:`space-between`,mb:`md`,children:[(0,G.jsx)(yv,{order:2,children:`Analytics`}),(0,G.jsxs)(Ml,{gap:`md`,children:[(0,G.jsx)(U_,{label:`Opt-in. Logs each read/write (operation metadata only — no content) to the usage log, powering these charts and the dashboard's agent-activity card. Same setting as usage_tracking_enabled on the Settings page — either place works.`,multiline:!0,w:300,withArrow:!0,openDelay:120,position:`bottom`,children:(0,G.jsx)(hv,{label:`Usage tracking`,checked:S,onChange:e=>b.mutate(e.currentTarget.checked),size:`sm`,color:`green`,disabled:b.isPending})}),(0,G.jsx)(Hp,{variant:`subtle`,leftSection:(0,G.jsx)(_w,{size:16}),component:`a`,href:BT(D),download:!0,size:`sm`,children:`Export CSV`})]})]}),(0,G.jsx)(Yp,{withBorder:!0,mb:`md`,p:`sm`,children:(0,G.jsxs)(Ml,{gap:`sm`,wrap:`wrap`,children:[(0,G.jsx)(Y_,{label:`Period`,data:hre,value:t,onChange:e=>{n(e??`30`),c(``),u(``)},size:`xs`,w:140}),(0,G.jsx)(gv,{label:`Custom start`,placeholder:`YYYY-MM-DD`,value:s,onChange:e=>{c(e.currentTarget.value),n(`all`)},size:`xs`,w:130}),(0,G.jsx)(gv,{label:`Custom end`,placeholder:`YYYY-MM-DD`,value:l,onChange:e=>{u(e.currentTarget.value),n(`all`)},size:`xs`,w:130}),(0,G.jsx)(Y_,{label:`Project`,data:x,value:r,onChange:e=>i(e??``),size:`xs`,w:160,clearable:!0}),(0,G.jsx)(Y_,{label:`Access path`,data:_re,value:a,onChange:e=>o(e??``),size:`xs`,w:150,clearable:!0}),(0,G.jsx)(cv,{gap:2,justify:`flex-end`,style:{paddingTop:20},children:(0,G.jsx)(Hp,{leftSection:(0,G.jsx)(kw,{size:16}),onClick:E,loading:C,size:`sm`,children:`Run Analysis`})})]})}),C&&(0,G.jsx)(Ml,{justify:`center`,mt:`xl`,children:(0,G.jsx)(ml,{})}),T&&(0,G.jsxs)(Y,{c:`red`,mt:`md`,children:[`Error loading analytics: `,T.message]}),!d&&!C&&(0,G.jsx)(Yp,{withBorder:!0,p:`xl`,mt:`md`,children:(0,G.jsx)(Y,{ta:`center`,c:`dimmed`,size:`lg`,children:`Select filters and click "Run Analysis" to load usage data.`})}),h&&(0,G.jsx)(bre,{summary:h,usageLog:v??[]})]})}function bre({summary:e,usageLog:t}){let n=e.ops_by_operation[0];return(0,G.jsxs)(cv,{gap:`md`,children:[(0,G.jsxs)(iv,{cols:{base:2,sm:4},children:[(0,G.jsx)(W9,{label:`Total Calls`,value:e.total_count.toLocaleString()}),(0,G.jsx)(W9,{label:`Unique Requestors`,value:String(e.top_requestors.length)}),(0,G.jsx)(W9,{label:`Docs Accessed`,value:String(e.top_documents.length)}),(0,G.jsx)(W9,{label:`Top Operation`,value:n?n.operation:`--`,sub:n?`${n.count} calls`:``})]}),e.total_count===0?(0,G.jsx)(Yp,{withBorder:!0,p:`xl`,children:(0,G.jsx)(Y,{ta:`center`,c:`dimmed`,size:`lg`,children:`No usage data for the selected period. Enable tracking and use the knowledge base to start collecting analytics.`})}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(Yp,{withBorder:!0,p:`md`,children:[(0,G.jsx)(Y,{fw:500,mb:`sm`,children:`Calls per Day`}),(0,G.jsx)(`div`,{style:{height:250},children:(0,G.jsx)($8,{data:e.ops_by_day.map(e=>({day:e.day.slice(5),calls:e.count})),keys:[`calls`],indexBy:`day`,margin:{top:10,right:20,bottom:40,left:50},padding:.3,colors:[`#228be6`],axisBottom:{tickRotation:e.ops_by_day.length>15?-45:0},axisLeft:{legend:`Calls`,legendPosition:`middle`,legendOffset:-40},enableLabel:!1,theme:H9})})]}),(0,G.jsxs)(_m,{children:[(0,G.jsx)(_m.Col,{span:{base:12,md:6},children:(0,G.jsxs)(Yp,{withBorder:!0,p:`md`,h:`100%`,children:[(0,G.jsx)(Y,{fw:500,mb:`sm`,children:`By Access Path`}),(0,G.jsx)(`div`,{style:{height:200},children:(0,G.jsx)($8,{data:e.ops_by_access_path.map(e=>({path:e.access_path,calls:e.count})),keys:[`calls`],indexBy:`path`,margin:{top:10,right:20,bottom:40,left:50},padding:.4,colors:[`#12b886`],enableLabel:!1,theme:H9})})]})}),(0,G.jsx)(_m.Col,{span:{base:12,md:6},children:(0,G.jsxs)(Yp,{withBorder:!0,p:`md`,h:`100%`,children:[(0,G.jsx)(Y,{fw:500,mb:`sm`,children:`Operations Breakdown`}),(0,G.jsx)(`div`,{style:{height:200},children:(0,G.jsx)(X5,{data:e.ops_by_operation.map((e,t)=>({id:e.operation,label:e.operation,value:e.count,color:V9[t%V9.length]})),margin:{top:20,right:80,bottom:20,left:80},innerRadius:.5,padAngle:1,cornerRadius:3,colors:{datum:`data.color`},arcLinkLabelsTextColor:`var(--mantine-color-text)`,arcLinkLabelsColor:{from:`color`},arcLabelsTextColor:`#fff`,enableArcLabels:!1,theme:H9})})]})})]}),(0,G.jsxs)(_m,{children:[(0,G.jsx)(_m.Col,{span:{base:12,md:6},children:(0,G.jsxs)(Yp,{withBorder:!0,p:`md`,h:`100%`,children:[(0,G.jsx)(Y,{fw:500,mb:`sm`,children:`Most Accessed Documents`}),e.top_documents.length===0?(0,G.jsx)(Y,{c:`dimmed`,size:`sm`,children:`No document-specific access recorded.`}):(0,G.jsx)(`div`,{style:{height:Math.max(150,e.top_documents.length*32)},children:(0,G.jsx)($8,{data:e.top_documents.map(e=>({doc:e.doc_title.length>25?e.doc_title.slice(0,23)+`...`:e.doc_title,calls:e.count})),keys:[`calls`],indexBy:`doc`,layout:`horizontal`,margin:{top:5,right:30,bottom:30,left:160},padding:.3,colors:[`#e8590c`],enableLabel:!0,labelTextColor:`#fff`,theme:H9})})]})}),(0,G.jsx)(_m.Col,{span:{base:12,md:6},children:(0,G.jsxs)(Yp,{withBorder:!0,p:`md`,h:`100%`,children:[(0,G.jsx)(Y,{fw:500,mb:`sm`,children:`Most Active Requestors`}),e.top_requestors.length===0?(0,G.jsx)(Y,{c:`dimmed`,size:`sm`,children:`No requestor attribution recorded.`}):(0,G.jsx)(`div`,{style:{height:Math.max(150,e.top_requestors.length*32)},children:(0,G.jsx)($8,{data:e.top_requestors.map(e=>({requestor:e.requestor,calls:e.count})),keys:[`calls`],indexBy:`requestor`,layout:`horizontal`,margin:{top:5,right:30,bottom:30,left:120},padding:.3,colors:[`#9c36b5`],enableLabel:!0,labelTextColor:`#fff`,theme:H9})})]})})]}),(0,G.jsxs)(_m,{children:[(0,G.jsx)(_m.Col,{span:{base:12,md:6},children:(0,G.jsxs)(Yp,{withBorder:!0,p:`md`,h:`100%`,children:[(0,G.jsx)(Y,{fw:500,mb:`sm`,children:`Requestor Activity (Word Cloud)`}),e.top_requestors.length===0?(0,G.jsx)(Y,{c:`dimmed`,size:`sm`,children:`No requestor data available.`}):(0,G.jsx)(t7,{data:e.top_requestors.map(e=>({text:e.requestor,value:e.count}))})]})}),(0,G.jsx)(_m.Col,{span:{base:12,md:6},children:(0,G.jsxs)(Yp,{withBorder:!0,p:`md`,h:`100%`,children:[(0,G.jsx)(Y,{fw:500,mb:`sm`,children:`Requestor → Document Access Patterns`}),(0,G.jsx)(pre,{usageLog:t})]})})]}),(0,G.jsxs)(Yp,{withBorder:!0,p:`md`,children:[(0,G.jsx)(Y,{fw:500,mb:`sm`,children:`Requestor → Operation Patterns`}),(0,G.jsx)(mre,{usageLog:t})]})]})]})}function W9({label:e,value:t,sub:n}){return(0,G.jsxs)(Yp,{withBorder:!0,p:`sm`,children:[(0,G.jsx)(Y,{size:`xs`,c:`dimmed`,tt:`uppercase`,fw:500,children:e}),(0,G.jsx)(Y,{size:`xl`,fw:700,mt:4,children:t}),n&&(0,G.jsx)(Y,{size:`xs`,c:`dimmed`,children:n})]})}async function xre(e){return Kw(`/documents/metadata-search`,{method:`POST`,body:JSON.stringify(e)})}function Sre(){MT(`Metadata search`);let e=SS(),[t,n]=(0,w.useState)([{key:``,value:``}]),[r,i]=(0,w.useState)(``),[a,o]=(0,w.useState)(``),[s,c]=(0,w.useState)(``),[l,u]=(0,w.useState)(25),{data:d}=Gb({queryKey:[`metadataKeys`],queryFn:MF,staleTime:6e4}),{data:f}=Gb({queryKey:[`projects`],queryFn:jF,staleTime:6e4}),p=(d??[]).map(e=>({value:e.key,label:`${e.key} (${e.doc_count} docs)`})),m=[{value:``,label:`All projects`},...(f??[]).map(e=>({value:e.id,label:e.name}))],h=()=>n(e=>[...e,{key:``,value:``}]),g=e=>n(t=>t.filter((t,n)=>n!==e)),_=(e,t,r)=>n(n=>n.map((n,i)=>i===e?{...n,[t]:r}:n)),{mutate:v,data:y,isPending:b,error:x,reset:S}=Kb({mutationFn:e=>xre(e)}),C=(0,w.useCallback)(()=>{let e={};for(let n of t)n.key.trim()&&n.value.trim()&&(e[n.key.trim()]=n.value.trim());return e},[t]),T=(0,w.useCallback)(()=>{let e=C();if(Object.keys(e).length===0)return;let t={metadata_filter:e,limit:l};r&&(t.project_id=r),a&&(t.updated_since=a),s&&(t.created_since=s),S(),v(t)},[C,r,a,s,l,v,S]),E=t.filter(e=>e.key.trim()&&e.value.trim()).length,D=C(),O=`-f '${JSON.stringify(Object.keys(D).length?D:{key:`value`})}'`;return(0,G.jsxs)(`div`,{className:CT.wrap,children:[(0,G.jsxs)(`div`,{className:X.pageHead,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`p`,{className:X.eyebrow,children:`Knowledge base`}),(0,G.jsx)(`h1`,{className:X.pageTitle,"data-testid":`page-title`,children:`Metadata Search`}),(0,G.jsx)(`p`,{className:X.pageSub,children:`Find documents by their metadata keys and values.`})]}),(0,G.jsx)(_T,{cmd:`cerefox metadata search`,args:O})]}),(0,G.jsx)(Yp,{withBorder:!0,mb:`md`,p:`md`,radius:`lg`,children:(0,G.jsxs)(cv,{gap:`sm`,children:[(0,G.jsxs)(Y,{fw:600,size:`sm`,children:[`Metadata filters `,(0,G.jsx)(`span`,{className:X.faint,children:`(all must match)`})]}),t.map((e,n)=>(0,G.jsxs)(Ml,{gap:`xs`,align:`flex-end`,children:[(0,G.jsx)(Y_,{placeholder:`Key`,data:p,value:e.key||null,onChange:e=>_(n,`key`,e??``),searchable:!0,allowDeselect:!0,style:{flex:1},size:`sm`}),(0,G.jsx)(gv,{placeholder:`Value`,value:e.value,onChange:e=>_(n,`value`,e.currentTarget.value),style:{flex:1},size:`sm`}),t.length>1&&(0,G.jsx)(Sl,{variant:`subtle`,color:`red`,onClick:()=>g(n),size:`md`,children:(0,G.jsx)(Rw,{size:16})})]},n)),(0,G.jsx)(Hp,{variant:`subtle`,size:`xs`,leftSection:(0,G.jsx)(Aw,{size:14}),onClick:h,style:{alignSelf:`flex-start`},children:`Add filter`}),(0,G.jsxs)(Ml,{gap:`sm`,grow:!0,children:[(0,G.jsx)(Y_,{label:`Project`,data:m,value:r,onChange:e=>i(e??``),size:`sm`,clearable:!0}),(0,G.jsx)(b_,{label:`Limit`,value:l,onChange:e=>u(Number(e)||25),min:1,max:100,size:`sm`})]}),(0,G.jsxs)(Ml,{gap:`sm`,grow:!0,children:[(0,G.jsx)(gv,{label:`Updated since`,type:`date`,value:a,onChange:e=>o(e.currentTarget.value),size:`sm`}),(0,G.jsx)(gv,{label:`Created since`,type:`date`,value:s,onChange:e=>c(e.currentTarget.value),size:`sm`})]}),(0,G.jsx)(Hp,{"data-testid":`metadata-search-submit`,leftSection:(0,G.jsx)(Mw,{size:16}),onClick:T,disabled:E===0,loading:b,style:{alignSelf:`flex-start`},children:`Search`})]})}),x&&(0,G.jsxs)(Y,{c:`red`,mt:`md`,children:[`Error: `,x.message]}),y&&(0,G.jsxs)(`div`,{className:`${X.card} ${X.rise}`,style:{overflow:`hidden`},children:[(0,G.jsxs)(`table`,{className:CT.tbl,children:[(0,G.jsx)(`thead`,{children:(0,G.jsxs)(`tr`,{children:[(0,G.jsx)(`th`,{children:`Document`}),(0,G.jsx)(`th`,{children:`Metadata`}),(0,G.jsx)(`th`,{style:{width:160},children:`Project`}),(0,G.jsx)(`th`,{style:{width:110,textAlign:`right`},children:`Updated`})]})}),(0,G.jsx)(`tbody`,{children:y.length===0?(0,G.jsx)(`tr`,{children:(0,G.jsx)(`td`,{colSpan:4,className:CT.emptyRow,children:`No documents match the metadata filter.`})}):y.map(t=>{let n=Object.entries(t.doc_metadata??{});return(0,G.jsxs)(`tr`,{style:{cursor:`pointer`},onClick:()=>e(`/document/${t.document_id}`),children:[(0,G.jsx)(`td`,{children:(0,G.jsx)(`span`,{className:X.link,style:{fontSize:13.5},children:t.title})}),(0,G.jsx)(`td`,{children:(0,G.jsxs)(`span`,{style:{display:`inline-flex`,gap:6,flexWrap:`wrap`},children:[n.slice(0,3).map(([e,t])=>(0,G.jsxs)(`span`,{className:`${X.badge} ${X.bNeutral}`,children:[e,`=`,String(t).length>24?`${String(t).slice(0,22)}…`:String(t)]},e)),n.length>3&&(0,G.jsxs)(`span`,{className:`${X.badge} ${X.bNeutral}`,children:[`+`,n.length-3]})]})}),(0,G.jsx)(`td`,{children:(0,G.jsx)(`span`,{style:{display:`inline-flex`,gap:4,flexWrap:`wrap`},children:t.project_names.map(e=>(0,G.jsx)(`span`,{className:`${X.badge} ${X.bNeutral}`,children:e},e))})}),(0,G.jsx)(`td`,{style:{textAlign:`right`},children:(0,G.jsx)(`span`,{className:`${X.faint} ${X.mono}`,style:{fontSize:12},children:t.updated_at?.slice(0,10)??`?`})})]},t.document_id)})})]}),(0,G.jsx)(`div`,{className:CT.foot,children:(0,G.jsxs)(`span`,{className:CT.faint,children:[y.length,` document`,y.length===1?``:`s`]})})]})]})}var G9={wrap:`_wrap_gy5et_4`,searchBar:`_searchBar_gy5et_11`,searchInputRow:`_searchInputRow_gy5et_14`,searchInput:`_searchInput_gy5et_14`,searchControls:`_searchControls_gy5et_34`,controlsRight:`_controlsRight_gy5et_41`,filterRow:`_filterRow_gy5et_48`,resultMeta:`_resultMeta_gy5et_57`,results:`_results_gy5et_67`,resultCard:`_resultCard_gy5et_72`,resultCardOpen:`_resultCardOpen_gy5et_80`,resultHead:`_resultHead_gy5et_83`,resultTitleWrap:`_resultTitleWrap_gy5et_90`,resultTitle:`_resultTitle_gy5et_90`,breadcrumb:`_breadcrumb_gy5et_107`,resultMetaR:`_resultMetaR_gy5et_126`,chev:`_chev_gy5et_132`,chevOpen:`_chevOpen_gy5et_137`,resultSnippet:`_resultSnippet_gy5et_140`,resultSnippetOpen:`_resultSnippetOpen_gy5et_152`,resultExpand:`_resultExpand_gy5et_156`,fade:`_fade_gy5et_1`,resultStats:`_resultStats_gy5et_160`,dot:`_dot_gy5et_169`,emptyState:`_emptyState_gy5et_176`},Cre=[{v:`hybrid`,label:`Hybrid`,icon:Pw,desc:`BM25 + embeddings`},{v:`fts`,label:`Keyword`,icon:Mw,desc:`Exact full-text`},{v:`semantic`,label:`Semantic`,icon:Nw,desc:`Meaning-based`}],wre=[5,10,20];function Tre({query:e,mode:t,projectId:n,count:r,reviewStatus:i,metadataFilter:a,onSearch:o}){let[s,c]=(0,w.useState)(e),[l,u]=(0,w.useState)(t===`docs`?`documents`:`chunks`),[d,f]=(0,w.useState)(t===`docs`?`hybrid`:t),[p,m]=(0,w.useState)(n),[h,g]=(0,w.useState)(r),[_,v]=(0,w.useState)(i),[y,b]=(0,w.useState)(()=>Object.entries(a).map(([e,t])=>({key:e,value:t}))),[x,S]=(0,w.useState)(y.length>0),{data:C}=IF(),{data:T}=LF(),E=yI(),D=(0,w.useCallback)(()=>{let e={};for(let t of y)t.key.trim()&&t.value.trim()&&(e[t.key.trim()]=t.value.trim());return e},[y]),O=(0,w.useCallback)(e=>{o({q:s,mode:l===`documents`?`docs`:d,projectId:p,count:h,reviewStatus:_,metadataFilter:D(),...e})},[s,l,d,p,h,_,D,o]),k=e=>{u(e),O({mode:e===`documents`?`docs`:d})},A=e=>{f(e),u(`chunks`),O({mode:e})},j=e=>{m(e),O({projectId:e})},M=e=>{g(e),O({count:e})},N=()=>{let e=_===`pending_review`?``:`pending_review`;v(e),O({reviewStatus:e})},P=T?.map(e=>({value:e.key,label:`${e.key} (${e.doc_count} docs)`}))??[];return(0,G.jsxs)(`div`,{className:`${X.card} ${G9.searchBar} ${X.rise}`,children:[(0,G.jsxs)(`form`,{className:G9.searchInputRow,onSubmit:e=>{e.preventDefault(),O({})},children:[(0,G.jsx)(Mw,{size:20}),(0,G.jsx)(`input`,{className:G9.searchInput,value:s,onChange:e=>c(e.currentTarget.value),placeholder:`Search your knowledge base…`}),s&&(0,G.jsx)(`button`,{type:`button`,className:X.iconBtn,style:{width:30,height:30},"aria-label":`Clear`,onClick:()=>{c(``)},children:(0,G.jsx)(Bw,{size:16})}),(0,G.jsx)(`button`,{type:`submit`,className:`${X.btn} ${X.btnPrimary}`,children:`Search`})]}),(0,G.jsx)(`div`,{className:X.divider}),(0,G.jsxs)(`div`,{className:G9.searchControls,children:[(0,G.jsxs)(`div`,{className:X.seg,children:[(0,G.jsxs)(`button`,{type:`button`,title:`Whole documents — one entry per document, hybrid-ranked`,className:`${X.segBtn} ${l===`documents`?X.segBtnOn:``}`,onClick:()=>k(`documents`),children:[(0,G.jsx)(yw,{size:14}),`Documents`]}),(0,G.jsxs)(`button`,{type:`button`,title:`Matching chunks — pick a ranker`,className:`${X.segBtn} ${l===`chunks`?X.segBtnOn:``}`,onClick:()=>k(`chunks`),children:[(0,G.jsx)(ww,{size:14}),`Chunks`]})]}),l===`chunks`?(0,G.jsxs)(`span`,{className:X.selectWrap,title:`Ranking method`,children:[(0,G.jsx)(`select`,{className:X.selectEl,value:d,onChange:e=>A(e.currentTarget.value),children:Cre.map(e=>(0,G.jsx)(`option`,{value:e.v,children:e.label},e.v))}),(0,G.jsx)(sw,{size:14})]}):(0,G.jsx)(`span`,{className:`${X.faint} ${X.mono}`,style:{fontSize:11.5},children:`whole documents · hybrid-ranked`}),(0,G.jsxs)(`div`,{className:G9.controlsRight,children:[(0,G.jsxs)(`span`,{className:X.selectWrap,children:[(0,G.jsx)(xw,{size:14}),(0,G.jsxs)(`select`,{className:X.selectEl,value:p,onChange:e=>j(e.currentTarget.value),children:[(0,G.jsxs)(`option`,{value:``,children:[`All projects (`,C?.length??0,`)`]}),C?.map(e=>(0,G.jsx)(`option`,{value:e.id,children:e.name},e.id))]}),(0,G.jsx)(sw,{size:14})]}),(0,G.jsxs)(`span`,{className:X.selectWrap,children:[(0,G.jsx)(`select`,{className:X.selectEl,value:String(h),onChange:e=>M(Number(e.currentTarget.value)),children:wre.map(e=>(0,G.jsxs)(`option`,{value:e,children:[e,` results`]},e))}),(0,G.jsx)(sw,{size:14})]}),E&&(0,G.jsxs)(`button`,{type:`button`,className:`${X.chip} ${_===`pending_review`?X.chipOn:``}`,onClick:N,children:[(0,G.jsx)(ow,{size:13}),`Pending review`]}),(0,G.jsxs)(`button`,{type:`button`,className:`${X.chip} ${x?X.chipOn:``}`,onClick:()=>S(e=>!e),children:[(0,G.jsx)(QC,{size:13}),`Filters`,y.length>0?` (${y.length})`:``]})]})]}),x&&(0,G.jsxs)(`div`,{className:G9.filterRow,children:[y.map((e,t)=>(0,G.jsxs)(`div`,{style:{display:`flex`,gap:8,alignItems:`center`},children:[(0,G.jsx)(Y_,{placeholder:`Key`,data:P,value:e.key||null,onChange:e=>b(n=>n.map((n,r)=>r===t?{...n,key:e||``}:n)),searchable:!0,size:`xs`,w:190}),(0,G.jsx)(gv,{placeholder:`Value`,value:e.value,onChange:e=>{let n=e.currentTarget.value;b(e=>e.map((e,r)=>r===t?{...e,value:n}:e))},size:`xs`,w:190}),(0,G.jsx)(Sl,{variant:`subtle`,color:`red`,size:`sm`,onClick:()=>b(e=>e.filter((e,n)=>n!==t)),children:(0,G.jsx)(Bw,{size:14})})]},t)),(0,G.jsx)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,onClick:()=>b(e=>[...e,{key:``,value:``}]),children:`+ Add filter`}),(0,G.jsx)(`button`,{type:`button`,className:`${X.btn} ${X.btnGhost}`,onClick:()=>O({}),children:`Apply filters`})]})]})}function K9(e){return`full_content`in e}var Ere={strong:`var(--green)`,typical:`var(--yellow)`,weak:`var(--text-faint)`,dim:`var(--text-faint)`};function Dre({score:e,tone:t,size:n=38}){let r=Math.max(0,Math.min(1,e)),i=Math.round(r*100),a=(n-5)/2,o=2*Math.PI*a,s=Ere[t];return(0,G.jsxs)(`div`,{style:{position:`relative`,width:n,height:n,flexShrink:0,opacity:t===`dim`?.55:1},children:[(0,G.jsxs)(`svg`,{width:n,height:n,style:{transform:`rotate(-90deg)`},children:[(0,G.jsx)(`circle`,{cx:n/2,cy:n/2,r:a,fill:`none`,stroke:`var(--border)`,strokeWidth:2.5}),(0,G.jsx)(`circle`,{cx:n/2,cy:n/2,r:a,fill:`none`,stroke:s,strokeWidth:2.5,strokeLinecap:`round`,strokeDasharray:o,strokeDashoffset:o*(1-r),style:{transition:`stroke-dashoffset .6s cubic-bezier(.2,.7,.3,1)`}})]}),(0,G.jsx)(`span`,{style:{position:`absolute`,inset:0,display:`grid`,placeItems:`center`,fontFamily:`var(--font-mono)`,fontSize:n>34?11:9.5,fontWeight:600,color:s},children:i})]})}var q9={strong:.9,typical:.6};function Ore(e,t){if(t.belowConfidence||t.best<=0)return`dim`;let n=e/t.best;return n>=q9.strong?`strong`:n>=q9.typical?`typical`:`weak`}function kre(e){return Math.max(0,...e.filter(e=>!e.belowConfidence).map(e=>e.score))}function Are(e,t,n){return n&&t>0?Math.max(0,Math.min(1,e/t)):Math.max(0,Math.min(1,e))}function jre(e,t){return e===`fts`||t>1}var J9=[`--primary`,`--violet`,`--blue`,`--green`,`--yellow`,`--red`];function Mre(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)>>>0;return`var(${J9[t%J9.length]})`}var Nre={docs:`documents`,hybrid:`chunks`,fts:`chunks`,semantic:`chunks`},Pre={docs:`hybrid`,hybrid:`hybrid`,fts:`keyword`,semantic:`semantic`};function Fre({data:e,isLoading:t,error:n,hasQuery:r}){let i=SS(),[a,o]=(0,w.useState)(null),[s,c]=(0,w.useState)(null),l=(0,w.useRef)(null);(0,w.useEffect)(()=>()=>{l.current&&clearTimeout(l.current)},[]);let u=(e,t)=>{navigator.clipboard?.writeText(t),c(e),l.current&&clearTimeout(l.current),l.current=setTimeout(()=>c(null),1200)};if(!r)return(0,G.jsxs)(`div`,{className:`${X.card} ${G9.emptyState}`,style:{marginTop:22},children:[(0,G.jsx)(Mw,{size:28}),(0,G.jsx)(`p`,{style:{marginTop:10},children:`Enter a query or pick a project to browse your memory.`})]});if(t)return(0,G.jsxs)(`div`,{style:{display:`flex`,gap:12,justifyContent:`center`,marginTop:40},children:[(0,G.jsx)(ml,{size:`sm`}),(0,G.jsx)(`span`,{className:X.dim,children:`Searching…`})]});if(n)return(0,G.jsx)(Rd,{icon:(0,G.jsx)($C,{size:16}),title:`Search failed`,color:`red`,mt:`md`,children:n.message});if(!e||e.results.length===0)return(0,G.jsxs)(`div`,{className:`${X.card} ${G9.emptyState}`,style:{marginTop:22},children:[(0,G.jsx)(Mw,{size:28}),(0,G.jsx)(`p`,{style:{marginTop:10},children:`No results. Try widening your search or switching mode.`})]});let d=(e.response_bytes/1024).toFixed(1),f=e.results.map(e=>K9(e)?e.best_score:e.score),p=Math.max(0,...f),m=jre(e.mode,p),h=kre(e.results.map((e,t)=>({score:f[t],belowConfidence:e.below_confidence===!0}))),g=e.results.length>0&&e.results.every(e=>e.below_confidence===!0);return(0,G.jsxs)(G.Fragment,{children:[g&&(0,G.jsxs)(`div`,{className:G9.resultMeta,style:{color:`var(--warning, #b58900)`},children:[`⚠ No results cleared the confidence threshold — showing the closest`,` `,e.results.length,` candidate`,e.results.length===1?``:`s`,`; judge relevance by their scores.`]}),(0,G.jsxs)(`div`,{className:G9.resultMeta,children:[(0,G.jsxs)(`span`,{children:[(0,G.jsx)(`b`,{className:X.mono,style:{color:`var(--text)`},children:e.total_found}),` `,`result`,e.total_found===1?``:`s`,` ·`,` `,(0,G.jsx)(`span`,{className:X.mono,style:{color:`var(--primary)`},children:Nre[e.mode]}),` `,`ranked by`,` `,(0,G.jsx)(`span`,{className:X.mono,style:{color:`var(--primary)`},children:Pre[e.mode]}),` `,`relevance`]}),(0,G.jsxs)(`span`,{className:`${X.faint} ${X.mono}`,style:{fontSize:12},children:[e.truncated?`truncated · `:``,d,` KB`]})]}),(0,G.jsx)(`div`,{className:G9.results,children:e.results.map(e=>{let t=K9(e),n=t?e.document_id:e.chunk_id,r=e.document_id,c=t?e.best_score:e.score,l=e.doc_title||`Untitled`,d=t?e.best_chunk_heading_path:e.heading_path,f=t?e.full_content:e.content,g=e.doc_project_names??[],_=a===n;return(0,G.jsxs)(`article`,{className:`${X.card} ${G9.resultCard} ${_?G9.resultCardOpen:``} ${X.rise}`,children:[(0,G.jsxs)(`div`,{className:G9.resultHead,onClick:()=>o(_?null:n),children:[(0,G.jsx)(Dre,{score:Are(c,p,m),tone:Ore(c,{best:h,belowConfidence:e.below_confidence===!0})}),(0,G.jsxs)(`div`,{className:G9.resultTitleWrap,children:[(0,G.jsxs)(`div`,{className:X.row,style:{gap:8,marginBottom:5},children:[(0,G.jsx)(`h3`,{className:G9.resultTitle,children:(0,G.jsx)(`span`,{className:X.link,style:{cursor:`pointer`},onClick:e=>{e.stopPropagation(),i(`/document/${r}`)},children:l})}),t?e.is_partial?(0,G.jsx)(`span`,{className:`${X.badge} ${X.bYellow}`,children:`excerpt`}):(0,G.jsx)(`span`,{className:`${X.badge} ${X.bGreen}`,children:`full`}):(0,G.jsx)(`span`,{className:`${X.badge} ${X.bNeutral}`,children:`chunk`})]}),d.length>0&&(0,G.jsx)(`div`,{className:G9.breadcrumb,children:d.map((e,t)=>(0,G.jsxs)(`span`,{children:[t>0&&(0,G.jsx)(lw,{size:11}),(0,G.jsx)(`span`,{children:e})]},t))})]}),(0,G.jsxs)(`div`,{className:G9.resultMetaR,children:[g.map(e=>(0,G.jsxs)(`span`,{className:`${X.badge} ${X.bNeutral}`,children:[(0,G.jsx)(`span`,{className:G9.dot,style:{background:Mre(e),width:6,height:6}}),e]},e)),(0,G.jsx)(`span`,{className:`${G9.chev} ${_?G9.chevOpen:``}`,children:(0,G.jsx)(sw,{size:16})})]})]}),(0,G.jsx)(`div`,{className:`${G9.resultSnippet} ${_?G9.resultSnippetOpen:``}`,children:f.slice(0,_?4e3:600)}),_&&(0,G.jsxs)(`div`,{className:G9.resultExpand,children:[(0,G.jsx)(`div`,{className:G9.resultStats,children:t?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`span`,{children:[e.chunk_count,` chunks`]}),(0,G.jsx)(`span`,{children:`·`}),(0,G.jsxs)(`span`,{children:[e.total_chars.toLocaleString(),` chars`]}),e.doc_updated_at&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{children:`·`}),(0,G.jsxs)(`span`,{children:[`updated`,` `,new Date(e.doc_updated_at).toLocaleDateString()]})]})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`span`,{children:[`chunk #`,e.chunk_index]}),(0,G.jsx)(`span`,{children:`·`}),(0,G.jsxs)(`span`,{children:[e.content.length.toLocaleString(),` chars`]})]})}),(0,G.jsxs)(`div`,{className:X.row,style:{gap:8},children:[(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnGhost}`,onClick:()=>i(`/document/${r}`),children:[(0,G.jsx)(yw,{size:14}),`Open document`]}),(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,style:{marginLeft:`auto`},title:s===n?`Copied!`:`Copy CLI command to clipboard`,onClick:()=>u(n,`cerefox document get ${r}`),children:[(0,G.jsx)(Iw,{size:14}),(0,G.jsxs)(`span`,{className:X.mono,style:{fontSize:12},children:[`cerefox document get `,r.slice(0,8),`…`]}),s===n?(0,G.jsx)(ow,{size:13,style:{color:`var(--green)`}}):(0,G.jsx)(pw,{size:13})]})]})]})]},n)})})]})}async function Ire(e){let t=e.metadata_filter&&Object.keys(e.metadata_filter).length>0?JSON.stringify(e.metadata_filter):void 0;return Kw(`/search${Xw({q:e.q,mode:e.mode,project_id:e.project_id,count:e.count===void 0?void 0:e.count,review_status:e.review_status,metadata_filter:t})}`)}function Lre(e){if(!e)return{};let t={};for(let n of e.split(`,`)){let e=n.indexOf(`:`);e>0&&(t[n.slice(0,e)]=n.slice(e+1))}return t}function Rre(e){return Object.entries(e).filter(([e,t])=>e&&t).map(([e,t])=>`${e}:${t}`).join(`,`)}function zre(){let[e]=WC();return{q:e.get(`q`)||``,mode:e.get(`mode`)||`docs`,projectId:e.get(`project_id`)||``,count:Number(e.get(`count`))||10,reviewStatus:e.get(`review_status`)||``,metadataFilter:Lre(e.get(`mf`)||``)}}function Bre(e){let t=!!e.q,n=yI(),r={q:e.q||void 0,mode:e.mode,project_id:e.projectId||void 0,count:e.count,review_status:n&&e.reviewStatus||void 0,metadata_filter:Object.keys(e.metadataFilter).length>0?e.metadataFilter:void 0};return Gb({queryKey:[`search`,r],queryFn:()=>Ire(r),enabled:t})}function Vre(){let[,e]=WC(),t=zre(),{data:n,isLoading:r,error:i}=Bre(t);MT(t.q?`Search: ${t.q}`:`Search`);let{data:a}=Gb({queryKey:[`dashboard`],queryFn:()=>GT()}),o=(0,w.useCallback)(t=>{let n=new URLSearchParams;t.q&&n.set(`q`,t.q),t.mode!==`docs`&&n.set(`mode`,t.mode),t.projectId&&n.set(`project_id`,t.projectId),t.count!==10&&n.set(`count`,String(t.count)),t.reviewStatus&&n.set(`review_status`,t.reviewStatus);let r=Rre(t.metadataFilter);r&&n.set(`mf`,r),e(n)},[e]);return(0,G.jsxs)(`div`,{className:G9.wrap,children:[(0,G.jsxs)(`div`,{className:X.pageHead,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`p`,{className:X.eyebrow,children:`Knowledge base`}),(0,G.jsx)(`h1`,{className:X.pageTitle,"data-testid":`page-title`,children:`Search memory`})]}),(0,G.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,alignItems:`flex-end`,gap:8},children:[a&&(0,G.jsxs)(`span`,{className:`${X.mono} ${X.faint}`,style:{fontSize:12},children:[a.doc_count.toLocaleString(),` docs · `,a.total_chunks.toLocaleString(),` chunks`]}),(0,G.jsx)(_T,{cmd:`cerefox search`,args:`"${t.q||`query`}"${t.mode===`docs`?``:` --mode ${t.mode}`}`})]})]}),(0,G.jsx)(Tre,{query:t.q,mode:t.mode,projectId:t.projectId,count:t.count,reviewStatus:t.reviewStatus,metadataFilter:t.metadataFilter,onSearch:o}),(0,G.jsx)(Fre,{data:n,isLoading:r,error:i,hasQuery:!!t.q})]})}async function Hre(){return Kw(`/config`)}async function Ure(e,t){return Kw(`/config/${encodeURIComponent(e)}`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify({value:t})})}var Wre=[`trash_auto_purge_enabled`,`trash_retention_days`];function Gre(e){if(!Wre.includes(e.key))return null;let t=e.key===`trash_auto_purge_enabled`?e.value:e.currentEnabled,n=e.key===`trash_retention_days`?e.value:e.currentDays;if(t!==`true`)return null;let r=Number(n);return!Number.isInteger(r)||r<1?null:new Date(e.now.getTime()-r*864e5)}function Kre(e,t){return e===0?`Nothing in the trash is older than ${t} day(s) yet, so the next delete will purge nothing.`:`${e} document(s) in the trash are older than ${t} day(s). The next delete will permanently purge ${e<=100?`all ${e}`:`100 of them, and the rest over the following deletes`}.`}var qre=[`Retrieval`,`Retention`,`Governance`,`Features`],Jre={Retrieval:`How search ranks and filters results.`,Governance:`What agent writes must carry, and whether they queue for review.`,Retention:`How long document version history is kept.`,Features:`Optional capabilities, off until you turn them on.`};function Yre(){MT(`Settings`);let e=Ty(),{data:t,isLoading:n}=Gb({queryKey:[`config`],queryFn:Hre}),[r,i]=(0,w.useState)(null),[a,o]=(0,w.useState)({}),s=Kb({mutationFn:({key:e,value:t})=>Ure(e,t),onSuccess:(t,n)=>{RF(`Saved ${n.key}`),e.invalidateQueries({queryKey:[`config`]}),e.invalidateQueries({queryKey:[`config`,n.key]}),o(e=>{let t={...e};return delete t[n.key],t})},onError:e=>{zF(e instanceof Error?e.message:String(e))}});function c(e,t){e.high_impact?i({entry:e,value:t,at:new Date}):s.mutate({key:e.key,value:t})}let l=t?.keys??[],u=e=>l.find(t=>t.key===e)?.effective??null,d=r?Gre({key:r.entry.key,value:r.value,currentEnabled:u(`trash_auto_purge_enabled`),currentDays:u(`trash_retention_days`),now:r.at}):null,f=r?.entry.key===`trash_retention_days`?Number(r.value):Number(u(`trash_retention_days`)),p=Gb({queryKey:[`trash-purge-preview`,d?.toISOString()??null],queryFn:()=>YF(d),enabled:d!==null,staleTime:0});return n?(0,G.jsx)(Y,{children:`Loading settings…`}):(0,G.jsxs)(cv,{gap:`lg`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(yv,{order:2,"data-testid":`page-title`,children:`Settings`}),(0,G.jsx)(Y,{c:`dimmed`,size:`sm`,children:`Runtime configuration stored in the database. A change here applies to every access path — this app, the CLI, and every connected agent.`})]}),qre.map(e=>{let t=l.filter(t=>t.group===e);return t.length===0?null:(0,G.jsx)(Yp,{withBorder:!0,padding:`md`,"data-testid":`config-group-${e}`,children:(0,G.jsxs)(cv,{gap:`xs`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(yv,{order:4,children:e}),(0,G.jsx)(Y,{size:`xs`,c:`dimmed`,children:Jre[e]})]}),t.map(e=>(0,G.jsx)(Xre,{entry:e,draft:a[e.key],onDraft:t=>o(n=>({...n,[e.key]:t})),onSave:t=>c(e,t),saving:s.isPending},e.key))]})},e)}),(0,G.jsx)(WT,{title:`CLI equivalent`,commands:[{cmd:`cerefox config list`},{cmd:`cerefox config get`,args:`min_search_score`},{cmd:`cerefox config set`,args:`min_search_score 0.6`}]}),(0,G.jsx)(Nh,{opened:r!==null,onClose:()=>i(null),title:`Confirm this change`,"data-testid":`config-confirm-modal`,children:r&&(0,G.jsxs)(cv,{gap:`sm`,"data-testid":`config-confirm-body`,children:[(0,G.jsxs)(Y,{size:`sm`,children:[`Set `,(0,G.jsx)($p,{children:r.entry.key}),` to `,(0,G.jsx)($p,{children:r.value}),`?`]}),r.entry.impact_note&&(0,G.jsx)(Rd,{icon:(0,G.jsx)(ew,{size:16}),color:`yellow`,children:(0,G.jsx)(Y,{size:`sm`,children:r.entry.impact_note})}),d!==null&&(0,G.jsx)(Rd,{color:`red`,"data-testid":`trash-purge-preview`,children:(0,G.jsx)(Y,{size:`sm`,children:p.isLoading?`Counting the documents this would make eligible…`:p.isError?`Could not count the documents this would make eligible. Check the Trash page before applying.`:Kre(p.data??0,f)})}),(0,G.jsxs)(Ml,{justify:`flex-end`,children:[(0,G.jsx)(Hp,{variant:`default`,onClick:()=>i(null),children:`Cancel`}),(0,G.jsx)(Hp,{"data-testid":`config-confirm-apply`,loading:s.isPending,onClick:()=>{s.mutate({key:r.entry.key,value:r.value}),i(null)},children:`Apply`})]})]})})]})}function Xre({entry:e,draft:t,onDraft:n,onSave:r,saving:i}){let a=t??e.effective,o=(()=>{let t=e.retired_env_set?.value;if(t===void 0)return!1;let n=Number(t),r=Number(e.effective);return Number.isFinite(n)&&Number.isFinite(r)?n===r:t.trim()===e.effective.trim()})(),s=t!==void 0&&t!==e.effective;return(0,G.jsx)(Yp,{withBorder:!0,padding:`sm`,radius:`sm`,"data-testid":`config-row-${e.key}`,children:(0,G.jsxs)(Ml,{justify:`space-between`,align:`flex-start`,wrap:`nowrap`,children:[(0,G.jsxs)(`div`,{style:{flex:1,minWidth:0},children:[(0,G.jsxs)(Ml,{gap:`xs`,wrap:`nowrap`,align:`baseline`,children:[(0,G.jsx)(Y,{size:`sm`,fw:500,children:e.description}),e.value===null&&(0,G.jsx)(Np,{size:`xs`,variant:`light`,color:`gray`,children:`using default`}),e.high_impact&&(0,G.jsx)(Np,{size:`xs`,variant:`light`,color:`yellow`,children:`affects agents`})]}),(0,G.jsx)($p,{style:{fontSize:`0.72rem`},children:e.key}),e.retired_env_set&&(0,G.jsx)(Rd,{icon:(0,G.jsx)(ew,{size:14}),color:o?`gray`:`yellow`,mt:`xs`,p:`xs`,"data-testid":`config-retired-env-${e.key}`,children:(0,G.jsxs)(Y,{size:`xs`,children:[(0,G.jsx)($p,{children:e.retired_env_set.name}),` is still set in this server's environment (to `,(0,G.jsx)($p,{children:e.retired_env_set.value}),`) but is`,` `,(0,G.jsx)(Y,{span:!0,fw:600,children:`no longer read`}),`. This setting moved into the database in v1.1.0 so one value governs every client.`,` `,o?(0,G.jsxs)(G.Fragment,{children:[`The stored value already matches, so nothing changes: delete that line from your `,(0,G.jsx)($p,{children:`.env`}),`.`]}):(0,G.jsxs)(Y,{span:!0,fw:600,children:[`Your .env asked for `,e.retired_env_set.value,`, but`,` `,e.effective,` is what actually runs. Set it here if you want the old value back, then delete the line from your .env.`]})]})})]}),(0,G.jsxs)(`div`,{style:{minWidth:190},children:[e.kind===`boolean`?(0,G.jsx)(hv,{checked:a===`true`,disabled:i,onChange:e=>r(e.currentTarget.checked?`true`:`false`),label:a===`true`?`true`:`false`}):e.kind===`number`?(0,G.jsxs)(Ml,{gap:`xs`,wrap:`nowrap`,children:[(0,G.jsx)(b_,{value:a===``?``:Number(a),min:e.min??void 0,max:e.max??void 0,step:.05,decimalScale:3,size:`xs`,style:{width:100},onChange:e=>n(String(e))}),(0,G.jsx)(Hp,{size:`xs`,disabled:!s||i,onClick:()=>r(a),children:`Save`})]}):(0,G.jsxs)(Ml,{gap:`xs`,wrap:`nowrap`,children:[(0,G.jsx)(gv,{value:a,size:`xs`,style:{width:120},placeholder:e.default||`(unset)`,onChange:e=>n(e.currentTarget.value)}),(0,G.jsx)(Hp,{size:`xs`,disabled:!s||i,onClick:()=>r(a),children:`Save`})]}),(0,G.jsxs)(Y,{size:`xs`,c:`dimmed`,ta:`right`,mt:4,children:[`default if unset: `,e.default||`(empty)`]})]})]})})}var Y9=e=>Date.parse(e.deleted_at??``)||0,X9=e=>e instanceof Error?e.message:String(e);async function Zre(e){let t=e.confirmed.reduce((e,t)=>Math.max(e,Y9(t)),0),n=new Set,r=[],i=[],a=0,o=!1,s=null,c=e=>!n.has(e.id)&&Y9(e)<=t,l=(t,r)=>e.onProgress?.({done:n.size,total:Math.max(n.size+r,e.totalHint??0),current:t,purged:a,failures:[...i]}),u=e.confirmed.filter(c);outer:for(;u.length>0;){for(let t=0;t<u.length;t++){if(e.shouldStop?.()){o=!0;break outer}let c=u[t];l(c.title,u.length-t);try{(await e.purge(c.id)).purged?a+=1:r.push(c)}catch(t){if(e.isFatal?.(t)){s=X9(t);break outer}i.push({id:c.id,title:c.title,error:X9(t)})}n.add(c.id),l(null,u.length-t-1)}try{u=(await e.listTrash()).filter(c)}catch(e){s=`Could not list the trash: ${X9(e)}`;break}}return{purged:a,restored:r,failures:i,stopped:o,aborted:s}}var Z9=!1,Qre=e=>e instanceof Uw&&[401,403,503].includes(e.status)||e instanceof TypeError,Q9=(e,t)=>`${e} ${t}${e===1?``:`s`}`;function $re({onClose:e,onFinished:t}){let[n,r]=(0,w.useState)({kind:`confirm`}),i=(0,w.useRef)(!1),[a,o]=(0,w.useState)(!1),[s,c]=(0,w.useState)(!1),l=Gb({queryKey:[`trash`,`count`],queryFn:()=>KF(500),enabled:n.kind===`confirm`,staleTime:0,gcTime:0,refetchOnWindowFocus:!1}),u=l.data?.rows,d=l.data?.total,f=n.kind===`running`;(0,w.useEffect)(()=>{if(!f)return;let e=e=>{e.preventDefault(),e.returnValue=``};return window.addEventListener(`beforeunload`,e),()=>{window.removeEventListener(`beforeunload`,e),i.current=!0}},[f]);let p=async()=>{if(u&&u.length!==0){if(Z9)c(!0);else{Z9=!0;try{let e=await Zre({confirmed:u,listTrash:async()=>(await KF(500)).rows,purge:JF,onProgress:e=>r({kind:`running`,progress:e}),shouldStop:()=>i.current,isFatal:Qre,totalHint:d});r({kind:`done`,result:e}),t(e)}finally{Z9=!1}}}};return(0,G.jsxs)(Nh,{opened:!0,onClose:f?()=>{}:e,closeOnClickOutside:!f,closeOnEscape:!f,withCloseButton:!f,title:`Empty trash`,"data-testid":`empty-trash-modal`,children:[n.kind===`confirm`&&(0,G.jsxs)(cv,{gap:`sm`,"data-testid":`empty-trash-confirm`,children:[l.isError?(0,G.jsx)(Rd,{icon:(0,G.jsx)(ew,{size:16}),color:`red`,children:(0,G.jsxs)(Y,{size:`sm`,children:[`Could not read the trash: `,l.error.message,`. Nothing was purged.`]})}):d===void 0?(0,G.jsx)(Y,{size:`sm`,c:`dimmed`,children:`Counting…`}):d===0?(0,G.jsx)(Y,{size:`sm`,children:`The trash is already empty.`}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Rd,{icon:(0,G.jsx)(ew,{size:16}),color:`red`,children:(0,G.jsxs)(Y,{size:`sm`,children:[`Permanently delete `,(0,G.jsx)(`strong`,{children:d}),` `,d===1?`document`:`documents`,`? This cannot be undone: their content, chunks and version history are removed. Restore anything you still want first.`]})}),(0,G.jsx)(Y,{size:`xs`,c:`dimmed`,children:`Only what is in the trash right now is purged, one document at a time, each recorded in the audit log. You can stop part-way; what was purged stays purged.`})]}),s&&(0,G.jsx)(Y,{size:`xs`,c:`red`,children:`A run is already in progress in this tab. Wait for it to finish.`}),(0,G.jsxs)(Ml,{justify:`flex-end`,children:[(0,G.jsx)(Hp,{variant:`default`,onClick:e,children:d===0||l.isError?`Close`:`Cancel`}),d!==void 0&&d>0&&(0,G.jsxs)(Hp,{color:`red`,"data-testid":`empty-trash-start`,onClick:()=>void p(),children:[`Purge `,Q9(d,`document`)]})]})]}),n.kind===`running`&&(0,G.jsxs)(cv,{gap:`sm`,"data-testid":`empty-trash-progress`,children:[(0,G.jsxs)(Y,{size:`sm`,children:[`Purging `,Math.min(n.progress.done+1,n.progress.total),` of`,` `,n.progress.total,`…`]}),(0,G.jsx)(k_,{value:n.progress.total?n.progress.done/n.progress.total*100:0,color:`red`,animated:!0,"aria-label":`Purge progress`}),(0,G.jsx)(Y,{size:`xs`,c:`dimmed`,truncate:!0,children:n.progress.current??` `}),n.progress.failures.length>0&&(0,G.jsxs)(Y,{size:`xs`,c:`red`,children:[n.progress.failures.length,` failed so far`]}),(0,G.jsx)(Ml,{justify:`flex-end`,children:(0,G.jsx)(Hp,{variant:`default`,"data-testid":`empty-trash-stop`,disabled:a,onClick:()=>{i.current=!0,o(!0)},children:a?`Stopping after this one…`:`Stop`})})]}),n.kind===`done`&&(0,G.jsxs)(cv,{gap:`sm`,"data-testid":`empty-trash-done`,children:[(0,G.jsxs)(Y,{size:`sm`,children:[`Purged `,(0,G.jsx)(`strong`,{children:n.result.purged}),` `,n.result.purged===1?`document`:`documents`,n.result.stopped?` before you stopped`:``,`.`]}),n.result.aborted&&(0,G.jsx)(Rd,{icon:(0,G.jsx)(ew,{size:16}),color:`red`,children:(0,G.jsxs)(Y,{size:`sm`,children:[`Stopped early: `,n.result.aborted,`. Whatever was not purged is still in the trash.`]})}),n.result.restored.length>0&&(0,G.jsxs)(Y,{size:`sm`,children:[Q9(n.result.restored.length,`document`),` `,n.result.restored.length===1?`was`:`were`,` restored while this ran and`,` `,n.result.restored.length===1?`is`:`are`,` live again, untouched:`,` `,n.result.restored.map(e=>e.title).join(`, `),`.`]}),n.result.failures.length>0&&(0,G.jsxs)(Rd,{icon:(0,G.jsx)(ew,{size:16}),color:`yellow`,children:[(0,G.jsxs)(Y,{size:`sm`,children:[Q9(n.result.failures.length,`document`),` could not be purged and`,` `,n.result.failures.length===1?`is`:`are`,` still in the trash:`]}),(0,G.jsx)(`ul`,{style:{margin:`6px 0 0`,paddingLeft:18},children:n.result.failures.map(e=>(0,G.jsx)(`li`,{children:(0,G.jsxs)(Y,{size:`xs`,children:[e.title,`: `,e.error]})},e.id))})]}),(0,G.jsx)(Ml,{justify:`flex-end`,children:(0,G.jsx)(Hp,{"data-testid":`empty-trash-close`,onClick:e,children:`Close`})})]})]})}var $9=[`--primary`,`--violet`,`--blue`,`--green`,`--yellow`,`--red`];function eie(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)>>>0;return`var(${$9[t%$9.length]})`}function tie(){MT(`Trash`);let e=SS(),t=Ty(),{data:n}=IF(),r=new Map(n?.map(e=>[e.id,e.name])??[]),[i,a]=(0,w.useState)(``),[o,s]=(0,w.useState)(null),[c,l]=(0,w.useState)(!1),{data:u,isLoading:d}=Gb({queryKey:[`trash`,`page`],queryFn:()=>KF(500),staleTime:1e4}),f=u?.rows,p=u?.total??0,m=()=>AF(t),h=Kb({mutationFn:qF,onSuccess:()=>{m(),RF(`Document restored`)},onError:e=>zF(`Restore failed`,String(e))}),g=Kb({mutationFn:JF,onSuccess:({purged:e})=>{m(),e?RF(`Permanently deleted`):BF(`Not purged`,`The document was restored in the meantime and is live again.`)},onError:e=>zF(`Purge failed`,String(e))});return(0,G.jsx)(TT,{eyebrow:`Recoverable`,title:`Trash`,subtitle:`Soft-deleted documents — excluded from search until restored or purged.`,headerRight:(0,G.jsx)(`div`,{style:{width:400,maxWidth:`100%`},children:(0,G.jsx)(WT,{title:`CLI equivalent`,commands:[{cmd:`cerefox document list`,args:`--deleted`},{cmd:`cerefox document restore`,args:`<id>`}]})}),searchValue:i,onSearchChange:a,searchPlaceholder:`Filter trashed documents…`,searchText:e=>e.title,toolbarExtra:(0,G.jsxs)(G.Fragment,{children:[f&&p>f.length&&(0,G.jsxs)(`span`,{className:X.faint,style:{fontSize:12},"data-testid":`trash-count`,children:[`Showing the `,f.length,` most recently deleted of `,p]}),(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnGhost} ${X.btnDanger}`,title:`Permanently delete every document in the trash (asks first)`,"data-testid":`empty-trash-button`,disabled:d||!f||f.length===0,onClick:()=>l(!0),children:[(0,G.jsx)(Lw,{size:14}),`Empty trash`]}),c&&(0,G.jsx)($re,{onClose:()=>l(!1),onFinished:e=>{m(),e.failures.length===0&&!e.stopped&&!e.aborted?RF(`Trash emptied`,`${e.purged} permanently deleted`):zF(e.aborted?`Emptying the trash stopped early`:e.stopped?`Stopped emptying the trash`:`Trash not fully emptied`,`${e.purged} purged, ${e.failures.length} failed`)}})]}),columns:[{key:`title`,label:`Document`,render:e=>{let t=e.project_ids.find(e=>r.has(e));return(0,G.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:11},children:[(0,G.jsx)(`span`,{style:{width:8,height:8,borderRadius:`50%`,flexShrink:0,background:t?eie(r.get(t)):`var(--text-faint)`}}),(0,G.jsx)(`span`,{className:X.link,style:{fontSize:13.5},children:e.title})]})}},{key:`project`,label:`Project`,width:160,render:e=>{let t=e.project_ids.filter(e=>r.has(e)).map(e=>r.get(e));return t.length?(0,G.jsx)(`span`,{style:{display:`inline-flex`,gap:4,flexWrap:`wrap`},children:t.map(e=>(0,G.jsx)(`span`,{className:`${X.badge} ${X.bNeutral}`,children:e},e))}):(0,G.jsx)(`span`,{className:X.faint,style:{fontSize:12},children:`—`})}},{key:`size`,label:`Size`,width:110,align:`right`,render:e=>(0,G.jsx)(`span`,{className:`${X.mono} ${X.dim}`,style:{fontSize:12},children:e.total_chars.toLocaleString()})},{key:`deleted`,label:`Deleted`,width:120,align:`right`,render:e=>(0,G.jsx)(`span`,{className:`${X.faint} ${X.mono}`,style:{fontSize:12},children:e.deleted_at?.slice(0,10)??`?`})}],rows:f??[],rowKey:e=>e.id,rowClick:t=>e(`/document/${t.id}`),loading:d,emptyText:`Trash is empty.`,actions:e=>o===e.id?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,style:{color:`var(--red)`},onClick:()=>{g.mutate(e.id),s(null)},children:`Confirm purge`}),(0,G.jsx)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,onClick:()=>s(null),children:`Cancel`})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnGhost} ${X.btnWarn}`,title:`Restore from trash`,onClick:()=>h.mutate(e.id),children:[(0,G.jsx)(tw,{size:14}),`Restore`]}),(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnGhost} ${X.btnDanger}`,title:`Permanently delete (cannot be undone)`,onClick:()=>s(e.id),children:[(0,G.jsx)(Rw,{size:14}),`Purge`]})]})})}function nie(){return(0,G.jsx)(ZS,{children:(0,G.jsxs)(YS,{element:(0,G.jsx)(pT,{}),children:[(0,G.jsx)(YS,{path:`/`,element:(0,G.jsx)(QT,{})}),(0,G.jsx)(YS,{path:`/search`,element:(0,G.jsx)(Vre,{})}),(0,G.jsx)(YS,{path:`/metadata-search`,element:(0,G.jsx)(Sre,{})}),(0,G.jsx)(YS,{path:`/document/:id`,element:(0,G.jsx)(EI,{})}),(0,G.jsx)(YS,{path:`/document/:id/edit`,element:(0,G.jsx)(GF,{})}),(0,G.jsx)(YS,{path:`/ingest`,element:(0,G.jsx)(NI,{})}),(0,G.jsx)(YS,{path:`/projects`,element:(0,G.jsx)(II,{})}),(0,G.jsx)(YS,{path:`/projects/:id/documents`,element:(0,G.jsx)(PI,{})}),(0,G.jsx)(YS,{path:`/audit-log`,element:(0,G.jsx)(LT,{})}),(0,G.jsx)(YS,{path:`/trash`,element:(0,G.jsx)(tie,{})}),(0,G.jsx)(YS,{path:`/analytics`,element:(0,G.jsx)(yre,{})}),(0,G.jsx)(YS,{path:`/settings`,element:(0,G.jsx)(Yre,{})}),(0,G.jsx)(YS,{path:`/help`,element:(0,G.jsx)(AI,{})}),(0,G.jsx)(YS,{path:`/help/*`,element:(0,G.jsx)(AI,{})})]})})}var rie=class extends w.Component{state={error:null,stack:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.setState({stack:t.componentStack??null}),console.error(`Unhandled render error`,e,t.componentStack)}render(){let{error:e,stack:t}=this.state;return e?(0,G.jsxs)(`div`,{style:{maxWidth:760,margin:`12vh auto`,padding:`0 20px`,lineHeight:1.55},children:[(0,G.jsx)(`h1`,{style:{fontSize:22,marginBottom:8},children:`Something broke on this page`}),(0,G.jsx)(`p`,{style:{color:`var(--text-faint, #888)`,marginTop:0},children:`This is a bug in Cerefox, not something you did. The rest of the app still works — nothing was lost on the server.`}),(0,G.jsxs)(`pre`,{style:{background:`var(--surface-2, #f5f5f5)`,border:`1px solid var(--border, #ddd)`,borderRadius:8,padding:12,overflow:`auto`,maxHeight:220,fontSize:12.5,whiteSpace:`pre-wrap`},children:[e.message,t?`\n${t.trim()}`:``]}),(0,G.jsxs)(`div`,{style:{display:`flex`,gap:10,marginTop:14},children:[(0,G.jsx)(`button`,{type:`button`,onClick:()=>window.location.reload(),children:`Reload`}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>window.location.href=`/app/`,children:`Back to dashboard`})]}),(0,G.jsxs)(`p`,{style:{fontSize:12.5,color:`var(--text-faint, #888)`,marginTop:16},children:[`Please report it at`,` `,(0,G.jsx)(`a`,{href:`https://github.com/fstamatelopoulos/cerefox/issues`,target:`_blank`,rel:`noreferrer`,children:`github.com/fstamatelopoulos/cerefox/issues`}),` `,`with the text above.`]})]}):this.props.children}},iie=In({primaryColor:`fox`,primaryShade:{light:6,dark:5},colors:{fox:[`#fff1e8`,`#ffdcc6`,`#fcbd97`,`#f99d66`,`#f78440`,`#f57626`,`#e6641a`,`#bf5115`,`#983f10`,`#722f0b`],dark:[`#f3f1f7`,`#c4c0d4`,`#a6a2b8`,`#756f88`,`#332f49`,`#2b2840`,`#1f1c34`,`#161427`,`#121023`,`#0d0b1c`],violet:[`#f3eefe`,`#e0d3fb`,`#c4aef4`,`#aa8aed`,`#9a76e8`,`#8a62e2`,`#7a45d6`,`#6636bb`,`#522a96`,`#3f2175`],blue:[`#e9f2fd`,`#cbe0fa`,`#9cc6f4`,`#6cabef`,`#5aa9f0`,`#3f8fe0`,`#356fd0`,`#2b5aad`,`#22478a`,`#193668`],green:[`#e6f8ef`,`#c3edd9`,`#8fdcb6`,`#5acf95`,`#4ec98a`,`#36b576`,`#2f9e6a`,`#257e54`,`#1d6242`,`#154731`],yellow:[`#fdf6e3`,`#f8e9bd`,`#f0d585`,`#e8c24f`,`#e6bb45`,`#d6a52f`,`#b88824`,`#8f6a1b`,`#6d5115`,`#4d390e`],red:[`#fdecea`,`#f9cfc9`,`#f1a79c`,`#ea7f70`,`#e8675a`,`#dd4a3b`,`#c43a2c`,`#9d2f24`,`#79251c`,`#591b15`]},fontFamily:`Geist, system-ui, -apple-system, sans-serif`,fontFamilyMonospace:`'JetBrains Mono', ui-monospace, monospace`,headings:{fontFamily:`'Space Grotesk', system-ui, sans-serif`,fontWeight:`600`,sizes:{h1:{fontSize:`30px`,lineHeight:`1.15`,fontWeight:`600`},h2:{fontSize:`22px`,lineHeight:`1.2`,fontWeight:`600`},h3:{fontSize:`16px`,lineHeight:`1.3`,fontWeight:`600`}}},defaultRadius:`md`,radius:{xs:`6px`,sm:`8px`,md:`10px`,lg:`14px`,xl:`16px`},shadows:{sm:`0 1px 2px rgba(0,0,0,.10)`,md:`0 10px 30px -12px rgba(40,40,70,.18)`,lg:`0 28px 64px -20px rgba(35,30,80,.28)`},components:{Card:{defaultProps:{radius:`lg`,withBorder:!0,shadow:`sm`,padding:`lg`}},Button:{defaultProps:{radius:`md`},styles:{root:{fontWeight:600}}},Badge:{defaultProps:{radius:`xl`,variant:`light`},styles:{root:{fontFamily:`'JetBrains Mono', monospace`,fontWeight:500,textTransform:`none`}}},TextInput:{defaultProps:{radius:`md`}},Select:{defaultProps:{radius:`md`}},Table:{styles:{th:{fontFamily:`'JetBrains Mono', monospace`,fontSize:`10.5px`,fontWeight:500,letterSpacing:`0.1em`,textTransform:`uppercase`}}},SegmentedControl:{defaultProps:{radius:`md`}},Modal:{defaultProps:{radius:`lg`}},Tabs:{}},other:{fontDisplay:`'Space Grotesk', sans-serif`,fontMono:`'JetBrains Mono', monospace`}}),aie=new Pb({defaultOptions:{queries:{staleTime:3e4,retry:1}}});(0,Vw.createRoot)(document.getElementById(`root`)).render((0,G.jsx)(w.StrictMode,{children:(0,G.jsx)(Ey,{client:aie,children:(0,G.jsxs)(Fn,{theme:iie,defaultColorScheme:`auto`,children:[(0,G.jsx)(Cy,{position:`top-right`}),(0,G.jsx)(rie,{children:(0,G.jsx)(LC,{basename:`/app`,children:(0,G.jsx)(nie,{})})})]})})}));
121
- //# sourceMappingURL=index-CQcG9JWM.js.map
121
+ //# sourceMappingURL=index-lS0yMSGS.js.map