@cerefox/memory 1.22.0 → 1.22.2
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.
- package/dist/bin/cerefox.js +3993 -1656
- package/dist/frontend/assets/Courier-tKiTGlNQ.js +2 -0
- package/dist/frontend/assets/Courier-tKiTGlNQ.js.map +1 -0
- package/dist/frontend/assets/docx-CjhuGfqI.js +11 -0
- package/dist/frontend/assets/docx-CjhuGfqI.js.map +1 -0
- package/dist/frontend/assets/{index-Dhpoy6w3.js → index-BI4vv_74.js} +10 -10
- package/dist/frontend/assets/index-BI4vv_74.js.map +1 -0
- package/dist/frontend/assets/{markdown-YrYQtnOl.js → markdown-D6ZljOkv.js} +2 -2
- package/dist/frontend/assets/{markdown-YrYQtnOl.js.map → markdown-D6ZljOkv.js.map} +1 -1
- package/dist/frontend/assets/{pdf-Bpjaodjd.js → pdf-C3krYx-2.js} +4 -4
- package/dist/frontend/assets/{pdf-Bpjaodjd.js.map → pdf-C3krYx-2.js.map} +1 -1
- package/dist/frontend/assets/pdfmake-DHl2b3Ex.js +163 -0
- package/dist/frontend/assets/pdfmake-DHl2b3Ex.js.map +1 -0
- package/dist/frontend/assets/{rolldown-runtime-COiEfhsA.js → rolldown-runtime-XKyaHtl9.js} +1 -1
- package/dist/frontend/assets/{vfs_fonts-D9BViC6C.js → vfs_fonts-BjQxQix9.js} +2 -2
- package/dist/frontend/assets/{vfs_fonts-D9BViC6C.js.map → vfs_fonts-BjQxQix9.js.map} +1 -1
- package/dist/frontend/index.html +2 -2
- package/dist/server-assets/_shared/ef-meta/index.ts +2 -2
- package/docs/api/openapi.json +5 -1
- package/docs/guides/api.md +1 -1
- package/docs/guides/setup-lan.md +5 -0
- package/docs/guides/setup-local.md +11 -0
- package/package.json +5 -5
- package/dist/frontend/assets/Courier-BRJ-B_ND.js +0 -1370
- package/dist/frontend/assets/Courier-BRJ-B_ND.js.map +0 -1
- package/dist/frontend/assets/docx-Ch26gbLd.js +0 -29
- package/dist/frontend/assets/docx-Ch26gbLd.js.map +0 -1
- package/dist/frontend/assets/index-Dhpoy6w3.js.map +0 -1
- package/dist/frontend/assets/pdfmake-L7DGtDcB.js +0 -229
- package/dist/frontend/assets/pdfmake-L7DGtDcB.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/docx-
|
|
2
|
-
import{i as e,n as t,t as n}from"./rolldown-runtime-COiEfhsA.js";(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 r(e){return Object.keys(e)}function i(e){return e&&typeof e==`object`&&!Array.isArray(e)}function a(e,t){let n={...e},r=t;return i(e)&&i(t)&&Object.keys(t).forEach(t=>{i(r[t])&&t in e?n[t]=a(n[t],r[t]):n[t]=r[t]}),n}function o(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function s(e){return typeof e!=`string`||!e.includes(`var(--mantine-scale)`)?e:e.match(/^calc\((.*?)\)$/)?.[1].split(`*`)[0].trim()}function c(e){let t=s(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 l(e){return e===`0rem`?`0rem`:`calc(${e} * var(--mantine-scale))`}function u(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?l(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?l(n):n}}return r}return n}var d=u(`rem`,{shouldScale:!0}),f=u(`em`);function p(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function m(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 h=n((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 B={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=B,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`})),g=n(((e,t)=>{t.exports=h()})),_=e(g(),1);function v(e){return Array.isArray(e)||e===null?!1:typeof e==`object`&&e.type!==_.Fragment}function y(e){let t=(0,_.createContext)(null);return[t,()=>{let n=(0,_.use)(t);if(n===null)throw Error(e);return n}]}function b(e,t){let n=e;for(;(n=n.parentElement)&&!n.matches(t););return n}function x(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 S(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 C(e,t,n){return b(e,n)===b(t,n)}function w({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(b(s.currentTarget,e)?.querySelectorAll(t)||[]).filter(t=>C(s.currentTarget,t,e)),l=c.findIndex(e=>s.currentTarget===e),u=S(l,c,r),d=x(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[S(-1,c,!1)]?.focus();break;case`End`:s.stopPropagation(),s.preventDefault(),c[x(c.length,c,!1)]?.focus()}}}var T={app:100,modal:200,popover:300,overlay:400,max:9999};function E(e){return T[e]}var D=()=>{};function O(e,t={active:!0}){return typeof e!=`function`||!t.active?t.onKeyDown||D:n=>{n.key===`Escape`&&(e(n),t.onTrigger?.())}}function k(e,t=`size`,n=!0){if(e!==void 0)return m(e)?n?d(e):e:`var(--${t}-${e})`}function A(e){return k(e,`mantine-spacing`)}function j(e){return e===void 0?`var(--mantine-radius-default)`:k(e,`mantine-radius`)}function M(e){return k(e,`mantine-font-size`)}function N(e){return k(e,`mantine-line-height`,!1)}function P(e){if(e)return k(e,`mantine-shadow`,!1)}function F(e,t){return n=>{e?.(n),t?.(n)}}function I(e,t){return e in t?c(t[e]):c(e)}function L(e,t){let n=e.map(e=>({value:e,px:I(e,t)}));return n.sort((e,t)=>e.px-t.px),n}function R(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function z(e,t,n){return n?Array.from(b(n,t)?.querySelectorAll(e)||[]).findIndex(e=>e===n):null}function B(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 ee(e=`mantine-`){return`${e}${Math.random().toString(36).slice(2,11)}`}function te(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 ne(e){let t=(0,_.useRef)(e);return(0,_.useEffect)(()=>{t.current=e}),(0,_.useMemo)(()=>((...e)=>t.current?.(...e)),[])}function re(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=ne(e),s=(0,_.useRef)(0),c=(0,_.useRef)(0),l=(0,_.useRef)(null),u=(0,_.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,_.useEffect)(()=>()=>{r?u.flush():u.cancel()},[u,r]),u}var ie=[`mousedown`,`touchstart`];function ae(e,t,n,r=!0,i=!1){let a=(0,_.useRef)(null),o=t||ie,s=(0,_.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,_.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 oe(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 se(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){let[r,i]=(0,_.useState)(n?t:oe(e));return(0,_.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 V(e,t){return se(`(prefers-color-scheme: dark)`,e===`dark`,t)?`dark`:`light`}var H=typeof document<`u`?_.useLayoutEffect:_.useEffect;function ce(e,t){return e.length!==t.length||t.some((t,n)=>!Object.is(t,e[n]))}function le(e,t){let n=(0,_.useRef)(!1),r=(0,_.useRef)(null),i=(0,_.useRef)(void 0),a={};(0,_.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&&!ce(s,t)))return e()},t)}function U({opened:e,shouldReturnFocus:t=!0}){let n=(0,_.useRef)(null),r=()=>{n.current&&`focus`in n.current&&typeof n.current.focus==`function`&&n.current?.focus({preventScroll:!0})};return le(()=>{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 W=/input|select|textarea|button|object|summary|iframe/,ue=`a, input, select, textarea, button, object, summary, iframe, audio[controls], video[controls], [contenteditable], [tabindex]`;function de(e){let t=e.getAttribute(`contenteditable`);return t!==null&&t!==`false`}function fe(e){let t=e.nodeName.toLowerCase();return(t===`audio`||t===`video`)&&e.hasAttribute(`controls`)}function pe(e){return e.style.display===`none`}function me(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(pe(t))return!1;t=t.parentNode}return!0}function he(e){let t=e.getAttribute(`tabindex`);return t===null&&(t=void 0),parseInt(t,10)}function ge(e){let t=e.nodeName.toLowerCase(),n=!Number.isNaN(he(e));return(W.test(t)&&!e.disabled||de(e)||fe(e)||e instanceof HTMLAnchorElement&&e.href||n)&&me(e)}function _e(e){let t=he(e);return(Number.isNaN(t)||t>=0)&&ge(e)}function ve(e){let t=Array.from(e.querySelectorAll(ue)).filter(_e),n=t.filter(e=>he(e)>0).sort((e,t)=>he(e)-he(t)),r=t.filter(e=>!(he(e)>0));return[...n,...r]}var ye=[`date`,`time`,`datetime-local`,`month`,`week`],be=[`audio`,`video`,`iframe`,`object`,`embed`];function xe(e){return!!e&&e.tagName===`INPUT`&&e.type===`radio`}function Se(e,t){return e.name!==``&&e.name===t.name&&e.form===t.form}function Ce(e){let t=e.nodeName.toLowerCase();return t===`input`?ye.includes(e.type):be.includes(t)}function we(e,t){let n=ve(e);return n.filter(e=>e===t||!xe(e)?!0:xe(t)&&Se(e,t)?!1:e.checked?!0:!n.some(t=>xe(t)&&t.checked&&Se(t,e)))}function Te(e,t,n,r){let i=e.indexOf(t);if(i!==-1)return i+1;if(t===n)return 0;let a=r?Node.DOCUMENT_POSITION_PRECEDING:Node.DOCUMENT_POSITION_FOLLOWING,o=e.findIndex(e=>(t.compareDocumentPosition(e)&a)!==0);return o===-1?0:o}function Ee(e,t,n){let r=we(e,t);n&&r.reverse();let i=Te(r,t,e,n);return[...r.slice(i),...r.slice(0,i)].filter(e=>e!==t)}function De(e,t){for(let n of e)if(n.focus(),t.activeElement===n)return}function Oe(e,t){let n=e.getRootNode(),r=n.activeElement;if(!r||r!==e&&!e.contains(r))return;let i=Ee(e,r,t.shiftKey);Ce(r)?setTimeout(()=>{let t=n.activeElement;e.isConnected&&t!==r&&t!==i[0]&&De([...i,r],n)}):(t.preventDefault(),De(i,n))}var ke=new Set;function Ae(e,t){let n=t.getRootNode().activeElement;if(!n)return!1;for(let r of ke){let i=r.current;if(r!==e&&i&&i!==t&&t.contains(i)&&i.contains(n))return!0}return!1}function je(e=!0){let t=(0,_.useRef)(null),n=e=>{let t=e.querySelector(`[data-autofocus]`);if(!t){let n=Array.from(e.querySelectorAll(ue));t=n.find(_e)||n.find(ge)||null,!t&&ge(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,_.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,_.useEffect)(()=>{if(!e)return;t.current&&setTimeout(()=>{t.current&&n(t.current)});let r=e=>{e.key!==`Tab`||e.defaultPrevented||!t.current||Ae(t,t.current)||Oe(t.current,e)};return ke.add(t),document.addEventListener(`keydown`,r),()=>{ke.delete(t),document.removeEventListener(`keydown`,r)}},[e]),r}var Me=e=>(e+1)%1e6;function Ne(){let[,e]=(0,_.useReducer)(Me,0);return e}function Pe(e){let t=(0,_.useId)(),[n,r]=(0,_.useState)(`mantine-${t.replace(/:/g,``)}`),i=(0,_.useRef)(!1);return H(()=>{i.current||(i.current=!0,r(ee()))},[]),typeof e==`string`?e:n}function Fe(e,t,n){let r=(0,_.useEffectEvent)(t);(0,_.useEffect)(()=>(window.addEventListener(e,r,n),()=>window.removeEventListener(e,r,n)),[e])}function Ie(e,t){if(typeof e==`function`)return e(t);typeof e==`object`&&e&&`current`in e&&(e.current=t)}function Le(...e){let t=new Map;return n=>{if(e.forEach(e=>{let r=Ie(e,n);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{let n=t.get(e);n&&typeof n==`function`?n():Ie(e,null)}),t.clear()}}}function Re(...e){return(0,_.useCallback)(Le(...e),e)}function ze({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){let[i,a]=(0,_.useState)(t===void 0?n:t);return e===void 0?[i,(e,...t)=>{a(e),r?.(e,...t)},!1]:[e,r,!0]}function Be(e,t){return se(`(prefers-reduced-motion: reduce)`,e,t)}function Ve(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(!te(e[n],t[n]))return!1;return!0}function He(e){let t=(0,_.useRef)([]),n=(0,_.useRef)(0);return Ve(t.current,e)||(t.current=e,n.current+=1),[n.current]}function Ue(e,t){(0,_.useEffect)(e,He(t))}function We(e,t,n={autoInvoke:!1}){let r=(0,_.useRef)(null),i=ne(e),a=(0,_.useCallback)((...e)=>{r.current||=window.setTimeout(()=>{i(...e),r.current=null},t)},[t]),o=(0,_.useCallback)(()=>{r.current&&=(window.clearTimeout(r.current),null)},[]);return(0,_.useEffect)(()=>(n.autoInvoke&&a(),o),[o,a]),{start:a,clear:o}}function Ge(e){let t=(0,_.useRef)(void 0);return(0,_.useEffect)(()=>{t.current=e},[e]),t.current}function Ke(e,t,n){let r=(0,_.useRef)(null);(0,_.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 qe(){let[e,t]=(0,_.useState)(!1);return(0,_.useEffect)(()=>t(!0),[]),e}var Je=[`mouse`,`touch`],Ye=10;function Xe(e,t={}){let{threshold:n=400,events:r=Je,cancelOnMove:i=!1,onStart:a,onFinish:o,onCancel:s}=t,c=(0,_.useRef)(!1),l=(0,_.useRef)(!1),u=(0,_.useRef)(-1),d=(0,_.useRef)(null);(0,_.useEffect)(()=>()=>window.clearTimeout(u.current),[]);let f=r.join(`,`);return(0,_.useMemo)(()=>{if(typeof e!=`function`)return{};let t=i!==!1,f=i===!0?Ye:i===!1?0:i,p=t=>{($e(t)||Qe(t))&&(a&&a(t),d.current=Ze(t),l.current=!0,u.current=window.setTimeout(()=>{e(t),c.current=!0},n))},m=e=>{($e(e)||Qe(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=Ze(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 Ze(e){if(Qe(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 Qe(e){return window.TouchEvent?e.nativeEvent instanceof TouchEvent:`touches`in e.nativeEvent}function $e(e){return e.nativeEvent instanceof MouseEvent}var et=n((e=>{var t=g();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`})),tt=n(((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=et()})),nt=e(tt(),1);function rt(e){if(!e||typeof e==`string`)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function it(e){return e.current?e.current.scrollHeight:`auto`}function at(e){return typeof e==`number`&&e>0}function ot({transitionDuration:e,transitionTimingFunction:t=`ease`,onTransitionEnd:n,onTransitionStart:r,expanded:i,keepMounted:a}){let o={height:0,overflow:`hidden`,...a?{}:{display:`none`}},s=(0,_.useEffectEvent)(()=>r?.()),c=(0,_.useEffectEvent)(()=>n?.()),l=(0,_.useRef)(null),[u,d]=(0,_.useState)(i?{}:o),[f,p]=(0,_.useState)(i?`entered`:`exited`),m=e=>{(0,nt.flushSync)(()=>d(e))},h=e=>{m(t=>({...t,...e}))},g=n=>{let r=e??rt(n);return{transition:`height ${r}ms ${t}, opacity ${r}ms ${t}`}},v=(0,_.useRef)(0);le(()=>{v.current+=1;let t=v.current,n=()=>v.current===t;e!==0&&s(),i?window.requestAnimationFrame(()=>{n()&&l.current&&((0,nt.flushSync)(()=>p(`entering`)),h({willChange:`height`,display:`block`,overflow:`hidden`}),window.requestAnimationFrame(()=>{if(!n()||!l.current)return;let e=it(l);at(e)?h({...g(e),height:e}):(m({}),p(`entered`),c())}))}):window.requestAnimationFrame(()=>{if(!n()||!l.current)return;(0,nt.flushSync)(()=>p(`exiting`));let e=it(l);at(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 y=e=>{if(e.target===l.current&&e.propertyName===`height`){if(i){let e=it(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:Le(l,e?.ref),onTransitionEnd:y,style:{boxSizing:`border-box`,...e?.style,...u}})}}function st(e){if(!e||typeof e==`string`)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function ct(e){return e.current?e.current.scrollWidth:`auto`}function lt({transitionDuration:e,transitionTimingFunction:t=`ease`,onTransitionEnd:n,onTransitionStart:r,expanded:i,keepMounted:a}){let o={width:0,overflow:`hidden`,...a?{}:{display:`none`}},s=(0,_.useEffectEvent)(()=>r?.()),c=(0,_.useEffectEvent)(()=>n?.()),l=(0,_.useRef)(null),[u,d]=(0,_.useState)(i?{}:o),[f,p]=(0,_.useState)(i?`entered`:`exited`),m=e=>{(0,nt.flushSync)(()=>d(e))},h=e=>{m(t=>({...t,...e}))},g=n=>{let r=e??st(n);return{transition:`width ${r}ms ${t}, opacity ${r}ms ${t}`}},v=(0,_.useRef)(0);le(()=>{v.current+=1;let t=v.current,n=()=>v.current===t;e!==0&&s(),i?window.requestAnimationFrame(()=>{n()&&l.current&&((0,nt.flushSync)(()=>p(`entering`)),h({willChange:`width`,display:`block`,overflow:`hidden`}),window.requestAnimationFrame(()=>{if(!n()||!l.current)return;let e=ct(l);at(e)?h({...g(e),width:e}):(m({}),p(`entered`),c())}))}):window.requestAnimationFrame(()=>{if(!n()||!l.current)return;(0,nt.flushSync)(()=>p(`exiting`));let e=ct(l);at(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 y=e=>{if(e.target===l.current&&e.propertyName===`width`){if(i){let e=ct(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:Le(l,e?.ref),onTransitionEnd:y,style:{boxSizing:`border-box`,...e?.style,...u}})}}var ut=100;function dt(e){return e>0?1:e<0?-1:0}function ft(e){let t=e??0;return typeof t==`number`?[t,t]:t}function pt(){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 mt(e,t={}){let[n,r]=(0,_.useState)(!1),i=(0,_.useRef)(e);i.current=e;let a=(0,_.useRef)(t);a.current=t;let o=(0,_.useRef)(pt()),s=(0,_.useRef)(null);return{ref:(0,_.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]=ft(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]=ft(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:[dt(d[0]),dt(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:[dt(o[0]),dt(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>ut?[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:[dt(p[0]),dt(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 ht(){return`development`}function gt(e){return e?.props?.ref}function _t(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`}function vt(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=vt(e,n.shadowRoot);if(t)return t}}return null}function yt(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=yt(e,r.shadowRoot);n.push(...t)}}return n}function bt(e){if(!e)return document;let t=e.getRootNode(),n=t.nodeType===Node.DOCUMENT_NODE,r=t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&`host`in t;return n||r?t:document}function xt(e){let t=_.Children.toArray(e);return t.length!==1||!v(t[0])?null:t[0]}function St(e){return e}function Ct(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=Ct(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function wt(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ct(e))&&(r&&(r+=` `),r+=t);return r}var Tt={};function Et(e){let t={};return e.forEach(e=>{Object.entries(e).forEach(([e,n])=>{t[e]?t[e]=wt(t[e],n):t[e]=n})}),t}function Dt({theme:e,classNames:t,props:n,stylesCtx:r}){return Et((Array.isArray(t)?t:[t]).map(t=>typeof t==`function`?t(e,n,r):t||Tt))}function Ot({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 kt(e){return e===`auto`||e===`dark`||e===`light`}function At({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 kt(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&&kt(t.newValue)&&n(t.newValue)},window.addEventListener(`storage`,t)},unsubscribe:()=>{window.removeEventListener(`storage`,t)},clear:()=>{window.localStorage.removeItem(e)}}}function jt(e,t){return typeof e.primaryShade==`number`?e.primaryShade:t===`dark`?e.primaryShade.dark:e.primaryShade.light}function Mt(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function Nt(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 Pt(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 Ft(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 It(e){return Mt(e)?Nt(e):e.startsWith(`rgb`)?Pt(e):e.startsWith(`hsl`)?Ft(e):{r:0,g:0,b:0,a:1}}function Lt(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function Rt(e){let t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function zt(e){if(e.startsWith(`oklch(`))return(Rt(e)||0)/100;let{r:t,g:n,b:r}=It(e),i=t/255,a=n/255,o=r/255,s=Lt(i),c=Lt(a),l=Lt(o);return .2126*s+.7152*c+.0722*l}function Bt(e,t=.179){return!e.startsWith(`var(`)&&zt(e)>t}function Vt({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:Bt(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:Bt(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:Bt(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][jt(t,n||`light`)]:t.colors[r][a];return{color:r,value:e,shade:a,isThemeColor:o,isLight:Bt(e,t.luminanceThreshold),variable:i?`--mantine-color-${r}-${a}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:o,isLight:Bt(e,t.luminanceThreshold),shade:a,variable:void 0}}function Ht(e,t){let n=Vt({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function Ut(e){return!!e&&typeof e==`object`&&`mantine-virtual-color`in e}function Wt(e,t){if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, black ${t*100}%)`;let{r:n,g:r,b:i,a}=It(e),o=1-t,s=e=>Math.round(e*o);return`rgba(${s(n)}, ${s(r)}, ${s(i)}, ${a})`}function Gt(e,t){let n={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},r=Ht(n.from,t),i=Ht(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${i} 100%)`}function Kt(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}=It(e);return`rgba(${n}, ${r}, ${i}, ${t})`}var qt=Kt,Jt=({color:e,theme:t,variant:n,gradient:r,autoContrast:i})=>{let a=Vt({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&&Ut(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:`${d(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:`${d(1)} solid transparent`}:{background:e,hover:Wt(e,.1),color:r,border:`${d(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:`${d(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:n,hover:Wt(n,.1),color:`var(--mantine-color-${a.color}-light-color)`,border:`${d(1)} solid transparent`}}return{background:Kt(e,.1),hover:Kt(e,.12),color:e,border:`${d(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:`${d(1)} solid var(--mantine-color-${e}-outline)`}:{background:`transparent`,hover:Kt(t.colors[a.color][a.shade],.05),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${d(1)} solid var(--mantine-color-${a.color}-${a.shade})`}:{background:`transparent`,hover:Kt(e,.05),color:e,border:`${d(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:`${d(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:`transparent`,hover:Kt(n,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${d(1)} solid transparent`}}return{background:`transparent`,hover:Kt(e,.12),color:e,border:`${d(1)} solid transparent`}}return n===`transparent`?a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${e}-light-color)`,border:`${d(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${d(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:e,border:`${d(1)} solid transparent`}:n===`white`?a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-white)`,hover:Wt(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${d(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:Wt(t.white,.01),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${d(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:Wt(t.white,.01),color:e,border:`${d(1)} solid transparent`}:n===`gradient`?{background:Gt(r,t),hover:Gt(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:`${d(1)} solid var(--mantine-color-default-border)`}:{}};function Yt({color:e,theme:t,autoContrast:n,colorScheme:r}){return(typeof n==`boolean`?n:t.autoContrast)&&Vt({color:e||t.primaryColor,theme:t,colorScheme:r}).isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`}function Xt(e,t,n){return Yt({color:n===`dark`?e.dark:e.light,theme:t,colorScheme:n,autoContrast:!0})}function Zt(e,t){let n=e.colors[e.primaryColor];return Ut(n)?e.autoContrast?Xt(n,e,t):`var(--mantine-color-white)`:Yt({color:n[jt(e,t)],theme:e,autoContrast:null})}function Qt(e,t){return typeof e==`boolean`?e:t.autoContrast}var $t=(0,_.createContext)(null);function en(){let e=(0,_.use)($t);if(!e)throw Error(`[@mantine/core] MantineProvider was not found in tree`);return e}function tn(){return en().cssVariablesResolver}function nn(){return en().classNamesPrefix}function rn(){return en().getStyleNonce}function an(){return en().withStaticClasses}function on(){return en().headless}function sn(){return en().stylesTransform?.sx}function cn(){return en().stylesTransform?.styles}function ln(){return en().env||`default`}function un(){return en().deduplicateInlineStyles}function dn(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 fn({keepTransitions:e}={}){let t=(0,_.useRef)(D),n=(0,_.useRef)(-1),r=(0,_.use)($t),i=rn(),a=(0,_.useRef)(i?.());if(!r)throw Error(`[@mantine/core] MantineProvider was not found in tree`);let o=i=>{r.setColorScheme(i),t.current=e?()=>{}:dn(a.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},s=()=>{r.clearColorScheme(),t.current=e?()=>{}:dn(a.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},c=V(`light`,{getInitialValueInEffect:!1}),l=r.colorScheme===`auto`?c:r.colorScheme,u=(0,_.useCallback)(()=>o(l===`light`?`dark`:`light`),[o,l]);return(0,_.useEffect)(()=>()=>{t.current?.(),window.clearTimeout(n.current)},[]),{colorScheme:r.colorScheme,setColorScheme:o,clearColorScheme:s,toggleColorScheme:u}}function pn(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 mn({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){let i=(0,_.useRef)(null),[a,o]=(0,_.useState)(()=>e.get(t)),s=r||a,c=(0,_.useCallback)(t=>{r||(pn(t,n),o(t),e.set(t))},[e.set,s,r]),l=(0,_.useCallback)(()=>{o(t),pn(t,n),e.clear()},[e.clear,t]);return(0,_.useEffect)(()=>(e.subscribe(c),e.unsubscribe),[e.subscribe,e.unsubscribe]),H(()=>{pn(e.get(t),n)},[]),(0,_.useEffect)(()=>{if(r)return pn(r,n),()=>{};r===void 0&&pn(a,n),typeof window<`u`&&`matchMedia`in window&&(i.current=window.matchMedia(`(prefers-color-scheme: dark)`));let e=e=>{a===`auto`&&pn(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 hn=n((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})),gn=n(((e,t)=>{t.exports=hn()})),_n={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`]},vn=`-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji`,yn={scale:1,fontSmoothing:!0,focusRing:`auto`,white:`#fff`,black:`#000`,colors:_n,primaryShade:{light:6,dark:8},primaryColor:`blue`,variantColorResolver:Jt,autoContrast:!1,luminanceThreshold:.3,fontFamily:vn,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:vn,fontWeight:`700`,textWrap:`wrap`,sizes:{h1:{fontSize:d(34),lineHeight:`1.3`},h2:{fontSize:d(26),lineHeight:`1.35`},h3:{fontSize:d(22),lineHeight:`1.4`},h4:{fontSize:d(18),lineHeight:`1.45`},h5:{fontSize:d(16),lineHeight:`1.5`},h6:{fontSize:d(14),lineHeight:`1.5`}}},fontSizes:{xs:d(12),sm:d(14),md:d(16),lg:d(18),xl:d(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:d(2),sm:d(4),md:d(8),lg:d(16),xl:d(32)},spacing:{xs:d(10),sm:d(12),md:d(16),lg:d(20),xl:d(32)},breakpoints:{xs:`36em`,sm:`48em`,md:`62em`,lg:`75em`,xl:`88em`},shadows:{xs:`0 ${d(1)} ${d(3)} rgba(0, 0, 0, 0.05), 0 ${d(1)} ${d(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${d(1)} ${d(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${d(10)} ${d(15)} ${d(-5)}, rgba(0, 0, 0, 0.04) 0 ${d(7)} ${d(7)} ${d(-5)}`,md:`0 ${d(1)} ${d(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${d(20)} ${d(25)} ${d(-5)}, rgba(0, 0, 0, 0.04) 0 ${d(10)} ${d(10)} ${d(-5)}`,lg:`0 ${d(1)} ${d(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${d(28)} ${d(23)} ${d(-7)}, rgba(0, 0, 0, 0.04) 0 ${d(12)} ${d(12)} ${d(-7)}`,xl:`0 ${d(1)} ${d(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${d(36)} ${d(28)} ${d(-7)}, rgba(0, 0, 0, 0.04) 0 ${d(17)} ${d(17)} ${d(-7)}`},other:{},components:{}},bn=`[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color`,xn=`[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }`;function Sn(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function Cn(e){if(!(e.primaryColor in e.colors))throw Error(bn);if(typeof e.primaryShade==`object`&&(!Sn(e.primaryShade.dark)||!Sn(e.primaryShade.light))||typeof e.primaryShade==`number`&&!Sn(e.primaryShade))throw Error(xn)}function wn(e,t){if(!t)return Cn(e),e;let n=a(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(n.headings={...n.headings,fontFamily:t.fontFamily}),Cn(n),n}var G=gn(),Tn=(0,_.createContext)(null),En=()=>(0,_.use)(Tn)||yn;function Dn(){let e=(0,_.use)(Tn);if(!e)throw Error(`@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app`);return e}function On({theme:e,children:t,inherit:n=!0}){let r=En(),i=(0,_.useMemo)(()=>wn(n?r:yn,e),[e,r,n]);return(0,G.jsx)(Tn,{value:i,children:t})}On.displayName=`@mantine/core/MantineThemeProvider`;function kn(e){return Object.entries(e).map(([e,t])=>`${e}: ${t};`).join(``)}function An(e,t){let n=t?[t]:[`:root`,`:host`],r=kn(e.variables),i=r?`${n.join(`, `)}{${r}}`:``,a=kn(e.dark),o=kn(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 jn({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:i=!0}){if(!e.colors[t])return{};if(n===`light`){let n=jt(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`]:qt(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=jt(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`]:Wt(e.colors[t][9],.5),[`--mantine-color-${r}-light-hover`]:Wt(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`]:qt(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 Mn(e,t,n){r(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}var Nn=e=>{let t=jt(e,`light`),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:d(e.defaultRadius),i={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":Zt(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":Zt(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)`}};Mn(i.variables,e.breakpoints,`breakpoint`),Mn(i.variables,e.spacing,`spacing`),Mn(i.variables,e.fontSizes,`font-size`),Mn(i.variables,e.lineHeights,`line-height`),Mn(i.variables,e.shadows,`shadow`),Mn(i.variables,e.radius,`radius`),Mn(i.variables,e.fontWeights,`font-weight`),e.colors[e.primaryColor].forEach((t,n)=>{i.variables[`--mantine-primary-color-${n}`]=`var(--mantine-color-${e.primaryColor}-${n})`}),r(e.colors).forEach(t=>{let n=e.colors[t];Ut(n)?(Object.assign(i.light,jn({theme:e,name:n.name,color:n.light,colorScheme:`light`,withColorValues:!0})),Object.assign(i.dark,jn({theme:e,name:n.name,color:n.dark,colorScheme:`dark`,withColorValues:!0})),i.light[`--mantine-color-${n.name}-contrast`]=Xt(n,e,`light`),i.dark[`--mantine-color-${n.name}-contrast`]=Xt(n,e,`dark`)):(n.forEach((e,n)=>{i.variables[`--mantine-color-${t}-${n}`]=e}),Object.assign(i.light,jn({theme:e,color:t,colorScheme:`light`,withColorValues:!1})),Object.assign(i.dark,jn({theme:e,color:t,colorScheme:`dark`,withColorValues:!1})))});let a=e.headings.sizes;return r(a).forEach(t=>{i.variables[`--mantine-${t}-font-size`]=a[t].fontSize,i.variables[`--mantine-${t}-line-height`]=a[t].lineHeight,i.variables[`--mantine-${t}-font-weight`]=a[t].fontWeight||e.headings.fontWeight}),i};function Pn(){let e=Dn(),t=rn(),n=r(e.breakpoints).reduce((t,n)=>{let r=e.breakpoints[n].includes(`px`),i=c(e.breakpoints[n]);return`${t}@media (max-width: ${r?`${i-.1}px`:f(i-.1)}) {.mantine-visible-from-${n} {display: none !important;}}@media (min-width: ${r?`${i}px`:f(i)}) {.mantine-hidden-from-${n} {display: none !important;}}`},``);return(0,G.jsx)(`style`,{"data-mantine-styles":`classes`,nonce:t?.(),dangerouslySetInnerHTML:{__html:n}})}function Fn({theme:e,generator:t}){let n=Nn(e),r=t?.(e);return r?a(n,r):n}var In=Nn(yn);function Ln(e){let t={variables:{},light:{},dark:{}};return r(e.variables).forEach(n=>{In.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),r(e.light).forEach(n=>{In.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),r(e.dark).forEach(n=>{In.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function Rn(e){return An({variables:{},dark:{"--mantine-color-scheme":`dark`},light:{"--mantine-color-scheme":`light`}},e)}function zn({cssVariablesSelector:e,deduplicateCssVariables:t}){let n=Dn(),r=rn(),i=Fn({theme:n,generator:tn()}),a=(e===void 0||e===`:root`||e===`:host`)&&t,o=An(a?Ln(i):i,e);return o?(0,G.jsx)(`style`,{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${o}${a?``:Rn(e)}`}}):null}zn.displayName=`@mantine/CssVariables`;function Bn({respectReducedMotion:e,getRootElement:t}){H(()=>{e&&t()?.setAttribute(`data-respect-reduced-motion`,`true`)},[e])}function Vn({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=At(),defaultColorScheme:u=`light`,getRootElement:d=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:p,stylesTransform:m,env:h,deduplicateInlineStyles:g=!1}){let{colorScheme:_,setColorScheme:v,clearColorScheme:y}=mn({defaultColorScheme:u,forceColorScheme:p,manager:l,getRootElement:d});return Bn({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:d}),(0,G.jsx)($t,{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)(On,{theme:e,children:[o&&(0,G.jsx)(zn,{cssVariablesSelector:s,deduplicateCssVariables:a}),i&&(0,G.jsx)(Pn,{}),t]})})}Vn.displayName=`@mantine/core/MantineProvider`;function K(e,t,n){let r=Dn(),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,...p(n)}}function Hn(e){return e}function Un({classNames:e,styles:t,props:n,stylesCtx:r}){let i=Dn();return{resolvedClassNames:e===void 0?void 0:Dt({theme:i,classNames:e,props:n,stylesCtx:r||void 0}),resolvedStyles:t===void 0?void 0:Ot({theme:i,styles:t,props:n,stylesCtx:r||void 0})}}var Wn={always:`mantine-focus-always`,auto:`mantine-focus-auto`,never:`mantine-focus-never`};function Gn({theme:e,options:t,unstyled:n}){return wt(t?.focusable&&!n&&(e.focusClassName||Wn[e.focusRing]),t?.active&&!n&&e.activeClassName)}function Kn(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(!Kn(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)||!Kn(e[i],t[i],n-1))return!1;return!0}function qn({selector:e,stylesCtx:t,options:n,props:r,theme:i}){return Dt({theme:i,classNames:n?.classNames,props:n?.props||r,stylesCtx:t})[e]}function Jn({selector:e,stylesCtx:t,theme:n,classNames:r,props:i}){return Dt({theme:n,classNames:r,props:i,stylesCtx:t})[e]}function Yn({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function Xn({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function Zn({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return r===!1?[]:e.map(e=>`${t}-${e}-${n}`)}function Qn({options:e,classes:t,selector:n,unstyled:r}){return e?.variant&&!r?t[`${n}--${e.variant}`]:void 0}function $n({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 wt(Gn({theme:e,options:t,unstyled:c||m}),o.map(e=>e[r]),Qn({options:t,classes:s,selector:r,unstyled:c||m}),a[r],Jn({selector:r,stylesCtx:f,theme:e,classNames:h,props:d}),qn({selector:r,stylesCtx:f,options:t,props:d,theme:e}),Yn({rootSelector:u,selector:r,className:l}),Xn({selector:r,classes:s,unstyled:c||m}),p&&!m&&Zn({themeName:n,classNamesPrefix:i,selector:r,withStaticClass:t?.withStaticClass}),t?.className)}function er({style:e,theme:t}){return Array.isArray(e)?e.reduce((e,n)=>({...e,...er({style:n,theme:t})}),{}):typeof e==`function`?e(t):e??{}}function tr({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&&Ot({theme:e,styles:n?.styles,props:n?.props||r,stylesCtx:i})[t],...l[t],...a===t?u:null,...er({style:n?.style,theme:e})}}function nr(e){return e.reduce((e,t)=>(t&&Object.keys(t).forEach(n=>{e[n]={...e[n],...p(t[n])}}),e),{})}function rr({props:e,stylesCtx:t,themeName:n,theme:r}){let i=cn()?.();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 ir({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=Dn(),h=nn(),g=an(),_=on(),v=(Array.isArray(e)?e:[e]).filter(e=>e),{withStylesTransform:y,getTransformedStyles:b}=rr({props:n,stylesCtx:r,themeName:v,theme:m}),x=Dt({theme:m,classNames:c,props:n,stylesCtx:r}),S=v.map(e=>Dt({theme:m,classNames:m.components[e]?.classNames,props:n,stylesCtx:r})),C=y?{}:Ot({theme:m,styles:l,props:n,stylesCtx:r}),w={};if(!y)for(let e of v){let t=Ot({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=nr([_?{}:d?.(m,n,r),...v.map(e=>m.components?.[e]?.vars?.(m,n,r)),u?.(m,n,r)]),E=er({style:a,theme:m});return ar((e,a)=>({...f?.[e],className:$n({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:tr({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 ar(e,t,n){let r=(0,_.useRef)(null);return t?(r.current&&Kn(r.current.deps,n,3)||(r.current={deps:n,getStyles:e}),r.current.getStyles):e}function or(e){return r(e).reduce((t,n)=>e[n]===void 0?t:`${t}${o(n)}:${e[n]};`,``).trim()}function sr({selector:e,styles:t,media:n,container:r}){let i=t?or(t):``,a=Array.isArray(n)?n.map(t=>`@media${t.query}{${e}{${or(t.styles)}}}`):[],o=Array.isArray(r)?r.map(t=>`@container ${t.query}{${e}{${or(t.styles)}}}`):[];return`${i?`${e}{${i}}`:``}${a.join(``)}${o.join(``)}`.trim()}function cr(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 lr({deduplicate:e,...t}){let n=rn(),r=sr(t);return e?(0,G.jsx)(`style`,{href:`mantine-${cr(r)}`,precedence:`mantine`,nonce:n?.(),children:r}):(0,G.jsx)(`style`,{"data-mantine-styles":`inline`,nonce:n?.(),dangerouslySetInnerHTML:{__html:r}})}function ur(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 dr(e,t){return`__mdi__-${ur(`${e?or(e):``}|${Array.isArray(t)?t.map(e=>`${e.query}:${or(e.styles)}`).join(`|`):``}`)}`}function fr(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:m,py:h,pt:g,pb:_,pl:v,pr:y,pe:b,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:B,h:ee,mih:te,mah:ne,bgsz:re,bgp:ie,bgr:ae,bga:oe,pos:se,top:V,left:H,bottom:ce,right:le,inset:U,display:W,flex:ue,hiddenFrom:de,visibleFrom:fe,lightHidden:pe,darkHidden:me,sx:he,...ge}=e;return{styleProps:p({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:m,py:h,pt:g,pb:_,pl:v,pr:y,pis:S,pie:C,pe:b,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:B,h:ee,mih:te,mah:ne,bgsz:re,bgp:ie,bgr:ae,bga:oe,pos:se,top:V,left:H,bottom:ce,right:le,inset:U,display:W,flex:ue,bdrs:T,hiddenFrom:de,visibleFrom:fe,lightHidden:pe,darkHidden:me,sx:he}),rest:ge}}var pr={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 mr(e,t){let n=Vt({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 hr(e,t){let n=Vt({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:mr(e,t)}function gr(e,t){if(typeof e==`number`)return d(e);if(typeof e==`string`){let[n,r,...i]=e.split(` `).filter(e=>e.trim()!==``),a=`${d(n)}`;return r&&(a+=` ${r}`),i.length>0&&(a+=` ${mr(i.join(` `),t)}`),a.trim()}return e}var _r={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 vr(e){return typeof e==`string`&&e in _r?_r[e]:e}var yr=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function br(e,t){return typeof e==`string`&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e==`string`&&yr.includes(e)?`var(--mantine-${e}-font-size)`:typeof e==`number`||typeof e==`string`?d(e):e}function xr(e){return e}var Sr=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function Cr(e,t){return typeof e==`string`&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e==`string`&&Sr.includes(e)?`var(--mantine-${e}-line-height)`:e}function wr(e,t){return typeof e==`string`&&e in t.radius?`var(--mantine-radius-${e})`:typeof e==`number`||typeof e==`string`?d(e):e}function Tr(e){return typeof e==`number`?d(e):e}function Er(e,t){if(typeof e==`number`)return d(e);if(typeof e==`string`){let n=e.replace(`-`,``);if(!(n in t.spacing))return d(e);let r=`--mantine-spacing-${n}`;return e.startsWith(`-`)?`calc(var(${r}) * -1)`:`var(${r})`}return e}var Dr={color:mr,textColor:hr,fontSize:br,spacing:Er,radius:wr,identity:xr,size:Tr,lineHeight:Cr,fontFamily:vr,border:gr};function Or(e){return e.replace(`(min-width: `,``).replace(`em)`,``)}function kr({media:e,...t}){let n=Object.keys(e).sort((e,t)=>Number(Or(e))-Number(Or(t))).map(t=>({query:t,styles:e[t]}));return{...t,media:n}}function Ar(e){if(typeof e!=`object`||!e)return!1;let t=Object.keys(e);return t.length!==1||t[0]!==`base`}function jr(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function Mr(e){return typeof e==`object`&&e?r(e).filter(e=>e!==`base`):[]}function Nr(e,t){return typeof e==`object`&&e&&t in e?e[t]:e}function Pr({styleProps:e,data:t,theme:n}){return kr(r(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=jr(e[i]);if(!Ar(e[i]))return o.forEach(e=>{r.inlineStyles[e]=Dr[a.type](s,n)}),r;r.hasResponsiveStyles=!0;let c=Mr(e[i]);return o.forEach(t=>{s!=null&&(r.styles[t]=Dr[a.type](s,n)),c.forEach(o=>{let s=`(min-width: ${n.breakpoints[o]})`;r.media[s]={...r.media[s],[t]:Dr[a.type](Nr(e[i],o),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function Fr(){return`__m__-${(0,_.useId)().replace(/[:«»]/g,``)}`}function Ir(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...Ir(n,t)}),{}):typeof e==`function`?e(t):e??{}}function Lr(e){return e}var Rr=Lr;function zr(e){return e}function q(e){let t=e;return t.extend=zr,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 Br(e){return q(e)}function Vr(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=zr,t}function Hr(e){return`data-${(e.startsWith(`data-`)?e.slice(5):e).replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}`}function Ur(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r===void 0||r===``||r===!1||r===null||(t[Hr(n)]=e[n]),t},{})}function Wr(e){return e?typeof e==`string`?{[Hr(e)]:!0}:Array.isArray(e)?[...e].reduce((e,t)=>({...e,...Wr(t)}),{}):Ur(e):null}function Gr(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...Gr(n,t)}),{}):typeof e==`function`?e(t):e??{}}function Kr({theme:e,style:t,vars:n,styleProps:r}){let i=Gr(t,e),a=Gr(n,e);return{...i,...a,...r}}function qr({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,...h}){let g=Dn(),_=e||`div`,{styleProps:v,rest:y}=fr(h),b=sn()?.()?.(v.sx),x=Fr(),S=Pr({styleProps:v,theme:g,data:pr}),C=un(),w=C&&S.hasResponsiveStyles?dr(S.styles,S.media):x,T={ref:p,style:Kr({theme:g,style:t,vars:n,styleProps:S.inlineStyles}),className:wt(r,b,{[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":m(o)?void 0:o||void 0,size:f,...Wr(a),...y};return(0,G.jsxs)(G.Fragment,{children:[S.hasResponsiveStyles&&(0,G.jsx)(lr,{selector:`.${w}`,styles:S.styles,media:S.media,deduplicate:C}),typeof d==`function`?d(T):(0,G.jsx)(_,{...T})]})}qr.displayName=`@mantine/core/Box`;var J=Rr(qr),Jr=(0,_.createContext)({dir:`ltr`,toggleDirection:()=>{},setDirection:()=>{}});function Yr(){return(0,_.use)(Jr)}var Xr={transitionDuration:200,transitionTimingFunction:`ease`,animateOpacity:!0,orientation:`vertical`,keepMounted:!0,keepMountedMode:`activity`},Zr=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`,Xr,e),m=ln(),h=Dn(),g=Be(),v=h.respectReducedMotion&&g?0:r,y=(f===`horizontal`?lt:ot)({expanded:n,transitionDuration:v,transitionTimingFunction:i,onTransitionEnd:o,onTransitionStart:s,keepMounted:!1});if(v===0)return l===!0&&(u===`display-none`||m!==`test`)?u===`display-none`?(0,G.jsx)(J,{...p,style:{...Ir(a,h),...n?{}:{display:`none`}},ref:d,children:t}):(0,G.jsx)(_.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 b=y.state===`exited`,x;return x=l===!1?b?null:t:l===!0?u===`display-none`?t:(0,G.jsx)(_.Activity,{mode:b?`hidden`:`visible`,children:t}):t,(0,G.jsx)(J,{...p,...y.getCollapseProps({style:{opacity:n||!c?1:0,transition:c?`opacity ${v}ms ${i}`:`none`,...Ir(a,h),...l&&u===`display-none`&&b?{display:`none`}:{}},ref:d}),children:x})});Zr.displayName=`@mantine/core/Collapse`;var[Qr,$r]=y(`ScrollArea.Root component was not found in tree`);function ei(e,t){let n=(0,_.useEffectEvent)(t);H(()=>{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 ti(e){let{style:t,...n}=e,r=$r(),[i,a]=(0,_.useState)(0),[o,s]=(0,_.useState)(0),c=!!(i&&o);return ei(r.scrollbarX,()=>{let e=r.scrollbarX?.offsetHeight||0;r.onCornerHeightChange(e),s(e)}),ei(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 ni(e){let t=$r(),n=!!(t.scrollbarX&&t.scrollbarY);return t.type!==`scroll`&&n?(0,G.jsx)(ti,{...e}):null}var ri={scrollHideDelay:1e3,type:`hover`};function ii(e){let{type:t,scrollHideDelay:n,scrollbars:r,getStyles:i,ref:a,...o}=K(`ScrollAreaRoot`,ri,e),[s,c]=(0,_.useState)(null),[l,u]=(0,_.useState)(null),[d,f]=(0,_.useState)(null),[p,m]=(0,_.useState)(null),[h,g]=(0,_.useState)(null),[v,y]=(0,_.useState)(0),[b,x]=(0,_.useState)(0),[S,C]=(0,_.useState)(!1),[w,T]=(0,_.useState)(!1),E=Re(a,c);return(0,G.jsx)(Qr,{value:{type:t,scrollHideDelay:n,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:S,onScrollbarXEnabledChange:C,scrollbarY:h,onScrollbarYChange:g,scrollbarYEnabled:w,onScrollbarYEnabledChange:T,onCornerWidthChange:y,onCornerHeightChange:x,getStyles:i},children:(0,G.jsx)(J,{...o,ref:E,__vars:{"--sa-corner-width":r===`xy`?`${v}px`:`0px`,"--sa-corner-height":r===`xy`?`${b}px`:`0px`}})})}ii.displayName=`@mantine/core/ScrollAreaRoot`;function ai(e,t){let n=e/t;return Number.isNaN(n)?0:n}function oi(e){let t=ai(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function si(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 ci(e,[t,n]){return Math.min(n,Math.max(t,e))}function li(e,t,n=`ltr`){let r=oi(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=ci(e,n===`ltr`?[0,o]:[o*-1,0]);return si([0,o],[0,s])(c)}function ui(e,t,n,r=`ltr`){let i=oi(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 si([c,l],d)(e)}function di(e,t){return e>0&&e<t}function fi(e){return e?parseInt(e,10):0}function pi(e,t,{checkForDefaultPrevented:n=!0}={}){return r=>{e?.(r),n!==!1&&r.defaultPrevented||t?.(r)}}var[mi,hi]=y(`ScrollAreaScrollbar was not found in tree`);function gi(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=$r(),[p,m]=(0,_.useState)(null),h=Re(u,m),g=(0,_.useRef)(null),v=(0,_.useRef)(``),y=t.content-t.viewport,b=(0,_.useEffectEvent)(e=>c(e,y)),x=ne(o),S=re(l,10),C=e=>{if(g.current){let t=e.clientX-g.current.left,n=e.clientY-g.current.top;s({x:t,y:n})}};return(0,_.useEffect)(()=>{if(!p)return;let e=e=>b(e);return p.addEventListener(`wheel`,e,{passive:!1}),()=>p.removeEventListener(`wheel`,e)},[p]),(0,_.useEffect)(x,[t,x]),ei(p,S),ei(f.content,S),(0,G.jsx)(mi,{value:{scrollbar:p,hasThumb:n,onThumbChange:ne(r),onThumbPointerUp:ne(i),onThumbPositionChange:x,onThumbPointerDown:ne(a)},children:(0,G.jsx)(`div`,{...d,ref:h,"data-mantine-scrollbar":!0,style:{position:`absolute`,...d.style},onPointerDown:pi(e.onPointerDown,e=>{e.preventDefault(),e.button===0&&(e.target.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,C(e))}),onPointerMove:pi(e.onPointerMove,C),onPointerUp:pi(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(e.preventDefault(),t.releasePointerCapture(e.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=v.current,g.current=null}})})}var _i=e=>{let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=$r(),[s,c]=(0,_.useState)(),l=(0,_.useRef)(null),u=Re(i,l,o.onScrollbarXChange);return(0,_.useEffect)(()=>{l.current&&c(getComputedStyle(l.current))},[l]),(0,G.jsx)(gi,{"data-orientation":`horizontal`,...a,ref:u,sizes:t,style:{...r,"--sa-thumb-width":`${oi(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),di(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:fi(s.paddingLeft),paddingEnd:fi(s.paddingRight)}})}})};_i.displayName=`@mantine/core/ScrollAreaScrollbarX`;function vi(e){let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=$r(),[s,c]=(0,_.useState)(),l=(0,_.useRef)(null),u=Re(i,l,o.onScrollbarYChange);return(0,_.useEffect)(()=>{l.current&&c(window.getComputedStyle(l.current))},[]),(0,G.jsx)(gi,{...a,"data-orientation":`vertical`,ref:u,sizes:t,style:{"--sa-thumb-height":`${oi(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),di(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:fi(s.paddingTop),paddingEnd:fi(s.paddingBottom)}})}})}vi.displayName=`@mantine/core/ScrollAreaScrollbarY`;function yi(e){let{orientation:t=`vertical`,...n}=e,{dir:r}=Yr(),i=$r(),a=(0,_.useRef)(null),o=(0,_.useRef)(0),[s,c]=(0,_.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=ai(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)=>ui(e,o.current,s,t);return t===`horizontal`?(0,G.jsx)(_i,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollLeft,t=li(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)(vi,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollTop,t=li(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}yi.displayName=`@mantine/core/ScrollAreaScrollbarVisible`;function bi(e){let t=$r(),{forceMount:n,...r}=e,[i,a]=(0,_.useState)(!1),o=e.orientation===`horizontal`,s=re(()=>{if(t.viewport){let e=t.viewport.offsetWidth<t.viewport.scrollWidth,n=t.viewport.offsetHeight<t.viewport.scrollHeight;a(o?e:n)}},10);return ei(t.viewport,s),ei(t.content,s),n||i?(0,G.jsx)(yi,{"data-state":i?`visible`:`hidden`,...r}):null}bi.displayName=`@mantine/core/ScrollAreaScrollbarAuto`;function xi(e){let{forceMount:t,...n}=e,r=$r(),[i,a]=(0,_.useState)(!1);return(0,_.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)(bi,{"data-state":i?`visible`:`hidden`,...n}):null}xi.displayName=`@mantine/core/ScrollAreaScrollbarHover`;function Si(e){let{forceMount:t,...n}=e,r=$r(),i=e.orientation===`horizontal`,[a,o]=(0,_.useState)(`hidden`),s=re(()=>o(`idle`),100);return(0,_.useEffect)(()=>{if(a===`idle`){let e=window.setTimeout(()=>o(`hidden`),r.scrollHideDelay);return()=>window.clearTimeout(e)}},[a,r.scrollHideDelay]),(0,_.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)(yi,{"data-state":a===`hidden`?`hidden`:`visible`,...n,onPointerEnter:pi(e.onPointerEnter,()=>o(`interacting`)),onPointerLeave:pi(e.onPointerLeave,()=>o(`idle`))}):null}function Ci(e){let{forceMount:t,...n}=e,r=$r(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=r,o=e.orientation===`horizontal`;return(0,_.useEffect)(()=>(o?i(!0):a(!0),()=>{o?i(!1):a(!1)}),[o,i,a]),r.type===`hover`?(0,G.jsx)(xi,{...n,forceMount:t}):r.type===`scroll`?(0,G.jsx)(Si,{...n,forceMount:t}):r.type===`auto`?(0,G.jsx)(bi,{...n,forceMount:t}):r.type===`always`?(0,G.jsx)(yi,{...n}):null}Ci.displayName=`@mantine/core/ScrollAreaScrollbar`;function wi(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 Ti(e){let{style:t,ref:n,...r}=e,i=$r(),a=hi(),{onThumbPositionChange:o}=a,s=Re(n,a.onThumbChange),c=(0,_.useRef)(void 0),l=re(()=>{c.current&&=(c.current(),void 0)},100);return(0,_.useEffect)(()=>{let{viewport:e}=i;if(e){let t=()=>{if(l(),!c.current){let t=wi(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:pi(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:pi(e.onPointerUp,a.onThumbPointerUp)})}Ti.displayName=`@mantine/core/ScrollAreaThumb`;function Ei(e){let{forceMount:t,...n}=e,r=hi();return t||r.hasThumb?(0,G.jsx)(Ti,{...n}):null}Ei.displayName=`@mantine/core/ScrollAreaThumb`;function Di({children:e,style:t,ref:n,onWheel:r,...i}){let a=$r(),o=Re(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})})}Di.displayName=`@mantine/core/ScrollAreaViewport`;var Oi={root:`m_d57069b5`,content:`m_b1336c6`,viewport:`m_c0783ff9`,viewportInner:`m_f8f631dd`,scrollbar:`m_c44ba933`,thumb:`m_d8b5e363`,corner:`m_21657268`};function ki(){return typeof window<`u`}function Ai(e){return Ni(e)?(e.nodeName||``).toLowerCase():`#document`}function ji(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Mi(e){return((Ni(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Ni(e){return ki()?e instanceof Node||e instanceof ji(e).Node:!1}function Pi(e){return ki()?e instanceof Element||e instanceof ji(e).Element:!1}function Fi(e){return ki()?e instanceof HTMLElement||e instanceof ji(e).HTMLElement:!1}function Ii(e){return!ki()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof ji(e).ShadowRoot}function Li(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Ji(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Ri(e){return/^(table|td|th)$/.test(Ai(e))}function zi(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Bi=/transform|translate|scale|rotate|perspective|filter/,Vi=/paint|layout|strict|content/,Hi=e=>!!e&&e!==`none`,Ui;function Wi(e){let t=Pi(e)?Ji(e):e;return Hi(t.transform)||Hi(t.translate)||Hi(t.scale)||Hi(t.rotate)||Hi(t.perspective)||!Ki()&&(Hi(t.backdropFilter)||Hi(t.filter))||Bi.test(t.willChange||``)||Vi.test(t.contain||``)}function Gi(e){let t=Xi(e);for(;Fi(t)&&!qi(t);){if(Wi(t))return t;if(zi(t))return null;t=Xi(t)}return null}function Ki(){return Ui??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Ui}function qi(e){return/^(html|body|#document)$/.test(Ai(e))}function Ji(e){return ji(e).getComputedStyle(e)}function Yi(e){return Pi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xi(e){if(Ai(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Ii(e)&&e.host||Mi(e);return Ii(t)?t.host:t}function Zi(e){let t=Xi(e);return qi(t)?(e.ownerDocument||e).body:Fi(t)&&Li(t)?t:Zi(t)}function Qi(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Zi(e),i=r===e.ownerDocument?.body,a=ji(r);if(i){let e=$i(a);return t.concat(a,a.visualViewport||[],Li(r)?r:[],e&&n?Qi(e):[])}return t.concat(r,Qi(r,[],n))}function $i(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var ea=[`top`,`right`,`bottom`,`left`],ta=Math.min,na=Math.max,ra=Math.round,ia=Math.floor,aa=e=>({x:e,y:e}),oa={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function sa(e,t,n){return na(e,ta(t,n))}function ca(e,t){return typeof e==`function`?e(t):e}function la(e){return e.split(`-`)[0]}function ua(e){return e.split(`-`)[1]}function da(e){return e===`x`?`y`:`x`}function fa(e){return e===`y`?`height`:`width`}function pa(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function ma(e){return da(pa(e))}function ha(e,t,n){n===void 0&&(n=!1);let r=ua(e),i=ma(e),a=fa(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=wa(o)),[o,wa(o)]}function ga(e){let t=wa(e);return[_a(e),t,_a(t)]}function _a(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var va=[`left`,`right`],ya=[`right`,`left`],ba=[`top`,`bottom`],xa=[`bottom`,`top`];function Sa(e,t,n){switch(e){case`top`:case`bottom`:return n?t?ya:va:t?va:ya;case`left`:case`right`:return t?ba:xa;default:return[]}}function Ca(e,t,n,r){let i=ua(e),a=Sa(la(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(_a)))),a}function wa(e){let t=la(e);return oa[t]+e.slice(t.length)}function Ta(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Ea(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Ta(e)}function Da(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 Oa(){let e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function ka(){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 Aa(){return/apple/i.test(navigator.vendor)}function ja(){return Oa().toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints}function Ma(){return ka().includes(`jsdom/`)}var Na=`data-floating-ui-focusable`,Pa=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`;function Fa(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 Ia(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ii(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function La(e){return`composedPath`in e?e.composedPath()[0]:e.target}function Ra(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 za(e){return e.matches(`html,body`)}function Ba(e){return e?.ownerDocument||document}function Va(e){return Fi(e)&&e.matches(Pa)}function Ha(e){if(!e||Ma())return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Ua(e){return e?e.hasAttribute(Na)?e:e.querySelector(`[`+Na+`]`)||e:null}function Wa(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...Wa(e,t.id,n)])}function Ga(e){return`nativeEvent`in e}function Ka(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}var qa=typeof document<`u`?_.useLayoutEffect:function(){},Ja={..._};function Ya(e){let t=_.useRef(e);return qa(()=>{t.current=e}),t}var Xa=Ja.useInsertionEffect||(e=>e());function Za(e){let t=_.useRef(()=>{});return Xa(()=>{t.current=e}),_.useCallback(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function Qa(e,t,n){let{reference:r,floating:i}=e,a=pa(t),o=ma(t),s=fa(o),c=la(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=ua(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function $a(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}=ca(t,e),p=Ea(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Da(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=Da(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 eo=50,to=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:$a},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Qa(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<eo&&(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}=Qa(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},no=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}=ca(e,t)||{};if(l==null)return{};let d=Ea(u),f={x:n,y:r},p=ma(i),m=fa(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=ta(d[_],T),D=ta(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=sa(E,k,O),j=!c.arrow&&ua(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}}}),ro=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}=ca(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=la(r),_=pa(o),v=la(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[wa(o)]:ga(o)),x=p!==`none`;!d&&x&&b.push(...Ca(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=ha(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`||_===pa(t)||T.every(e=>pa(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=pa(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 io(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ao(e){return ea.some(t=>e[t]>=0)}var oo=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=ca(e,t);switch(i){case`referenceHidden`:{let e=io(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ao(e)}}}case`escaped`:{let e=io(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ao(e)}}}default:return{}}}}};function so(e){let t=ta(...e.map(e=>e.left)),n=ta(...e.map(e=>e.top)),r=na(...e.map(e=>e.right)),i=na(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function co(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=>Da(so(e)))}var lo=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}=ca(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=co(u),f=Da(so(u)),p=Ea(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(pa(n)===`y`){let e=d[0],t=d[d.length-1],r=la(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return Da({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=la(n)===`left`,t=na(...d.map(e=>e.right)),r=ta(...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 Da({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}}:{}}}},uo=new Set([`left`,`top`]);async function fo(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=la(n),s=ua(n),c=pa(n)===`y`,l=uo.has(o)?-1:1,u=a&&c?-1:1,d=ca(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 po=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 fo(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}}}}},mo=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}=ca(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=pa(i),p=da(f),m=u[p],h=u[f],g=(e,t)=>sa(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}}}}}},ho=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}=ca(e,t),u={x:n,y:r},d=pa(i),f=da(d),p=u[f],m=u[d],h=ca(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=uo.has(la(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}}}},go=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}=ca(e,t),c=await i.detectOverflow(t,s),l=la(n),u=ua(n),d=pa(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=ta(p-c[m],g),y=ta(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*na(c.left,c.right):S=p-2*na(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 _o(e){let t=Ji(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Fi(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=ra(n)!==a||ra(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function vo(e){return Pi(e)?e:e.contextElement}function yo(e){let t=vo(e);if(!Fi(t))return aa(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=_o(t),o=(a?ra(n.width):n.width)/r,s=(a?ra(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var bo=aa(0);function xo(e){let t=ji(e);return!Ki()||!t.visualViewport?bo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function So(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===ji(e)}function Co(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=vo(e),o=aa(1);t&&(r?Pi(r)&&(o=yo(r)):o=yo(e));let s=So(a,n,r)?xo(a):aa(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=ji(a),t=Pi(r)?ji(r):r,n=e,i=$i(n);for(;i&&t!==n;){let e=yo(i),t=i.getBoundingClientRect(),r=Ji(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=ji(i),i=$i(n)}}return Da({width:u,height:d,x:c,y:l})}function wo(e,t){let n=Yi(e).scrollLeft;return t?t.left+n:Co(Mi(e)).left+n}function To(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-wo(e,n),y:n.top+t.scrollTop}}function Eo(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Mi(r),s=t?zi(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=aa(1),u=aa(0),d=Fi(r);if((d||!a)&&((Ai(r)!==`body`||Li(o))&&(c=Yi(r)),d)){let e=Co(r);l=yo(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?To(o,c):aa(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 Do(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Oo(e){let t=Yi(e),n=e.ownerDocument.body,r=na(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=na(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+wo(e),o=-t.scrollTop;return Ji(n).direction===`rtl`&&(a+=na(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var ko=25;function Ao(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=ji(e),a=Mi(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Ki()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(wo(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<=ko&&(s-=o)}return{width:s,height:c,x:l,y:u}}function jo(e,t){let n=Co(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=yo(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Mo(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Ao(e,n,t);else if(t===`document`)r=Oo(Mi(e));else if(Pi(t))r=jo(t,n);else{let n=xo(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Da(r)}function No(e,t){let n=t.get(e);if(n)return n;let r=Qi(e,[],!1).filter(e=>Pi(e)&&Ai(e)!==`body`),i=null,a=Ji(e).position===`fixed`,o=a?Xi(e):e;for(;Pi(o)&&!qi(o);){let e=Ji(o),t=Wi(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Xi(o)}return t.set(e,r),r}function Po(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?zi(t)?[]:No(t,this._c):[].concat(n),r],o=Mo(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=Mo(t,a[e],i);s=na(n.top,s),c=ta(n.right,c),l=ta(n.bottom,l),u=na(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Fo(e){let{width:t,height:n}=_o(e);return{width:t,height:n}}function Io(e,t,n){let r=Fi(t),i=Mi(t),a=n===`fixed`,o=Co(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=aa(0);if((r||!a)&&((Ai(t)!==`body`||Li(i))&&(s=Yi(t)),r)){let e=Co(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=wo(i));let l=i&&!r&&!a?To(i,s):aa(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 Lo(e){return Ji(e).position===`static`}function Ro(e,t){if(!Fi(e)||Ji(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Mi(e)===n&&(n=n.ownerDocument.body),n}function zo(e,t){let n=ji(e);if(zi(e))return n;if(!Fi(e)){let t=Xi(e);for(;t&&!qi(t);){if(Pi(t)&&!Lo(t))return t;t=Xi(t)}return n}let r=Ro(e,t);for(;r&&Ri(r)&&Lo(r);)r=Ro(r,t);return r&&qi(r)&&Lo(r)&&!Wi(r)?n:r||Gi(e)||n}var Bo=async function(e){let t=this.getOffsetParent||zo,n=this.getDimensions,r=await n(e.floating);return{reference:Io(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Vo(e){return Ji(e).direction===`rtl`}var Ho={convertOffsetParentRelativeRectToViewportRelativeRect:Eo,getDocumentElement:Mi,getClippingRect:Po,getOffsetParent:zo,getElementRects:Bo,getClientRects:Do,getDimensions:Fo,getScale:yo,isElement:Pi,isRTL:Vo};function Uo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Wo(e,t,n){let r=null,i,a=Mi(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=ia(d),h=ia(a.clientWidth-(u+f)),g=ia(a.clientHeight-(d+p)),_=ia(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:na(0,ta(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Uo(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=ji(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Go(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=vo(e),u=i||a?[...l?Qi(l):[],...t?Qi(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Wo(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?Co(e):null;c&&g();function g(){let t=Co(e);h&&!Uo(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 Ko=po,qo=mo,Jo=ro,Yo=go,Xo=oo,Zo=no,Qo=lo,$o=ho,es=(e,t,n)=>{let r=new Map,i=n??{},a={...Ho,...i.platform,_c:r};return to(e,t,{...i,platform:a})},ts=typeof document<`u`?_.useLayoutEffect:function(){};function ns(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(!ns(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)&&!ns(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function rs(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function is(e,t){let n=rs(e);return Math.round(t*n)/n}function as(e){let t=_.useRef(e);return ts(()=>{t.current=e}),t}function os(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]=_.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=_.useState(r);ns(f,r)||p(r);let[m,h]=_.useState(null),[g,v]=_.useState(null),y=_.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),b=_.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),x=a||m,S=o||g,C=_.useRef(null),w=_.useRef(null),T=_.useRef(u),E=c!=null,D=as(c),O=as(i),k=as(l),A=_.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),es(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!ns(T.current,t)&&(T.current=t,nt.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);ts(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=_.useRef(!1);ts(()=>(j.current=!0,()=>{j.current=!1}),[]),ts(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=_.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),N=_.useMemo(()=>({reference:x,floating:S}),[x,S]),P=_.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=is(N.floating,u.x),r=is(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...rs(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return _.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:P}),[u,A,M,N,P])}var ss=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?{}:Zo({element:r.current,padding:i}).fn(n):r?Zo({element:r,padding:i}).fn(n):{}}}},cs=(e,t)=>{let n=Ko(e);return{name:n.name,fn:n.fn,options:[e,t]}},ls=(e,t)=>{let n=qo(e);return{name:n.name,fn:n.fn,options:[e,t]}},us=(e,t)=>({fn:$o(e).fn,options:[e,t]}),ds=(e,t)=>{let n=Jo(e);return{name:n.name,fn:n.fn,options:[e,t]}},fs=(e,t)=>{let n=Yo(e);return{name:n.name,fn:n.fn,options:[e,t]}},ps=(e,t)=>{let n=Xo(e);return{name:n.name,fn:n.fn,options:[e,t]}},ms=(e,t)=>{let n=Qo(e);return{name:n.name,fn:n.fn,options:[e,t]}},hs=(e,t)=>{let n=ss(e);return{name:n.name,fn:n.fn,options:[e,t]}};function gs(e){let t=_.useRef(void 0),n=_.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 _.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var _s=`data-floating-ui-focusable`,vs=`active`,ys=`selected`,bs=`ArrowLeft`,xs=`ArrowRight`,Ss=`ArrowUp`,Cs=`ArrowDown`,ws=[bs,xs],Ts=[Ss,Cs];[...ws,...Ts];var Es={..._},Ds=!1,Os=0,ks=()=>`floating-ui-`+Math.random().toString(36).slice(2,6)+Os++;function As(){let[e,t]=_.useState(()=>Ds?ks():void 0);return qa(()=>{e??t(ks())},[]),_.useEffect(()=>{Ds=!0},[]),e}var js=Es.useId||As;function Ms(){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 Ns=_.createContext(null),Ps=_.createContext(null),Fs=()=>_.useContext(Ns)?.id||null,Is=()=>_.useContext(Ps);function Ls(e){return`data-floating-ui-`+e}function Rs(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}var zs=Ls(`safe-polygon`);function Bs(e,t,n){if(n&&!Ka(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 Vs(e){return typeof e==`function`?e():e}function Hs(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=Is(),m=Fs(),h=Ya(l),g=Ya(c),v=Ya(n),y=Ya(d),b=_.useRef(),x=_.useRef(-1),S=_.useRef(),C=_.useRef(-1),w=_.useRef(!0),T=_.useRef(!1),E=_.useRef(()=>{}),D=_.useRef(!1),O=Za(()=>{let e=i.current.openEvent?.type;return e?.includes(`mouse`)&&e!==`mousedown`});_.useEffect(()=>{if(!s)return;function e(e){let{open:t}=e;t||(Rs(x),Rs(C),w.current=!0,D.current=!1)}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[s,a]),_.useEffect(()=>{if(!s||!h.current||!n)return;function e(e){O()&&r(!1,e,`hover`)}let t=Ba(o.floating).documentElement;return t.addEventListener(`mouseleave`,e),()=>{t.removeEventListener(`mouseleave`,e)}},[o.floating,n,r,s,h,O]);let k=_.useCallback(function(e,t,n){t===void 0&&(t=!0),n===void 0&&(n=`hover`);let i=Bs(g.current,`close`,b.current);i&&!S.current?(Rs(x),x.current=window.setTimeout(()=>r(!1,e,n),i)):t&&(Rs(x),r(!1,e,n))},[g,r]),A=Za(()=>{E.current(),S.current=void 0}),j=Za(()=>{if(T.current){let e=Ba(o.floating).body;e.style.pointerEvents=``,e.removeAttribute(zs),T.current=!1}}),M=Za(()=>i.current.openEvent?[`click`,`mousedown`].includes(i.current.openEvent.type):!1);_.useEffect(()=>{if(!s)return;function e(e){if(Rs(x),w.current=!1,u&&!Ka(b.current)||Vs(y.current)>0&&!Bs(g.current,`open`))return;let t=Bs(g.current,`open`,b.current);t?x.current=window.setTimeout(()=>{v.current||r(!0,e,`hover`)},t):n||r(!0,e,`hover`)}function t(e){if(M()){j();return}E.current();let t=Ba(o.floating);if(Rs(C),D.current=!1,h.current&&i.current.floatingContext){n||Rs(x),S.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=S.current;t.addEventListener(`mousemove`,r),E.current=()=>{t.removeEventListener(`mousemove`,r)}}else b.current===`touch`&&Ia(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(){Rs(x)}function l(e){M()||k(e,!1)}if(Pi(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,v,p,g,h,i,M,y]),qa(()=>{var e;if(s&&n&&(e=h.current)!=null&&(e=e.__options)!=null&&e.blockPointerEvents&&O()){T.current=!0;let e=o.floating;if(Pi(o.domReference)&&e){var t;let n=Ba(o.floating).body;n.setAttribute(zs,``);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]),qa(()=>{n||(b.current=void 0,D.current=!1,A(),j())},[n,A,j]),_.useEffect(()=>()=>{A(),Rs(x),Rs(C),j()},[s,o.domReference,A,j]);let N=_.useMemo(()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function i(){!w.current&&!v.current&&r(!0,t,`hover`)}u&&!Ka(b.current)||n||Vs(y.current)===0||D.current&&e.movementX**2+e.movementY**2<2||(Rs(C),b.current===`touch`?i():(D.current=!0,C.current=window.setTimeout(i,Vs(y.current))))}}},[u,r,n,v,y]);return _.useMemo(()=>s?{reference:N}:{},[s,N])}var Us=()=>{},Ws=_.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Us,setState:Us,isInstantPhase:!1}),Gs=()=>_.useContext(Ws);function Ks(e){let{children:t,delay:n,timeoutMs:r=0}=e,[i,a]=_.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),o=_.useRef(null),s=_.useCallback(e=>{a({currentId:e})},[]);return qa(()=>{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)(Ws.Provider,{value:_.useMemo(()=>({...i,setState:a,setCurrentId:s}),[i,s]),children:t})}function qs(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,floatingId:i}=e,{id:a,enabled:o=!0}=t,s=a??i,c=Gs(),{currentId:l,setCurrentId:u,initialDelay:d,setState:f,timeoutMs:p}=c;return qa(()=>{o&&l&&(f({delay:{open:1,close:Bs(d,`close`)}}),l!==s&&r(!1))},[o,s,r,f,l,d]),qa(()=>{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]),qa(()=>{o&&u!==Us&&n&&u(s)},[o,n,u,s]),c}function Js(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ii(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Ys(e){return`composedPath`in e?e.composedPath()[0]:e.target}var Xs={pointerdown:`onPointerDown`,mousedown:`onMouseDown`,click:`onClick`},Zs={pointerdown:`onPointerDownCapture`,mousedown:`onMouseDownCapture`,click:`onClickCapture`},Qs=e=>({escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0});function $s(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=Is(),g=Za(typeof c==`function`?c:()=>!1),v=typeof c==`function`?g:c,y=_.useRef(!1),{escapeKey:b,outsidePress:x}=Qs(p),{escapeKey:S,outsidePress:C}=Qs(m),w=_.useRef(!1),T=Za(e=>{if(!n||!o||!s||e.key!==`Escape`||w.current)return;let t=a.current.floatingContext?.nodeId,i=h?Wa(h.nodesRef.current,t):[];if(!b&&(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,Ga(e)?e.nativeEvent:e,`escape-key`)}),E=Za(e=>{var t;let n=()=>{var t;T(e),(t=La(e))==null||t.removeEventListener(`keydown`,n)};(t=La(e))==null||t.addEventListener(`keydown`,n)}),D=Za(e=>{let t=a.current.insideReactTree;a.current.insideReactTree=!1;let n=y.current;if(y.current=!1,l===`click`&&n||t||typeof v==`function`&&!v(e))return;let o=La(e),s=`[`+Ls(`inert`)+`]`,c=Ba(i.floating).querySelectorAll(s),u=Pi(o)?o:null;for(;u&&!qi(u);){let e=Xi(u);if(qi(e)||!Pi(e))break;u=e}if(c.length&&Pi(o)&&!za(o)&&!Ia(o,i.floating)&&Array.from(c).every(e=>!Ia(u,e)))return;if(Fi(o)&&A){let t=qi(o),n=Ji(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&&Wa(h.nodesRef.current,d).some(t=>Ra(e,t.context?.elements.floating));if(Ra(e,i.floating)||Ra(e,i.domReference)||f)return;let p=h?Wa(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=Za(e=>{var t;let n=()=>{var t;D(e),(t=La(e))==null||t.removeEventListener(l,n)};(t=La(e))==null||t.addEventListener(l,n)});_.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=b,a.current.__outsidePressBubbles=x;let e=-1;function t(e){r(!1,e,`ancestor-scroll`)}function c(){window.clearTimeout(e),w.current=!0}function u(){e=window.setTimeout(()=>{w.current=!1},Ki()?5:0)}let d=Ba(i.floating);s&&(d.addEventListener(`keydown`,S?E:T,S),d.addEventListener(`compositionstart`,c),d.addEventListener(`compositionend`,u)),v&&d.addEventListener(l,C?O:D,C);let p=[];return f&&(Pi(i.domReference)&&(p=Qi(i.domReference)),Pi(i.floating)&&(p=p.concat(Qi(i.floating))),!Pi(i.reference)&&i.reference&&i.reference.contextElement&&(p=p.concat(Qi(i.reference.contextElement)))),p=p.filter(e=>e!==d.defaultView?.visualViewport),p.forEach(e=>{e.addEventListener(`scroll`,t)}),()=>{s&&(d.removeEventListener(`keydown`,S?E:T,S),d.removeEventListener(`compositionstart`,c),d.removeEventListener(`compositionend`,u)),v&&d.removeEventListener(l,C?O:D,C),p.forEach(e=>{e.removeEventListener(`scroll`,t)}),window.clearTimeout(e)}},[a,i,s,v,l,n,r,f,o,b,x,T,S,E,D,C,O]),_.useEffect(()=>{a.current.insideReactTree=!1},[a,v,l]);let k=_.useMemo(()=>({onKeyDown:T,...u&&{[Xs[d]]:e=>{r(!1,e.nativeEvent,`reference-press`)},...d!==`click`&&{onClick(e){r(!1,e.nativeEvent,`reference-press`)}}}}),[T,r,u,d]),A=_.useMemo(()=>{function e(e){e.button===0&&(y.current=!0)}return{onKeyDown:T,onMouseDown:e,onMouseUp:e,[Zs[l]]:()=>{a.current.insideReactTree=!0}}},[T,l,a]);return _.useMemo(()=>o?{reference:k,floating:A}:{},[o,k,A])}function ec(e){let{open:t=!1,onOpenChange:n,elements:r}=e,i=js(),a=_.useRef({}),[o]=_.useState(()=>Ms()),s=Fs()!=null,[c,l]=_.useState(r.reference),u=Za((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=_.useMemo(()=>({setPositionReference:l}),[]),f=_.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return _.useMemo(()=>({dataRef:a,open:t,onOpenChange:u,elements:f,events:o,floatingId:i,refs:d}),[t,u,f,o,i,d])}function tc(e){let{elements:t,...n}=e===void 0?{}:e,{nodeId:r}=n,i=ec({...n,elements:{reference:t?.reference??null,floating:t?.floating??null}}),a=n.rootContext||i,o=a.elements,[s,c]=_.useState(null),[l,u]=_.useState(null),d=o?.domReference||s,f=_.useRef(null),p=Is();qa(()=>{d&&(f.current=d)},[d]);let m=os({...n,elements:{...o,...l&&{reference:l}}}),h=_.useCallback(e=>{let t=Pi(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),g=_.useCallback(e=>{(Pi(e)||e===null)&&(f.current=e,c(e)),(Pi(m.refs.reference.current)||m.refs.reference.current===null||e!==null&&!Pi(e))&&m.refs.setReference(e)},[m.refs]),v=_.useMemo(()=>({...m.refs,setReference:g,setPositionReference:h,domReference:f}),[m.refs,g,h]),y=_.useMemo(()=>({...m.elements,domReference:d}),[m.elements,d]),b=_.useMemo(()=>({...m,...a,refs:v,elements:y,nodeId:r}),[m,v,y,r,a]);return qa(()=>{a.dataRef.current.floatingContext=b;let e=p?.nodesRef.current.find(e=>e.id===r);e&&(e.context=b)}),_.useMemo(()=>({...m,context:b,refs:v,elements:y}),[m,v,y,b])}function nc(){return ja()&&Aa()}function rc(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=_.useRef(!1),u=_.useRef(-1),d=_.useRef(!0);_.useEffect(()=>{if(!s)return;let e=ji(o.domReference);function t(){!n&&Fi(o.domReference)&&o.domReference===Fa(Ba(o.domReference))&&(l.current=!0)}function r(){d.current=!0}function i(){d.current=!1}return e.addEventListener(`blur`,t),nc()&&(e.addEventListener(`keydown`,r,!0),e.addEventListener(`pointerdown`,i,!0)),()=>{e.removeEventListener(`blur`,t),nc()&&(e.removeEventListener(`keydown`,r,!0),e.removeEventListener(`pointerdown`,i,!0))}},[o.domReference,n,s]),_.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]),_.useEffect(()=>()=>{Rs(u)},[]);let f=_.useMemo(()=>({onMouseLeave(){l.current=!1},onFocus(e){if(l.current)return;let t=La(e.nativeEvent);if(c&&Pi(t)){if(nc()&&!e.relatedTarget){if(!d.current&&!Va(t))return}else if(!Ha(t))return}r(!0,e.nativeEvent,`focus`)},onBlur(e){l.current=!1;let t=e.relatedTarget,n=e.nativeEvent,i=Pi(t)&&t.hasAttribute(Ls(`focus-guard`))&&t.getAttribute(`data-type`)===`outside`;u.current=window.setTimeout(()=>{let e=Fa(o.domReference?o.domReference.ownerDocument:document);!t&&e===o.domReference||Ia(a.current.floatingContext?.refs.floating.current,e)||Ia(o.domReference,e)||i||r(!1,n,`focus`)})}}),[a,o.domReference,r,c]);return _.useMemo(()=>s?{reference:f}:{},[s,f])}function ic(e,t,n){let r=new Map,i=n===`item`,a=e;if(i&&e){let{[vs]:t,[ys]:n,...r}=e;a=r}return{...n===`floating`&&{tabIndex:-1,[_s]:``},...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&&[vs,ys].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 ac(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=_.useCallback(t=>ic(t,e,`reference`),t),a=_.useCallback(t=>ic(t,e,`floating`),n),o=_.useCallback(t=>ic(t,e,`item`),r);return _.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}var oc=new Map([[`select`,`listbox`],[`combobox`,`listbox`],[`label`,!1]]);function sc(e,t){t===void 0&&(t={});let{open:n,elements:r,floatingId:i}=e,{enabled:a=!0,role:o=`dialog`}=t,s=js(),c=r.domReference?.id||s,l=_.useMemo(()=>Ua(r.floating)?.id||i,[r.floating,i]),u=oc.get(o)??o,d=Fs()!=null,f=_.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=_.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=_.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 _.useMemo(()=>a?{reference:f,floating:p,item:m}:{},[a,f,p,m])}function cc(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...cc(e,t.id,n)])}function lc(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 uc(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function dc(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(){Rs(i),u()}if(Rs(i),!c.domReference||!c.floating||s==null||n==null||o==null)return;let{clientX:m,clientY:h}=e,g=[m,h],_=Ys(e),v=e.type===`mouseleave`,y=Js(c.floating,_),b=Js(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=uc(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&&Pi(e.relatedTarget)&&Js(c.floating,e.relatedTarget)||f&&cc(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(!lc([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()}lc([m,h],P([n,o]))?!a&&r&&(i.current=window.setTimeout(p,40)):p()}}};return u.__options={blockPointerEvents:n},u}var fc={scrollHideDelay:1e3,type:`hover`,scrollbars:`xy`},pc=St((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":d(t),"--scrollarea-over-scroll-behavior":i,"--scrollarea-offset-size":void 0}}}),mc=q(e=>{let t=K(`ScrollArea`,fc,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:v,onTopReached:y,onLeftReached:b,onRightReached:x,overscrollBehavior:S,startScrollPosition:C,verticalScrollbarPosition:w,attributes:T,...E}=t,[D,O]=(0,_.useState)(!1),[k,A]=(0,_.useState)(!1),[j,M]=(0,_.useState)(!1),N=(0,_.useRef)(!0),P=(0,_.useRef)(!1),F=(0,_.useRef)(!0),I=(0,_.useRef)(!1),L=ir({name:`ScrollArea`,props:t,classes:Oi,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:T,vars:c,varsResolver:pc}),R=(0,_.useRef)(null),[z,B]=(0,_.useState)(null),ee=gs([f,R,(0,_.useCallback)(e=>{B(t=>t===e?t:e)},[])]);return ei(h===`present`?z:null,()=>{let e=R.current;e&&(A(e.scrollHeight>e.clientHeight),M(e.scrollWidth>e.clientWidth))}),H(()=>{C&&R.current&&R.current.scrollTo({left:C.x??0,top:C.y??0})},[]),(0,G.jsxs)(ii,{getStyles:L,type:l===`never`?`always`:l,scrollHideDelay:u,scrollbars:g,...L(`root`),...E,children:[(0,G.jsx)(Di,{...d,...L(`viewport`,{style:d?.style}),ref:ee,"data-offset-scrollbars":h===!0?`xy`:h||void 0,"data-scrollbars":g||void 0,"data-vertical-scrollbar-position":w||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&&v?.(),c&&!N.current&&y?.(),P.current=s,N.current=c;let l=i-(a-o)>=-.8,u=i===0;l&&!I.current&&x?.(),u&&!F.current&&b?.(),I.current=l,F.current=u},children:m}),(g===`xy`||g===`x`)&&(0,G.jsx)(Ci,{...L(`scrollbar`),orientation:`horizontal`,"data-vertical-scrollbar-position":w||void 0,"data-hidden":l===`never`||h===`present`&&!j||void 0,forceMount:!0,onMouseEnter:()=>O(!0),onMouseLeave:()=>O(!1),children:(0,G.jsx)(Ei,{...L(`thumb`)})}),(g===`xy`||g===`y`)&&(0,G.jsx)(Ci,{...L(`scrollbar`),orientation:`vertical`,"data-vertical-scrollbar-position":w||void 0,"data-hidden":l===`never`||h===`present`&&!k||void 0,forceMount:!0,onMouseEnter:()=>O(!0),onMouseLeave:()=>O(!1),children:(0,G.jsx)(Ei,{...L(`thumb`)})}),(0,G.jsx)(ni,{...L(`corner`),"data-vertical-scrollbar-position":w||void 0,"data-hovered":D||void 0,"data-hidden":l===`never`||void 0})]})});mc.displayName=`@mantine/core/ScrollArea`;var hc=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:v,onBottomReached:y,onTopReached:b,startScrollPosition:x,verticalScrollbarPosition:S,onOverflowChange:C,...w}=K(`ScrollAreaAutosize`,fc,e),T=(0,_.useRef)(null),[E,D]=(0,_.useState)(null),O=gs([u,T,(0,_.useCallback)(e=>{D(t=>t===e?t:e)},[])]),k=(0,_.useRef)(!1),A=(0,_.useRef)(!1),j=(0,_.useEffectEvent)(()=>{let e=T.current;if(!e||!C)return;let t=e.scrollHeight>e.clientHeight;t!==k.current&&(A.current?C(t):(A.current=!0,t&&C(!0)),k.current=t)});return ei(C?E:null,j),(0,G.jsx)(J,{...w,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)(mc,{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:v,scrollbars:h,onBottomReached:y,onTopReached:b,startScrollPosition:x,verticalScrollbarPosition:S,"data-autosize":`true`,children:t})})})});mc.classes=Oi,mc.varsResolver=pc,hc.displayName=`@mantine/core/ScrollAreaAutosize`,hc.classes=Oi,mc.Autosize=hc;var gc={root:`m_87cf2631`},_c={__staticSelector:`UnstyledButton`},vc=Vr(e=>{let t=K(`UnstyledButton`,_c,e),{className:n,component:r=`button`,__staticSelector:i,unstyled:a,classNames:o,styles:s,style:c,attributes:l,...u}=t,d=ir({name:i,props:t,classes:gc,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})});vc.classes=gc,vc.displayName=`@mantine/core/UnstyledButton`;var yc={root:`m_515a97f8`},bc=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=ir({name:`VisuallyHidden`,classes:yc,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c});return(0,G.jsx)(J,{component:`span`,...u(`root`),...l})});bc.classes=yc,bc.displayName=`@mantine/core/VisuallyHidden`;var xc={root:`m_1b7284a3`},Sc=St((e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:j(t),"--paper-shadow":P(n)}})),Cc=Vr(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=ir({name:`Paper`,props:t,classes:xc,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:c,varsResolver:Sc});return(0,G.jsx)(J,{mod:[{withBorder:s},f],...h(`root`),variant:d,...m})});Cc.classes=xc,Cc.varsResolver=Sc,Cc.displayName=`@mantine/core/Paper`;function wc(e,t,n,r){return e===`center`||r===`center`?{top:t}:e===`end`?{bottom:n}:e===`start`?{top:n}:{}}function Tc(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 Ec={bottom:`borderTopLeftRadius`,left:`borderTopRightRadius`,right:`borderBottomLeftRadius`,top:`borderBottomRightRadius`};function Dc({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 Oc({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,arrowX:a,arrowY:o,dir:s}){if(i===`merge`){let n=Dc({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`,[Ec[c]]:r},d=-t/2;return c===`left`?{...u,...wc(l,o,n,i),right:d,borderLeftColor:`transparent`,borderBottomColor:`transparent`,clipPath:`polygon(100% 0, 0 0, 100% 100%)`}:c===`right`?{...u,...wc(l,o,n,i),left:d,borderRightColor:`transparent`,borderTopColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 100%)`}:c===`top`?{...u,...Tc(l,a,n,i,s),bottom:d,borderTopColor:`transparent`,borderLeftColor:`transparent`,clipPath:`polygon(0 100%, 100% 100%, 100% 0)`}:c===`bottom`?{...u,...Tc(l,a,n,i,s),top:d,borderBottomColor:`transparent`,borderRightColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 0)`}:{}}function kc({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 Ac({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,visible:a,arrowX:o,arrowY:s,style:c,...l}){let{dir:u}=Yr();return a?(0,G.jsx)(`div`,{role:`presentation`,...l,style:{...c,...Oc({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,dir:u,arrowX:o,arrowY:s})}}):null}Ac.displayName=`@mantine/core/FloatingArrow`;function jc(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 Mc({open:e,close:t,openDelay:n,closeDelay:r}){let i=(0,_.useRef)(-1),a=(0,_.useRef)(-1),o=()=>{window.clearTimeout(i.current),window.clearTimeout(a.current)};return(0,_.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 Nc={root:`m_9814e45f`},Pc={zIndex:E(`modal`)},Fc=St((e,{gradient:t,color:n,backgroundOpacity:r,blur:i,radius:a,zIndex:o})=>({root:{"--overlay-bg":t||(n!==void 0||r!==void 0)&&Kt(n||`#000`,r??.6)||void 0,"--overlay-filter":i?`blur(${d(i)})`:void 0,"--overlay-radius":a===void 0?void 0:j(a),"--overlay-z-index":o?.toString()}})),Ic=Vr(e=>{let t=K(`Overlay`,Pc,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=ir({name:`Overlay`,props:t,classes:Nc,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:Fc});return(0,G.jsx)(J,{...b(`root`),mod:[{center:l,fixed:c},_],...y,children:u})});Ic.classes=Nc,Ic.varsResolver=Fc,Ic.displayName=`@mantine/core/Overlay`;function Lc(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 Rc=null;function zc({target:e,reuseTargetNode:t,...n}){if(e)return typeof e==`string`?document.querySelector(e)||Lc(n):e;if(t){if(Rc){if(document.body.contains(Rc))return Rc;Rc=null}let e=document.querySelector(`[data-mantine-shared-portal-node]`);if(e)return Rc=e,e;let t=Lc(n);return t.setAttribute(`data-mantine-shared-portal-node`,`true`),document.body.appendChild(t),Rc=t,t}return Lc(n)}var Bc={reuseTargetNode:!0},Vc=q(e=>{let{children:t,target:n,reuseTargetNode:r,ref:i,...a}=K(`Portal`,Bc,e),[o,s]=(0,_.useState)(!1),c=(0,_.useRef)(null);return H(()=>(s(!0),c.current=zc({target:n,reuseTargetNode:r,...a}),Ie(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,nt.createPortal)((0,G.jsx)(G.Fragment,{children:t}),c.current)});Vc.displayName=`@mantine/core/Portal`;var Hc=q(({withinPortal:e=!0,children:t,...n})=>ln()===`test`||!e?(0,G.jsx)(G.Fragment,{children:t}):(0,G.jsx)(Vc,{...n,children:t}));Hc.displayName=`@mantine/core/OptionalPortal`;var Uc=e=>({in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(.9) translateY(${e===`bottom`?10:-10}px)`},transitionProperty:`transform, opacity`}),Wc={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:{...Uc(`bottom`),common:{transformOrigin:`center center`}},"pop-bottom-left":{...Uc(`bottom`),common:{transformOrigin:`bottom left`}},"pop-bottom-right":{...Uc(`bottom`),common:{transformOrigin:`bottom right`}},"pop-top-left":{...Uc(`top`),common:{transformOrigin:`top left`}},"pop-top-right":{...Uc(`top`),common:{transformOrigin:`top right`}}},Gc={entering:`in`,entered:`in`,exiting:`out`,exited:`out`,"pre-exiting":`out`,"pre-entering":`out`};function Kc({transition:e,state:t,duration:n,timingFunction:r}){let i={WebkitBackfaceVisibility:`hidden`,transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e==`string`?e in Wc?{transitionProperty:Wc[e].transitionProperty,...i,...Wc[e].common,...Wc[e][Gc[t]]}:{}:{transitionProperty:e.transitionProperty,...i,...e.common,...e[Gc[t]]}}function qc({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:i,onExit:a,onEntered:o,onExited:s,enterDelay:c,exitDelay:l}){let u=Dn(),d=Be(),f=u.respectReducedMotion?d:!1,[p,m]=(0,_.useState)(f?0:e),[h,g]=(0,_.useState)(r?`entered`:`exited`),v=(0,_.useRef)(-1),y=(0,_.useRef)(-1),b=(0,_.useRef)(-1);function x(){window.clearTimeout(v.current),window.clearTimeout(y.current),cancelAnimationFrame(b.current),b.current=-1}let S=n=>{x();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(()=>{nt.flushSync(()=>{g(n?`pre-entering`:`pre-exiting`)}),b.current===e&&(b.current=requestAnimationFrame(()=>{typeof r==`function`&&r(),g(n?`entering`:`exiting`),v.current=window.setTimeout(()=>{typeof c==`function`&&c(),g(n?`entered`:`exited`)},l)}))});b.current=e}},C=e=>{x(),typeof(e?c:l)==`number`?y.current=window.setTimeout(()=>{S(e)},e?c:l):S(e)};return le(()=>{C(r)},[r]),(0,_.useEffect)(()=>()=>{x()},[]),{transitionDuration:p,transitionStatus:h,transitionTimingFunction:n||`ease`}}function Jc({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=ln(),{transitionDuration:h,transitionStatus:g,transitionTimingFunction:v}=qc({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)(_.Activity,{mode:a?`visible`:`hidden`,children:o({})}):a?(0,G.jsx)(G.Fragment,{children:o({})}):null;let y=g===`exited`;if(e){let e=o(y?t===`display-none`?{display:`none`}:{}:Kc({transition:n,duration:h,state:g,timingFunction:v}));return t===`display-none`?e:(0,G.jsx)(_.Activity,{mode:y?`hidden`:`visible`,children:e})}return y?null:(0,G.jsx)(G.Fragment,{children:o(Kc({transition:n,duration:h,state:g,timingFunction:v}))})}Jc.displayName=`@mantine/core/Transition`;var Yc={duration:100,transition:`fade`};function Xc(e,t){return{...Yc,...t,...e}}var[Zc,Qc]=y(`Popover component was not found in the tree`);function $c({childProps:e,disabled:t,opened:n,longPressDelay:r=500,setReference:i,open:a}){let o=(0,_.useRef)(!1),s=(0,_.useRef)(!1),c=(0,_.useRef)(null),l=(0,_.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=F(e.onMouseDown,e=>{t||e.button===2&&e.stopPropagation()}),f=F(e.onContextMenu,e=>{t||e.defaultPrevented||(e.preventDefault(),!s.current&&(u(e.clientX,e.clientY,e.currentTarget),o.current&&(s.current=!0)))}),p=Xe(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:F(e.onTouchStart,p.onTouchStart),onTouchEnd:F(e.onTouchEnd,p.onTouchEnd),onTouchCancel:F(e.onTouchCancel,p.onTouchCancel),onTouchMove:F(e.onTouchMove,p.onTouchMove),style:t?e.style:{...e.style,WebkitTouchCallout:`none`,WebkitUserSelect:`none`,userSelect:`none`},"data-expanded":n?!0:void 0}}function el(e){let{children:t,disabled:n,longPressDelay:r}=K(`PopoverContextMenu`,null,e),i=xt(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=Qc(),o=$c({childProps:i.props,disabled:n||a.disabled,opened:a.opened,longPressDelay:r,setReference:a.reference,open:()=>{a.opened||a.onToggle()}});return(0,_.cloneElement)(i,o)}el.displayName=`@mantine/core/PopoverContextMenu`;function tl({children:e,active:t=!0,refProp:n=`ref`,innerRef:r}){let i=Re(je(t),r),a=xt(e);return a?(0,_.cloneElement)(a,{[n]:i}):e}function nl(e){return(0,G.jsx)(bc,{tabIndex:-1,"data-autofocus":!0,...e})}tl.displayName=`@mantine/core/FocusTrap`,nl.displayName=`@mantine/core/FocusTrapInitialFocus`,tl.InitialFocus=nl;var rl={dropdown:`m_38a85659`,arrow:`m_a31dc6c1`,overlay:`m_3d7bc908`},il=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,...f}=t,p=Qc(),{dir:m}=Yr(),h=p.arrowPosition===`merge`&&p.withArrow?kc({position:p.placement,dir:m}):void 0,g=U({opened:p.opened,shouldReturnFocus:p.returnFocus}),_=p.withRoles?{"aria-labelledby":p.getTargetId(),id:p.getDropdownId(),role:`dialog`,tabIndex:-1}:{},v=Re(u,p.floating);return p.disabled?null:(0,G.jsx)(Hc,{...p.portalProps,withinPortal:p.withinPortal,children:(0,G.jsx)(Jc,{mounted:p.opened,...p.transitionProps,transition:p.transitionProps?.transition||`fade`,duration:p.transitionProps?.duration??150,keepMounted:p.keepMounted,keepMountedMode:p.keepMountedMode,exitDuration:typeof p.transitionProps?.exitDuration==`number`?p.transitionProps.exitDuration:p.transitionProps?.duration,children:e=>(0,G.jsx)(tl,{active:p.trapFocus&&p.opened,innerRef:v,children:(0,G.jsxs)(J,{..._,...f,variant:s,onKeyDownCapture:O(()=>{p.onClose?.(),p.onDismiss?.()},{active:p.closeOnEscape,onTrigger:g,onKeyDown:o}),"data-position":p.placement,"data-fixed":p.floatingStrategy===`fixed`||void 0,...p.getStyles(`dropdown`,{className:n,props:t,classNames:c,styles:l,style:[{...e,...h,zIndex:p.zIndex,top:p.y??0,left:p.x??0,width:p.width===`target`?void 0:d(p.width),...p.referenceHidden?{display:`none`}:null},p.resolvedStyles?.dropdown,l?.dropdown,r]}),children:[a,(0,G.jsx)(Ac,{ref:p.arrowRef,arrowX:p.arrowX,arrowY:p.arrowY,visible:p.withArrow,position:p.placement,arrowSize:p.arrowSize,arrowRadius:p.arrowRadius,arrowOffset:p.arrowOffset,arrowPosition:p.arrowPosition,...p.getStyles(`arrow`,{props:t,classNames:c,styles:l})})]})})})})});il.classes=rl,il.displayName=`@mantine/core/PopoverDropdown`;var al={refProp:`ref`,popupType:`dialog`},ol=q(e=>{let{children:t,refProp:n,popupType:r,ref:i,...a}=K(`PopoverTarget`,al,e),o=xt(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=Qc(),l=Re(c.reference,gt(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,_.cloneElement)(o,{...s,...u,...c.targetProps,className:wt(c.targetProps.className,s.className,d.className),[n]:l,...c.controlled?null:{onClick:e=>{c.onToggle(),d.onClick?.(e)}}})});ol.displayName=`@mantine/core/PopoverTarget`;function sl(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 cl(e,t,n,r){let i=sl(e.middlewares),a=[cs(e.offset),ps()];if(i.flip&&!n){let e=typeof i.flip==`boolean`?{}:i.flip,t=r?{fallbackStrategy:`initialPlacement`,...e}:e;a.push(ds(t))}if(i.shift){let t=typeof i.shift==`boolean`?{}:i.shift;a.push(ls(n=>{let r=n.placement.startsWith(`top`)||n.placement.startsWith(`bottom`);return{limiter:us(),padding:5,...e.width===`target`&&r?{mainAxis:!1}:null,...t}}))}return i.inline&&a.push(typeof i.inline==`boolean`?ms():ms(i.inline)),a.push(hs({element:e.arrowRef,padding:e.arrowOffset})),(i.size||e.width===`target`)&&a.push(fs({...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 ll(e){let[t,n]=ze({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=(0,_.useRef)(t),i=(0,_.useRef)(!1),[a,o]=(0,_.useState)(null),s=e.preventPositionChangeWhenVisible!==!1,c=(0,_.useRef)(t);t!==c.current&&(c.current=t,t&&a!==null&&o(null));let l=(0,_.useRef)(e.position);e.position!==l.current&&(l.current=e.position,i.current=!1,a!==null&&o(null));let u=(0,_.useCallback)(()=>o(null),[]),d=()=>{t&&!e.disabled&&n(!1)},f=()=>{e.disabled||n(!t)},p=tc({open:t,strategy:e.strategy,placement:s?a??e.position:e.position,middleware:cl(e,()=>p,s&&a!==null,s),whileElementsMounted:e.keepMounted?void 0:Go});(0,_.useEffect)(()=>{if(!e.keepMounted)return;let n=p.refs.reference.current,r=p.refs.floating.current;if(t&&n&&r)return Go(n,r,p.update)},[e.keepMounted,t,p.update,p.elements.reference,p.elements.floating]),H(()=>{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,_.useRef)(p.placement);return H(()=>{m.current!==p.placement&&(m.current=p.placement,e.onPositionChange?.(p.placement))},[p.placement]),le(()=>{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 ul={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:E(`popover`),__staticSelector:`Popover`,width:`max-content`},dl=St((e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":t===void 0?void 0:j(t),"--popover-shadow":P(n)}}));function fl(e){let t=K(`Popover`,ul,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:v,classNames:y,styles:b,closeOnClickOutside:x,withinPortal:S,portalProps:C,closeOnEscape:w,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:B,variant:ee,keepMounted:te,keepMountedMode:ne,vars:re,floatingStrategy:ie,withOverlay:oe,overlayProps:se,hideDetached:V,attributes:H,preventPositionChangeWhenVisible:ce,...le}=t,U=ir({name:L,props:t,classes:rl,classNames:y,styles:b,unstyled:v,attributes:H,rootSelector:`dropdown`,vars:re,varsResolver:dl}),{resolvedStyles:W}=Un({classNames:y,styles:b,props:t}),ue=(0,_.useRef)(null),[de,fe]=(0,_.useState)(null),[pe,me]=(0,_.useState)(null),{dir:he}=Yr(),ge=ln(),_e=Pe(F),ve=ll({middlewares:d,width:u,position:jc(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:ie,disabled:z,preventPositionChangeWhenVisible:ce,keepMounted:te});ae(()=>{x&&(ve.onClose(),k?.())},T,[de,pe],!0,E);let ye=(0,_.useCallback)(e=>{fe(e),ve.floating.refs.setReference(e)},[ve.floating.refs.setReference]),be=(0,_.useCallback)(e=>{me(e),ve.floating.refs.setFloating(e)},[ve.floating.refs.setFloating]),xe=(0,_.useCallback)(()=>{s?.onExited?.(),c?.(),ve.resetLockedPlacement()},[s?.onExited,c,ve.resetLockedPlacement]),Se=(0,_.useCallback)(()=>{s?.onEntered?.(),l?.()},[s?.onEntered,l]);return(0,G.jsxs)(Zc,{value:{returnFocus:B,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:S,portalProps:C,zIndex:M,radius:N,shadow:P,closeOnEscape:w,onDismiss:k,onClose:ve.onClose,onToggle:ve.onToggle,getTargetId:()=>_e,getDropdownId:()=>`${_e}-dropdown`,withRoles:R,targetProps:le,__staticSelector:L,classNames:y,styles:b,unstyled:v,variant:ee,keepMounted:te,keepMountedMode:ne,getStyles:U,resolvedStyles:W,floatingStrategy:ie,referenceHidden:V&&ge!==`test`?ve.floating.middlewareData.hide?.referenceHidden:!1},children:[n,oe&&(0,G.jsx)(Jc,{transition:`fade`,mounted:ve.opened,duration:s?.duration||250,exitDuration:s?.exitDuration||250,children:e=>(0,G.jsx)(Hc,{withinPortal:S,children:(0,G.jsx)(Ic,{...se,...U(`overlay`,{className:se?.className,style:[e,se?.style]})})})})]})}fl.Target=ol,fl.Dropdown=il,fl.ContextMenu=el,fl.varsResolver=dl,fl.displayName=`@mantine/core/Popover`,fl.extend=e=>e,fl.withProps=e=>{let t=t=>(0,G.jsx)(fl,{...e,...t});return t.extend=fl.extend,t.displayName=`WithProps(${fl.displayName})`,t};var pl={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`},ml=({className:e,...t})=>(0,G.jsxs)(J,{component:`span`,className:wt(pl.barsLoader,e),...t,children:[(0,G.jsx)(`span`,{className:pl.bar}),(0,G.jsx)(`span`,{className:pl.bar}),(0,G.jsx)(`span`,{className:pl.bar})]});ml.displayName=`@mantine/core/Bars`;var hl=({className:e,...t})=>(0,G.jsxs)(J,{component:`span`,className:wt(pl.dotsLoader,e),...t,children:[(0,G.jsx)(`span`,{className:pl.dot}),(0,G.jsx)(`span`,{className:pl.dot}),(0,G.jsx)(`span`,{className:pl.dot})]});hl.displayName=`@mantine/core/Dots`;var gl=({className:e,...t})=>(0,G.jsx)(J,{component:`span`,className:wt(pl.ovalLoader,e),...t});gl.displayName=`@mantine/core/Oval`;var _l={bars:ml,oval:gl,dots:hl},vl={loaders:_l,type:`oval`},yl=St((e,{size:t,color:n})=>({root:{"--loader-size":k(t,`loader-size`),"--loader-color":n?Ht(n,e):void 0}})),bl=q(e=>{let t=K(`Loader`,vl,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=ir({name:`Loader`,props:t,classes:pl,className:o,style:s,classNames:c,styles:l,unstyled:u,attributes:m,vars:a,varsResolver:yl});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})});bl.defaultLoaders=_l,bl.classes=pl,bl.varsResolver=yl,bl.displayName=`@mantine/core/Loader`;var xl={root:`m_8d3f4000`,icon:`m_8d3afb97`,loader:`m_302b9fb1`,group:`m_1a0f1b21`,groupSection:`m_437b6484`},Sl={orientation:`horizontal`},Cl=St((e,{borderWidth:t})=>({group:{"--ai-border-width":d(t)}})),wl=q(e=>{let t=K(`ActionIconGroup`,Sl,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=ir({name:`ActionIconGroup`,props:t,classes:xl,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:c,varsResolver:Cl,rootSelector:`group`});return(0,G.jsx)(J,{...m(`group`),variant:u,mod:[{orientation:s},d],role:`group`,...p})});wl.classes=xl,wl.varsResolver=Cl,wl.displayName=`@mantine/core/ActionIconGroup`;var Tl=St((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":k(o,`section-height`),"--section-padding-x":k(o,`section-padding-x`),"--section-fz":M(o),"--section-radius":t===void 0?void 0:j(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),El=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=ir({name:`ActionIconGroupSection`,props:t,classes:xl,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:Tl,rootSelector:`groupSection`});return(0,G.jsx)(J,{...m(`groupSection`),variant:c,...p})});El.classes=xl,El.varsResolver=Tl,El.displayName=`@mantine/core/ActionIconGroupSection`;var Dl=St((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":k(t,`ai-size`),"--ai-radius":n===void 0?void 0:j(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}}}),Ol=Vr(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=ir({name:[`ActionIcon`,p],props:t,className:n,style:s,classes:xl,classNames:a,styles:o,unstyled:r,attributes:x,vars:h,varsResolver:Dl});return(0,G.jsxs)(vc,{...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)(Jc,{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)(bl,{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})]})});Ol.classes=xl,Ol.varsResolver=Dl,Ol.displayName=`@mantine/core/ActionIcon`,Ol.Group=wl,Ol.GroupSection=El;function kl({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`})})}kl.displayName=`@mantine/core/CloseIcon`;var Al={root:`m_86a44da5`,"root--subtle":`m_220c80f2`},jl={variant:`subtle`},Ml=St((e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":k(t,`cb-size`),"--cb-radius":n===void 0?void 0:j(n),"--cb-icon-size":d(r)}})),Nl=Vr(e=>{let t=K(`CloseButton`,jl,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=ir({name:_||`CloseButton`,props:t,className:o,style:c,classes:Al,classNames:s,styles:l,unstyled:u,attributes:g,vars:i,varsResolver:Ml});return(0,G.jsxs)(vc,{...v,unstyled:u,variant:p,disabled:f,mod:[{disabled:f||d},h],...y(`root`,{variant:p,active:!f&&!d}),children:[m||(0,G.jsx)(kl,{}),r]})});Nl.classes=Al,Nl.varsResolver=Ml,Nl.displayName=`@mantine/core/CloseButton`;function Pl(e){return _.Children.toArray(e).filter(Boolean)}var Fl={root:`m_4081bf90`},Il={preventGrowOverflow:!0,gap:`md`,align:`center`,justify:`flex-start`,wrap:`wrap`},Ll=St((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":A(r),"--group-align":i,"--group-justify":a,"--group-wrap":o}})),Rl=q(e=>{let t=K(`Group`,Il,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=Pl(s),x=b.length,S=A(c??`md`),C=ir({name:`Group`,props:t,stylesCtx:{childWidth:`calc(${100/x}% - (${S} - ${S} / ${x}))`},className:r,style:i,classes:Fl,classNames:n,styles:a,unstyled:o,attributes:v,vars:m,varsResolver:Ll});return(0,G.jsx)(J,{...C(`root`),variant:h,mod:[{grow:f},_],size:g,...y,children:b})});Rl.classes=Fl,Rl.varsResolver=Ll,Rl.displayName=`@mantine/core/Group`;var[zl,Bl]=y(`ModalBase component was not found in tree`);function Vl({opened:e,transitionDuration:t}){let[n,r]=(0,_.useState)(e),i=(0,_.useRef)(-1),a=Be()?0:t;return(0,_.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 Hl({id:e,transitionProps:t,opened:n,trapFocus:r,closeOnEscape:i,onClose:a,returnFocus:o,handledEscapeEvents:s}){let c=Pe(e),[l,u]=(0,_.useState)(!1),[d,f]=(0,_.useState)(!1),p=Vl({opened:n,transitionDuration:typeof t?.duration==`number`?t?.duration:200});return Fe(`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}),U({opened:n,shouldReturnFocus:r&&o}),{_id:c,titleMounted:l,bodyMounted:d,shouldLockScroll:p,setTitleMounted:u,setBodyMounted:f}}var Ul=function(){return Ul=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},Ul.apply(this,arguments)};function Wl(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 Gl(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 Kl=`right-scroll-bar-position`,ql=`width-before-scroll-bar`,Jl=`with-scroll-bars-hidden`,Yl=`--removed-body-scroll-bar-size`;function Xl(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Zl(e,t){var n=(0,_.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 Ql=typeof window<`u`?_.useLayoutEffect:_.useEffect,$l=new WeakMap;function eu(e,t){var n=Zl(t||null,function(t){return e.forEach(function(e){return Xl(e,t)})});return Ql(function(){var t=$l.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Xl(e,null)}),i.forEach(function(e){r.has(e)||Xl(e,a)})}$l.set(n,e)},[e]),n}function tu(e){return e}function nu(e,t){t===void 0&&(t=tu);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 ru(e){e===void 0&&(e={});var t=nu(null);return t.options=Ul({async:!0,ssr:!1},e),t}var iu=function(e){var t=e.sideCar,n=Wl(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 _.createElement(r,Ul({},n))};iu.isSideCarExport=!0;function au(e,t){return e.useMedium(t),iu}var ou=ru(),su=function(){},cu=_.forwardRef(function(e,t){var n=_.useRef(null),r=_.useState({onScrollCapture:su,onWheelCapture:su,onTouchMoveCapture:su}),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,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,x=Wl(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=f,C=eu([n,t]),w=Ul(Ul({},x),i);return _.createElement(_.Fragment,null,u&&_.createElement(S,{sideCar:ou,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:b}),o?_.cloneElement(_.Children.only(s),Ul(Ul({},w),{ref:C})):_.createElement(y,Ul({},w,{className:c,ref:C}),s))});cu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},cu.classNames={fullWidth:ql,zeroRight:Kl};var lu=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function uu(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=lu();return t&&e.setAttribute(`nonce`,t),e}function du(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function fu(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var pu=function(){var e=0,t=null;return{add:function(n){e==0&&(t=uu())&&(du(t,n),fu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},mu=function(){var e=pu();return function(t,n){_.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},hu=function(){var e=mu();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},gu={left:0,top:0,right:0,gap:0},_u=function(e){return parseInt(e||``,10)||0},vu=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[_u(n),_u(r),_u(i)]},yu=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return gu;var t=vu(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])}},bu=hu(),xu=`data-scroll-locked`,Su=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
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/docx-CjhuGfqI.js","assets/markdown-D6ZljOkv.js","assets/pdf-C3krYx-2.js","assets/rolldown-runtime-XKyaHtl9.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{n as e,r as t,t as n}from"./rolldown-runtime-XKyaHtl9.js";(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 r(e){return Object.keys(e)}function i(e){return e&&typeof e==`object`&&!Array.isArray(e)}function a(e,t){let n={...e},r=t;return i(e)&&i(t)&&Object.keys(t).forEach(t=>{i(r[t])&&t in e?n[t]=a(n[t],r[t]):n[t]=r[t]}),n}function o(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function s(e){return typeof e!=`string`||!e.includes(`var(--mantine-scale)`)?e:e.match(/^calc\((.*?)\)$/)?.[1].split(`*`)[0].trim()}function c(e){let t=s(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 l(e){return e===`0rem`?`0rem`:`calc(${e} * var(--mantine-scale))`}function u(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?l(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?l(n):n}}return r}return n}var d=u(`rem`,{shouldScale:!0}),f=u(`em`);function p(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function m(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 h=n((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 B={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=B,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`})),g=n(((e,t)=>{t.exports=h()})),_=t(g(),1);function v(e){return Array.isArray(e)||e===null?!1:typeof e==`object`&&e.type!==_.Fragment}function y(e){let t=(0,_.createContext)(null);return[t,()=>{let n=(0,_.use)(t);if(n===null)throw Error(e);return n}]}function b(e,t){let n=e;for(;(n=n.parentElement)&&!n.matches(t););return n}function x(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 S(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 C(e,t,n){return b(e,n)===b(t,n)}function w({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(b(s.currentTarget,e)?.querySelectorAll(t)||[]).filter(t=>C(s.currentTarget,t,e)),l=c.findIndex(e=>s.currentTarget===e),u=S(l,c,r),d=x(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[S(-1,c,!1)]?.focus();break;case`End`:s.stopPropagation(),s.preventDefault(),c[x(c.length,c,!1)]?.focus()}}}var T={app:100,modal:200,popover:300,overlay:400,max:9999};function E(e){return T[e]}var D=()=>{};function O(e,t={active:!0}){return typeof e!=`function`||!t.active?t.onKeyDown||D:n=>{n.key===`Escape`&&(e(n),t.onTrigger?.())}}function k(e,t=`size`,n=!0){if(e!==void 0)return m(e)?n?d(e):e:`var(--${t}-${e})`}function A(e){return k(e,`mantine-spacing`)}function j(e){return e===void 0?`var(--mantine-radius-default)`:k(e,`mantine-radius`)}function M(e){return k(e,`mantine-font-size`)}function N(e){return k(e,`mantine-line-height`,!1)}function P(e){if(e)return k(e,`mantine-shadow`,!1)}function F(e,t){return n=>{e?.(n),t?.(n)}}function I(e,t){return e in t?c(t[e]):c(e)}function L(e,t){let n=e.map(e=>({value:e,px:I(e,t)}));return n.sort((e,t)=>e.px-t.px),n}function R(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function z(e,t,n){return n?Array.from(b(n,t)?.querySelectorAll(e)||[]).findIndex(e=>e===n):null}function B(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 ee(e=`mantine-`){return`${e}${Math.random().toString(36).slice(2,11)}`}function te(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 ne(e){let t=(0,_.useRef)(e);return(0,_.useEffect)(()=>{t.current=e}),(0,_.useMemo)(()=>((...e)=>t.current?.(...e)),[])}function re(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=ne(e),s=(0,_.useRef)(0),c=(0,_.useRef)(0),l=(0,_.useRef)(null),u=(0,_.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,_.useEffect)(()=>()=>{r?u.flush():u.cancel()},[u,r]),u}var ie=[`mousedown`,`touchstart`];function ae(e,t,n,r=!0,i=!1){let a=(0,_.useRef)(null),o=t||ie,s=(0,_.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,_.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 oe(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 se(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){let[r,i]=(0,_.useState)(n?t:oe(e));return(0,_.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 V(e,t){return se(`(prefers-color-scheme: dark)`,e===`dark`,t)?`dark`:`light`}var H=typeof document<`u`?_.useLayoutEffect:_.useEffect;function ce(e,t){return e.length!==t.length||t.some((t,n)=>!Object.is(t,e[n]))}function le(e,t){let n=(0,_.useRef)(!1),r=(0,_.useRef)(null),i=(0,_.useRef)(void 0),a={};(0,_.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&&!ce(s,t)))return e()},t)}function U({opened:e,shouldReturnFocus:t=!0}){let n=(0,_.useRef)(null),r=()=>{n.current&&`focus`in n.current&&typeof n.current.focus==`function`&&n.current?.focus({preventScroll:!0})};return le(()=>{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 W=/input|select|textarea|button|object|summary|iframe/,ue=`a, input, select, textarea, button, object, summary, iframe, audio[controls], video[controls], [contenteditable], [tabindex]`;function de(e){let t=e.getAttribute(`contenteditable`);return t!==null&&t!==`false`}function fe(e){let t=e.nodeName.toLowerCase();return(t===`audio`||t===`video`)&&e.hasAttribute(`controls`)}function pe(e){return e.style.display===`none`}function me(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(pe(t))return!1;t=t.parentNode}return!0}function he(e){let t=e.getAttribute(`tabindex`);return t===null&&(t=void 0),parseInt(t,10)}function ge(e){let t=e.nodeName.toLowerCase(),n=!Number.isNaN(he(e));return(W.test(t)&&!e.disabled||de(e)||fe(e)||e instanceof HTMLAnchorElement&&e.href||n)&&me(e)}function _e(e){let t=he(e);return(Number.isNaN(t)||t>=0)&&ge(e)}function ve(e){let t=Array.from(e.querySelectorAll(ue)).filter(_e),n=t.filter(e=>he(e)>0).sort((e,t)=>he(e)-he(t)),r=t.filter(e=>!(he(e)>0));return[...n,...r]}var ye=[`date`,`time`,`datetime-local`,`month`,`week`],be=[`audio`,`video`,`iframe`,`object`,`embed`];function xe(e){return!!e&&e.tagName===`INPUT`&&e.type===`radio`}function Se(e,t){return e.name!==``&&e.name===t.name&&e.form===t.form}function Ce(e){let t=e.nodeName.toLowerCase();return t===`input`?ye.includes(e.type):be.includes(t)}function we(e,t){let n=ve(e);return n.filter(e=>e===t||!xe(e)?!0:xe(t)&&Se(e,t)?!1:e.checked?!0:!n.some(t=>xe(t)&&t.checked&&Se(t,e)))}function Te(e,t,n,r){let i=e.indexOf(t);if(i!==-1)return i+1;if(t===n)return 0;let a=r?Node.DOCUMENT_POSITION_PRECEDING:Node.DOCUMENT_POSITION_FOLLOWING,o=e.findIndex(e=>(t.compareDocumentPosition(e)&a)!==0);return o===-1?0:o}function Ee(e,t,n){let r=we(e,t);n&&r.reverse();let i=Te(r,t,e,n);return[...r.slice(i),...r.slice(0,i)].filter(e=>e!==t)}function De(e,t){for(let n of e)if(n.focus(),t.activeElement===n)return}function Oe(e,t){let n=e.getRootNode(),r=n.activeElement;if(!r||r!==e&&!e.contains(r))return;let i=Ee(e,r,t.shiftKey);Ce(r)?setTimeout(()=>{let t=n.activeElement;e.isConnected&&t!==r&&t!==i[0]&&De([...i,r],n)}):(t.preventDefault(),De(i,n))}var ke=new Set;function Ae(e,t){let n=t.getRootNode().activeElement;if(!n)return!1;for(let r of ke){let i=r.current;if(r!==e&&i&&i!==t&&t.contains(i)&&i.contains(n))return!0}return!1}function je(e=!0){let t=(0,_.useRef)(null),n=e=>{let t=e.querySelector(`[data-autofocus]`);if(!t){let n=Array.from(e.querySelectorAll(ue));t=n.find(_e)||n.find(ge)||null,!t&&ge(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,_.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,_.useEffect)(()=>{if(!e)return;t.current&&setTimeout(()=>{t.current&&n(t.current)});let r=e=>{e.key!==`Tab`||e.defaultPrevented||!t.current||Ae(t,t.current)||Oe(t.current,e)};return ke.add(t),document.addEventListener(`keydown`,r),()=>{ke.delete(t),document.removeEventListener(`keydown`,r)}},[e]),r}var Me=e=>(e+1)%1e6;function Ne(){let[,e]=(0,_.useReducer)(Me,0);return e}function Pe(e){let t=(0,_.useId)(),[n,r]=(0,_.useState)(`mantine-${t.replace(/:/g,``)}`),i=(0,_.useRef)(!1);return H(()=>{i.current||(i.current=!0,r(ee()))},[]),typeof e==`string`?e:n}function Fe(e,t,n){let r=(0,_.useEffectEvent)(t);(0,_.useEffect)(()=>(window.addEventListener(e,r,n),()=>window.removeEventListener(e,r,n)),[e])}function Ie(e,t){if(typeof e==`function`)return e(t);typeof e==`object`&&e&&`current`in e&&(e.current=t)}function Le(...e){let t=new Map;return n=>{if(e.forEach(e=>{let r=Ie(e,n);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{let n=t.get(e);n&&typeof n==`function`?n():Ie(e,null)}),t.clear()}}}function Re(...e){return(0,_.useCallback)(Le(...e),e)}function ze({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){let[i,a]=(0,_.useState)(t===void 0?n:t);return e===void 0?[i,(e,...t)=>{a(e),r?.(e,...t)},!1]:[e,r,!0]}function Be(e,t){return se(`(prefers-reduced-motion: reduce)`,e,t)}function Ve(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(!te(e[n],t[n]))return!1;return!0}function He(e){let t=(0,_.useRef)([]),n=(0,_.useRef)(0);return Ve(t.current,e)||(t.current=e,n.current+=1),[n.current]}function Ue(e,t){(0,_.useEffect)(e,He(t))}function We(e,t,n={autoInvoke:!1}){let r=(0,_.useRef)(null),i=ne(e),a=(0,_.useCallback)((...e)=>{r.current||=window.setTimeout(()=>{i(...e),r.current=null},t)},[t]),o=(0,_.useCallback)(()=>{r.current&&=(window.clearTimeout(r.current),null)},[]);return(0,_.useEffect)(()=>(n.autoInvoke&&a(),o),[o,a]),{start:a,clear:o}}function Ge(e){let t=(0,_.useRef)(void 0);return(0,_.useEffect)(()=>{t.current=e},[e]),t.current}function Ke(e,t,n){let r=(0,_.useRef)(null);(0,_.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 qe(){let[e,t]=(0,_.useState)(!1);return(0,_.useEffect)(()=>t(!0),[]),e}var Je=[`mouse`,`touch`],Ye=10;function Xe(e,t={}){let{threshold:n=400,events:r=Je,cancelOnMove:i=!1,onStart:a,onFinish:o,onCancel:s}=t,c=(0,_.useRef)(!1),l=(0,_.useRef)(!1),u=(0,_.useRef)(-1),d=(0,_.useRef)(null);(0,_.useEffect)(()=>()=>window.clearTimeout(u.current),[]);let f=r.join(`,`);return(0,_.useMemo)(()=>{if(typeof e!=`function`)return{};let t=i!==!1,f=i===!0?Ye:i===!1?0:i,p=t=>{($e(t)||Qe(t))&&(a&&a(t),d.current=Ze(t),l.current=!0,u.current=window.setTimeout(()=>{e(t),c.current=!0},n))},m=e=>{($e(e)||Qe(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=Ze(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 Ze(e){if(Qe(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 Qe(e){return window.TouchEvent?e.nativeEvent instanceof TouchEvent:`touches`in e.nativeEvent}function $e(e){return e.nativeEvent instanceof MouseEvent}var et=n((e=>{var t=g();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`})),tt=n(((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=et()})),nt=t(tt(),1);function rt(e){if(!e||typeof e==`string`)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function it(e){return e.current?e.current.scrollHeight:`auto`}function at(e){return typeof e==`number`&&e>0}function ot({transitionDuration:e,transitionTimingFunction:t=`ease`,onTransitionEnd:n,onTransitionStart:r,expanded:i,keepMounted:a}){let o={height:0,overflow:`hidden`,...a?{}:{display:`none`}},s=(0,_.useEffectEvent)(()=>r?.()),c=(0,_.useEffectEvent)(()=>n?.()),l=(0,_.useRef)(null),[u,d]=(0,_.useState)(i?{}:o),[f,p]=(0,_.useState)(i?`entered`:`exited`),m=e=>{(0,nt.flushSync)(()=>d(e))},h=e=>{m(t=>({...t,...e}))},g=n=>{let r=e??rt(n);return{transition:`height ${r}ms ${t}, opacity ${r}ms ${t}`}},v=(0,_.useRef)(0);le(()=>{v.current+=1;let t=v.current,n=()=>v.current===t;e!==0&&s(),i?window.requestAnimationFrame(()=>{n()&&l.current&&((0,nt.flushSync)(()=>p(`entering`)),h({willChange:`height`,display:`block`,overflow:`hidden`}),window.requestAnimationFrame(()=>{if(!n()||!l.current)return;let e=it(l);at(e)?h({...g(e),height:e}):(m({}),p(`entered`),c())}))}):window.requestAnimationFrame(()=>{if(!n()||!l.current)return;(0,nt.flushSync)(()=>p(`exiting`));let e=it(l);at(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 y=e=>{if(e.target===l.current&&e.propertyName===`height`){if(i){let e=it(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:Le(l,e?.ref),onTransitionEnd:y,style:{boxSizing:`border-box`,...e?.style,...u}})}}function st(e){if(!e||typeof e==`string`)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function ct(e){return e.current?e.current.scrollWidth:`auto`}function lt({transitionDuration:e,transitionTimingFunction:t=`ease`,onTransitionEnd:n,onTransitionStart:r,expanded:i,keepMounted:a}){let o={width:0,overflow:`hidden`,...a?{}:{display:`none`}},s=(0,_.useEffectEvent)(()=>r?.()),c=(0,_.useEffectEvent)(()=>n?.()),l=(0,_.useRef)(null),[u,d]=(0,_.useState)(i?{}:o),[f,p]=(0,_.useState)(i?`entered`:`exited`),m=e=>{(0,nt.flushSync)(()=>d(e))},h=e=>{m(t=>({...t,...e}))},g=n=>{let r=e??st(n);return{transition:`width ${r}ms ${t}, opacity ${r}ms ${t}`}},v=(0,_.useRef)(0);le(()=>{v.current+=1;let t=v.current,n=()=>v.current===t;e!==0&&s(),i?window.requestAnimationFrame(()=>{n()&&l.current&&((0,nt.flushSync)(()=>p(`entering`)),h({willChange:`width`,display:`block`,overflow:`hidden`}),window.requestAnimationFrame(()=>{if(!n()||!l.current)return;let e=ct(l);at(e)?h({...g(e),width:e}):(m({}),p(`entered`),c())}))}):window.requestAnimationFrame(()=>{if(!n()||!l.current)return;(0,nt.flushSync)(()=>p(`exiting`));let e=ct(l);at(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 y=e=>{if(e.target===l.current&&e.propertyName===`width`){if(i){let e=ct(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:Le(l,e?.ref),onTransitionEnd:y,style:{boxSizing:`border-box`,...e?.style,...u}})}}var ut=100;function dt(e){return e>0?1:e<0?-1:0}function ft(e){let t=e??0;return typeof t==`number`?[t,t]:t}function pt(){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 mt(e,t={}){let[n,r]=(0,_.useState)(!1),i=(0,_.useRef)(e);i.current=e;let a=(0,_.useRef)(t);a.current=t;let o=(0,_.useRef)(pt()),s=(0,_.useRef)(null);return{ref:(0,_.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]=ft(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]=ft(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:[dt(d[0]),dt(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:[dt(o[0]),dt(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>ut?[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:[dt(p[0]),dt(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 ht(){return`development`}function gt(e){return e?.props?.ref}function _t(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`}function vt(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=vt(e,n.shadowRoot);if(t)return t}}return null}function yt(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=yt(e,r.shadowRoot);n.push(...t)}}return n}function bt(e){if(!e)return document;let t=e.getRootNode(),n=t.nodeType===Node.DOCUMENT_NODE,r=t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&`host`in t;return n||r?t:document}function xt(e){let t=_.Children.toArray(e);return t.length!==1||!v(t[0])?null:t[0]}function St(e){return e}function Ct(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=Ct(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function wt(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ct(e))&&(r&&(r+=` `),r+=t);return r}var Tt={};function Et(e){let t={};return e.forEach(e=>{Object.entries(e).forEach(([e,n])=>{t[e]?t[e]=wt(t[e],n):t[e]=n})}),t}function Dt({theme:e,classNames:t,props:n,stylesCtx:r}){return Et((Array.isArray(t)?t:[t]).map(t=>typeof t==`function`?t(e,n,r):t||Tt))}function Ot({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 kt(e){return e===`auto`||e===`dark`||e===`light`}function At({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 kt(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&&kt(t.newValue)&&n(t.newValue)},window.addEventListener(`storage`,t)},unsubscribe:()=>{window.removeEventListener(`storage`,t)},clear:()=>{window.localStorage.removeItem(e)}}}function jt(e,t){return typeof e.primaryShade==`number`?e.primaryShade:t===`dark`?e.primaryShade.dark:e.primaryShade.light}function Mt(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function Nt(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 Pt(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 Ft(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===void 0?1:a}}function It(e){return Mt(e)?Nt(e):e.startsWith(`rgb`)?Pt(e):e.startsWith(`hsl`)?Ft(e):{r:0,g:0,b:0,a:1}}function Lt(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function Rt(e){let t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function zt(e){if(e.startsWith(`oklch(`))return(Rt(e)||0)/100;let{r:t,g:n,b:r}=It(e),i=t/255,a=n/255,o=r/255,s=Lt(i),c=Lt(a),l=Lt(o);return .2126*s+.7152*c+.0722*l}function Bt(e,t=.179){return!e.startsWith(`var(`)&&zt(e)>t}function Vt({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:Bt(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:Bt(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:Bt(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][jt(t,n||`light`)]:t.colors[r][a];return{color:r,value:e,shade:a,isThemeColor:o,isLight:Bt(e,t.luminanceThreshold),variable:i?`--mantine-color-${r}-${a}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:o,isLight:Bt(e,t.luminanceThreshold),shade:a,variable:void 0}}function Ht(e,t){let n=Vt({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function Ut(e){return!!e&&typeof e==`object`&&`mantine-virtual-color`in e}function Wt(e,t){if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, black ${t*100}%)`;let{r:n,g:r,b:i,a}=It(e),o=1-t,s=e=>Math.round(e*o);return`rgba(${s(n)}, ${s(r)}, ${s(i)}, ${a})`}function Gt(e,t){let n={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},r=Ht(n.from,t),i=Ht(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${i} 100%)`}function Kt(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}=It(e);return`rgba(${n}, ${r}, ${i}, ${t})`}var qt=Kt,Jt=({color:e,theme:t,variant:n,gradient:r,autoContrast:i})=>{let a=Vt({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&&Ut(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:`${d(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:`${d(1)} solid transparent`}:{background:e,hover:Wt(e,.1),color:r,border:`${d(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:`${d(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:n,hover:Wt(n,.1),color:`var(--mantine-color-${a.color}-light-color)`,border:`${d(1)} solid transparent`}}return{background:Kt(e,.1),hover:Kt(e,.12),color:e,border:`${d(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:`${d(1)} solid var(--mantine-color-${e}-outline)`}:{background:`transparent`,hover:Kt(t.colors[a.color][a.shade],.05),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${d(1)} solid var(--mantine-color-${a.color}-${a.shade})`}:{background:`transparent`,hover:Kt(e,.05),color:e,border:`${d(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:`${d(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:`transparent`,hover:Kt(n,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${d(1)} solid transparent`}}return{background:`transparent`,hover:Kt(e,.12),color:e,border:`${d(1)} solid transparent`}}return n===`transparent`?a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${e}-light-color)`,border:`${d(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${d(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:e,border:`${d(1)} solid transparent`}:n===`white`?a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-white)`,hover:Wt(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${d(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:Wt(t.white,.01),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${d(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:Wt(t.white,.01),color:e,border:`${d(1)} solid transparent`}:n===`gradient`?{background:Gt(r,t),hover:Gt(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:`${d(1)} solid var(--mantine-color-default-border)`}:{}};function Yt({color:e,theme:t,autoContrast:n,colorScheme:r}){return(typeof n==`boolean`?n:t.autoContrast)&&Vt({color:e||t.primaryColor,theme:t,colorScheme:r}).isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`}function Xt(e,t,n){return Yt({color:n===`dark`?e.dark:e.light,theme:t,colorScheme:n,autoContrast:!0})}function Zt(e,t){let n=e.colors[e.primaryColor];return Ut(n)?e.autoContrast?Xt(n,e,t):`var(--mantine-color-white)`:Yt({color:n[jt(e,t)],theme:e,autoContrast:null})}function Qt(e,t){return typeof e==`boolean`?e:t.autoContrast}var $t=(0,_.createContext)(null);function en(){let e=(0,_.use)($t);if(!e)throw Error(`[@mantine/core] MantineProvider was not found in tree`);return e}function tn(){return en().cssVariablesResolver}function nn(){return en().classNamesPrefix}function rn(){return en().getStyleNonce}function an(){return en().withStaticClasses}function on(){return en().headless}function sn(){return en().stylesTransform?.sx}function cn(){return en().stylesTransform?.styles}function ln(){return en().env||`default`}function un(){return en().deduplicateInlineStyles}function dn(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 fn({keepTransitions:e}={}){let t=(0,_.useRef)(D),n=(0,_.useRef)(-1),r=(0,_.use)($t),i=rn(),a=(0,_.useRef)(i?.());if(!r)throw Error(`[@mantine/core] MantineProvider was not found in tree`);let o=i=>{r.setColorScheme(i),t.current=e?()=>{}:dn(a.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},s=()=>{r.clearColorScheme(),t.current=e?()=>{}:dn(a.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},c=V(`light`,{getInitialValueInEffect:!1}),l=r.colorScheme===`auto`?c:r.colorScheme,u=(0,_.useCallback)(()=>o(l===`light`?`dark`:`light`),[o,l]);return(0,_.useEffect)(()=>()=>{t.current?.(),window.clearTimeout(n.current)},[]),{colorScheme:r.colorScheme,setColorScheme:o,clearColorScheme:s,toggleColorScheme:u}}function pn(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 mn({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){let i=(0,_.useRef)(null),[a,o]=(0,_.useState)(()=>e.get(t)),s=r||a,c=(0,_.useCallback)(t=>{r||(pn(t,n),o(t),e.set(t))},[e.set,s,r]),l=(0,_.useCallback)(()=>{o(t),pn(t,n),e.clear()},[e.clear,t]);return(0,_.useEffect)(()=>(e.subscribe(c),e.unsubscribe),[e.subscribe,e.unsubscribe]),H(()=>{pn(e.get(t),n)},[]),(0,_.useEffect)(()=>{if(r)return pn(r,n),()=>{};r===void 0&&pn(a,n),typeof window<`u`&&`matchMedia`in window&&(i.current=window.matchMedia(`(prefers-color-scheme: dark)`));let e=e=>{a===`auto`&&pn(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 hn=n((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})),gn=n(((e,t)=>{t.exports=hn()})),_n={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`]},vn=`-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji`,yn={scale:1,fontSmoothing:!0,focusRing:`auto`,white:`#fff`,black:`#000`,colors:_n,primaryShade:{light:6,dark:8},primaryColor:`blue`,variantColorResolver:Jt,autoContrast:!1,luminanceThreshold:.3,fontFamily:vn,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:vn,fontWeight:`700`,textWrap:`wrap`,sizes:{h1:{fontSize:d(34),lineHeight:`1.3`},h2:{fontSize:d(26),lineHeight:`1.35`},h3:{fontSize:d(22),lineHeight:`1.4`},h4:{fontSize:d(18),lineHeight:`1.45`},h5:{fontSize:d(16),lineHeight:`1.5`},h6:{fontSize:d(14),lineHeight:`1.5`}}},fontSizes:{xs:d(12),sm:d(14),md:d(16),lg:d(18),xl:d(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:d(2),sm:d(4),md:d(8),lg:d(16),xl:d(32)},spacing:{xs:d(10),sm:d(12),md:d(16),lg:d(20),xl:d(32)},breakpoints:{xs:`36em`,sm:`48em`,md:`62em`,lg:`75em`,xl:`88em`},shadows:{xs:`0 ${d(1)} ${d(3)} rgba(0, 0, 0, 0.05), 0 ${d(1)} ${d(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${d(1)} ${d(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${d(10)} ${d(15)} ${d(-5)}, rgba(0, 0, 0, 0.04) 0 ${d(7)} ${d(7)} ${d(-5)}`,md:`0 ${d(1)} ${d(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${d(20)} ${d(25)} ${d(-5)}, rgba(0, 0, 0, 0.04) 0 ${d(10)} ${d(10)} ${d(-5)}`,lg:`0 ${d(1)} ${d(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${d(28)} ${d(23)} ${d(-7)}, rgba(0, 0, 0, 0.04) 0 ${d(12)} ${d(12)} ${d(-7)}`,xl:`0 ${d(1)} ${d(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${d(36)} ${d(28)} ${d(-7)}, rgba(0, 0, 0, 0.04) 0 ${d(17)} ${d(17)} ${d(-7)}`},other:{},components:{}},bn=`[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color`,xn=`[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }`;function Sn(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function Cn(e){if(!(e.primaryColor in e.colors))throw Error(bn);if(typeof e.primaryShade==`object`&&(!Sn(e.primaryShade.dark)||!Sn(e.primaryShade.light))||typeof e.primaryShade==`number`&&!Sn(e.primaryShade))throw Error(xn)}function wn(e,t){if(!t)return Cn(e),e;let n=a(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(n.headings={...n.headings,fontFamily:t.fontFamily}),Cn(n),n}var G=gn(),Tn=(0,_.createContext)(null),En=()=>(0,_.use)(Tn)||yn;function Dn(){let e=(0,_.use)(Tn);if(!e)throw Error(`@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app`);return e}function On({theme:e,children:t,inherit:n=!0}){let r=En(),i=(0,_.useMemo)(()=>wn(n?r:yn,e),[e,r,n]);return(0,G.jsx)(Tn,{value:i,children:t})}On.displayName=`@mantine/core/MantineThemeProvider`;function kn(e){return Object.entries(e).map(([e,t])=>`${e}: ${t};`).join(``)}function An(e,t){let n=t?[t]:[`:root`,`:host`],r=kn(e.variables),i=r?`${n.join(`, `)}{${r}}`:``,a=kn(e.dark),o=kn(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 jn({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:i=!0}){if(!e.colors[t])return{};if(n===`light`){let n=jt(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`]:qt(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=jt(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`]:Wt(e.colors[t][9],.5),[`--mantine-color-${r}-light-hover`]:Wt(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`]:qt(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 Mn(e,t,n){r(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}var Nn=e=>{let t=jt(e,`light`),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:d(e.defaultRadius),i={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":Zt(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":Zt(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)`}};Mn(i.variables,e.breakpoints,`breakpoint`),Mn(i.variables,e.spacing,`spacing`),Mn(i.variables,e.fontSizes,`font-size`),Mn(i.variables,e.lineHeights,`line-height`),Mn(i.variables,e.shadows,`shadow`),Mn(i.variables,e.radius,`radius`),Mn(i.variables,e.fontWeights,`font-weight`),e.colors[e.primaryColor].forEach((t,n)=>{i.variables[`--mantine-primary-color-${n}`]=`var(--mantine-color-${e.primaryColor}-${n})`}),r(e.colors).forEach(t=>{let n=e.colors[t];Ut(n)?(Object.assign(i.light,jn({theme:e,name:n.name,color:n.light,colorScheme:`light`,withColorValues:!0})),Object.assign(i.dark,jn({theme:e,name:n.name,color:n.dark,colorScheme:`dark`,withColorValues:!0})),i.light[`--mantine-color-${n.name}-contrast`]=Xt(n,e,`light`),i.dark[`--mantine-color-${n.name}-contrast`]=Xt(n,e,`dark`)):(n.forEach((e,n)=>{i.variables[`--mantine-color-${t}-${n}`]=e}),Object.assign(i.light,jn({theme:e,color:t,colorScheme:`light`,withColorValues:!1})),Object.assign(i.dark,jn({theme:e,color:t,colorScheme:`dark`,withColorValues:!1})))});let a=e.headings.sizes;return r(a).forEach(t=>{i.variables[`--mantine-${t}-font-size`]=a[t].fontSize,i.variables[`--mantine-${t}-line-height`]=a[t].lineHeight,i.variables[`--mantine-${t}-font-weight`]=a[t].fontWeight||e.headings.fontWeight}),i};function Pn(){let e=Dn(),t=rn(),n=r(e.breakpoints).reduce((t,n)=>{let r=e.breakpoints[n].includes(`px`),i=c(e.breakpoints[n]);return`${t}@media (max-width: ${r?`${i-.1}px`:f(i-.1)}) {.mantine-visible-from-${n} {display: none !important;}}@media (min-width: ${r?`${i}px`:f(i)}) {.mantine-hidden-from-${n} {display: none !important;}}`},``);return(0,G.jsx)(`style`,{"data-mantine-styles":`classes`,nonce:t?.(),dangerouslySetInnerHTML:{__html:n}})}function Fn({theme:e,generator:t}){let n=Nn(e),r=t?.(e);return r?a(n,r):n}var In=Nn(yn);function Ln(e){let t={variables:{},light:{},dark:{}};return r(e.variables).forEach(n=>{In.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),r(e.light).forEach(n=>{In.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),r(e.dark).forEach(n=>{In.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function Rn(e){return An({variables:{},dark:{"--mantine-color-scheme":`dark`},light:{"--mantine-color-scheme":`light`}},e)}function zn({cssVariablesSelector:e,deduplicateCssVariables:t}){let n=Dn(),r=rn(),i=Fn({theme:n,generator:tn()}),a=(e===void 0||e===`:root`||e===`:host`)&&t,o=An(a?Ln(i):i,e);return o?(0,G.jsx)(`style`,{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${o}${a?``:Rn(e)}`}}):null}zn.displayName=`@mantine/CssVariables`;function Bn({respectReducedMotion:e,getRootElement:t}){H(()=>{e&&t()?.setAttribute(`data-respect-reduced-motion`,`true`)},[e])}function Vn({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=At(),defaultColorScheme:u=`light`,getRootElement:d=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:p,stylesTransform:m,env:h,deduplicateInlineStyles:g=!1}){let{colorScheme:_,setColorScheme:v,clearColorScheme:y}=mn({defaultColorScheme:u,forceColorScheme:p,manager:l,getRootElement:d});return Bn({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:d}),(0,G.jsx)($t,{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)(On,{theme:e,children:[o&&(0,G.jsx)(zn,{cssVariablesSelector:s,deduplicateCssVariables:a}),i&&(0,G.jsx)(Pn,{}),t]})})}Vn.displayName=`@mantine/core/MantineProvider`;function K(e,t,n){let r=Dn(),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,...p(n)}}function Hn(e){return e}function Un({classNames:e,styles:t,props:n,stylesCtx:r}){let i=Dn();return{resolvedClassNames:e===void 0?void 0:Dt({theme:i,classNames:e,props:n,stylesCtx:r||void 0}),resolvedStyles:t===void 0?void 0:Ot({theme:i,styles:t,props:n,stylesCtx:r||void 0})}}var Wn={always:`mantine-focus-always`,auto:`mantine-focus-auto`,never:`mantine-focus-never`};function Gn({theme:e,options:t,unstyled:n}){return wt(t?.focusable&&!n&&(e.focusClassName||Wn[e.focusRing]),t?.active&&!n&&e.activeClassName)}function Kn(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(!Kn(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)||!Kn(e[i],t[i],n-1))return!1;return!0}function qn({selector:e,stylesCtx:t,options:n,props:r,theme:i}){return Dt({theme:i,classNames:n?.classNames,props:n?.props||r,stylesCtx:t})[e]}function Jn({selector:e,stylesCtx:t,theme:n,classNames:r,props:i}){return Dt({theme:n,classNames:r,props:i,stylesCtx:t})[e]}function Yn({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function Xn({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function Zn({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return r===!1?[]:e.map(e=>`${t}-${e}-${n}`)}function Qn({options:e,classes:t,selector:n,unstyled:r}){return e?.variant&&!r?t[`${n}--${e.variant}`]:void 0}function $n({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 wt(Gn({theme:e,options:t,unstyled:c||m}),o.map(e=>e[r]),Qn({options:t,classes:s,selector:r,unstyled:c||m}),a[r],Jn({selector:r,stylesCtx:f,theme:e,classNames:h,props:d}),qn({selector:r,stylesCtx:f,options:t,props:d,theme:e}),Yn({rootSelector:u,selector:r,className:l}),Xn({selector:r,classes:s,unstyled:c||m}),p&&!m&&Zn({themeName:n,classNamesPrefix:i,selector:r,withStaticClass:t?.withStaticClass}),t?.className)}function er({style:e,theme:t}){return Array.isArray(e)?e.reduce((e,n)=>({...e,...er({style:n,theme:t})}),{}):typeof e==`function`?e(t):e??{}}function tr({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&&Ot({theme:e,styles:n?.styles,props:n?.props||r,stylesCtx:i})[t],...l[t],...a===t?u:null,...er({style:n?.style,theme:e})}}function nr(e){return e.reduce((e,t)=>(t&&Object.keys(t).forEach(n=>{e[n]={...e[n],...p(t[n])}}),e),{})}function rr({props:e,stylesCtx:t,themeName:n,theme:r}){let i=cn()?.();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 ir({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=Dn(),h=nn(),g=an(),_=on(),v=(Array.isArray(e)?e:[e]).filter(e=>e),{withStylesTransform:y,getTransformedStyles:b}=rr({props:n,stylesCtx:r,themeName:v,theme:m}),x=Dt({theme:m,classNames:c,props:n,stylesCtx:r}),S=v.map(e=>Dt({theme:m,classNames:m.components[e]?.classNames,props:n,stylesCtx:r})),C=y?{}:Ot({theme:m,styles:l,props:n,stylesCtx:r}),w={};if(!y)for(let e of v){let t=Ot({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=nr([_?{}:d?.(m,n,r),...v.map(e=>m.components?.[e]?.vars?.(m,n,r)),u?.(m,n,r)]),E=er({style:a,theme:m});return ar((e,a)=>({...f?.[e],className:$n({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:tr({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 ar(e,t,n){let r=(0,_.useRef)(null);return t?(r.current&&Kn(r.current.deps,n,3)||(r.current={deps:n,getStyles:e}),r.current.getStyles):e}function or(e){return r(e).reduce((t,n)=>e[n]===void 0?t:`${t}${o(n)}:${e[n]};`,``).trim()}function sr({selector:e,styles:t,media:n,container:r}){let i=t?or(t):``,a=Array.isArray(n)?n.map(t=>`@media${t.query}{${e}{${or(t.styles)}}}`):[],o=Array.isArray(r)?r.map(t=>`@container ${t.query}{${e}{${or(t.styles)}}}`):[];return`${i?`${e}{${i}}`:``}${a.join(``)}${o.join(``)}`.trim()}function cr(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 lr({deduplicate:e,...t}){let n=rn(),r=sr(t);return e?(0,G.jsx)(`style`,{href:`mantine-${cr(r)}`,precedence:`mantine`,nonce:n?.(),children:r}):(0,G.jsx)(`style`,{"data-mantine-styles":`inline`,nonce:n?.(),dangerouslySetInnerHTML:{__html:r}})}function ur(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 dr(e,t){return`__mdi__-${ur(`${e?or(e):``}|${Array.isArray(t)?t.map(e=>`${e.query}:${or(e.styles)}`).join(`|`):``}`)}`}function fr(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:m,py:h,pt:g,pb:_,pl:v,pr:y,pe:b,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:B,h:ee,mih:te,mah:ne,bgsz:re,bgp:ie,bgr:ae,bga:oe,pos:se,top:V,left:H,bottom:ce,right:le,inset:U,display:W,flex:ue,hiddenFrom:de,visibleFrom:fe,lightHidden:pe,darkHidden:me,sx:he,...ge}=e;return{styleProps:p({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:m,py:h,pt:g,pb:_,pl:v,pr:y,pis:S,pie:C,pe:b,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:B,h:ee,mih:te,mah:ne,bgsz:re,bgp:ie,bgr:ae,bga:oe,pos:se,top:V,left:H,bottom:ce,right:le,inset:U,display:W,flex:ue,bdrs:T,hiddenFrom:de,visibleFrom:fe,lightHidden:pe,darkHidden:me,sx:he}),rest:ge}}var pr={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 mr(e,t){let n=Vt({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 hr(e,t){let n=Vt({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:mr(e,t)}function gr(e,t){if(typeof e==`number`)return d(e);if(typeof e==`string`){let[n,r,...i]=e.split(` `).filter(e=>e.trim()!==``),a=`${d(n)}`;return r&&(a+=` ${r}`),i.length>0&&(a+=` ${mr(i.join(` `),t)}`),a.trim()}return e}var _r={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 vr(e){return typeof e==`string`&&e in _r?_r[e]:e}var yr=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function br(e,t){return typeof e==`string`&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e==`string`&&yr.includes(e)?`var(--mantine-${e}-font-size)`:typeof e==`number`||typeof e==`string`?d(e):e}function xr(e){return e}var Sr=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function Cr(e,t){return typeof e==`string`&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e==`string`&&Sr.includes(e)?`var(--mantine-${e}-line-height)`:e}function wr(e,t){return typeof e==`string`&&e in t.radius?`var(--mantine-radius-${e})`:typeof e==`number`||typeof e==`string`?d(e):e}function Tr(e){return typeof e==`number`?d(e):e}function Er(e,t){if(typeof e==`number`)return d(e);if(typeof e==`string`){let n=e.replace(`-`,``);if(!(n in t.spacing))return d(e);let r=`--mantine-spacing-${n}`;return e.startsWith(`-`)?`calc(var(${r}) * -1)`:`var(${r})`}return e}var Dr={color:mr,textColor:hr,fontSize:br,spacing:Er,radius:wr,identity:xr,size:Tr,lineHeight:Cr,fontFamily:vr,border:gr};function Or(e){return e.replace(`(min-width: `,``).replace(`em)`,``)}function kr({media:e,...t}){let n=Object.keys(e).sort((e,t)=>Number(Or(e))-Number(Or(t))).map(t=>({query:t,styles:e[t]}));return{...t,media:n}}function Ar(e){if(typeof e!=`object`||!e)return!1;let t=Object.keys(e);return t.length!==1||t[0]!==`base`}function jr(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function Mr(e){return typeof e==`object`&&e?r(e).filter(e=>e!==`base`):[]}function Nr(e,t){return typeof e==`object`&&e&&t in e?e[t]:e}function Pr({styleProps:e,data:t,theme:n}){return kr(r(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=jr(e[i]);if(!Ar(e[i]))return o.forEach(e=>{r.inlineStyles[e]=Dr[a.type](s,n)}),r;r.hasResponsiveStyles=!0;let c=Mr(e[i]);return o.forEach(t=>{s!=null&&(r.styles[t]=Dr[a.type](s,n)),c.forEach(o=>{let s=`(min-width: ${n.breakpoints[o]})`;r.media[s]={...r.media[s],[t]:Dr[a.type](Nr(e[i],o),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function Fr(){return`__m__-${(0,_.useId)().replace(/[:«»]/g,``)}`}function Ir(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...Ir(n,t)}),{}):typeof e==`function`?e(t):e??{}}function Lr(e){return e}var Rr=Lr;function zr(e){return e}function q(e){let t=e;return t.extend=zr,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 Br(e){return q(e)}function Vr(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=zr,t}function Hr(e){return`data-${(e.startsWith(`data-`)?e.slice(5):e).replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}`}function Ur(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r===void 0||r===``||r===!1||r===null||(t[Hr(n)]=e[n]),t},{})}function Wr(e){return e?typeof e==`string`?{[Hr(e)]:!0}:Array.isArray(e)?[...e].reduce((e,t)=>({...e,...Wr(t)}),{}):Ur(e):null}function Gr(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...Gr(n,t)}),{}):typeof e==`function`?e(t):e??{}}function Kr({theme:e,style:t,vars:n,styleProps:r}){let i=Gr(t,e),a=Gr(n,e);return{...i,...a,...r}}function qr({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,...h}){let g=Dn(),_=e||`div`,{styleProps:v,rest:y}=fr(h),b=sn()?.()?.(v.sx),x=Fr(),S=Pr({styleProps:v,theme:g,data:pr}),C=un(),w=C&&S.hasResponsiveStyles?dr(S.styles,S.media):x,T={ref:p,style:Kr({theme:g,style:t,vars:n,styleProps:S.inlineStyles}),className:wt(r,b,{[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":m(o)?void 0:o||void 0,size:f,...Wr(a),...y};return(0,G.jsxs)(G.Fragment,{children:[S.hasResponsiveStyles&&(0,G.jsx)(lr,{selector:`.${w}`,styles:S.styles,media:S.media,deduplicate:C}),typeof d==`function`?d(T):(0,G.jsx)(_,{...T})]})}qr.displayName=`@mantine/core/Box`;var J=Rr(qr),Jr=(0,_.createContext)({dir:`ltr`,toggleDirection:()=>{},setDirection:()=>{}});function Yr(){return(0,_.use)(Jr)}var Xr={transitionDuration:200,transitionTimingFunction:`ease`,animateOpacity:!0,orientation:`vertical`,keepMounted:!0,keepMountedMode:`activity`},Zr=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`,Xr,e),m=ln(),h=Dn(),g=Be(),v=h.respectReducedMotion&&g?0:r,y=(f===`horizontal`?lt:ot)({expanded:n,transitionDuration:v,transitionTimingFunction:i,onTransitionEnd:o,onTransitionStart:s,keepMounted:!1});if(v===0)return l===!0&&(u===`display-none`||m!==`test`)?u===`display-none`?(0,G.jsx)(J,{...p,style:{...Ir(a,h),...n?{}:{display:`none`}},ref:d,children:t}):(0,G.jsx)(_.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 b=y.state===`exited`,x;return x=l===!1?b?null:t:l===!0?u===`display-none`?t:(0,G.jsx)(_.Activity,{mode:b?`hidden`:`visible`,children:t}):t,(0,G.jsx)(J,{...p,...y.getCollapseProps({style:{opacity:n||!c?1:0,transition:c?`opacity ${v}ms ${i}`:`none`,...Ir(a,h),...l&&u===`display-none`&&b?{display:`none`}:{}},ref:d}),children:x})});Zr.displayName=`@mantine/core/Collapse`;var[Qr,$r]=y(`ScrollArea.Root component was not found in tree`);function ei(e,t){let n=(0,_.useEffectEvent)(t);H(()=>{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 ti(e){let{style:t,...n}=e,r=$r(),[i,a]=(0,_.useState)(0),[o,s]=(0,_.useState)(0),c=!!(i&&o);return ei(r.scrollbarX,()=>{let e=r.scrollbarX?.offsetHeight||0;r.onCornerHeightChange(e),s(e)}),ei(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 ni(e){let t=$r(),n=!!(t.scrollbarX&&t.scrollbarY);return t.type!==`scroll`&&n?(0,G.jsx)(ti,{...e}):null}var ri={scrollHideDelay:1e3,type:`hover`};function ii(e){let{type:t,scrollHideDelay:n,scrollbars:r,getStyles:i,ref:a,...o}=K(`ScrollAreaRoot`,ri,e),[s,c]=(0,_.useState)(null),[l,u]=(0,_.useState)(null),[d,f]=(0,_.useState)(null),[p,m]=(0,_.useState)(null),[h,g]=(0,_.useState)(null),[v,y]=(0,_.useState)(0),[b,x]=(0,_.useState)(0),[S,C]=(0,_.useState)(!1),[w,T]=(0,_.useState)(!1),E=Re(a,c);return(0,G.jsx)(Qr,{value:{type:t,scrollHideDelay:n,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:S,onScrollbarXEnabledChange:C,scrollbarY:h,onScrollbarYChange:g,scrollbarYEnabled:w,onScrollbarYEnabledChange:T,onCornerWidthChange:y,onCornerHeightChange:x,getStyles:i},children:(0,G.jsx)(J,{...o,ref:E,__vars:{"--sa-corner-width":r===`xy`?`${v}px`:`0px`,"--sa-corner-height":r===`xy`?`${b}px`:`0px`}})})}ii.displayName=`@mantine/core/ScrollAreaRoot`;function ai(e,t){let n=e/t;return Number.isNaN(n)?0:n}function oi(e){let t=ai(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function si(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 ci(e,[t,n]){return Math.min(n,Math.max(t,e))}function li(e,t,n=`ltr`){let r=oi(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=ci(e,n===`ltr`?[0,o]:[o*-1,0]);return si([0,o],[0,s])(c)}function ui(e,t,n,r=`ltr`){let i=oi(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 si([c,l],d)(e)}function di(e,t){return e>0&&e<t}function fi(e){return e?parseInt(e,10):0}function pi(e,t,{checkForDefaultPrevented:n=!0}={}){return r=>{e?.(r),n!==!1&&r.defaultPrevented||t?.(r)}}var[mi,hi]=y(`ScrollAreaScrollbar was not found in tree`);function gi(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=$r(),[p,m]=(0,_.useState)(null),h=Re(u,m),g=(0,_.useRef)(null),v=(0,_.useRef)(``),y=t.content-t.viewport,b=(0,_.useEffectEvent)(e=>c(e,y)),x=ne(o),S=re(l,10),C=e=>{if(g.current){let t=e.clientX-g.current.left,n=e.clientY-g.current.top;s({x:t,y:n})}};return(0,_.useEffect)(()=>{if(!p)return;let e=e=>b(e);return p.addEventListener(`wheel`,e,{passive:!1}),()=>p.removeEventListener(`wheel`,e)},[p]),(0,_.useEffect)(x,[t,x]),ei(p,S),ei(f.content,S),(0,G.jsx)(mi,{value:{scrollbar:p,hasThumb:n,onThumbChange:ne(r),onThumbPointerUp:ne(i),onThumbPositionChange:x,onThumbPointerDown:ne(a)},children:(0,G.jsx)(`div`,{...d,ref:h,"data-mantine-scrollbar":!0,style:{position:`absolute`,...d.style},onPointerDown:pi(e.onPointerDown,e=>{e.preventDefault(),e.button===0&&(e.target.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,C(e))}),onPointerMove:pi(e.onPointerMove,C),onPointerUp:pi(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(e.preventDefault(),t.releasePointerCapture(e.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=v.current,g.current=null}})})}var _i=e=>{let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=$r(),[s,c]=(0,_.useState)(),l=(0,_.useRef)(null),u=Re(i,l,o.onScrollbarXChange);return(0,_.useEffect)(()=>{l.current&&c(getComputedStyle(l.current))},[l]),(0,G.jsx)(gi,{"data-orientation":`horizontal`,...a,ref:u,sizes:t,style:{...r,"--sa-thumb-width":`${oi(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),di(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:fi(s.paddingLeft),paddingEnd:fi(s.paddingRight)}})}})};_i.displayName=`@mantine/core/ScrollAreaScrollbarX`;function vi(e){let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=$r(),[s,c]=(0,_.useState)(),l=(0,_.useRef)(null),u=Re(i,l,o.onScrollbarYChange);return(0,_.useEffect)(()=>{l.current&&c(window.getComputedStyle(l.current))},[]),(0,G.jsx)(gi,{...a,"data-orientation":`vertical`,ref:u,sizes:t,style:{"--sa-thumb-height":`${oi(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),di(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:fi(s.paddingTop),paddingEnd:fi(s.paddingBottom)}})}})}vi.displayName=`@mantine/core/ScrollAreaScrollbarY`;function yi(e){let{orientation:t=`vertical`,...n}=e,{dir:r}=Yr(),i=$r(),a=(0,_.useRef)(null),o=(0,_.useRef)(0),[s,c]=(0,_.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=ai(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)=>ui(e,o.current,s,t);return t===`horizontal`?(0,G.jsx)(_i,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollLeft,t=li(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)(vi,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollTop,t=li(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}yi.displayName=`@mantine/core/ScrollAreaScrollbarVisible`;function bi(e){let t=$r(),{forceMount:n,...r}=e,[i,a]=(0,_.useState)(!1),o=e.orientation===`horizontal`,s=re(()=>{if(t.viewport){let e=t.viewport.offsetWidth<t.viewport.scrollWidth,n=t.viewport.offsetHeight<t.viewport.scrollHeight;a(o?e:n)}},10);return ei(t.viewport,s),ei(t.content,s),n||i?(0,G.jsx)(yi,{"data-state":i?`visible`:`hidden`,...r}):null}bi.displayName=`@mantine/core/ScrollAreaScrollbarAuto`;function xi(e){let{forceMount:t,...n}=e,r=$r(),[i,a]=(0,_.useState)(!1);return(0,_.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)(bi,{"data-state":i?`visible`:`hidden`,...n}):null}xi.displayName=`@mantine/core/ScrollAreaScrollbarHover`;function Si(e){let{forceMount:t,...n}=e,r=$r(),i=e.orientation===`horizontal`,[a,o]=(0,_.useState)(`hidden`),s=re(()=>o(`idle`),100);return(0,_.useEffect)(()=>{if(a===`idle`){let e=window.setTimeout(()=>o(`hidden`),r.scrollHideDelay);return()=>window.clearTimeout(e)}},[a,r.scrollHideDelay]),(0,_.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)(yi,{"data-state":a===`hidden`?`hidden`:`visible`,...n,onPointerEnter:pi(e.onPointerEnter,()=>o(`interacting`)),onPointerLeave:pi(e.onPointerLeave,()=>o(`idle`))}):null}function Ci(e){let{forceMount:t,...n}=e,r=$r(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=r,o=e.orientation===`horizontal`;return(0,_.useEffect)(()=>(o?i(!0):a(!0),()=>{o?i(!1):a(!1)}),[o,i,a]),r.type===`hover`?(0,G.jsx)(xi,{...n,forceMount:t}):r.type===`scroll`?(0,G.jsx)(Si,{...n,forceMount:t}):r.type===`auto`?(0,G.jsx)(bi,{...n,forceMount:t}):r.type===`always`?(0,G.jsx)(yi,{...n}):null}Ci.displayName=`@mantine/core/ScrollAreaScrollbar`;function wi(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 Ti(e){let{style:t,ref:n,...r}=e,i=$r(),a=hi(),{onThumbPositionChange:o}=a,s=Re(n,a.onThumbChange),c=(0,_.useRef)(void 0),l=re(()=>{c.current&&=(c.current(),void 0)},100);return(0,_.useEffect)(()=>{let{viewport:e}=i;if(e){let t=()=>{if(l(),!c.current){let t=wi(e,o);c.current=t,o()}};return o(),e.addEventListener(`scroll`,t),()=>{e.removeEventListener(`scroll`,t),c.current?.(),c.current=void 0}}},[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:pi(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:pi(e.onPointerUp,a.onThumbPointerUp)})}Ti.displayName=`@mantine/core/ScrollAreaThumb`;function Ei(e){let{forceMount:t,...n}=e,r=hi();return t||r.hasThumb?(0,G.jsx)(Ti,{...n}):null}Ei.displayName=`@mantine/core/ScrollAreaThumb`;function Di({children:e,style:t,ref:n,onWheel:r,...i}){let a=$r(),o=Re(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})})}Di.displayName=`@mantine/core/ScrollAreaViewport`;var Oi={root:`m_d57069b5`,content:`m_b1336c6`,viewport:`m_c0783ff9`,viewportInner:`m_f8f631dd`,scrollbar:`m_c44ba933`,thumb:`m_d8b5e363`,corner:`m_21657268`};function ki(){return typeof window<`u`}function Ai(e){return Ni(e)?(e.nodeName||``).toLowerCase():`#document`}function ji(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Mi(e){return((Ni(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Ni(e){return ki()?e instanceof Node||e instanceof ji(e).Node:!1}function Pi(e){return ki()?e instanceof Element||e instanceof ji(e).Element:!1}function Fi(e){return ki()?e instanceof HTMLElement||e instanceof ji(e).HTMLElement:!1}function Ii(e){return!ki()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof ji(e).ShadowRoot}function Li(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Ji(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Ri(e){return/^(table|td|th)$/.test(Ai(e))}function zi(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Bi=/transform|translate|scale|rotate|perspective|filter/,Vi=/paint|layout|strict|content/,Hi=e=>!!e&&e!==`none`,Ui;function Wi(e){let t=Pi(e)?Ji(e):e;return Hi(t.transform)||Hi(t.translate)||Hi(t.scale)||Hi(t.rotate)||Hi(t.perspective)||!Ki()&&(Hi(t.backdropFilter)||Hi(t.filter))||Bi.test(t.willChange||``)||Vi.test(t.contain||``)}function Gi(e){let t=Xi(e);for(;Fi(t)&&!qi(t);){if(Wi(t))return t;if(zi(t))return null;t=Xi(t)}return null}function Ki(){return Ui??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Ui}function qi(e){return/^(html|body|#document)$/.test(Ai(e))}function Ji(e){return ji(e).getComputedStyle(e)}function Yi(e){return Pi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xi(e){if(Ai(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Ii(e)&&e.host||Mi(e);return Ii(t)?t.host:t}function Zi(e){let t=Xi(e);return qi(t)?(e.ownerDocument||e).body:Fi(t)&&Li(t)?t:Zi(t)}function Qi(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Zi(e),i=r===e.ownerDocument?.body,a=ji(r);if(i){let e=$i(a);return t.concat(a,a.visualViewport||[],Li(r)?r:[],e&&n?Qi(e):[])}return t.concat(r,Qi(r,[],n))}function $i(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var ea=[`top`,`right`,`bottom`,`left`],ta=Math.min,na=Math.max,ra=Math.round,ia=Math.floor,aa=e=>({x:e,y:e}),oa={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function sa(e,t,n){return na(e,ta(t,n))}function ca(e,t){return typeof e==`function`?e(t):e}function la(e){return e.split(`-`)[0]}function ua(e){return e.split(`-`)[1]}function da(e){return e===`x`?`y`:`x`}function fa(e){return e===`y`?`height`:`width`}function pa(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function ma(e){return da(pa(e))}function ha(e,t,n){n===void 0&&(n=!1);let r=ua(e),i=ma(e),a=fa(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=wa(o)),[o,wa(o)]}function ga(e){let t=wa(e);return[_a(e),t,_a(t)]}function _a(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var va=[`left`,`right`],ya=[`right`,`left`],ba=[`top`,`bottom`],xa=[`bottom`,`top`];function Sa(e,t,n){switch(e){case`top`:case`bottom`:return n?t?ya:va:t?va:ya;case`left`:case`right`:return t?ba:xa;default:return[]}}function Ca(e,t,n,r){let i=ua(e),a=Sa(la(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(_a)))),a}function wa(e){let t=la(e);return oa[t]+e.slice(t.length)}function Ta(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Ea(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Ta(e)}function Da(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 Oa(){let e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function ka(){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 Aa(){return/apple/i.test(navigator.vendor)}function ja(){return Oa().toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints}function Ma(){return ka().includes(`jsdom/`)}var Na=`data-floating-ui-focusable`,Pa=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`;function Fa(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 Ia(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ii(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function La(e){return`composedPath`in e?e.composedPath()[0]:e.target}function Ra(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 za(e){return e.matches(`html,body`)}function Ba(e){return e?.ownerDocument||document}function Va(e){return Fi(e)&&e.matches(Pa)}function Ha(e){if(!e||Ma())return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Ua(e){return e?e.hasAttribute(Na)?e:e.querySelector(`[`+Na+`]`)||e:null}function Wa(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...Wa(e,t.id,n)])}function Ga(e){return`nativeEvent`in e}function Ka(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}var qa=typeof document<`u`?_.useLayoutEffect:function(){},Ja={..._};function Ya(e){let t=_.useRef(e);return qa(()=>{t.current=e}),t}var Xa=Ja.useInsertionEffect||(e=>e());function Za(e){let t=_.useRef(()=>{});return Xa(()=>{t.current=e}),_.useCallback(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function Qa(e,t,n){let{reference:r,floating:i}=e,a=pa(t),o=ma(t),s=fa(o),c=la(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=ua(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function $a(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}=ca(t,e),p=Ea(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Da(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=Da(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 eo=50,to=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:$a},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Qa(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<eo&&(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}=Qa(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},no=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}=ca(e,t)||{};if(l==null)return{};let d=Ea(u),f={x:n,y:r},p=ma(i),m=fa(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=ta(d[_],T),D=ta(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=sa(E,k,O),j=!c.arrow&&ua(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}}}),ro=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}=ca(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=la(r),_=pa(o),v=la(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[wa(o)]:ga(o)),x=p!==`none`;!d&&x&&b.push(...Ca(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=ha(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`||_===pa(t)||T.every(e=>pa(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=pa(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 io(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ao(e){return ea.some(t=>e[t]>=0)}var oo=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=ca(e,t);switch(i){case`referenceHidden`:{let e=io(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ao(e)}}}case`escaped`:{let e=io(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ao(e)}}}default:return{}}}}};function so(e){let t=ta(...e.map(e=>e.left)),n=ta(...e.map(e=>e.top)),r=na(...e.map(e=>e.right)),i=na(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function co(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=>Da(so(e)))}var lo=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}=ca(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=co(u),f=Da(so(u)),p=Ea(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(pa(n)===`y`){let e=d[0],t=d[d.length-1],r=la(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return Da({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=la(n)===`left`,t=na(...d.map(e=>e.right)),r=ta(...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 Da({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}}:{}}}},uo=new Set([`left`,`top`]);async function fo(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=la(n),s=ua(n),c=pa(n)===`y`,l=uo.has(o)?-1:1,u=a&&c?-1:1,d=ca(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 po=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 fo(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}}}}},mo=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}=ca(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=pa(i),p=da(f),m=u[p],h=u[f],g=(e,t)=>sa(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}}}}}},ho=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}=ca(e,t),u={x:n,y:r},d=pa(i),f=da(d),p=u[f],m=u[d],h=ca(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=uo.has(la(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}}}},go=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}=ca(e,t),c=await i.detectOverflow(t,s),l=la(n),u=ua(n),d=pa(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=ta(p-c[m],g),y=ta(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*na(c.left,c.right):S=p-2*na(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 _o(e){let t=Ji(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Fi(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=ra(n)!==a||ra(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function vo(e){return Pi(e)?e:e.contextElement}function yo(e){let t=vo(e);if(!Fi(t))return aa(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=_o(t),o=(a?ra(n.width):n.width)/r,s=(a?ra(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var bo=aa(0);function xo(e){let t=ji(e);return!Ki()||!t.visualViewport?bo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function So(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===ji(e)}function Co(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=vo(e),o=aa(1);t&&(r?Pi(r)&&(o=yo(r)):o=yo(e));let s=So(a,n,r)?xo(a):aa(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=ji(a),t=Pi(r)?ji(r):r,n=e,i=$i(n);for(;i&&t!==n;){let e=yo(i),t=i.getBoundingClientRect(),r=Ji(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=ji(i),i=$i(n)}}return Da({width:u,height:d,x:c,y:l})}function wo(e,t){let n=Yi(e).scrollLeft;return t?t.left+n:Co(Mi(e)).left+n}function To(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-wo(e,n),y:n.top+t.scrollTop}}function Eo(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Mi(r),s=t?zi(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=aa(1),u=aa(0),d=Fi(r);if((d||!a)&&((Ai(r)!==`body`||Li(o))&&(c=Yi(r)),d)){let e=Co(r);l=yo(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?To(o,c):aa(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 Do(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Oo(e){let t=Yi(e),n=e.ownerDocument.body,r=na(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=na(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+wo(e),o=-t.scrollTop;return Ji(n).direction===`rtl`&&(a+=na(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var ko=25;function Ao(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=ji(e),a=Mi(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Ki()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(wo(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<=ko&&(s-=o)}return{width:s,height:c,x:l,y:u}}function jo(e,t){let n=Co(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=yo(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Mo(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Ao(e,n,t);else if(t===`document`)r=Oo(Mi(e));else if(Pi(t))r=jo(t,n);else{let n=xo(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Da(r)}function No(e,t){let n=t.get(e);if(n)return n;let r=Qi(e,[],!1).filter(e=>Pi(e)&&Ai(e)!==`body`),i=null,a=Ji(e).position===`fixed`,o=a?Xi(e):e;for(;Pi(o)&&!qi(o);){let e=Ji(o),t=Wi(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Xi(o)}return t.set(e,r),r}function Po(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?zi(t)?[]:No(t,this._c):[].concat(n),r],o=Mo(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=Mo(t,a[e],i);s=na(n.top,s),c=ta(n.right,c),l=ta(n.bottom,l),u=na(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Fo(e){let{width:t,height:n}=_o(e);return{width:t,height:n}}function Io(e,t,n){let r=Fi(t),i=Mi(t),a=n===`fixed`,o=Co(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=aa(0);if((r||!a)&&((Ai(t)!==`body`||Li(i))&&(s=Yi(t)),r)){let e=Co(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=wo(i));let l=i&&!r&&!a?To(i,s):aa(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 Lo(e){return Ji(e).position===`static`}function Ro(e,t){if(!Fi(e)||Ji(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Mi(e)===n&&(n=n.ownerDocument.body),n}function zo(e,t){let n=ji(e);if(zi(e))return n;if(!Fi(e)){let t=Xi(e);for(;t&&!qi(t);){if(Pi(t)&&!Lo(t))return t;t=Xi(t)}return n}let r=Ro(e,t);for(;r&&Ri(r)&&Lo(r);)r=Ro(r,t);return r&&qi(r)&&Lo(r)&&!Wi(r)?n:r||Gi(e)||n}var Bo=async function(e){let t=this.getOffsetParent||zo,n=this.getDimensions,r=await n(e.floating);return{reference:Io(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Vo(e){return Ji(e).direction===`rtl`}var Ho={convertOffsetParentRelativeRectToViewportRelativeRect:Eo,getDocumentElement:Mi,getClippingRect:Po,getOffsetParent:zo,getElementRects:Bo,getClientRects:Do,getDimensions:Fo,getScale:yo,isElement:Pi,isRTL:Vo};function Uo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Wo(e,t,n){let r=null,i,a=Mi(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=ia(d),h=ia(a.clientWidth-(u+f)),g=ia(a.clientHeight-(d+p)),_=ia(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:na(0,ta(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Uo(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=ji(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Go(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=vo(e),u=i||a?[...l?Qi(l):[],...t?Qi(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Wo(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?Co(e):null;c&&g();function g(){let t=Co(e);h&&!Uo(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 Ko=po,qo=mo,Jo=ro,Yo=go,Xo=oo,Zo=no,Qo=lo,$o=ho,es=(e,t,n)=>{let r=new Map,i=n??{},a={...Ho,...i.platform,_c:r};return to(e,t,{...i,platform:a})},ts=typeof document<`u`?_.useLayoutEffect:function(){};function ns(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(!ns(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)&&!ns(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function rs(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function is(e,t){let n=rs(e);return Math.round(t*n)/n}function as(e){let t=_.useRef(e);return ts(()=>{t.current=e}),t}function os(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]=_.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=_.useState(r);ns(f,r)||p(r);let[m,h]=_.useState(null),[g,v]=_.useState(null),y=_.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),b=_.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),x=a||m,S=o||g,C=_.useRef(null),w=_.useRef(null),T=_.useRef(u),E=c!=null,D=as(c),O=as(i),k=as(l),A=_.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),es(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!ns(T.current,t)&&(T.current=t,nt.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);ts(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=_.useRef(!1);ts(()=>(j.current=!0,()=>{j.current=!1}),[]),ts(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=_.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),N=_.useMemo(()=>({reference:x,floating:S}),[x,S]),P=_.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=is(N.floating,u.x),r=is(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...rs(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return _.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:P}),[u,A,M,N,P])}var ss=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?{}:Zo({element:r.current,padding:i}).fn(n):r?Zo({element:r,padding:i}).fn(n):{}}}},cs=(e,t)=>{let n=Ko(e);return{name:n.name,fn:n.fn,options:[e,t]}},ls=(e,t)=>{let n=qo(e);return{name:n.name,fn:n.fn,options:[e,t]}},us=(e,t)=>({fn:$o(e).fn,options:[e,t]}),ds=(e,t)=>{let n=Jo(e);return{name:n.name,fn:n.fn,options:[e,t]}},fs=(e,t)=>{let n=Yo(e);return{name:n.name,fn:n.fn,options:[e,t]}},ps=(e,t)=>{let n=Xo(e);return{name:n.name,fn:n.fn,options:[e,t]}},ms=(e,t)=>{let n=Qo(e);return{name:n.name,fn:n.fn,options:[e,t]}},hs=(e,t)=>{let n=ss(e);return{name:n.name,fn:n.fn,options:[e,t]}};function gs(e){let t=_.useRef(void 0),n=_.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 _.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var _s=`data-floating-ui-focusable`,vs=`active`,ys=`selected`,bs=`ArrowLeft`,xs=`ArrowRight`,Ss=`ArrowUp`,Cs=`ArrowDown`,ws=[bs,xs],Ts=[Ss,Cs];[...ws,...Ts];var Es={..._},Ds=!1,Os=0,ks=()=>`floating-ui-`+Math.random().toString(36).slice(2,6)+Os++;function As(){let[e,t]=_.useState(()=>Ds?ks():void 0);return qa(()=>{e??t(ks())},[]),_.useEffect(()=>{Ds=!0},[]),e}var js=Es.useId||As;function Ms(){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 Ns=_.createContext(null),Ps=_.createContext(null),Fs=()=>_.useContext(Ns)?.id||null,Is=()=>_.useContext(Ps);function Ls(e){return`data-floating-ui-`+e}function Rs(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}var zs=Ls(`safe-polygon`);function Bs(e,t,n){if(n&&!Ka(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 Vs(e){return typeof e==`function`?e():e}function Hs(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=Is(),m=Fs(),h=Ya(l),g=Ya(c),v=Ya(n),y=Ya(d),b=_.useRef(),x=_.useRef(-1),S=_.useRef(),C=_.useRef(-1),w=_.useRef(!0),T=_.useRef(!1),E=_.useRef(()=>{}),D=_.useRef(!1),O=Za(()=>{let e=i.current.openEvent?.type;return e?.includes(`mouse`)&&e!==`mousedown`});_.useEffect(()=>{if(!s)return;function e(e){let{open:t}=e;t||(Rs(x),Rs(C),w.current=!0,D.current=!1)}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[s,a]),_.useEffect(()=>{if(!s||!h.current||!n)return;function e(e){O()&&r(!1,e,`hover`)}let t=Ba(o.floating).documentElement;return t.addEventListener(`mouseleave`,e),()=>{t.removeEventListener(`mouseleave`,e)}},[o.floating,n,r,s,h,O]);let k=_.useCallback(function(e,t,n){t===void 0&&(t=!0),n===void 0&&(n=`hover`);let i=Bs(g.current,`close`,b.current);i&&!S.current?(Rs(x),x.current=window.setTimeout(()=>r(!1,e,n),i)):t&&(Rs(x),r(!1,e,n))},[g,r]),A=Za(()=>{E.current(),S.current=void 0}),j=Za(()=>{if(T.current){let e=Ba(o.floating).body;e.style.pointerEvents=``,e.removeAttribute(zs),T.current=!1}}),M=Za(()=>i.current.openEvent?[`click`,`mousedown`].includes(i.current.openEvent.type):!1);_.useEffect(()=>{if(!s)return;function e(e){if(Rs(x),w.current=!1,u&&!Ka(b.current)||Vs(y.current)>0&&!Bs(g.current,`open`))return;let t=Bs(g.current,`open`,b.current);t?x.current=window.setTimeout(()=>{v.current||r(!0,e,`hover`)},t):n||r(!0,e,`hover`)}function t(e){if(M()){j();return}E.current();let t=Ba(o.floating);if(Rs(C),D.current=!1,h.current&&i.current.floatingContext){n||Rs(x),S.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=S.current;t.addEventListener(`mousemove`,r),E.current=()=>{t.removeEventListener(`mousemove`,r)}}else b.current===`touch`&&Ia(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(){Rs(x)}function l(e){M()||k(e,!1)}if(Pi(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,v,p,g,h,i,M,y]),qa(()=>{var e;if(s&&n&&(e=h.current)!=null&&(e=e.__options)!=null&&e.blockPointerEvents&&O()){T.current=!0;let e=o.floating;if(Pi(o.domReference)&&e){var t;let n=Ba(o.floating).body;n.setAttribute(zs,``);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]),qa(()=>{n||(b.current=void 0,D.current=!1,A(),j())},[n,A,j]),_.useEffect(()=>()=>{A(),Rs(x),Rs(C),j()},[s,o.domReference,A,j]);let N=_.useMemo(()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function i(){!w.current&&!v.current&&r(!0,t,`hover`)}u&&!Ka(b.current)||n||Vs(y.current)===0||D.current&&e.movementX**2+e.movementY**2<2||(Rs(C),b.current===`touch`?i():(D.current=!0,C.current=window.setTimeout(i,Vs(y.current))))}}},[u,r,n,v,y]);return _.useMemo(()=>s?{reference:N}:{},[s,N])}var Us=()=>{},Ws=_.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Us,setState:Us,isInstantPhase:!1}),Gs=()=>_.useContext(Ws);function Ks(e){let{children:t,delay:n,timeoutMs:r=0}=e,[i,a]=_.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),o=_.useRef(null),s=_.useCallback(e=>{a({currentId:e})},[]);return qa(()=>{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)(Ws.Provider,{value:_.useMemo(()=>({...i,setState:a,setCurrentId:s}),[i,s]),children:t})}function qs(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,floatingId:i}=e,{id:a,enabled:o=!0}=t,s=a??i,c=Gs(),{currentId:l,setCurrentId:u,initialDelay:d,setState:f,timeoutMs:p}=c;return qa(()=>{o&&l&&(f({delay:{open:1,close:Bs(d,`close`)}}),l!==s&&r(!1))},[o,s,r,f,l,d]),qa(()=>{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]),qa(()=>{o&&u!==Us&&n&&u(s)},[o,n,u,s]),c}function Js(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ii(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Ys(e){return`composedPath`in e?e.composedPath()[0]:e.target}var Xs={pointerdown:`onPointerDown`,mousedown:`onMouseDown`,click:`onClick`},Zs={pointerdown:`onPointerDownCapture`,mousedown:`onMouseDownCapture`,click:`onClickCapture`},Qs=e=>({escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0});function $s(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=Is(),g=Za(typeof c==`function`?c:()=>!1),v=typeof c==`function`?g:c,y=_.useRef(!1),{escapeKey:b,outsidePress:x}=Qs(p),{escapeKey:S,outsidePress:C}=Qs(m),w=_.useRef(!1),T=Za(e=>{if(!n||!o||!s||e.key!==`Escape`||w.current)return;let t=a.current.floatingContext?.nodeId,i=h?Wa(h.nodesRef.current,t):[];if(!b&&(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,Ga(e)?e.nativeEvent:e,`escape-key`)}),E=Za(e=>{var t;let n=()=>{var t;T(e),(t=La(e))==null||t.removeEventListener(`keydown`,n)};(t=La(e))==null||t.addEventListener(`keydown`,n)}),D=Za(e=>{let t=a.current.insideReactTree;a.current.insideReactTree=!1;let n=y.current;if(y.current=!1,l===`click`&&n||t||typeof v==`function`&&!v(e))return;let o=La(e),s=`[`+Ls(`inert`)+`]`,c=Ba(i.floating).querySelectorAll(s),u=Pi(o)?o:null;for(;u&&!qi(u);){let e=Xi(u);if(qi(e)||!Pi(e))break;u=e}if(c.length&&Pi(o)&&!za(o)&&!Ia(o,i.floating)&&Array.from(c).every(e=>!Ia(u,e)))return;if(Fi(o)&&A){let t=qi(o),n=Ji(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&&Wa(h.nodesRef.current,d).some(t=>Ra(e,t.context?.elements.floating));if(Ra(e,i.floating)||Ra(e,i.domReference)||f)return;let p=h?Wa(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=Za(e=>{var t;let n=()=>{var t;D(e),(t=La(e))==null||t.removeEventListener(l,n)};(t=La(e))==null||t.addEventListener(l,n)});_.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=b,a.current.__outsidePressBubbles=x;let e=-1;function t(e){r(!1,e,`ancestor-scroll`)}function c(){window.clearTimeout(e),w.current=!0}function u(){e=window.setTimeout(()=>{w.current=!1},Ki()?5:0)}let d=Ba(i.floating);s&&(d.addEventListener(`keydown`,S?E:T,S),d.addEventListener(`compositionstart`,c),d.addEventListener(`compositionend`,u)),v&&d.addEventListener(l,C?O:D,C);let p=[];return f&&(Pi(i.domReference)&&(p=Qi(i.domReference)),Pi(i.floating)&&(p=p.concat(Qi(i.floating))),!Pi(i.reference)&&i.reference&&i.reference.contextElement&&(p=p.concat(Qi(i.reference.contextElement)))),p=p.filter(e=>e!==d.defaultView?.visualViewport),p.forEach(e=>{e.addEventListener(`scroll`,t)}),()=>{s&&(d.removeEventListener(`keydown`,S?E:T,S),d.removeEventListener(`compositionstart`,c),d.removeEventListener(`compositionend`,u)),v&&d.removeEventListener(l,C?O:D,C),p.forEach(e=>{e.removeEventListener(`scroll`,t)}),window.clearTimeout(e)}},[a,i,s,v,l,n,r,f,o,b,x,T,S,E,D,C,O]),_.useEffect(()=>{a.current.insideReactTree=!1},[a,v,l]);let k=_.useMemo(()=>({onKeyDown:T,...u&&{[Xs[d]]:e=>{r(!1,e.nativeEvent,`reference-press`)},...d!==`click`&&{onClick(e){r(!1,e.nativeEvent,`reference-press`)}}}}),[T,r,u,d]),A=_.useMemo(()=>{function e(e){e.button===0&&(y.current=!0)}return{onKeyDown:T,onMouseDown:e,onMouseUp:e,[Zs[l]]:()=>{a.current.insideReactTree=!0}}},[T,l,a]);return _.useMemo(()=>o?{reference:k,floating:A}:{},[o,k,A])}function ec(e){let{open:t=!1,onOpenChange:n,elements:r}=e,i=js(),a=_.useRef({}),[o]=_.useState(()=>Ms()),s=Fs()!=null,[c,l]=_.useState(r.reference),u=Za((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=_.useMemo(()=>({setPositionReference:l}),[]),f=_.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return _.useMemo(()=>({dataRef:a,open:t,onOpenChange:u,elements:f,events:o,floatingId:i,refs:d}),[t,u,f,o,i,d])}function tc(e){let{elements:t,...n}=e===void 0?{}:e,{nodeId:r}=n,i=ec({...n,elements:{reference:t?.reference??null,floating:t?.floating??null}}),a=n.rootContext||i,o=a.elements,[s,c]=_.useState(null),[l,u]=_.useState(null),d=o?.domReference||s,f=_.useRef(null),p=Is();qa(()=>{d&&(f.current=d)},[d]);let m=os({...n,elements:{...o,...l&&{reference:l}}}),h=_.useCallback(e=>{let t=Pi(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),g=_.useCallback(e=>{(Pi(e)||e===null)&&(f.current=e,c(e)),(Pi(m.refs.reference.current)||m.refs.reference.current===null||e!==null&&!Pi(e))&&m.refs.setReference(e)},[m.refs]),v=_.useMemo(()=>({...m.refs,setReference:g,setPositionReference:h,domReference:f}),[m.refs,g,h]),y=_.useMemo(()=>({...m.elements,domReference:d}),[m.elements,d]),b=_.useMemo(()=>({...m,...a,refs:v,elements:y,nodeId:r}),[m,v,y,r,a]);return qa(()=>{a.dataRef.current.floatingContext=b;let e=p?.nodesRef.current.find(e=>e.id===r);e&&(e.context=b)}),_.useMemo(()=>({...m,context:b,refs:v,elements:y}),[m,v,y,b])}function nc(){return ja()&&Aa()}function rc(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=_.useRef(!1),u=_.useRef(-1),d=_.useRef(!0);_.useEffect(()=>{if(!s)return;let e=ji(o.domReference);function t(){!n&&Fi(o.domReference)&&o.domReference===Fa(Ba(o.domReference))&&(l.current=!0)}function r(){d.current=!0}function i(){d.current=!1}return e.addEventListener(`blur`,t),nc()&&(e.addEventListener(`keydown`,r,!0),e.addEventListener(`pointerdown`,i,!0)),()=>{e.removeEventListener(`blur`,t),nc()&&(e.removeEventListener(`keydown`,r,!0),e.removeEventListener(`pointerdown`,i,!0))}},[o.domReference,n,s]),_.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]),_.useEffect(()=>()=>{Rs(u)},[]);let f=_.useMemo(()=>({onMouseLeave(){l.current=!1},onFocus(e){if(l.current)return;let t=La(e.nativeEvent);if(c&&Pi(t)){if(nc()&&!e.relatedTarget){if(!d.current&&!Va(t))return}else if(!Ha(t))return}r(!0,e.nativeEvent,`focus`)},onBlur(e){l.current=!1;let t=e.relatedTarget,n=e.nativeEvent,i=Pi(t)&&t.hasAttribute(Ls(`focus-guard`))&&t.getAttribute(`data-type`)===`outside`;u.current=window.setTimeout(()=>{let e=Fa(o.domReference?o.domReference.ownerDocument:document);!t&&e===o.domReference||Ia(a.current.floatingContext?.refs.floating.current,e)||Ia(o.domReference,e)||i||r(!1,n,`focus`)})}}),[a,o.domReference,r,c]);return _.useMemo(()=>s?{reference:f}:{},[s,f])}function ic(e,t,n){let r=new Map,i=n===`item`,a=e;if(i&&e){let{[vs]:t,[ys]:n,...r}=e;a=r}return{...n===`floating`&&{tabIndex:-1,[_s]:``},...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&&[vs,ys].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 ac(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=_.useCallback(t=>ic(t,e,`reference`),t),a=_.useCallback(t=>ic(t,e,`floating`),n),o=_.useCallback(t=>ic(t,e,`item`),r);return _.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}var oc=new Map([[`select`,`listbox`],[`combobox`,`listbox`],[`label`,!1]]);function sc(e,t){t===void 0&&(t={});let{open:n,elements:r,floatingId:i}=e,{enabled:a=!0,role:o=`dialog`}=t,s=js(),c=r.domReference?.id||s,l=_.useMemo(()=>Ua(r.floating)?.id||i,[r.floating,i]),u=oc.get(o)??o,d=Fs()!=null,f=_.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=_.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=_.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 _.useMemo(()=>a?{reference:f,floating:p,item:m}:{},[a,f,p,m])}function cc(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...cc(e,t.id,n)])}function lc(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 uc(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function dc(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(){Rs(i),u()}if(Rs(i),!c.domReference||!c.floating||s==null||n==null||o==null)return;let{clientX:m,clientY:h}=e,g=[m,h],_=Ys(e),v=e.type===`mouseleave`,y=Js(c.floating,_),b=Js(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=uc(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&&Pi(e.relatedTarget)&&Js(c.floating,e.relatedTarget)||f&&cc(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(!lc([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()}lc([m,h],P([n,o]))?!a&&r&&(i.current=window.setTimeout(p,40)):p()}}};return u.__options={blockPointerEvents:n},u}var fc={scrollHideDelay:1e3,type:`hover`,scrollbars:`xy`},pc=St((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":d(t),"--scrollarea-over-scroll-behavior":i,"--scrollarea-offset-size":void 0}}}),mc=q(e=>{let t=K(`ScrollArea`,fc,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:v,onTopReached:y,onLeftReached:b,onRightReached:x,overscrollBehavior:S,startScrollPosition:C,verticalScrollbarPosition:w,attributes:T,...E}=t,[D,O]=(0,_.useState)(!1),[k,A]=(0,_.useState)(!1),[j,M]=(0,_.useState)(!1),N=(0,_.useRef)(!0),P=(0,_.useRef)(!1),F=(0,_.useRef)(!0),I=(0,_.useRef)(!1),L=ir({name:`ScrollArea`,props:t,classes:Oi,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:T,vars:c,varsResolver:pc}),R=(0,_.useRef)(null),[z,B]=(0,_.useState)(null),ee=gs([f,R,(0,_.useCallback)(e=>{B(t=>t===e?t:e)},[])]);return ei(h===`present`?z:null,()=>{let e=R.current;e&&(A(e.scrollHeight>e.clientHeight),M(e.scrollWidth>e.clientWidth))}),H(()=>{C&&R.current&&R.current.scrollTo({left:C.x??0,top:C.y??0})},[]),(0,G.jsxs)(ii,{getStyles:L,type:l===`never`?`always`:l,scrollHideDelay:u,scrollbars:g,...L(`root`),...E,children:[(0,G.jsx)(Di,{...d,...L(`viewport`,{style:d?.style}),ref:ee,"data-offset-scrollbars":h===!0?`xy`:h||void 0,"data-scrollbars":g||void 0,"data-vertical-scrollbar-position":w||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&&v?.(),c&&!N.current&&y?.(),P.current=s,N.current=c;let l=i-(a-o)>=-.8,u=i===0;l&&!I.current&&x?.(),u&&!F.current&&b?.(),I.current=l,F.current=u},children:m}),(g===`xy`||g===`x`)&&(0,G.jsx)(Ci,{...L(`scrollbar`),orientation:`horizontal`,"data-vertical-scrollbar-position":w||void 0,"data-hidden":l===`never`||h===`present`&&!j||void 0,forceMount:!0,onMouseEnter:()=>O(!0),onMouseLeave:()=>O(!1),children:(0,G.jsx)(Ei,{...L(`thumb`)})}),(g===`xy`||g===`y`)&&(0,G.jsx)(Ci,{...L(`scrollbar`),orientation:`vertical`,"data-vertical-scrollbar-position":w||void 0,"data-hidden":l===`never`||h===`present`&&!k||void 0,forceMount:!0,onMouseEnter:()=>O(!0),onMouseLeave:()=>O(!1),children:(0,G.jsx)(Ei,{...L(`thumb`)})}),(0,G.jsx)(ni,{...L(`corner`),"data-vertical-scrollbar-position":w||void 0,"data-hovered":D||void 0,"data-hidden":l===`never`||void 0})]})});mc.displayName=`@mantine/core/ScrollArea`;var hc=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:v,onBottomReached:y,onTopReached:b,startScrollPosition:x,verticalScrollbarPosition:S,onOverflowChange:C,...w}=K(`ScrollAreaAutosize`,fc,e),T=(0,_.useRef)(null),[E,D]=(0,_.useState)(null),O=gs([u,T,(0,_.useCallback)(e=>{D(t=>t===e?t:e)},[])]),k=(0,_.useRef)(!1),A=(0,_.useRef)(!1),j=(0,_.useEffectEvent)(()=>{let e=T.current;if(!e||!C)return;let t=e.scrollHeight>e.clientHeight;t!==k.current&&(A.current?C(t):(A.current=!0,t&&C(!0)),k.current=t)});return ei(C?E:null,j),(0,G.jsx)(J,{...w,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)(mc,{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:v,scrollbars:h,onBottomReached:y,onTopReached:b,startScrollPosition:x,verticalScrollbarPosition:S,"data-autosize":`true`,children:t})})})});mc.classes=Oi,mc.varsResolver=pc,hc.displayName=`@mantine/core/ScrollAreaAutosize`,hc.classes=Oi,mc.Autosize=hc;var gc={root:`m_87cf2631`},_c={__staticSelector:`UnstyledButton`},vc=Vr(e=>{let t=K(`UnstyledButton`,_c,e),{className:n,component:r=`button`,__staticSelector:i,unstyled:a,classNames:o,styles:s,style:c,attributes:l,...u}=t,d=ir({name:i,props:t,classes:gc,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})});vc.classes=gc,vc.displayName=`@mantine/core/UnstyledButton`;var yc={root:`m_515a97f8`},bc=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=ir({name:`VisuallyHidden`,classes:yc,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c});return(0,G.jsx)(J,{component:`span`,...u(`root`),...l})});bc.classes=yc,bc.displayName=`@mantine/core/VisuallyHidden`;var xc={root:`m_1b7284a3`},Sc=St((e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:j(t),"--paper-shadow":P(n)}})),Cc=Vr(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=ir({name:`Paper`,props:t,classes:xc,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:c,varsResolver:Sc});return(0,G.jsx)(J,{mod:[{withBorder:s},f],...h(`root`),variant:d,...m})});Cc.classes=xc,Cc.varsResolver=Sc,Cc.displayName=`@mantine/core/Paper`;function wc(e,t,n,r){return e===`center`||r===`center`?{top:t}:e===`end`?{bottom:n}:e===`start`?{top:n}:{}}function Tc(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 Ec={bottom:`borderTopLeftRadius`,left:`borderTopRightRadius`,right:`borderBottomLeftRadius`,top:`borderBottomRightRadius`};function Dc({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 Oc({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,arrowX:a,arrowY:o,dir:s}){if(i===`merge`){let n=Dc({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`,[Ec[c]]:r},d=-t/2;return c===`left`?{...u,...wc(l,o,n,i),right:d,borderLeftColor:`transparent`,borderBottomColor:`transparent`,clipPath:`polygon(100% 0, 0 0, 100% 100%)`}:c===`right`?{...u,...wc(l,o,n,i),left:d,borderRightColor:`transparent`,borderTopColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 100%)`}:c===`top`?{...u,...Tc(l,a,n,i,s),bottom:d,borderTopColor:`transparent`,borderLeftColor:`transparent`,clipPath:`polygon(0 100%, 100% 100%, 100% 0)`}:c===`bottom`?{...u,...Tc(l,a,n,i,s),top:d,borderBottomColor:`transparent`,borderRightColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 0)`}:{}}function kc({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 Ac({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,visible:a,arrowX:o,arrowY:s,style:c,...l}){let{dir:u}=Yr();return a?(0,G.jsx)(`div`,{role:`presentation`,...l,style:{...c,...Oc({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,dir:u,arrowX:o,arrowY:s})}}):null}Ac.displayName=`@mantine/core/FloatingArrow`;function jc(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 Mc({open:e,close:t,openDelay:n,closeDelay:r}){let i=(0,_.useRef)(-1),a=(0,_.useRef)(-1),o=()=>{window.clearTimeout(i.current),window.clearTimeout(a.current)};return(0,_.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 Nc={root:`m_9814e45f`},Pc={zIndex:E(`modal`)},Fc=St((e,{gradient:t,color:n,backgroundOpacity:r,blur:i,radius:a,zIndex:o})=>({root:{"--overlay-bg":t||(n!==void 0||r!==void 0)&&Kt(n||`#000`,r??.6)||void 0,"--overlay-filter":i?`blur(${d(i)})`:void 0,"--overlay-radius":a===void 0?void 0:j(a),"--overlay-z-index":o?.toString()}})),Ic=Vr(e=>{let t=K(`Overlay`,Pc,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=ir({name:`Overlay`,props:t,classes:Nc,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:Fc});return(0,G.jsx)(J,{...b(`root`),mod:[{center:l,fixed:c},_],...y,children:u})});Ic.classes=Nc,Ic.varsResolver=Fc,Ic.displayName=`@mantine/core/Overlay`;function Lc(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 Rc=null;function zc({target:e,reuseTargetNode:t,...n}){if(e)return typeof e==`string`?document.querySelector(e)||Lc(n):e;if(t){if(Rc){if(document.body.contains(Rc))return Rc;Rc=null}let e=document.querySelector(`[data-mantine-shared-portal-node]`);if(e)return Rc=e,e;let t=Lc(n);return t.setAttribute(`data-mantine-shared-portal-node`,`true`),document.body.appendChild(t),Rc=t,t}return Lc(n)}var Bc={reuseTargetNode:!0},Vc=q(e=>{let{children:t,target:n,reuseTargetNode:r,ref:i,...a}=K(`Portal`,Bc,e),[o,s]=(0,_.useState)(!1),c=(0,_.useRef)(null);return H(()=>(s(!0),c.current=zc({target:n,reuseTargetNode:r,...a}),Ie(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,nt.createPortal)((0,G.jsx)(G.Fragment,{children:t}),c.current)});Vc.displayName=`@mantine/core/Portal`;var Hc=q(({withinPortal:e=!0,children:t,...n})=>ln()===`test`||!e?(0,G.jsx)(G.Fragment,{children:t}):(0,G.jsx)(Vc,{...n,children:t}));Hc.displayName=`@mantine/core/OptionalPortal`;var Uc=e=>({in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(.9) translateY(${e===`bottom`?10:-10}px)`},transitionProperty:`transform, opacity`}),Wc={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:{...Uc(`bottom`),common:{transformOrigin:`center center`}},"pop-bottom-left":{...Uc(`bottom`),common:{transformOrigin:`bottom left`}},"pop-bottom-right":{...Uc(`bottom`),common:{transformOrigin:`bottom right`}},"pop-top-left":{...Uc(`top`),common:{transformOrigin:`top left`}},"pop-top-right":{...Uc(`top`),common:{transformOrigin:`top right`}}},Gc={entering:`in`,entered:`in`,exiting:`out`,exited:`out`,"pre-exiting":`out`,"pre-entering":`out`};function Kc({transition:e,state:t,duration:n,timingFunction:r}){let i={WebkitBackfaceVisibility:`hidden`,transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e==`string`?e in Wc?{transitionProperty:Wc[e].transitionProperty,...i,...Wc[e].common,...Wc[e][Gc[t]]}:{}:{transitionProperty:e.transitionProperty,...i,...e.common,...e[Gc[t]]}}function qc({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:i,onExit:a,onEntered:o,onExited:s,enterDelay:c,exitDelay:l}){let u=Dn(),d=Be(),f=u.respectReducedMotion?d:!1,[p,m]=(0,_.useState)(f?0:e),[h,g]=(0,_.useState)(r?`entered`:`exited`),v=(0,_.useRef)(-1),y=(0,_.useRef)(-1),b=(0,_.useRef)(-1);function x(){window.clearTimeout(v.current),window.clearTimeout(y.current),cancelAnimationFrame(b.current),b.current=-1}let S=n=>{x();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(()=>{nt.flushSync(()=>{g(n?`pre-entering`:`pre-exiting`)}),b.current===e&&(b.current=requestAnimationFrame(()=>{typeof r==`function`&&r(),g(n?`entering`:`exiting`),v.current=window.setTimeout(()=>{typeof c==`function`&&c(),g(n?`entered`:`exited`)},l)}))});b.current=e}},C=e=>{x(),typeof(e?c:l)==`number`?y.current=window.setTimeout(()=>{S(e)},e?c:l):S(e)};return le(()=>{C(r)},[r]),(0,_.useEffect)(()=>()=>{x()},[]),{transitionDuration:p,transitionStatus:h,transitionTimingFunction:n||`ease`}}function Jc({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=ln(),{transitionDuration:h,transitionStatus:g,transitionTimingFunction:v}=qc({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)(_.Activity,{mode:a?`visible`:`hidden`,children:o({})}):a?(0,G.jsx)(G.Fragment,{children:o({})}):null;let y=g===`exited`;if(e){let e=o(y?t===`display-none`?{display:`none`}:{}:Kc({transition:n,duration:h,state:g,timingFunction:v}));return t===`display-none`?e:(0,G.jsx)(_.Activity,{mode:y?`hidden`:`visible`,children:e})}return y?null:(0,G.jsx)(G.Fragment,{children:o(Kc({transition:n,duration:h,state:g,timingFunction:v}))})}Jc.displayName=`@mantine/core/Transition`;var Yc={duration:100,transition:`fade`};function Xc(e,t){return{...Yc,...t,...e}}var[Zc,Qc]=y(`Popover component was not found in the tree`);function $c({childProps:e,disabled:t,opened:n,longPressDelay:r=500,setReference:i,open:a}){let o=(0,_.useRef)(!1),s=(0,_.useRef)(!1),c=(0,_.useRef)(null),l=(0,_.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=F(e.onMouseDown,e=>{t||e.button===2&&e.stopPropagation()}),f=F(e.onContextMenu,e=>{t||e.defaultPrevented||(e.preventDefault(),!s.current&&(u(e.clientX,e.clientY,e.currentTarget),o.current&&(s.current=!0)))}),p=Xe(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:F(e.onTouchStart,p.onTouchStart),onTouchEnd:F(e.onTouchEnd,p.onTouchEnd),onTouchCancel:F(e.onTouchCancel,p.onTouchCancel),onTouchMove:F(e.onTouchMove,p.onTouchMove),style:t?e.style:{...e.style,WebkitTouchCallout:`none`,WebkitUserSelect:`none`,userSelect:`none`},"data-expanded":n?!0:void 0}}function el(e){let{children:t,disabled:n,longPressDelay:r}=K(`PopoverContextMenu`,null,e),i=xt(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=Qc(),o=$c({childProps:i.props,disabled:n||a.disabled,opened:a.opened,longPressDelay:r,setReference:a.reference,open:()=>{a.opened||a.onToggle()}});return(0,_.cloneElement)(i,o)}el.displayName=`@mantine/core/PopoverContextMenu`;function tl({children:e,active:t=!0,refProp:n=`ref`,innerRef:r}){let i=Re(je(t),r),a=xt(e);return a?(0,_.cloneElement)(a,{[n]:i}):e}function nl(e){return(0,G.jsx)(bc,{tabIndex:-1,"data-autofocus":!0,...e})}tl.displayName=`@mantine/core/FocusTrap`,nl.displayName=`@mantine/core/FocusTrapInitialFocus`,tl.InitialFocus=nl;var rl={dropdown:`m_38a85659`,arrow:`m_a31dc6c1`,overlay:`m_3d7bc908`},il=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,...f}=t,p=Qc(),{dir:m}=Yr(),h=p.arrowPosition===`merge`&&p.withArrow?kc({position:p.placement,dir:m}):void 0,g=U({opened:p.opened,shouldReturnFocus:p.returnFocus}),_=p.withRoles?{"aria-labelledby":p.getTargetId(),id:p.getDropdownId(),role:`dialog`,tabIndex:-1}:{},v=Re(u,p.floating);return p.disabled?null:(0,G.jsx)(Hc,{...p.portalProps,withinPortal:p.withinPortal,children:(0,G.jsx)(Jc,{mounted:p.opened,...p.transitionProps,transition:p.transitionProps?.transition||`fade`,duration:p.transitionProps?.duration??150,keepMounted:p.keepMounted,keepMountedMode:p.keepMountedMode,exitDuration:typeof p.transitionProps?.exitDuration==`number`?p.transitionProps.exitDuration:p.transitionProps?.duration,children:e=>(0,G.jsx)(tl,{active:p.trapFocus&&p.opened,innerRef:v,children:(0,G.jsxs)(J,{..._,...f,variant:s,onKeyDownCapture:O(()=>{p.onClose?.(),p.onDismiss?.()},{active:p.closeOnEscape,onTrigger:g,onKeyDown:o}),"data-position":p.placement,"data-fixed":p.floatingStrategy===`fixed`||void 0,...p.getStyles(`dropdown`,{className:n,props:t,classNames:c,styles:l,style:[{...e,...h,zIndex:p.zIndex,top:p.y??0,left:p.x??0,width:p.width===`target`?void 0:d(p.width),...p.referenceHidden?{display:`none`}:null},p.resolvedStyles?.dropdown,l?.dropdown,r]}),children:[a,(0,G.jsx)(Ac,{ref:p.arrowRef,arrowX:p.arrowX,arrowY:p.arrowY,visible:p.withArrow,position:p.placement,arrowSize:p.arrowSize,arrowRadius:p.arrowRadius,arrowOffset:p.arrowOffset,arrowPosition:p.arrowPosition,...p.getStyles(`arrow`,{props:t,classNames:c,styles:l})})]})})})})});il.classes=rl,il.displayName=`@mantine/core/PopoverDropdown`;var al={refProp:`ref`,popupType:`dialog`},ol=q(e=>{let{children:t,refProp:n,popupType:r,ref:i,...a}=K(`PopoverTarget`,al,e),o=xt(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=Qc(),l=Re(c.reference,gt(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,_.cloneElement)(o,{...s,...u,...c.targetProps,className:wt(c.targetProps.className,s.className,d.className),[n]:l,...c.controlled?null:{onClick:e=>{c.onToggle(),d.onClick?.(e)}}})});ol.displayName=`@mantine/core/PopoverTarget`;function sl(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 cl(e,t,n,r){let i=sl(e.middlewares),a=[cs(e.offset),ps()];if(i.flip&&!n){let e=typeof i.flip==`boolean`?{}:i.flip,t=r?{fallbackStrategy:`initialPlacement`,...e}:e;a.push(ds(t))}if(i.shift){let t=typeof i.shift==`boolean`?{}:i.shift;a.push(ls(n=>{let r=n.placement.startsWith(`top`)||n.placement.startsWith(`bottom`);return{limiter:us(),padding:5,...e.width===`target`&&r?{mainAxis:!1}:null,...t}}))}return i.inline&&a.push(typeof i.inline==`boolean`?ms():ms(i.inline)),a.push(hs({element:e.arrowRef,padding:e.arrowOffset})),(i.size||e.width===`target`)&&a.push(fs({...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 ll(e){let[t,n]=ze({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=(0,_.useRef)(t),i=(0,_.useRef)(!1),[a,o]=(0,_.useState)(null),s=e.preventPositionChangeWhenVisible!==!1,c=(0,_.useRef)(t);t!==c.current&&(c.current=t,t&&a!==null&&o(null));let l=(0,_.useRef)(e.position);e.position!==l.current&&(l.current=e.position,i.current=!1,a!==null&&o(null));let u=(0,_.useCallback)(()=>o(null),[]),d=()=>{t&&!e.disabled&&n(!1)},f=()=>{e.disabled||n(!t)},p=tc({open:t,strategy:e.strategy,placement:s?a??e.position:e.position,middleware:cl(e,()=>p,s&&a!==null,s),whileElementsMounted:e.keepMounted?void 0:Go});(0,_.useEffect)(()=>{if(!e.keepMounted)return;let n=p.refs.reference.current,r=p.refs.floating.current;if(t&&n&&r)return Go(n,r,p.update)},[e.keepMounted,t,p.update,p.elements.reference,p.elements.floating]),H(()=>{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,_.useRef)(p.placement);return H(()=>{m.current!==p.placement&&(m.current=p.placement,e.onPositionChange?.(p.placement))},[p.placement]),le(()=>{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 ul={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:E(`popover`),__staticSelector:`Popover`,width:`max-content`},dl=St((e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":t===void 0?void 0:j(t),"--popover-shadow":P(n)}}));function fl(e){let t=K(`Popover`,ul,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:v,classNames:y,styles:b,closeOnClickOutside:x,withinPortal:S,portalProps:C,closeOnEscape:w,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:B,variant:ee,keepMounted:te,keepMountedMode:ne,vars:re,floatingStrategy:ie,withOverlay:oe,overlayProps:se,hideDetached:V,attributes:H,preventPositionChangeWhenVisible:ce,...le}=t,U=ir({name:L,props:t,classes:rl,classNames:y,styles:b,unstyled:v,attributes:H,rootSelector:`dropdown`,vars:re,varsResolver:dl}),{resolvedStyles:W}=Un({classNames:y,styles:b,props:t}),ue=(0,_.useRef)(null),[de,fe]=(0,_.useState)(null),[pe,me]=(0,_.useState)(null),{dir:he}=Yr(),ge=ln(),_e=Pe(F),ve=ll({middlewares:d,width:u,position:jc(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:ie,disabled:z,preventPositionChangeWhenVisible:ce,keepMounted:te});ae(()=>{x&&(ve.onClose(),k?.())},T,[de,pe],!0,E);let ye=(0,_.useCallback)(e=>{fe(e),ve.floating.refs.setReference(e)},[ve.floating.refs.setReference]),be=(0,_.useCallback)(e=>{me(e),ve.floating.refs.setFloating(e)},[ve.floating.refs.setFloating]),xe=(0,_.useCallback)(()=>{s?.onExited?.(),c?.(),ve.resetLockedPlacement()},[s?.onExited,c,ve.resetLockedPlacement]),Se=(0,_.useCallback)(()=>{s?.onEntered?.(),l?.()},[s?.onEntered,l]);return(0,G.jsxs)(Zc,{value:{returnFocus:B,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:S,portalProps:C,zIndex:M,radius:N,shadow:P,closeOnEscape:w,onDismiss:k,onClose:ve.onClose,onToggle:ve.onToggle,getTargetId:()=>_e,getDropdownId:()=>`${_e}-dropdown`,withRoles:R,targetProps:le,__staticSelector:L,classNames:y,styles:b,unstyled:v,variant:ee,keepMounted:te,keepMountedMode:ne,getStyles:U,resolvedStyles:W,floatingStrategy:ie,referenceHidden:V&&ge!==`test`?ve.floating.middlewareData.hide?.referenceHidden:!1},children:[n,oe&&(0,G.jsx)(Jc,{transition:`fade`,mounted:ve.opened,duration:s?.duration||250,exitDuration:s?.exitDuration||250,children:e=>(0,G.jsx)(Hc,{withinPortal:S,children:(0,G.jsx)(Ic,{...se,...U(`overlay`,{className:se?.className,style:[e,se?.style]})})})})]})}fl.Target=ol,fl.Dropdown=il,fl.ContextMenu=el,fl.varsResolver=dl,fl.displayName=`@mantine/core/Popover`,fl.extend=e=>e,fl.withProps=e=>{let t=t=>(0,G.jsx)(fl,{...e,...t});return t.extend=fl.extend,t.displayName=`WithProps(${fl.displayName})`,t};var pl={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`},ml=({className:e,...t})=>(0,G.jsxs)(J,{component:`span`,className:wt(pl.barsLoader,e),...t,children:[(0,G.jsx)(`span`,{className:pl.bar}),(0,G.jsx)(`span`,{className:pl.bar}),(0,G.jsx)(`span`,{className:pl.bar})]});ml.displayName=`@mantine/core/Bars`;var hl=({className:e,...t})=>(0,G.jsxs)(J,{component:`span`,className:wt(pl.dotsLoader,e),...t,children:[(0,G.jsx)(`span`,{className:pl.dot}),(0,G.jsx)(`span`,{className:pl.dot}),(0,G.jsx)(`span`,{className:pl.dot})]});hl.displayName=`@mantine/core/Dots`;var gl=({className:e,...t})=>(0,G.jsx)(J,{component:`span`,className:wt(pl.ovalLoader,e),...t});gl.displayName=`@mantine/core/Oval`;var _l={bars:ml,oval:gl,dots:hl},vl={loaders:_l,type:`oval`},yl=St((e,{size:t,color:n})=>({root:{"--loader-size":k(t,`loader-size`),"--loader-color":n?Ht(n,e):void 0}})),bl=q(e=>{let t=K(`Loader`,vl,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=ir({name:`Loader`,props:t,classes:pl,className:o,style:s,classNames:c,styles:l,unstyled:u,attributes:m,vars:a,varsResolver:yl});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})});bl.defaultLoaders=_l,bl.classes=pl,bl.varsResolver=yl,bl.displayName=`@mantine/core/Loader`;var xl={root:`m_8d3f4000`,icon:`m_8d3afb97`,loader:`m_302b9fb1`,group:`m_1a0f1b21`,groupSection:`m_437b6484`},Sl={orientation:`horizontal`},Cl=St((e,{borderWidth:t})=>({group:{"--ai-border-width":d(t)}})),wl=q(e=>{let t=K(`ActionIconGroup`,Sl,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=ir({name:`ActionIconGroup`,props:t,classes:xl,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:c,varsResolver:Cl,rootSelector:`group`});return(0,G.jsx)(J,{...m(`group`),variant:u,mod:[{orientation:s},d],role:`group`,...p})});wl.classes=xl,wl.varsResolver=Cl,wl.displayName=`@mantine/core/ActionIconGroup`;var Tl=St((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":k(o,`section-height`),"--section-padding-x":k(o,`section-padding-x`),"--section-fz":M(o),"--section-radius":t===void 0?void 0:j(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),El=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=ir({name:`ActionIconGroupSection`,props:t,classes:xl,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:Tl,rootSelector:`groupSection`});return(0,G.jsx)(J,{...m(`groupSection`),variant:c,...p})});El.classes=xl,El.varsResolver=Tl,El.displayName=`@mantine/core/ActionIconGroupSection`;var Dl=St((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":k(t,`ai-size`),"--ai-radius":n===void 0?void 0:j(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}}}),Ol=Vr(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=ir({name:[`ActionIcon`,p],props:t,className:n,style:s,classes:xl,classNames:a,styles:o,unstyled:r,attributes:x,vars:h,varsResolver:Dl});return(0,G.jsxs)(vc,{...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)(Jc,{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)(bl,{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})]})});Ol.classes=xl,Ol.varsResolver=Dl,Ol.displayName=`@mantine/core/ActionIcon`,Ol.Group=wl,Ol.GroupSection=El;function kl({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`})})}kl.displayName=`@mantine/core/CloseIcon`;var Al={root:`m_86a44da5`,"root--subtle":`m_220c80f2`},jl={variant:`subtle`},Ml=St((e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":k(t,`cb-size`),"--cb-radius":n===void 0?void 0:j(n),"--cb-icon-size":d(r)}})),Nl=Vr(e=>{let t=K(`CloseButton`,jl,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=ir({name:_||`CloseButton`,props:t,className:o,style:c,classes:Al,classNames:s,styles:l,unstyled:u,attributes:g,vars:i,varsResolver:Ml});return(0,G.jsxs)(vc,{...v,unstyled:u,variant:p,disabled:f,mod:[{disabled:f||d},h],...y(`root`,{variant:p,active:!f&&!d}),children:[m||(0,G.jsx)(kl,{}),r]})});Nl.classes=Al,Nl.varsResolver=Ml,Nl.displayName=`@mantine/core/CloseButton`;function Pl(e){return _.Children.toArray(e).filter(Boolean)}var Fl={root:`m_4081bf90`},Il={preventGrowOverflow:!0,gap:`md`,align:`center`,justify:`flex-start`,wrap:`wrap`},Ll=St((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":A(r),"--group-align":i,"--group-justify":a,"--group-wrap":o}})),Rl=q(e=>{let t=K(`Group`,Il,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=Pl(s),x=b.length,S=A(c??`md`),C=ir({name:`Group`,props:t,stylesCtx:{childWidth:`calc(${100/x}% - (${S} - ${S} / ${x}))`},className:r,style:i,classes:Fl,classNames:n,styles:a,unstyled:o,attributes:v,vars:m,varsResolver:Ll});return(0,G.jsx)(J,{...C(`root`),variant:h,mod:[{grow:f},_],size:g,...y,children:b})});Rl.classes=Fl,Rl.varsResolver=Ll,Rl.displayName=`@mantine/core/Group`;var[zl,Bl]=y(`ModalBase component was not found in tree`);function Vl({opened:e,transitionDuration:t}){let[n,r]=(0,_.useState)(e),i=(0,_.useRef)(-1),a=Be()?0:t;return(0,_.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 Hl({id:e,transitionProps:t,opened:n,trapFocus:r,closeOnEscape:i,onClose:a,returnFocus:o,handledEscapeEvents:s}){let c=Pe(e),[l,u]=(0,_.useState)(!1),[d,f]=(0,_.useState)(!1),p=Vl({opened:n,transitionDuration:typeof t?.duration==`number`?t?.duration:200});return Fe(`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}),U({opened:n,shouldReturnFocus:r&&o}),{_id:c,titleMounted:l,bodyMounted:d,shouldLockScroll:p,setTitleMounted:u,setBodyMounted:f}}var Ul=function(){return Ul=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},Ul.apply(this,arguments)};function Wl(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 Gl(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 Kl=`right-scroll-bar-position`,ql=`width-before-scroll-bar`,Jl=`with-scroll-bars-hidden`,Yl=`--removed-body-scroll-bar-size`;function Xl(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Zl(e,t){var n=(0,_.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 Ql=typeof window<`u`?_.useLayoutEffect:_.useEffect,$l=new WeakMap;function eu(e,t){var n=Zl(t||null,function(t){return e.forEach(function(e){return Xl(e,t)})});return Ql(function(){var t=$l.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Xl(e,null)}),i.forEach(function(e){r.has(e)||Xl(e,a)})}$l.set(n,e)},[e]),n}function tu(e){return e}function nu(e,t){t===void 0&&(t=tu);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 ru(e){e===void 0&&(e={});var t=nu(null);return t.options=Ul({async:!0,ssr:!1},e),t}var iu=function(e){var t=e.sideCar,n=Wl(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 _.createElement(r,Ul({},n))};iu.isSideCarExport=!0;function au(e,t){return e.useMedium(t),iu}var ou=ru(),su=function(){},cu=_.forwardRef(function(e,t){var n=_.useRef(null),r=_.useState({onScrollCapture:su,onWheelCapture:su,onTouchMoveCapture:su}),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,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,x=Wl(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=f,C=eu([n,t]),w=Ul(Ul({},x),i);return _.createElement(_.Fragment,null,u&&_.createElement(S,{sideCar:ou,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:b}),o?_.cloneElement(_.Children.only(s),Ul(Ul({},w),{ref:C})):_.createElement(y,Ul({},w,{className:c,ref:C}),s))});cu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},cu.classNames={fullWidth:ql,zeroRight:Kl};var lu=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function uu(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=lu();return t&&e.setAttribute(`nonce`,t),e}function du(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function fu(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var pu=function(){var e=0,t=null;return{add:function(n){e==0&&(t=uu())&&(du(t,n),fu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},mu=function(){var e=pu();return function(t,n){_.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},hu=function(){var e=mu();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},gu={left:0,top:0,right:0,gap:0},_u=function(e){return parseInt(e||``,10)||0},vu=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[_u(n),_u(r),_u(i)]},yu=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return gu;var t=vu(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])}},bu=hu(),xu=`data-scroll-locked`,Su=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
3
3
|
.${Jl} {
|
|
4
4
|
overflow: hidden ${r};
|
|
5
5
|
padding-right: ${s}px ${r};
|
|
@@ -39,7 +39,7 @@ import{i as e,n as t,t as n}from"./rolldown-runtime-COiEfhsA.js";(function(){let
|
|
|
39
39
|
`},Cu=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},wu=function(){_.useEffect(function(){return document.body.setAttribute(xu,(Cu()+1).toString()),function(){var e=Cu()-1;e<=0?document.body.removeAttribute(xu):document.body.setAttribute(xu,e.toString())}},[])},Tu=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;wu();var a=_.useMemo(function(){return yu(i)},[i]);return _.createElement(bu,{styles:Su(a,!t,i,n?``:`!important`)})},Eu=!1;if(typeof window<`u`)try{var Du=Object.defineProperty({},"passive",{get:function(){return Eu=!0,!0}});window.addEventListener(`test`,Du,Du),window.removeEventListener(`test`,Du,Du)}catch{Eu=!1}var Ou=Eu?{passive:!1}:!1,ku=function(e){return e.tagName===`TEXTAREA`},Au=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!ku(e)&&n[t]===`visible`)},ju=function(e){return Au(e,`overflowY`)},Mu=function(e){return Au(e,`overflowX`)},Nu=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Iu(e,r)){var i=Lu(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Pu=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Fu=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Iu=function(e,t){return e===`v`?ju(t):Mu(t)},Lu=function(e,t){return e===`v`?Pu(t):Fu(t)},Ru=function(e,t){return e===`h`&&t===`rtl`?-1:1},zu=function(e,t,n,r,i){var a=Ru(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=Lu(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Iu(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},Bu=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Vu=function(e){return[e.deltaX,e.deltaY]},Hu=function(e){return e&&`current`in e?e.current:e},Uu=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Wu=function(e){return`
|
|
40
40
|
.block-interactivity-${e} {pointer-events: none;}
|
|
41
41
|
.allow-interactivity-${e} {pointer-events: all;}
|
|
42
|
-
`},Gu=0,Ku=[];function qu(e){var t=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),i=_.useState(Gu++)[0],a=_.useState(hu)[0],o=_.useRef(e);_.useEffect(function(){o.current=e},[e]),_.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Gl([e.lockRef.current],(e.shards||[]).map(Hu),!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=_.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Bu(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=Nu(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Nu(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 zu(h,t,e,h===`h`?s:c,!0)},[]),c=_.useCallback(function(e){var n=e;if(Ku.length&&Ku[Ku.length-1]===a){var r=`deltaY`in n?Vu(n):Bu(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Uu(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var c=(o.current.shards||[]).map(Hu).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=_.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Ju(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=_.useCallback(function(e){n.current=Bu(e),r.current=void 0},[]),d=_.useCallback(function(t){l(t.type,Vu(t),t.target,s(t,e.lockRef.current))},[]),f=_.useCallback(function(t){l(t.type,Bu(t),t.target,s(t,e.lockRef.current))},[]);_.useEffect(function(){return Ku.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,Ou),document.addEventListener(`touchmove`,c,Ou),document.addEventListener(`touchstart`,u,Ou),function(){Ku=Ku.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Ou),document.removeEventListener(`touchmove`,c,Ou),document.removeEventListener(`touchstart`,u,Ou)}},[]);var p=e.removeScrollBar,m=e.inert;return _.createElement(_.Fragment,null,m?_.createElement(a,{styles:Wu(i)}):null,p?_.createElement(Tu,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ju(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Yu=au(ou,qu),Xu=_.forwardRef(function(e,t){return _.createElement(cu,Ul({},e,{ref:t,sideCar:Yu}))});Xu.classNames=cu.classNames;function Zu({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:D,shouldLockScroll:O,setTitleMounted:k,setBodyMounted:j}=Hl({id:i,transitionProps:a,opened:n,trapFocus:c,closeOnEscape:l,onClose:r,returnFocus:u,handledEscapeEvents:S}),{key:M,...N}=x||{};return(0,G.jsx)(Hc,{...p,withinPortal:f,children:(0,G.jsx)(zl,{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:D,setTitleMounted:k,setBodyMounted:j,trapFocus:c,closeOnEscape:l,zIndex:g,unstyled:b},children:(0,G.jsx)(Xu,{enabled:O&&m,...N,children:(0,G.jsx)(J,{...C,id:w,__vars:{...y,"--mb-z-index":(g||E(`modal`)).toString(),"--mb-shadow":P(_),"--mb-padding":A(v)},children:h})},M)})})}Zu.displayName=`@mantine/core/ModalBase`;function Qu(){let e=Bl();return(0,_.useEffect)(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var $u={title:`m_615af6c9`,header:`m_b5489c3c`,inner:`m_60c222c7`,content:`m_fd1ab0aa`,close:`m_606cb269`,body:`m_5df29311`};function ed({className:e,...t}){let n=Qu(),r=Bl();return(0,G.jsx)(J,{id:n,className:wt({[$u.body]:!r.unstyled},e),...t})}ed.displayName=`@mantine/core/ModalBaseBody`;function td({className:e,onClick:t,...n}){let r=Bl();return(0,G.jsx)(Nl,{...n,onClick:e=>{r.onClose(),t?.(e)},className:wt({[$u.close]:!r.unstyled},e),unstyled:r.unstyled})}td.displayName=`@mantine/core/ModalBaseCloseButton`;function nd({transitionProps:e,className:t,innerProps:n,onKeyDown:r,style:i,ref:a,...o}){let s=Bl();return(0,G.jsx)(Jc,{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:wt({[$u.inner]:!s.unstyled},n.className),children:(0,G.jsx)(tl,{active:s.opened&&s.trapFocus,innerRef:a,children:(0,G.jsx)(Cc,{...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:wt({[$u.content]:!s.unstyled},t),unstyled:s.unstyled,children:o.children})})})})}nd.displayName=`@mantine/core/ModalBaseContent`;function rd({className:e,...t}){let n=Bl();return(0,G.jsx)(J,{component:`header`,className:wt({[$u.header]:!n.unstyled},e),...t})}rd.displayName=`@mantine/core/ModalBaseHeader`;var id={duration:200,timingFunction:`ease`,transition:`fade`};function ad(e){let t=Bl();return{...id,...t.transitionProps,...e}}function od({onClick:e,transitionProps:t,style:n,visible:r,...i}){let a=Bl(),o=ad(t);return(0,G.jsx)(Jc,{mounted:r===void 0?a.opened:r,...o,transition:`fade`,children:t=>(0,G.jsx)(Ic,{fixed:!0,style:[n,t],zIndex:a.zIndex,unstyled:a.unstyled,onClick:t=>{e?.(t),a.closeOnClickOutside&&a.onClose()},...i})})}od.displayName=`@mantine/core/ModalBaseOverlay`;function sd(){let e=Bl();return(0,_.useEffect)(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}function cd({className:e,...t}){let n=sd(),r=Bl();return(0,G.jsx)(J,{component:`h2`,className:wt({[$u.title]:!r.unstyled},e),id:n,...t})}cd.displayName=`@mantine/core/ModalBaseTitle`;function ld({children:e}){return(0,G.jsx)(G.Fragment,{children:e})}var ud=(0,_.createContext)({size:`sm`}),dd=q(e=>{let t=K(`InputClearButton`,null,e),{size:n,variant:r,vars:i,classNames:a,styles:o,...s}=t,c=(0,_.use)(ud),{resolvedClassNames:l,resolvedStyles:u}=Un({classNames:a,styles:o,props:t});return(0,G.jsx)(Nl,{variant:r||`transparent`,size:n||c?.size||`sm`,classNames:l,styles:u,__staticSelector:`InputClearButton`,style:{pointerEvents:`all`,background:`var(--input-bg)`,...s.style},...s})});dd.displayName=`@mantine/core/InputClearButton`;var fd={xs:7,sm:8,md:10,lg:12,xl:15};function pd({__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:fd[i]},children:[o,n||r]}):n===null?null:n||o||r}var md=(0,_.createContext)({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),hd={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`},gd=St((e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${M(t)} - ${d(2)})`}})),_d=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,_.use)(md),p=ir({name:[`InputWrapper`,c],props:t,classes:hd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,rootSelector:`description`,vars:s,varsResolver:gd}),m=l&&f?.getStyles||p;return(0,G.jsx)(J,{component:`p`,...m(`description`,f?.getStyles?{className:r,style:i}:void 0),...d})});_d.classes=hd,_d.varsResolver=gd,_d.displayName=`@mantine/core/InputDescription`;var vd=St((e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${M(t)} - ${d(2)})`}})),yd=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=ir({name:[`InputWrapper`,l],props:t,classes:hd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,rootSelector:`error`,vars:s,varsResolver:vd}),p=(0,_.use)(md),m=u&&p?.getStyles||f;return(0,G.jsx)(J,{component:`p`,...m(`error`,p?.getStyles?{className:r,style:i}:void 0),...d})});yd.classes=hd,yd.varsResolver=vd,yd.displayName=`@mantine/core/InputError`;var bd={labelElement:`label`},xd=St((e,{size:t})=>({label:{"--input-label-size":M(t),"--input-asterisk-color":void 0}})),Sd=q(e=>{let t=K(`InputLabel`,bd,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,v=ir({name:[`InputWrapper`,p],props:t,classes:hd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,rootSelector:`label`,vars:s,varsResolver:xd}),y=(0,_.use)(md),b=y?.getStyles||v,x=g.component||c,S=typeof x!=`string`||x===`label`;return(0,G.jsxs)(J,{...b(`label`,y?.getStyles?{className:r,style:i}:void 0),component:c,htmlFor:S?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`,{...b(`required`),"aria-hidden":!0,children:` *`})]})});Sd.classes=hd,Sd.varsResolver=xd,Sd.displayName=`@mantine/core/InputLabel`;var Cd=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=ir({name:[`InputPlaceholder`,c],props:t,classes:hd,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})});Cd.classes=hd,Cd.displayName=`@mantine/core/InputPlaceholder`;var wd=St((e,{size:t})=>({success:{"--input-success-size":t===void 0?void 0:`calc(${M(t)} - ${d(2)})`}})),Td=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=ir({name:[`InputWrapper`,l],props:t,classes:hd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,rootSelector:`success`,vars:s,varsResolver:wd}),p=(0,_.use)(md),m=u&&p?.getStyles||f;return(0,G.jsx)(J,{component:`p`,...m(`success`,p?.getStyles?{className:r,style:i}:void 0),...d})});Td.classes=hd,Td.varsResolver=wd,Td.displayName=`@mantine/core/InputSuccess`;function Ed(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 Dd={labelElement:`label`,inputContainer:e=>e,inputWrapperOrder:[`label`,`description`,`input`,`error`]},Od=St((e,{size:t})=>({label:{"--input-label-size":M(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${M(t)} - ${d(2)})`},success:{"--input-success-size":t===void 0?void 0:`calc(${M(t)} - ${d(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${M(t)} - ${d(2)})`}})),kd=q(e=>{let t=K(`InputWrapper`,Dd,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:v,descriptionProps:y,errorProps:b,successProps:x,labelElement:S,children:C,withAsterisk:w,id:T,required:E,__stylesApiProps:D,mod:O,attributes:k,...A}=t,j=ir({name:[`InputWrapper`,u],props:D||t,classes:hd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:k,vars:s,varsResolver:Od}),M={size:c,variant:l,__staticSelector:u},N=Pe(T),P=typeof w==`boolean`?w:E,F=b?.id||`${N}-error`,I=x?.id||`${N}-success`,L=y?.id||`${N}-description`,R=N,z=!!m&&typeof m!=`boolean`,B=!!h&&typeof h!=`boolean`&&!m,ee=!!g,te=z&&f.includes(`error`),ne=B&&f.includes(`error`),re=ee&&f.includes(`description`),ie=`${te?F:``} ${ne?I:``} ${re?L:``}`,ae=ie.trim().length>0?ie.trim():void 0,oe=v?.id||`${N}-label`,se=p&&(0,G.jsx)(Sd,{labelElement:S,id:oe,htmlFor:R,required:P,...M,...v,children:p},`label`),V=ee&&(0,G.jsx)(_d,{...y,...M,size:y?.size||M.size,id:y?.id||L,children:g},`description`),H=(0,G.jsx)(_.Fragment,{children:d(C)},`input`),ce=z&&(0,_.createElement)(yd,{...b,...M,size:b?.size||M.size,key:`error`,id:b?.id||F},m),le=B&&(0,_.createElement)(Td,{...x,...M,size:x?.size||M.size,key:`success`,id:x?.id||I},h),U=f.map(e=>{switch(e){case`label`:return se;case`input`:return H;case`description`:return V;case`error`:return ce||le;default:return null}});return(0,G.jsx)(md,{value:{getStyles:j,describedBy:ae,inputId:R,labelId:se&&f.includes(`label`)?oe:void 0,...Ed(f,{hasDescription:ee,hasError:z||B})},children:(0,G.jsx)(J,{variant:l,size:c,mod:[{error:!!m,success:!!h&&!m},O],id:S===`label`?void 0:T,...j(`root`),...A,children:U})})});kd.classes=hd,kd.varsResolver=Od,kd.displayName=`@mantine/core/InputWrapper`;var Ad={variant:`default`,leftSectionPointerEvents:`none`,rightSectionPointerEvents:`none`,withAria:!0,withErrorStyles:!0,withSuccessStyles:!0,size:`sm`,loading:!1,loadingPosition:`right`},jd=St((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":k(t.size,`input-height`),"--input-fz":M(t.size),"--input-radius":t.radius===void 0?void 0:j(t.radius),"--input-left-section-width":t.leftSectionWidth===void 0?void 0:d(t.leftSectionWidth),"--input-right-section-width":t.rightSectionWidth===void 0?void 0:d(t.rightSectionWidth),"--input-padding-y":t.multiline?k(t.size,`input-padding-y`):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}})),Md=Vr(e=>{let t=K(`Input`,Ad,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:v,rightSection:y,rightSectionProps:b,rightSectionWidth:x,rightSectionPointerEvents:S,leftSectionPointerEvents:C,variant:w,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:B,loadingPosition:ee,__bottomSection:te,__bottomSectionProps:ne,rootRef:re,dir:ie,...ae}=t,{styleProps:oe,rest:se}=fr(ae),V=(0,_.use)(md),H={offsetBottom:V?.offsetBottom,offsetTop:V?.offsetTop},ce=ir({name:[`Input`,c],props:l||t,classes:hd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:F,stylesCtx:H,rootSelector:`wrapper`,vars:T,varsResolver:jd}),le=A?{required:s,disabled:m,"aria-invalid":f?!0:void 0,"aria-describedby":V?.describedBy,id:V?.inputId||k}:{},U=B?(0,G.jsx)(bl,{size:ee===`left`?`calc(var(--input-left-section-size) / 2)`:`calc(var(--input-right-section-size) / 2)`}):null,W=B&&ee===`left`?U:h,ue=pd({__clearable:L,__clearSection:I,rightSection:B&&ee===`right`?U:y,__defaultRightSection:z,size:u,__clearSectionMode:R});return(0,G.jsx)(ud,{value:{size:u||`sm`},children:(0,G.jsxs)(J,{ref:re,dir:ie,...ce(`wrapper`),...oe,...d,mod:[{error:!!f&&j,success:!!p&&!f&&M,pointer:E,disabled:m,multiline:D,withRightSection:!!ue,withLeftSection:!!W,withBottomSection:!!te},N],variant:w,size:u,children:[W&&(0,G.jsx)(`div`,{...g,"data-position":`left`,...ce(`section`,{className:g?.className,style:g?.style}),children:W}),(0,G.jsx)(J,{component:`input`,...se,...le,required:s,mod:{disabled:m,error:!!f&&j,success:!!p&&!f&&M},variant:w,__size:P,...ce(`input`)}),te&&(0,G.jsx)(`div`,{...ne,...ce(`bottomSection`,{className:ne?.className,style:ne?.style}),children:te}),ue&&(0,G.jsx)(`div`,{...b,"data-position":`right`,...ce(`section`,{className:b?.className,style:b?.style}),children:ue})]})})});Md.classes=hd,Md.varsResolver=jd,Md.Wrapper=kd,Md.Label=Sd,Md.Error=yd,Md.Success=Td,Md.Description=_d,Md.Placeholder=Cd,Md.ClearButton=dd,Md.displayName=`@mantine/core/Input`;function Nd(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}=fr(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 Pd={__staticSelector:`InputBase`,withAria:!0,size:`sm`},Fd=Vr(e=>{let{inputProps:t,wrapperProps:n,...r}=Nd(`InputBase`,Pd,e);return(0,G.jsx)(Md.Wrapper,{...n,children:(0,G.jsx)(Md,{...t,...r})})});Fd.classes={...Md.classes,...Md.Wrapper.classes},Fd.displayName=`@mantine/core/InputBase`;function Id(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 Ld({target:e,parent:t,ref:n,displayAfterTransitionEnd:r,onTransitionStart:i,onTransitionEnd:a}){let o=(0,_.useRef)(-1),s=(0,_.useRef)(e),[c,l]=(0,_.useState)(!1),[u,d]=(0,_.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=fi(s.borderTopWidth)+fi(c.borderTopWidth),u=fi(s.borderLeftWidth)+fi(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,_.useRef)(null),h=(0,_.useRef)(null);return(0,_.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,_.useEffect)(()=>{if(t){let e=e=>{Id(e.target,t)&&(p(),d(!1))};return t.addEventListener(`transitionend`,e),()=>{t.removeEventListener(`transitionend`,e)}}},[t]),(0,_.useEffect)(()=>{if(n.current&&a){let e=e=>{e.propertyName===`transform`&&a()};return n.current.addEventListener(`transitionend`,e),()=>{n.current?.removeEventListener(`transitionend`,e)}}},[a]),We(()=>{ht()!==`test`&&l(!0)},20,{autoInvoke:!0}),Ke(e=>{e.forEach(e=>{e.type===`attributes`&&e.attributeName===`dir`&&p()})},{attributes:!0,attributeFilter:[`dir`]},()=>document.documentElement),{initialized:c,hidden:u}}var Rd={root:`m_96b553a6`},zd=St((e,{transitionDuration:t},{shouldReduceMotion:n})=>({root:{"--transition-duration":e.respectReducedMotion&&n?`0ms`:typeof t==`number`?`${t}ms`:t||`150ms`}})),Bd=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,...v}=t,y=ir({name:`FloatingIndicator`,classes:Rd,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:zd,stylesCtx:{shouldReduceMotion:Be()}}),b=(0,_.useRef)(null),{initialized:x,hidden:S}=Ld({target:c,parent:l,ref:b,displayAfterTransitionEnd:f,onTransitionStart:p,onTransitionEnd:m}),C=Re(g,b);return!c||!l?null:(0,G.jsx)(J,{ref:C,mod:[{initialized:x,hidden:S},d],...y(`root`),...v})});Bd.displayName=`@mantine/core/FloatingIndicator`,Bd.classes=Rd,Bd.varsResolver=zd;function Vd({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:d(t),height:d(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`})})}Vd.displayName=`@mantine/core/AccordionChevron`;var Hd={root:`m_66836ed3`,wrapper:`m_a5d60502`,body:`m_667c2793`,title:`m_6a03f287`,label:`m_698f4f23`,icon:`m_667f2a6a`,message:`m_7fa78076`,closeButton:`m_87f54839`},Ud=St((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:j(t),"--alert-bg":n||r?a.background:void 0,"--alert-color":a.color,"--alert-bd":n||r?a.border:void 0}}}),Wd=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=ir({name:`Alert`,classes:Hd,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:b,vars:s,varsResolver:Ud}),C=Pe(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)(Nl,{...S(`closeButton`),onClick:h,variant:`transparent`,size:16,iconSize:16,"aria-label":g,unstyled:o})]})})});Wd.classes=Hd,Wd.varsResolver=Ud,Wd.displayName=`@mantine/core/Alert`;var Gd={root:`m_b6d8b162`};function Kd(e){if(e===`start`)return`start`;if(e===`end`||e)return`end`}var qd={inherit:!1},Jd=St((e,{variant:t,lineClamp:n,gradient:r,size:i,textWrap:a})=>({root:{"--text-fz":M(i),"--text-lh":N(i),"--text-gradient":t===`gradient`?Gt(r,e):void 0,"--text-line-clamp":typeof n==`number`?n.toString():void 0,"--text-text-wrap":a}})),Y=Vr(e=>{let t=K(`Text`,qd,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=ir({name:[`Text`,l],props:t,classes:Gd,className:d,style:f,classNames:p,styles:m,unstyled:h,attributes:y,vars:u,varsResolver:Jd});return(0,G.jsx)(J,{...x(`root`,{focusable:!0}),component:s?`span`:`p`,variant:g,mod:[{truncate:Kd(r),lineClamp:typeof n==`number`,inline:i,inherit:a},_],size:v,...b})});Y.classes=Gd,Y.varsResolver=Jd,Y.displayName=`@mantine/core/Text`;var Yd={root:`m_849cf0da`},Xd={underline:`hover`},Zd=Vr(e=>{let{underline:t,className:n,unstyled:r,mod:i,...a}=K(`Anchor`,Xd,e);return(0,G.jsx)(Y,{component:`a`,className:wt({[Yd.root]:!r},n),...a,mod:[{underline:t},i],__staticSelector:`Anchor`,unstyled:r})});Zd.classes=Yd,Zd.displayName=`@mantine/core/Anchor`;var[Qd,$d]=y(`AppShell was not found in tree`);function ef({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 tf(e,t){return t!==void 0&&e<t}var nf={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}},rf=Object.keys(nf);function af({section:e,deltaX:t,deltaY:n,dir:r}){let i=nf[e];return i.axis===`vertical`?n*i.sign:t*i.sign*(r===`rtl`?-1:1)}function of(e,t){if(!t)return 0;let n=window.getComputedStyle(e).getPropertyValue(t),r=Number.parseFloat(n);return Number.isFinite(r)?r:0}var sf={navbar:`Resize navbar`,aside:`Resize aside`,header:`Resize header`,footer:`Resize footer`},cf=10,lf=50,uf={ArrowRight:{deltaX:1,deltaY:0},ArrowLeft:{deltaX:-1,deltaY:0},ArrowDown:{deltaX:0,deltaY:1},ArrowUp:{deltaX:0,deltaY:-1}};function df(e,t){t?document.body.style.setProperty(e,t):document.body.style.removeProperty(e)}function ff({section:e,sectionId:t}){let n=$d(),r=n.resize,i=(0,_.useRef)(null),a=(0,_.useRef)({startSize:0,startX:0,startY:0,size:0,moved:!1}),o=(0,_.useRef)(null),s=(0,_.useRef)(null),c=(0,_.useRef)(null),{dir:l}=Yr(),u=Dn(),f=nf[e],p=r?.options[e]??{},m=()=>f.axis===`horizontal`?window.innerWidth:window.innerHeight,[h,g]=(0,_.useState)(0),[v,y]=(0,_.useState)(void 0),b=()=>m()/u.scale,x=e=>{let t=e.getBoundingClientRect();return((f.axis===`horizontal`?t.width:t.height)-of(e,f.safeAreaVariable))/u.scale},S=t=>{let r=n.rootRef.current;if(!r)return;let i=d(t);r.style.setProperty(f.sizeVariable,i),n.resizeOffsets[e]&&r.style.setProperty(f.offsetVariable,i),n.mode===`static`&&f.gridWidthVariable&&r.style.setProperty(f.gridWidthVariable,i)},C=()=>{let e=n.rootRef.current;e&&(e.style.removeProperty(f.sizeVariable),e.style.removeProperty(f.offsetVariable),f.gridWidthVariable&&e.style.removeProperty(f.gridWidthVariable))},w=()=>{s.current?.abort(),s.current=null,o.current=null;let e=c.current;c.current=null,e&&(df(`user-select`,e.userSelect),df(`-webkit-user-select`,e.webkitUserSelect),df(`cursor`,e.cursor))},T=()=>{r?.reportCollapse(e,tf(a.current.startSize,p.collapseThreshold)),r?.endResize(e,null)},E=t=>{if(t.pointerId!==o.current)return;a.current.moved=!0;let n=af({section:e,deltaX:t.clientX-a.current.startX,deltaY:t.clientY-a.current.startY,dir:l})/u.scale,s=a.current.startSize+n,c=ef({size:s,min:p.min,max:p.max,viewportMax:b()});a.current.size=c,S(c),i.current?.setAttribute(`aria-valuenow`,String(Math.round(c))),r?.previewResize(e,c),r?.reportCollapse(e,tf(s,p.collapseThreshold))},D=t=>{t.pointerId===o.current&&(w(),a.current.moved?r?.endResize(e,a.current.size):r?.endResize(e,null))},O=e=>{e.pointerId===o.current&&(w(),C(),T())},k=e=>{e.key===`Escape`&&(e.preventDefault(),w(),C(),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?x(n):0},j=t=>{r?.initCollapse(e,tf(A(),p.collapseThreshold)),r?.reportCollapse(e,tf(t,p.collapseThreshold)),r?.endResize(e,ef({size:t,min:p.min,max:p.max,viewportMax:b()}))},M=t=>{let n=t.shiftKey?lf:cf;if(t.key===`Home`){t.preventDefault(),j(p.min??0);return}if(t.key===`End`){t.preventDefault(),j(p.max??b());return}let r=uf[t.key];if(!r)return;let i=af({section:e,...r,dir:l});i!==0&&(t.preventDefault(),j(A()+i*n))},N=()=>{C(),r?.[e].reset()},P=t=>{if(t.button!==0||s.current!==null)return;let n=i.current?.parentElement;if(!n)return;let l=x(n);a.current={startSize:l,startX:t.clientX,startY:t.clientY,size:l,moved:!1},o.current=t.pointerId,r?.initCollapse(e,tf(l,p.collapseThreshold));let u=new AbortController;s.current=u;let{signal:d}=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`,f.axis===`horizontal`?`col-resize`:`row-resize`),r?.startResize(e),document.addEventListener(`pointermove`,E,{signal:d}),document.addEventListener(`pointerup`,D,{signal:d}),document.addEventListener(`pointercancel`,O,{signal:d}),document.addEventListener(`keydown`,k,{signal:d})};if(H(()=>{r&&r.activeSection!==e&&C()},[r?.activeSection,r?.[e].size]),H(()=>{g(m());let e=()=>g(m());return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[f.axis]),H(()=>{r?.[e].size===void 0&&y(A())},[r?.[e].size,h]),H(()=>()=>{let e=s.current!==null;w(),C(),e&&T()},[]),!r?.[e].enabled)return null;let F=h/u.scale,I=Math.min(p.max??F,F),L=r[e].size,R=L!==void 0&&h>0?Math.min(L,F):L??v;return(0,G.jsx)(J,{ref:i,role:`separator`,tabIndex:0,"aria-label":p.label??sf[e],"aria-controls":t,"aria-orientation":f.orientation,"aria-valuemin":p.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:f.orientation,active:r[e].active},...n.getStyles(`resizeHandle`)})}ff.displayName=`@mantine/core/AppShellResizeHandle`;var pf={root:`m_89ab340`,navbar:`m_45252eee`,aside:`m_9cdde9a`,header:`m_3b16f56b`,main:`m_8983817`,footer:`m_3840c879`,section:`m_6dcfc7c7`,resizeHandle:`m_3b25945a`},mf=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=$d(),f=Pe(u.id);if(d.disabled)return null;let p=d.resize?.aside.enabled??!1,m=d.getStyles(`aside`,{className:wt({[Xu.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)(ff,{section:`aside`,sectionId:f})]})});mf.classes=pf,mf.displayName=`@mantine/core/AppShellAside`;var hf=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=$d(),f=Pe(u.id);if(d.disabled)return null;let p=d.resize?.footer.enabled??!1,m=d.getStyles(`footer`,{className:wt({[Xu.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)(ff,{section:`footer`,sectionId:f})]})});hf.classes=pf,hf.displayName=`@mantine/core/AppShellFooter`;var gf=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=$d(),f=Pe(u.id);if(d.disabled)return null;let p=d.resize?.header.enabled??!1,m=d.getStyles(`header`,{className:wt({[Xu.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)(ff,{section:`header`,sectionId:f})]})});gf.classes=pf,gf.displayName=`@mantine/core/AppShellHeader`;var _f=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`AppShellMain`,null,e),s=$d();return(0,G.jsx)(J,{component:`main`,...s.getStyles(`main`,{className:n,style:r,classNames:t,styles:i}),...o})});_f.classes=pf,_f.displayName=`@mantine/core/AppShellMain`;var vf=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=$d(),f=Pe(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)(ff,{section:`navbar`,sectionId:f})]})});vf.classes=pf,vf.displayName=`@mantine/core/AppShellNavbar`;var yf=Vr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,grow:o,mod:s,...c}=K(`AppShellSection`,null,e),l=$d();return(0,G.jsx)(J,{mod:[{grow:o},s],...l.getStyles(`section`,{className:n,style:r,classNames:t,styles:i}),...c})});yf.classes=pf,yf.displayName=`@mantine/core/AppShellSection`;function bf(e){return typeof e==`object`?e.base:e}function xf(e,t){return`min(${d(e)}, ${t===`horizontal`?`100vw`:`100dvh`})`}function Sf(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 Cf(e){return!(typeof e!=`object`||!e||Object.keys(e).length===1&&`base`in e)}function wf({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,aside:i,theme:a,mode:o,resizedSize:s,resizable:c}){let l=i?.width,u=`translateX(var(--app-shell-aside-width))`,f=`translateX(calc(var(--app-shell-aside-width) * -1))`;if(i?.breakpoint!==void 0&&!i?.collapsed?.mobile&&(n[i?.breakpoint]=n[i?.breakpoint]||{},o===`fixed`?(n[i?.breakpoint][`--app-shell-aside-width`]=`100%`,n[i?.breakpoint][`--app-shell-aside-offset`]=`0px`):(n[i?.breakpoint][`--app-shell-aside-width`]=`0px`,n[i?.breakpoint][`--app-shell-aside-offset`]=`0px`),c&&(n[i.breakpoint][`--app-shell-aside-resize-handle-display`]=`none`)),s!==void 0){let t=xf(s,`horizontal`);e[`--app-shell-aside-width`]=t,e[`--app-shell-aside-offset`]=t,o===`static`&&(e[`--app-shell-aside-grid-width`]=t)}else{if(Sf(l)){let t=d(bf(l));e[`--app-shell-aside-width`]=t,e[`--app-shell-aside-offset`]=t}Cf(l)&&(l.base!==void 0&&(e[`--app-shell-aside-width`]=d(l.base),e[`--app-shell-aside-offset`]=d(l.base)),r(l).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-aside-width`]=d(l[e]),t[e][`--app-shell-aside-offset`]=d(l[e]))}))}if(i?.breakpoint!==void 0&&o===`static`&&(t[i.breakpoint]=t[i.breakpoint]||{},t[i.breakpoint][`--app-shell-aside-position`]=`sticky`,t[i.breakpoint][`--app-shell-aside-grid-row`]=`2`,t[i.breakpoint][`--app-shell-aside-grid-column`]=`3`,t[i.breakpoint][`--app-shell-main-column-end`]=`3`),i?.collapsed?.desktop){let e=i.breakpoint;t[e]=t[e]||{},t[e][`--app-shell-aside-transform`]=u,t[e][`--app-shell-aside-transform-rtl`]=f,o===`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`,c&&(t[e][`--app-shell-aside-resize-handle-display`]=`none`)}if(i?.collapsed?.mobile){let e=I(i.breakpoint,a.breakpoints)-.1;n[e]=n[e]||{},o===`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`]=u,n[e][`--app-shell-aside-transform-rtl`]=f,n[e][`--app-shell-aside-scroll-locked-visibility`]=`hidden`,c&&(n[e][`--app-shell-aside-resize-handle-display`]=`none`)}}function Tf({baseStyles:e,minMediaStyles:t,footer:n,mode:i,resizedSize:a,resizable:o}){let s=n?.height,c=i===`static`?!0:n?.offset??!0;if(i===`static`&&n&&(e[`--app-shell-footer-position`]=`sticky`,e[`--app-shell-footer-grid-column`]=`1 / -1`,e[`--app-shell-footer-grid-row`]=`3`),a!==void 0){let t=xf(a,`vertical`);e[`--app-shell-footer-height`]=t,c&&(e[`--app-shell-footer-offset`]=t)}else{if(Sf(s)){let t=d(bf(s));e[`--app-shell-footer-height`]=t,c&&(e[`--app-shell-footer-offset`]=t)}Cf(s)&&(s.base!==void 0&&(e[`--app-shell-footer-height`]=d(s.base),c&&(e[`--app-shell-footer-offset`]=d(s.base))),r(s).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-footer-height`]=d(s[e]),c&&(t[e][`--app-shell-footer-offset`]=d(s[e])))}))}n?.collapsed&&(e[`--app-shell-footer-transform`]=`translateY(var(--app-shell-footer-height))`,i===`fixed`&&(e[`--app-shell-footer-offset`]=`0px !important`),o&&(e[`--app-shell-footer-resize-handle-display`]=`none`))}function Ef({baseStyles:e,minMediaStyles:t,header:n,mode:i,resizedSize:a,resizable:o}){let s=n?.height,c=i===`static`?!0:n?.offset??!0;if(i===`static`&&n&&(e[`--app-shell-header-position`]=`sticky`,e[`--app-shell-header-grid-column`]=`1 / -1`,e[`--app-shell-header-grid-row`]=`1`),a!==void 0){let t=xf(a,`vertical`);e[`--app-shell-header-height`]=t,c&&(e[`--app-shell-header-offset`]=t)}else{if(Sf(s)){let t=d(bf(s));e[`--app-shell-header-height`]=t,c&&(e[`--app-shell-header-offset`]=t)}Cf(s)&&(s.base!==void 0&&(e[`--app-shell-header-height`]=d(s.base),c&&(e[`--app-shell-header-offset`]=d(s.base))),r(s).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-header-height`]=d(s[e]),c&&(t[e][`--app-shell-header-offset`]=d(s[e])))}))}n?.collapsed&&(e[`--app-shell-header-transform`]=`translateY(calc(var(--app-shell-header-height) * -1))`,i===`fixed`&&(e[`--app-shell-header-offset`]=`0px !important`),o&&(e[`--app-shell-header-resize-handle-display`]=`none`))}function Df({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,navbar:i,theme:a,mode:o,resizedSize:s,resizable:c}){let l=i?.width,u=`translateX(calc(var(--app-shell-navbar-width) * -1))`,f=`translateX(var(--app-shell-navbar-width))`;if(i?.breakpoint!==void 0&&!i?.collapsed?.mobile&&(n[i?.breakpoint]=n[i?.breakpoint]||{},n[i?.breakpoint][`--app-shell-navbar-offset`]=`0px`,n[i?.breakpoint][`--app-shell-navbar-width`]=`100%`,o===`static`&&(n[i?.breakpoint][`--app-shell-navbar-grid-width`]=`0px`),c&&(n[i.breakpoint][`--app-shell-navbar-resize-handle-display`]=`none`)),s!==void 0){let t=xf(s,`horizontal`);e[`--app-shell-navbar-width`]=t,e[`--app-shell-navbar-offset`]=t,o===`static`&&(e[`--app-shell-navbar-grid-width`]=t)}else{if(Sf(l)){let t=d(bf(l));e[`--app-shell-navbar-width`]=t,e[`--app-shell-navbar-offset`]=t,o===`static`&&(e[`--app-shell-navbar-grid-width`]=t)}Cf(l)&&(l.base!==void 0&&(e[`--app-shell-navbar-width`]=d(l.base),e[`--app-shell-navbar-offset`]=d(l.base),o===`static`&&(e[`--app-shell-navbar-grid-width`]=d(l.base))),r(l).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-navbar-width`]=d(l[e]),t[e][`--app-shell-navbar-offset`]=d(l[e]),o===`static`&&(t[e][`--app-shell-navbar-grid-width`]=d(l[e])))}))}if(i?.breakpoint!==void 0&&o===`static`&&(t[i.breakpoint]=t[i.breakpoint]||{},t[i.breakpoint][`--app-shell-navbar-position`]=`sticky`,t[i.breakpoint][`--app-shell-navbar-grid-row`]=`2`,t[i.breakpoint][`--app-shell-navbar-grid-column`]=`1`,t[i.breakpoint][`--app-shell-main-column-start`]=`2`),i?.collapsed?.desktop){let e=i.breakpoint;t[e]=t[e]||{},t[e][`--app-shell-navbar-transform`]=u,t[e][`--app-shell-navbar-transform-rtl`]=f,o===`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`),c&&(t[e][`--app-shell-navbar-resize-handle-display`]=`none`)}if(i?.collapsed?.mobile){let e=I(i.breakpoint,a.breakpoints)-.1;n[e]=n[e]||{},n[e][`--app-shell-navbar-width`]=`100%`,n[e][`--app-shell-navbar-offset`]=`0px`,o===`static`&&(n[e][`--app-shell-navbar-grid-width`]=`0px`),n[e][`--app-shell-navbar-transform`]=u,n[e][`--app-shell-navbar-transform-rtl`]=f,c&&(n[e][`--app-shell-navbar-resize-handle-display`]=`none`)}}function Of(e){return Number(e)===0?`0px`:A(e)}function kf({padding:e,baseStyles:t,minMediaStyles:n}){Sf(e)&&(t[`--app-shell-padding`]=Of(bf(e))),Cf(e)&&(e.base&&(t[`--app-shell-padding`]=Of(e.base)),r(e).forEach(t=>{t!==`base`&&(n[t]=n[t]||{},n[t][`--app-shell-padding`]=Of(e[t]))}))}function Af({navbar:e,header:t,footer:n,aside:i,padding:a,theme:o,mode:s,resize:c}){let l={},u={},d={};s===`static`&&(d[`--app-shell-main-grid-column`]=`1 / -1`,d[`--app-shell-main-grid-row`]=`2`),Df({baseStyles:d,minMediaStyles:l,maxMediaStyles:u,navbar:e,theme:o,mode:s,resizedSize:c?.sizes.navbar,resizable:c?.enabled.navbar}),wf({baseStyles:d,minMediaStyles:l,maxMediaStyles:u,aside:i,theme:o,mode:s,resizedSize:c?.sizes.aside,resizable:c?.enabled.aside}),Ef({baseStyles:d,minMediaStyles:l,header:t,mode:s,resizedSize:c?.sizes.header,resizable:c?.enabled.header}),Tf({baseStyles:d,minMediaStyles:l,footer:n,mode:s,resizedSize:c?.sizes.footer,resizable:c?.enabled.footer}),kf({baseStyles:d,minMediaStyles:l,padding:a});let p=L(r(l),o.breakpoints).map(e=>({query:`(min-width: ${f(e.px)})`,styles:l[e.value]})),m=L(r(u),o.breakpoints).map(e=>({query:`(max-width: ${f(e.px)})`,styles:u[e.value]}));return{baseStyles:d,media:[...p,...m]}}function jf({navbar:e,header:t,aside:n,footer:r,padding:i,mode:a,selector:o,resize:s}){let c=Dn(),l=en(),{media:u,baseStyles:d}=Af({navbar:e,header:t,footer:r,aside:n,padding:i,theme:c,mode:a,resize:s});return(0,G.jsx)(lr,{media:u,styles:d,selector:o||l.cssVariablesSelector})}function Mf(e){return e>=128||e===45||e===95||e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function Nf(e){return e>=48&&e<=57}function Pf(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&&Nf(r)||n===1&&Nf(r)&&e.charCodeAt(0)===45?t+=`\\${r.toString(16)} `:n===0&&e.length===1&&r===45?t+=`\\${i}`:Mf(r)?t+=i:t+=`\\${i}`}return t}function Ff({transitionDuration:e,disabled:t,resizeKey:n}){let[r,i]=(0,_.useState)(!0),[a,o]=(0,_.useState)({key:n,active:!1}),s=(0,_.useRef)(-1),c=(0,_.useRef)(-1);return a.key!==n&&o({key:n,active:!0}),(0,_.useEffect)(()=>{if(!a.active)return;let t=window.setTimeout(()=>(0,_.startTransition)(()=>{o(e=>({...e,active:!1}))}),e||0);return()=>window.clearTimeout(t)},[a,e]),Fe(`resize`,()=>{i(!0),clearTimeout(s.current),s.current=window.setTimeout(()=>(0,_.startTransition)(()=>{i(!1)}),200)}),H(()=>{i(!0),clearTimeout(c.current),c.current=window.setTimeout(()=>(0,_.startTransition)(()=>{i(!1)}),e||0)},[t,e]),r||a.active}var If={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:`ease`,zIndex:E(`app`),mode:`fixed`},Lf=St((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}})),Rf=q(e=>{let t=K(`AppShell`,If,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:v,footer:y,offsetScrollbars:b=!0,mode:x,mod:S,attributes:C,id:w,resize:T,ref:E,...D}=t,O=ir({name:`AppShell`,classes:pf,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:C,vars:s,varsResolver:Lf}),k=Ff({disabled:g,transitionDuration:d,resizeKey:T?rf.map(e=>T.sizes[e]).join(`|`):void 0}),A=Pe(w),j=(0,_.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:x===`static`?!0:p?.offset??!0,footer:x===`static`?!0:y?.offset??!0};return(0,G.jsxs)(Qd,{value:{getStyles:O,withBorder:l,zIndex:m,disabled:g,offsetScrollbars:b,mode:x,resize:T,rootRef:j,resizeOffsets:N},children:[(0,G.jsx)(jf,{navbar:c,header:p,aside:v,footer:y,padding:u,mode:x,resize:M,selector:T||x===`static`?`#${Pf(A)}`:void 0}),(0,G.jsx)(J,{...O(`root`),id:A,ref:Re(E,j),mod:[{resizing:k||T?.activeSection!=null,layout:h,disabled:g,mode:x},S],...D})]})});Rf.classes=pf,Rf.varsResolver=Lf,Rf.displayName=`@mantine/core/AppShell`,Rf.Navbar=vf,Rf.Header=gf,Rf.Main=_f,Rf.Aside=mf,Rf.Footer=hf,Rf.Section=yf;function zf(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=>zf(e))}:typeof e==`number`||typeof e==`bigint`||typeof e==`boolean`?{value:e,label:`${e}`}:e}function Bf(e){return e?e.map(e=>zf(e)):[]}function Vf(e){return e.reduce((e,t)=>`group`in t?{...e,...Vf(t.items)}:(e[`${t.value}`]=t,e),{})}var Hf={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`},Uf={error:null},Wf=St((e,{size:t,color:n})=>({chevron:{"--combobox-chevron-size":k(t,`combobox-chevron-size`),"--combobox-chevron-color":n?Ht(n,e):void 0}})),Gf=q(e=>{let t=K(`ComboboxChevron`,Uf,e),{size:n,error:r,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:l,attributes:u,mod:d,...f}=t,p=ir({name:`ComboboxChevron`,classes:Hf,props:t,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:l,varsResolver:Wf,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`})})});Gf.classes=Hf,Gf.varsResolver=Wf,Gf.displayName=`@mantine/core/ComboboxChevron`;var[Kf,qf]=y(`Combobox component was not found in tree`);function Jf({onMouseDown:e,onClick:t,onClear:n,...r}){return(0,G.jsx)(Md.ClearButton,{tabIndex:-1,"aria-hidden":!0,...r,onMouseDown:t=>{t.preventDefault(),e?.(t)},onClick:e=>{n(),t?.(e)}})}Jf.displayName=`@mantine/core/ComboboxClearButton`;var Yf=q(e=>{let{classNames:t,styles:n,className:r,style:i,hidden:a,...o}=K(`ComboboxDropdown`,null,e),s=qf();return(0,G.jsx)(fl.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})})});Yf.classes=Hf,Yf.displayName=`@mantine/core/ComboboxDropdown`;var Xf={refProp:`ref`},Zf=q(e=>{let{children:t,refProp:n,ref:r}=K(`ComboboxDropdownTarget`,Xf,e);if(qf(),!v(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)(fl.Target,{ref:r,refProp:n,children:t})});Zf.displayName=`@mantine/core/ComboboxDropdownTarget`;var Qf=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ComboboxEmpty`,null,e),s=qf();return(0,G.jsx)(J,{...s.getStyles(`empty`,{className:n,classNames:t,styles:i,style:r}),...o})});Qf.classes=Hf,Qf.displayName=`@mantine/core/ComboboxEmpty`;function $f({onKeyDown:e,onClick:t,withKeyboardNavigation:n,withAriaAttributes:r,withExpandedAttribute:i,targetType:a,autoComplete:o}){let s=qf(),[c,l]=(0,_.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 ep={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},tp=q(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=K(`ComboboxEventsTarget`,ep,e),u=xt(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=qf(),f=$f({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s});return(0,_.cloneElement)(u,{...f,...l,[n]:Re(c,d.store.targetRef,gt(u))})});tp.displayName=`@mantine/core/ComboboxEventsTarget`;var np=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ComboboxFooter`,null,e),s=qf();return(0,G.jsx)(J,{...s.getStyles(`footer`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});np.classes=Hf,np.displayName=`@mantine/core/ComboboxFooter`;var rp=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=qf(),d=Pe(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]})});rp.classes=Hf,rp.displayName=`@mantine/core/ComboboxGroup`;var ip=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ComboboxHeader`,null,e),s=qf();return(0,G.jsx)(J,{...s.getStyles(`header`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});ip.classes=Hf,ip.displayName=`@mantine/core/ComboboxHeader`;function ap({value:e,valuesDivider:t=`,`,...n}){return(0,G.jsx)(`input`,{type:`hidden`,value:Array.isArray(e)?e.join(t):e?`${e}`:``,...n})}ap.displayName=`@mantine/core/ComboboxHiddenInput`;var op=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=qf(),v=(0,_.useId)(),y=c||v;return(0,G.jsx)(J,{...g.getStyles(`option`,{className:r,classNames:n,styles:a,style:i}),"aria-disabled":f||void 0,...h,id:y,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)}})});op.classes=Hf,op.displayName=`@mantine/core/ComboboxOption`;var sp=q(e=>{let{classNames:t,className:n,style:r,styles:i,id:a,onMouseDown:o,labelledBy:s,...c}=K(`ComboboxOptions`,null,e),l=qf(),u=Pe(a);return(0,_.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)}})});sp.classes=Hf,sp.displayName=`@mantine/core/ComboboxOptions`;var cp={withAriaAttributes:!0,withKeyboardNavigation:!0},lp=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`,cp,e),f=qf(),p=f.getStyles(`search`),m=$f({targetType:`input`,withAriaAttributes:a,withKeyboardNavigation:c,withExpandedAttribute:!1,onKeyDown:o,onClick:s,autoComplete:`off`});return(0,G.jsx)(Md,{ref:Re(u,f.store.searchRef),classNames:[{input:p.className},t],styles:[{input:p.style},n],size:l||f.size,...m,...d,__staticSelector:`Combobox`})});lp.classes=Hf,lp.displayName=`@mantine/core/ComboboxSearch`;var up={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},dp=q(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=K(`ComboboxTarget`,up,e),u=xt(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=qf(),f=$f({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s}),p=(0,_.cloneElement)(u,{...f,...l});return(0,G.jsx)(fl.Target,{refProp:n,ref:Re(c,d.store.targetRef),children:p})});dp.displayName=`@mantine/core/ComboboxTarget`;function fp(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 pp(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 mp(e){for(let t=0;t<e.length;t+=1)if(!e[t].hasAttribute(`data-combobox-disabled`))return t;return-1}function hp({defaultOpened:e,opened:t,onOpenedChange:n,onDropdownClose:r,onDropdownOpen:i,loop:a=!0,scrollBehavior:o=`instant`}={}){let[s,c]=ze({value:t,defaultValue:e,finalValue:!1,onChange:n}),l=(0,_.useRef)(null),u=(0,_.useRef)(-1),d=(0,_.useRef)(null),f=(0,_.useRef)(null),p=(0,_.useRef)(-1),m=(0,_.useRef)(-1),h=(0,_.useRef)(-1),g=(0,_.useCallback)((e=`unknown`)=>{s||(c(!0),i?.(e))},[c,i,s]),v=(0,_.useCallback)((e=`unknown`)=>{s&&(c(!1),r?.(e))},[c,r,s]),y=(0,_.useCallback)((e=`unknown`)=>{s?v(e):g(e)},[v,g,s]),b=(0,_.useCallback)(()=>{let e=bt(f.current);vt(`#${l.current} [data-combobox-selected]`,e)?.removeAttribute(`data-combobox-selected`)},[]),x=(0,_.useCallback)(e=>{let t=bt(f.current),n=vt(`#${l.current}`,t),r=n?yt(`[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`)?(b(),r[i].setAttribute(`data-combobox-selected`,`true`),r[i].scrollIntoView({block:`nearest`,behavior:o}),r[i].id):null},[o,b]),S=(0,_.useCallback)(()=>{let e=bt(f.current),t=vt(`#${l.current} [data-combobox-active]`,e);if(t){let n=yt(`#${l.current} [data-combobox-option]`,e).findIndex(e=>e===t);return x(n)}return x(0)},[x]),C=(0,_.useCallback)(()=>{let e=bt(f.current),t=yt(`#${l.current} [data-combobox-option]`,e);return x(pp(u.current,t,a))},[x,a]),w=(0,_.useCallback)(()=>{let e=bt(f.current),t=yt(`#${l.current} [data-combobox-option]`,e);return x(fp(u.current,t,a))},[x,a]),T=(0,_.useCallback)(()=>{let e=bt(f.current),t=yt(`#${l.current} [data-combobox-option]`,e);return x(mp(t))},[x]),E=(0,_.useCallback)((e=`selected`,t)=>{if(typeof e==`number`){u.current=e;let n=bt(f.current),r=yt(`#${l.current} [data-combobox-option]`,n);t?.scrollIntoView&&r[e]?.scrollIntoView({block:`nearest`,behavior:o})}else h.current=window.setTimeout(()=>{let n=bt(f.current),r=yt(`#${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,_.useCallback)(()=>{u.current=-1,b()},[b]),O=(0,_.useCallback)(()=>{let e=bt(f.current);(yt(`#${l.current} [data-combobox-option]`,e)?.[u.current])?.click()},[]),k=(0,_.useCallback)(e=>{l.current=e},[]),A=(0,_.useCallback)(()=>{p.current=window.setTimeout(()=>d.current?.focus(),0)},[]),j=(0,_.useCallback)(()=>{m.current=window.setTimeout(()=>f.current?.focus(),0)},[]),M=(0,_.useCallback)(()=>u.current,[]);return(0,_.useEffect)(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(m.current),window.clearTimeout(h.current)},[]),{dropdownOpened:s,openDropdown:g,closeDropdown:v,toggleDropdown:y,selectedOptionIndex:u.current,getSelectedOptionIndex:M,selectOption:x,selectFirstOption:T,selectActiveOption:S,selectNextOption:C,selectPreviousOption:w,resetSelectedOption:D,updateSelectedOptionIndex:E,listId:l.current,setListId:k,clickSelectedOption:O,searchRef:d,focusSearchInput:A,targetRef:f,focusTarget:j}}var gp={keepMounted:!0,keepMountedMode:`display-none`,withinPortal:!0,resetSelectionOnOptionHover:!1,width:`target`,transitionProps:{transition:`fade`,duration:0},size:`sm`},_p=St((e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":M(t),"--combobox-option-padding":k(t,`combobox-option-padding`)},dropdown:{"--combobox-padding":n===void 0?void 0:d(n),"--combobox-option-fz":M(t),"--combobox-option-padding":k(t,`combobox-option-padding`)}})),vp=e=>{let t=K(`Combobox`,gp,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=hp(),x=o||b,S=ir({name:p||`Combobox`,classes:Hf,props:t,classNames:n,styles:r,unstyled:i,attributes:h,vars:s,varsResolver:_p}),C=()=>{l?.(),x.closeDropdown()};return(0,G.jsx)(Kf,{value:{getStyles:S,store:x,onOptionSubmit:c,size:u,resetSelectionOnOptionHover:f,readOnly:m,floatingHeight:g},children:(0,G.jsx)(fl,{opened:x.dropdownOpened,...v,middlewares:y,onChange:e=>!e&&C(),withRoles:!1,unstyled:i,children:a})})};vp.extend=e=>e,vp.classes=Hf,vp.varsResolver=_p,vp.displayName=`@mantine/core/Combobox`,vp.Target=dp,vp.Dropdown=Yf,vp.Options=sp,vp.Option=op,vp.Search=lp,vp.Empty=Qf,vp.Chevron=Gf,vp.Footer=np,vp.Header=ip,vp.EventsTarget=tp,vp.DropdownTarget=Zf,vp.Group=rp,vp.ClearButton=Jf,vp.HiddenInput=ap;function yp({children:e,role:t}){let n=(0,_.use)(md);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})}var bp=(0,_.createContext)(null),xp={hiddenInputValuesSeparator:`,`},Sp=Br((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(`CheckboxGroup`,xp,e),[m,h]=ze({value:t,defaultValue:n,finalValue:[],onChange:r}),g=e=>{let t=typeof e==`string`?e: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)(bp,{value:{value:m,onChange:g,size:i,isDisabled:_},children:(0,G.jsxs)(Md.Wrapper,{size:i,...a,...p,labelElement:`div`,__staticSelector:`CheckboxGroup`,children:[(0,G.jsx)(yp,{role:`group`,children:o}),(0,G.jsx)(`input`,{type:`hidden`,name:c,value:v,...u})]})})}));Sp.classes=Md.Wrapper.classes,Sp.displayName=`@mantine/core/CheckboxGroup`;var Cp={card:`m_26775b0a`},wp=(0,_.createContext)(null),Tp={withBorder:!0},Ep=St((e,{radius:t})=>({card:{"--card-radius":j(t)}})),Dp=q(e=>{let t=K(`CheckboxCard`,Tp,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,checked:c,mod:l,withBorder:u,value:d,onClick:f,defaultChecked:p,onChange:m,indeterminate:h,attributes:g,...v}=t,y=ir({name:`CheckboxCard`,classes:Cp,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:g,vars:s,varsResolver:Ep,rootSelector:`card`}),b=(0,_.use)(bp),[x,S]=ze({value:typeof c==`boolean`?c:b?b.value.includes(d||``):void 0,defaultValue:p,finalValue:!1,onChange:m});return(0,G.jsx)(wp,{value:{checked:x,indeterminate:h},children:(0,G.jsx)(vc,{mod:[{"with-border":u,checked:x,indeterminate:h},l],...y(`card`),...v,role:`checkbox`,"aria-checked":h?`mixed`:x,onClick:e=>{f?.(e),b?.onChange(d||``),S(!x)}})})});Dp.displayName=`@mantine/core/CheckboxCard`,Dp.classes=Cp,Dp.varsResolver=Ep;function Op({size:e,style:t,...n}){let r=e===void 0?t:{width:d(e),height:d(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`})})}function kp({indeterminate:e,...t}){return e?(0,G.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 32 6`,"aria-hidden":!0,...t,children:(0,G.jsx)(`rect`,{width:`32`,height:`6`,fill:`currentColor`,rx:`3`})}):(0,G.jsx)(Op,{...t})}var Ap={indicator:`m_5e5256ee`,icon:`m_1b1c543a`,"indicator--light":`m_193e54c8`,"indicator--outline":`m_76e20374`},jp={icon:kp,variant:`filled`,radius:`sm`},Mp=St((e,{radius:t,color:n,size:r,iconColor:i,variant:a,autoContrast:o})=>{let s=Vt({color:n||e.primaryColor,theme:e}),c=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color,l=a===`light`?e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:`light`,autoContrast:o}):void 0,u=a===`outline`?c:l?l.color:Ht(n,e);return{indicator:{"--checkbox-size":k(r,`checkbox-size`),"--checkbox-radius":t===void 0?void 0:j(t),"--checkbox-color":u,"--checkbox-bg":l?.background,"--checkbox-icon-color":i?Ht(i,e):l?l.color:Qt(o,e)?Yt({color:n,theme:e,autoContrast:o}):void 0}}}),Np=q(e=>{let t=K(`CheckboxIndicator`,jp,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,icon:c,indeterminate:l,radius:u,color:d,iconColor:f,autoContrast:p,checked:m,mod:h,variant:g,disabled:v,attributes:y,...b}=t,x=ir({name:`CheckboxIndicator`,classes:Ap,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:y,vars:s,varsResolver:Mp,rootSelector:`indicator`}),S=(0,_.use)(wp),C=typeof l==`boolean`?l:S?.indeterminate,w=typeof m==`boolean`||typeof l==`boolean`?m||l:S?.checked||S?.indeterminate||!1;return(0,G.jsx)(J,{...x(`indicator`,{variant:g}),variant:g,mod:[{checked:w,disabled:v},h],...b,children:(0,G.jsx)(c,{indeterminate:C,...x(`icon`)})})});Np.displayName=`@mantine/core/CheckboxIndicator`,Np.classes=Ap,Np.varsResolver=Mp;var Pp={root:`m_5f75b09e`,body:`m_5f6e695e`,labelWrapper:`m_d3ea56bb`,label:`m_8ee546b8`,description:`m_328f68c0`,error:`m_8e8a99cc`},Fp=Pp;function Ip({__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=ir({name:e,props:t,className:n,style:_,classes:Pp,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":M(f),"--label-lh":k(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)(Md.Description,{id:C,size:f,__inheritStyles:!1,...S(`description`),children:c}),d&&typeof d!=`boolean`&&(0,G.jsx)(Md.Error,{id:w,size:f,__inheritStyles:!1,...S(`error`),children:d})]})]})})}Ip.displayName=`@mantine/core/InlineInput`;var Lp={root:`m_bf2d988c`,inner:`m_26062bec`,input:`m_26063560`,icon:`m_bf295423`,"input--light":`m_595ab216`,"input--outline":`m_215c4542`},Rp={labelPosition:`right`,icon:kp,withErrorStyles:!0,variant:`filled`,radius:`sm`},zp=St((e,{radius:t,color:n,size:r,iconColor:i,variant:a,autoContrast:o})=>{let s=Vt({color:n||e.primaryColor,theme:e}),c=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color,l=a===`light`?e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:`light`,autoContrast:o}):void 0,u=a===`outline`?c:l?l.color:Ht(n,e);return{root:{"--checkbox-size":k(r,`checkbox-size`),"--checkbox-radius":t===void 0?void 0:j(t),"--checkbox-color":u,"--checkbox-bg":l?.background,"--checkbox-icon-color":i?Ht(i,e):l?l.color:Qt(o,e)?Yt({color:n,theme:e,autoContrast:o}):void 0}}}),Bp=q(e=>{let t=K(`Checkbox`,Rp,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,label:l,id:u,size:d,radius:f,wrapperProps:p,checked:m,labelPosition:h,description:g,error:v,disabled:y,variant:b,indeterminate:x,icon:S,rootRef:C,iconColor:w,onChange:T,autoContrast:E,mod:D,attributes:O,readOnly:k,onClick:A,withErrorStyles:j,ref:M,...N}=t,P=(0,_.useRef)(null),F=(0,_.use)(bp),I=d||F?.size,L=ir({name:`Checkbox`,props:t,classes:Lp,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:O,vars:s,varsResolver:zp}),{styleProps:R,rest:z}=fr(N),B=Pe(u),ee=[g?`${B}-description`:void 0,v&&typeof v!=`boolean`?`${B}-error`:void 0,z[`aria-describedby`]].filter(Boolean).join(` `)||void 0,te={checked:F?.value.includes(z.value)??m,onChange:e=>{k||(F?.onChange(e),T?.(e))}},ne=F?.isDisabled?.(z.value)??!1,re=y||ne;return(0,_.useEffect)(()=>{P.current&&(P.current.indeterminate=x||!1,x?P.current.setAttribute(`data-indeterminate`,`true`):P.current.removeAttribute(`data-indeterminate`))},[x]),(0,G.jsx)(Ip,{...L(`root`),__staticSelector:`Checkbox`,__stylesApiProps:t,id:B,size:I,labelPosition:h,label:l,description:g,error:v,disabled:re,classNames:n,styles:a,unstyled:o,"data-checked":te.checked||m||void 0,variant:b,ref:C,mod:D,attributes:O,inert:z.inert,...R,...p,children:(0,G.jsxs)(J,{...L(`inner`),mod:{labelPosition:h},children:[(0,G.jsx)(J,{component:`input`,id:B,ref:Re(P,M),mod:{error:!!v,"with-error-styles":j},...L(`input`,{focusable:!0,variant:b}),...z,...te,"aria-describedby":ee,disabled:re,inert:z.inert,type:`checkbox`,onClick:e=>{k&&te.checked===void 0&&e.preventDefault(),A?.(e)}}),(0,G.jsx)(S,{indeterminate:x,...L(`icon`)})]})})});Bp.classes={...Lp,...Fp},Bp.varsResolver=zp,Bp.displayName=`@mantine/core/Checkbox`,Bp.Group=Sp,Bp.Indicator=Np,Bp.Card=Dp;function Vp(e){return`group`in e}function Hp({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:Hp({options:o.items,search:t,limit:n-i.length})}),Vp(o)||o.label.toLowerCase().includes(r)&&i.push(o)}return i}function Up(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 Wp(e,t=new Set){if(Array.isArray(e))for(let n of e)if(Vp(n))Wp(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 Gp(e,t){return Array.isArray(e)?e.includes(t):e===t}function Kp({data:e,withCheckIcon:t,withAlignedLabels:n,value:r,checkIconPosition:i,unstyled:a,renderOption:o}){if(!Vp(e)){let s=Gp(r,e.value),c=t&&(s?(0,G.jsx)(Op,{className:Hf.optionsDropdownCheckIcon}):n?(0,G.jsx)(`div`,{className:Hf.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)(vp.Option,{value:e.value,disabled:e.disabled,className:wt({[Hf.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)(Kp,{data:e,value:r,unstyled:a,withCheckIcon:t,withAlignedLabels:n,checkIconPosition:i,renderOption:o},`${e.value}`));return(0,G.jsx)(vp.Group,{label:e.group,children:s})}function qp({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=qf();Wp(e);let x=typeof i==`string`?(r||Hp)({options:e,search:l?i:``,limit:a??1/0}):e,S=Up(x),C=x.map((e,t)=>(0,G.jsx)(Kp,{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)(vp.Dropdown,{hidden:t||n&&S,"data-composed":!0,children:(0,G.jsxs)(vp.Options,{labelledBy:g,"aria-label":y,children:[c?(0,G.jsx)(mc.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)(vp.Empty,{children:m})]})})}function Jp(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 Yp=e=>{let t=e.lastElementChild;return t?t instanceof HTMLInputElement?t:t.querySelector(`input`):null},Xp=(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 Zp({value:e,onChange:t,enabled:n}){let r=(0,_.useRef)({draggedIndex:null,currentDropTarget:null}),i=(0,_.useRef)(null),a=(0,_.useRef)(null),o=(0,_.useRef)(e);o.current=e,(0,_.useEffect)(()=>{let e=i.current;e&&(i.current=null,Xp(o.current,e.expectedValue)&&e.container?.querySelector(`[data-mantine-pill-index="${e.index}"]`)?.focus())});let s=(0,_.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=Jp(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=Jp(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?Yp(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 Qp({id:e,label:t,labelProps:n,inputWrapperOrder:r}){if(t&&(!r||r.includes(`label`)))return n?.id||`${e}-label`}var $p=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:v,selectFirstOptionOnDropdownOpen:y,onOptionSubmit:b,comboboxProps:x,readOnly:S,disabled:C,filter:w,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:B,openOnFocus:ee=!0,attributes:te,...ne}=t,re=Pe(A),ie=Qp({id:re,label:ne.label,labelProps:ne.labelProps,inputWrapperOrder:ne.inputWrapperOrder}),ae=Bf(m),oe=Vf(ae),[se,V]=ze({value:h,defaultValue:g,finalValue:``,onChange:p}),H=hp({opened:o,defaultOpened:s,onDropdownOpen:()=>{l?.(),y&&H.selectFirstOption()},onDropdownClose:()=>{c?.(),setTimeout(H.resetSelectedOption,0)}}),ce=e=>{V(e),H.resetSelectedOption()},{resolvedClassNames:le,resolvedStyles:U}=Un({props:t,styles:r,classNames:n});(0,_.useEffect)(()=>{v&&H.selectFirstOption()},[v,se]);let W=(0,G.jsx)(vp.ClearButton,{...F,onClear:()=>{ce(``),P?.()}});return(0,G.jsxs)(vp,{store:H,__staticSelector:`Autocomplete`,classNames:le,styles:U,unstyled:i,readOnly:S,size:k,attributes:te,floatingHeight:O,keepMounted:B,onOptionSubmit:e=>{b?.(e),ce(oe[e].label),H.closeDropdown()},...x,children:[(0,G.jsx)(vp.Target,{autoComplete:M,withExpandedAttribute:!0,children:(0,G.jsx)(Fd,{...ne,size:k,__staticSelector:`Autocomplete`,__clearSection:W,__clearable:L&&!!se&&!C&&!S,__clearSectionMode:R,rightSection:z,disabled:C,readOnly:S,value:se,error:I,onChange:e=>{ce(e.currentTarget.value),H.openDropdown(),v&&H.selectFirstOption()},onFocus:e=>{ee&&H.openDropdown(),u?.(e)},onBlur:e=>{B&&H.clickSelectedOption(),H.closeDropdown(),d?.(e)},onClick:e=>{H.openDropdown(),f?.(e)},classNames:le,styles:U,unstyled:i,attributes:te,id:re})}),(0,G.jsx)(qp,{data:ae,hidden:S||C,filter:w,search:se,limit:T,hiddenWhenEmpty:!0,withScrollArea:E,maxDropdownHeight:D,unstyled:i,labelId:ie,"aria-label":ie?void 0:ne[`aria-label`],renderOption:j,scrollAreaProps:N})]})});$p.classes={...Fd.classes,...vp.classes},$p.displayName=`@mantine/core/Autocomplete`;var em={root:`m_347db0ec`,"root--dot":`m_fbd81e3d`,label:`m_5add502a`,section:`m_91fdda9b`},tm=St((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":k(a,`badge-height`),"--badge-padding-x":k(a,`badge-padding-x`),"--badge-fz":k(a,`badge-fz`),"--badge-radius":s||t===void 0?void 0:j(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`?Ht(n,e):void 0}}}),nm=Vr(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=ir({name:`Badge`,props:t,classes:em,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:y,vars:s,varsResolver:tm});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})]})});nm.classes=em,nm.varsResolver=tm,nm.displayName=`@mantine/core/Badge`;var rm={root:`m_77c9d27d`,inner:`m_80f1301b`,label:`m_811560b9`,section:`m_a74036a`,loader:`m_a25b86ee`,group:`m_80d6d844`,groupSection:`m_70be2a01`},im={orientation:`horizontal`},am=St((e,{borderWidth:t})=>({group:{"--button-border-width":d(t)}})),om=q(e=>{let t=K(`ButtonGroup`,im,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,mod:u,attributes:d,...f}=K(`ButtonGroup`,im,e),p=ir({name:`ButtonGroup`,props:t,classes:rm,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:c,varsResolver:am,rootSelector:`group`});return(0,G.jsx)(J,{...p(`group`),mod:[{orientation:s},u],role:`group`,...f})});om.classes=rm,om.varsResolver=am,om.displayName=`@mantine/core/ButtonGroup`;var sm=St((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":k(o,`section-height`),"--section-padding-x":k(o,`section-padding-x`),"--section-fz":o?.includes(`compact`)?M(o.replace(`compact-`,``)):M(o),"--section-radius":t===void 0?void 0:j(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),cm=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=ir({name:`ButtonGroupSection`,props:t,classes:rm,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:sm,rootSelector:`groupSection`});return(0,G.jsx)(J,{...p(`groupSection`),...f})});cm.classes=rm,cm.varsResolver=sm,cm.displayName=`@mantine/core/ButtonGroupSection`;var lm={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${d(1)}))`},out:{opacity:0,transform:`translate(-50%, -200%)`},common:{transformOrigin:`center`},transitionProperty:`transform, opacity`},um=St((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":k(a,`button-height`),"--button-padding-x":k(a,`button-padding-x`),"--button-fz":a?.includes(`compact`)?M(a.replace(`compact-`,``)):M(a),"--button-radius":t===void 0?void 0:j(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}}}),dm=Vr(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=ir({name:`Button`,props:t,classes:rm,className:i,style:n,classNames:g,styles:_,unstyled:v,attributes:S,vars:r,varsResolver:um}),T=!!c,E=!!l;return(0,G.jsxs)(vc,{...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)(Jc,{mounted:p,transition:lm,duration:150,children:e=>(0,G.jsx)(J,{component:`span`,...w(`loader`,{style:e}),"aria-hidden":!0,children:(0,G.jsx)(bl,{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})]})]})});dm.classes=rm,dm.varsResolver=um,dm.displayName=`@mantine/core/Button`,dm.Group=om,dm.GroupSection=cm;var[fm,pm]=y(`Card component was not found in tree`),mm={root:`m_e615b15f`,section:`m_599a2148`},hm=Vr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,withBorder:o,inheritPadding:s,mod:c,...l}=K(`CardSection`,null,e),u=pm();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})});hm.classes=mm,hm.displayName=`@mantine/core/CardSection`;var gm=St((e,{padding:t})=>({root:{"--card-padding":A(t)}})),_m={orientation:`vertical`},vm=Vr(e=>{let t=K(`Card`,_m,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,padding:l,attributes:u,orientation:d,...f}=t,p=ir({name:`Card`,props:t,classes:mm,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:gm}),m=_.Children.toArray(c),h=m.map((e,t)=>typeof e==`object`&&e&&`type`in e&&(e.type===hm||e.type?.displayName===`@mantine/core/CardSection`)?(0,_.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)(fm,{value:{getStyles:p},children:(0,G.jsx)(Cc,{unstyled:o,"data-orientation":d,...p(`root`),...f,children:h})})});vm.classes=mm,vm.varsResolver=gm,vm.displayName=`@mantine/core/Card`,vm.Section=hm;function ym(e){let t=e.currentTarget;return bt(t).activeElement!==t}var bm={root:`m_b183c0a2`},xm=St((e,{color:t})=>({root:{"--code-bg":t?Ht(t,e):void 0}})),Sm=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=ir({name:`Code`,props:t,classes:bm,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:xm});return(0,G.jsx)(J,{component:l?`pre`:`code`,mod:[{block:l},u],...p(`root`),...f,dir:`ltr`})});Sm.classes=bm,Sm.varsResolver=xm,Sm.displayName=`@mantine/core/Code`;var Cm={root:`m_7485cace`},wm={strategy:`block`},Tm=St((e,{size:t,fluid:n})=>({root:{"--container-size":n?void 0:k(t,`container-size`)}})),Em=q(e=>{let t=K(`Container`,wm,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,fluid:c,mod:l,attributes:u,strategy:d,...f}=t,p=ir({name:`Container`,classes:Cm,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:Tm});return(0,G.jsx)(J,{mod:[{fluid:c,strategy:d},l],...p(`root`),...f})});Em.classes=Cm,Em.varsResolver=Tm,Em.displayName=`@mantine/core/Container`;var[Dm,Om]=y(`Grid component was not found in tree`),km=(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))`},Am=(e,t,n)=>n||e===`auto`?`100%`:e===`content`?`unset`:km(e,t),jm=(e,t)=>{if(e)return e===`auto`||t?`1`:`auto`},Mm=(e,t)=>{if(e===0)return`0`;if(e)return`calc(${100*e/t}% + ${e/t} * var(--grid-column-gap))`};function Nm({span:e,order:t,offset:n,align:i,selector:a}){let o=Dn(),s=Om(),c=s.breakpoints||o.breakpoints,l=R(e),u=l===void 0?12:l,d=p({"--col-order":R(t)?.toString(),"--col-flex-grow":jm(u,s.grow),"--col-flex-basis":km(u,s.columns),"--col-width":u===`content`?`auto`:void 0,"--col-max-width":Am(u,s.columns,s.grow),"--col-offset":Mm(R(n),s.columns),"--col-align-self":R(i)}),f=r(c).reduce((r,a)=>(r[a]||(r[a]={}),typeof t==`object`&&t[a]!==void 0&&(r[a][`--col-order`]=t[a]?.toString()),typeof e==`object`&&e[a]!==void 0&&(r[a][`--col-flex-grow`]=jm(e[a],s.grow),r[a][`--col-flex-basis`]=km(e[a],s.columns),r[a][`--col-width`]=e[a]===`content`?`auto`:void 0,r[a][`--col-max-width`]=Am(e[a],s.columns,s.grow)),typeof n==`object`&&n[a]!==void 0&&(r[a][`--col-offset`]=Mm(n[a],s.columns)),typeof i==`object`&&i[a]!==void 0&&(r[a][`--col-align-self`]=i[a]),r),{}),m=L(r(f),c).filter(e=>r(f[e.value]).length>0).map(e=>({query:s.type===`container`?`mantine-grid (min-width: ${c[e.value]})`:`(min-width: ${c[e.value]})`,styles:f[e.value]}));return(0,G.jsx)(lr,{styles:d,media:s.type===`container`?void 0:m,container:s.type===`container`?m:void 0,selector:a})}var Pm={container:`m_8478a6da`,root:`m_410352e9`,inner:`m_dee7bd2f`,col:`m_96bdd299`},Fm={span:12},Im=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=Om(),f=Fr();return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Nm,{selector:`.${f}`,span:o,order:s,offset:c,align:l}),(0,G.jsx)(J,{...d.getStyles(`col`,{className:wt(n,f),style:r,classNames:t,styles:i}),...u})]})});Im.classes=Pm,Im.displayName=`@mantine/core/GridCol`;function Lm({gap:e,rowGap:t,columnGap:n,selector:i,breakpoints:a,type:o}){let s=Dn(),c=a||s.breakpoints,l=p({"--grid-gap":A(R(e)),"--grid-row-gap":A(R(t)),"--grid-column-gap":A(R(n))}),u=r(c).reduce((r,i)=>(r[i]||(r[i]={}),typeof e==`object`&&e[i]!==void 0&&(r[i][`--grid-gap`]=A(e[i])),typeof t==`object`&&t[i]!==void 0&&(r[i][`--grid-row-gap`]=A(t[i])),typeof n==`object`&&n[i]!==void 0&&(r[i][`--grid-column-gap`]=A(n[i])),r),{}),d=L(r(u),c).filter(e=>r(u[e.value]).length>0).map(e=>({query:o===`container`?`mantine-grid (min-width: ${c[e.value]})`:`(min-width: ${c[e.value]})`,styles:u[e.value]}));return(0,G.jsx)(lr,{styles:l,media:o===`container`?void 0:d,container:o===`container`?d:void 0,selector:i})}var Rm={gap:`md`,columns:12},zm=St((e,{justify:t,align:n,overflow:r})=>({root:{"--grid-justify":t,"--grid-align":n,"--grid-overflow":r}})),Bm=q(e=>{let t=K(`Grid`,Rm,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=ir({name:`Grid`,classes:Pm,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:zm}),x=Fr();return _===`container`&&g?(0,G.jsxs)(Dm,{value:{getStyles:b,grow:c,columns:f,breakpoints:g,type:_},children:[(0,G.jsx)(Lm,{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)(Dm,{value:{getStyles:b,grow:c,columns:f,breakpoints:g,type:_},children:[(0,G.jsx)(Lm,{selector:`.${x}`,...t}),(0,G.jsx)(J,{...b(`root`,{className:x}),...y,children:(0,G.jsx)(`div`,{...b(`inner`),children:h})})]})});Bm.classes=Pm,Bm.varsResolver=zm,Bm.displayName=`@mantine/core/Grid`,Bm.Col=Im;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`],Hm={"min-height":`0`,"max-height":`none`,height:`0`,visibility:`hidden`,overflow:`hidden`,position:`absolute`,"z-index":`-1000`,top:`0`,right:`0`,display:`block`};function Um(e){Object.keys(Hm).forEach(t=>{e.style.setProperty(t,Hm[t],`important`)})}function Wm(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 Gm=null;function Km(e,t,n=1,r=1/0){Gm||(Gm=document.createElement(`textarea`),Gm.setAttribute(`tabindex`,`-1`),Gm.setAttribute(`aria-hidden`,`true`),Gm.setAttribute(`aria-label`,`autosize measurement`),Um(Gm)),Gm.parentNode===null&&document.body.appendChild(Gm);let{paddingSize:i,borderSize:a,sizingStyle:o}=e,{boxSizing:s}=o;Object.keys(o).forEach(e=>{Gm.style[e]=o[e]}),Um(Gm),Gm.value=t;let c=s===`border-box`?Gm.scrollHeight+a:Gm.scrollHeight-i;Gm.value=t,c=s===`border-box`?Gm.scrollHeight+a:Gm.scrollHeight-i,Gm.value=`x`;let l=Gm.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 qm({maxRows:e,minRows:t,onChange:n,ref:r,...i}){let a=i.value!==void 0,o=(0,_.useRef)(null),s=Re(o,r),c=(0,_.useRef)(0),l=(0,_.useRef)(0),u=()=>{let n=o.current;if(!n)return;let r=Wm(n);if(!r)return;let[i]=Km(r,n.value||n.placeholder||`x`,t,e);c.current!==i&&(c.current=i,n.style.setProperty(`height`,`${i}px`,`important`))},d=(0,_.useEffectEvent)(u),f=e=>{a||u(),n?.(e)};return(0,_.useLayoutEffect)(u),(0,_.useEffect)(()=>{let e=()=>u();return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),(0,_.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,_.useEffect)(()=>{let e=()=>u();return document.fonts.addEventListener(`loadingdone`,e),()=>document.fonts.removeEventListener(`loadingdone`,e)},[]),(0,_.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 Jm=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&&ht()!==`test`,u=l?{maxRows:n,minRows:r}:{};return(0,G.jsx)(Fd,{component:l?qm:`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})});Jm.classes=Fd.classes,Jm.displayName=`@mantine/core/Textarea`;var[Ym,Xm]=y(`List component was not found in tree`),Zm={root:`m_abbac491`,item:`m_abb6bec2`,itemWrapper:`m_75cd9f71`,itemIcon:`m_60f83e5b`},Qm=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=Xm(),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})]})})});Qm.classes=Zm,Qm.displayName=`@mantine/core/ListItem`;var $m={type:`unordered`},eh=St((e,{size:t,spacing:n})=>({root:{"--list-fz":M(t),"--list-lh":N(t),"--list-spacing":A(n)}})),th=q(e=>{let t=K(`List`,$m,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=ir({name:`List`,classes:Zm,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:g,vars:s,varsResolver:eh});return(0,G.jsx)(Ym,{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})})});th.classes=Zm,th.varsResolver=eh,th.displayName=`@mantine/core/List`,th.Item=Qm;var[nh,rh]=y(`Menu component was not found in the tree`),ih=(0,_.createContext)(null);function ah(e){let{value:t,defaultValue:n,onChange:r,children:i}=K(`MenuCheckboxGroup`,null,e),[a,o]=ze({value:t,defaultValue:n,finalValue:[],onChange:r}),s=(0,_.useCallback)(e=>{o(a.includes(e)?a.filter(t=>t!==e):[...a,e])},[a,o]);return(0,G.jsx)(ih,{value:{values:a,onChange:s},children:i})}ah.displayName=`@mantine/core/MenuCheckboxGroup`;var oh=(0,_.createContext)(null);function sh({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=rh(),v=(0,_.use)(oh),y=Dn(),{dir:b}=Yr(),x=(0,_.useRef)(null),S=F(h.onClick,()=>{l||(r(),a&&g.closeDropdownImmediately())}),C=F(h.onMouseMove,()=>{if(!g.hasSearch)return;let e=x.current?.closest(`[data-menu-dropdown]`);e&&e.querySelectorAll(`[data-menu-active]`).forEach(t=>{t!==x.current&&t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}),T=F(h.onKeyDown,e=>{e.key===`ArrowLeft`&&v&&(v.close(),v.focusParentItem())}),E=i?y.variantColorResolver({color:i,theme:y,variant:`light`}):void 0,D=i?Vt({color:i,theme:y}):null,O=g.alignItemsLabels!==`none`||t;return(0,G.jsxs)(vc,{onMouseDown:e=>e.preventDefault(),...h,unstyled:g.unstyled,tabIndex:g.menuItemTabIndex,...g.getStyles(`item`,{className:u,style:d,styles:f,classNames:p}),ref:Re(x,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:S,onMouseMove:C,onKeyDown:w({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:g.loop,dir:b,orientation:`vertical`,onKeyDown:T}),__vars:{"--menu-item-color":D?.isThemeColor&&D?.shade===void 0?`var(--mantine-color-${D.color}-6)`:E?.color,"--menu-item-hover":E?.hover},children:[O&&(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 ch={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`},lh=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,...y}=K(`MenuCheckboxItem`,null,e),b=rh(),x=(0,_.use)(ih),S=x&&f!==void 0?x.values.includes(f):void 0,[C,w]=ze({value:p??S,defaultValue:m,finalValue:!1,onChange:h}),T=g??b.checkIcon??(0,G.jsx)(Op,{size:10});return(0,G.jsx)(sh,{role:`menuitemcheckbox`,checked:C,indicator:T,onSelect:()=>{h?w(!C):x&&f!==void 0?x.onChange(f):w(!C)},color:o,closeMenuOnClick:s,rightSection:c,disabled:u,dataDisabled:d,className:n,style:r,styles:i,classNames:t,buttonRef:v,others:y,children:l})});lh.classes=ch,lh.displayName=`@mantine/core/MenuCheckboxItem`;function uh(e){let{children:t,disabled:n,longPressDelay:r}=K(`MenuContextMenu`,null,e),i=xt(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=rh(),o=Qc(),s=$c({childProps:i.props,disabled:n||o.disabled,opened:a.opened,longPressDelay:r,setReference:o.reference,open:()=>a.openDropdown()});return(0,_.cloneElement)(i,s)}uh.displayName=`@mantine/core/MenuContextMenu`;var dh=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`MenuDivider`,null,e),s=rh();return(0,G.jsx)(J,{...s.getStyles(`divider`,{className:n,style:r,styles:i,classNames:t}),...o})});dh.classes=ch,dh.displayName=`@mantine/core/MenuDivider`;var fh=500;function ph(e){return((e.querySelector(`[data-menu-item-label]`)??e).textContent??``).trim().toLowerCase()}function mh(e){return e.length>1&&e.split(``).every(t=>t===e[0])}function hh({enabled:e,opened:t,getDropdown:n}){let r=(0,_.useRef)({buffer:``,timeoutId:null});return(0,_.useEffect)(()=>{if(t&&e)return;let n=r.current;n.timeoutId!==null&&(window.clearTimeout(n.timeoutId),n.timeoutId=null),n.buffer=``},[t,e]),(0,_.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},fh);let c=document.activeElement,l=c?o.indexOf(c):-1,u=null;if(s.buffer.length===1||mh(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(ph(o[r]).startsWith(e)){u=o[r];break}}}else for(let e=0;e<o.length;e+=1)if(ph(o[e]).startsWith(s.buffer)){u=o[e];break}u&&(t.preventDefault(),u.focus())}}var gh=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,_.useRef)(null),p=rh(),m=hh({enabled:!p.hasSearch,opened:p.opened,getDropdown:()=>f.current}),h=F(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=F(o,()=>(p.trigger===`hover`||p.trigger===`click-hover`)&&p.openDropdown()),v=F(s,()=>(p.trigger===`hover`||p.trigger===`click-hover`)&&p.closeDropdown());return(0,G.jsxs)(fl.Dropdown,{...d,onMouseEnter:g,onMouseLeave:v,role:`menu`,"aria-orientation":`vertical`,ref:Re(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]})});gh.classes=ch,gh.displayName=`@mantine/core/MenuDropdown`;var _h=Vr(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=rh(),g=(0,_.use)(oh),v=Dn(),{dir:y}=Yr(),b=(0,_.useRef)(null),x=m,S=F(x.onClick,()=>{f||(typeof s==`boolean`?s&&h.closeDropdownImmediately():h.closeOnItemClick&&h.closeDropdownImmediately())}),C=F(x.onMouseMove,()=>{if(!h.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`)})}),T=o?v.variantColorResolver({color:o,theme:v,variant:`light`}):void 0,E=o?Vt({color:o,theme:v}):null,D=F(x.onKeyDown,e=>{e.key===`ArrowLeft`&&g&&(g.close(),g.focusParentItem())});return(0,G.jsxs)(vc,{onMouseDown:e=>e.preventDefault(),...m,unstyled:h.unstyled,tabIndex:h.menuItemTabIndex,...h.getStyles(`item`,{className:n,style:r,styles:i,classNames:t}),ref:Re(b,p),role:`menuitem`,disabled:d,"data-menu-item":!0,"data-disabled":d||f||void 0,"data-mantine-stop-propagation":!0,onClick:S,onMouseMove:C,onKeyDown:w({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:h.loop,dir:y,orientation:`vertical`,onKeyDown:D}),__vars:{"--menu-item-color":E?.isThemeColor&&E?.shade===void 0?`var(--mantine-color-${E.color}-6)`:T?.color,"--menu-item-hover":T?.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})]})});_h.classes=ch,_h.displayName=`@mantine/core/MenuItem`;var vh=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`MenuLabel`,null,e),s=rh();return(0,G.jsx)(J,{...s.getStyles(`label`,{className:n,style:r,styles:i,classNames:t}),...o})});vh.classes=ch,vh.displayName=`@mantine/core/MenuLabel`;var yh=(0,_.createContext)(null);function bh(e){let{value:t,defaultValue:n,onChange:r,children:i}=K(`MenuRadioGroup`,null,e),[a,o]=ze({value:t,defaultValue:n,finalValue:null,onChange:r});return(0,G.jsx)(yh,{value:{value:a,onChange:e=>o(e)},children:i})}bh.displayName=`@mantine/core/MenuRadioGroup`;function xh({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:d(e),height:d(e),...t},"aria-hidden":!0,...n,children:(0,G.jsx)(`circle`,{cx:`2.5`,cy:`2.5`,r:`2.5`,fill:`currentColor`})})}var Sh=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,...v}=K(`MenuRadioItem`,null,e),y=rh(),b=(0,_.use)(yh),x=p??(b?b.value===f:!1),S=h??y.checkIcon??(0,G.jsx)(xh,{size:5});return(0,G.jsx)(sh,{role:`menuitemradio`,checked:x,indicator:S,onSelect:()=>{x||(m?m(f):b&&b.onChange(f))},color:o,closeMenuOnClick:s,rightSection:c,disabled:u,dataDisabled:d,className:n,style:r,styles:i,classNames:t,buttonRef:g,others:v,children:l})});Sh.classes=ch,Sh.displayName=`@mantine/core/MenuRadioItem`;var Ch=`[data-menu-item]:not([data-disabled])`,wh=`[data-menu-active]`;function Th(e){return e?.closest(`[data-menu-dropdown]`)}function Eh(e){return e?Array.from(e.querySelectorAll(Ch)).filter(t=>t.closest(`[data-menu-dropdown]`)===e):[]}function Dh(e){e&&e.querySelectorAll(wh).forEach(t=>{t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}function Oh(e,t){Dh(t),e&&(e.setAttribute(`data-menu-active`,`true`),e.scrollIntoView({block:`nearest`}))}function kh(e){return e.findIndex(e=>e.hasAttribute(`data-menu-active`))}var Ah={clearSearchOnClose:!0},jh=q(e=>{let{classNames:t,styles:n,onKeyDown:r,onChange:i,size:a,clearSearchOnClose:o,ref:s,...c}=K(`MenuSearch`,Ah,e),l=rh(),u=(0,_.useRef)(null),d=Re(s,u),f=(0,_.useRef)(i);f.current=i,(0,_.useEffect)(()=>l.registerSearch(),[l.registerSearch]),(0,_.useEffect)(()=>{o?l.searchExitClearRef.current=()=>{f.current?.({currentTarget:{value:``}})}:l.searchExitClearRef.current=null},[o,l.searchExitClearRef]),(0,_.useEffect)(()=>{l.opened||Dh(Th(u.current))},[l.opened]);let p=F(i,e=>{Dh(Th(e.currentTarget))}),m=F(r,e=>{if(e.defaultPrevented)return;let t=Th(e.currentTarget),n=Eh(t);if(e.key===`ArrowDown`){if(e.preventDefault(),n.length===0)return;let r=kh(n);Oh(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=kh(n);Oh(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&&Oh(n[0],t);else if(e.key===`End`)e.preventDefault(),n.length>0&&Oh(n[n.length-1],t);else if(e.key===`Enter`){if(e.nativeEvent.isComposing||e.nativeEvent.keyCode===229)return;let t=n[kh(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)(Md,{"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`})});jh.classes=ch,jh.displayName=`@mantine/core/MenuSearch`;var Mh=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,_.useRef)(null),h=rh(),g=(0,_.use)(oh),v=hh({enabled:!h.hasSearch,opened:g?.opened??!1,getDropdown:()=>m.current}),y=F(u,e=>{v(e),e.ctrlKey||e.metaKey||e.altKey||e.key.length!==1||e.key===` `||e.stopPropagation()}),b=g?.getFloatingProps({onMouseEnter:o,onMouseLeave:s,onPointerEnter:c,onPointerLeave:l});return(0,G.jsx)(fl.Dropdown,{...p,...b,role:`menu`,"aria-orientation":`vertical`,ref:Re(f,m,g?.setFloating),...h.getStyles(`dropdown`,{className:n,style:r,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:y,children:d})});Mh.classes=ch,Mh.displayName=`@mantine/core/MenuSubDropdown`;var Nh=Vr(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=rh(),g=(0,_.use)(oh),v=Dn(),{dir:y}=Yr(),b=(0,_.useRef)(null),x=m,S=o?v.variantColorResolver({color:o,theme:v,variant:`light`}):void 0,C=o?Vt({color:o,theme:v}):null,T=F(x.onKeyDown,e=>{e.key===`ArrowRight`&&(g?.open(),g?.focusFirstItem()),e.key===`ArrowLeft`&&g?.parentContext&&(g.parentContext.close(),g.parentContext.focusParentItem())}),E=F(x.onClick,()=>{!d&&f&&h.closeDropdownImmediately()}),D=F(x.onMouseMove,()=>{if(!h.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`)})}),O=g?.getReferenceProps({onMouseEnter:x.onMouseEnter,onMouseLeave:x.onMouseLeave,onPointerEnter:x.onPointerEnter,onPointerLeave:x.onPointerLeave});return(0,G.jsxs)(vc,{onMouseDown:e=>e.preventDefault(),...m,...O,unstyled:h.unstyled,tabIndex:h.menuItemTabIndex,...h.getStyles(`item`,{className:n,style:r,styles:i,classNames:t}),ref:Re(b,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:E,onMouseMove:D,onKeyDown:w({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:h.loop,dir:y,orientation:`vertical`,onKeyDown:T}),__vars:{"--menu-item-color":C?.isThemeColor&&C?.shade===void 0?`var(--mantine-color-${C.color}-6)`:S?.color,"--menu-item-hover":S?.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)(Vd,{...h.getStyles(`chevron`),size:14})})]})});Nh.classes=ch,Nh.displayName=`@mantine/core/MenuSubItem`;function Ph({children:e,refProp:t}){if(!v(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 rh(),(0,G.jsx)(fl.Target,{refProp:t,popupType:`menu`,children:e})}Ph.displayName=`@mantine/core/MenuSubTarget`;var Fh={offset:0,position:`right-start`,safeAreaPolygon:!0,transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function Ih(e){let{children:t,closeDelay:n,openDelay:r,position:i,safeAreaPolygon:a,opened:o,onChange:s,...c}=K(`MenuSub`,Fh,e),l=Pe(),[u,d]=ze({value:o,finalValue:!1,onChange:s}),f=(0,_.use)(oh),p=rh(),{dir:m}=Yr(),h=jc(m,i),g=f?.registerOpenSub??p.registerOpenSub,v=(0,_.useRef)(null),y=(0,_.useCallback)(e=>{let t=v.current;return t&&t!==e&&t(),v.current=e,()=>{v.current===e&&(v.current=null)}},[]),b=(0,_.useRef)(d);b.current=d;let x=(0,_.useCallback)(()=>b.current(!0),[]),S=(0,_.useCallback)(()=>b.current(!1),[]);(0,_.useEffect)(()=>{if(u)return g(S)},[u,g,S]);let{context:C,refs:w}=tc({placement:h,open:u,onOpenChange:e=>{e?x():S()}}),{getReferenceProps:T,getFloatingProps:E}=ac([Hs(C,{handleClose:a?dc(typeof a==`object`?a:void 0):void 0,delay:{open:r,close:n}})]);return(0,G.jsx)(oh,{value:{opened:u,close:S,open:x,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:w.setReference,setFloating:w.setFloating,getReferenceProps:T,getFloatingProps:E,registerOpenSub:y},children:(0,G.jsx)(fl,{opened:u,onChange:e=>e?x():S(),withArrow:!1,id:l,position:i,...c,withinPortal:!1,children:t})})}Ih.extend=e=>e,Ih.displayName=`@mantine/core/MenuSub`,Ih.Target=Ph,Ih.Dropdown=Mh,Ih.Item=Nh;var Lh={refProp:`ref`};function Rh(e){let{children:t,refProp:n,...r}=K(`MenuTarget`,Lh,e),i=xt(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=rh(),o=i.props,s=F(o.onClick,()=>{a.trigger===`click`?a.toggleDropdown():a.trigger===`click-hover`&&(a.setOpenedViaClick(!0),a.opened||a.openDropdown())}),c=F(o.onMouseEnter,()=>(a.trigger===`hover`||a.trigger===`click-hover`)&&a.openDropdown()),l=F(o.onMouseLeave,()=>{(a.trigger===`hover`||a.trigger===`click-hover`&&!a.openedViaClick)&&a.closeDropdown()});return(0,G.jsx)(fl.Target,{refProp:n,popupType:`menu`,...r,children:(0,_.cloneElement)(i,{onClick:s,onMouseEnter:c,onMouseLeave:l,"data-expanded":a.opened?!0:void 0})})}Rh.displayName=`@mantine/core/MenuTarget`;var zh={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:[`mousedown`,`touchstart`,`keydown`],loop:!0,trigger:`click`,openDelay:0,closeDelay:100,menuItemTabIndex:-1,alignItemsLabels:`with-indicators`},Bh=q(e=>{let t=K(`Menu`,zh,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:v,variant:y,vars:b,menuItemTabIndex:x,keepMounted:S,withInitialFocusPlaceholder:C,attributes:w,onExitTransitionEnd:T,alignItemsLabels:E,checkIcon:D,...O}=t,k=ir({name:`Menu`,classes:ch,props:t,classNames:h,styles:g,unstyled:v,attributes:w}),[A,j]=ze({value:a,defaultValue:o,finalValue:!1,onChange:c}),[M,N]=(0,_.useState)(!1),P=()=>{j(!1),N(!1),A&&i?.()},F=()=>{j(!0),!A&&r?.()},I=()=>{A?P():F()},{openDropdown:L,closeDropdown:R}=Mc({open:F,close:P,closeDelay:m,openDelay:p}),B=(0,_.useRef)(null),ee=(0,_.useCallback)(e=>{let t=B.current;return t&&t!==e&&t(),B.current=e,()=>{B.current===e&&(B.current=null)}},[]),te=(0,_.useRef)(0),[ne,re]=(0,_.useState)(!1),ie=(0,_.useCallback)(()=>(te.current+=1,te.current===1&&re(!0),()=>{--te.current,te.current===0&&re(!1)}),[]),ae=(0,_.useRef)(null),oe=()=>{ae.current?.(),T?.()},se=e=>z(`[data-menu-item]`,`[data-menu-dropdown]`,e),{resolvedClassNames:V,resolvedStyles:H}=Un({classNames:h,styles:g,props:t});return(0,G.jsx)(nh,{value:{getStyles:k,opened:A,toggleDropdown:I,getItemIndex:se,openedViaClick:M,setOpenedViaClick:N,closeOnItemClick:l,closeDropdown:f===`click`?P:R,openDropdown:f===`click`?F:L,closeDropdownImmediately:P,loop:u,trigger:f,unstyled:v,menuItemTabIndex:x,withInitialFocusPlaceholder:C,registerOpenSub:ee,hasSearch:ne,registerSearch:ie,searchExitClearRef:ae,alignItemsLabels:E,checkIcon:D},children:(0,G.jsx)(fl,{returnFocus:!0,...O,opened:A,onChange:I,defaultOpened:o,trapFocus:!S&&s,closeOnEscape:d,__staticSelector:`Menu`,classNames:V,styles:H,unstyled:v,variant:y,keepMounted:S,onExitTransitionEnd:oe,children:n})})});Bh.displayName=`@mantine/core/Menu`,Bh.classes=ch,Bh.Item=_h,Bh.Label=vh,Bh.Dropdown=gh,Bh.Target=Rh,Bh.Divider=dh,Bh.Search=jh,Bh.Sub=Ih,Bh.CheckboxItem=lh,Bh.CheckboxGroup=ah,Bh.RadioItem=Sh,Bh.RadioGroup=bh,Bh.ContextMenu=uh;var[Vh,Hh]=y(`Modal component was not found in tree`),Uh={root:`m_9df02822`,content:`m_54c44539`,inner:`m_1f958f16`,header:`m_d0e2b9cd`},Wh=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ModalBody`,null,e),s=Hh();return(0,G.jsx)(ed,{...s.getStyles(`body`,{classNames:t,style:r,styles:i,className:n}),...o})});Wh.classes=Uh,Wh.displayName=`@mantine/core/ModalBody`;var Gh=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ModalCloseButton`,null,e),s=Hh();return(0,G.jsx)(td,{...s.getStyles(`close`,{classNames:t,style:r,styles:i,className:n}),...o})});Gh.classes=Uh,Gh.displayName=`@mantine/core/ModalCloseButton`;var Kh=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,__hidden:s,...c}=K(`ModalContent`,null,e),l=Hh(),u=l.scrollAreaComponent||ld;return(0,G.jsx)(nd,{...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 - (${d(l.yOffset)} * 2))`},children:o})})});Kh.classes=Uh,Kh.displayName=`@mantine/core/ModalContent`;var qh=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ModalHeader`,null,e),s=Hh();return(0,G.jsx)(rd,{...s.getStyles(`header`,{classNames:t,style:r,styles:i,className:n}),...o})});qh.classes=Uh,qh.displayName=`@mantine/core/ModalHeader`;var Jh=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ModalOverlay`,null,e),s=Hh();return(0,G.jsx)(od,{...s.getStyles(`overlay`,{classNames:t,style:r,styles:i,className:n}),...o})});Jh.classes=Uh,Jh.displayName=`@mantine/core/ModalOverlay`;var Yh={__staticSelector:`Modal`,closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:E(`modal`),transitionProps:{duration:200,transition:`fade-down`},yOffset:`5dvh`},Xh=St((e,{radius:t,size:n,yOffset:r,xOffset:i})=>({root:{"--modal-radius":t===void 0?void 0:j(t),"--modal-size":k(n,`modal-size`),"--modal-y-offset":d(r),"--modal-x-offset":d(i)}})),Zh=q(e=>{let t=K(`ModalRoot`,Yh,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,_=ir({name:m,classes:Uh,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:Xh});return(0,G.jsx)(Vh,{value:{yOffset:c,scrollAreaComponent:l,getStyles:_,fullScreen:d},children:(0,G.jsx)(Zu,{..._(`root`),"data-full-screen":d||void 0,"data-centered":f||void 0,"data-offset-scrollbars":l===mc.Autosize||void 0,unstyled:o,...g})})});Zh.classes=Uh,Zh.varsResolver=Xh,Zh.displayName=`@mantine/core/ModalRoot`;var Qh=(0,_.createContext)(null);function $h({children:e}){let[t,n]=(0,_.useState)([]),[r,i]=(0,_.useState)(E(`modal`)),[a]=(0,_.useState)(()=>new WeakSet);return(0,G.jsx)(Qh,{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})}$h.displayName=`@mantine/core/ModalStack`;var eg=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ModalTitle`,null,e),s=Hh();return(0,G.jsx)(cd,{...s.getStyles(`title`,{classNames:t,style:r,styles:i,className:n}),...o})});eg.classes=Uh,eg.displayName=`@mantine/core/ModalTitle`;var tg={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:E(`modal`),transitionProps:{duration:200,transition:`fade-down`},withOverlay:!0,withCloseButton:!0},ng=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`,tg,e),f=(0,_.use)(Qh),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,_.useEffect)(()=>{f&&l&&(c?f.addModal(l,u||E(`modal`)):f.removeModal(l))},[c,l,u]),(0,G.jsxs)(Zh,{radius:s,opened:c,zIndex:f&&l?f.getZIndex(l):u,...d,...m,children:[n&&(0,G.jsx)(Jh,{visible:h,transitionProps:f&&l?{duration:0}:void 0,...r}),(0,G.jsxs)(Kh,{radius:s,__hidden:f&&l&&c?l!==f.currentId:!1,children:[p&&(0,G.jsxs)(qh,{children:[t&&(0,G.jsx)(eg,{children:t}),i&&(0,G.jsx)(Gh,{...a})]}),(0,G.jsx)(Wh,{children:o})]})]})});ng.classes=Uh,ng.displayName=`@mantine/core/Modal`,ng.Root=Zh,ng.Overlay=Jh,ng.Content=Kh,ng.Body=Wh,ng.Header=qh,ng.Title=eg,ng.CloseButton=Gh,ng.Stack=$h;var rg=(0,_.createContext)(null),ig={root:`m_7cda1cd6`,"root--default":`m_44da308b`,"root--contrast":`m_e3a01f8`,label:`m_1e0e6180`,remove:`m_ae386778`,group:`m_1dcfd90b`},ag=(0,_.createContext)(null),og=St((e,{gap:t},{size:n})=>({group:{"--pg-gap":t===void 0?k(n,`pg-gap`):k(t)}})),sg=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,_.use)(rg)?.size||c||void 0,p=ir({name:`PillGroup`,classes:ig,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:og,stylesCtx:{size:f},rootSelector:`group`});return(0,G.jsx)(ag,{value:{size:f,disabled:l},children:(0,G.jsx)(J,{size:f,...p(`group`),...d})})});sg.classes=ig,sg.varsResolver=og,sg.displayName=`@mantine/core/PillGroup`;var cg={variant:`default`},lg=St((e,{radius:t},{size:n})=>({root:{"--pill-fz":k(n,`pill-fz`),"--pill-height":k(n,`pill-height`),"--pill-radius":t===void 0?void 0:j(t)}})),ug=q(e=>{let t=K(`Pill`,cg,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,...y}=t,b=(0,_.use)(ag),x=(0,_.use)(rg),S=m||b?.size||void 0,C=x?.variant===`filled`?`contrast`:c||`default`,w=ir({name:`Pill`,classes:ig,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:lg,stylesCtx:{size:S}});return(0,G.jsxs)(J,{component:`span`,variant:C,size:S,...w(`root`,{variant:C}),mod:[{"with-remove":u&&!h,disabled:h||b?.disabled},g],...y,children:[(0,G.jsx)(`span`,{...w(`label`),children:l}),u&&(0,G.jsx)(Nl,{variant:`transparent`,radius:p,tabIndex:-1,"aria-hidden":!0,unstyled:o,...f,...w(`remove`,{className:f?.className,style:f?.style}),onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),f?.onMouseDown?.(e)},onClick:e=>{e.stopPropagation(),d?.(),f?.onClick?.(e)}})]})});ug.classes=ig,ug.varsResolver=lg,ug.displayName=`@mantine/core/Pill`,ug.Group=sg;var dg={field:`m_45c4369d`},fg={type:`visible`},pg=q(e=>{let t=K(`PillsInputField`,fg,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,_.use)(rg),v=(0,_.use)(md),y=ir({name:`PillsInputField`,classes:dg,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,rootSelector:`field`}),b=l||g?.disabled;return(0,G.jsx)(J,{component:`input`,ref:Re(m,g?.fieldRef),"data-type":c,disabled:b,mod:[{disabled:b,pointer:d},f],...y(`field`),...h,id:v?.inputId||u,"aria-invalid":g?.hasError,"aria-describedby":v?.describedBy,type:`text`,onMouseDown:e=>!d&&e.stopPropagation()})});pg.classes=dg,pg.displayName=`@mantine/core/PillsInputField`;var mg={size:`sm`},hg=q(e=>{let{children:t,onMouseDown:n,onClick:r,size:i,disabled:a,__staticSelector:o,error:s,variant:c,...l}=K([`Input`,`InputWrapper`,`PillsInput`],mg,e),u=(0,_.useRef)(null);return(0,G.jsx)(rg,{value:{fieldRef:u,size:i,disabled:a,hasError:!!s,variant:c},children:(0,G.jsx)(Fd,{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})})});hg.displayName=`@mantine/core/PillsInput`,hg.classes=Fd.classes,hg.Field=pg;function gg(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 _g(e){return typeof e==`string`?e.trim().toLowerCase():e}function vg({data:e,value:t}){let n=t.map(_g);return e.reduce((e,t)=>(Vp(t)?e.push({group:t.group,items:t.items.filter(e=>n.indexOf(_g(e.value))===-1)}):n.indexOf(_g(t.value))===-1&&e.push(t),e),[])}var yg={xs:41,sm:50,md:60,lg:72,xl:89},bg={maxValues:1/0,withCheckIcon:!0,checkIconPosition:`left`,hiddenInputValuesDivider:`,`,clearSearchOnChange:!0,openOnFocus:!0,size:`sm`},xg=Br(e=>{let t=K([`Input`,`InputWrapper`,`MultiSelect`],bg,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:v,onDropdownClose:y,selectFirstOptionOnChange:b,selectFirstOptionOnDropdownOpen:x,onOptionSubmit:S,comboboxProps:C,filter:w,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:B,leftSection:ee,leftSectionWidth:te,leftSectionPointerEvents:ne,leftSectionProps:re,inputContainer:ie,inputWrapperOrder:ae,withAsterisk:oe,labelProps:se,descriptionProps:V,errorProps:H,successProps:ce,wrapperProps:le,description:U,label:W,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:Oe,hiddenInputValuesDivider:ke,required:Ae,mod:je,renderOption:Me,renderPill:Ne,onRemove:Fe,onClear:Ie,onMaxValues:Le,scrollAreaProps:Re,chevronColor:Be,attributes:Ve,clearSearchOnChange:He,openOnFocus:Ue,loading:We,loadingPosition:Ge,withPillsReorder:Ke,...qe}=t,Je=Pe(Ce),Ye=Qp({id:Je,label:W,labelProps:se,inputWrapperOrder:ae}),Xe=Bf(m),Ze=Vf(Xe),Qe=(0,_.useRef)({}),$e=hp({opened:h,defaultOpened:g,onDropdownOpen:()=>{v?.(),x&&$e.selectFirstOption()},onDropdownClose:()=>{y?.(),$e.resetSelectedOption()}}),{styleProps:et,rest:{type:tt,autoComplete:nt,...rt}}=fr(qe),[it,at]=ze({value:l,defaultValue:u,finalValue:[],onChange:d}),{getPillProps:ot,getListProps:st,handleInputKeyDown:ct}=Zp({value:it,onChange:at,enabled:Ke&&!N&&!M}),[lt,ut]=ze({value:k,defaultValue:A,finalValue:``,onChange:j}),dt=e=>{ut(e),$e.resetSelectedOption()},ft=ir({name:`MultiSelect`,classes:{},props:t,classNames:n,styles:a,unstyled:o,attributes:Ve}),{resolvedClassNames:pt,resolvedStyles:mt}=Un({props:t,styles:a,classNames:n}),ht=e=>{f?.(e),!e.defaultPrevented&&(e.key===` `&&!pe&&(e.preventDefault(),$e.toggleDropdown()),e.key===`Backspace`&<.length===0&&it.length>0&&!M&&(Fe?.(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 Ne?(0,G.jsx)(_.Fragment,{children:Ne({option:n,value:e,onRemove:()=>{at(it.filter(t=>e!==t)),Fe?.(e)},disabled:N,reorderProps:r})},`${e}-${t}`):(0,G.jsx)(ug,{withRemoveButton:!M&&!Ze[`${e}`]?.disabled,onRemove:()=>{at(it.filter(t=>e!==t)),Fe?.(e)},unstyled:o,disabled:N,...ft(`pill`),...r,children:n?.label||e},`${e}-${t}`)});(0,_.useEffect)(()=>{b&&$e.selectFirstOption()},[b,lt]),(0,_.useEffect)(()=>{it.forEach(e=>{`${e}`in Ze&&(Qe.current[`${e}`]=Ze[`${e}`])})},[Ze,it]);let _t=(0,G.jsx)(vp.ClearButton,{...Ee,onClear:()=>{Ie?.(),at([]),dt(``)}}),vt=vg({data:Xe,value:it}),yt=we&&it.length>0&&!N&&!M,bt=yt?{paddingInlineEnd:yg[c]??yg.sm}:void 0;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(vp,{store:$e,classNames:pt,styles:mt,unstyled:o,size:c,readOnly:M,__staticSelector:`MultiSelect`,attributes:Ve,floatingHeight:O,onOptionSubmit:e=>{S?.(e),He&&dt(``),$e.updateSelectedOptionIndex(`selected`),it.includes(Ze[`${e}`].value)?(at(it.filter(t=>t!==Ze[`${e}`].value)),Fe?.(Ze[`${e}`].value)):it.length<fe?at([...it,Ze[`${e}`].value]):Le?.()},...C,children:[(0,G.jsx)(vp.DropdownTarget,{children:(0,G.jsx)(hg,{...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)(vp.Chevron,{size:c,error:ue,unstyled:o,color:Be}),__clearSection:_t,__clearable:yt,__clearSectionMode:Te,rightSection:L,rightSectionPointerEvents:z||`none`,rightSectionWidth:R,rightSectionProps:B,leftSection:ee,leftSectionWidth:te,leftSectionPointerEvents:ne,leftSectionProps:re,loading:We,loadingPosition:Ge,inputContainer:ie,inputWrapperOrder:ae,withAsterisk:oe,labelProps:se,descriptionProps:V,errorProps:H,successProps:ce,wrapperProps:le,description:U,label:W,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:Ae,mod:je,attributes:Ve,children:(0,G.jsxs)(ug.Group,{attributes:Ve,disabled:N,unstyled:o,...ft(`pillsList`,{style:bt}),...st(),children:[gt,(0,G.jsx)(vp.EventsTarget,{autoComplete:nt,withExpandedAttribute:!0,children:(0,G.jsx)(hg.Field,{...rt,id:Je,placeholder:Oe,type:!pe&&!Oe?`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(ym(e)){if(!M){let t=gg(Ze,e.currentTarget.value);t&&!it.includes(t.value)&&it.length<fe&&at([...it,t.value])}}else dt(e.currentTarget.value),pe&&$e.openDropdown(),b&&$e.selectFirstOption()},disabled:N,readOnly:M||!pe,pointer:!pe})})]})})}),(0,G.jsx)(qp,{data:ve?vt:Xe,hidden:M||N,filter:w,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:Me,scrollAreaProps:Re})]}),(0,G.jsx)(vp.HiddenInput,{name:xe,valuesDivider:ke,value:it,form:Se,disabled:N,...De})]})});xg.classes={...Fd.classes,...vp.classes},xg.displayName=`@mantine/core/MultiSelect`;var Sg={root:`m_f0824112`,description:`m_57492dcc`,section:`m_690090b5`,label:`m_1f6ac4c4`,body:`m_f07af9d2`,children:`m_e17b862f`,chevron:`m_1fd8a00b`},Cg=St((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":A(r)}}}),wg=Vr(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=ir({name:`NavLink`,props:t,classes:Sg,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:C,vars:s,varsResolver:Cg}),[k,A]=ze({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)(vc,{...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)(Vd,{...O(`chevron`)}):h})]}),j&&(0,G.jsx)(Zr,{expanded:k,keepMounted:E,...O(`collapse`),children:(0,G.jsx)(`div`,{...O(`children`),children:d})})]})});wg.classes=Sg,wg.varsResolver=Cg,wg.displayName=`@mantine/core/NavLink`;var Tg={root:`m_a513464`,icon:`m_a4ceffb`,loader:`m_b0920b15`,body:`m_a49ed24`,title:`m_3feedf16`,description:`m_3d733a3a`,closeButton:`m_919a4d88`},Eg={withCloseButton:!0},Dg=St((e,{radius:t,color:n})=>({root:{"--notification-radius":t===void 0?void 0:j(t),"--notification-color":n?Ht(n,e):void 0}})),Og=q(e=>{let t=K(`Notification`,Eg,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=ir({name:`Notification`,classes:Tg,props:t,className:n,style:m,classNames:p,styles:h,unstyled:g,attributes:x,vars:_,varsResolver:Dg});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)(bl,{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)(Nl,{iconSize:16,color:`gray`,...f,unstyled:g,onClick:e=>{f?.onClick?.(e),d?.()},...C(`closeButton`)})]})});Og.classes=Tg,Og.varsResolver=Dg,Og.displayName=`@mantine/core/Notification`;function kg(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 Ag;(function(e){e.event=`event`,e.props=`prop`})(Ag||={});function jg(){}function eee(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 Mg(e){return!!(e||``).match(/\d/)}function Ng(e){return e==null}function Pg(e){return typeof e==`number`&&isNaN(e)}function Fg(e){return Ng(e)||Pg(e)||typeof e==`number`&&!isFinite(e)}function Ig(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,`\\$&`)}function Lg(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 Rg(e,t,n){var r=Lg(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 zg(e){var t=(0,_.useRef)(e);return t.current=e,(0,_.useRef)(function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}).current}function Bg(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 Vg(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 Hg(e,t,n){for(var r=``,i=n?`0`:``,a=0;a<=t-1;a++)r+=e[a]||i;return r}function Ug(e,t){return Array(t+1).join(e)}function Wg(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.`+Ug(`0`,Math.abs(o))+i:o>=s?i+=Ug(`0`,o-s):i=(i.substring(0,o)||`0`)+`.`+i.substring(o),n+i}function Gg(e,t,n){if([``,`-`].indexOf(e)!==-1)return e;var r=(e.indexOf(`.`)!==-1||n)&&t,i=Bg(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=Hg(l[1]||``,t,n),f=s?`-`:``,p=r?`.`:``;return``+f+u+p+d}function Kg(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 qg=eee(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}}}),Jg=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function Yg(e,t,n){return Math.min(Math.max(e,t),n)}function Xg(e){return Math.max(e.selectionStart,e.selectionEnd)}function Zg(){return typeof navigator<`u`&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function Qg(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:``}}function $g(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function e_(e,t,n,r,i,a,o){o===void 0&&(o=$g);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 t_(e,t,n,r){var i=e.length;if(t=Yg(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 n_(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(Mg(e[n])||Mg(e[n-1]));return t}function r_(e,t,n,r,i,a){a===void 0&&(a=jg);var o=zg(function(e,t){var n,a;return Fg(e)?(a=``,n=``):typeof e==`number`||t?(a=typeof e==`number`?Wg(e):e,n=r(a)):(a=i(e,void 0),n=r(a)),{formattedValue:n,numAsString:a}}),s=(0,_.useState)(function(){return o(Ng(e)?t:e,n)}),c=s[0],l=s[1],u=zg(function(e,t){e.formattedValue!==c.formattedValue&&l({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}),d=e,f=n;Ng(e)&&(d=c.numAsString,f=!0);var p=o(d,f);return(0,_.useMemo)(function(){l(p)},[p.formattedValue]),(0,_.useEffect)(function(){if(!Ng(t)&&Ng(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:Ag.props})}},[]),[c,u]}function i_(e){return e.replace(/[^0-9]/g,``)}function a_(e){return e}function o_(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=a_);var s=e.removeFormatting;s===void 0&&(s=i_);var c=e.defaultValue,l=e.valueIsNumericString,u=e.onValueChange,d=e.isAllowed,f=e.onChange;f===void 0&&(f=jg);var p=e.onKeyDown;p===void 0&&(p=jg);var m=e.onMouseUp;m===void 0&&(m=jg);var h=e.onFocus;h===void 0&&(h=jg);var g=e.onBlur;g===void 0&&(g=jg);var v=e.value,y=e.getCaretBoundary;y===void 0&&(y=n_);var b=e.isValidInputCharacter;b===void 0&&(b=Mg);var x=e.isCharacterSame,S=kg(e,[`type`,`displayType`,`customInput`,`renderText`,`getInputRef`,`format`,`removeFormatting`,`defaultValue`,`valueIsNumericString`,`onValueChange`,`isAllowed`,`onChange`,`onKeyDown`,`onMouseUp`,`onFocus`,`onBlur`,`value`,`getCaretBoundary`,`isValidInputCharacter`,`isCharacterSame`]),C=r_(v,c,!!l,o,s,u),w=C[0],T=w.formattedValue,E=w.numAsString,D=C[1],O=(0,_.useRef)(),k=(0,_.useRef)({formattedValue:T,numAsString:E}),A=function(e,t){k.current={formattedValue:e.formattedValue,numAsString:e.value},D(e,t)},j=(0,_.useState)(!1),M=j[0],N=j[1],P=(0,_.useRef)(null),F=(0,_.useRef)({setCaretTimeout:null,focusTimeout:null});(0,_.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)&&(Kg(e,t),F.current.setCaretTimeout=setTimeout(function(){e.value===n&&e.selectionStart!==t&&Kg(e,t)},0))},z=function(e,t,n){return t_(e,t,y(e),n)},B=function(e,t,n){var r=y(t),i=e_(t,T,e,n,r,b,x);return i=t_(t,i,r),i},ee=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=Xg(n);n.value=t,o=B(s,t,c),o!==void 0&&R(n,o,t)}t!==T&&A(L(t,a),{event:i,source:r})};(0,_.useEffect)(function(){var e=k.current,t=e.formattedValue,n=e.numAsString;(T!==t||E!==n)&&A(L(T,E),{event:void 0,source:Ag.props})},[T,E]);var te=P.current?Xg(P.current):void 0;(typeof window<`u`?_.useLayoutEffect:_.useEffect)(function(){var e=P.current;if(T!==k.current.formattedValue&&e){var t=B(k.current.formattedValue,T,te);e.value=T,R(e,t,T)}},[T]);var ne=function(e,t,n){var r=t.target,i=O.current?Jg(O.current,r.selectionEnd):qg(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=B(e,T,Xg(l));return l.value=T,R(l,u,T),!1}return ee({formattedValue:c,numAsString:o,inputValue:e,event:t,source:n,input:t.target}),!0},re=function(e,t){t===void 0&&(t=0),O.current={selectionStart:e.selectionStart,selectionEnd:e.selectionEnd+t}},ie=function(e){var t=e.target.value;ne(t,e,Ag.event)&&f(e),O.current=void 0},ae=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),re(t,s);else{var l=o;c?(l=z(a,o,n===`ArrowLeft`?`left`:`right`),l!==o&&e.preventDefault()):n===`Delete`&&!b(a[o])?l=z(a,o,`right`):n===`Backspace`&&!b(a[o])&&(l=z(a,o,`left`)),l!==o&&R(t,l,a),p(e),re(t,s)}},oe=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),re(t)},se=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)},V=function(e){P.current=null,clearTimeout(F.current.focusTimeout),clearTimeout(F.current.setCaretTimeout),g(e)},H=M&&Zg()?`numeric`:void 0,ce=Object.assign({inputMode:H},S,{type:t,value:T,onChange:ie,onKeyDown:ae,onMouseUp:oe,onFocus:se,onBlur:V});if(n===`text`)return i?_.createElement(_.Fragment,null,i(T,S)||null):_.createElement(`span`,Object.assign({},S,{ref:a}),T);if(r){var le=r;return _.createElement(le,Object.assign({},ce,{ref:a}))}return _.createElement(`input`,Object.assign({},ce,{ref:a}))}function s_(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=c_(t),l=c.thousandSeparator,u=c.decimalSeparator,d=n!==0&&e.indexOf(`.`)!==-1||n&&r,f=Bg(e,o),p=f.beforeDecimal,m=f.afterDecimal,h=f.addNegation;return n!==void 0&&(m=Hg(m,n,!!r)),l&&(p=Rg(p,l,s)),i&&(p=i+p),a&&(m+=a),h&&(p=`-`+p),e=p+(d&&u||``)+m,e}function c_(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 l_(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 u_(e,t){return RegExp(`(^-)|[0-9]|`+Ig(e),t?`g`:void 0)}function d_(e,t,n){return e===``||!t?.match(/\d/)&&!n?.match(/\d/)&&typeof e==`string`&&!isNaN(Number(e))}function f_(e,t,n){var r;t===void 0&&(t=Qg(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=c_(n),p=f.allowedDecimalSeparators,m=f.decimalSeparator,h=e[d]===m;if(Mg(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=l_(y?`-`+e:e,i),e=(e.match(u_(m,!0))||[]).join(``);var O=e.indexOf(m);e=e.replace(new RegExp(Ig(m),`g`),function(e,t){return t===O?`.`:``});var k=Bg(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 p_(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 m_(e){var t=c_(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
|
+
`},Gu=0,Ku=[];function qu(e){var t=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),i=_.useState(Gu++)[0],a=_.useState(hu)[0],o=_.useRef(e);_.useEffect(function(){o.current=e},[e]),_.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Gl([e.lockRef.current],(e.shards||[]).map(Hu),!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=_.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Bu(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=Nu(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Nu(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 zu(h,t,e,h===`h`?s:c,!0)},[]),c=_.useCallback(function(e){var n=e;if(Ku.length&&Ku[Ku.length-1]===a){var r=`deltaY`in n?Vu(n):Bu(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Uu(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var c=(o.current.shards||[]).map(Hu).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=_.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Ju(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=_.useCallback(function(e){n.current=Bu(e),r.current=void 0},[]),d=_.useCallback(function(t){l(t.type,Vu(t),t.target,s(t,e.lockRef.current))},[]),f=_.useCallback(function(t){l(t.type,Bu(t),t.target,s(t,e.lockRef.current))},[]);_.useEffect(function(){return Ku.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,Ou),document.addEventListener(`touchmove`,c,Ou),document.addEventListener(`touchstart`,u,Ou),function(){Ku=Ku.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Ou),document.removeEventListener(`touchmove`,c,Ou),document.removeEventListener(`touchstart`,u,Ou)}},[]);var p=e.removeScrollBar,m=e.inert;return _.createElement(_.Fragment,null,m?_.createElement(a,{styles:Wu(i)}):null,p?_.createElement(Tu,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ju(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Yu=au(ou,qu),Xu=_.forwardRef(function(e,t){return _.createElement(cu,Ul({},e,{ref:t,sideCar:Yu}))});Xu.classNames=cu.classNames;function Zu({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:D,shouldLockScroll:O,setTitleMounted:k,setBodyMounted:j}=Hl({id:i,transitionProps:a,opened:n,trapFocus:c,closeOnEscape:l,onClose:r,returnFocus:u,handledEscapeEvents:S}),{key:M,...N}=x||{};return(0,G.jsx)(Hc,{...p,withinPortal:f,children:(0,G.jsx)(zl,{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:D,setTitleMounted:k,setBodyMounted:j,trapFocus:c,closeOnEscape:l,zIndex:g,unstyled:b},children:(0,G.jsx)(Xu,{enabled:O&&m,...N,children:(0,G.jsx)(J,{...C,id:w,__vars:{...y,"--mb-z-index":(g||E(`modal`)).toString(),"--mb-shadow":P(_),"--mb-padding":A(v)},children:h})},M)})})}Zu.displayName=`@mantine/core/ModalBase`;function Qu(){let e=Bl();return(0,_.useEffect)(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var $u={title:`m_615af6c9`,header:`m_b5489c3c`,inner:`m_60c222c7`,content:`m_fd1ab0aa`,close:`m_606cb269`,body:`m_5df29311`};function ed({className:e,...t}){let n=Qu(),r=Bl();return(0,G.jsx)(J,{id:n,className:wt({[$u.body]:!r.unstyled},e),...t})}ed.displayName=`@mantine/core/ModalBaseBody`;function td({className:e,onClick:t,...n}){let r=Bl();return(0,G.jsx)(Nl,{...n,onClick:e=>{r.onClose(),t?.(e)},className:wt({[$u.close]:!r.unstyled},e),unstyled:r.unstyled})}td.displayName=`@mantine/core/ModalBaseCloseButton`;function nd({transitionProps:e,className:t,innerProps:n,onKeyDown:r,style:i,ref:a,...o}){let s=Bl();return(0,G.jsx)(Jc,{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:wt({[$u.inner]:!s.unstyled},n.className),children:(0,G.jsx)(tl,{active:s.opened&&s.trapFocus,innerRef:a,children:(0,G.jsx)(Cc,{...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:wt({[$u.content]:!s.unstyled},t),unstyled:s.unstyled,children:o.children})})})})}nd.displayName=`@mantine/core/ModalBaseContent`;function rd({className:e,...t}){let n=Bl();return(0,G.jsx)(J,{component:`header`,className:wt({[$u.header]:!n.unstyled},e),...t})}rd.displayName=`@mantine/core/ModalBaseHeader`;var id={duration:200,timingFunction:`ease`,transition:`fade`};function ad(e){let t=Bl();return{...id,...t.transitionProps,...e}}function od({onClick:e,transitionProps:t,style:n,visible:r,...i}){let a=Bl(),o=ad(t);return(0,G.jsx)(Jc,{mounted:r===void 0?a.opened:r,...o,transition:`fade`,children:t=>(0,G.jsx)(Ic,{fixed:!0,style:[n,t],zIndex:a.zIndex,unstyled:a.unstyled,onClick:t=>{e?.(t),a.closeOnClickOutside&&a.onClose()},...i})})}od.displayName=`@mantine/core/ModalBaseOverlay`;function sd(){let e=Bl();return(0,_.useEffect)(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}function cd({className:e,...t}){let n=sd(),r=Bl();return(0,G.jsx)(J,{component:`h2`,className:wt({[$u.title]:!r.unstyled},e),id:n,...t})}cd.displayName=`@mantine/core/ModalBaseTitle`;function ld({children:e}){return(0,G.jsx)(G.Fragment,{children:e})}var ud=(0,_.createContext)({size:`sm`}),dd=q(e=>{let t=K(`InputClearButton`,null,e),{size:n,variant:r,vars:i,classNames:a,styles:o,...s}=t,c=(0,_.use)(ud),{resolvedClassNames:l,resolvedStyles:u}=Un({classNames:a,styles:o,props:t});return(0,G.jsx)(Nl,{variant:r||`transparent`,size:n||c?.size||`sm`,classNames:l,styles:u,__staticSelector:`InputClearButton`,style:{pointerEvents:`all`,background:`var(--input-bg)`,...s.style},...s})});dd.displayName=`@mantine/core/InputClearButton`;var fd={xs:7,sm:8,md:10,lg:12,xl:15};function pd({__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:fd[i]},children:[o,n||r]}):n===null?null:n||o||r}var md=(0,_.createContext)({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),hd={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`},gd=St((e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${M(t)} - ${d(2)})`}})),_d=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,_.use)(md),p=ir({name:[`InputWrapper`,c],props:t,classes:hd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,rootSelector:`description`,vars:s,varsResolver:gd}),m=l&&f?.getStyles||p;return(0,G.jsx)(J,{component:`p`,...m(`description`,f?.getStyles?{className:r,style:i}:void 0),...d})});_d.classes=hd,_d.varsResolver=gd,_d.displayName=`@mantine/core/InputDescription`;var vd=St((e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${M(t)} - ${d(2)})`}})),yd=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=ir({name:[`InputWrapper`,l],props:t,classes:hd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,rootSelector:`error`,vars:s,varsResolver:vd}),p=(0,_.use)(md),m=u&&p?.getStyles||f;return(0,G.jsx)(J,{component:`p`,...m(`error`,p?.getStyles?{className:r,style:i}:void 0),...d})});yd.classes=hd,yd.varsResolver=vd,yd.displayName=`@mantine/core/InputError`;var bd={labelElement:`label`},xd=St((e,{size:t})=>({label:{"--input-label-size":M(t),"--input-asterisk-color":void 0}})),Sd=q(e=>{let t=K(`InputLabel`,bd,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,v=ir({name:[`InputWrapper`,p],props:t,classes:hd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,rootSelector:`label`,vars:s,varsResolver:xd}),y=(0,_.use)(md),b=y?.getStyles||v,x=g.component||c,S=typeof x!=`string`||x===`label`;return(0,G.jsxs)(J,{...b(`label`,y?.getStyles?{className:r,style:i}:void 0),component:c,htmlFor:S?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`,{...b(`required`),"aria-hidden":!0,children:` *`})]})});Sd.classes=hd,Sd.varsResolver=xd,Sd.displayName=`@mantine/core/InputLabel`;var Cd=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=ir({name:[`InputPlaceholder`,c],props:t,classes:hd,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})});Cd.classes=hd,Cd.displayName=`@mantine/core/InputPlaceholder`;var wd=St((e,{size:t})=>({success:{"--input-success-size":t===void 0?void 0:`calc(${M(t)} - ${d(2)})`}})),Td=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=ir({name:[`InputWrapper`,l],props:t,classes:hd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,rootSelector:`success`,vars:s,varsResolver:wd}),p=(0,_.use)(md),m=u&&p?.getStyles||f;return(0,G.jsx)(J,{component:`p`,...m(`success`,p?.getStyles?{className:r,style:i}:void 0),...d})});Td.classes=hd,Td.varsResolver=wd,Td.displayName=`@mantine/core/InputSuccess`;function Ed(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 Dd={labelElement:`label`,inputContainer:e=>e,inputWrapperOrder:[`label`,`description`,`input`,`error`]},Od=St((e,{size:t})=>({label:{"--input-label-size":M(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${M(t)} - ${d(2)})`},success:{"--input-success-size":t===void 0?void 0:`calc(${M(t)} - ${d(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${M(t)} - ${d(2)})`}})),kd=q(e=>{let t=K(`InputWrapper`,Dd,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:v,descriptionProps:y,errorProps:b,successProps:x,labelElement:S,children:C,withAsterisk:w,id:T,required:E,__stylesApiProps:D,mod:O,attributes:k,...A}=t,j=ir({name:[`InputWrapper`,u],props:D||t,classes:hd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:k,vars:s,varsResolver:Od}),M={size:c,variant:l,__staticSelector:u},N=Pe(T),P=typeof w==`boolean`?w:E,F=b?.id||`${N}-error`,I=x?.id||`${N}-success`,L=y?.id||`${N}-description`,R=N,z=!!m&&typeof m!=`boolean`,B=!!h&&typeof h!=`boolean`&&!m,ee=!!g,te=z&&f.includes(`error`),ne=B&&f.includes(`error`),re=ee&&f.includes(`description`),ie=`${te?F:``} ${ne?I:``} ${re?L:``}`,ae=ie.trim().length>0?ie.trim():void 0,oe=v?.id||`${N}-label`,se=p&&(0,G.jsx)(Sd,{labelElement:S,id:oe,htmlFor:R,required:P,...M,...v,children:p},`label`),V=ee&&(0,G.jsx)(_d,{...y,...M,size:y?.size||M.size,id:y?.id||L,children:g},`description`),H=(0,G.jsx)(_.Fragment,{children:d(C)},`input`),ce=z&&(0,_.createElement)(yd,{...b,...M,size:b?.size||M.size,key:`error`,id:b?.id||F},m),le=B&&(0,_.createElement)(Td,{...x,...M,size:x?.size||M.size,key:`success`,id:x?.id||I},h),U=f.map(e=>{switch(e){case`label`:return se;case`input`:return H;case`description`:return V;case`error`:return ce||le;default:return null}});return(0,G.jsx)(md,{value:{getStyles:j,describedBy:ae,inputId:R,labelId:se&&f.includes(`label`)?oe:void 0,...Ed(f,{hasDescription:ee,hasError:z||B})},children:(0,G.jsx)(J,{variant:l,size:c,mod:[{error:!!m,success:!!h&&!m},O],id:S===`label`?void 0:T,...j(`root`),...A,children:U})})});kd.classes=hd,kd.varsResolver=Od,kd.displayName=`@mantine/core/InputWrapper`;var Ad={variant:`default`,leftSectionPointerEvents:`none`,rightSectionPointerEvents:`none`,withAria:!0,withErrorStyles:!0,withSuccessStyles:!0,size:`sm`,loading:!1,loadingPosition:`right`},jd=St((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":k(t.size,`input-height`),"--input-fz":M(t.size),"--input-radius":t.radius===void 0?void 0:j(t.radius),"--input-left-section-width":t.leftSectionWidth===void 0?void 0:d(t.leftSectionWidth),"--input-right-section-width":t.rightSectionWidth===void 0?void 0:d(t.rightSectionWidth),"--input-padding-y":t.multiline?k(t.size,`input-padding-y`):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}})),Md=Vr(e=>{let t=K(`Input`,Ad,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:v,rightSection:y,rightSectionProps:b,rightSectionWidth:x,rightSectionPointerEvents:S,leftSectionPointerEvents:C,variant:w,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:B,loadingPosition:ee,__bottomSection:te,__bottomSectionProps:ne,rootRef:re,dir:ie,...ae}=t,{styleProps:oe,rest:se}=fr(ae),V=(0,_.use)(md),H={offsetBottom:V?.offsetBottom,offsetTop:V?.offsetTop},ce=ir({name:[`Input`,c],props:l||t,classes:hd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:F,stylesCtx:H,rootSelector:`wrapper`,vars:T,varsResolver:jd}),le=A?{required:s,disabled:m,"aria-invalid":f?!0:void 0,"aria-describedby":V?.describedBy,id:V?.inputId||k}:{},U=B?(0,G.jsx)(bl,{size:ee===`left`?`calc(var(--input-left-section-size) / 2)`:`calc(var(--input-right-section-size) / 2)`}):null,W=B&&ee===`left`?U:h,ue=pd({__clearable:L,__clearSection:I,rightSection:B&&ee===`right`?U:y,__defaultRightSection:z,size:u,__clearSectionMode:R});return(0,G.jsx)(ud,{value:{size:u||`sm`},children:(0,G.jsxs)(J,{ref:re,dir:ie,...ce(`wrapper`),...oe,...d,mod:[{error:!!f&&j,success:!!p&&!f&&M,pointer:E,disabled:m,multiline:D,withRightSection:!!ue,withLeftSection:!!W,withBottomSection:!!te},N],variant:w,size:u,children:[W&&(0,G.jsx)(`div`,{...g,"data-position":`left`,...ce(`section`,{className:g?.className,style:g?.style}),children:W}),(0,G.jsx)(J,{component:`input`,...se,...le,required:s,mod:{disabled:m,error:!!f&&j,success:!!p&&!f&&M},variant:w,__size:P,...ce(`input`)}),te&&(0,G.jsx)(`div`,{...ne,...ce(`bottomSection`,{className:ne?.className,style:ne?.style}),children:te}),ue&&(0,G.jsx)(`div`,{...b,"data-position":`right`,...ce(`section`,{className:b?.className,style:b?.style}),children:ue})]})})});Md.classes=hd,Md.varsResolver=jd,Md.Wrapper=kd,Md.Label=Sd,Md.Error=yd,Md.Success=Td,Md.Description=_d,Md.Placeholder=Cd,Md.ClearButton=dd,Md.displayName=`@mantine/core/Input`;function Nd(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}=fr(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 Pd={__staticSelector:`InputBase`,withAria:!0,size:`sm`},Fd=Vr(e=>{let{inputProps:t,wrapperProps:n,...r}=Nd(`InputBase`,Pd,e);return(0,G.jsx)(Md.Wrapper,{...n,children:(0,G.jsx)(Md,{...t,...r})})});Fd.classes={...Md.classes,...Md.Wrapper.classes},Fd.displayName=`@mantine/core/InputBase`;function Id(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 Ld({target:e,parent:t,ref:n,displayAfterTransitionEnd:r,onTransitionStart:i,onTransitionEnd:a}){let o=(0,_.useRef)(-1),s=(0,_.useRef)(e),[c,l]=(0,_.useState)(!1),[u,d]=(0,_.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=fi(s.borderTopWidth)+fi(c.borderTopWidth),u=fi(s.borderLeftWidth)+fi(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,_.useRef)(null),h=(0,_.useRef)(null),g=(0,_.useRef)(null);return(0,_.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),g.current=new MutationObserver(()=>{t.contains(e)&&f()}),g.current.observe(t,{childList:!0,subtree:!0})),()=>{m.current?.disconnect(),h.current?.disconnect(),g.current?.disconnect()}},[t,e]),(0,_.useEffect)(()=>{if(t){let e=e=>{Id(e.target,t)&&(p(),d(!1))};return t.addEventListener(`transitionend`,e),()=>{t.removeEventListener(`transitionend`,e)}}},[t]),(0,_.useEffect)(()=>{if(n.current&&a){let e=e=>{e.propertyName===`transform`&&a()};return n.current.addEventListener(`transitionend`,e),()=>{n.current?.removeEventListener(`transitionend`,e)}}},[a]),We(()=>{ht()!==`test`&&l(!0)},20,{autoInvoke:!0}),Ke(e=>{e.forEach(e=>{e.type===`attributes`&&e.attributeName===`dir`&&p()})},{attributes:!0,attributeFilter:[`dir`]},()=>document.documentElement),{initialized:c,hidden:u}}var Rd={root:`m_96b553a6`},zd=St((e,{transitionDuration:t},{shouldReduceMotion:n})=>({root:{"--transition-duration":e.respectReducedMotion&&n?`0ms`:typeof t==`number`?`${t}ms`:t||`150ms`}})),Bd=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,...v}=t,y=ir({name:`FloatingIndicator`,classes:Rd,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:zd,stylesCtx:{shouldReduceMotion:Be()}}),b=(0,_.useRef)(null),{initialized:x,hidden:S}=Ld({target:c,parent:l,ref:b,displayAfterTransitionEnd:f,onTransitionStart:p,onTransitionEnd:m}),C=Re(g,b);return!c||!l?null:(0,G.jsx)(J,{ref:C,mod:[{initialized:x,hidden:S},d],...y(`root`),...v})});Bd.displayName=`@mantine/core/FloatingIndicator`,Bd.classes=Rd,Bd.varsResolver=zd;function Vd({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:d(t),height:d(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`})})}Vd.displayName=`@mantine/core/AccordionChevron`;var Hd={root:`m_66836ed3`,wrapper:`m_a5d60502`,body:`m_667c2793`,title:`m_6a03f287`,label:`m_698f4f23`,icon:`m_667f2a6a`,message:`m_7fa78076`,closeButton:`m_87f54839`},Ud=St((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:j(t),"--alert-bg":n||r?a.background:void 0,"--alert-color":a.color,"--alert-bd":n||r?a.border:void 0}}}),Wd=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=ir({name:`Alert`,classes:Hd,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:b,vars:s,varsResolver:Ud}),C=Pe(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)(Nl,{...S(`closeButton`),onClick:h,variant:`transparent`,size:16,iconSize:16,"aria-label":g,unstyled:o})]})})});Wd.classes=Hd,Wd.varsResolver=Ud,Wd.displayName=`@mantine/core/Alert`;var Gd={root:`m_b6d8b162`};function Kd(e){if(e===`start`)return`start`;if(e===`end`||e)return`end`}var qd={inherit:!1},Jd=St((e,{variant:t,lineClamp:n,gradient:r,size:i,textWrap:a})=>({root:{"--text-fz":M(i),"--text-lh":N(i),"--text-gradient":t===`gradient`?Gt(r,e):void 0,"--text-line-clamp":typeof n==`number`?n.toString():void 0,"--text-text-wrap":a}})),Y=Vr(e=>{let t=K(`Text`,qd,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=ir({name:[`Text`,l],props:t,classes:Gd,className:d,style:f,classNames:p,styles:m,unstyled:h,attributes:y,vars:u,varsResolver:Jd});return(0,G.jsx)(J,{...x(`root`,{focusable:!0}),component:s?`span`:`p`,variant:g,mod:[{truncate:Kd(r),lineClamp:typeof n==`number`,inline:i,inherit:a},_],size:v,...b})});Y.classes=Gd,Y.varsResolver=Jd,Y.displayName=`@mantine/core/Text`;var Yd={root:`m_849cf0da`},Xd={underline:`hover`},Zd=Vr(e=>{let{underline:t,className:n,unstyled:r,mod:i,...a}=K(`Anchor`,Xd,e);return(0,G.jsx)(Y,{component:`a`,className:wt({[Yd.root]:!r},n),...a,mod:[{underline:t},i],__staticSelector:`Anchor`,unstyled:r})});Zd.classes=Yd,Zd.displayName=`@mantine/core/Anchor`;var[Qd,$d]=y(`AppShell was not found in tree`);function ef({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 tf(e,t){return t!==void 0&&e<t}var nf={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}},rf=Object.keys(nf);function af({section:e,deltaX:t,deltaY:n,dir:r}){let i=nf[e];return i.axis===`vertical`?n*i.sign:t*i.sign*(r===`rtl`?-1:1)}function of(e,t){if(!t)return 0;let n=window.getComputedStyle(e).getPropertyValue(t),r=Number.parseFloat(n);return Number.isFinite(r)?r:0}var sf={navbar:`Resize navbar`,aside:`Resize aside`,header:`Resize header`,footer:`Resize footer`},cf=10,lf=50,uf={ArrowRight:{deltaX:1,deltaY:0},ArrowLeft:{deltaX:-1,deltaY:0},ArrowDown:{deltaX:0,deltaY:1},ArrowUp:{deltaX:0,deltaY:-1}};function df(e,t){t?document.body.style.setProperty(e,t):document.body.style.removeProperty(e)}function ff({section:e,sectionId:t}){let n=$d(),r=n.resize,i=(0,_.useRef)(null),a=(0,_.useRef)({startSize:0,startX:0,startY:0,size:0,moved:!1}),o=(0,_.useRef)(null),s=(0,_.useRef)(null),c=(0,_.useRef)(null),{dir:l}=Yr(),u=Dn(),f=nf[e],p=r?.options[e]??{},m=()=>f.axis===`horizontal`?window.innerWidth:window.innerHeight,[h,g]=(0,_.useState)(0),[v,y]=(0,_.useState)(void 0),b=()=>m()/u.scale,x=e=>{let t=e.getBoundingClientRect();return((f.axis===`horizontal`?t.width:t.height)-of(e,f.safeAreaVariable))/u.scale},S=t=>{let r=n.rootRef.current;if(!r)return;let i=d(t);r.style.setProperty(f.sizeVariable,i),n.resizeOffsets[e]&&r.style.setProperty(f.offsetVariable,i),n.mode===`static`&&f.gridWidthVariable&&r.style.setProperty(f.gridWidthVariable,i)},C=()=>{let e=n.rootRef.current;e&&(e.style.removeProperty(f.sizeVariable),e.style.removeProperty(f.offsetVariable),f.gridWidthVariable&&e.style.removeProperty(f.gridWidthVariable))},w=()=>{s.current?.abort(),s.current=null,o.current=null;let e=c.current;c.current=null,e&&(df(`user-select`,e.userSelect),df(`-webkit-user-select`,e.webkitUserSelect),df(`cursor`,e.cursor))},T=()=>{r?.reportCollapse(e,tf(a.current.startSize,p.collapseThreshold)),r?.endResize(e,null)},E=t=>{if(t.pointerId!==o.current)return;a.current.moved=!0;let n=af({section:e,deltaX:t.clientX-a.current.startX,deltaY:t.clientY-a.current.startY,dir:l})/u.scale,s=a.current.startSize+n,c=ef({size:s,min:p.min,max:p.max,viewportMax:b()});a.current.size=c,S(c),i.current?.setAttribute(`aria-valuenow`,String(Math.round(c))),r?.previewResize(e,c),r?.reportCollapse(e,tf(s,p.collapseThreshold))},D=t=>{t.pointerId===o.current&&(w(),a.current.moved?r?.endResize(e,a.current.size):r?.endResize(e,null))},O=e=>{e.pointerId===o.current&&(w(),C(),T())},k=e=>{e.key===`Escape`&&(e.preventDefault(),w(),C(),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?x(n):0},j=t=>{r?.initCollapse(e,tf(A(),p.collapseThreshold)),r?.reportCollapse(e,tf(t,p.collapseThreshold)),r?.endResize(e,ef({size:t,min:p.min,max:p.max,viewportMax:b()}))},M=t=>{let n=t.shiftKey?lf:cf;if(t.key===`Home`){t.preventDefault(),j(p.min??0);return}if(t.key===`End`){t.preventDefault(),j(p.max??b());return}let r=uf[t.key];if(!r)return;let i=af({section:e,...r,dir:l});i!==0&&(t.preventDefault(),j(A()+i*n))},N=()=>{C(),r?.[e].reset()},P=t=>{if(t.button!==0||s.current!==null)return;let n=i.current?.parentElement;if(!n)return;let l=x(n);a.current={startSize:l,startX:t.clientX,startY:t.clientY,size:l,moved:!1},o.current=t.pointerId,r?.initCollapse(e,tf(l,p.collapseThreshold));let u=new AbortController;s.current=u;let{signal:d}=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`,f.axis===`horizontal`?`col-resize`:`row-resize`),r?.startResize(e),document.addEventListener(`pointermove`,E,{signal:d}),document.addEventListener(`pointerup`,D,{signal:d}),document.addEventListener(`pointercancel`,O,{signal:d}),document.addEventListener(`keydown`,k,{signal:d})};if(H(()=>{r&&r.activeSection!==e&&C()},[r?.activeSection,r?.[e].size]),H(()=>{g(m());let e=()=>g(m());return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[f.axis]),H(()=>{r?.[e].size===void 0&&y(A())},[r?.[e].size,h]),H(()=>()=>{let e=s.current!==null;w(),C(),e&&T()},[]),!r?.[e].enabled)return null;let F=h/u.scale,I=Math.min(p.max??F,F),L=r[e].size,R=L!==void 0&&h>0?Math.min(L,F):L??v;return(0,G.jsx)(J,{ref:i,role:`separator`,tabIndex:0,"aria-label":p.label??sf[e],"aria-controls":t,"aria-orientation":f.orientation,"aria-valuemin":p.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:f.orientation,active:r[e].active},...n.getStyles(`resizeHandle`)})}ff.displayName=`@mantine/core/AppShellResizeHandle`;var pf={root:`m_89ab340`,navbar:`m_45252eee`,aside:`m_9cdde9a`,header:`m_3b16f56b`,main:`m_8983817`,footer:`m_3840c879`,section:`m_6dcfc7c7`,resizeHandle:`m_3b25945a`},mf=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=$d(),f=Pe(u.id);if(d.disabled)return null;let p=d.resize?.aside.enabled??!1,m=d.getStyles(`aside`,{className:wt({[Xu.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)(ff,{section:`aside`,sectionId:f})]})});mf.classes=pf,mf.displayName=`@mantine/core/AppShellAside`;var hf=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=$d(),f=Pe(u.id);if(d.disabled)return null;let p=d.resize?.footer.enabled??!1,m=d.getStyles(`footer`,{className:wt({[Xu.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)(ff,{section:`footer`,sectionId:f})]})});hf.classes=pf,hf.displayName=`@mantine/core/AppShellFooter`;var gf=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=$d(),f=Pe(u.id);if(d.disabled)return null;let p=d.resize?.header.enabled??!1,m=d.getStyles(`header`,{className:wt({[Xu.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)(ff,{section:`header`,sectionId:f})]})});gf.classes=pf,gf.displayName=`@mantine/core/AppShellHeader`;var _f=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`AppShellMain`,null,e),s=$d();return(0,G.jsx)(J,{component:`main`,...s.getStyles(`main`,{className:n,style:r,classNames:t,styles:i}),...o})});_f.classes=pf,_f.displayName=`@mantine/core/AppShellMain`;var vf=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=$d(),f=Pe(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)(ff,{section:`navbar`,sectionId:f})]})});vf.classes=pf,vf.displayName=`@mantine/core/AppShellNavbar`;var yf=Vr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,grow:o,mod:s,...c}=K(`AppShellSection`,null,e),l=$d();return(0,G.jsx)(J,{mod:[{grow:o},s],...l.getStyles(`section`,{className:n,style:r,classNames:t,styles:i}),...c})});yf.classes=pf,yf.displayName=`@mantine/core/AppShellSection`;function bf(e){return typeof e==`object`?e.base:e}function xf(e,t){return`min(${d(e)}, ${t===`horizontal`?`100vw`:`100dvh`})`}function Sf(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 Cf(e){return!(typeof e!=`object`||!e||Object.keys(e).length===1&&`base`in e)}function wf({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,aside:i,theme:a,mode:o,resizedSize:s,resizable:c}){let l=i?.width,u=`translateX(var(--app-shell-aside-width))`,f=`translateX(calc(var(--app-shell-aside-width) * -1))`;if(i?.breakpoint!==void 0&&!i?.collapsed?.mobile&&(n[i?.breakpoint]=n[i?.breakpoint]||{},o===`fixed`?(n[i?.breakpoint][`--app-shell-aside-width`]=`100%`,n[i?.breakpoint][`--app-shell-aside-offset`]=`0px`):(n[i?.breakpoint][`--app-shell-aside-width`]=`0px`,n[i?.breakpoint][`--app-shell-aside-offset`]=`0px`),c&&(n[i.breakpoint][`--app-shell-aside-resize-handle-display`]=`none`)),s!==void 0){let t=xf(s,`horizontal`);e[`--app-shell-aside-width`]=t,e[`--app-shell-aside-offset`]=t,o===`static`&&(e[`--app-shell-aside-grid-width`]=t)}else{if(Sf(l)){let t=d(bf(l));e[`--app-shell-aside-width`]=t,e[`--app-shell-aside-offset`]=t}Cf(l)&&(l.base!==void 0&&(e[`--app-shell-aside-width`]=d(l.base),e[`--app-shell-aside-offset`]=d(l.base)),r(l).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-aside-width`]=d(l[e]),t[e][`--app-shell-aside-offset`]=d(l[e]))}))}if(i?.breakpoint!==void 0&&o===`static`&&(t[i.breakpoint]=t[i.breakpoint]||{},t[i.breakpoint][`--app-shell-aside-position`]=`sticky`,t[i.breakpoint][`--app-shell-aside-grid-row`]=`2`,t[i.breakpoint][`--app-shell-aside-grid-column`]=`3`,t[i.breakpoint][`--app-shell-main-column-end`]=`3`),i?.collapsed?.desktop){let e=i.breakpoint;t[e]=t[e]||{},t[e][`--app-shell-aside-transform`]=u,t[e][`--app-shell-aside-transform-rtl`]=f,o===`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`,c&&(t[e][`--app-shell-aside-resize-handle-display`]=`none`)}if(i?.collapsed?.mobile){let e=I(i.breakpoint,a.breakpoints)-.1;n[e]=n[e]||{},o===`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`]=u,n[e][`--app-shell-aside-transform-rtl`]=f,n[e][`--app-shell-aside-scroll-locked-visibility`]=`hidden`,c&&(n[e][`--app-shell-aside-resize-handle-display`]=`none`)}}function Tf({baseStyles:e,minMediaStyles:t,footer:n,mode:i,resizedSize:a,resizable:o}){let s=n?.height,c=i===`static`?!0:n?.offset??!0;if(i===`static`&&n&&(e[`--app-shell-footer-position`]=`sticky`,e[`--app-shell-footer-grid-column`]=`1 / -1`,e[`--app-shell-footer-grid-row`]=`3`),a!==void 0){let t=xf(a,`vertical`);e[`--app-shell-footer-height`]=t,c&&(e[`--app-shell-footer-offset`]=t)}else{if(Sf(s)){let t=d(bf(s));e[`--app-shell-footer-height`]=t,c&&(e[`--app-shell-footer-offset`]=t)}Cf(s)&&(s.base!==void 0&&(e[`--app-shell-footer-height`]=d(s.base),c&&(e[`--app-shell-footer-offset`]=d(s.base))),r(s).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-footer-height`]=d(s[e]),c&&(t[e][`--app-shell-footer-offset`]=d(s[e])))}))}n?.collapsed&&(e[`--app-shell-footer-transform`]=`translateY(var(--app-shell-footer-height))`,i===`fixed`&&(e[`--app-shell-footer-offset`]=`0px !important`),o&&(e[`--app-shell-footer-resize-handle-display`]=`none`))}function Ef({baseStyles:e,minMediaStyles:t,header:n,mode:i,resizedSize:a,resizable:o}){let s=n?.height,c=i===`static`?!0:n?.offset??!0;if(i===`static`&&n&&(e[`--app-shell-header-position`]=`sticky`,e[`--app-shell-header-grid-column`]=`1 / -1`,e[`--app-shell-header-grid-row`]=`1`),a!==void 0){let t=xf(a,`vertical`);e[`--app-shell-header-height`]=t,c&&(e[`--app-shell-header-offset`]=t)}else{if(Sf(s)){let t=d(bf(s));e[`--app-shell-header-height`]=t,c&&(e[`--app-shell-header-offset`]=t)}Cf(s)&&(s.base!==void 0&&(e[`--app-shell-header-height`]=d(s.base),c&&(e[`--app-shell-header-offset`]=d(s.base))),r(s).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-header-height`]=d(s[e]),c&&(t[e][`--app-shell-header-offset`]=d(s[e])))}))}n?.collapsed&&(e[`--app-shell-header-transform`]=`translateY(calc(var(--app-shell-header-height) * -1))`,i===`fixed`&&(e[`--app-shell-header-offset`]=`0px !important`),o&&(e[`--app-shell-header-resize-handle-display`]=`none`))}function Df({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,navbar:i,theme:a,mode:o,resizedSize:s,resizable:c}){let l=i?.width,u=`translateX(calc(var(--app-shell-navbar-width) * -1))`,f=`translateX(var(--app-shell-navbar-width))`;if(i?.breakpoint!==void 0&&!i?.collapsed?.mobile&&(n[i?.breakpoint]=n[i?.breakpoint]||{},n[i?.breakpoint][`--app-shell-navbar-offset`]=`0px`,n[i?.breakpoint][`--app-shell-navbar-width`]=`100%`,o===`static`&&(n[i?.breakpoint][`--app-shell-navbar-grid-width`]=`0px`),c&&(n[i.breakpoint][`--app-shell-navbar-resize-handle-display`]=`none`)),s!==void 0){let t=xf(s,`horizontal`);e[`--app-shell-navbar-width`]=t,e[`--app-shell-navbar-offset`]=t,o===`static`&&(e[`--app-shell-navbar-grid-width`]=t)}else{if(Sf(l)){let t=d(bf(l));e[`--app-shell-navbar-width`]=t,e[`--app-shell-navbar-offset`]=t,o===`static`&&(e[`--app-shell-navbar-grid-width`]=t)}Cf(l)&&(l.base!==void 0&&(e[`--app-shell-navbar-width`]=d(l.base),e[`--app-shell-navbar-offset`]=d(l.base),o===`static`&&(e[`--app-shell-navbar-grid-width`]=d(l.base))),r(l).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-navbar-width`]=d(l[e]),t[e][`--app-shell-navbar-offset`]=d(l[e]),o===`static`&&(t[e][`--app-shell-navbar-grid-width`]=d(l[e])))}))}if(i?.breakpoint!==void 0&&o===`static`&&(t[i.breakpoint]=t[i.breakpoint]||{},t[i.breakpoint][`--app-shell-navbar-position`]=`sticky`,t[i.breakpoint][`--app-shell-navbar-grid-row`]=`2`,t[i.breakpoint][`--app-shell-navbar-grid-column`]=`1`,t[i.breakpoint][`--app-shell-main-column-start`]=`2`),i?.collapsed?.desktop){let e=i.breakpoint;t[e]=t[e]||{},t[e][`--app-shell-navbar-transform`]=u,t[e][`--app-shell-navbar-transform-rtl`]=f,o===`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`),c&&(t[e][`--app-shell-navbar-resize-handle-display`]=`none`)}if(i?.collapsed?.mobile){let e=I(i.breakpoint,a.breakpoints)-.1;n[e]=n[e]||{},n[e][`--app-shell-navbar-width`]=`100%`,n[e][`--app-shell-navbar-offset`]=`0px`,o===`static`&&(n[e][`--app-shell-navbar-grid-width`]=`0px`),n[e][`--app-shell-navbar-transform`]=u,n[e][`--app-shell-navbar-transform-rtl`]=f,c&&(n[e][`--app-shell-navbar-resize-handle-display`]=`none`)}}function Of(e){return Number(e)===0?`0px`:A(e)}function kf({padding:e,baseStyles:t,minMediaStyles:n}){Sf(e)&&(t[`--app-shell-padding`]=Of(bf(e))),Cf(e)&&(e.base&&(t[`--app-shell-padding`]=Of(e.base)),r(e).forEach(t=>{t!==`base`&&(n[t]=n[t]||{},n[t][`--app-shell-padding`]=Of(e[t]))}))}function Af({navbar:e,header:t,footer:n,aside:i,padding:a,theme:o,mode:s,resize:c}){let l={},u={},d={};s===`static`&&(d[`--app-shell-main-grid-column`]=`1 / -1`,d[`--app-shell-main-grid-row`]=`2`),Df({baseStyles:d,minMediaStyles:l,maxMediaStyles:u,navbar:e,theme:o,mode:s,resizedSize:c?.sizes.navbar,resizable:c?.enabled.navbar}),wf({baseStyles:d,minMediaStyles:l,maxMediaStyles:u,aside:i,theme:o,mode:s,resizedSize:c?.sizes.aside,resizable:c?.enabled.aside}),Ef({baseStyles:d,minMediaStyles:l,header:t,mode:s,resizedSize:c?.sizes.header,resizable:c?.enabled.header}),Tf({baseStyles:d,minMediaStyles:l,footer:n,mode:s,resizedSize:c?.sizes.footer,resizable:c?.enabled.footer}),kf({baseStyles:d,minMediaStyles:l,padding:a});let p=L(r(l),o.breakpoints).map(e=>({query:`(min-width: ${f(e.px)})`,styles:l[e.value]})),m=L(r(u),o.breakpoints).map(e=>({query:`(max-width: ${f(e.px)})`,styles:u[e.value]}));return{baseStyles:d,media:[...p,...m]}}function jf({navbar:e,header:t,aside:n,footer:r,padding:i,mode:a,selector:o,resize:s}){let c=Dn(),l=en(),{media:u,baseStyles:d}=Af({navbar:e,header:t,footer:r,aside:n,padding:i,theme:c,mode:a,resize:s});return(0,G.jsx)(lr,{media:u,styles:d,selector:o||l.cssVariablesSelector})}function Mf(e){return e>=128||e===45||e===95||e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function Nf(e){return e>=48&&e<=57}function Pf(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&&Nf(r)||n===1&&Nf(r)&&e.charCodeAt(0)===45?t+=`\\${r.toString(16)} `:n===0&&e.length===1&&r===45?t+=`\\${i}`:Mf(r)?t+=i:t+=`\\${i}`}return t}function Ff({transitionDuration:e,disabled:t,resizeKey:n}){let[r,i]=(0,_.useState)(!0),[a,o]=(0,_.useState)({key:n,active:!1}),s=(0,_.useRef)(-1),c=(0,_.useRef)(-1);return a.key!==n&&o({key:n,active:!0}),(0,_.useEffect)(()=>{if(!a.active)return;let t=window.setTimeout(()=>(0,_.startTransition)(()=>{o(e=>({...e,active:!1}))}),e||0);return()=>window.clearTimeout(t)},[a,e]),Fe(`resize`,()=>{i(!0),clearTimeout(s.current),s.current=window.setTimeout(()=>(0,_.startTransition)(()=>{i(!1)}),200)}),H(()=>{i(!0),clearTimeout(c.current),c.current=window.setTimeout(()=>(0,_.startTransition)(()=>{i(!1)}),e||0)},[t,e]),r||a.active}var If={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:`ease`,zIndex:E(`app`),mode:`fixed`},Lf=St((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}})),Rf=q(e=>{let t=K(`AppShell`,If,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:v,footer:y,offsetScrollbars:b=!0,mode:x,mod:S,attributes:C,id:w,resize:T,ref:E,...D}=t,O=ir({name:`AppShell`,classes:pf,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:C,vars:s,varsResolver:Lf,stable:!0}),k=Ff({disabled:g,transitionDuration:d,resizeKey:T?rf.map(e=>T.sizes[e]).join(`|`):void 0}),A=Pe(w),j=(0,_.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=x===`static`?!0:p?.offset??!0,P=x===`static`?!0:y?.offset??!0,F=(0,_.useMemo)(()=>({getStyles:O,withBorder:l,zIndex:m,disabled:g,offsetScrollbars:b,mode:x,resize:T,rootRef:j,resizeOffsets:{navbar:!0,aside:!0,header:N,footer:P}}),[O,l,m,g,b,x,T,N,P]);return(0,G.jsxs)(Qd,{value:F,children:[(0,G.jsx)(jf,{navbar:c,header:p,aside:v,footer:y,padding:u,mode:x,resize:M,selector:T||x===`static`?`#${Pf(A)}`:void 0}),(0,G.jsx)(J,{...O(`root`),id:A,ref:Re(E,j),mod:[{resizing:k||T?.activeSection!=null,layout:h,disabled:g,mode:x},S],...D})]})});Rf.classes=pf,Rf.varsResolver=Lf,Rf.displayName=`@mantine/core/AppShell`,Rf.Navbar=vf,Rf.Header=gf,Rf.Main=_f,Rf.Aside=mf,Rf.Footer=hf,Rf.Section=yf;function zf(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=>zf(e))}:typeof e==`number`||typeof e==`bigint`||typeof e==`boolean`?{value:e,label:`${e}`}:e}function Bf(e){return e?e.map(e=>zf(e)):[]}function Vf(e){return e.reduce((e,t)=>`group`in t?{...e,...Vf(t.items)}:(e[`${t.value}`]=t,e),{})}var Hf={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`},Uf={error:null},Wf=St((e,{size:t,color:n})=>({chevron:{"--combobox-chevron-size":k(t,`combobox-chevron-size`),"--combobox-chevron-color":n?Ht(n,e):void 0}})),Gf=q(e=>{let t=K(`ComboboxChevron`,Uf,e),{size:n,error:r,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:l,attributes:u,mod:d,...f}=t,p=ir({name:`ComboboxChevron`,classes:Hf,props:t,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:l,varsResolver:Wf,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`})})});Gf.classes=Hf,Gf.varsResolver=Wf,Gf.displayName=`@mantine/core/ComboboxChevron`;var[Kf,qf]=y(`Combobox component was not found in tree`);function Jf({onMouseDown:e,onClick:t,onClear:n,...r}){return(0,G.jsx)(Md.ClearButton,{tabIndex:-1,"aria-hidden":!0,...r,onMouseDown:t=>{t.preventDefault(),e?.(t)},onClick:e=>{n(),t?.(e)}})}Jf.displayName=`@mantine/core/ComboboxClearButton`;var Yf=q(e=>{let{classNames:t,styles:n,className:r,style:i,hidden:a,...o}=K(`ComboboxDropdown`,null,e),s=qf();return(0,G.jsx)(fl.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})})});Yf.classes=Hf,Yf.displayName=`@mantine/core/ComboboxDropdown`;var Xf={refProp:`ref`},Zf=q(e=>{let{children:t,refProp:n,ref:r}=K(`ComboboxDropdownTarget`,Xf,e);if(qf(),!v(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)(fl.Target,{ref:r,refProp:n,children:t})});Zf.displayName=`@mantine/core/ComboboxDropdownTarget`;var Qf=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ComboboxEmpty`,null,e),s=qf();return(0,G.jsx)(J,{...s.getStyles(`empty`,{className:n,classNames:t,styles:i,style:r}),...o})});Qf.classes=Hf,Qf.displayName=`@mantine/core/ComboboxEmpty`;function $f({onKeyDown:e,onClick:t,withKeyboardNavigation:n,withAriaAttributes:r,withExpandedAttribute:i,targetType:a,autoComplete:o}){let s=qf(),[c,l]=(0,_.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 ep={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},tp=q(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=K(`ComboboxEventsTarget`,ep,e),u=xt(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=qf(),f=$f({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s});return(0,_.cloneElement)(u,{...f,...l,[n]:Re(c,d.store.targetRef,gt(u))})});tp.displayName=`@mantine/core/ComboboxEventsTarget`;var np=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ComboboxFooter`,null,e),s=qf();return(0,G.jsx)(J,{...s.getStyles(`footer`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});np.classes=Hf,np.displayName=`@mantine/core/ComboboxFooter`;var rp=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=qf(),d=Pe(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]})});rp.classes=Hf,rp.displayName=`@mantine/core/ComboboxGroup`;var ip=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ComboboxHeader`,null,e),s=qf();return(0,G.jsx)(J,{...s.getStyles(`header`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});ip.classes=Hf,ip.displayName=`@mantine/core/ComboboxHeader`;function ap({value:e,valuesDivider:t=`,`,...n}){return(0,G.jsx)(`input`,{type:`hidden`,value:Array.isArray(e)?e.join(t):e?`${e}`:``,...n})}ap.displayName=`@mantine/core/ComboboxHiddenInput`;var op=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=qf(),v=(0,_.useId)(),y=c||v;return(0,G.jsx)(J,{...g.getStyles(`option`,{className:r,classNames:n,styles:a,style:i}),"aria-disabled":f||void 0,...h,id:y,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)}})});op.classes=Hf,op.displayName=`@mantine/core/ComboboxOption`;var sp=q(e=>{let{classNames:t,className:n,style:r,styles:i,id:a,onMouseDown:o,labelledBy:s,...c}=K(`ComboboxOptions`,null,e),l=qf(),u=Pe(a);return(0,_.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)}})});sp.classes=Hf,sp.displayName=`@mantine/core/ComboboxOptions`;var cp={withAriaAttributes:!0,withKeyboardNavigation:!0},lp=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`,cp,e),f=qf(),p=f.getStyles(`search`),m=$f({targetType:`input`,withAriaAttributes:a,withKeyboardNavigation:c,withExpandedAttribute:!1,onKeyDown:o,onClick:s,autoComplete:`off`});return(0,G.jsx)(Md,{ref:Re(u,f.store.searchRef),classNames:[{input:p.className},t],styles:[{input:p.style},n],size:l||f.size,...m,...d,__staticSelector:`Combobox`})});lp.classes=Hf,lp.displayName=`@mantine/core/ComboboxSearch`;var up={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},dp=q(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=K(`ComboboxTarget`,up,e),u=xt(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=qf(),f=$f({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s}),p=(0,_.cloneElement)(u,{...f,...l});return(0,G.jsx)(fl.Target,{refProp:n,ref:Re(c,d.store.targetRef),children:p})});dp.displayName=`@mantine/core/ComboboxTarget`;function fp(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 pp(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 mp(e){for(let t=0;t<e.length;t+=1)if(!e[t].hasAttribute(`data-combobox-disabled`))return t;return-1}function hp({defaultOpened:e,opened:t,onOpenedChange:n,onDropdownClose:r,onDropdownOpen:i,loop:a=!0,scrollBehavior:o=`instant`}={}){let[s,c]=ze({value:t,defaultValue:e,finalValue:!1,onChange:n}),l=(0,_.useRef)(null),u=(0,_.useRef)(-1),d=(0,_.useRef)(null),f=(0,_.useRef)(null),p=(0,_.useRef)(-1),m=(0,_.useRef)(-1),h=(0,_.useRef)(-1),g=(0,_.useCallback)((e=`unknown`)=>{s||(c(!0),i?.(e))},[c,i,s]),v=(0,_.useCallback)((e=`unknown`)=>{s&&(c(!1),r?.(e))},[c,r,s]),y=(0,_.useCallback)((e=`unknown`)=>{s?v(e):g(e)},[v,g,s]),b=(0,_.useCallback)(()=>{let e=bt(f.current);vt(`#${l.current} [data-combobox-selected]`,e)?.removeAttribute(`data-combobox-selected`)},[]),x=(0,_.useCallback)(e=>{let t=bt(f.current),n=vt(`#${l.current}`,t),r=n?yt(`[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`)?(b(),r[i].setAttribute(`data-combobox-selected`,`true`),r[i].scrollIntoView({block:`nearest`,behavior:o}),r[i].id):null},[o,b]),S=(0,_.useCallback)(()=>{let e=bt(f.current),t=vt(`#${l.current} [data-combobox-active]`,e);if(t){let n=yt(`#${l.current} [data-combobox-option]`,e).findIndex(e=>e===t);return x(n)}return x(0)},[x]),C=(0,_.useCallback)(()=>{let e=bt(f.current),t=yt(`#${l.current} [data-combobox-option]`,e);return x(pp(u.current,t,a))},[x,a]),w=(0,_.useCallback)(()=>{let e=bt(f.current),t=yt(`#${l.current} [data-combobox-option]`,e);return x(fp(u.current,t,a))},[x,a]),T=(0,_.useCallback)(()=>{let e=bt(f.current),t=yt(`#${l.current} [data-combobox-option]`,e);return x(mp(t))},[x]),E=(0,_.useCallback)((e=`selected`,t)=>{if(typeof e==`number`){u.current=e;let n=bt(f.current),r=yt(`#${l.current} [data-combobox-option]`,n);t?.scrollIntoView&&r[e]?.scrollIntoView({block:`nearest`,behavior:o})}else h.current=window.setTimeout(()=>{let n=bt(f.current),r=yt(`#${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,_.useCallback)(()=>{u.current=-1,b()},[b]),O=(0,_.useCallback)(()=>{let e=bt(f.current);(yt(`#${l.current} [data-combobox-option]`,e)?.[u.current])?.click()},[]),k=(0,_.useCallback)(e=>{l.current=e},[]),A=(0,_.useCallback)(()=>{p.current=window.setTimeout(()=>d.current?.focus(),0)},[]),j=(0,_.useCallback)(()=>{m.current=window.setTimeout(()=>f.current?.focus(),0)},[]),M=(0,_.useCallback)(()=>u.current,[]);return(0,_.useEffect)(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(m.current),window.clearTimeout(h.current)},[]),{dropdownOpened:s,openDropdown:g,closeDropdown:v,toggleDropdown:y,selectedOptionIndex:u.current,getSelectedOptionIndex:M,selectOption:x,selectFirstOption:T,selectActiveOption:S,selectNextOption:C,selectPreviousOption:w,resetSelectedOption:D,updateSelectedOptionIndex:E,listId:l.current,setListId:k,clickSelectedOption:O,searchRef:d,focusSearchInput:A,targetRef:f,focusTarget:j}}var gp={keepMounted:!0,keepMountedMode:`display-none`,withinPortal:!0,resetSelectionOnOptionHover:!1,width:`target`,transitionProps:{transition:`fade`,duration:0},size:`sm`},_p=St((e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":M(t),"--combobox-option-padding":k(t,`combobox-option-padding`)},dropdown:{"--combobox-padding":n===void 0?void 0:d(n),"--combobox-option-fz":M(t),"--combobox-option-padding":k(t,`combobox-option-padding`)}})),vp=e=>{let t=K(`Combobox`,gp,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=hp(),x=o||b,S=ir({name:p||`Combobox`,classes:Hf,props:t,classNames:n,styles:r,unstyled:i,attributes:h,vars:s,varsResolver:_p}),C=()=>{l?.(),x.closeDropdown()};return(0,G.jsx)(Kf,{value:{getStyles:S,store:x,onOptionSubmit:c,size:u,resetSelectionOnOptionHover:f,readOnly:m,floatingHeight:g},children:(0,G.jsx)(fl,{opened:x.dropdownOpened,...v,middlewares:y,onChange:e=>!e&&C(),withRoles:!1,unstyled:i,children:a})})};vp.extend=e=>e,vp.classes=Hf,vp.varsResolver=_p,vp.displayName=`@mantine/core/Combobox`,vp.Target=dp,vp.Dropdown=Yf,vp.Options=sp,vp.Option=op,vp.Search=lp,vp.Empty=Qf,vp.Chevron=Gf,vp.Footer=np,vp.Header=ip,vp.EventsTarget=tp,vp.DropdownTarget=Zf,vp.Group=rp,vp.ClearButton=Jf,vp.HiddenInput=ap;function yp({children:e,role:t}){let n=(0,_.use)(md);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})}var bp=(0,_.createContext)(null),xp={hiddenInputValuesSeparator:`,`},Sp=Br((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(`CheckboxGroup`,xp,e),[m,h]=ze({value:t,defaultValue:n,finalValue:[],onChange:r}),g=e=>{let t=typeof e==`string`?e: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)(bp,{value:{value:m,onChange:g,size:i,isDisabled:_},children:(0,G.jsxs)(Md.Wrapper,{size:i,...a,...p,labelElement:`div`,__staticSelector:`CheckboxGroup`,children:[(0,G.jsx)(yp,{role:`group`,children:o}),(0,G.jsx)(`input`,{type:`hidden`,name:c,value:v,...u})]})})}));Sp.classes=Md.Wrapper.classes,Sp.displayName=`@mantine/core/CheckboxGroup`;var Cp={card:`m_26775b0a`},wp=(0,_.createContext)(null),Tp={withBorder:!0},Ep=St((e,{radius:t})=>({card:{"--card-radius":j(t)}})),Dp=q(e=>{let t=K(`CheckboxCard`,Tp,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,checked:c,mod:l,withBorder:u,value:d,onClick:f,defaultChecked:p,onChange:m,indeterminate:h,attributes:g,...v}=t,y=ir({name:`CheckboxCard`,classes:Cp,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:g,vars:s,varsResolver:Ep,rootSelector:`card`}),b=(0,_.use)(bp),[x,S]=ze({value:typeof c==`boolean`?c:b?b.value.includes(d||``):void 0,defaultValue:p,finalValue:!1,onChange:m});return(0,G.jsx)(wp,{value:{checked:x,indeterminate:h},children:(0,G.jsx)(vc,{mod:[{"with-border":u,checked:x,indeterminate:h},l],...y(`card`),...v,role:`checkbox`,"aria-checked":h?`mixed`:x,onClick:e=>{f?.(e),b?.onChange(d||``),S(!x)}})})});Dp.displayName=`@mantine/core/CheckboxCard`,Dp.classes=Cp,Dp.varsResolver=Ep;function Op({size:e,style:t,...n}){let r=e===void 0?t:{width:d(e),height:d(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`})})}function kp({indeterminate:e,...t}){return e?(0,G.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 32 6`,"aria-hidden":!0,...t,children:(0,G.jsx)(`rect`,{width:`32`,height:`6`,fill:`currentColor`,rx:`3`})}):(0,G.jsx)(Op,{...t})}var Ap={indicator:`m_5e5256ee`,icon:`m_1b1c543a`,"indicator--light":`m_193e54c8`,"indicator--outline":`m_76e20374`},jp={icon:kp,variant:`filled`,radius:`sm`},Mp=St((e,{radius:t,color:n,size:r,iconColor:i,variant:a,autoContrast:o})=>{let s=Vt({color:n||e.primaryColor,theme:e}),c=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color,l=a===`light`?e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:`light`,autoContrast:o}):void 0,u=a===`outline`?c:l?l.color:Ht(n,e);return{indicator:{"--checkbox-size":k(r,`checkbox-size`),"--checkbox-radius":t===void 0?void 0:j(t),"--checkbox-color":u,"--checkbox-bg":l?.background,"--checkbox-icon-color":i?Ht(i,e):l?l.color:Qt(o,e)?Yt({color:n,theme:e,autoContrast:o}):void 0}}}),Np=q(e=>{let t=K(`CheckboxIndicator`,jp,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,icon:c,indeterminate:l,radius:u,color:d,iconColor:f,autoContrast:p,checked:m,mod:h,variant:g,disabled:v,attributes:y,...b}=t,x=ir({name:`CheckboxIndicator`,classes:Ap,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:y,vars:s,varsResolver:Mp,rootSelector:`indicator`}),S=(0,_.use)(wp),C=typeof l==`boolean`?l:S?.indeterminate,w=typeof m==`boolean`||typeof l==`boolean`?m||l:S?.checked||S?.indeterminate||!1;return(0,G.jsx)(J,{...x(`indicator`,{variant:g}),variant:g,mod:[{checked:w,disabled:v},h],...b,children:(0,G.jsx)(c,{indeterminate:C,...x(`icon`)})})});Np.displayName=`@mantine/core/CheckboxIndicator`,Np.classes=Ap,Np.varsResolver=Mp;var Pp={root:`m_5f75b09e`,body:`m_5f6e695e`,labelWrapper:`m_d3ea56bb`,label:`m_8ee546b8`,description:`m_328f68c0`,error:`m_8e8a99cc`},Fp=Pp;function Ip({__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=ir({name:e,props:t,className:n,style:_,classes:Pp,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":M(f),"--label-lh":k(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)(Md.Description,{id:C,size:f,__inheritStyles:!1,...S(`description`),children:c}),d&&typeof d!=`boolean`&&(0,G.jsx)(Md.Error,{id:w,size:f,__inheritStyles:!1,...S(`error`),children:d})]})]})})}Ip.displayName=`@mantine/core/InlineInput`;var Lp={root:`m_bf2d988c`,inner:`m_26062bec`,input:`m_26063560`,icon:`m_bf295423`,"input--light":`m_595ab216`,"input--outline":`m_215c4542`},Rp={labelPosition:`right`,icon:kp,withErrorStyles:!0,variant:`filled`,radius:`sm`},zp=St((e,{radius:t,color:n,size:r,iconColor:i,variant:a,autoContrast:o})=>{let s=Vt({color:n||e.primaryColor,theme:e}),c=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color,l=a===`light`?e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:`light`,autoContrast:o}):void 0,u=a===`outline`?c:l?l.color:Ht(n,e);return{root:{"--checkbox-size":k(r,`checkbox-size`),"--checkbox-radius":t===void 0?void 0:j(t),"--checkbox-color":u,"--checkbox-bg":l?.background,"--checkbox-icon-color":i?Ht(i,e):l?l.color:Qt(o,e)?Yt({color:n,theme:e,autoContrast:o}):void 0}}}),Bp=q(e=>{let t=K(`Checkbox`,Rp,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,label:l,id:u,size:d,radius:f,wrapperProps:p,checked:m,labelPosition:h,description:g,error:v,disabled:y,variant:b,indeterminate:x,icon:S,rootRef:C,iconColor:w,onChange:T,autoContrast:E,mod:D,attributes:O,readOnly:k,onClick:A,withErrorStyles:j,ref:M,...N}=t,P=(0,_.useRef)(null),F=(0,_.use)(bp),I=d||F?.size,L=ir({name:`Checkbox`,props:t,classes:Lp,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:O,vars:s,varsResolver:zp}),{styleProps:R,rest:z}=fr(N),B=Pe(u),ee=[g?`${B}-description`:void 0,v&&typeof v!=`boolean`?`${B}-error`:void 0,z[`aria-describedby`]].filter(Boolean).join(` `)||void 0,te={checked:F?.value.includes(z.value)??m,onChange:e=>{k||(F?.onChange(e),T?.(e))}},ne=F?.isDisabled?.(z.value)??!1,re=y||ne;return(0,_.useEffect)(()=>{P.current&&(P.current.indeterminate=x||!1,x?P.current.setAttribute(`data-indeterminate`,`true`):P.current.removeAttribute(`data-indeterminate`))},[x]),(0,G.jsx)(Ip,{...L(`root`),__staticSelector:`Checkbox`,__stylesApiProps:t,id:B,size:I,labelPosition:h,label:l,description:g,error:v,disabled:re,classNames:n,styles:a,unstyled:o,"data-checked":te.checked||m||void 0,variant:b,ref:C,mod:D,attributes:O,inert:z.inert,...R,...p,children:(0,G.jsxs)(J,{...L(`inner`),mod:{labelPosition:h},children:[(0,G.jsx)(J,{component:`input`,id:B,ref:Re(P,M),mod:{error:!!v,"with-error-styles":j},...L(`input`,{focusable:!0,variant:b}),...z,...te,"aria-describedby":ee,disabled:re,inert:z.inert,type:`checkbox`,readOnly:k,onClick:e=>{k&&te.checked===void 0&&e.preventDefault(),A?.(e)}}),(0,G.jsx)(S,{indeterminate:x,...L(`icon`)})]})})});Bp.classes={...Lp,...Fp},Bp.varsResolver=zp,Bp.displayName=`@mantine/core/Checkbox`,Bp.Group=Sp,Bp.Indicator=Np,Bp.Card=Dp;function Vp(e){return`group`in e}function Hp({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:Hp({options:o.items,search:t,limit:n-i.length})}),Vp(o)||o.label.toLowerCase().includes(r)&&i.push(o)}return i}function Up(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 Wp(e,t=new Set){if(Array.isArray(e))for(let n of e)if(Vp(n))Wp(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 Gp(e,t){return Array.isArray(e)?e.includes(t):e===t}function Kp({data:e,withCheckIcon:t,withAlignedLabels:n,value:r,checkIconPosition:i,unstyled:a,renderOption:o}){if(!Vp(e)){let s=Gp(r,e.value),c=t&&(s?(0,G.jsx)(Op,{className:Hf.optionsDropdownCheckIcon}):n?(0,G.jsx)(`div`,{className:Hf.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)(vp.Option,{value:e.value,disabled:e.disabled,className:wt({[Hf.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)(Kp,{data:e,value:r,unstyled:a,withCheckIcon:t,withAlignedLabels:n,checkIconPosition:i,renderOption:o},`${e.value}`));return(0,G.jsx)(vp.Group,{label:e.group,children:s})}function qp({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=qf();Wp(e);let x=typeof i==`string`?(r||Hp)({options:e,search:l?i:``,limit:a??1/0}):e,S=Up(x),C=x.map((e,t)=>(0,G.jsx)(Kp,{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)(vp.Dropdown,{hidden:t||n&&S,"data-composed":!0,children:(0,G.jsxs)(vp.Options,{labelledBy:g,"aria-label":y,children:[c?(0,G.jsx)(mc.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)(vp.Empty,{children:m})]})})}function Jp(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 Yp=e=>{let t=e.lastElementChild;return t?t instanceof HTMLInputElement?t:t.querySelector(`input`):null},Xp=(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 Zp({value:e,onChange:t,enabled:n}){let r=(0,_.useRef)({draggedIndex:null,currentDropTarget:null}),i=(0,_.useRef)(null),a=(0,_.useRef)(null),o=(0,_.useRef)(e);o.current=e,(0,_.useEffect)(()=>{let e=i.current;e&&(i.current=null,Xp(o.current,e.expectedValue)&&e.container?.querySelector(`[data-mantine-pill-index="${e.index}"]`)?.focus())});let s=(0,_.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=Jp(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=Jp(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?Yp(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 Qp({id:e,label:t,labelProps:n,inputWrapperOrder:r}){if(t&&(!r||r.includes(`label`)))return n?.id||`${e}-label`}var $p=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:v,selectFirstOptionOnDropdownOpen:y,onOptionSubmit:b,comboboxProps:x,readOnly:S,disabled:C,filter:w,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:B,openOnFocus:ee=!0,attributes:te,...ne}=t,re=Pe(A),ie=Qp({id:re,label:ne.label,labelProps:ne.labelProps,inputWrapperOrder:ne.inputWrapperOrder}),ae=Bf(m),oe=Vf(ae),[se,V]=ze({value:h,defaultValue:g,finalValue:``,onChange:p}),H=hp({opened:o,defaultOpened:s,onDropdownOpen:()=>{l?.(),y&&H.selectFirstOption()},onDropdownClose:()=>{c?.(),setTimeout(H.resetSelectedOption,0)}}),ce=e=>{V(e),H.resetSelectedOption()},{resolvedClassNames:le,resolvedStyles:U}=Un({props:t,styles:r,classNames:n});(0,_.useEffect)(()=>{v&&H.selectFirstOption()},[v,se]);let W=(0,G.jsx)(vp.ClearButton,{...F,onClear:()=>{ce(``),P?.()}});return(0,G.jsxs)(vp,{store:H,__staticSelector:`Autocomplete`,classNames:le,styles:U,unstyled:i,readOnly:S,size:k,attributes:te,floatingHeight:O,keepMounted:B,onOptionSubmit:e=>{b?.(e),ce(oe[e].label),H.closeDropdown()},...x,children:[(0,G.jsx)(vp.Target,{autoComplete:M,withExpandedAttribute:!0,children:(0,G.jsx)(Fd,{...ne,size:k,__staticSelector:`Autocomplete`,__clearSection:W,__clearable:L&&!!se&&!C&&!S,__clearSectionMode:R,rightSection:z,disabled:C,readOnly:S,value:se,error:I,onChange:e=>{ce(e.currentTarget.value),H.openDropdown(),v&&H.selectFirstOption()},onFocus:e=>{ee&&H.openDropdown(),u?.(e)},onBlur:e=>{B&&H.clickSelectedOption(),H.closeDropdown(),d?.(e)},onClick:e=>{H.openDropdown(),f?.(e)},classNames:le,styles:U,unstyled:i,attributes:te,id:re})}),(0,G.jsx)(qp,{data:ae,hidden:S||C,filter:w,search:se,limit:T,hiddenWhenEmpty:!0,withScrollArea:E,maxDropdownHeight:D,unstyled:i,labelId:ie,"aria-label":ie?void 0:ne[`aria-label`],renderOption:j,scrollAreaProps:N})]})});$p.classes={...Fd.classes,...vp.classes},$p.displayName=`@mantine/core/Autocomplete`;var em={root:`m_347db0ec`,"root--dot":`m_fbd81e3d`,label:`m_5add502a`,section:`m_91fdda9b`},tm=St((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":k(a,`badge-height`),"--badge-padding-x":k(a,`badge-padding-x`),"--badge-fz":k(a,`badge-fz`),"--badge-radius":s||t===void 0?void 0:j(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`?Ht(n,e):void 0}}}),nm=Vr(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=ir({name:`Badge`,props:t,classes:em,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:y,vars:s,varsResolver:tm});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})]})});nm.classes=em,nm.varsResolver=tm,nm.displayName=`@mantine/core/Badge`;var rm={root:`m_77c9d27d`,inner:`m_80f1301b`,label:`m_811560b9`,section:`m_a74036a`,loader:`m_a25b86ee`,group:`m_80d6d844`,groupSection:`m_70be2a01`},im={orientation:`horizontal`},am=St((e,{borderWidth:t})=>({group:{"--button-border-width":d(t)}})),om=q(e=>{let t=K(`ButtonGroup`,im,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,mod:u,attributes:d,...f}=K(`ButtonGroup`,im,e),p=ir({name:`ButtonGroup`,props:t,classes:rm,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:c,varsResolver:am,rootSelector:`group`});return(0,G.jsx)(J,{...p(`group`),mod:[{orientation:s},u],role:`group`,...f})});om.classes=rm,om.varsResolver=am,om.displayName=`@mantine/core/ButtonGroup`;var sm=St((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":k(o,`section-height`),"--section-padding-x":k(o,`section-padding-x`),"--section-fz":o?.includes(`compact`)?M(o.replace(`compact-`,``)):M(o),"--section-radius":t===void 0?void 0:j(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),cm=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=ir({name:`ButtonGroupSection`,props:t,classes:rm,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:sm,rootSelector:`groupSection`});return(0,G.jsx)(J,{...p(`groupSection`),...f})});cm.classes=rm,cm.varsResolver=sm,cm.displayName=`@mantine/core/ButtonGroupSection`;var lm={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${d(1)}))`},out:{opacity:0,transform:`translate(-50%, -200%)`},common:{transformOrigin:`center`},transitionProperty:`transform, opacity`},um=St((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":k(a,`button-height`),"--button-padding-x":k(a,`button-padding-x`),"--button-fz":a?.includes(`compact`)?M(a.replace(`compact-`,``)):M(a),"--button-radius":t===void 0?void 0:j(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}}}),dm=Vr(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=ir({name:`Button`,props:t,classes:rm,className:i,style:n,classNames:g,styles:_,unstyled:v,attributes:S,vars:r,varsResolver:um}),T=!!c,E=!!l;return(0,G.jsxs)(vc,{...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)(Jc,{mounted:p,transition:lm,duration:150,children:e=>(0,G.jsx)(J,{component:`span`,...w(`loader`,{style:e}),"aria-hidden":!0,children:(0,G.jsx)(bl,{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})]})]})});dm.classes=rm,dm.varsResolver=um,dm.displayName=`@mantine/core/Button`,dm.Group=om,dm.GroupSection=cm;var[fm,pm]=y(`Card component was not found in tree`),mm={root:`m_e615b15f`,section:`m_599a2148`},hm=Vr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,withBorder:o,inheritPadding:s,mod:c,...l}=K(`CardSection`,null,e),u=pm();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})});hm.classes=mm,hm.displayName=`@mantine/core/CardSection`;var gm=St((e,{padding:t})=>({root:{"--card-padding":A(t)}})),_m={orientation:`vertical`},vm=Vr(e=>{let t=K(`Card`,_m,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,padding:l,attributes:u,orientation:d,...f}=t,p=ir({name:`Card`,props:t,classes:mm,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:gm}),m=_.Children.toArray(c),h=m.map((e,t)=>typeof e==`object`&&e&&`type`in e&&(e.type===hm||e.type?.displayName===`@mantine/core/CardSection`)?(0,_.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)(fm,{value:{getStyles:p},children:(0,G.jsx)(Cc,{unstyled:o,"data-orientation":d,...p(`root`),...f,children:h})})});vm.classes=mm,vm.varsResolver=gm,vm.displayName=`@mantine/core/Card`,vm.Section=hm;function ym(e){let t=e.currentTarget;return bt(t).activeElement!==t}var bm={root:`m_b183c0a2`},xm=St((e,{color:t})=>({root:{"--code-bg":t?Ht(t,e):void 0}})),Sm=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=ir({name:`Code`,props:t,classes:bm,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:xm});return(0,G.jsx)(J,{component:l?`pre`:`code`,mod:[{block:l},u],...p(`root`),...f,dir:`ltr`})});Sm.classes=bm,Sm.varsResolver=xm,Sm.displayName=`@mantine/core/Code`;var Cm={root:`m_7485cace`},wm={strategy:`block`},Tm=St((e,{size:t,fluid:n})=>({root:{"--container-size":n?void 0:k(t,`container-size`)}})),Em=q(e=>{let t=K(`Container`,wm,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,fluid:c,mod:l,attributes:u,strategy:d,...f}=t,p=ir({name:`Container`,classes:Cm,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:Tm});return(0,G.jsx)(J,{mod:[{fluid:c,strategy:d},l],...p(`root`),...f})});Em.classes=Cm,Em.varsResolver=Tm,Em.displayName=`@mantine/core/Container`;var[Dm,Om]=y(`Grid component was not found in tree`),km=(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))`},Am=(e,t,n)=>n||e===`auto`?`100%`:e===`content`?`unset`:km(e,t),jm=(e,t)=>{if(e)return e===`auto`||t?`1`:`auto`},Mm=(e,t)=>{if(e===0)return`0`;if(e)return`calc(${100*e/t}% + ${e/t} * var(--grid-column-gap))`};function Nm({span:e,order:t,offset:n,align:i,selector:a}){let o=Dn(),s=Om(),c=s.breakpoints||o.breakpoints,l=R(e),u=l===void 0?12:l,d=p({"--col-order":R(t)?.toString(),"--col-flex-grow":jm(u,s.grow),"--col-flex-basis":km(u,s.columns),"--col-width":u===`content`?`auto`:void 0,"--col-max-width":Am(u,s.columns,s.grow),"--col-offset":Mm(R(n),s.columns),"--col-align-self":R(i)}),f=r(c).reduce((r,a)=>(r[a]||(r[a]={}),typeof t==`object`&&t[a]!==void 0&&(r[a][`--col-order`]=t[a]?.toString()),typeof e==`object`&&e[a]!==void 0&&(r[a][`--col-flex-grow`]=jm(e[a],s.grow),r[a][`--col-flex-basis`]=km(e[a],s.columns),r[a][`--col-width`]=e[a]===`content`?`auto`:void 0,r[a][`--col-max-width`]=Am(e[a],s.columns,s.grow)),typeof n==`object`&&n[a]!==void 0&&(r[a][`--col-offset`]=Mm(n[a],s.columns)),typeof i==`object`&&i[a]!==void 0&&(r[a][`--col-align-self`]=i[a]),r),{}),m=L(r(f),c).filter(e=>r(f[e.value]).length>0).map(e=>({query:s.type===`container`?`mantine-grid (min-width: ${c[e.value]})`:`(min-width: ${c[e.value]})`,styles:f[e.value]}));return(0,G.jsx)(lr,{styles:d,media:s.type===`container`?void 0:m,container:s.type===`container`?m:void 0,selector:a})}var Pm={container:`m_8478a6da`,root:`m_410352e9`,inner:`m_dee7bd2f`,col:`m_96bdd299`},Fm={span:12},Im=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=Om(),f=Fr();return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Nm,{selector:`.${f}`,span:o,order:s,offset:c,align:l}),(0,G.jsx)(J,{...d.getStyles(`col`,{className:wt(n,f),style:r,classNames:t,styles:i}),...u})]})});Im.classes=Pm,Im.displayName=`@mantine/core/GridCol`;function Lm({gap:e,rowGap:t,columnGap:n,selector:i,breakpoints:a,type:o}){let s=Dn(),c=a||s.breakpoints,l=p({"--grid-gap":A(R(e)),"--grid-row-gap":A(R(t)),"--grid-column-gap":A(R(n))}),u=r(c).reduce((r,i)=>(r[i]||(r[i]={}),typeof e==`object`&&e[i]!==void 0&&(r[i][`--grid-gap`]=A(e[i])),typeof t==`object`&&t[i]!==void 0&&(r[i][`--grid-row-gap`]=A(t[i])),typeof n==`object`&&n[i]!==void 0&&(r[i][`--grid-column-gap`]=A(n[i])),r),{}),d=L(r(u),c).filter(e=>r(u[e.value]).length>0).map(e=>({query:o===`container`?`mantine-grid (min-width: ${c[e.value]})`:`(min-width: ${c[e.value]})`,styles:u[e.value]}));return(0,G.jsx)(lr,{styles:l,media:o===`container`?void 0:d,container:o===`container`?d:void 0,selector:i})}var Rm={gap:`md`,columns:12},zm=St((e,{justify:t,align:n,overflow:r})=>({root:{"--grid-justify":t,"--grid-align":n,"--grid-overflow":r}})),Bm=q(e=>{let t=K(`Grid`,Rm,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=ir({name:`Grid`,classes:Pm,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:zm}),x=Fr();return _===`container`&&g?(0,G.jsxs)(Dm,{value:{getStyles:b,grow:c,columns:f,breakpoints:g,type:_},children:[(0,G.jsx)(Lm,{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)(Dm,{value:{getStyles:b,grow:c,columns:f,breakpoints:g,type:_},children:[(0,G.jsx)(Lm,{selector:`.${x}`,...t}),(0,G.jsx)(J,{...b(`root`,{className:x}),...y,children:(0,G.jsx)(`div`,{...b(`inner`),children:h})})]})});Bm.classes=Pm,Bm.varsResolver=zm,Bm.displayName=`@mantine/core/Grid`,Bm.Col=Im;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`],Hm={"min-height":`0`,"max-height":`none`,height:`0`,visibility:`hidden`,overflow:`hidden`,position:`absolute`,"z-index":`-1000`,top:`0`,right:`0`,display:`block`};function Um(e){Object.keys(Hm).forEach(t=>{e.style.setProperty(t,Hm[t],`important`)})}function Wm(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 Gm=null;function Km(e,t,n=1,r=1/0){Gm||(Gm=document.createElement(`textarea`),Gm.setAttribute(`tabindex`,`-1`),Gm.setAttribute(`aria-hidden`,`true`),Gm.setAttribute(`aria-label`,`autosize measurement`),Um(Gm)),Gm.parentNode===null&&document.body.appendChild(Gm);let{paddingSize:i,borderSize:a,sizingStyle:o}=e,{boxSizing:s}=o;Object.keys(o).forEach(e=>{Gm.style[e]=o[e]}),Um(Gm),Gm.value=t;let c=s===`border-box`?Gm.scrollHeight+a:Gm.scrollHeight-i;Gm.value=t,c=s===`border-box`?Gm.scrollHeight+a:Gm.scrollHeight-i,Gm.value=`x`;let l=Gm.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 qm({maxRows:e,minRows:t,onChange:n,ref:r,...i}){let a=i.value!==void 0,o=(0,_.useRef)(null),s=Re(o,r),c=(0,_.useRef)(0),l=(0,_.useRef)(0),u=()=>{let n=o.current;if(!n)return;let r=Wm(n);if(!r)return;let[i]=Km(r,n.value||n.placeholder||`x`,t,e);c.current!==i&&(c.current=i,n.style.setProperty(`height`,`${i}px`,`important`))},d=(0,_.useEffectEvent)(u),f=e=>{a||u(),n?.(e)};return(0,_.useLayoutEffect)(u),(0,_.useEffect)(()=>{let e=()=>u();return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),(0,_.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,_.useEffect)(()=>{let e=()=>u();return document.fonts.addEventListener(`loadingdone`,e),()=>document.fonts.removeEventListener(`loadingdone`,e)},[]),(0,_.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 Jm=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&&ht()!==`test`,u=l?{maxRows:n,minRows:r}:{};return(0,G.jsx)(Fd,{component:l?qm:`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})});Jm.classes=Fd.classes,Jm.displayName=`@mantine/core/Textarea`;var[Ym,Xm]=y(`List component was not found in tree`),Zm={root:`m_abbac491`,item:`m_abb6bec2`,itemWrapper:`m_75cd9f71`,itemIcon:`m_60f83e5b`},Qm=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=Xm(),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})]})})});Qm.classes=Zm,Qm.displayName=`@mantine/core/ListItem`;var $m={type:`unordered`},eh=St((e,{size:t,spacing:n})=>({root:{"--list-fz":M(t),"--list-lh":N(t),"--list-spacing":A(n)}})),th=q(e=>{let t=K(`List`,$m,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=ir({name:`List`,classes:Zm,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:g,vars:s,varsResolver:eh});return(0,G.jsx)(Ym,{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})})});th.classes=Zm,th.varsResolver=eh,th.displayName=`@mantine/core/List`,th.Item=Qm;var[nh,rh]=y(`Menu component was not found in the tree`),ih=(0,_.createContext)(null);function ah(e){let{value:t,defaultValue:n,onChange:r,children:i}=K(`MenuCheckboxGroup`,null,e),[a,o]=ze({value:t,defaultValue:n,finalValue:[],onChange:r}),s=(0,_.useCallback)(e=>{o(a.includes(e)?a.filter(t=>t!==e):[...a,e])},[a,o]);return(0,G.jsx)(ih,{value:{values:a,onChange:s},children:i})}ah.displayName=`@mantine/core/MenuCheckboxGroup`;var oh=(0,_.createContext)(null);function sh({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=rh(),v=(0,_.use)(oh),y=Dn(),{dir:b}=Yr(),x=b===`rtl`?`ArrowRight`:`ArrowLeft`,S=(0,_.useRef)(null),C=F(h.onClick,()=>{l||(r(),a&&g.closeDropdownImmediately())}),T=F(h.onMouseMove,()=>{if(!g.hasSearch)return;let e=S.current?.closest(`[data-menu-dropdown]`);e&&e.querySelectorAll(`[data-menu-active]`).forEach(t=>{t!==S.current&&t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}),E=F(h.onKeyDown,e=>{e.key===x&&v&&(v.close(),v.focusParentItem())}),D=i?y.variantColorResolver({color:i,theme:y,variant:`light`}):void 0,O=i?Vt({color:i,theme:y}):null,k=g.alignItemsLabels!==`none`||t;return(0,G.jsxs)(vc,{onMouseDown:e=>e.preventDefault(),...h,unstyled:g.unstyled,tabIndex:g.menuItemTabIndex,...g.getStyles(`item`,{className:u,style:d,styles:f,classNames:p}),ref:Re(S,m),role:e,"aria-checked":t,disabled:c,"aria-disabled":c||l||void 0,"data-menu-item":!0,"data-checked":t||void 0,"data-disabled":c||l||void 0,"data-mantine-stop-propagation":!0,onClick:C,onMouseMove:T,onKeyDown:w({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:g.loop,dir:b,orientation:`vertical`,onKeyDown:E}),__vars:{"--menu-item-color":O?.isThemeColor&&O?.shade===void 0?`var(--mantine-color-${O.color}-6)`:D?.color,"--menu-item-hover":D?.hover},children:[k&&(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 ch={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`},lh=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,...y}=K(`MenuCheckboxItem`,null,e),b=rh(),x=(0,_.use)(ih),S=x&&f!==void 0?x.values.includes(f):void 0,[C,w]=ze({value:p??S,defaultValue:m,finalValue:!1,onChange:h}),T=g??b.checkIcon??(0,G.jsx)(Op,{size:10});return(0,G.jsx)(sh,{role:`menuitemcheckbox`,checked:C,indicator:T,onSelect:()=>{h?w(!C):x&&f!==void 0?x.onChange(f):w(!C)},color:o,closeMenuOnClick:s,rightSection:c,disabled:u,dataDisabled:d,className:n,style:r,styles:i,classNames:t,buttonRef:v,others:y,children:l})});lh.classes=ch,lh.displayName=`@mantine/core/MenuCheckboxItem`;function uh(e){let{children:t,disabled:n,longPressDelay:r}=K(`MenuContextMenu`,null,e),i=xt(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=rh(),o=Qc(),s=$c({childProps:i.props,disabled:n||o.disabled,opened:a.opened,longPressDelay:r,setReference:o.reference,open:()=>a.openDropdown()});return(0,_.cloneElement)(i,s)}uh.displayName=`@mantine/core/MenuContextMenu`;var dh=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`MenuDivider`,null,e),s=rh();return(0,G.jsx)(J,{...s.getStyles(`divider`,{className:n,style:r,styles:i,classNames:t}),...o})});dh.classes=ch,dh.displayName=`@mantine/core/MenuDivider`;var fh=500;function ph(e){return((e.querySelector(`[data-menu-item-label]`)??e).textContent??``).trim().toLowerCase()}function mh(e){return e.length>1&&e.split(``).every(t=>t===e[0])}function hh({enabled:e,opened:t,getDropdown:n}){let r=(0,_.useRef)({buffer:``,timeoutId:null});return(0,_.useEffect)(()=>{if(t&&e)return;let n=r.current;n.timeoutId!==null&&(window.clearTimeout(n.timeoutId),n.timeoutId=null),n.buffer=``},[t,e]),(0,_.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},fh);let c=document.activeElement,l=c?o.indexOf(c):-1,u=null;if(s.buffer.length===1||mh(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(ph(o[r]).startsWith(e)){u=o[r];break}}}else for(let e=0;e<o.length;e+=1)if(ph(o[e]).startsWith(s.buffer)){u=o[e];break}u&&(t.preventDefault(),u.focus())}}var gh=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,_.useRef)(null),p=rh(),m=hh({enabled:!p.hasSearch,opened:p.opened,getDropdown:()=>f.current}),h=F(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=F(o,()=>(p.trigger===`hover`||p.trigger===`click-hover`)&&p.openDropdown()),v=F(s,()=>(p.trigger===`hover`||p.trigger===`click-hover`)&&p.closeDropdown());return(0,G.jsxs)(fl.Dropdown,{...d,onMouseEnter:g,onMouseLeave:v,role:`menu`,"aria-orientation":`vertical`,ref:Re(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]})});gh.classes=ch,gh.displayName=`@mantine/core/MenuDropdown`;var _h=Vr(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=rh(),g=(0,_.use)(oh),v=Dn(),{dir:y}=Yr(),b=y===`rtl`?`ArrowRight`:`ArrowLeft`,x=(0,_.useRef)(null),S=m,C=F(S.onClick,()=>{f||(typeof s==`boolean`?s&&h.closeDropdownImmediately():h.closeOnItemClick&&h.closeDropdownImmediately())}),T=F(S.onMouseMove,()=>{if(!h.hasSearch)return;let e=x.current?.closest(`[data-menu-dropdown]`);e&&e.querySelectorAll(`[data-menu-active]`).forEach(t=>{t!==x.current&&t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}),E=o?v.variantColorResolver({color:o,theme:v,variant:`light`}):void 0,D=o?Vt({color:o,theme:v}):null,O=F(S.onKeyDown,e=>{e.key===b&&g&&(g.close(),g.focusParentItem())});return(0,G.jsxs)(vc,{onMouseDown:e=>e.preventDefault(),...m,unstyled:h.unstyled,tabIndex:h.menuItemTabIndex,...h.getStyles(`item`,{className:n,style:r,styles:i,classNames:t}),ref:Re(x,p),role:`menuitem`,disabled:d,"aria-disabled":d||f||void 0,"data-menu-item":!0,"data-disabled":d||f||void 0,"data-mantine-stop-propagation":!0,onClick:C,onMouseMove:T,onKeyDown:w({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:h.loop,dir:y,orientation:`vertical`,onKeyDown:O}),__vars:{"--menu-item-color":D?.isThemeColor&&D?.shade===void 0?`var(--mantine-color-${D.color}-6)`:E?.color,"--menu-item-hover":E?.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})]})});_h.classes=ch,_h.displayName=`@mantine/core/MenuItem`;var vh=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`MenuLabel`,null,e),s=rh();return(0,G.jsx)(J,{...s.getStyles(`label`,{className:n,style:r,styles:i,classNames:t}),...o})});vh.classes=ch,vh.displayName=`@mantine/core/MenuLabel`;var yh=(0,_.createContext)(null);function bh(e){let{value:t,defaultValue:n,onChange:r,children:i}=K(`MenuRadioGroup`,null,e),[a,o]=ze({value:t,defaultValue:n,finalValue:null,onChange:r});return(0,G.jsx)(yh,{value:{value:a,onChange:e=>o(e)},children:i})}bh.displayName=`@mantine/core/MenuRadioGroup`;function xh({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:d(e),height:d(e),...t},"aria-hidden":!0,...n,children:(0,G.jsx)(`circle`,{cx:`2.5`,cy:`2.5`,r:`2.5`,fill:`currentColor`})})}var Sh=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,...v}=K(`MenuRadioItem`,null,e),y=rh(),b=(0,_.use)(yh),x=p??(b?b.value===f:!1),S=h??y.checkIcon??(0,G.jsx)(xh,{size:5});return(0,G.jsx)(sh,{role:`menuitemradio`,checked:x,indicator:S,onSelect:()=>{x||(m?m(f):b&&b.onChange(f))},color:o,closeMenuOnClick:s,rightSection:c,disabled:u,dataDisabled:d,className:n,style:r,styles:i,classNames:t,buttonRef:g,others:v,children:l})});Sh.classes=ch,Sh.displayName=`@mantine/core/MenuRadioItem`;var Ch=`[data-menu-item]:not([data-disabled])`,wh=`[data-menu-active]`;function Th(e){return e?.closest(`[data-menu-dropdown]`)}function Eh(e){return e?Array.from(e.querySelectorAll(Ch)).filter(t=>t.closest(`[data-menu-dropdown]`)===e):[]}function Dh(e){e&&e.querySelectorAll(wh).forEach(t=>{t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}function Oh(e,t){Dh(t),e&&(e.setAttribute(`data-menu-active`,`true`),e.scrollIntoView({block:`nearest`}))}function kh(e){return e.findIndex(e=>e.hasAttribute(`data-menu-active`))}var Ah={clearSearchOnClose:!0},jh=q(e=>{let{classNames:t,styles:n,onKeyDown:r,onChange:i,size:a,clearSearchOnClose:o,ref:s,...c}=K(`MenuSearch`,Ah,e),l=rh(),{dir:u}=Yr(),d=(0,_.useRef)(null),f=Re(s,d),p=(0,_.useRef)(i);p.current=i,(0,_.useEffect)(()=>l.registerSearch(),[l.registerSearch]),(0,_.useEffect)(()=>{o?l.searchExitClearRef.current=()=>{p.current?.({currentTarget:{value:``}})}:l.searchExitClearRef.current=null},[o,l.searchExitClearRef]),(0,_.useEffect)(()=>{l.opened||Dh(Th(d.current))},[l.opened]);let m=F(i,e=>{Dh(Th(e.currentTarget))}),h=F(r,e=>{if(e.defaultPrevented)return;let t=Th(e.currentTarget),n=Eh(t);if(e.key===`ArrowDown`){if(e.preventDefault(),n.length===0)return;let r=kh(n);Oh(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=kh(n);Oh(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&&Oh(n[0],t);else if(e.key===`End`)e.preventDefault(),n.length>0&&Oh(n[n.length-1],t);else if(e.key===`Enter`){if(e.nativeEvent.isComposing||e.nativeEvent.keyCode===229)return;let t=n[kh(n)];t&&(e.preventDefault(),t.hasAttribute(`data-sub-menu-item`)?(t.focus(),t.dispatchEvent(new KeyboardEvent(`keydown`,{key:u===`rtl`?`ArrowLeft`:`ArrowRight`,bubbles:!0}))):t.click())}}),g=l.getStyles(`search`);return(0,G.jsx)(Md,{"data-autofocus":!0,"data-mantine-stop-propagation":!0,type:`search`,size:a,...c,ref:f,classNames:[{input:g.className},t],styles:[{input:g.style},n],onKeyDown:h,onChange:m,__staticSelector:`Menu`})});jh.classes=ch,jh.displayName=`@mantine/core/MenuSearch`;var Mh=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,_.useRef)(null),h=rh(),g=(0,_.use)(oh),v=hh({enabled:!h.hasSearch,opened:g?.opened??!1,getDropdown:()=>m.current}),y=F(u,e=>{v(e),e.ctrlKey||e.metaKey||e.altKey||e.key.length!==1||e.key===` `||e.stopPropagation()}),b=g?.getFloatingProps({onMouseEnter:o,onMouseLeave:s,onPointerEnter:c,onPointerLeave:l});return(0,G.jsx)(fl.Dropdown,{...p,...b,role:`menu`,"aria-orientation":`vertical`,ref:Re(f,m,g?.setFloating),...h.getStyles(`dropdown`,{className:n,style:r,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:y,children:d})});Mh.classes=ch,Mh.displayName=`@mantine/core/MenuSubDropdown`;var Nh=Vr(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=rh(),g=(0,_.use)(oh),v=Dn(),{dir:y}=Yr(),b=y===`rtl`?`ArrowLeft`:`ArrowRight`,x=y===`rtl`?`ArrowRight`:`ArrowLeft`,S=(0,_.useRef)(null),C=m,T=o?v.variantColorResolver({color:o,theme:v,variant:`light`}):void 0,E=o?Vt({color:o,theme:v}):null,D=F(C.onKeyDown,e=>{e.key===b&&(g?.open(),g?.focusFirstItem()),e.key===x&&g?.parentContext&&(g.parentContext.close(),g.parentContext.focusParentItem())}),O=F(C.onClick,()=>{!d&&f&&h.closeDropdownImmediately()}),k=F(C.onMouseMove,()=>{if(!h.hasSearch)return;let e=S.current?.closest(`[data-menu-dropdown]`);e&&e.querySelectorAll(`[data-menu-active]`).forEach(t=>{t!==S.current&&t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}),A=g?.getReferenceProps({onMouseEnter:C.onMouseEnter,onMouseLeave:C.onMouseLeave,onPointerEnter:C.onPointerEnter,onPointerLeave:C.onPointerLeave});return(0,G.jsxs)(vc,{onMouseDown:e=>e.preventDefault(),...m,...A,unstyled:h.unstyled,tabIndex:h.menuItemTabIndex,...h.getStyles(`item`,{className:n,style:r,styles:i,classNames:t}),ref:Re(S,p,g?.setReference),role:`menuitem`,disabled:u,"aria-disabled":u||d||void 0,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":u||d||void 0,"data-mantine-stop-propagation":!0,onClick:O,onMouseMove:k,onKeyDown:w({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:h.loop,dir:y,orientation:`vertical`,onKeyDown:D}),__vars:{"--menu-item-color":E?.isThemeColor&&E?.shade===void 0?`var(--mantine-color-${E.color}-6)`:T?.color,"--menu-item-hover":T?.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)(Vd,{...h.getStyles(`chevron`),size:14})})]})});Nh.classes=ch,Nh.displayName=`@mantine/core/MenuSubItem`;function Ph({children:e,refProp:t}){if(!v(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 rh(),(0,G.jsx)(fl.Target,{refProp:t,popupType:`menu`,children:e})}Ph.displayName=`@mantine/core/MenuSubTarget`;var Fh={offset:0,position:`right-start`,safeAreaPolygon:!0,transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function Ih(e){let{children:t,closeDelay:n,openDelay:r,position:i,safeAreaPolygon:a,opened:o,onChange:s,...c}=K(`MenuSub`,Fh,e),l=Pe(),[u,d]=ze({value:o,finalValue:!1,onChange:s}),f=(0,_.use)(oh),p=rh(),{dir:m}=Yr(),h=jc(m,i),g=f?.registerOpenSub??p.registerOpenSub,v=(0,_.useRef)(null),y=(0,_.useCallback)(e=>{let t=v.current;return t&&t!==e&&t(),v.current=e,()=>{v.current===e&&(v.current=null)}},[]),b=(0,_.useRef)(d);b.current=d;let x=(0,_.useCallback)(()=>b.current(!0),[]),S=(0,_.useCallback)(()=>b.current(!1),[]);(0,_.useEffect)(()=>{if(u)return g(S)},[u,g,S]);let{context:C,refs:w}=tc({placement:h,open:u,onOpenChange:e=>{e?x():S()}}),{getReferenceProps:T,getFloatingProps:E}=ac([Hs(C,{handleClose:a?dc(typeof a==`object`?a:void 0):void 0,delay:{open:r,close:n}})]);return(0,G.jsx)(oh,{value:{opened:u,close:S,open:x,focusFirstItem:()=>window.setTimeout(()=>{document.getElementById(`${l}-dropdown`)?.querySelectorAll(`[data-menu-item]:not([data-disabled])`)[0]?.focus()},16),focusParentItem:()=>window.setTimeout(()=>{document.getElementById(l)?.focus()},16),parentContext:f,setReference:w.setReference,setFloating:w.setFloating,getReferenceProps:T,getFloatingProps:E,registerOpenSub:y},children:(0,G.jsx)(fl,{opened:u,onChange:e=>e?x():S(),withArrow:!1,id:l,position:i,...c,withinPortal:!1,children:t})})}Ih.extend=e=>e,Ih.displayName=`@mantine/core/MenuSub`,Ih.Target=Ph,Ih.Dropdown=Mh,Ih.Item=Nh;var Lh={refProp:`ref`};function Rh(e){let{children:t,refProp:n,...r}=K(`MenuTarget`,Lh,e),i=xt(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=rh(),o=i.props,s=F(o.onClick,()=>{a.trigger===`click`?a.toggleDropdown():a.trigger===`click-hover`&&(a.setOpenedViaClick(!0),a.opened||a.openDropdown())}),c=F(o.onMouseEnter,()=>(a.trigger===`hover`||a.trigger===`click-hover`)&&a.openDropdown()),l=F(o.onMouseLeave,()=>{(a.trigger===`hover`||a.trigger===`click-hover`&&!a.openedViaClick)&&a.closeDropdown()});return(0,G.jsx)(fl.Target,{refProp:n,popupType:`menu`,...r,children:(0,_.cloneElement)(i,{onClick:s,onMouseEnter:c,onMouseLeave:l,"data-expanded":a.opened?!0:void 0})})}Rh.displayName=`@mantine/core/MenuTarget`;var zh={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:[`mousedown`,`touchstart`,`keydown`],loop:!0,trigger:`click`,openDelay:0,closeDelay:100,menuItemTabIndex:-1,alignItemsLabels:`with-indicators`},Bh=q(e=>{let t=K(`Menu`,zh,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:v,variant:y,vars:b,menuItemTabIndex:x,keepMounted:S,withInitialFocusPlaceholder:C,attributes:w,onExitTransitionEnd:T,alignItemsLabels:E,checkIcon:D,...O}=t,k=ir({name:`Menu`,classes:ch,props:t,classNames:h,styles:g,unstyled:v,attributes:w}),[A,j]=ze({value:a,defaultValue:o,finalValue:!1,onChange:c}),[M,N]=(0,_.useState)(!1),P=()=>{j(!1),N(!1),A&&i?.()},F=()=>{j(!0),!A&&r?.()},I=()=>{A?P():F()},{openDropdown:L,closeDropdown:R}=Mc({open:F,close:P,closeDelay:m,openDelay:p}),B=(0,_.useRef)(null),ee=(0,_.useCallback)(e=>{let t=B.current;return t&&t!==e&&t(),B.current=e,()=>{B.current===e&&(B.current=null)}},[]),te=(0,_.useRef)(0),[ne,re]=(0,_.useState)(!1),ie=(0,_.useCallback)(()=>(te.current+=1,te.current===1&&re(!0),()=>{--te.current,te.current===0&&re(!1)}),[]),ae=(0,_.useRef)(null),oe=()=>{ae.current?.(),T?.()},se=e=>z(`[data-menu-item]`,`[data-menu-dropdown]`,e),{resolvedClassNames:V,resolvedStyles:H}=Un({classNames:h,styles:g,props:t});return(0,G.jsx)(nh,{value:{getStyles:k,opened:A,toggleDropdown:I,getItemIndex:se,openedViaClick:M,setOpenedViaClick:N,closeOnItemClick:l,closeDropdown:f===`click`?P:R,openDropdown:f===`click`?F:L,closeDropdownImmediately:P,loop:u,trigger:f,unstyled:v,menuItemTabIndex:x,withInitialFocusPlaceholder:C,registerOpenSub:ee,hasSearch:ne,registerSearch:ie,searchExitClearRef:ae,alignItemsLabels:E,checkIcon:D},children:(0,G.jsx)(fl,{returnFocus:!0,...O,opened:A,onChange:I,defaultOpened:o,trapFocus:!S&&s,closeOnEscape:d,__staticSelector:`Menu`,classNames:V,styles:H,unstyled:v,variant:y,keepMounted:S,onExitTransitionEnd:oe,children:n})})});Bh.displayName=`@mantine/core/Menu`,Bh.classes=ch,Bh.Item=_h,Bh.Label=vh,Bh.Dropdown=gh,Bh.Target=Rh,Bh.Divider=dh,Bh.Search=jh,Bh.Sub=Ih,Bh.CheckboxItem=lh,Bh.CheckboxGroup=ah,Bh.RadioItem=Sh,Bh.RadioGroup=bh,Bh.ContextMenu=uh;var[Vh,Hh]=y(`Modal component was not found in tree`),Uh={root:`m_9df02822`,content:`m_54c44539`,inner:`m_1f958f16`,header:`m_d0e2b9cd`},Wh=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ModalBody`,null,e),s=Hh();return(0,G.jsx)(ed,{...s.getStyles(`body`,{classNames:t,style:r,styles:i,className:n}),...o})});Wh.classes=Uh,Wh.displayName=`@mantine/core/ModalBody`;var Gh=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ModalCloseButton`,null,e),s=Hh();return(0,G.jsx)(td,{...s.getStyles(`close`,{classNames:t,style:r,styles:i,className:n}),...o})});Gh.classes=Uh,Gh.displayName=`@mantine/core/ModalCloseButton`;var Kh=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,__hidden:s,...c}=K(`ModalContent`,null,e),l=Hh(),u=l.scrollAreaComponent||ld;return(0,G.jsx)(nd,{...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 - (${d(l.yOffset)} * 2))`},children:o})})});Kh.classes=Uh,Kh.displayName=`@mantine/core/ModalContent`;var qh=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ModalHeader`,null,e),s=Hh();return(0,G.jsx)(rd,{...s.getStyles(`header`,{classNames:t,style:r,styles:i,className:n}),...o})});qh.classes=Uh,qh.displayName=`@mantine/core/ModalHeader`;var Jh=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ModalOverlay`,null,e),s=Hh();return(0,G.jsx)(od,{...s.getStyles(`overlay`,{classNames:t,style:r,styles:i,className:n}),...o})});Jh.classes=Uh,Jh.displayName=`@mantine/core/ModalOverlay`;var Yh={__staticSelector:`Modal`,closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:E(`modal`),transitionProps:{duration:200,transition:`fade-down`},yOffset:`5dvh`},Xh=St((e,{radius:t,size:n,yOffset:r,xOffset:i})=>({root:{"--modal-radius":t===void 0?void 0:j(t),"--modal-size":k(n,`modal-size`),"--modal-y-offset":d(r),"--modal-x-offset":d(i)}})),Zh=q(e=>{let t=K(`ModalRoot`,Yh,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,_=ir({name:m,classes:Uh,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:Xh});return(0,G.jsx)(Vh,{value:{yOffset:c,scrollAreaComponent:l,getStyles:_,fullScreen:d},children:(0,G.jsx)(Zu,{..._(`root`),"data-full-screen":d||void 0,"data-centered":f||void 0,"data-offset-scrollbars":l===mc.Autosize||void 0,unstyled:o,...g})})});Zh.classes=Uh,Zh.varsResolver=Xh,Zh.displayName=`@mantine/core/ModalRoot`;var Qh=(0,_.createContext)(null);function $h({children:e}){let[t,n]=(0,_.useState)([]),[r,i]=(0,_.useState)(E(`modal`)),[a]=(0,_.useState)(()=>new WeakSet);return(0,G.jsx)(Qh,{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})}$h.displayName=`@mantine/core/ModalStack`;var eg=q(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=K(`ModalTitle`,null,e),s=Hh();return(0,G.jsx)(cd,{...s.getStyles(`title`,{classNames:t,style:r,styles:i,className:n}),...o})});eg.classes=Uh,eg.displayName=`@mantine/core/ModalTitle`;var tg={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:E(`modal`),transitionProps:{duration:200,transition:`fade-down`},withOverlay:!0,withCloseButton:!0},ng=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`,tg,e),f=(0,_.use)(Qh),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,_.useEffect)(()=>{f&&l&&(c?f.addModal(l,u||E(`modal`)):f.removeModal(l))},[c,l,u]),(0,G.jsxs)(Zh,{radius:s,opened:c,zIndex:f&&l?f.getZIndex(l):u,...d,...m,children:[n&&(0,G.jsx)(Jh,{visible:h,transitionProps:f&&l?{duration:0}:void 0,...r}),(0,G.jsxs)(Kh,{radius:s,__hidden:f&&l&&c?l!==f.currentId:!1,children:[p&&(0,G.jsxs)(qh,{children:[t&&(0,G.jsx)(eg,{children:t}),i&&(0,G.jsx)(Gh,{...a})]}),(0,G.jsx)(Wh,{children:o})]})]})});ng.classes=Uh,ng.displayName=`@mantine/core/Modal`,ng.Root=Zh,ng.Overlay=Jh,ng.Content=Kh,ng.Body=Wh,ng.Header=qh,ng.Title=eg,ng.CloseButton=Gh,ng.Stack=$h;var rg=(0,_.createContext)(null),ig={root:`m_7cda1cd6`,"root--default":`m_44da308b`,"root--contrast":`m_e3a01f8`,label:`m_1e0e6180`,remove:`m_ae386778`,group:`m_1dcfd90b`},ag=(0,_.createContext)(null),og=St((e,{gap:t},{size:n})=>({group:{"--pg-gap":t===void 0?k(n,`pg-gap`):k(t)}})),sg=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,_.use)(rg)?.size||c||void 0,p=ir({name:`PillGroup`,classes:ig,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:og,stylesCtx:{size:f},rootSelector:`group`});return(0,G.jsx)(ag,{value:{size:f,disabled:l},children:(0,G.jsx)(J,{size:f,...p(`group`),...d})})});sg.classes=ig,sg.varsResolver=og,sg.displayName=`@mantine/core/PillGroup`;var cg={variant:`default`},lg=St((e,{radius:t},{size:n})=>({root:{"--pill-fz":k(n,`pill-fz`),"--pill-height":k(n,`pill-height`),"--pill-radius":t===void 0?void 0:j(t)}})),ug=q(e=>{let t=K(`Pill`,cg,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,...y}=t,b=(0,_.use)(ag),x=(0,_.use)(rg),S=m||b?.size||void 0,C=x?.variant===`filled`?`contrast`:c||`default`,w=ir({name:`Pill`,classes:ig,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:lg,stylesCtx:{size:S}});return(0,G.jsxs)(J,{component:`span`,variant:C,size:S,...w(`root`,{variant:C}),mod:[{"with-remove":u&&!h,disabled:h||b?.disabled},g],...y,children:[(0,G.jsx)(`span`,{...w(`label`),children:l}),u&&(0,G.jsx)(Nl,{variant:`transparent`,radius:p,tabIndex:-1,"aria-hidden":!0,unstyled:o,...f,...w(`remove`,{className:f?.className,style:f?.style}),onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),f?.onMouseDown?.(e)},onClick:e=>{e.stopPropagation(),d?.(),f?.onClick?.(e)}})]})});ug.classes=ig,ug.varsResolver=lg,ug.displayName=`@mantine/core/Pill`,ug.Group=sg;var dg={field:`m_45c4369d`},fg={type:`visible`},pg=q(e=>{let t=K(`PillsInputField`,fg,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,_.use)(rg),v=(0,_.use)(md),y=ir({name:`PillsInputField`,classes:dg,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,rootSelector:`field`}),b=l||g?.disabled;return(0,G.jsx)(J,{component:`input`,ref:Re(m,g?.fieldRef),"data-type":c,disabled:b,mod:[{disabled:b,pointer:d},f],...y(`field`),...h,id:v?.inputId||u,"aria-invalid":g?.hasError,"aria-describedby":v?.describedBy,type:`text`,onMouseDown:e=>!d&&e.stopPropagation()})});pg.classes=dg,pg.displayName=`@mantine/core/PillsInputField`;var mg={size:`sm`},hg=q(e=>{let{children:t,onMouseDown:n,onClick:r,size:i,disabled:a,__staticSelector:o,error:s,variant:c,...l}=K([`Input`,`InputWrapper`,`PillsInput`],mg,e),u=(0,_.useRef)(null);return(0,G.jsx)(rg,{value:{fieldRef:u,size:i,disabled:a,hasError:!!s,variant:c},children:(0,G.jsx)(Fd,{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})})});hg.displayName=`@mantine/core/PillsInput`,hg.classes=Fd.classes,hg.Field=pg;function gg(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 _g(e){return typeof e==`string`?e.trim().toLowerCase():e}function vg({data:e,value:t}){let n=t.map(_g);return e.reduce((e,t)=>(Vp(t)?e.push({group:t.group,items:t.items.filter(e=>n.indexOf(_g(e.value))===-1)}):n.indexOf(_g(t.value))===-1&&e.push(t),e),[])}var yg={xs:41,sm:50,md:60,lg:72,xl:89},bg={maxValues:1/0,withCheckIcon:!0,checkIconPosition:`left`,hiddenInputValuesDivider:`,`,clearSearchOnChange:!0,openOnFocus:!0,size:`sm`},xg=Br(e=>{let t=K([`Input`,`InputWrapper`,`MultiSelect`],bg,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:v,onDropdownClose:y,selectFirstOptionOnChange:b,selectFirstOptionOnDropdownOpen:x,onOptionSubmit:S,comboboxProps:C,filter:w,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:B,leftSection:ee,leftSectionWidth:te,leftSectionPointerEvents:ne,leftSectionProps:re,inputContainer:ie,inputWrapperOrder:ae,withAsterisk:oe,labelProps:se,descriptionProps:V,errorProps:H,successProps:ce,wrapperProps:le,description:U,label:W,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:Oe,hiddenInputValuesDivider:ke,required:Ae,mod:je,renderOption:Me,renderPill:Ne,onRemove:Fe,onClear:Ie,onMaxValues:Le,scrollAreaProps:Re,chevronColor:Be,attributes:Ve,clearSearchOnChange:He,openOnFocus:Ue,loading:We,loadingPosition:Ge,withPillsReorder:Ke,...qe}=t,Je=Pe(Ce),Ye=Qp({id:Je,label:W,labelProps:se,inputWrapperOrder:ae}),Xe=Bf(m),Ze=Vf(Xe),Qe=(0,_.useRef)({}),$e=hp({opened:h,defaultOpened:g,onDropdownOpen:()=>{v?.(),x&&$e.selectFirstOption()},onDropdownClose:()=>{y?.(),$e.resetSelectedOption()}}),{styleProps:et,rest:{type:tt,autoComplete:nt,...rt}}=fr(qe),[it,at]=ze({value:l,defaultValue:u,finalValue:[],onChange:d}),{getPillProps:ot,getListProps:st,handleInputKeyDown:ct}=Zp({value:it,onChange:at,enabled:Ke&&!N&&!M}),[lt,ut]=ze({value:k,defaultValue:A,finalValue:``,onChange:j}),dt=e=>{ut(e),$e.resetSelectedOption()},ft=ir({name:`MultiSelect`,classes:{},props:t,classNames:n,styles:a,unstyled:o,attributes:Ve}),{resolvedClassNames:pt,resolvedStyles:mt}=Un({props:t,styles:a,classNames:n}),ht=e=>{f?.(e),!e.defaultPrevented&&(e.key===` `&&!pe&&(e.preventDefault(),$e.toggleDropdown()),e.key===`Backspace`&<.length===0&&it.length>0&&!M&&(Fe?.(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 Ne?(0,G.jsx)(_.Fragment,{children:Ne({option:n,value:e,onRemove:()=>{at(it.filter(t=>e!==t)),Fe?.(e)},disabled:N,reorderProps:r})},`${e}-${t}`):(0,G.jsx)(ug,{withRemoveButton:!M&&!Ze[`${e}`]?.disabled,onRemove:()=>{at(it.filter(t=>e!==t)),Fe?.(e)},unstyled:o,disabled:N,...ft(`pill`),...r,children:n?.label||e},`${e}-${t}`)});(0,_.useEffect)(()=>{b&&$e.selectFirstOption()},[b,lt]),(0,_.useEffect)(()=>{it.forEach(e=>{`${e}`in Ze&&(Qe.current[`${e}`]=Ze[`${e}`])})},[Ze,it]);let _t=(0,G.jsx)(vp.ClearButton,{...Ee,onClear:()=>{Ie?.(),at([]),dt(``)}}),vt=vg({data:Xe,value:it}),yt=we&&it.length>0&&!N&&!M,bt=yt?{paddingInlineEnd:yg[c]??yg.sm}:void 0;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(vp,{store:$e,classNames:pt,styles:mt,unstyled:o,size:c,readOnly:M,__staticSelector:`MultiSelect`,attributes:Ve,floatingHeight:O,onOptionSubmit:e=>{S?.(e),He&&dt(``),$e.updateSelectedOptionIndex(`selected`),it.includes(Ze[`${e}`].value)?(at(it.filter(t=>t!==Ze[`${e}`].value)),Fe?.(Ze[`${e}`].value)):it.length<fe?at([...it,Ze[`${e}`].value]):Le?.()},...C,children:[(0,G.jsx)(vp.DropdownTarget,{children:(0,G.jsx)(hg,{...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)(vp.Chevron,{size:c,error:ue,unstyled:o,color:Be}),__clearSection:_t,__clearable:yt,__clearSectionMode:Te,rightSection:L,rightSectionPointerEvents:z||`none`,rightSectionWidth:R,rightSectionProps:B,leftSection:ee,leftSectionWidth:te,leftSectionPointerEvents:ne,leftSectionProps:re,loading:We,loadingPosition:Ge,inputContainer:ie,inputWrapperOrder:ae,withAsterisk:oe,labelProps:se,descriptionProps:V,errorProps:H,successProps:ce,wrapperProps:le,description:U,label:W,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:Ae,mod:je,attributes:Ve,children:(0,G.jsxs)(ug.Group,{attributes:Ve,disabled:N,unstyled:o,...ft(`pillsList`,{style:bt}),...st(),children:[gt,(0,G.jsx)(vp.EventsTarget,{autoComplete:nt,withExpandedAttribute:!0,children:(0,G.jsx)(hg.Field,{...rt,id:Je,placeholder:Oe,type:!pe&&!Oe?`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(ym(e)){if(!M){let t=gg(Ze,e.currentTarget.value);t&&!it.includes(t.value)&&it.length<fe&&at([...it,t.value])}}else dt(e.currentTarget.value),pe&&$e.openDropdown(),b&&$e.selectFirstOption()},disabled:N,readOnly:M||!pe,pointer:!pe})})]})})}),(0,G.jsx)(qp,{data:ve?vt:Xe,hidden:M||N,filter:w,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:Me,scrollAreaProps:Re})]}),(0,G.jsx)(vp.HiddenInput,{name:xe,valuesDivider:ke,value:it,form:Se,disabled:N,...De})]})});xg.classes={...Fd.classes,...vp.classes},xg.displayName=`@mantine/core/MultiSelect`;var Sg={root:`m_f0824112`,description:`m_57492dcc`,section:`m_690090b5`,label:`m_1f6ac4c4`,body:`m_f07af9d2`,children:`m_e17b862f`,chevron:`m_1fd8a00b`},Cg=St((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":A(r)}}}),wg=Vr(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=ir({name:`NavLink`,props:t,classes:Sg,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:C,vars:s,varsResolver:Cg}),[k,A]=ze({value:c,defaultValue:l,finalValue:!1,onChange:u}),j=!!d,M=Pe(),N=e=>{w?.(e),j&&(e.preventDefault(),A(!k))};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(vc,{...O(`root`),component:`a`,onClick:N,onKeyDown:e=>{T?.(e),e.nativeEvent.code===`Space`&&j&&(e.preventDefault(),A(!k))},unstyled:o,mod:[{disabled:p,active:f,expanded:k},S],"aria-expanded":j?k:void 0,"aria-controls":j?M:void 0,...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)(Vd,{...O(`chevron`)}):h})]}),j&&(0,G.jsx)(Zr,{id:M,expanded:k,keepMounted:E,...O(`collapse`),children:(0,G.jsx)(`div`,{...O(`children`),children:d})})]})});wg.classes=Sg,wg.varsResolver=Cg,wg.displayName=`@mantine/core/NavLink`;var Tg={root:`m_a513464`,icon:`m_a4ceffb`,loader:`m_b0920b15`,body:`m_a49ed24`,title:`m_3feedf16`,description:`m_3d733a3a`,closeButton:`m_919a4d88`},Eg={withCloseButton:!0},Dg=St((e,{radius:t,color:n})=>({root:{"--notification-radius":t===void 0?void 0:j(t),"--notification-color":n?Ht(n,e):void 0}})),Og=q(e=>{let t=K(`Notification`,Eg,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=ir({name:`Notification`,classes:Tg,props:t,className:n,style:m,classNames:p,styles:h,unstyled:g,attributes:x,vars:_,varsResolver:Dg});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)(bl,{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)(Nl,{iconSize:16,color:`gray`,...f,unstyled:g,onClick:e=>{f?.onClick?.(e),d?.()},...C(`closeButton`)})]})});Og.classes=Tg,Og.varsResolver=Dg,Og.displayName=`@mantine/core/Notification`;function kg(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 Ag;(function(e){e.event=`event`,e.props=`prop`})(Ag||={});function jg(){}function eee(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 Mg(e){return!!(e||``).match(/\d/)}function Ng(e){return e==null}function Pg(e){return typeof e==`number`&&isNaN(e)}function Fg(e){return Ng(e)||Pg(e)||typeof e==`number`&&!isFinite(e)}function Ig(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,`\\$&`)}function Lg(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 Rg(e,t,n){var r=Lg(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 zg(e){var t=(0,_.useRef)(e);return t.current=e,(0,_.useRef)(function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}).current}function Bg(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 Vg(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 Hg(e,t,n){for(var r=``,i=n?`0`:``,a=0;a<=t-1;a++)r+=e[a]||i;return r}function Ug(e,t){return Array(t+1).join(e)}function Wg(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.`+Ug(`0`,Math.abs(o))+i:o>=s?i+=Ug(`0`,o-s):i=(i.substring(0,o)||`0`)+`.`+i.substring(o),n+i}function Gg(e,t,n){if([``,`-`].indexOf(e)!==-1)return e;var r=(e.indexOf(`.`)!==-1||n)&&t,i=Bg(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=Hg(l[1]||``,t,n),f=s?`-`:``,p=r?`.`:``;return``+f+u+p+d}function Kg(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 qg=eee(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}}}),Jg=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function Yg(e,t,n){return Math.min(Math.max(e,t),n)}function Xg(e){return Math.max(e.selectionStart,e.selectionEnd)}function Zg(){return typeof navigator<`u`&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function Qg(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:``}}function $g(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function e_(e,t,n,r,i,a,o){o===void 0&&(o=$g);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 t_(e,t,n,r){var i=e.length;if(t=Yg(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 n_(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(Mg(e[n])||Mg(e[n-1]));return t}function r_(e,t,n,r,i,a){a===void 0&&(a=jg);var o=zg(function(e,t){var n,a;return Fg(e)?(a=``,n=``):typeof e==`number`||t?(a=typeof e==`number`?Wg(e):e,n=r(a)):(a=i(e,void 0),n=r(a)),{formattedValue:n,numAsString:a}}),s=(0,_.useState)(function(){return o(Ng(e)?t:e,n)}),c=s[0],l=s[1],u=zg(function(e,t){e.formattedValue!==c.formattedValue&&l({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}),d=e,f=n;Ng(e)&&(d=c.numAsString,f=!0);var p=o(d,f);return(0,_.useMemo)(function(){l(p)},[p.formattedValue]),(0,_.useEffect)(function(){if(!Ng(t)&&Ng(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:Ag.props})}},[]),[c,u]}function i_(e){return e.replace(/[^0-9]/g,``)}function a_(e){return e}function o_(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=a_);var s=e.removeFormatting;s===void 0&&(s=i_);var c=e.defaultValue,l=e.valueIsNumericString,u=e.onValueChange,d=e.isAllowed,f=e.onChange;f===void 0&&(f=jg);var p=e.onKeyDown;p===void 0&&(p=jg);var m=e.onMouseUp;m===void 0&&(m=jg);var h=e.onFocus;h===void 0&&(h=jg);var g=e.onBlur;g===void 0&&(g=jg);var v=e.value,y=e.getCaretBoundary;y===void 0&&(y=n_);var b=e.isValidInputCharacter;b===void 0&&(b=Mg);var x=e.isCharacterSame,S=kg(e,[`type`,`displayType`,`customInput`,`renderText`,`getInputRef`,`format`,`removeFormatting`,`defaultValue`,`valueIsNumericString`,`onValueChange`,`isAllowed`,`onChange`,`onKeyDown`,`onMouseUp`,`onFocus`,`onBlur`,`value`,`getCaretBoundary`,`isValidInputCharacter`,`isCharacterSame`]),C=r_(v,c,!!l,o,s,u),w=C[0],T=w.formattedValue,E=w.numAsString,D=C[1],O=(0,_.useRef)(),k=(0,_.useRef)({formattedValue:T,numAsString:E}),A=function(e,t){k.current={formattedValue:e.formattedValue,numAsString:e.value},D(e,t)},j=(0,_.useState)(!1),M=j[0],N=j[1],P=(0,_.useRef)(null),F=(0,_.useRef)({setCaretTimeout:null,focusTimeout:null});(0,_.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)&&(Kg(e,t),F.current.setCaretTimeout=setTimeout(function(){e.value===n&&e.selectionStart!==t&&Kg(e,t)},0))},z=function(e,t,n){return t_(e,t,y(e),n)},B=function(e,t,n){var r=y(t),i=e_(t,T,e,n,r,b,x);return i=t_(t,i,r),i},ee=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=Xg(n);n.value=t,o=B(s,t,c),o!==void 0&&R(n,o,t)}t!==T&&A(L(t,a),{event:i,source:r})};(0,_.useEffect)(function(){var e=k.current,t=e.formattedValue,n=e.numAsString;(T!==t||E!==n)&&A(L(T,E),{event:void 0,source:Ag.props})},[T,E]);var te=P.current?Xg(P.current):void 0;(typeof window<`u`?_.useLayoutEffect:_.useEffect)(function(){var e=P.current;if(T!==k.current.formattedValue&&e){var t=B(k.current.formattedValue,T,te);e.value=T,R(e,t,T)}},[T]);var ne=function(e,t,n){var r=t.target,i=O.current?Jg(O.current,r.selectionEnd):qg(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=B(e,T,Xg(l));return l.value=T,R(l,u,T),!1}return ee({formattedValue:c,numAsString:o,inputValue:e,event:t,source:n,input:t.target}),!0},re=function(e,t){t===void 0&&(t=0),O.current={selectionStart:e.selectionStart,selectionEnd:e.selectionEnd+t}},ie=function(e){var t=e.target.value;ne(t,e,Ag.event)&&f(e),O.current=void 0},ae=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),re(t,s);else{var l=o;c?(l=z(a,o,n===`ArrowLeft`?`left`:`right`),l!==o&&e.preventDefault()):n===`Delete`&&!b(a[o])?l=z(a,o,`right`):n===`Backspace`&&!b(a[o])&&(l=z(a,o,`left`)),l!==o&&R(t,l,a),p(e),re(t,s)}},oe=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),re(t)},se=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)},V=function(e){P.current=null,clearTimeout(F.current.focusTimeout),clearTimeout(F.current.setCaretTimeout),g(e)},H=M&&Zg()?`numeric`:void 0,ce=Object.assign({inputMode:H},S,{type:t,value:T,onChange:ie,onKeyDown:ae,onMouseUp:oe,onFocus:se,onBlur:V});if(n===`text`)return i?_.createElement(_.Fragment,null,i(T,S)||null):_.createElement(`span`,Object.assign({},S,{ref:a}),T);if(r){var le=r;return _.createElement(le,Object.assign({},ce,{ref:a}))}return _.createElement(`input`,Object.assign({},ce,{ref:a}))}function s_(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=c_(t),l=c.thousandSeparator,u=c.decimalSeparator,d=n!==0&&e.indexOf(`.`)!==-1||n&&r,f=Bg(e,o),p=f.beforeDecimal,m=f.afterDecimal,h=f.addNegation;return n!==void 0&&(m=Hg(m,n,!!r)),l&&(p=Rg(p,l,s)),i&&(p=i+p),a&&(m+=a),h&&(p=`-`+p),e=p+(d&&u||``)+m,e}function c_(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 l_(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 u_(e,t){return RegExp(`(^-)|[0-9]|`+Ig(e),t?`g`:void 0)}function d_(e,t,n){return e===``||!t?.match(/\d/)&&!n?.match(/\d/)&&typeof e==`string`&&!isNaN(Number(e))}function f_(e,t,n){var r;t===void 0&&(t=Qg(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=c_(n),p=f.allowedDecimalSeparators,m=f.decimalSeparator,h=e[d]===m;if(Mg(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=l_(y?`-`+e:e,i),e=(e.match(u_(m,!0))||[]).join(``);var O=e.indexOf(m);e=e.replace(new RegExp(Ig(m),`g`),function(e,t){return t===O?`.`:``});var k=Bg(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 p_(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 m_(e){var t=c_(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(`
|
|
43
43
|
Decimal separator can't be same as thousand separator.
|
|
44
44
|
thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
|
|
45
45
|
decimalSeparator: `+r+` (default value for decimalSeparator is .)
|
|
@@ -57,10 +57,10 @@ Error generating stack: `+e.message+`
|
|
|
57
57
|
`+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,Ye=262144,Xe=4194304;function Ze(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 Qe(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=Ze(n))):i=Ze(o):i=Ze(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ze(n))):i=Ze(o)):i=Ze(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 $e(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function et(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=Xe;return Xe<<=1,!(Xe&62914560)&&(Xe=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=H.p;return e===0?(e=window.event,e===void 0?32:Eh(e.type)):e}function pt(e,t){var n=H.p;try{return H.p=e,t()}finally{H.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(se(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 yn(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 bn(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 xn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Sn=!1;if(xn)try{var Cn={};Object.defineProperty(Cn,"passive",{get:function(){Sn=!0}}),window.addEventListener(`test`,Cn,Cn),window.removeEventListener(`test`,Cn,Cn)}catch{Sn=!1}var wn=null,G=null,Tn=null;function En(){if(Tn)return Tn;var e,t=G,n=t.length,r,i=`value`in wn?wn.value:wn.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,In,Ln,Rn=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!==Ln&&(Ln&&e.type===`mousemove`?(Fn=e.screenX-Ln.screenX,In=e.screenY-Ln.screenY):In=Fn=0,Ln=e),Fn)},movementY:function(e){return`movementY`in e?e.movementY:In}}),zn=An(Rn),Bn=An(T({},Rn,{dataTransfer:0})),Vn=An(T({},Nn,{relatedTarget:0})),K=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({},Rn,{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({},Rn,{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=xn&&`CompositionEvent`in window,ir=null;xn&&`documentMode`in document&&(ir=document.documentMode);var ar=xn&&`TextEvent`in window&&!ir,or=xn&&(!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=G=wn=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(xn){var Cr;if(xn){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)),yn(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 Pr(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 Fr(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 Ir(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Lr(e,t){var n=Ir(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=Ir(n)}}function Rr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Fr(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=Fr(e.document)}return t}function q(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=xn&&`documentMode`in document&&11>=document.documentMode,Vr=null,Hr=null,Ur=null,Wr=!1;function Gr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wr||Vr==null||Vr!==Fr(r)||(r=Vr,`selectionStart`in r&&q(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}),Ur&&Pr(Ur,r)||(Ur=r,r=Xf(Hr,`onSelect`),0<r.length&&(t=new Mn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Vr)))}function Kr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var qr={animationend:Kr(`Animation`,`AnimationEnd`),animationiteration:Kr(`Animation`,`AnimationIteration`),animationstart:Kr(`Animation`,`AnimationStart`),transitionrun:Kr(`Transition`,`TransitionRun`),transitionstart:Kr(`Transition`,`TransitionStart`),transitioncancel:Kr(`Transition`,`TransitionCancel`),transitionend:Kr(`Transition`,`TransitionEnd`)},J={},Jr={};xn&&(Jr=document.createElement(`div`).style,`AnimationEvent`in window||(delete qr.animationend.animation,delete qr.animationiteration.animation,delete qr.animationstart.animation),`TransitionEvent`in window||delete qr.transitionend.transition);function Yr(e){if(J[e])return J[e];if(!qr[e])return e;var t=qr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Jr)return J[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 B:case te:return e=a|32,e=Si(30,n,t,e),e.elementType=te,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=W(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=V.S;V.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=W(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(se(t)||ie(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(se(n)||ie(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(se(r)||ie(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(se(o))return h(e,r,o,c);if(ie(o)){if(l=ie(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=W(null),vo=W(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=W(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=W(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,V.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){V.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)}V.H=dc,o=t(n,r)}while(Ro);return o}function Yo(){var e=V.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,V.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===ne)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]=ee;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)}};V.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=V.T,o={};o.types=a===null?null:a.types,V.T=o;try{var s=n(i,r),c=V.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),V.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=H.p;H.p=a!==0&&8>a?a:8;var o=V.T,s={};s.types=o===null?null:o.types,V.T=s,ic(e,!1,t,n);try{var c=i(),l=V.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{H.p=a,o!==null&&s.types!==null&&(o.types=s.types),V.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,ce,n===null?qs:function(){return Xs(e),n(r)})}function Ys(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:as,lastRenderedState:ce},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?!Pr(n,r)||!Pr(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?qd():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),qd(),!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?Pr: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(Pr(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;qd()}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)||qd(),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=oe(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(Wd())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(Wd())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=zr(e),q(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:V.T===null?ft():Ff()}function Nd(){if(ud===0){if(!($u&536870912)||Yi){var e=Ye;Ye<<=1,!(Ye&3932160)&&(Ye=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||$e(e,t),a=r?Yd(e,t):Jd(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=Jd(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=Jd(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),Qe(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=et(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=$e(e,t),id=!1,dd=ud=ld=cd=sd=od=0,pd=fd=null,md=!1,ad=et(e,t),mi(),n}function Ud(e,t){Po=null,V.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 Wd(){var e=So.current;return e===null?!0:($u&4194048)===$u?Co===null:($u&62914560)===$u||$u&536870912?e===Co:!1}function Gd(){var e=V.H;return V.H=cc,e===null?cc:e}function Kd(){var e=V.A;return V.A=Ju,e}function qd(){od=4,nd||($u&4194048)!==$u&&So.current!==null||(rd=!0),!(sd&134217727)&&!(cd&134217727)||Zu===null||zd(Zu,$u,ud,!1)}function Jd(e,t,n){var r=Xu;Xu|=2;var i=Gd(),a=Kd();(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)}}Y(),o=od;break}catch(t){Ud(e,t)}while(1);return t&&e.shellSuspendCounter++,ca=sa=null,Xu=r,V.H=i,V.A=a,Qu===null&&(Zu=null,$u=0,mi()),o}function Y(){for(;Qu!==null;)Zd(Qu)}function Yd(e,t){var n=Xu;Xu|=2;var r=Gd(),a=Kd();Zu!==e||$u!==t?(vd=null,_d=Me()+500,Hd(e,t)):rd=$e(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){Ud(e,t)}while(1);return ca=sa=null,V.H=r,V.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=V.T,V.T=null,i=H.p,H.p=2,a=Xu,Xu|=4;try{lu(e,t,n)}finally{Xu=a,H.p=i,V.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=V.T,V.T=null;var i=H.p;H.p=2;var a=Xu;Xu|=4;try{ou=su=!1,Eu(t,e,n),n=dp;var o=zr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Rr(s.ownerDocument.documentElement,s)){if(c!==null&&q(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 _=Lr(s,h),v=Lr(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,H.p=i,V.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=V.T,V.T=null;var r=H.p;H.p=2;var i=Xu;Xu|=4;try{du(e,t.alternate,t)}finally{Xu=i,H.p=r,V.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=V.T,a=H.p,H.p=2,V.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{V.T=n,H.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=V.T,a=H.p;try{H.p=32>n?32:n,V.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{H.p=a,V.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=Qe(r,r===Zu?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||$e(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=Qe(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)||$e(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=Qe(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,!Sn||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}yn(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=Vn;break;case`focusout`:u=`blur`,l=Vn;break;case`beforeblur`:case`afterblur`:l=Vn;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=zn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Bn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Qn;break;case Xr:case Zr:case Qr:l=K;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=bn(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=zn,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,Hr=r,Ur=null);break;case`focusout`:Ur=Hr=Vr=null;break;case`mousedown`:Wr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Wr=!1,Gr(s,n,i);break;case`selectionchange`:if(Br)break;case`keydown`:case`keyup`:Gr(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()):(wn=i,G=`value`in wn?wn.value:wn.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=bn(e,n),i!=null&&r.unshift(Yf(e,i,a)),i=bn(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=bn(n,a),l!=null&&o.unshift(Yf(n,l,c))):i||(l=bn(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,`
|
|
58
58
|
`).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 v(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 v(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=v(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=v(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=v(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=v(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=v(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=v(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=v(e),t.push.apply(t,e.getClientRects());return!1}Rp.prototype.getRootNode=function(e){var t=p(this._fragmentFiber);return t===null?this:v(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=v(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=v(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=v(n[0]),i=v(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,C),t===null?t=!1:(f(t,!0,x,a,n),a=y,y=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=w(r,a,C),t===null?t=!1:(f(t,!0,S,a,r),a=y,b=y=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=v(r),em(e,n);return}if(r=v(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=v(a),em(a,n)):v(a).scrollIntoView(e),r+=n?-1:1}};function tm(e,t){return e=v(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=H.d;H.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:ce,_currentValue2:ce,_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=V.T;V.T=null;var a=H.p;try{H.p=2,Sh(e,t,n,r)}finally{H.p=a,V.T=i}}function xh(e,t,n,r){var i=V.T;V.T=null;var a=H.p;try{H.p=8,Sh(e,t,n,r)}finally{H.p=a,V.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=Ze(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`));H.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:V,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)}})),hx=n(((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=mx()})),gx=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,_x=/^[\\/]{2}/;function vx(e,t){return t+e.replace(/\\/g,`/`)}var yx=`popstate`;function bx(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function xx(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return Ex(``,{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:Dx(t)}return kx(t,n,null,e)}function Sx(e,t){if(e===!1||e==null)throw Error(t)}function Cx(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function wx(){return Math.random().toString(36).substring(2,10)}function Tx(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 Ex(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?Ox(t):t,state:n,key:t&&t.key||r||wx(),mask:i}}function Dx({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 Ox(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 kx(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=bx(e)?e:Ex(h.location,e,t);n&&n(r,e),l=u()+1;let d=Tx(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=bx(e)?e:Ex(h.location,e,t);n&&n(r,e),l=u();let i=Tx(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 Ax(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(yx,d),c=e,()=>{i.removeEventListener(yx,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 Ax(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),Sx(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:Dx(t);return i=i.replace(/ $/,`%20`),!n&&_x.test(i)&&(i=r+i),new URL(i,r)}function jx(e,t,n=`/`){return Mx(e,t,n,!1)}function Mx(e,t,n,r,i){let a=Zx((typeof t==`string`?Ox(t):t).pathname||`/`,n);if(a==null)return null;let o=i??Nx(e),s=null,c=Xx(a);for(let e=0;s==null&&e<o.length;++e)s=Kx(o[e],c,r);return s}function Nx(e){let t=Px(e);return Ix(t),t}function Px(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;Sx(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=aS([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(Sx(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),Px(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:Wx(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=Yx(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 Ix(e){e.sort((e,t)=>e.score===t.score?Gx(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var Lx=/^:[\w-]+$/,Rx=3,zx=2,Bx=1,Vx=10,Hx=-2,Ux=e=>e===`*`;function Wx(e,t){let n=e.split(`/`),r=n.length;return n.some(Ux)&&(r+=Hx),t&&(r+=zx),n.filter(e=>!Ux(e)).reduce((e,t)=>e+(Lx.test(t)?Rx:t===``?Bx:Vx),r)}function Gx(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 Kx(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?Jx(u,l,s.matcher,s.compiledParams):qx(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=qx({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:aS([a,d.pathname]),pathnameBase:sS(aS([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=aS([a,d.pathnameBase]))}return o}function qx(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Yx(e.path,e.caseSensitive,e.end);return Jx(e,t,n,r)}function Jx(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=oS(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=oS(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 Yx(e,t=!1,n=!0){Cx(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 Xx(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return Cx(!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 Zx(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 Qx(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?Ox(e):e,a;return n?(n=iS(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?$x(n.substring(1),`/`):$x(n,t)):a=t,{pathname:a,search:cS(r),hash:lS(i)}}function $x(e,t){let n=oS(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function eS(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 tS(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function nS(e){let t=tS(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function rS(e,t,n,r=!1){let i;typeof e==`string`?i=Ox(e):(i={...e},Sx(!i.pathname||!i.pathname.includes(`?`),eS(`?`,`pathname`,`search`,i)),Sx(!i.pathname||!i.pathname.includes(`#`),eS(`#`,`pathname`,`hash`,i)),Sx(!i.search||!i.search.includes(`#`),eS(`#`,`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=Qx(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var iS=e=>e.replace(/[\\/]{2,}/g,`/`),aS=e=>iS(e.join(`/`));function oS(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 sS=e=>oS(e).replace(/^\/*/,`/`),cS=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,lS=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,uS=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 dS(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function fS(e){return aS(e.map(e=>e.route.path).filter(Boolean))||`/`}var pS=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function mS(e,t){let n=e;if(typeof n!=`string`||!gx.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(pS)try{let e=new URL(window.location.href),r=_x.test(n)?new URL(vx(n,e.protocol)):new URL(n),a=Zx(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{Cx(!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 hS=new URL(`http://localhost`);function gS(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),hS)}catch{return hS}}function _S(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function vS(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 yS(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&&!_S(i,n),s=!_S(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!vS(e,i)||!_S(i,a)))throw Error(`External navigation is not allowed`)}var bS=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(bS);var xS=[`GET`,...bS];new Set(xS);var SS=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function CS(e){try{return SS.includes(new URL(e).protocol)}catch{return!1}}var wS=_.createContext(null);wS.displayName=`DataRouter`;var TS=_.createContext(null);TS.displayName=`DataRouterState`;var ES=_.createContext(!1);function DS(){return _.useContext(ES)}var OS=_.createContext({isTransitioning:!1});OS.displayName=`ViewTransition`;var kS=_.createContext(new Map);kS.displayName=`Fetchers`;var AS=_.createContext(null);AS.displayName=`Await`;var jS=_.createContext(null);jS.displayName=`Navigation`;var MS=_.createContext(null);MS.displayName=`Location`;var NS=_.createContext({outlet:null,matches:[],isDataRoute:!1});NS.displayName=`Route`;var PS=_.createContext(null);PS.displayName=`RouteError`;var FS=`REACT_ROUTER_ERROR`,IS=`REDIRECT`,LS=`ROUTE_ERROR_RESPONSE`;function RS(e){if(e.startsWith(`${FS}:${IS}:{`))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 zS(e){if(e.startsWith(`${FS}:${LS}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new uS(t.status,t.statusText,t.data)}catch{}}function BS(e,{relative:t}={}){Sx(VS(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=_.useContext(jS),{hash:i,pathname:a,search:o}=XS(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:aS([n,a])),r.createHref({pathname:s,search:o,hash:i})}function VS(){return _.useContext(MS)!=null}function HS(){return Sx(VS(),`useLocation() may be used only in the context of a <Router> component.`),_.useContext(MS).location}var US=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function WS(e){_.useContext(jS).static||_.useLayoutEffect(e)}function GS(){let{isDataRoute:e}=_.useContext(NS);return e?pC():KS()}function KS(){Sx(VS(),`useNavigate() may be used only in the context of a <Router> component.`);let e=_.useContext(wS),{basename:t,navigator:n}=_.useContext(jS),{matches:r}=_.useContext(NS),{pathname:i}=HS(),a=JSON.stringify(nS(r)),o=_.useRef(!1);return WS(()=>{o.current=!0}),_.useCallback((r,s={})=>{if(Cx(o.current,US),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=rS(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:aS([t,c.pathname])),yS(typeof r==`string`?r:Dx(r),n.createHref(c),gS(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var qS=_.createContext(null);function JS(e){let t=_.useContext(NS).outlet;return _.useMemo(()=>t&&_.createElement(qS.Provider,{value:e},t),[t,e])}function YS(){let{matches:e}=_.useContext(NS);return e[e.length-1]?.params??{}}function XS(e,{relative:t}={}){let{matches:n}=_.useContext(NS),{pathname:r}=HS(),i=JSON.stringify(nS(n));return _.useMemo(()=>rS(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function ZS(e,t){return QS(e,t)}function QS(e,t,n){Sx(VS(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=_.useContext(jS),{matches:i}=_.useContext(NS),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||``;hC(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.
|
|
59
59
|
|
|
60
|
-
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=HS(),d;if(t){let e=typeof t==`string`?Ox(t):t;Sx(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})):jx(e,{pathname:p});Cx(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),Cx(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=aC(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:aS([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:aS([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?_.createElement(MS.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function $S(){let e=fC(),t=dS(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=_.createElement(_.Fragment,null,_.createElement(`p`,null,`💿 Hey developer 👋`),_.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,_.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,_.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),_.createElement(_.Fragment,null,_.createElement(`h2`,null,`Unexpected Application Error!`),_.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?_.createElement(`pre`,{style:i},n):null,o)}var eC=_.createElement($S,null),tC=class extends _.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=zS(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:_.createElement(NS.Provider,{value:this.props.routeContext},_.createElement(PS.Provider,{value:e,children:this.props.component}));return this.context?_.createElement(rC,{error:e},t):t}};tC.contextType=ES;var nC=new WeakMap;function rC({children:e,error:t}){let{basename:n,navigator:r}=_.useContext(jS);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=RS(t.digest);if(e){let i=nC.get(t);if(i)throw i;let a=mS(e.location,n),o=a.absoluteURL||a.to;if(yS(e.location,o,gS(r),`allow-explicit`),CS(o))throw Error(`Invalid redirect location`);if(pS&&!nC.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 nC.set(t,n),n}}return _.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function iC({routeContext:e,match:t,children:n}){let r=_.useContext(wS);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),_.createElement(NS.Provider,{value:e},n)}function aC(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);Sx(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:fS(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||eC,o&&(s<0&&c===0?(hC(`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?_.createElement(n.route.Component,null):n.route.element?n.route.element:e,_.createElement(iC,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?_.createElement(tC,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function oC(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function sC(e){let t=_.useContext(wS);return Sx(t,oC(e)),t}function cC(e){let t=_.useContext(TS);return Sx(t,oC(e)),t}function lC(e){let t=_.useContext(NS);return Sx(t,oC(e)),t}function uC(e){let t=lC(e),n=t.matches[t.matches.length-1];return Sx(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function dC(){return uC(`useRouteId`)}function fC(){let e=_.useContext(PS),t=cC(`useRouteError`),n=uC(`useRouteError`);return e===void 0?t.errors?.[n]:e}function pC(){let{router:e}=sC(`useNavigate`),t=uC(`useNavigate`),n=_.useRef(!1);return WS(()=>{n.current=!0}),_.useCallback(async(r,i={})=>{Cx(n.current,US),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var mC={};function hC(e,t,n){!t&&!mC[e]&&(mC[e]=!0,Cx(!1,n))}_.memo(gC);function gC({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return QS(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function _C(e){return JS(e.context)}function vC(e){Sx(!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 yC({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){Sx(!VS(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=_.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=Ox(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=_.useMemo(()=>{let e=Zx(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 Cx(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:_.createElement(jS.Provider,{value:c},_.createElement(MS.Provider,{children:t,value:h}))}function bC({children:e,location:t}){return ZS(xC(e),t)}_.Component;function xC(e,t=[]){let n=[];return _.Children.forEach(e,(e,r)=>{if(!_.isValidElement(e))return;let i=[...t,r];if(e.type===_.Fragment){n.push.apply(n,xC(e.props.children,i));return}Sx(e.type===vC,`[${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>`),Sx(!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=xC(e.props.children,i)),n.push(a)}),n}var SC=`get`,CC=`application/x-www-form-urlencoded`;function wC(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function TC(e){return wC(e)&&e.tagName.toLowerCase()===`button`}function EC(e){return wC(e)&&e.tagName.toLowerCase()===`form`}function DC(e){return wC(e)&&e.tagName.toLowerCase()===`input`}function OC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function kC(e,t){return e.button===0&&(!t||t===`_self`)&&!OC(e)}function AC(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 jC(e,t){let n=AC(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var MC=null;function NC(){if(MC===null)try{new FormData(document.createElement(`form`),0),MC=!1}catch{MC=!0}return MC}var PC=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function FC(e){return e!=null&&!PC.has(e)?(Cx(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${CC}"`),null):e}function IC(e,t){let n,r,i,a,o;if(EC(e)){let o=e.getAttribute(`action`);r=o?Zx(o,t):null,n=e.getAttribute(`method`)||SC,i=FC(e.getAttribute(`enctype`))||CC,a=new FormData(e)}else if(TC(e)||DC(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?Zx(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||SC,i=FC(e.getAttribute(`formenctype`))||FC(o.getAttribute(`enctype`))||CC,a=new FormData(o,e),!NC()){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(wC(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=SC,r=null,i=CC,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 LC(e,t){if(e===!1||e==null)throw Error(t)}function RC(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&&Zx(i.pathname,t)===`/`?`${oS(t)}/_root.${r}`:`${oS(i.pathname)}.${r}`,i}async function zC(e,t){if(e.id in t)return t[e.id];try{let n=await 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 BC(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 HC(e,t,n){return qC((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await zC(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 UC(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 WC(e,t,{includeHydrateFallback:n}={}){return GC(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 GC(e){return[...new Set(e)]}function KC(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function qC(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!BC(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(KC(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function JC(){let e=_.useContext(wS);return LC(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function YC(){let e=_.useContext(TS);return LC(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var XC=_.createContext(void 0);XC.displayName=`FrameworkContext`;function ZC(){let e=_.useContext(XC);return LC(e,`You must render this element inside a <HydratedRouter> element`),e}function QC(e,t){let n=_.useContext(XC),[r,i]=_.useState(!1),[a,o]=_.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=_.useRef(null);_.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]),_.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:$C(s,p),onBlur:$C(c,m),onMouseEnter:$C(l,p),onMouseLeave:$C(u,m),onTouchStart:$C(d,p)}]:[a,f,{}]:[!1,f,{}]}function $C(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function ew({page:e,...t}){let n=DS(),{nonce:r}=ZC(),{router:i}=JC(),a=_.useMemo(()=>jx(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?_.createElement(nw,{page:e,matches:a,...t}):_.createElement(rw,{page:e,matches:a,...t})):null}function tw(e){let{manifest:t,routeModules:n}=ZC(),[r,i]=_.useState([]);return _.useEffect(()=>{let r=!1;return HC(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function nw({page:e,matches:t,...n}){let r=HS(),{future:i}=ZC(),{basename:a}=JC(),o=_.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=RC(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 _.createElement(_.Fragment,null,o.map(e=>_.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function rw({page:e,matches:t,...n}){let r=HS(),{future:i,manifest:a,routeModules:o}=ZC(),{basename:s}=JC(),{loaderData:c,matches:l}=YC(),u=_.useMemo(()=>UC(e,t,l,a,r,`data`),[e,t,l,a,r]),d=_.useMemo(()=>UC(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=_.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=RC(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=_.useMemo(()=>WC(d,a),[d,a]),m=tw(d);return _.createElement(_.Fragment,null,f.map(e=>_.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>_.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>_.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function iw(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}_.Component;var aw=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{aw&&(window.__reactRouterVersion=`7.18.4`)}catch{}function ow({basename:e,children:t,useTransitions:n,window:r}){let i=_.useRef();i.current??=xx({window:r,v5Compat:!0});let a=i.current,[o,s]=_.useState({action:a.action,location:a.location}),c=_.useCallback(e=>{n===!1?s(e):_.startTransition(()=>s(e))},[n]);return _.useLayoutEffect(()=>a.listen(c),[a,c]),_.createElement(yC,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}var sw=_.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:v}=_.useContext(jS),y=typeof l==`string`&&gx.test(l),b=mS(l,h);l=b.to;let x=BS(l,{relative:r}),S=HS(),C=null;if(o){let e=rS(o,[],S.mask?S.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:aS([h,e.pathname])),C=g.createHref(e)}let[w,T,E]=QC(n,p),D=fw(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:v});function O(t){e&&e(t),t.defaultPrevented||D(t)}let k=!(b.isExternal||i),A=_.createElement(`a`,{...p,...E,href:(k?C:void 0)||b.absoluteURL||x,onClick:k?O:e,ref:iw(m,T),target:c,"data-discover":!y&&t===`render`?`true`:void 0});return w&&!y?_.createElement(_.Fragment,null,A,_.createElement(ew,{page:x})):A});sw.displayName=`Link`;var cw=_.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=XS(a,{relative:c.relative}),d=HS(),f=_.useContext(TS),{navigator:p,basename:m}=_.useContext(jS),h=f!=null&&vw(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,v=d.pathname,y=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,g=g.toLowerCase()),y&&m&&(y=Zx(y,m)||y);let b=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,x=v===g||!r&&v.startsWith(g)&&v.charAt(b)===`/`,S=y!=null&&(y===g||!r&&y.startsWith(g)&&y.charAt(g.length)===`/`),C={isActive:x,isPending:S,isTransitioning:h},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return _.createElement(sw,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});cw.displayName=`NavLink`;var lw=_.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=SC,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=_.useContext(jS),g=gw(),v=_w(s,{relative:l}),y=o.toLowerCase()===`get`?`get`:`post`,b=typeof s==`string`&&gx.test(s);return _.createElement(`form`,{ref:m,method:y,action:v,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?_.startTransition(()=>p()):p()},...p,"data-discover":!b&&e===`render`?`true`:void 0})});lw.displayName=`Form`;function uw(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dw(e){let t=_.useContext(wS);return Sx(t,uw(e)),t}function fw(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=GS(),d=HS(),f=XS(e,{relative:o});return _.useCallback(p=>{if(kC(p,t)){p.preventDefault();let t=n===void 0?Dx(d)===Dx(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?_.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function pw(e){Cx(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=_.useRef(AC(e)),n=_.useRef(!1),r=HS(),i=_.useMemo(()=>jC(r.search,n.current?null:t.current),[r.search]),a=GS();return[i,_.useCallback((e,t)=>{let r=AC(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var mw=0,hw=()=>`__${String(++mw)}__`;function gw(){let{router:e}=dw(`useSubmit`),{basename:t}=_.useContext(jS),n=dC(),r=e.fetch,i=e.navigate;return _.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=IC(e,t);if(a.navigate===!1){let e=a.fetcherKey||hw();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 _w(e,{relative:t}={}){let{basename:n}=_.useContext(jS),r=_.useContext(NS);Sx(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...XS(e||`.`,{relative:t})},o=HS();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:aS([n,a.pathname])),Dx(a)}function vw(e,{relative:t}={}){let n=_.useContext(OS);Sx(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=dw(`useViewTransitionState`),i=XS(e,{relative:t});if(!n.isTransitioning)return!1;let a=Zx(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Zx(n.nextLocation.pathname,r)||n.nextLocation.pathname;return qx(i.pathname,o)!=null||qx(i.pathname,a)!=null}var yw=hx(),bw=`cerefox.apiKey`,xw=null,Sw=null,Cw=0,ww=new Set;function Tw(){return[jw(),Mw()].filter(e=>e!==null)}function Ew(){for(let e of ww)e()}function Dw(){if(xw)return xw;for(let e of Tw())try{let t=e.getItem(bw);if(t)return xw=t,t}catch{}return null}function Ow(e,t){Aw(),xw=e,Cw++;try{(t?Mw():jw())?.setItem(bw,e)}catch{}Sw=null,Ew()}function kw(){xw=null,Cw++,Aw(),Ew()}function Aw(){for(let e of Tw())try{e.removeItem(bw)}catch{}}function jw(){try{return typeof sessionStorage<`u`?sessionStorage:null}catch{return null}}function Mw(){try{return typeof localStorage<`u`?localStorage:null}catch{return null}}function Nw(e,t){return e===401&&/\bbearer\b/i.test(t??``)&&/realm="cerefox"/i.test(t??``)}function Pw(e,t){if(t!==void 0&&t!==Cw)return;let n=e!==null&&Dw()===e;if(!n&&Dw()!==null)return;n&&(xw=null,Aw());let r=n?`rejected`:Sw??`missing`;r!==Sw&&(Sw=r,Ew())}function Fw(){return Cw}function Iw(){return Sw}function Lw(e){return ww.add(e),()=>ww.delete(e)}var Rw=`/api/v1`,zw=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}},Bw=class extends zw{constructor(e){super(401,`Unauthorized`,e),this.message=`This server needs its API key.`,this.name=`AuthRequiredError`}},Vw=class extends zw{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 Hw(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 Uw(e,t){return(await Ww(e,t)).json()}async function Ww(e,t){let n=await Gw(e,t);if(!n.ok){let e=await n.text();if(n.status===503){let t=Hw(e);if(t)throw new Vw(e,t)}throw new zw(n.status,n.statusText,e)}return n}async function Gw(e,t){let n=Dw(),r=Fw();if(!n&&Iw())throw new Bw(``);let i=typeof FormData<`u`&&t?.body instanceof FormData,a=await fetch(`${Rw}${e}`,{...t,headers:{...i?{}:{"Content-Type":`application/json`},...n?{Authorization:`Bearer ${n}`}:{},...t?.headers}});if(Nw(a.status,a.headers.get(`WWW-Authenticate`)))throw Pw(n,r),new Bw(await a.text());return a}async function Kw(e){try{let t=await fetch(`${Rw}/version`,{headers:{Authorization:`Bearer ${e}`}});return t.ok?`ok`:t.status===401?`rejected`:`unreachable`}catch{return`unreachable`}}async function qw(e,t,n=`save`){let r=n===`open`?window.open(``,`_blank`):null;try{let{blob:n,filename:i}=await Jw(e,t);if(r){let e=URL.createObjectURL(n);r.location.href=e,setTimeout(()=>URL.revokeObjectURL(e),6e4)}else Yw(n,i)}catch(e){throw r?.close(),e}}async function Jw(e,t){let n=await Ww(e);return{blob:await n.blob(),filename:Zw(n.headers.get(`Content-Disposition`))??t}}function Yw(e,t){let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,document.body.appendChild(r),r.click(),r.remove(),setTimeout(()=>URL.revokeObjectURL(n),6e4)}function Xw(e){let t=e.trim();return t.startsWith(`${Rw}/`)?t.slice(7):null}function Zw(e){if(!e)return null;let t=/filename\*\s*=\s*UTF-8''([^;]+)/i.exec(e);if(t)try{return decodeURIComponent(t[1].trim())}catch{}let n=/filename\s*=\s*"?([^";]+)"?/i.exec(e);return n?n[1].trim():null}async function Qw(e){if(e.status!==503)return null;let t=await e.text(),n=Hw(t);return n?new Vw(t,n):null}async function $w(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 eT(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()}var tT={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`}},nT=(e,t,n,r)=>{let i=(0,_.forwardRef)(({color:n=`currentColor`,size:i=24,stroke:a=2,title:o,className:s,children:c,...l},u)=>(0,_.createElement)(`svg`,{ref:u,...tT[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,_.createElement)(`title`,{key:`svg-title`},o),...r.map(([e,t])=>(0,_.createElement)(e,t)),...Array.isArray(c)?c:[c]]));return i.displayName=`${n}`,i},rT=nT(`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`}]]),iT=nT(`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`}]]),aT=nT(`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`}]]),oT=nT(`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`}]]),sT=nT(`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`}]]),cT=nT(`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`}]]),lT=nT(`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`}]]),uT=nT(`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`}]]),dT=nT(`outline`,`check`,`Check`,[[`path`,{d:`M5 12l5 5l10 -10`,key:`svg-0`}]]),fT=nT(`outline`,`chevron-down`,`ChevronDown`,[[`path`,{d:`M6 9l6 6l6 -6`,key:`svg-0`}]]),pT=nT(`outline`,`chevron-left`,`ChevronLeft`,[[`path`,{d:`M15 6l-6 6l6 6`,key:`svg-0`}]]),mT=nT(`outline`,`chevron-right`,`ChevronRight`,[[`path`,{d:`M9 6l6 6l-6 6`,key:`svg-0`}]]),hT=nT(`outline`,`chevrons-left`,`ChevronsLeft`,[[`path`,{d:`M11 7l-5 5l5 5`,key:`svg-0`}],[`path`,{d:`M17 7l-5 5l5 5`,key:`svg-1`}]]),gT=nT(`outline`,`chevrons-right`,`ChevronsRight`,[[`path`,{d:`M7 7l5 5l-5 5`,key:`svg-0`}],[`path`,{d:`M13 7l5 5l-5 5`,key:`svg-1`}]]),_T=nT(`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`}]]),vT=nT(`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`}]]),yT=nT(`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`}]]),bT=nT(`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`}]]),xT=nT(`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`}]]),ST=nT(`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`}]]),CT=nT(`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`}]]),wT=nT(`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`}]]),TT=nT(`outline`,`file-type-docx`,`FileTypeDocx`,[[`path`,{d:`M14 3v4a1 1 0 0 0 1 1h4`,key:`svg-0`}],[`path`,{d:`M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4`,key:`svg-1`}],[`path`,{d:`M2 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1`,key:`svg-2`}],[`path`,{d:`M17 16.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0`,key:`svg-3`}],[`path`,{d:`M9.5 15a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1 -3 0v-3a1.5 1.5 0 0 1 1.5 -1.5`,key:`svg-4`}],[`path`,{d:`M19.5 15l3 6`,key:`svg-5`}],[`path`,{d:`M19.5 21l3 -6`,key:`svg-6`}]]),ET=nT(`outline`,`file-type-pdf`,`FileTypePdf`,[[`path`,{d:`M14 3v4a1 1 0 0 0 1 1h4`,key:`svg-0`}],[`path`,{d:`M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4`,key:`svg-1`}],[`path`,{d:`M5 18h1.5a1.5 1.5 0 0 0 0 -3h-1.5v6`,key:`svg-2`}],[`path`,{d:`M17 18h2`,key:`svg-3`}],[`path`,{d:`M20 15h-3v6`,key:`svg-4`}],[`path`,{d:`M11 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1`,key:`svg-5`}]]),DT=nT(`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`}]]),OT=nT(`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`}]]),kT=nT(`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`}]]),AT=nT(`outline`,`key-off`,`KeyOff`,[[`path`,{d:`M10.17 6.159l2.316 -2.316a2.877 2.877 0 0 1 4.069 0l3.602 3.602a2.877 2.877 0 0 1 0 4.069l-2.33 2.33`,key:`svg-0`}],[`path`,{d:`M14.931 14.948a2.863 2.863 0 0 1 -1.486 -.79l-.301 -.302l-6.558 6.558a2 2 0 0 1 -1.239 .578l-.175 .008h-1.172a1 1 0 0 1 -.993 -.883l-.007 -.117v-1.172a2 2 0 0 1 .467 -1.284l.119 -.13l.414 -.414h2v-2h2v-2l2.144 -2.144l-.301 -.301a2.863 2.863 0 0 1 -.794 -1.504`,key:`svg-1`}],[`path`,{d:`M15 9h.01`,key:`svg-2`}],[`path`,{d:`M3 3l18 18`,key:`svg-3`}]]),jT=nT(`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`}]]),MT=nT(`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`}]]),NT=nT(`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`}]]),PT=nT(`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`}]]),FT=nT(`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`}]]),IT=nT(`outline`,`markdown`,`Markdown`,[[`path`,{d:`M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10`,key:`svg-0`}],[`path`,{d:`M7 15v-6l2 2l2 -2v6`,key:`svg-1`}],[`path`,{d:`M14 13l2 2l2 -2m-2 2v-6`,key:`svg-2`}]]),LT=nT(`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`}]]),RT=nT(`outline`,`player-play`,`PlayerPlay`,[[`path`,{d:`M7 4v16l13 -8l-13 -8`,key:`svg-0`}]]),zT=nT(`outline`,`plus`,`Plus`,[[`path`,{d:`M12 5l0 14`,key:`svg-0`}],[`path`,{d:`M5 12l14 0`,key:`svg-1`}]]),BT=nT(`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`}]]),VT=nT(`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`}]]),HT=nT(`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`}]]),UT=nT(`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`}]]),WT=nT(`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`}]]),GT=nT(`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`}]]),KT=nT(`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`}]]),qT=nT(`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`}]]),JT=nT(`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`}]]),YT=nT(`outline`,`x`,`X`,[[`path`,{d:`M18 6l-12 12`,key:`svg-0`}],[`path`,{d:`M6 6l12 12`,key:`svg-1`}]]);async function XT(){return Uw(`/preferences`)}async function ZT(e){await Uw(`/preferences`,{method:`PUT`,body:JSON.stringify(e)})}function QT(){let{colorScheme:e,setColorScheme:t}=fn(),n=(0,_.useSyncExternalStore)(Lw,()=>Dw()!==null);return(0,_.useEffect)(()=>{let n=!1;return XT().then(r=>{!n&&r.theme&&r.theme!==e&&t(r.theme)}).catch(()=>{}),()=>{n=!0}},[n]),{theme:e,setTheme:e=>{t(e),ZT({theme:e}).catch(()=>{})}}}var $T=()=>`${Iw()??`none`}|${Dw()?`key`:`nokey`}`;function eE(){let[e,t]=(0,_.useSyncExternalStore)(Lw,$T).split(`|`);return{prompt:e===`none`?null:e,hasKey:t===`key`}}function tE(){let{prompt:e}=eE(),t=Xy(),[n,r]=(0,_.useState)(``),[i,a]=(0,_.useState)(!1),[o,s]=(0,_.useState)(null),[c,l]=(0,_.useState)(!1);if(!e)return null;let u=async()=>{let e=n.trim();if(!e)return;l(!0),s(null);let a=await Kw(e);l(!1),a===`ok`?(Ow(e,i),r(``),await t.resetQueries()):s(a===`rejected`?`That key was not accepted.`:`Could not reach the server to check the key.`)};return(0,G.jsx)(ng,{opened:!0,onClose:()=>{},withCloseButton:!1,closeOnClickOutside:!1,closeOnEscape:!1,title:`This server needs its API key`,centered:!0,children:(0,G.jsx)(`form`,{onSubmit:e=>{e.preventDefault(),u()},children:(0,G.jsxs)(Mv,{gap:`sm`,children:[e===`rejected`&&(0,G.jsx)(Wd,{color:`yellow`,variant:`light`,children:`The saved key was not accepted. It may have been rotated.`}),(0,G.jsxs)(Y,{size:`sm`,c:`dimmed`,children:[`Print it with `,(0,G.jsx)(`code`,{children:`cerefox api-key show`}),`, or `,(0,G.jsx)(`code`,{children:`cerefox-local api-key`}),` `,`for a Cerefox Local container. If you set `,(0,G.jsx)(`code`,{children:`CEREFOX_API_KEY`}),` yourself, use that value.`]}),(0,G.jsx)(Y_,{label:`API key`,placeholder:`cfx_lak_…`,autoFocus:!0,autoComplete:`off`,value:n,onChange:e=>r(e.currentTarget.value),error:o}),(0,G.jsx)(Bp,{label:`Remember on this browser`,description:`Otherwise the key is forgotten when this tab closes.`,checked:i,onChange:e=>a(e.currentTarget.checked)}),(0,G.jsx)(dm,{type:`submit`,loading:c,disabled:!n.trim(),children:`Continue`})]})})})}function nE(){let{hasKey:e}=eE(),t=Xy();return e?(0,G.jsx)(Ol,{variant:`subtle`,size:`lg`,title:`Forget the API key on this browser`,"aria-label":`Forget API key`,onClick:()=>{kw(),t.resetQueries()},children:(0,G.jsx)(AT,{size:18})}):null}async function rE(){return Uw(`/version`)}function iE(){let{data:e}=ux({queryKey:[`version`],queryFn:rE,staleTime:1/0,retry:!1}),t=e?.env_label?.trim();return t?(0,G.jsxs)(Wd,{icon:(0,G.jsx)(DT,{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}async function aE(){let e=await Gw(`/docs`);if(!e.ok)throw Error(`Failed to load docs index: ${e.status}`);return e.json()}async function oE(e){let t=await Gw(`/docs/${e.split(`/`).map(encodeURIComponent).join(`/`)}`);if(!t.ok)throw Error(`Failed to load doc '${e}': ${t.status}`);return t.text()}async function sE(){let e=await Gw(`/schema-version`);if(!e.ok)throw Error(`Failed to load schema version: ${e.status}`);return e.json()}function cE(){let{data:e}=ux({queryKey:[`schema-version`],queryFn:sE,refetchInterval:6e4,staleTime:3e4,retry:!1}),t=e?.level===`below-min`;return!e||!t&&!e.mismatch?null:(0,G.jsxs)(Wd,{icon:(0,G.jsx)(aT,{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)(Sm,{block:!0,mt:`xs`,children:`cerefox server deploy --schema-only`})]})}var lE=`https://github.com/fstamatelopoulos/cerefox/releases`;function uE(){let{data:e}=ux({queryKey:[`version`],queryFn:rE,staleTime:1/0,refetchInterval:216e5,retry:!1});return!e?.latest||!e.update_command?null:(0,G.jsx)(vv,{label:(0,G.jsxs)(G.Fragment,{children:[`Run`,` `,(0,G.jsx)(Sm,{bg:`color-mix(in srgb, currentColor 18%, transparent)`,children:e.update_command}),` `,`to upgrade`]}),withArrow:!0,children:(0,G.jsxs)(nm,{component:`a`,href:`${lE}/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 dE=`https://github.com/fstamatelopoulos/cerefox/releases`;function fE(){let{data:e}=ux({queryKey:[`version`],queryFn:rE,staleTime:1/0,retry:!1});if(!e)return null;let t=`${dE}/tag/v${e.version}`,n=e.git_commit_short?` (${e.git_commit_short})`:``;return(0,G.jsx)(Rl,{justify:`center`,py:`sm`,gap:`xs`,children:(0,G.jsxs)(Y,{size:`xs`,c:`dimmed`,children:[`Cerefox`,` `,(0,G.jsxs)(Zd,{href:t,target:`_blank`,rel:`noopener noreferrer`,size:`xs`,c:`dimmed`,underline:`hover`,children:[`v`,e.version]}),n]})})}var pE=[{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`}],mE=[{value:`light`,label:`Light`,icon:WT},{value:`dark`,label:`Dark`,icon:LT},{value:`auto`,label:`System`,icon:bT}];function hE(){let e=GS(),t=HS(),{theme:n,setTheme:r}=QT(),i=n===`light`?WT:n===`dark`?LT:bT;return(0,G.jsxs)(Rf,{header:{height:56},padding:`xs`,children:[(0,G.jsxs)(Rf.Header,{style:{position:`relative`},children:[(0,G.jsxs)(Rl,{h:`100%`,px:`md`,justify:`space-between`,children:[(0,G.jsxs)(Rl,{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)(uE,{})]}),(0,G.jsxs)(Rl,{gap:`lg`,children:[pE.map(n=>(0,G.jsx)(vc,{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.jsx)(nE,{}),(0,G.jsxs)(Bh,{position:`bottom-end`,withArrow:!0,shadow:`md`,width:150,children:[(0,G.jsx)(Bh.Target,{children:(0,G.jsx)(Ol,{variant:`subtle`,size:`lg`,title:`Color theme`,"aria-label":`Color theme`,children:(0,G.jsx)(i,{size:18})})}),(0,G.jsxs)(Bh.Dropdown,{children:[(0,G.jsx)(Bh.Label,{children:`Theme`}),mE.map(e=>{let t=e.icon;return(0,G.jsx)(Bh.Item,{leftSection:(0,G.jsx)(t,{size:16}),rightSection:n===e.value?(0,G.jsx)(dT,{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)(Rf.Main,{children:[(0,G.jsx)(tE,{}),(0,G.jsx)(iE,{}),(0,G.jsx)(cE,{}),(0,G.jsx)(_C,{}),(0,G.jsx)(fE,{})]})]})}async function gE(e){return Uw(`/audit-log${eT(e??{})}`)}async function _E(e,t){return Uw(`/documents/${e}/review-status`,{method:`POST`,body:JSON.stringify({status:t})})}async function vE(e,t,n){return Uw(`/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 yE({cmd:e,args:t,docPath:n=`guides/cli.md`}){let r=GS(),[i,a]=(0,_.useState)(!1),o=(0,_.useRef)(null),s=t?`${e} ${t}`:e;return(0,_.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)(dT,{size:12,style:{color:`var(--green)`,flexShrink:0}}):(0,G.jsx)(vT,{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 bE=`cerefox:rowsPerPage`,xE=[10,25,50,100],SE=10;function CE(){try{let e=Number(localStorage.getItem(bE));if(xE.includes(e))return e}catch{}return SE}function wE(){let[e,t]=(0,_.useState)(CE);return[e,e=>{t(e);try{localStorage.setItem(bE,String(e))}catch{}}]}var TE={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 EE({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:TE.foot,children:[(0,G.jsxs)(`span`,{className:TE.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:TE.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:xE.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:TE.pgBtn,disabled:l,onClick:()=>i(1),"aria-label":`First page`,children:(0,G.jsx)(hT,{size:14})}),(0,G.jsx)(`button`,{type:`button`,className:TE.pgBtn,disabled:l,onClick:()=>i(e-1),"aria-label":`Previous page`,children:(0,G.jsx)(pT,{size:14})}),(0,G.jsxs)(`span`,{className:TE.faint,children:[`page `,e,` / `,t]}),(0,G.jsx)(`button`,{type:`button`,className:TE.pgBtn,disabled:u,onClick:()=>i(e+1),"aria-label":`Next page`,children:(0,G.jsx)(mT,{size:14})}),(0,G.jsx)(`button`,{type:`button`,className:TE.pgBtn,disabled:u,onClick:()=>i(t),"aria-label":`Last page`,children:(0,G.jsx)(gT,{size:14})})]})]})]})}function DE({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,v]=(0,_.useState)(0),[y,b]=wE(),x=(0,_.useMemo)(()=>{let e=a.trim().toLowerCase();return!e||!c?u:u.filter(t=>c(t).toLowerCase().includes(e))},[u,a,c]),S=x.length,C=Math.max(1,Math.ceil(S/y)),w=Math.min(g,C-1),T=x.slice(w*y,w*y+y),E=!!p,D=l.length+ +!!E;return(0,G.jsxs)(`div`,{className:TE.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:TE.toolbar,children:[(0,G.jsxs)(`span`,{className:TE.search,children:[(0,G.jsx)(VT,{size:16}),(0,G.jsx)(`input`,{value:a,onChange:e=>{o(e.currentTarget.value),v(0)},placeholder:s})]}),i,(0,G.jsxs)(`span`,{className:TE.count,children:[S,` `,S===1?`row`:`rows`]})]}),(0,G.jsxs)(`div`,{className:`${X.card} ${X.rise}`,style:{overflow:`hidden`},children:[(0,G.jsxs)(`table`,{className:TE.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:TE.emptyRow,children:`Loading…`})}):T.length===0?(0,G.jsx)(`tr`,{children:(0,G.jsx)(`td`,{colSpan:D,className:TE.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:TE.actions,children:p(e)})})]},d(e)))})]}),(0,G.jsx)(EE,{page:w+1,pageCount:C,total:S,pageSize:y,onPage:e=>v(e-1),onPageSize:e=>{b(e),v(0)}})]})]})}function OE(e){return e?new Date(e).toLocaleDateString():``}function kE(e){if(!e)return``;let t=new Date(e);return t.toLocaleDateString()+` `+t.toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})}var AE=[`config-change`,`project-create`,`project-edit`,`project-delete`];function jE(e){return AE.includes(e??``)}[...AE];function ME(e,t,n){return e||(t?t.slice(0,8)+`…`:n===`config-change`?`(setting)`:n?.startsWith(`project-`)?`(project)`:jE(n)?`(store)`:`(deleted)`)}function NE(e,t){if(!jE(e))return null;let n=(t??``).trim();return n?e===`config-change`?n.replace(/^config:\s*/,``):n:null}function PE(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 FE(e,t=60){let n=e.replace(/\s+/g,` `).trim();return n.length<=t?n:`${n.slice(0,t-1).trimEnd()}…`}function IE({page:e,dirty:t}){let n=e?.trim()?FE(e):`Cerefox`;return`${t?`• `:``}${n}`}function LE(e,t={}){let n=t.dirty??!1;(0,_.useEffect)(()=>{document.title=IE({page:e,dirty:n})},[e,n])}var RE=[{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`}],zE=[{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`},...RE.map(e=>({value:e.value,label:e.label}))],BE={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(RE.map(e=>[e.value,{yellow:X.bYellow,green:X.bGreen,violet:X.bViolet,red:X.bRed}[e.tone]]))};function VE(){LE(`Audit log`);let e=GS(),[t]=pw(),[n,r]=(0,_.useState)(t.get(`operation`)||``),[i]=(0,_.useState)(t.get(`document_id`)||``),[a,o]=(0,_.useState)(``),[s,c]=(0,_.useState)(``),[l,u]=(0,_.useState)(`100`),[d,f]=(0,_.useState)(``),{data:p,isLoading:m}=ux({queryKey:[`audit-log`,n,i,a,s,l],queryFn:()=>gE({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)(DE,{eyebrow:`Every read & write`,title:`Audit Log`,subtitle:`A complete trail of changes — by human and agent alike.`,headerRight:(0,G.jsx)(yE,{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)(wv,{data:zE,value:n,onChange:e=>r(e||``),placeholder:`All operations`,size:`sm`,w:170,clearable:!0}),(0,G.jsx)(Bv,{type:`date`,"aria-label":`From`,value:a,onChange:e=>o(e.currentTarget.value),size:`sm`,w:150}),(0,G.jsx)(Bv,{type:`date`,"aria-label":`To`,value:s,onChange:e=>c(e.currentTarget.value),size:`sm`,w:150}),(0,G.jsx)(wv,{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:kE(e.created_at)})},{key:`op`,label:`Operation`,width:150,render:e=>(0,G.jsx)(`span`,{className:`${X.badge} ${BE[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)(HT,{size:12}):(0,G.jsx)(FT,{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:ME(null,null,e.operation)})},{key:`delta`,label:`Change`,width:300,align:`right`,render:e=>{let t=PE(e.metadata_before,e.metadata_after)??NE(e.operation,e.description);if(t)return(0,G.jsx)(`span`,{className:X.mono,style:{fontSize:12,whiteSpace:`nowrap`},title:t,children:t.length>50?`${t.slice(0,49)}…`: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 HE(e={}){return Uw(`/usage-log/summary${eT({...e})}`)}async function UE(e={}){return Uw(`/usage-log${eT({...e,limit:e.limit??100})}`)}function WE(e={}){return qw(`/usage-log/export.csv${eT({...e})}`,`cerefox-usage-log.csv`)}async function GE(e){return(await Uw(`/config/${e}`)).value}async function KE(e,t){await Uw(`/config/${e}`,{method:`PUT`,body:JSON.stringify({value:t})})}function qE(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 JE({title:e,commands:t,docPath:n=`guides/cli.md`}){let r=GS(),[i,a]=(0,_.useState)(null),o=(0,_.useRef)(null);(0,_.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)(GT,{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)(dT,{size:13,style:{color:`var(--green)`}}):(0,G.jsx)(vT,{size:13})})]},t))})]})}async function YE(){return Uw(`/dashboard`)}async function XE(e){return Uw(`/dashboard/recent-docs${e?`?project_id=${encodeURIComponent(e)}`:``}`)}var ZE={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`},QE=[`--primary`,`--violet`,`--blue`,`--green`,`--yellow`,`--red`];function $E(e){return e>=1e6?`${(e/1e6).toFixed(2)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function eD(){let e=new Date().getHours();return e<12?`Good morning`:e<18?`Good afternoon`:`Good evening`}function tD(e){let t=(e??`manual`).toLowerCase();switch(t){case`agent`:return{icon:HT,label:`agent`,agent:!0};case`cli`:return{icon:GT,label:`cli`,agent:!1};case`file`:return{icon:wT,label:`file`,agent:!1};case`paste`:return{icon:wT,label:`paste`,agent:!1};case`url`:return{icon:jT,label:`url`,agent:!1};default:return{icon:FT,label:t,agent:!1}}}var nD=new Date(Date.now()-2592e6).toISOString();function rD(){LE();let e=GS(),[t,n]=(0,_.useState)(``),[r,i]=(0,_.useState)(``),{data:a}=ux({queryKey:[`dashboard`],queryFn:YE}),{data:o}=ux({queryKey:[`dashboard-recent`,r],queryFn:()=>XE(r||void 0),placeholderData:bb}),s=nD,{data:c}=ux({queryKey:[`usage-summary-30d`,s],queryFn:()=>HE({start:s}),staleTime:6e4}),{localMcpOps:l,remoteMcpOps:u,efOps:d,apiOps:f,agentOps:p,cliOps:m,webOps:h}=qE(c?.ops_by_access_path),g=new Map((a?.projects??[]).map(e=>[e.id,e.name])),v=new Map((a?.projects??[]).map((e,t)=>[e.id,QE[t%QE.length]])),y=a?.project_doc_counts??{},b=a?.project_deleted_doc_counts??{},x=Object.values(b).reduce((e,t)=>e+t,0),S=Math.max(1,...Object.values(y)),C=()=>{let n=t.trim();e(n?`/search?q=${encodeURIComponent(n)}&mode=docs`:`/search`)},w=e=>`var(${v.get(e.project_ids[0])??`--border`})`;return(0,G.jsxs)(`div`,{className:ZE.wrap,children:[(0,G.jsxs)(`div`,{className:`${ZE.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:[eD(),`, operator.`]})]}),(0,G.jsxs)(`div`,{className:ZE.dashHeroActions,children:[(0,G.jsxs)(`form`,{className:ZE.quickSearch,onSubmit:e=>{e.preventDefault(),C()},children:[(0,G.jsx)(VT,{size:16}),(0,G.jsx)(`input`,{value:t,onChange:e=>n(e.currentTarget.value),placeholder:`Quick search…`}),(0,G.jsx)(`button`,{type:`submit`,className:ZE.qsGo,"aria-label":`Search`,children:(0,G.jsx)(cT,{size:15})})]}),(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnPrimary}`,onClick:()=>e(`/ingest`),children:[(0,G.jsx)(zT,{size:16}),`Ingest content`]})]})]}),(0,G.jsxs)(`div`,{className:ZE.statGrid,children:[(0,G.jsxs)(`div`,{className:`${X.card} ${ZE.statTile} ${X.rise}`,children:[(0,G.jsxs)(`div`,{className:ZE.statTop,children:[(0,G.jsx)(`span`,{className:`${ZE.statIco} ${X.bPrimary}`,children:(0,G.jsx)(yT,{size:18})}),x>0&&(0,G.jsxs)(`span`,{className:`${X.badge} ${X.bNeutral}`,children:[x,` docs in trash`]})]}),(0,G.jsx)(`div`,{className:ZE.statValue,children:(a?.doc_count??0).toLocaleString()}),(0,G.jsx)(`div`,{className:ZE.statLabel,children:`Documents`})]}),(0,G.jsxs)(`div`,{className:`${X.card} ${ZE.statTile} ${X.rise}`,children:[(0,G.jsxs)(`div`,{className:ZE.statTop,children:[(0,G.jsx)(`span`,{className:`${ZE.statIco} ${X.bViolet}`,children:(0,G.jsx)(UT,{size:18})}),(0,G.jsxs)(`span`,{className:`${X.badge} ${X.bViolet}`,children:[$E(a?.total_chars??0),` chars`]})]}),(0,G.jsx)(`div`,{className:ZE.statValue,children:(a?.total_chunks??0).toLocaleString()}),(0,G.jsx)(`div`,{className:ZE.statLabel,children:`Indexed chunks`})]}),(0,G.jsxs)(`div`,{className:`${X.card} ${ZE.statTile} ${X.rise}`,children:[(0,G.jsx)(`div`,{className:ZE.statTop,children:(0,G.jsx)(`span`,{className:`${ZE.statIco} ${X.bBlue}`,children:(0,G.jsx)(OT,{size:18})})}),(0,G.jsx)(`div`,{className:ZE.statValue,children:a?.project_count??0}),(0,G.jsx)(`div`,{className:ZE.statLabel,children:`Projects`})]}),(0,G.jsxs)(`div`,{className:`${X.card} ${ZE.statTile} ${X.rise}`,children:[(0,G.jsxs)(`div`,{className:ZE.statTop,children:[(0,G.jsx)(`span`,{className:`${ZE.statIco} ${X.bGreen}`,children:(0,G.jsx)(HT,{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)(fl,{width:260,position:`bottom-end`,withArrow:!0,shadow:`md`,children:[(0,G.jsx)(fl.Target,{children:(0,G.jsx)(`button`,{type:`button`,className:X.whatis,children:`Why no data?`})}),(0,G.jsx)(fl.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?ZE.statValue:ZE.emptyVal,children:p>0?p.toLocaleString():`—`}),(0,G.jsx)(`div`,{className:ZE.statLabel,children:`Agent operations · 30d`}),(d>0||f>0||m>0||h>0)&&(0,G.jsxs)(`div`,{className:ZE.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:ZE.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)(_T,{size:16}),`Recently changed documents`]}),(0,G.jsxs)(`span`,{className:X.selectWrap,title:`Scope recent documents to a project`,children:[(0,G.jsx)(OT,{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)(fT,{size:14})]})]}),(0,G.jsx)(`div`,{className:X.card,style:{overflow:`hidden`},children:(0,G.jsxs)(`table`,{className:ZE.tbl,children:[(0,G.jsx)(`thead`,{children:(0,G.jsxs)(`tr`,{children:[(0,G.jsx)(`th`,{className:ZE.colDoc,children:`Document`}),(0,G.jsx)(`th`,{className:`${ZE.colAuthor} ${ZE.authorCell}`,children:`Author`}),(0,G.jsx)(`th`,{className:`${ZE.colChunks} ${ZE.alignRight}`,children:`Chunks`}),(0,G.jsx)(`th`,{className:`${ZE.colSize} ${ZE.alignRight}`,children:`Size`}),(0,G.jsx)(`th`,{className:`${ZE.colUpdated} ${ZE.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`?HT:FT,label:t.author,agent:t.author_type===`agent`}:tD(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:ZE.docCell,children:[(0,G.jsx)(`span`,{className:ZE.docDot,style:{background:w(t)}}),(0,G.jsxs)(`div`,{className:X.col,style:{gap:3,minWidth:0},children:[(0,G.jsx)(sw,{to:`/document/${t.id}`,className:`${X.link} ${ZE.docTitle}`,onClick:e=>e.stopPropagation(),children:t.title||`Untitled`}),(0,G.jsxs)(`div`,{className:ZE.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:ZE.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:`${ZE.alignRight} ${X.mono} ${X.dim}`,children:t.chunk_count}),(0,G.jsx)(`td`,{className:`${ZE.alignRight} ${X.mono} ${X.dim}`,children:t.total_chars.toLocaleString()}),(0,G.jsx)(`td`,{className:`${ZE.alignRight} ${X.faint}`,children:kE(t.updated_at)})]},t.id)})})]})})]}),(0,G.jsxs)(`aside`,{className:ZE.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)(UT,{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} ${ZE.projList}`,children:[(0,G.jsx)(`div`,{className:ZE.projScroll,children:(a?.projects??[]).map(t=>{let n=y[t.id]??0,r=b[t.id]??0,i=`var(${v.get(t.id)??`--border`})`;return(0,G.jsxs)(`button`,{type:`button`,className:ZE.projRow,onClick:()=>e(`/projects/${t.id}/documents`),children:[(0,G.jsx)(`span`,{className:ZE.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)(sw,{to:`/projects/${t.id}/documents`,className:ZE.projName,onClick:e=>e.stopPropagation(),children:t.name}),(0,G.jsxs)(`span`,{className:ZE.projCounts,children:[(0,G.jsx)(`span`,{children:n}),r>0&&(0,G.jsxs)(`span`,{className:ZE.trashCount,title:`${r} in trash`,children:[(0,G.jsx)(qT,{size:11}),r]})]})]}),(0,G.jsx)(`div`,{className:ZE.projBar,children:(0,G.jsx)(`span`,{style:{width:`${n/S*100}%`,background:i}})})]}),(0,G.jsx)(`span`,{className:ZE.projChev,children:(0,G.jsx)(mT,{size:15})})]},t.id)})}),(0,G.jsxs)(`div`,{className:ZE.projFoot,children:[(0,G.jsxs)(`span`,{children:[a?.project_count??0,` projects`]}),(0,G.jsxs)(`span`,{className:X.faint,children:[x,` docs in trash`]})]})]})]}),(0,G.jsx)(JE,{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`}]})]})]})]})}var iD=`modulepreload`,aD=function(e){return`/app/`+e},oD={},sD=function(e){return e.pathname.endsWith(`.css`)},cD=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},lD=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=aD(t,n);let r=s(t),i=sD(r);return cD(oD,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`:iD,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)})};async function uD(e,t){return Uw(`/documents/${e}${eT({version_id:t})}`)}async function dD(e){return Uw(`/documents/${e}/chunks`)}async function fD(e,t){return Uw(`/documents/${e}/edit`,{method:`POST`,body:JSON.stringify(t)})}async function pD(e){return Uw(`/documents/${e}`,{method:`DELETE`})}async function mD(e){return Uw(`/ingest`,{method:`POST`,body:JSON.stringify({mode:`paste`,...e})})}async function hD(e){return Uw(`/check-filename${eT({filename:e})}`)}async function gD(e,t){return Uw(`/documents/${e}?version_id=${t}`)}async function _D(e,t,n=`md`,r=`document`){let i=`/documents/${e}/download`,a=t?`${i}?version_id=${t}`:i;if(n===`md`)return qw(a,`document.md`);let{blob:o,filename:s}=await Jw(a,`document.md`),c=await o.text(),{withExtension:l}=await lD(async()=>{let{withExtension:e}=await import(`./markdown-YrYQtnOl.js`);return{withExtension:e}},[]);Yw(n===`docx`?await(await lD(async()=>{let{markdownToDocx:e}=await import(`./docx-Ch26gbLd.js`);return{markdownToDocx:e}},__vite__mapDeps([0,1,2]))).markdownToDocx(c,r):await(await lD(async()=>{let{markdownToPdf:e}=await import(`./pdf-Bpjaodjd.js`);return{markdownToPdf:e}},__vite__mapDeps([3,1,2]))).markdownToPdf(c,r),l(s,n))}function vD(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var yD=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bD=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,xD={};function SD(e,t){return((t||xD).jsx?bD:yD).test(e)}var CD=/[ \t\n\f\r]/g;function wD(e){return typeof e==`object`?e.type===`text`&&TD(e.value):TD(e)}function TD(e){return e.replace(CD,``)===``}var ED=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};ED.prototype.normal={},ED.prototype.property={},ED.prototype.space=void 0;function DD(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new ED(n,r,t)}function OD(e){return e.toLowerCase()}var kD=class{constructor(e,t){this.attribute=t,this.property=e}};kD.prototype.attribute=``,kD.prototype.booleanish=!1,kD.prototype.boolean=!1,kD.prototype.commaOrSpaceSeparated=!1,kD.prototype.commaSeparated=!1,kD.prototype.defined=!1,kD.prototype.mustUseProperty=!1,kD.prototype.number=!1,kD.prototype.overloadedBoolean=!1,kD.prototype.property=``,kD.prototype.spaceSeparated=!1,kD.prototype.space=void 0;var AD=t({boolean:()=>MD,booleanish:()=>ND,commaOrSpaceSeparated:()=>LD,commaSeparated:()=>ID,number:()=>Z,overloadedBoolean:()=>PD,spaceSeparated:()=>FD}),jD=0,MD=RD(),ND=RD(),PD=RD(),Z=RD(),FD=RD(),ID=RD(),LD=RD();function RD(){return 2**++jD}var zD=Object.keys(AD),BD=class extends kD{constructor(e,t,n,r){let i=-1;if(super(e,t),VD(this,`space`,r),typeof n==`number`)for(;++i<zD.length;){let e=zD[i];VD(this,zD[i],(n&AD[e])===AD[e])}}};BD.prototype.defined=!0;function VD(e,t,n){n&&(e[t]=n)}function HD(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new BD(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[OD(r)]=r,n[OD(a.attribute)]=r}return new ED(t,n,e.space)}var UD=HD({properties:{ariaActiveDescendant:null,ariaAtomic:ND,ariaAutoComplete:null,ariaBusy:ND,ariaChecked:ND,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:FD,ariaCurrent:null,ariaDescribedBy:FD,ariaDetails:null,ariaDisabled:ND,ariaDropEffect:FD,ariaErrorMessage:null,ariaExpanded:ND,ariaFlowTo:FD,ariaGrabbed:ND,ariaHasPopup:null,ariaHidden:ND,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:FD,ariaLevel:Z,ariaLive:null,ariaModal:ND,ariaMultiLine:ND,ariaMultiSelectable:ND,ariaOrientation:null,ariaOwns:FD,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:ND,ariaReadOnly:ND,ariaRelevant:null,ariaRequired:ND,ariaRoleDescription:FD,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:ND,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 WD(e,t){return t in e?e[t]:t}function GD(e,t){return WD(e,t.toLowerCase())}var _ee=HD({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:ID,acceptCharset:FD,accessKey:FD,action:null,allow:null,allowFullScreen:MD,allowPaymentRequest:MD,allowUserMedia:MD,alpha:MD,alt:null,as:null,async:MD,autoCapitalize:null,autoComplete:FD,autoFocus:MD,autoPlay:MD,blocking:FD,capture:null,charSet:null,checked:MD,cite:null,className:FD,closedBy:null,colorSpace:null,cols:Z,colSpan:Z,command:null,commandFor:null,content:null,contentEditable:ND,controls:MD,controlsList:FD,coords:Z|ID,crossOrigin:null,data:null,dateTime:null,decoding:null,default:MD,defer:MD,dir:null,dirName:null,disabled:MD,download:PD,draggable:ND,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:MD,formTarget:null,headers:FD,height:Z,hidden:PD,high:Z,href:null,hrefLang:null,htmlFor:FD,httpEquiv:FD,id:null,imageSizes:null,imageSrcSet:null,inert:MD,inputMode:null,integrity:null,is:null,isMap:MD,itemId:null,itemProp:FD,itemRef:FD,itemScope:MD,itemType:FD,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:MD,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:MD,muted:MD,name:null,nonce:null,noModule:MD,noValidate:MD,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:MD,optimum:Z,pattern:null,ping:FD,placeholder:null,playsInline:MD,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:MD,referrerPolicy:null,rel:FD,required:MD,reversed:MD,rows:Z,rowSpan:Z,sandbox:FD,scope:null,scoped:MD,seamless:MD,selected:MD,shadowRootClonable:MD,shadowRootCustomElementRegistry:MD,shadowRootDelegatesFocus:MD,shadowRootMode:null,shadowRootSerializable:MD,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:ND,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:MD,useMap:null,value:ND,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:FD,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:MD,declare:MD,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:MD,noHref:MD,noShade:MD,noWrap:MD,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:ND,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:MD,disablePictureInPicture:MD,disableRemotePlayback:MD,exportParts:ID,part:FD,prefix:null,property:null,results:Z,security:null,unselectable:null},space:`html`,transform:GD}),vee=HD({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:LD,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:FD,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:MD,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:ID,g2:ID,glyphName:ID,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:LD,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:FD,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:LD,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:LD,rev:LD,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:LD,requiredFeatures:LD,requiredFonts:LD,requiredFormats:LD,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:LD,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:LD,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:LD,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:WD}),KD=HD({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()}}),qD=HD({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:GD}),JD=HD({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),yee={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`},bee=/[A-Z]/g,YD=/-[a-z]/g,xee=/^data[-\w.:]+$/i;function See(e,t){let n=OD(t),r=t,i=kD;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&xee.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(YD,wee);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!YD.test(e)){let n=e.replace(bee,Cee);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=BD}return new i(r,t)}function Cee(e){return`-`+e.toLowerCase()}function wee(e){return e.charAt(1).toUpperCase()}var Tee=DD([UD,_ee,KD,qD,JD],`html`),XD=DD([UD,vee,KD,qD,JD],`svg`);function Eee(e){return e.join(` `).trim()}var Dee=n(((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(`
|
|
61
|
-
`);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})),Oee=n(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var i=r(Dee());function a(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=(0,i.default)(e),a=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:i}=e;a?t(r,i,e):i&&(n||={},n[r]=i)}),n}})),kee=n((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))}})),Aee=n(((e,t,n)=>{var r=(n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Oee()),i=kee();function a(e,t){var n={};return!e||typeof e!=`string`||(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,t.exports=a})),ZD=$D(`end`),QD=$D(`start`);function $D(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 jee(e){let t=QD(e),n=ZD(e);if(t&&n)return{start:t,end:n}}function eO(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?nO(e.position):`start`in e||`end`in e?nO(e):`line`in e||`column`in e?tO(e):``}function tO(e){return rO(e&&e.line)+`:`+rO(e&&e.column)}function nO(e){return tO(e&&e.start)+`-`+tO(e&&e.end)}function rO(e){return e&&typeof e==`number`?e:1}var iO=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=eO(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}};iO.prototype.file=``,iO.prototype.name=``,iO.prototype.reason=``,iO.prototype.message=``,iO.prototype.stack=``,iO.prototype.column=void 0,iO.prototype.line=void 0,iO.prototype.ancestors=void 0,iO.prototype.cause=void 0,iO.prototype.fatal=void 0,iO.prototype.place=void 0,iO.prototype.ruleId=void 0,iO.prototype.source=void 0;var aO=e(Aee(),1),oO={}.hasOwnProperty,sO=new Map,cO=/[A-Z]/g,lO=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),uO=new Set([`td`,`th`]),dO=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function fO(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=CO(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=SO(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`?XD:Tee,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=pO(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function pO(e,t,n){if(t.type===`element`)return mO(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return hO(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return _O(e,t,n);if(t.type===`mdxjsEsm`)return gO(e,t);if(t.type===`root`)return vO(e,t,n);if(t.type===`text`)return yO(e,t)}function mO(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=XD,e.schema=i),e.ancestors.push(t);let a=OO(e,t.tagName,!1),o=wO(e,t),s=TO(e,t);return lO.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!wD(e)})),bO(e,o,a,t),xO(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function hO(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)}kO(e,t.position)}function gO(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);kO(e,t.position)}function _O(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=XD,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:OO(e,t.name,!0),o=Mee(e,t),s=TO(e,t);return bO(e,o,a,t),xO(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function vO(e,t,n){let r={};return xO(r,TO(e,t)),e.create(t,e.Fragment,r,n)}function yO(e,t){return t.value}function bO(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function xO(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function SO(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 CO(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=QD(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 wO(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&oO.call(t.properties,i)){let a=EO(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&uO.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 Mee(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 kO(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 kO(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function TO(e,t){let n=[],r=-1,i=e.passKeys?new Map:sO;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=pO(e,a,o);s!==void 0&&n.push(s)}return n}function EO(e,t,n){let r=See(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?vD(n):Eee(n)),r.property===`style`){let t=typeof n==`object`?n:DO(e,String(n));return e.stylePropertyNameCase===`css`&&(t=AO(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?yee[r.property]||r.property:r.attribute,n]}}function DO(e,t){try{return(0,aO.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new iO("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=dO+`#cannot-parse-style-attribute`,r}}function OO(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=SD(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=SD(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return oO.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);kO(e)}function kO(e,t){let n=new iO("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=dO+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function AO(e){let t={},n;for(n in e)oO.call(e,n)&&(t[jO(n)]=e[n]);return t}function jO(e){let t=e.replace(cO,MO);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function MO(e){return`-`+e.toLowerCase()}var NO={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`]},PO={};function FO(e,t){let n=t||PO;return IO(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function IO(e,t,n){if(RO(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 LO(e.children,t,n)}return Array.isArray(e)?LO(e,t,n):``}function LO(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=IO(e[i],t,n);return r.join(``)}function RO(e){return!!(e&&typeof e==`object`)}var zO=document.createElement(`i`);function BO(e){let t=`&`+e+`;`;zO.innerHTML=t;let n=zO.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function VO(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 HO(e,t){return e.length>0?(VO(e,e.length,0,t),e):t}var UO={}.hasOwnProperty;function WO(e){let t={},n=-1;for(;++n<e.length;)GO(t,e[n]);return t}function GO(e,t){let n;for(n in t){let r=(UO.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){UO.call(r,a)||(r[a]=[]);let e=i[a];KO(r[a],Array.isArray(e)?e:e?[e]:[])}}}function KO(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);VO(e,0,0,r)}function qO(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 JO(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var YO=ak(/[A-Za-z]/),XO=ak(/[\dA-Za-z]/),ZO=ak(/[#-'*+\--9=?A-Z^-~]/);function QO(e){return e!==null&&(e<32||e===127)}var $O=ak(/\d/),Nee=ak(/[\dA-Fa-f]/),Pee=ak(/[!-/:-@[-`{-~]/);function ek(e){return e!==null&&e<-2}function tk(e){return e!==null&&(e<0||e===32)}function nk(e){return e===-2||e===-1||e===32}var rk=ak(/\p{P}|\p{S}/u),ik=ak(/\s/);function ak(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function ok(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&XO(e.charCodeAt(n+1))&&XO(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 sk(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return nk(r)?(e.enter(n),s(r)):t(r)}function s(r){return nk(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var ck={tokenize:lk};function lk(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`),sk(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 ek(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var uk={tokenize:fk},dk={tokenize:pk};function fk(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 VO(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(dk,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(dk,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 ek(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++;VO(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 pk(e,t,n){return sk(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function mk(e){if(e===null||tk(e)||ik(e))return 1;if(rk(e))return 2}function hk(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 gk={name:`attention`,resolveAll:_k,tokenize:vk};function _k(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};yk(d,-c),yk(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=HO(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=HO(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=HO(l,hk(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=HO(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=HO(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,VO(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 vk(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=mk(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=mk(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 yk(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var bk={name:`autolink`,tokenize:xk};function xk(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 YO(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||XO(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||XO(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||QO(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):ZO(t)?(e.consume(t),l):n(t)}function u(e){return XO(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||XO(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var Sk={partial:!0,tokenize:Ck};function Ck(e,t,n){return r;function r(t){return nk(t)?sk(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||ek(e)?t(e):n(e)}}var wk={continuation:{tokenize:Ek},exit:Dk,name:`blockQuote`,tokenize:Tk};function Tk(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 nk(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function Ek(e,t,n){let r=this;return i;function i(t){return nk(t)?sk(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(wk,t,n)(r)}}function Dk(e){e.exit(`blockQuote`)}var Ok={name:`characterEscape`,tokenize:kk};function kk(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 Pee(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var Ak={name:`characterReference`,tokenize:jk};function jk(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=XO,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=Nee,u):(e.enter(`characterReferenceValue`),a=7,o=$O,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===XO&&!BO(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 Mk={partial:!0,tokenize:Fk},Nk={concrete:!0,name:`codeFenced`,tokenize:Pk};function Pk(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`),nk(t)?sk(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||ek(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(Mk,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||ek(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):nk(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),sk(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||ek(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||ek(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&&nk(t)?sk(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||ek(t)?e.check(Mk,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||ek(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`),nk(t)?sk(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`),nk(t)?sk(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||ek(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function Fk(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 Ik={name:`codeIndented`,tokenize:Rk},Lk={partial:!0,tokenize:zk};function Rk(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),sk(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):ek(t)?e.attempt(Lk,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||ek(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function zk(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):ek(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):sk(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):ek(e)?i(e):n(e)}}var Bk={name:`codeText`,previous:Hk,resolve:Vk,tokenize:Uk};function Vk(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 Hk(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function Uk(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)):ek(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||ek(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 Wk=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&&Gk(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),Gk(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Gk(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);Gk(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);Gk(this.left,t.reverse())}}}};function Gk(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 Kk(e){let t={},n=-1,r,i,a,o,s,c,l,u=new Wk(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,qk(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 VO(e,0,1/0,u.slice(0)),!l}function qk(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 Jk={resolve:Xk,tokenize:Zk},Yk={partial:!0,tokenize:Qk};function Xk(e){return Kk(e),e}function Zk(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):ek(t)?e.check(Yk,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 Qk(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),sk(e,a,`linePrefix`)}function a(i){if(i===null||ek(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 $k(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||QO(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||ek(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||tk(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||QO(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 eA(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):ek(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||ek(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!nk(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function tA(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):ek(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),sk(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||ek(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 nA(e,t){let n;return r;function r(i){return ek(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):nk(i)?sk(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var rA={name:`definition`,tokenize:aA},iA={partial:!0,tokenize:oA};function aA(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return eA.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=JO(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 tk(t)?nA(e,l)(t):l(t)}function l(t){return $k(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(iA,d,d)(t)}function d(t){return nk(t)?sk(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||ek(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function oA(e,t,n){return r;function r(t){return tk(t)?nA(e,i)(t):n(t)}function i(t){return tA(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return nk(t)?sk(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||ek(e)?t(e):n(e)}}var sA={name:`hardBreakEscape`,tokenize:cA};function cA(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return ek(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var lA={name:`headingAtx`,resolve:uA,tokenize:dA};function uA(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`},VO(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function dA(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||tk(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||ek(n)?(e.exit(`atxHeading`),t(n)):nk(n)?sk(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||tk(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var fA=`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(`.`),pA=[`pre`,`script`,`style`,`textarea`],mA={concrete:!0,name:`htmlFlow`,resolveTo:_A,tokenize:vA},hA={partial:!0,tokenize:bA},gA={partial:!0,tokenize:yA};function _A(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 vA(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):YO(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):YO(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 YO(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||tk(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&pA.includes(l)?(i=1,r.interrupt?t(s):O(s)):fA.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||XO(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 nk(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||YO(t)?(e.consume(t),b):nk(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||XO(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):nk(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):nk(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||ek(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||tk(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||nk(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||ek(t)?O(t):nk(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):ek(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(hA,R,k)(t)):t===null||ek(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(gA,A,R)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||ek(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 pA.includes(n)?(e.consume(t),L):O(t)}return YO(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||ek(t)?(e.exit(`htmlFlowData`),R(t)):(e.consume(t),L)}function R(n){return e.exit(`htmlFlow`),t(n)}}function yA(e,t,n){let r=this;return i;function i(t){return ek(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 bA(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(Sk,t,n)}}var xA={name:`htmlText`,tokenize:SA};function SA(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):YO(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):YO(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):ek(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):ek(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):ek(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):ek(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return YO(t)?(e.consume(t),S):n(t)}function S(t){return t===45||XO(t)?(e.consume(t),S):C(t)}function C(t){return ek(t)?(o=C,N(t)):nk(t)?(e.consume(t),C):M(t)}function w(t){return t===45||XO(t)?(e.consume(t),w):t===47||t===62||tk(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||YO(t)?(e.consume(t),E):ek(t)?(o=T,N(t)):nk(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||XO(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):ek(t)?(o=D,N(t)):nk(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):ek(t)?(o=O,N(t)):nk(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):ek(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||tk(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||tk(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 nk(t)?sk(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 CA={name:`labelEnd`,resolveAll:DA,resolveTo:OA,tokenize:kA},wA={tokenize:AA},TA={tokenize:jA},EA={tokenize:MA};function DA(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&&VO(e,0,e.length,n),e}function OA(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=HO(s,e.slice(a+1,a+r+3)),s=HO(s,[[`enter`,u,t]]),s=HO(s,hk(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=HO(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=HO(s,e.slice(o+1)),s=HO(s,[[`exit`,c,t]]),VO(e,a,e.length,s),e}function kA(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(JO(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(wA,u,o?u:d)(t):t===91?e.attempt(TA,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(EA,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function AA(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 tk(t)?nA(e,a)(t):a(t)}function a(t){return t===41?u(t):$k(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return tk(t)?nA(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?tA(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return tk(t)?nA(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 jA(e,t,n){let r=this;return i;function i(t){return eA.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(JO(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function MA(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 NA={name:`labelStartImage`,resolveAll:CA.resolveAll,tokenize:PA};function PA(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 FA={name:`labelStartLink`,resolveAll:CA.resolveAll,tokenize:IA};function IA(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 LA={name:`lineEnding`,tokenize:RA};function RA(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),sk(e,t,`linePrefix`)}}var zA={name:`thematicBreak`,tokenize:BA};function BA(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||ek(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),nk(t)?sk(e,s,`whitespace`)(t):s(t))}}var VA={continuation:{tokenize:GA},exit:qA,name:`list`,tokenize:WA},HA={partial:!0,tokenize:JA},UA={partial:!0,tokenize:KA};function WA(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:$O(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(zA,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 $O(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(Sk,r.interrupt?n:u,e.attempt(HA,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return nk(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 GA(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(Sk,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,sk(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!nk(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(UA,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,sk(e,e.attempt(VA,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function KA(e,t,n){let r=this;return sk(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 qA(e){e.exit(this.containerState.type)}function JA(e,t,n){let r=this;return sk(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!nk(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var YA={name:`setextUnderline`,resolveTo:XA,tokenize:ZA};function XA(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 ZA(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`),nk(t)?sk(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||ek(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var QA={tokenize:$A};function $A(e){let t=this,n=e.attempt(Sk,r,e.attempt(this.parser.constructs.flowInitial,i,sk(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Jk,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 ej={resolveAll:ij()},tj=rj(`string`),nj=rj(`text`);function rj(e){return{resolveAll:ij(e===`text`?aj: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 ij(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 aj(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 oj=t({attentionMarkers:()=>mj,contentInitial:()=>cj,disable:()=>hj,document:()=>sj,flow:()=>uj,flowInitial:()=>lj,insideSpan:()=>pj,string:()=>dj,text:()=>fj}),sj={42:VA,43:VA,45:VA,48:VA,49:VA,50:VA,51:VA,52:VA,53:VA,54:VA,55:VA,56:VA,57:VA,62:wk},cj={91:rA},lj={[-2]:Ik,[-1]:Ik,32:Ik},uj={35:lA,42:zA,45:[YA,zA],60:mA,61:YA,95:zA,96:Nk,126:Nk},dj={38:Ak,92:Ok},fj={[-5]:LA,[-4]:LA,[-3]:LA,33:NA,38:Ak,42:gk,60:[bk,xA],91:FA,92:[sA,Ok],93:CA,95:gk,96:Bk},pj={null:[gk,ej]},mj={null:[42,95]},hj={null:[]};function gj(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=HO(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=hk(a,l.events,l),l.events):[]}function f(e,t){return vj(p(e),t)}function p(e){return _j(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){ek(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&&VO(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 _j(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 vj(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=`
|
|
60
|
+
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=HS(),d;if(t){let e=typeof t==`string`?Ox(t):t;Sx(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})):jx(e,{pathname:p});Cx(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),Cx(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=aC(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:aS([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:aS([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?_.createElement(MS.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function $S(){let e=fC(),t=dS(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=_.createElement(_.Fragment,null,_.createElement(`p`,null,`💿 Hey developer 👋`),_.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,_.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,_.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),_.createElement(_.Fragment,null,_.createElement(`h2`,null,`Unexpected Application Error!`),_.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?_.createElement(`pre`,{style:i},n):null,o)}var eC=_.createElement($S,null),tC=class extends _.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=zS(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:_.createElement(NS.Provider,{value:this.props.routeContext},_.createElement(PS.Provider,{value:e,children:this.props.component}));return this.context?_.createElement(rC,{error:e},t):t}};tC.contextType=ES;var nC=new WeakMap;function rC({children:e,error:t}){let{basename:n,navigator:r}=_.useContext(jS);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=RS(t.digest);if(e){let i=nC.get(t);if(i)throw i;let a=mS(e.location,n),o=a.absoluteURL||a.to;if(yS(e.location,o,gS(r),`allow-explicit`),CS(o))throw Error(`Invalid redirect location`);if(pS&&!nC.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 nC.set(t,n),n}}return _.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function iC({routeContext:e,match:t,children:n}){let r=_.useContext(wS);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),_.createElement(NS.Provider,{value:e},n)}function aC(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);Sx(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:fS(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||eC,o&&(s<0&&c===0?(hC(`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?_.createElement(n.route.Component,null):n.route.element?n.route.element:e,_.createElement(iC,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?_.createElement(tC,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function oC(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function sC(e){let t=_.useContext(wS);return Sx(t,oC(e)),t}function cC(e){let t=_.useContext(TS);return Sx(t,oC(e)),t}function lC(e){let t=_.useContext(NS);return Sx(t,oC(e)),t}function uC(e){let t=lC(e),n=t.matches[t.matches.length-1];return Sx(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function dC(){return uC(`useRouteId`)}function fC(){let e=_.useContext(PS),t=cC(`useRouteError`),n=uC(`useRouteError`);return e===void 0?t.errors?.[n]:e}function pC(){let{router:e}=sC(`useNavigate`),t=uC(`useNavigate`),n=_.useRef(!1);return WS(()=>{n.current=!0}),_.useCallback(async(r,i={})=>{Cx(n.current,US),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var mC={};function hC(e,t,n){!t&&!mC[e]&&(mC[e]=!0,Cx(!1,n))}_.memo(gC);function gC({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return QS(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function _C(e){return JS(e.context)}function vC(e){Sx(!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 yC({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){Sx(!VS(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=_.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=Ox(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=_.useMemo(()=>{let e=Zx(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 Cx(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:_.createElement(jS.Provider,{value:c},_.createElement(MS.Provider,{children:t,value:h}))}function bC({children:e,location:t}){return ZS(xC(e),t)}_.Component;function xC(e,t=[]){let n=[];return _.Children.forEach(e,(e,r)=>{if(!_.isValidElement(e))return;let i=[...t,r];if(e.type===_.Fragment){n.push.apply(n,xC(e.props.children,i));return}Sx(e.type===vC,`[${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>`),Sx(!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=xC(e.props.children,i)),n.push(a)}),n}var SC=`get`,CC=`application/x-www-form-urlencoded`;function wC(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function TC(e){return wC(e)&&e.tagName.toLowerCase()===`button`}function EC(e){return wC(e)&&e.tagName.toLowerCase()===`form`}function DC(e){return wC(e)&&e.tagName.toLowerCase()===`input`}function OC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function kC(e,t){return e.button===0&&(!t||t===`_self`)&&!OC(e)}function AC(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 jC(e,t){let n=AC(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var MC=null;function NC(){if(MC===null)try{new FormData(document.createElement(`form`),0),MC=!1}catch{MC=!0}return MC}var PC=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function FC(e){return e!=null&&!PC.has(e)?(Cx(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${CC}"`),null):e}function IC(e,t){let n,r,i,a,o;if(EC(e)){let o=e.getAttribute(`action`);r=o?Zx(o,t):null,n=e.getAttribute(`method`)||SC,i=FC(e.getAttribute(`enctype`))||CC,a=new FormData(e)}else if(TC(e)||DC(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?Zx(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||SC,i=FC(e.getAttribute(`formenctype`))||FC(o.getAttribute(`enctype`))||CC,a=new FormData(o,e),!NC()){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(wC(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=SC,r=null,i=CC,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 LC(e,t){if(e===!1||e==null)throw Error(t)}function RC(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&&Zx(i.pathname,t)===`/`?`${oS(t)}/_root.${r}`:`${oS(i.pathname)}.${r}`,i}async function zC(e,t){if(e.id in t)return t[e.id];try{let n=await 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 BC(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 HC(e,t,n){return qC((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await zC(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 UC(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 WC(e,t,{includeHydrateFallback:n}={}){return GC(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 GC(e){return[...new Set(e)]}function KC(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function qC(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!BC(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(KC(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function JC(){let e=_.useContext(wS);return LC(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function YC(){let e=_.useContext(TS);return LC(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var XC=_.createContext(void 0);XC.displayName=`FrameworkContext`;function ZC(){let e=_.useContext(XC);return LC(e,`You must render this element inside a <HydratedRouter> element`),e}function QC(e,t){let n=_.useContext(XC),[r,i]=_.useState(!1),[a,o]=_.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=_.useRef(null);_.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]),_.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:$C(s,p),onBlur:$C(c,m),onMouseEnter:$C(l,p),onMouseLeave:$C(u,m),onTouchStart:$C(d,p)}]:[a,f,{}]:[!1,f,{}]}function $C(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function ew({page:e,...t}){let n=DS(),{nonce:r}=ZC(),{router:i}=JC(),a=_.useMemo(()=>jx(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?_.createElement(nw,{page:e,matches:a,...t}):_.createElement(rw,{page:e,matches:a,...t})):null}function tw(e){let{manifest:t,routeModules:n}=ZC(),[r,i]=_.useState([]);return _.useEffect(()=>{let r=!1;return HC(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function nw({page:e,matches:t,...n}){let r=HS(),{future:i}=ZC(),{basename:a}=JC(),o=_.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=RC(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 _.createElement(_.Fragment,null,o.map(e=>_.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function rw({page:e,matches:t,...n}){let r=HS(),{future:i,manifest:a,routeModules:o}=ZC(),{basename:s}=JC(),{loaderData:c,matches:l}=YC(),u=_.useMemo(()=>UC(e,t,l,a,r,`data`),[e,t,l,a,r]),d=_.useMemo(()=>UC(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=_.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=RC(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=_.useMemo(()=>WC(d,a),[d,a]),m=tw(d);return _.createElement(_.Fragment,null,f.map(e=>_.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>_.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>_.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function iw(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}_.Component;var aw=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{aw&&(window.__reactRouterVersion=`7.18.5`)}catch{}function ow({basename:e,children:t,useTransitions:n,window:r}){let i=_.useRef();i.current??=xx({window:r,v5Compat:!0});let a=i.current,[o,s]=_.useState({action:a.action,location:a.location}),c=_.useCallback(e=>{n===!1?s(e):_.startTransition(()=>s(e))},[n]);return _.useLayoutEffect(()=>a.listen(c),[a,c]),_.createElement(yC,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}var sw=_.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:v}=_.useContext(jS),y=typeof l==`string`&&gx.test(l),b=mS(l,h);l=b.to;let x=BS(l,{relative:r}),S=HS(),C=null;if(o){let e=rS(o,[],S.mask?S.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:aS([h,e.pathname])),C=g.createHref(e)}let[w,T,E]=QC(n,p),D=fw(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:v});function O(t){e&&e(t),t.defaultPrevented||D(t)}let k=!(b.isExternal||i),A=_.createElement(`a`,{...p,...E,href:(k?C:void 0)||b.absoluteURL||x,onClick:k?O:e,ref:iw(m,T),target:c,"data-discover":!y&&t===`render`?`true`:void 0});return w&&!y?_.createElement(_.Fragment,null,A,_.createElement(ew,{page:x})):A});sw.displayName=`Link`;var cw=_.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=XS(a,{relative:c.relative}),d=HS(),f=_.useContext(TS),{navigator:p,basename:m}=_.useContext(jS),h=f!=null&&vw(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,v=d.pathname,y=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,g=g.toLowerCase()),y&&m&&(y=Zx(y,m)||y);let b=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,x=v===g||!r&&v.startsWith(g)&&v.charAt(b)===`/`,S=y!=null&&(y===g||!r&&y.startsWith(g)&&y.charAt(g.length)===`/`),C={isActive:x,isPending:S,isTransitioning:h},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return _.createElement(sw,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});cw.displayName=`NavLink`;var lw=_.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=SC,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=_.useContext(jS),g=gw(),v=_w(s,{relative:l}),y=o.toLowerCase()===`get`?`get`:`post`,b=typeof s==`string`&&gx.test(s);return _.createElement(`form`,{ref:m,method:y,action:v,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?_.startTransition(()=>p()):p()},...p,"data-discover":!b&&e===`render`?`true`:void 0})});lw.displayName=`Form`;function uw(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dw(e){let t=_.useContext(wS);return Sx(t,uw(e)),t}function fw(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=GS(),d=HS(),f=XS(e,{relative:o});return _.useCallback(p=>{if(kC(p,t)){p.preventDefault();let t=n===void 0?Dx(d)===Dx(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?_.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function pw(e){Cx(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=_.useRef(AC(e)),n=_.useRef(!1),r=HS(),i=_.useMemo(()=>jC(r.search,n.current?null:t.current),[r.search]),a=GS();return[i,_.useCallback((e,t)=>{let r=AC(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var mw=0,hw=()=>`__${String(++mw)}__`;function gw(){let{router:e}=dw(`useSubmit`),{basename:t}=_.useContext(jS),n=dC(),r=e.fetch,i=e.navigate;return _.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=IC(e,t);if(a.navigate===!1){let e=a.fetcherKey||hw();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 _w(e,{relative:t}={}){let{basename:n}=_.useContext(jS),r=_.useContext(NS);Sx(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...XS(e||`.`,{relative:t})},o=HS();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:aS([n,a.pathname])),Dx(a)}function vw(e,{relative:t}={}){let n=_.useContext(OS);Sx(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=dw(`useViewTransitionState`),i=XS(e,{relative:t});if(!n.isTransitioning)return!1;let a=Zx(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Zx(n.nextLocation.pathname,r)||n.nextLocation.pathname;return qx(i.pathname,o)!=null||qx(i.pathname,a)!=null}var yw=hx(),bw=`cerefox.apiKey`,xw=null,Sw=null,Cw=0,ww=new Set;function Tw(){return[jw(),Mw()].filter(e=>e!==null)}function Ew(){for(let e of ww)e()}function Dw(){if(xw)return xw;for(let e of Tw())try{let t=e.getItem(bw);if(t)return xw=t,t}catch{}return null}function Ow(e,t){Aw(),xw=e,Cw++;try{(t?Mw():jw())?.setItem(bw,e)}catch{}Sw=null,Ew()}function kw(){xw=null,Cw++,Aw(),Ew()}function Aw(){for(let e of Tw())try{e.removeItem(bw)}catch{}}function jw(){try{return typeof sessionStorage<`u`?sessionStorage:null}catch{return null}}function Mw(){try{return typeof localStorage<`u`?localStorage:null}catch{return null}}function Nw(e,t){return e===401&&/\bbearer\b/i.test(t??``)&&/realm="cerefox"/i.test(t??``)}function Pw(e,t){if(t!==void 0&&t!==Cw)return;let n=e!==null&&Dw()===e;if(!n&&Dw()!==null)return;n&&(xw=null,Aw());let r=n?`rejected`:Sw??`missing`;r!==Sw&&(Sw=r,Ew())}function Fw(){return Cw}function Iw(){return Sw}function Lw(e){return ww.add(e),()=>ww.delete(e)}var Rw=`/api/v1`,zw=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}},Bw=class extends zw{constructor(e){super(401,`Unauthorized`,e),this.message=`This server needs its API key.`,this.name=`AuthRequiredError`}},Vw=class extends zw{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 Hw(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 Uw(e,t){return(await Ww(e,t)).json()}async function Ww(e,t){let n=await Gw(e,t);if(!n.ok){let e=await n.text();if(n.status===503){let t=Hw(e);if(t)throw new Vw(e,t)}throw new zw(n.status,n.statusText,e)}return n}async function Gw(e,t){let n=Dw(),r=Fw();if(!n&&Iw())throw new Bw(``);let i=typeof FormData<`u`&&t?.body instanceof FormData,a=await fetch(`${Rw}${e}`,{...t,headers:{...i?{}:{"Content-Type":`application/json`},...n?{Authorization:`Bearer ${n}`}:{},...t?.headers}});if(Nw(a.status,a.headers.get(`WWW-Authenticate`)))throw Pw(n,r),new Bw(await a.text());return a}async function Kw(e){try{let t=await fetch(`${Rw}/version`,{headers:{Authorization:`Bearer ${e}`}});return t.ok?`ok`:t.status===401?`rejected`:`unreachable`}catch{return`unreachable`}}async function qw(e,t,n=`save`){let r=n===`open`?window.open(``,`_blank`):null;try{let{blob:n,filename:i}=await Jw(e,t);if(r){let e=URL.createObjectURL(n);r.location.href=e,setTimeout(()=>URL.revokeObjectURL(e),6e4)}else Yw(n,i)}catch(e){throw r?.close(),e}}async function Jw(e,t){let n=await Ww(e);return{blob:await n.blob(),filename:Zw(n.headers.get(`Content-Disposition`))??t}}function Yw(e,t){let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,document.body.appendChild(r),r.click(),r.remove(),setTimeout(()=>URL.revokeObjectURL(n),6e4)}function Xw(e){let t=e.trim();return t.startsWith(`${Rw}/`)?t.slice(7):null}function Zw(e){if(!e)return null;let t=/filename\*\s*=\s*UTF-8''([^;]+)/i.exec(e);if(t)try{return decodeURIComponent(t[1].trim())}catch{}let n=/filename\s*=\s*"?([^";]+)"?/i.exec(e);return n?n[1].trim():null}async function Qw(e){if(e.status!==503)return null;let t=await e.text(),n=Hw(t);return n?new Vw(t,n):null}async function $w(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 eT(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()}var tT={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`}},nT=(e,t,n,r)=>{let i=(0,_.forwardRef)(({color:n=`currentColor`,size:i=24,stroke:a=2,title:o,className:s,children:c,...l},u)=>(0,_.createElement)(`svg`,{ref:u,...tT[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,_.createElement)(`title`,{key:`svg-title`},o),...r.map(([e,t])=>(0,_.createElement)(e,t)),...Array.isArray(c)?c:[c]]));return i.displayName=`${n}`,i},rT=nT(`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`}]]),iT=nT(`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`}]]),aT=nT(`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`}]]),oT=nT(`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`}]]),sT=nT(`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`}]]),cT=nT(`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`}]]),lT=nT(`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`}]]),uT=nT(`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`}]]),dT=nT(`outline`,`check`,`Check`,[[`path`,{d:`M5 12l5 5l10 -10`,key:`svg-0`}]]),fT=nT(`outline`,`chevron-down`,`ChevronDown`,[[`path`,{d:`M6 9l6 6l6 -6`,key:`svg-0`}]]),pT=nT(`outline`,`chevron-left`,`ChevronLeft`,[[`path`,{d:`M15 6l-6 6l6 6`,key:`svg-0`}]]),mT=nT(`outline`,`chevron-right`,`ChevronRight`,[[`path`,{d:`M9 6l6 6l-6 6`,key:`svg-0`}]]),hT=nT(`outline`,`chevrons-left`,`ChevronsLeft`,[[`path`,{d:`M11 7l-5 5l5 5`,key:`svg-0`}],[`path`,{d:`M17 7l-5 5l5 5`,key:`svg-1`}]]),gT=nT(`outline`,`chevrons-right`,`ChevronsRight`,[[`path`,{d:`M7 7l5 5l-5 5`,key:`svg-0`}],[`path`,{d:`M13 7l5 5l-5 5`,key:`svg-1`}]]),_T=nT(`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`}]]),vT=nT(`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`}]]),yT=nT(`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`}]]),bT=nT(`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`}]]),xT=nT(`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`}]]),ST=nT(`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`}]]),CT=nT(`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`}]]),wT=nT(`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`}]]),TT=nT(`outline`,`file-type-docx`,`FileTypeDocx`,[[`path`,{d:`M14 3v4a1 1 0 0 0 1 1h4`,key:`svg-0`}],[`path`,{d:`M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4`,key:`svg-1`}],[`path`,{d:`M2 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1`,key:`svg-2`}],[`path`,{d:`M17 16.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0`,key:`svg-3`}],[`path`,{d:`M9.5 15a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1 -3 0v-3a1.5 1.5 0 0 1 1.5 -1.5`,key:`svg-4`}],[`path`,{d:`M19.5 15l3 6`,key:`svg-5`}],[`path`,{d:`M19.5 21l3 -6`,key:`svg-6`}]]),ET=nT(`outline`,`file-type-pdf`,`FileTypePdf`,[[`path`,{d:`M14 3v4a1 1 0 0 0 1 1h4`,key:`svg-0`}],[`path`,{d:`M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4`,key:`svg-1`}],[`path`,{d:`M5 18h1.5a1.5 1.5 0 0 0 0 -3h-1.5v6`,key:`svg-2`}],[`path`,{d:`M17 18h2`,key:`svg-3`}],[`path`,{d:`M20 15h-3v6`,key:`svg-4`}],[`path`,{d:`M11 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1`,key:`svg-5`}]]),DT=nT(`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`}]]),OT=nT(`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`}]]),kT=nT(`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`}]]),AT=nT(`outline`,`key-off`,`KeyOff`,[[`path`,{d:`M10.17 6.159l2.316 -2.316a2.877 2.877 0 0 1 4.069 0l3.602 3.602a2.877 2.877 0 0 1 0 4.069l-2.33 2.33`,key:`svg-0`}],[`path`,{d:`M14.931 14.948a2.863 2.863 0 0 1 -1.486 -.79l-.301 -.302l-6.558 6.558a2 2 0 0 1 -1.239 .578l-.175 .008h-1.172a1 1 0 0 1 -.993 -.883l-.007 -.117v-1.172a2 2 0 0 1 .467 -1.284l.119 -.13l.414 -.414h2v-2h2v-2l2.144 -2.144l-.301 -.301a2.863 2.863 0 0 1 -.794 -1.504`,key:`svg-1`}],[`path`,{d:`M15 9h.01`,key:`svg-2`}],[`path`,{d:`M3 3l18 18`,key:`svg-3`}]]),jT=nT(`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`}]]),MT=nT(`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`}]]),NT=nT(`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`}]]),PT=nT(`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`}]]),FT=nT(`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`}]]),IT=nT(`outline`,`markdown`,`Markdown`,[[`path`,{d:`M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10`,key:`svg-0`}],[`path`,{d:`M7 15v-6l2 2l2 -2v6`,key:`svg-1`}],[`path`,{d:`M14 13l2 2l2 -2m-2 2v-6`,key:`svg-2`}]]),LT=nT(`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`}]]),RT=nT(`outline`,`player-play`,`PlayerPlay`,[[`path`,{d:`M7 4v16l13 -8l-13 -8`,key:`svg-0`}]]),zT=nT(`outline`,`plus`,`Plus`,[[`path`,{d:`M12 5l0 14`,key:`svg-0`}],[`path`,{d:`M5 12l14 0`,key:`svg-1`}]]),BT=nT(`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`}]]),VT=nT(`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`}]]),HT=nT(`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`}]]),UT=nT(`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`}]]),WT=nT(`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`}]]),GT=nT(`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`}]]),KT=nT(`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`}]]),qT=nT(`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`}]]),JT=nT(`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`}]]),YT=nT(`outline`,`x`,`X`,[[`path`,{d:`M18 6l-12 12`,key:`svg-0`}],[`path`,{d:`M6 6l12 12`,key:`svg-1`}]]);async function XT(){return Uw(`/preferences`)}async function ZT(e){await Uw(`/preferences`,{method:`PUT`,body:JSON.stringify(e)})}function QT(){let{colorScheme:e,setColorScheme:t}=fn(),n=(0,_.useSyncExternalStore)(Lw,()=>Dw()!==null);return(0,_.useEffect)(()=>{let n=!1;return XT().then(r=>{!n&&r.theme&&r.theme!==e&&t(r.theme)}).catch(()=>{}),()=>{n=!0}},[n]),{theme:e,setTheme:e=>{t(e),ZT({theme:e}).catch(()=>{})}}}var $T=()=>`${Iw()??`none`}|${Dw()?`key`:`nokey`}`;function eE(){let[e,t]=(0,_.useSyncExternalStore)(Lw,$T).split(`|`);return{prompt:e===`none`?null:e,hasKey:t===`key`}}function tE(){let{prompt:e}=eE(),t=Xy(),[n,r]=(0,_.useState)(``),[i,a]=(0,_.useState)(!1),[o,s]=(0,_.useState)(null),[c,l]=(0,_.useState)(!1);if(!e)return null;let u=async()=>{let e=n.trim();if(!e)return;l(!0),s(null);let a=await Kw(e);l(!1),a===`ok`?(Ow(e,i),r(``),await t.resetQueries()):s(a===`rejected`?`That key was not accepted.`:`Could not reach the server to check the key.`)};return(0,G.jsx)(ng,{opened:!0,onClose:()=>{},withCloseButton:!1,closeOnClickOutside:!1,closeOnEscape:!1,title:`This server needs its API key`,centered:!0,children:(0,G.jsx)(`form`,{onSubmit:e=>{e.preventDefault(),u()},children:(0,G.jsxs)(Mv,{gap:`sm`,children:[e===`rejected`&&(0,G.jsx)(Wd,{color:`yellow`,variant:`light`,children:`The saved key was not accepted. It may have been rotated.`}),(0,G.jsxs)(Y,{size:`sm`,c:`dimmed`,children:[`Print it with `,(0,G.jsx)(`code`,{children:`cerefox api-key show`}),`, or `,(0,G.jsx)(`code`,{children:`cerefox-local api-key`}),` `,`for a Cerefox Local container. If you set `,(0,G.jsx)(`code`,{children:`CEREFOX_API_KEY`}),` yourself, use that value.`]}),(0,G.jsx)(Y_,{label:`API key`,placeholder:`cfx_lak_…`,autoFocus:!0,autoComplete:`off`,value:n,onChange:e=>r(e.currentTarget.value),error:o}),(0,G.jsx)(Bp,{label:`Remember on this browser`,description:`Otherwise the key is forgotten when this tab closes.`,checked:i,onChange:e=>a(e.currentTarget.checked)}),(0,G.jsx)(dm,{type:`submit`,loading:c,disabled:!n.trim(),children:`Continue`})]})})})}function nE(){let{hasKey:e}=eE(),t=Xy();return e?(0,G.jsx)(Ol,{variant:`subtle`,size:`lg`,title:`Forget the API key on this browser`,"aria-label":`Forget API key`,onClick:()=>{kw(),t.resetQueries()},children:(0,G.jsx)(AT,{size:18})}):null}async function rE(){return Uw(`/version`)}function iE(){let{data:e}=ux({queryKey:[`version`],queryFn:rE,staleTime:1/0,retry:!1}),t=e?.env_label?.trim();return t?(0,G.jsxs)(Wd,{icon:(0,G.jsx)(DT,{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}async function aE(){let e=await Gw(`/docs`);if(!e.ok)throw Error(`Failed to load docs index: ${e.status}`);return e.json()}async function oE(e){let t=await Gw(`/docs/${e.split(`/`).map(encodeURIComponent).join(`/`)}`);if(!t.ok)throw Error(`Failed to load doc '${e}': ${t.status}`);return t.text()}async function sE(){let e=await Gw(`/schema-version`);if(!e.ok)throw Error(`Failed to load schema version: ${e.status}`);return e.json()}function cE(){let{data:e}=ux({queryKey:[`schema-version`],queryFn:sE,refetchInterval:6e4,staleTime:3e4,retry:!1}),t=e?.level===`below-min`;return!e||!t&&!e.mismatch?null:(0,G.jsxs)(Wd,{icon:(0,G.jsx)(aT,{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)(Sm,{block:!0,mt:`xs`,children:`cerefox server deploy --schema-only`})]})}var lE=`https://github.com/fstamatelopoulos/cerefox/releases`;function uE(){let{data:e}=ux({queryKey:[`version`],queryFn:rE,staleTime:1/0,refetchInterval:216e5,retry:!1});if(!e?.latest||!e.update_available)return null;let t=(0,G.jsxs)(nm,{component:`a`,href:`${lE}/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`]});return e.update_command?(0,G.jsx)(vv,{label:(0,G.jsxs)(G.Fragment,{children:[`Run`,` `,(0,G.jsx)(Sm,{bg:`color-mix(in srgb, currentColor 18%, transparent)`,children:e.update_command}),` `,`to upgrade`]}),withArrow:!0,children:t}):t}var dE=`https://github.com/fstamatelopoulos/cerefox/releases`;function fE(){let{data:e}=ux({queryKey:[`version`],queryFn:rE,staleTime:1/0,retry:!1});if(!e)return null;let t=`${dE}/tag/v${e.version}`,n=e.git_commit_short?` (${e.git_commit_short})`:``;return(0,G.jsx)(Rl,{justify:`center`,py:`sm`,gap:`xs`,children:(0,G.jsxs)(Y,{size:`xs`,c:`dimmed`,children:[`Cerefox`,` `,(0,G.jsxs)(Zd,{href:t,target:`_blank`,rel:`noopener noreferrer`,size:`xs`,c:`dimmed`,underline:`hover`,children:[`v`,e.version]}),n]})})}var pE=[{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`}],mE=[{value:`light`,label:`Light`,icon:WT},{value:`dark`,label:`Dark`,icon:LT},{value:`auto`,label:`System`,icon:bT}];function hE(){let e=GS(),t=HS(),{theme:n,setTheme:r}=QT(),i=n===`light`?WT:n===`dark`?LT:bT;return(0,G.jsxs)(Rf,{header:{height:56},padding:`xs`,children:[(0,G.jsxs)(Rf.Header,{style:{position:`relative`},children:[(0,G.jsxs)(Rl,{h:`100%`,px:`md`,justify:`space-between`,children:[(0,G.jsxs)(Rl,{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)(uE,{})]}),(0,G.jsxs)(Rl,{gap:`lg`,children:[pE.map(n=>(0,G.jsx)(vc,{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.jsx)(nE,{}),(0,G.jsxs)(Bh,{position:`bottom-end`,withArrow:!0,shadow:`md`,width:150,children:[(0,G.jsx)(Bh.Target,{children:(0,G.jsx)(Ol,{variant:`subtle`,size:`lg`,title:`Color theme`,"aria-label":`Color theme`,children:(0,G.jsx)(i,{size:18})})}),(0,G.jsxs)(Bh.Dropdown,{children:[(0,G.jsx)(Bh.Label,{children:`Theme`}),mE.map(e=>{let t=e.icon;return(0,G.jsx)(Bh.Item,{leftSection:(0,G.jsx)(t,{size:16}),rightSection:n===e.value?(0,G.jsx)(dT,{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)(Rf.Main,{children:[(0,G.jsx)(tE,{}),(0,G.jsx)(iE,{}),(0,G.jsx)(cE,{}),(0,G.jsx)(_C,{}),(0,G.jsx)(fE,{})]})]})}async function gE(e){return Uw(`/audit-log${eT(e??{})}`)}async function _E(e,t){return Uw(`/documents/${e}/review-status`,{method:`POST`,body:JSON.stringify({status:t})})}async function vE(e,t,n){return Uw(`/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 yE({cmd:e,args:t,docPath:n=`guides/cli.md`}){let r=GS(),[i,a]=(0,_.useState)(!1),o=(0,_.useRef)(null),s=t?`${e} ${t}`:e;return(0,_.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)(dT,{size:12,style:{color:`var(--green)`,flexShrink:0}}):(0,G.jsx)(vT,{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 bE=`cerefox:rowsPerPage`,xE=[10,25,50,100],SE=10;function CE(){try{let e=Number(localStorage.getItem(bE));if(xE.includes(e))return e}catch{}return SE}function wE(){let[e,t]=(0,_.useState)(CE);return[e,e=>{t(e);try{localStorage.setItem(bE,String(e))}catch{}}]}var TE={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 EE({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:TE.foot,children:[(0,G.jsxs)(`span`,{className:TE.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:TE.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:xE.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:TE.pgBtn,disabled:l,onClick:()=>i(1),"aria-label":`First page`,children:(0,G.jsx)(hT,{size:14})}),(0,G.jsx)(`button`,{type:`button`,className:TE.pgBtn,disabled:l,onClick:()=>i(e-1),"aria-label":`Previous page`,children:(0,G.jsx)(pT,{size:14})}),(0,G.jsxs)(`span`,{className:TE.faint,children:[`page `,e,` / `,t]}),(0,G.jsx)(`button`,{type:`button`,className:TE.pgBtn,disabled:u,onClick:()=>i(e+1),"aria-label":`Next page`,children:(0,G.jsx)(mT,{size:14})}),(0,G.jsx)(`button`,{type:`button`,className:TE.pgBtn,disabled:u,onClick:()=>i(t),"aria-label":`Last page`,children:(0,G.jsx)(gT,{size:14})})]})]})]})}function DE({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,v]=(0,_.useState)(0),[y,b]=wE(),x=(0,_.useMemo)(()=>{let e=a.trim().toLowerCase();return!e||!c?u:u.filter(t=>c(t).toLowerCase().includes(e))},[u,a,c]),S=x.length,C=Math.max(1,Math.ceil(S/y)),w=Math.min(g,C-1),T=x.slice(w*y,w*y+y),E=!!p,D=l.length+ +!!E;return(0,G.jsxs)(`div`,{className:TE.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:TE.toolbar,children:[(0,G.jsxs)(`span`,{className:TE.search,children:[(0,G.jsx)(VT,{size:16}),(0,G.jsx)(`input`,{value:a,onChange:e=>{o(e.currentTarget.value),v(0)},placeholder:s})]}),i,(0,G.jsxs)(`span`,{className:TE.count,children:[S,` `,S===1?`row`:`rows`]})]}),(0,G.jsxs)(`div`,{className:`${X.card} ${X.rise}`,style:{overflow:`hidden`},children:[(0,G.jsxs)(`table`,{className:TE.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:TE.emptyRow,children:`Loading…`})}):T.length===0?(0,G.jsx)(`tr`,{children:(0,G.jsx)(`td`,{colSpan:D,className:TE.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:TE.actions,children:p(e)})})]},d(e)))})]}),(0,G.jsx)(EE,{page:w+1,pageCount:C,total:S,pageSize:y,onPage:e=>v(e-1),onPageSize:e=>{b(e),v(0)}})]})]})}function OE(e){return e?new Date(e).toLocaleDateString():``}function kE(e){if(!e)return``;let t=new Date(e);return t.toLocaleDateString()+` `+t.toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})}var AE=[`config-change`,`project-create`,`project-edit`,`project-delete`];function jE(e){return AE.includes(e??``)}[...AE];function ME(e,t,n){return e||(t?t.slice(0,8)+`…`:n===`config-change`?`(setting)`:n?.startsWith(`project-`)?`(project)`:jE(n)?`(store)`:`(deleted)`)}function NE(e,t){if(!jE(e))return null;let n=(t??``).trim();return n?e===`config-change`?n.replace(/^config:\s*/,``):n:null}function PE(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 FE(e,t=60){let n=e.replace(/\s+/g,` `).trim();return n.length<=t?n:`${n.slice(0,t-1).trimEnd()}…`}function IE({page:e,dirty:t}){let n=e?.trim()?FE(e):`Cerefox`;return`${t?`• `:``}${n}`}function LE(e,t={}){let n=t.dirty??!1;(0,_.useEffect)(()=>{document.title=IE({page:e,dirty:n})},[e,n])}var RE=[{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`}],zE=[{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`},...RE.map(e=>({value:e.value,label:e.label}))],BE={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(RE.map(e=>[e.value,{yellow:X.bYellow,green:X.bGreen,violet:X.bViolet,red:X.bRed}[e.tone]]))};function VE(){LE(`Audit log`);let e=GS(),[t]=pw(),[n,r]=(0,_.useState)(t.get(`operation`)||``),[i]=(0,_.useState)(t.get(`document_id`)||``),[a,o]=(0,_.useState)(``),[s,c]=(0,_.useState)(``),[l,u]=(0,_.useState)(`100`),[d,f]=(0,_.useState)(``),{data:p,isLoading:m}=ux({queryKey:[`audit-log`,n,i,a,s,l],queryFn:()=>gE({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)(DE,{eyebrow:`Every read & write`,title:`Audit Log`,subtitle:`A complete trail of changes — by human and agent alike.`,headerRight:(0,G.jsx)(yE,{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)(wv,{data:zE,value:n,onChange:e=>r(e||``),placeholder:`All operations`,size:`sm`,w:170,clearable:!0}),(0,G.jsx)(Bv,{type:`date`,"aria-label":`From`,value:a,onChange:e=>o(e.currentTarget.value),size:`sm`,w:150}),(0,G.jsx)(Bv,{type:`date`,"aria-label":`To`,value:s,onChange:e=>c(e.currentTarget.value),size:`sm`,w:150}),(0,G.jsx)(wv,{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:kE(e.created_at)})},{key:`op`,label:`Operation`,width:150,render:e=>(0,G.jsx)(`span`,{className:`${X.badge} ${BE[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)(HT,{size:12}):(0,G.jsx)(FT,{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:ME(null,null,e.operation)})},{key:`delta`,label:`Change`,width:300,align:`right`,render:e=>{let t=PE(e.metadata_before,e.metadata_after)??NE(e.operation,e.description);if(t)return(0,G.jsx)(`span`,{className:X.mono,style:{fontSize:12,whiteSpace:`nowrap`},title:t,children:t.length>50?`${t.slice(0,49)}…`: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 HE(e={}){return Uw(`/usage-log/summary${eT({...e})}`)}async function UE(e={}){return Uw(`/usage-log${eT({...e,limit:e.limit??100})}`)}function WE(e={}){return qw(`/usage-log/export.csv${eT({...e})}`,`cerefox-usage-log.csv`)}async function GE(e){return(await Uw(`/config/${e}`)).value}async function KE(e,t){await Uw(`/config/${e}`,{method:`PUT`,body:JSON.stringify({value:t})})}function qE(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 JE({title:e,commands:t,docPath:n=`guides/cli.md`}){let r=GS(),[i,a]=(0,_.useState)(null),o=(0,_.useRef)(null);(0,_.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)(GT,{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)(dT,{size:13,style:{color:`var(--green)`}}):(0,G.jsx)(vT,{size:13})})]},t))})]})}async function YE(){return Uw(`/dashboard`)}async function XE(e){return Uw(`/dashboard/recent-docs${e?`?project_id=${encodeURIComponent(e)}`:``}`)}var ZE={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`},QE=[`--primary`,`--violet`,`--blue`,`--green`,`--yellow`,`--red`];function $E(e){return e>=1e6?`${(e/1e6).toFixed(2)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function eD(){let e=new Date().getHours();return e<12?`Good morning`:e<18?`Good afternoon`:`Good evening`}function tD(e){let t=(e??`manual`).toLowerCase();switch(t){case`agent`:return{icon:HT,label:`agent`,agent:!0};case`cli`:return{icon:GT,label:`cli`,agent:!1};case`file`:return{icon:wT,label:`file`,agent:!1};case`paste`:return{icon:wT,label:`paste`,agent:!1};case`url`:return{icon:jT,label:`url`,agent:!1};default:return{icon:FT,label:t,agent:!1}}}var nD=new Date(Date.now()-2592e6).toISOString();function rD(){LE();let e=GS(),[t,n]=(0,_.useState)(``),[r,i]=(0,_.useState)(``),{data:a}=ux({queryKey:[`dashboard`],queryFn:YE}),{data:o}=ux({queryKey:[`dashboard-recent`,r],queryFn:()=>XE(r||void 0),placeholderData:bb}),s=nD,{data:c}=ux({queryKey:[`usage-summary-30d`,s],queryFn:()=>HE({start:s}),staleTime:6e4}),{localMcpOps:l,remoteMcpOps:u,efOps:d,apiOps:f,agentOps:p,cliOps:m,webOps:h}=qE(c?.ops_by_access_path),g=new Map((a?.projects??[]).map(e=>[e.id,e.name])),v=new Map((a?.projects??[]).map((e,t)=>[e.id,QE[t%QE.length]])),y=a?.project_doc_counts??{},b=a?.project_deleted_doc_counts??{},x=Object.values(b).reduce((e,t)=>e+t,0),S=Math.max(1,...Object.values(y)),C=()=>{let n=t.trim();e(n?`/search?q=${encodeURIComponent(n)}&mode=docs`:`/search`)},w=e=>`var(${v.get(e.project_ids[0])??`--border`})`;return(0,G.jsxs)(`div`,{className:ZE.wrap,children:[(0,G.jsxs)(`div`,{className:`${ZE.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:[eD(),`, operator.`]})]}),(0,G.jsxs)(`div`,{className:ZE.dashHeroActions,children:[(0,G.jsxs)(`form`,{className:ZE.quickSearch,onSubmit:e=>{e.preventDefault(),C()},children:[(0,G.jsx)(VT,{size:16}),(0,G.jsx)(`input`,{value:t,onChange:e=>n(e.currentTarget.value),placeholder:`Quick search…`}),(0,G.jsx)(`button`,{type:`submit`,className:ZE.qsGo,"aria-label":`Search`,children:(0,G.jsx)(cT,{size:15})})]}),(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnPrimary}`,onClick:()=>e(`/ingest`),children:[(0,G.jsx)(zT,{size:16}),`Ingest content`]})]})]}),(0,G.jsxs)(`div`,{className:ZE.statGrid,children:[(0,G.jsxs)(`div`,{className:`${X.card} ${ZE.statTile} ${X.rise}`,children:[(0,G.jsxs)(`div`,{className:ZE.statTop,children:[(0,G.jsx)(`span`,{className:`${ZE.statIco} ${X.bPrimary}`,children:(0,G.jsx)(yT,{size:18})}),x>0&&(0,G.jsxs)(`span`,{className:`${X.badge} ${X.bNeutral}`,children:[x,` docs in trash`]})]}),(0,G.jsx)(`div`,{className:ZE.statValue,children:(a?.doc_count??0).toLocaleString()}),(0,G.jsx)(`div`,{className:ZE.statLabel,children:`Documents`})]}),(0,G.jsxs)(`div`,{className:`${X.card} ${ZE.statTile} ${X.rise}`,children:[(0,G.jsxs)(`div`,{className:ZE.statTop,children:[(0,G.jsx)(`span`,{className:`${ZE.statIco} ${X.bViolet}`,children:(0,G.jsx)(UT,{size:18})}),(0,G.jsxs)(`span`,{className:`${X.badge} ${X.bViolet}`,children:[$E(a?.total_chars??0),` chars`]})]}),(0,G.jsx)(`div`,{className:ZE.statValue,children:(a?.total_chunks??0).toLocaleString()}),(0,G.jsx)(`div`,{className:ZE.statLabel,children:`Indexed chunks`})]}),(0,G.jsxs)(`div`,{className:`${X.card} ${ZE.statTile} ${X.rise}`,children:[(0,G.jsx)(`div`,{className:ZE.statTop,children:(0,G.jsx)(`span`,{className:`${ZE.statIco} ${X.bBlue}`,children:(0,G.jsx)(OT,{size:18})})}),(0,G.jsx)(`div`,{className:ZE.statValue,children:a?.project_count??0}),(0,G.jsx)(`div`,{className:ZE.statLabel,children:`Projects`})]}),(0,G.jsxs)(`div`,{className:`${X.card} ${ZE.statTile} ${X.rise}`,children:[(0,G.jsxs)(`div`,{className:ZE.statTop,children:[(0,G.jsx)(`span`,{className:`${ZE.statIco} ${X.bGreen}`,children:(0,G.jsx)(HT,{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)(fl,{width:260,position:`bottom-end`,withArrow:!0,shadow:`md`,children:[(0,G.jsx)(fl.Target,{children:(0,G.jsx)(`button`,{type:`button`,className:X.whatis,children:`Why no data?`})}),(0,G.jsx)(fl.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?ZE.statValue:ZE.emptyVal,children:p>0?p.toLocaleString():`—`}),(0,G.jsx)(`div`,{className:ZE.statLabel,children:`Agent operations · 30d`}),(d>0||f>0||m>0||h>0)&&(0,G.jsxs)(`div`,{className:ZE.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:ZE.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)(_T,{size:16}),`Recently changed documents`]}),(0,G.jsxs)(`span`,{className:X.selectWrap,title:`Scope recent documents to a project`,children:[(0,G.jsx)(OT,{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)(fT,{size:14})]})]}),(0,G.jsx)(`div`,{className:X.card,style:{overflow:`hidden`},children:(0,G.jsxs)(`table`,{className:ZE.tbl,children:[(0,G.jsx)(`thead`,{children:(0,G.jsxs)(`tr`,{children:[(0,G.jsx)(`th`,{className:ZE.colDoc,children:`Document`}),(0,G.jsx)(`th`,{className:`${ZE.colAuthor} ${ZE.authorCell}`,children:`Author`}),(0,G.jsx)(`th`,{className:`${ZE.colChunks} ${ZE.alignRight}`,children:`Chunks`}),(0,G.jsx)(`th`,{className:`${ZE.colSize} ${ZE.alignRight}`,children:`Size`}),(0,G.jsx)(`th`,{className:`${ZE.colUpdated} ${ZE.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`?HT:FT,label:t.author,agent:t.author_type===`agent`}:tD(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:ZE.docCell,children:[(0,G.jsx)(`span`,{className:ZE.docDot,style:{background:w(t)}}),(0,G.jsxs)(`div`,{className:X.col,style:{gap:3,minWidth:0},children:[(0,G.jsx)(sw,{to:`/document/${t.id}`,className:`${X.link} ${ZE.docTitle}`,onClick:e=>e.stopPropagation(),children:t.title||`Untitled`}),(0,G.jsxs)(`div`,{className:ZE.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:ZE.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:`${ZE.alignRight} ${X.mono} ${X.dim}`,children:t.chunk_count}),(0,G.jsx)(`td`,{className:`${ZE.alignRight} ${X.mono} ${X.dim}`,children:t.total_chars.toLocaleString()}),(0,G.jsx)(`td`,{className:`${ZE.alignRight} ${X.faint}`,children:kE(t.updated_at)})]},t.id)})})]})})]}),(0,G.jsxs)(`aside`,{className:ZE.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)(UT,{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} ${ZE.projList}`,children:[(0,G.jsx)(`div`,{className:ZE.projScroll,children:(a?.projects??[]).map(t=>{let n=y[t.id]??0,r=b[t.id]??0,i=`var(${v.get(t.id)??`--border`})`;return(0,G.jsxs)(`button`,{type:`button`,className:ZE.projRow,onClick:()=>e(`/projects/${t.id}/documents`),children:[(0,G.jsx)(`span`,{className:ZE.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)(sw,{to:`/projects/${t.id}/documents`,className:ZE.projName,onClick:e=>e.stopPropagation(),children:t.name}),(0,G.jsxs)(`span`,{className:ZE.projCounts,children:[(0,G.jsx)(`span`,{children:n}),r>0&&(0,G.jsxs)(`span`,{className:ZE.trashCount,title:`${r} in trash`,children:[(0,G.jsx)(qT,{size:11}),r]})]})]}),(0,G.jsx)(`div`,{className:ZE.projBar,children:(0,G.jsx)(`span`,{style:{width:`${n/S*100}%`,background:i}})})]}),(0,G.jsx)(`span`,{className:ZE.projChev,children:(0,G.jsx)(mT,{size:15})})]},t.id)})}),(0,G.jsxs)(`div`,{className:ZE.projFoot,children:[(0,G.jsxs)(`span`,{children:[a?.project_count??0,` projects`]}),(0,G.jsxs)(`span`,{className:X.faint,children:[x,` docs in trash`]})]})]})]}),(0,G.jsx)(JE,{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`}]})]})]})]})}var iD=`modulepreload`,aD=function(e){return`/app/`+e},oD={},sD=function(e){return e.pathname.endsWith(`.css`)},cD=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},lD=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=aD(t,n);let r=s(t),i=sD(r);return cD(oD,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`:iD,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)})};async function uD(e,t){return Uw(`/documents/${e}${eT({version_id:t})}`)}async function dD(e){return Uw(`/documents/${e}/chunks`)}async function fD(e,t){return Uw(`/documents/${e}/edit`,{method:`POST`,body:JSON.stringify(t)})}async function pD(e){return Uw(`/documents/${e}`,{method:`DELETE`})}async function mD(e){return Uw(`/ingest`,{method:`POST`,body:JSON.stringify({mode:`paste`,...e})})}async function hD(e){return Uw(`/check-filename${eT({filename:e})}`)}async function gD(e,t){return Uw(`/documents/${e}?version_id=${t}`)}async function _D(e,t,n=`md`,r=`document`){let i=`/documents/${e}/download`,a=t?`${i}?version_id=${t}`:i;if(n===`md`)return qw(a,`document.md`);let{blob:o,filename:s}=await Jw(a,`document.md`),c=await o.text(),{withExtension:l}=await lD(async()=>{let{withExtension:e}=await import(`./markdown-D6ZljOkv.js`);return{withExtension:e}},[]);Yw(n===`docx`?await(await lD(async()=>{let{markdownToDocx:e}=await import(`./docx-CjhuGfqI.js`);return{markdownToDocx:e}},__vite__mapDeps([0,1]))).markdownToDocx(c,r):await(await lD(async()=>{let{markdownToPdf:e}=await import(`./pdf-C3krYx-2.js`);return{markdownToPdf:e}},__vite__mapDeps([2,3,1]))).markdownToPdf(c,r),l(s,n))}function vD(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var yD=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bD=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,xD={};function SD(e,t){return((t||xD).jsx?bD:yD).test(e)}var CD=/[ \t\n\f\r]/g;function wD(e){return typeof e==`object`?e.type===`text`&&TD(e.value):TD(e)}function TD(e){return e.replace(CD,``)===``}var ED=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};ED.prototype.normal={},ED.prototype.property={},ED.prototype.space=void 0;function DD(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new ED(n,r,t)}function OD(e){return e.toLowerCase()}var kD=class{constructor(e,t){this.attribute=t,this.property=e}};kD.prototype.attribute=``,kD.prototype.booleanish=!1,kD.prototype.boolean=!1,kD.prototype.commaOrSpaceSeparated=!1,kD.prototype.commaSeparated=!1,kD.prototype.defined=!1,kD.prototype.mustUseProperty=!1,kD.prototype.number=!1,kD.prototype.overloadedBoolean=!1,kD.prototype.property=``,kD.prototype.spaceSeparated=!1,kD.prototype.space=void 0;var AD=e({boolean:()=>MD,booleanish:()=>ND,commaOrSpaceSeparated:()=>LD,commaSeparated:()=>ID,number:()=>Z,overloadedBoolean:()=>PD,spaceSeparated:()=>FD}),jD=0,MD=RD(),ND=RD(),PD=RD(),Z=RD(),FD=RD(),ID=RD(),LD=RD();function RD(){return 2**++jD}var zD=Object.keys(AD),BD=class extends kD{constructor(e,t,n,r){let i=-1;if(super(e,t),VD(this,`space`,r),typeof n==`number`)for(;++i<zD.length;){let e=zD[i];VD(this,zD[i],(n&AD[e])===AD[e])}}};BD.prototype.defined=!0;function VD(e,t,n){n&&(e[t]=n)}function HD(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new BD(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[OD(r)]=r,n[OD(a.attribute)]=r}return new ED(t,n,e.space)}var UD=HD({properties:{ariaActiveDescendant:null,ariaAtomic:ND,ariaAutoComplete:null,ariaBusy:ND,ariaChecked:ND,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:FD,ariaCurrent:null,ariaDescribedBy:FD,ariaDetails:null,ariaDisabled:ND,ariaDropEffect:FD,ariaErrorMessage:null,ariaExpanded:ND,ariaFlowTo:FD,ariaGrabbed:ND,ariaHasPopup:null,ariaHidden:ND,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:FD,ariaLevel:Z,ariaLive:null,ariaModal:ND,ariaMultiLine:ND,ariaMultiSelectable:ND,ariaOrientation:null,ariaOwns:FD,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:ND,ariaReadOnly:ND,ariaRelevant:null,ariaRequired:ND,ariaRoleDescription:FD,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:ND,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 WD(e,t){return t in e?e[t]:t}function GD(e,t){return WD(e,t.toLowerCase())}var _ee=HD({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:ID,acceptCharset:FD,accessKey:FD,action:null,allow:null,allowFullScreen:MD,allowPaymentRequest:MD,allowUserMedia:MD,alpha:MD,alt:null,as:null,async:MD,autoCapitalize:null,autoComplete:FD,autoFocus:MD,autoPlay:MD,blocking:FD,capture:null,charSet:null,checked:MD,cite:null,className:FD,closedBy:null,colorSpace:null,cols:Z,colSpan:Z,command:null,commandFor:null,content:null,contentEditable:ND,controls:MD,controlsList:FD,coords:Z|ID,crossOrigin:null,data:null,dateTime:null,decoding:null,default:MD,defer:MD,dir:null,dirName:null,disabled:MD,download:PD,draggable:ND,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:MD,formTarget:null,headers:FD,height:Z,hidden:PD,high:Z,href:null,hrefLang:null,htmlFor:FD,httpEquiv:FD,id:null,imageSizes:null,imageSrcSet:null,inert:MD,inputMode:null,integrity:null,is:null,isMap:MD,itemId:null,itemProp:FD,itemRef:FD,itemScope:MD,itemType:FD,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:MD,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:MD,muted:MD,name:null,nonce:null,noModule:MD,noValidate:MD,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:MD,optimum:Z,pattern:null,ping:FD,placeholder:null,playsInline:MD,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:MD,referrerPolicy:null,rel:FD,required:MD,reversed:MD,rows:Z,rowSpan:Z,sandbox:FD,scope:null,scoped:MD,seamless:MD,selected:MD,shadowRootClonable:MD,shadowRootCustomElementRegistry:MD,shadowRootDelegatesFocus:MD,shadowRootMode:null,shadowRootSerializable:MD,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:ND,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:MD,useMap:null,value:ND,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:FD,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:MD,declare:MD,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:MD,noHref:MD,noShade:MD,noWrap:MD,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:ND,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:MD,disablePictureInPicture:MD,disableRemotePlayback:MD,exportParts:ID,part:FD,prefix:null,property:null,results:Z,security:null,unselectable:null},space:`html`,transform:GD}),vee=HD({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:LD,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:FD,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:MD,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:ID,g2:ID,glyphName:ID,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:LD,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:FD,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:LD,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:LD,rev:LD,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:LD,requiredFeatures:LD,requiredFonts:LD,requiredFormats:LD,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:LD,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:LD,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:LD,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:WD}),KD=HD({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()}}),qD=HD({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:GD}),JD=HD({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),yee={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`},bee=/[A-Z]/g,YD=/-[a-z]/g,xee=/^data[-\w.:]+$/i;function See(e,t){let n=OD(t),r=t,i=kD;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&xee.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(YD,wee);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!YD.test(e)){let n=e.replace(bee,Cee);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=BD}return new i(r,t)}function Cee(e){return`-`+e.toLowerCase()}function wee(e){return e.charAt(1).toUpperCase()}var Tee=DD([UD,_ee,KD,qD,JD],`html`),XD=DD([UD,vee,KD,qD,JD],`svg`);function Eee(e){return e.join(` `).trim()}var Dee=n(((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(`
|
|
61
|
+
`);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})),Oee=n(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var i=r(Dee());function a(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=(0,i.default)(e),a=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:i}=e;a?t(r,i,e):i&&(n||={},n[r]=i)}),n}})),kee=n((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))}})),Aee=n(((e,t,n)=>{var r=(n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Oee()),i=kee();function a(e,t){var n={};return!e||typeof e!=`string`||(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,t.exports=a})),ZD=$D(`end`),QD=$D(`start`);function $D(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 jee(e){let t=QD(e),n=ZD(e);if(t&&n)return{start:t,end:n}}function eO(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?nO(e.position):`start`in e||`end`in e?nO(e):`line`in e||`column`in e?tO(e):``}function tO(e){return rO(e&&e.line)+`:`+rO(e&&e.column)}function nO(e){return tO(e&&e.start)+`-`+tO(e&&e.end)}function rO(e){return e&&typeof e==`number`?e:1}var iO=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=eO(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}};iO.prototype.file=``,iO.prototype.name=``,iO.prototype.reason=``,iO.prototype.message=``,iO.prototype.stack=``,iO.prototype.column=void 0,iO.prototype.line=void 0,iO.prototype.ancestors=void 0,iO.prototype.cause=void 0,iO.prototype.fatal=void 0,iO.prototype.place=void 0,iO.prototype.ruleId=void 0,iO.prototype.source=void 0;var aO=t(Aee(),1),oO={}.hasOwnProperty,sO=new Map,cO=/[A-Z]/g,lO=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),uO=new Set([`td`,`th`]),dO=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function fO(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=CO(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=SO(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`?XD:Tee,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=pO(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function pO(e,t,n){if(t.type===`element`)return mO(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return hO(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return _O(e,t,n);if(t.type===`mdxjsEsm`)return gO(e,t);if(t.type===`root`)return vO(e,t,n);if(t.type===`text`)return yO(e,t)}function mO(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=XD,e.schema=i),e.ancestors.push(t);let a=OO(e,t.tagName,!1),o=wO(e,t),s=TO(e,t);return lO.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!wD(e)})),bO(e,o,a,t),xO(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function hO(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)}kO(e,t.position)}function gO(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);kO(e,t.position)}function _O(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=XD,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:OO(e,t.name,!0),o=Mee(e,t),s=TO(e,t);return bO(e,o,a,t),xO(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function vO(e,t,n){let r={};return xO(r,TO(e,t)),e.create(t,e.Fragment,r,n)}function yO(e,t){return t.value}function bO(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function xO(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function SO(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 CO(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=QD(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 wO(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&oO.call(t.properties,i)){let a=EO(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&uO.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 Mee(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 kO(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 kO(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function TO(e,t){let n=[],r=-1,i=e.passKeys?new Map:sO;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=pO(e,a,o);s!==void 0&&n.push(s)}return n}function EO(e,t,n){let r=See(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?vD(n):Eee(n)),r.property===`style`){let t=typeof n==`object`?n:DO(e,String(n));return e.stylePropertyNameCase===`css`&&(t=AO(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?yee[r.property]||r.property:r.attribute,n]}}function DO(e,t){try{return(0,aO.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new iO("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=dO+`#cannot-parse-style-attribute`,r}}function OO(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=SD(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=SD(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return oO.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);kO(e)}function kO(e,t){let n=new iO("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=dO+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function AO(e){let t={},n;for(n in e)oO.call(e,n)&&(t[jO(n)]=e[n]);return t}function jO(e){let t=e.replace(cO,MO);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function MO(e){return`-`+e.toLowerCase()}var NO={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`]},PO={};function FO(e,t){let n=t||PO;return IO(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function IO(e,t,n){if(RO(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 LO(e.children,t,n)}return Array.isArray(e)?LO(e,t,n):``}function LO(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=IO(e[i],t,n);return r.join(``)}function RO(e){return!!(e&&typeof e==`object`)}var zO=document.createElement(`i`);function BO(e){let t=`&`+e+`;`;zO.innerHTML=t;let n=zO.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function VO(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 HO(e,t){return e.length>0?(VO(e,e.length,0,t),e):t}var UO={}.hasOwnProperty;function WO(e){let t={},n=-1;for(;++n<e.length;)GO(t,e[n]);return t}function GO(e,t){let n;for(n in t){let r=(UO.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){UO.call(r,a)||(r[a]=[]);let e=i[a];KO(r[a],Array.isArray(e)?e:e?[e]:[])}}}function KO(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);VO(e,0,0,r)}function qO(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 JO(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var YO=ak(/[A-Za-z]/),XO=ak(/[\dA-Za-z]/),ZO=ak(/[#-'*+\--9=?A-Z^-~]/);function QO(e){return e!==null&&(e<32||e===127)}var $O=ak(/\d/),Nee=ak(/[\dA-Fa-f]/),Pee=ak(/[!-/:-@[-`{-~]/);function ek(e){return e!==null&&e<-2}function tk(e){return e!==null&&(e<0||e===32)}function nk(e){return e===-2||e===-1||e===32}var rk=ak(/\p{P}|\p{S}/u),ik=ak(/\s/);function ak(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function ok(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&XO(e.charCodeAt(n+1))&&XO(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 sk(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return nk(r)?(e.enter(n),s(r)):t(r)}function s(r){return nk(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var ck={tokenize:lk};function lk(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`),sk(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 ek(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var uk={tokenize:fk},dk={tokenize:pk};function fk(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 VO(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(dk,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(dk,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 ek(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++;VO(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 pk(e,t,n){return sk(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function mk(e){if(e===null||tk(e)||ik(e))return 1;if(rk(e))return 2}function hk(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 gk={name:`attention`,resolveAll:_k,tokenize:vk};function _k(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};yk(d,-c),yk(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=HO(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=HO(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=HO(l,hk(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=HO(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=HO(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,VO(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 vk(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=mk(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=mk(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 yk(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var bk={name:`autolink`,tokenize:xk};function xk(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 YO(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||XO(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||XO(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||QO(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):ZO(t)?(e.consume(t),l):n(t)}function u(e){return XO(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||XO(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var Sk={partial:!0,tokenize:Ck};function Ck(e,t,n){return r;function r(t){return nk(t)?sk(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||ek(e)?t(e):n(e)}}var wk={continuation:{tokenize:Ek},exit:Dk,name:`blockQuote`,tokenize:Tk};function Tk(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 nk(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function Ek(e,t,n){let r=this;return i;function i(t){return nk(t)?sk(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(wk,t,n)(r)}}function Dk(e){e.exit(`blockQuote`)}var Ok={name:`characterEscape`,tokenize:kk};function kk(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 Pee(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var Ak={name:`characterReference`,tokenize:jk};function jk(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=XO,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=Nee,u):(e.enter(`characterReferenceValue`),a=7,o=$O,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===XO&&!BO(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 Mk={partial:!0,tokenize:Fk},Nk={concrete:!0,name:`codeFenced`,tokenize:Pk};function Pk(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`),nk(t)?sk(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||ek(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(Mk,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||ek(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):nk(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),sk(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||ek(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||ek(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&&nk(t)?sk(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||ek(t)?e.check(Mk,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||ek(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`),nk(t)?sk(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`),nk(t)?sk(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||ek(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function Fk(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 Ik={name:`codeIndented`,tokenize:Rk},Lk={partial:!0,tokenize:zk};function Rk(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),sk(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):ek(t)?e.attempt(Lk,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||ek(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function zk(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):ek(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):sk(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):ek(e)?i(e):n(e)}}var Bk={name:`codeText`,previous:Hk,resolve:Vk,tokenize:Uk};function Vk(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 Hk(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function Uk(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)):ek(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||ek(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 Wk=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&&Gk(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),Gk(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Gk(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);Gk(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);Gk(this.left,t.reverse())}}}};function Gk(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 Kk(e){let t={},n=-1,r,i,a,o,s,c,l,u=new Wk(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,qk(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 VO(e,0,1/0,u.slice(0)),!l}function qk(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 Jk={resolve:Xk,tokenize:Zk},Yk={partial:!0,tokenize:Qk};function Xk(e){return Kk(e),e}function Zk(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):ek(t)?e.check(Yk,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 Qk(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),sk(e,a,`linePrefix`)}function a(i){if(i===null||ek(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 $k(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||QO(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||ek(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||tk(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||QO(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 eA(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):ek(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||ek(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!nk(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function tA(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):ek(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),sk(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||ek(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 nA(e,t){let n;return r;function r(i){return ek(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):nk(i)?sk(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var rA={name:`definition`,tokenize:aA},iA={partial:!0,tokenize:oA};function aA(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return eA.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=JO(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 tk(t)?nA(e,l)(t):l(t)}function l(t){return $k(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(iA,d,d)(t)}function d(t){return nk(t)?sk(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||ek(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function oA(e,t,n){return r;function r(t){return tk(t)?nA(e,i)(t):n(t)}function i(t){return tA(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return nk(t)?sk(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||ek(e)?t(e):n(e)}}var sA={name:`hardBreakEscape`,tokenize:cA};function cA(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return ek(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var lA={name:`headingAtx`,resolve:uA,tokenize:dA};function uA(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`},VO(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function dA(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||tk(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||ek(n)?(e.exit(`atxHeading`),t(n)):nk(n)?sk(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||tk(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var fA=`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(`.`),pA=[`pre`,`script`,`style`,`textarea`],mA={concrete:!0,name:`htmlFlow`,resolveTo:_A,tokenize:vA},hA={partial:!0,tokenize:bA},gA={partial:!0,tokenize:yA};function _A(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 vA(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):YO(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):YO(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 YO(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||tk(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&pA.includes(l)?(i=1,r.interrupt?t(s):O(s)):fA.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||XO(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 nk(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||YO(t)?(e.consume(t),b):nk(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||XO(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):nk(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):nk(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||ek(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||tk(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||nk(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||ek(t)?O(t):nk(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):ek(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(hA,R,k)(t)):t===null||ek(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(gA,A,R)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||ek(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 pA.includes(n)?(e.consume(t),L):O(t)}return YO(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||ek(t)?(e.exit(`htmlFlowData`),R(t)):(e.consume(t),L)}function R(n){return e.exit(`htmlFlow`),t(n)}}function yA(e,t,n){let r=this;return i;function i(t){return ek(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 bA(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(Sk,t,n)}}var xA={name:`htmlText`,tokenize:SA};function SA(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):YO(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):YO(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):ek(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):ek(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):ek(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):ek(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return YO(t)?(e.consume(t),S):n(t)}function S(t){return t===45||XO(t)?(e.consume(t),S):C(t)}function C(t){return ek(t)?(o=C,N(t)):nk(t)?(e.consume(t),C):M(t)}function w(t){return t===45||XO(t)?(e.consume(t),w):t===47||t===62||tk(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||YO(t)?(e.consume(t),E):ek(t)?(o=T,N(t)):nk(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||XO(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):ek(t)?(o=D,N(t)):nk(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):ek(t)?(o=O,N(t)):nk(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):ek(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||tk(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||tk(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 nk(t)?sk(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 CA={name:`labelEnd`,resolveAll:DA,resolveTo:OA,tokenize:kA},wA={tokenize:AA},TA={tokenize:jA},EA={tokenize:MA};function DA(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&&VO(e,0,e.length,n),e}function OA(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=HO(s,e.slice(a+1,a+r+3)),s=HO(s,[[`enter`,u,t]]),s=HO(s,hk(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=HO(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=HO(s,e.slice(o+1)),s=HO(s,[[`exit`,c,t]]),VO(e,a,e.length,s),e}function kA(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(JO(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(wA,u,o?u:d)(t):t===91?e.attempt(TA,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(EA,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function AA(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 tk(t)?nA(e,a)(t):a(t)}function a(t){return t===41?u(t):$k(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return tk(t)?nA(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?tA(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return tk(t)?nA(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 jA(e,t,n){let r=this;return i;function i(t){return eA.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(JO(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function MA(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 NA={name:`labelStartImage`,resolveAll:CA.resolveAll,tokenize:PA};function PA(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 FA={name:`labelStartLink`,resolveAll:CA.resolveAll,tokenize:IA};function IA(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 LA={name:`lineEnding`,tokenize:RA};function RA(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),sk(e,t,`linePrefix`)}}var zA={name:`thematicBreak`,tokenize:BA};function BA(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||ek(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),nk(t)?sk(e,s,`whitespace`)(t):s(t))}}var VA={continuation:{tokenize:GA},exit:qA,name:`list`,tokenize:WA},HA={partial:!0,tokenize:JA},UA={partial:!0,tokenize:KA};function WA(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:$O(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(zA,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 $O(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(Sk,r.interrupt?n:u,e.attempt(HA,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return nk(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 GA(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(Sk,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,sk(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!nk(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(UA,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,sk(e,e.attempt(VA,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function KA(e,t,n){let r=this;return sk(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 qA(e){e.exit(this.containerState.type)}function JA(e,t,n){let r=this;return sk(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!nk(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var YA={name:`setextUnderline`,resolveTo:XA,tokenize:ZA};function XA(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 ZA(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`),nk(t)?sk(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||ek(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var QA={tokenize:$A};function $A(e){let t=this,n=e.attempt(Sk,r,e.attempt(this.parser.constructs.flowInitial,i,sk(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Jk,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 ej={resolveAll:ij()},tj=rj(`string`),nj=rj(`text`);function rj(e){return{resolveAll:ij(e===`text`?aj: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 ij(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 aj(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 oj=e({attentionMarkers:()=>mj,contentInitial:()=>cj,disable:()=>hj,document:()=>sj,flow:()=>uj,flowInitial:()=>lj,insideSpan:()=>pj,string:()=>dj,text:()=>fj}),sj={42:VA,43:VA,45:VA,48:VA,49:VA,50:VA,51:VA,52:VA,53:VA,54:VA,55:VA,56:VA,57:VA,62:wk},cj={91:rA},lj={[-2]:Ik,[-1]:Ik,32:Ik},uj={35:lA,42:zA,45:[YA,zA],60:mA,61:YA,95:zA,96:Nk,126:Nk},dj={38:Ak,92:Ok},fj={[-5]:LA,[-4]:LA,[-3]:LA,33:NA,38:Ak,42:gk,60:[bk,xA],91:FA,92:[sA,Ok],93:CA,95:gk,96:Bk},pj={null:[gk,ej]},mj={null:[42,95]},hj={null:[]};function gj(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=HO(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=hk(a,l.events,l),l.events):[]}function f(e,t){return vj(p(e),t)}function p(e){return _j(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){ek(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&&VO(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 _j(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 vj(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=`
|
|
62
62
|
`;break;case-3:o=`\r
|
|
63
|
-
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function yj(e){let t={constructs:WO([oj,...(e||{}).extensions||[]]),content:n(ck),defined:[],document:n(uk),flow:n(QA),lazy:{},string:n(tj),text:n(nj)};return t;function n(e){return n;function n(n){return gj(t,e,n)}}}function bj(e){for(;!Kk(e););return e}var xj=/[\0\t\n\r]/g;function Sj(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(xj.lastIndex=u,c=xj.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var Cj=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Fee(e){return e.replace(Cj,Iee)}function Iee(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return qO(n.slice(t?2:1),t?16:10)}return BO(n)||e}var wj={}.hasOwnProperty;function Tj(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),Lee(n)(bj(yj(n).document().write(Sj()(e,t,!0))))}function Lee(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(ue),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(ce),blockQuote:a(ae),characterEscape:T,characterReference:T,codeFenced:a(oe),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(oe,o),codeText:a(se,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(V),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(H),hardBreakEscape:a(le),hardBreakTrailing:a(le),htmlFlow:a(U,o),htmlFlowData:T,htmlText:a(U,o),htmlTextData:T,image:a(W),label:o,link:a(ue),listItem:a(fe),listItemValue:f,listOrdered:a(de,d),listUnordered:a(de),paragraph:a(pe),reference:z,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(ce),strong:a(me),thematicBreak:a(ge)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:ie,autolinkProtocol:re,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:ee,characterReferenceMarkerNumeric:ee,characterReferenceValue:te,characterReference:ne,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(j),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(k),htmlFlowData:E,htmlText:c(A),htmlTextData:E,image:c(N),label:F,labelText:P,lineEnding:D,link:c(M),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:B,resourceDestinationString:I,resourceTitleString:L,resource:R,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};Dj(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];wj.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||Oj).call(a,void 0,e[0])}for(r.position={start:Ej(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Ej(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Ej(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Oj).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+eO({start:e.start,end:e.end})+`): it’s not open`);n.position.end=Ej(e.end)}function u(){return FO(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=JO(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&n.type===`text`||(n=he(),n.position={start:Ej(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Ej(e.end)}function D(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=Ej(e.end),this.data.atHardBreak=void 0}else!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function O(){this.data.atHardBreak=!0}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function M(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function N(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Fee(t),n.identifier=JO(t).toLowerCase()}function F(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function I(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function L(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function R(){this.data.inReference=void 0}function z(){this.data.referenceType=`collapsed`}function B(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=JO(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function ee(e){this.data.characterReferenceType=e.type}function te(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=qO(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=BO(t);let i=this.stack[this.stack.length-1];i.value+=r}function ne(e){let t=this.stack.pop();t.position.end=Ej(e.end)}function re(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function ie(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function ae(){return{type:`blockquote`,children:[]}}function oe(){return{type:`code`,lang:null,meta:null,value:``}}function se(){return{type:`inlineCode`,value:``}}function V(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function H(){return{type:`emphasis`,children:[]}}function ce(){return{type:`heading`,depth:0,children:[]}}function le(){return{type:`break`}}function U(){return{type:`html`,value:``}}function W(){return{type:`image`,title:null,url:``,alt:null}}function ue(){return{type:`link`,title:null,url:``,children:[]}}function de(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function fe(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function pe(){return{type:`paragraph`,children:[]}}function me(){return{type:`strong`,children:[]}}function he(){return{type:`text`,value:``}}function ge(){return{type:`thematicBreak`}}}function Ej(e){return{line:e.line,column:e.column,offset:e.offset}}function Dj(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?Dj(e,r):Ree(e,r)}}function Ree(e,t){let n;for(n in t)if(wj.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function Oj(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+eO({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+eO({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+eO({start:t.start,end:t.end})+`) is still open`)}function zee(e){let t=this;t.parser=n;function n(n){return Tj(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function Bee(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Vee(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
63
|
+
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function yj(e){let t={constructs:WO([oj,...(e||{}).extensions||[]]),content:n(ck),defined:[],document:n(uk),flow:n(QA),lazy:{},string:n(tj),text:n(nj)};return t;function n(e){return n;function n(n){return gj(t,e,n)}}}function bj(e){for(;!Kk(e););return e}var xj=/[\0\t\n\r]/g;function Sj(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(xj.lastIndex=u,c=xj.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var Cj=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Fee(e){return e.replace(Cj,Iee)}function Iee(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return qO(n.slice(t?2:1),t?16:10)}return BO(n)||e}var wj={}.hasOwnProperty;function Tj(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),Lee(n)(bj(yj(n).document().write(Sj()(e,t,!0))))}function Lee(e){let t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:o(de),autolinkProtocol:E,autolinkEmail:E,atxHeading:o(le),blockQuote:o(oe),characterEscape:E,characterReference:E,codeFenced:o(se),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(se,s),codeText:o(V,s),codeTextData:E,data:E,codeFlowValue:E,definition:o(H),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(ce),hardBreakEscape:o(U),hardBreakTrailing:o(U),htmlFlow:o(W,s),htmlFlowData:E,htmlText:o(W,s),htmlTextData:E,image:o(ue),label:s,link:o(de),listItem:o(pe),listItemValue:p,listOrdered:o(fe,f),listUnordered:o(fe),paragraph:o(me),reference:B,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(le),strong:o(he),thematicBreak:o(_e)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:ae,autolinkProtocol:ie,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:te,characterReferenceMarkerNumeric:te,characterReferenceValue:ne,characterReference:re,codeFenced:l(_),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:h,codeFlowValue:D,codeIndented:l(v),codeText:l(M),codeTextData:D,data:D,definition:l(),definitionDestinationString:x,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(k),hardBreakTrailing:l(k),htmlFlow:l(A),htmlFlowData:D,htmlText:l(j),htmlTextData:D,image:l(P),label:I,labelText:F,lineEnding:O,link:l(N),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:ee,resourceDestinationString:L,resourceTitleString:R,resource:z,setextHeading:l(T),setextHeadingLineSequence:w,setextHeadingText:C,strong:l(),thematicBreak:l()}};Dj(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[],position:void 0},o={stack:[r],tokenStack:[],config:t,enter:c,exit:u,buffer:s,resume:d,data:n},l=[],f=[],p=-1;for(;++p<e.length;)f.push(e[p]),(e[p][1].type===`listOrdered`||e[p][1].type===`listUnordered`)&&(e[p][0]===`enter`?l.push(f.length-1):a(f,l.pop()));for(e=f,p=-1;++p<e.length;){let n=t[e[p][0]];e[p][0]===`enter`&&t.beforeEnter.length>0&&i(t.beforeEnter,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),wj.call(n,e[p][1].type)&&n[e[p][1].type].call({...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),e[p][0]===`exit`&&t.afterExit.length>0&&i(t.afterExit,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||Oj).call(o,void 0,e[0])}for(r.position={start:Ej(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Ej(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p<t.transforms.length;)r=t.transforms[p](r)||r;return r}function i(e,t,n){let r=-1;for(;++r<e.length;)e[r].call(t,n)}function a(e,t){let n=e.length-1,r=t-1,i=-1,a=!1,o,s,c,l,u=[];for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let n=r;for(s=void 0;n--;){let t=e[n];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=n}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),u.push({at:s||r,event:[`exit`,o,t[2]]})}if(t[1].type===`listItemPrefix`){let e={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=e,u.push({at:r,event:[`enter`,e,t[2]]}),c=void 0,l=!0}}}let d=e.splice(t),f=0;for(r=-1;++r<d.length;){for(;f<u.length&&u[f].at===t+r;)e.push(u[f++].event);e.push(d[r])}e[t][1]._spread=a}function o(e,t){return n;function n(n){c.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:`fragment`,children:[]})}function c(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Ej(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw Error("Cannot close `"+e.type+"` ("+eO({start:e.start,end:e.end})+`): it’s not open`);r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Oj).call(this,e,r[0])),n.position.end=Ej(e.end)}function d(){return FO(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function h(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function v(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function y(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=JO(this.sliceSerialize(e)).toLowerCase()}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function x(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function S(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function C(){this.data.setextHeadingSlurpLineEnding=!0}function w(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function T(){this.data.setextHeadingSlurpLineEnding=void 0}function E(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&n.type===`text`||(n=ge(),n.position={start:Ej(e.start),end:void 0},t.push(n)),this.stack.push(n)}function D(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Ej(e.end)}function O(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=Ej(e.end),this.data.atHardBreak=void 0}else!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(E.call(this,e),D.call(this,e))}function k(){this.data.atHardBreak=!0}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function M(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function N(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function F(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Fee(t),n.identifier=JO(t).toLowerCase()}function I(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function L(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function R(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function z(){this.data.inReference=void 0}function B(){this.data.referenceType=`collapsed`}function ee(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=JO(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function te(e){this.data.characterReferenceType=e.type}function ne(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=qO(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=BO(t);let i=this.stack[this.stack.length-1];i.value+=r}function re(e){let t=this.stack.pop();t.position.end=Ej(e.end)}function ie(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function ae(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function oe(){return{type:`blockquote`,children:[],position:void 0}}function se(){return{type:`code`,lang:null,meta:null,value:``,position:void 0}}function V(){return{type:`inlineCode`,value:``,position:void 0}}function H(){return{type:`definition`,identifier:``,label:null,title:null,url:``,position:void 0}}function ce(){return{type:`emphasis`,children:[],position:void 0}}function le(){return{type:`heading`,depth:0,children:[],position:void 0}}function U(){return{type:`break`,position:void 0}}function W(){return{type:`html`,value:``,position:void 0}}function ue(){return{type:`image`,title:null,url:``,alt:null,position:void 0}}function de(){return{type:`link`,title:null,url:``,children:[],position:void 0}}function fe(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[],position:void 0}}function pe(e){return{type:`listItem`,spread:e._spread,checked:null,children:[],position:void 0}}function me(){return{type:`paragraph`,children:[],position:void 0}}function he(){return{type:`strong`,children:[],position:void 0}}function ge(){return{type:`text`,value:``,position:void 0}}function _e(){return{type:`thematicBreak`,position:void 0}}}function Ej(e){return{line:e.line,column:e.column,offset:e.offset}}function Dj(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?Dj(e,r):Ree(e,r)}}function Ree(e,t){let n;for(n in t)if(wj.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`afterExit`:case`beforeEnter`:{let r=t[n];r&&e[n].push(r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function Oj(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+eO({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+eO({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+eO({start:t.start,end:t.end})+`) is still open`)}function zee(e){let t=this;t.parser=n;function n(n){return Tj(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function Bee(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Vee(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
64
64
|
`}]}function Hee(e,t){let n=t.value?t.value+`
|
|
65
65
|
`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function Uee(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Wee(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Gee(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=ok(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function Kee(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function qee(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function kj(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function Jee(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return kj(e,t);let i={src:ok(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Aj(e,t){let n={src:ok(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function jj(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Mj(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return kj(e,t);let i={href:ok(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Nj(e,t){let n={href:ok(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Pj(e,t,n){let r=e.all(t),i=n?Fj(n):Ij(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
66
66
|
`}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
@@ -70,7 +70,7 @@ Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}
|
|
|
70
70
|
`});++r<e.length;)r&&n.push({type:`text`,value:`
|
|
71
71
|
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
|
|
72
72
|
`}),n}function MM(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function NM(e,t){let n=DM(e,t),r=n.one(e,void 0),i=fM(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
|
|
73
|
-
`},i)),a}function PM(e,t){return e&&`run`in e?async function(n,r){let i=NM(n,{file:r,...t});await e.run(i,r)}:function(n,r){return NM(n,{file:r,...e||t})}}function FM(e){if(e)throw e}var IM=n(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function LM(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function RM(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a)r(a);else{for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?zM(s,i)(...o):r(null,...o)}}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function zM(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var BM={basename:VM,dirname:HM,extname:UM,join:WM,sep:`/`};function VM(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);qM(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function HM(e){if(qM(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function UM(e){qM(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function WM(...e){let t=-1,n;for(;++t<e.length;)qM(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:GM(n)}function GM(e){qM(e);let t=e.codePointAt(0)===47,n=KM(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function KM(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(i!==o-1&&a!==1){if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function qM(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var JM={cwd:YM};function YM(){return`/`}function XM(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function ZM(e){if(typeof e==`string`)e=new URL(e);else if(!XM(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return QM(e)}function QM(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var $M=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],eN=class{constructor(e){let t;t=e?XM(e)?{path:e}:typeof e==`string`||iN(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:JM.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<$M.length;){let e=$M[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)$M.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?BM.basename(this.path):void 0}set basename(e){nN(e,`basename`),tN(e,`basename`),this.path=BM.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?BM.dirname(this.path):void 0}set dirname(e){rN(this.basename,`dirname`),this.path=BM.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?BM.extname(this.path):void 0}set extname(e){if(tN(e,`extname`),rN(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=BM.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){XM(e)&&(e=ZM(e)),nN(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?BM.basename(this.path,this.extname):void 0}set stem(e){nN(e,`stem`),tN(e,`stem`),this.path=BM.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new iO(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function tN(e,t){if(e&&e.includes(BM.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+BM.sep+"`")}function nN(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function rN(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function iN(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var aN=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),oN=e(IM(),1),sN={}.hasOwnProperty,cN=new class e extends aN{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=RM()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,oN.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(dN(`data`,this.frozen),this.namespace[e]=t,this):sN.call(this.namespace,e)&&this.namespace[e]||void 0:e?(dN(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=mN(e),n=this.parser||this.Parser;return lN(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),lN(`process`,this.parser||this.Parser),uN(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=mN(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);gN(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),lN(`processSync`,this.parser||this.Parser),uN(`processSync`,this.compiler||this.Compiler),this.process(e,r),pN(`processSync`,`process`,t),n;function r(e,r){t=!0,FM(e),n=r}}run(e,t,n){fN(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=mN(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),pN(`runSync`,`run`,n),r;function i(e,t){FM(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=mN(t),r=this.compiler||this.Compiler;return uN(`stringify`,r),fN(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(dN(`use`,this.frozen),e!=null){if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`")}return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`){if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e)}else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,oN.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null){if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];LM(o)&&LM(r)&&(r=(0,oN.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function lN(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function uN(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function dN(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function fN(e){if(!LM(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function pN(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function mN(e){return hN(e)?e:new eN(e)}function hN(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function gN(e){return typeof e==`string`||_N(e)}function _N(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var vN=[],yN={allowDangerousHtml:!0},bN=/^(https?|ircs?|mailto|xmpp)$/i,xN=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function SN(e){let t=CN(e),n=wN(e);return TN(t.runSync(t.parse(n),n),e)}function CN(e){let t=e.rehypePlugins||vN,n=e.remarkPlugins||vN,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...yN}:yN;return cN().use(zee).use(n).use(PM,r).use(t)}function wN(e){let t=e.children||``,n=new eN;return typeof t==`string`?n.value=t:``+t,n}function TN(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||EN;for(let e of xN)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return wM(e,l),fO(e,{Fragment:G.Fragment,components:i,ignoreInvalidStyle:!0,jsx:G.jsx,jsxs:G.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in NO)if(Object.hasOwn(NO,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=NO[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function EN(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||bN.test(e.slice(0,t))?e:``}function DN(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function ON(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function kN(e,t,n){let r=pM((n||{}).ignore||[]),i=AN(t),a=-1;for(;++a<i.length;)SM(e,`text`,o);function o(e,t){let n=-1,i;for(;++n<t.length;){let e=t[n],a=i?i.children:void 0;if(r(e,a?a.indexOf(e):void 0,i))return;i=e}if(i)return s(e,t)}function s(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,c=n.children.indexOf(e),l=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if(typeof a==`string`&&(a=a.length>0?{type:`text`,value:a}:void 0),a===!1?r.lastIndex=n+1:(s!==n&&u.push({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,l=!0),!r.global)break;d=r.exec(e.value)}return l?(s<e.value.length&&u.push({type:`text`,value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length}}function AN(e){let t=[];if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([jN(e[0]),MN(e[1])])}return t}function jN(e){return typeof e==`string`?new RegExp(ON(e),`g`):e}function MN(e){return typeof e==`function`?e:function(){return e}}var NN=`phrasing`,PN=[`autolink`,`link`,`image`,`label`];function FN(){return{transforms:[UN],enter:{literalAutolink:LN,literalAutolinkEmail:RN,literalAutolinkHttp:RN,literalAutolinkWww:RN},exit:{literalAutolink:HN,literalAutolinkEmail:VN,literalAutolinkHttp:zN,literalAutolinkWww:BN}}}function IN(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:NN,notInConstruct:PN},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:NN,notInConstruct:PN},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:NN,notInConstruct:PN}]}}function LN(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function RN(e){this.config.enter.autolinkProtocol.call(this,e)}function zN(e){this.config.exit.autolinkProtocol.call(this,e)}function BN(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function VN(e){this.config.exit.autolinkEmail.call(this,e)}function HN(e){this.exit(e)}function UN(e){kN(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,WN],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,GN]],{ignore:[`link`,`linkReference`]})}function WN(e,t,n,r,i){let a=``;if(!JN(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!KN(n)))return!1;let o=qN(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function GN(e,t,n,r){return!JN(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function KN(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function qN(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=DN(e,`(`),a=DN(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function JN(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||ik(n)||rk(n))&&(!t||n!==47)}iP.peek=rP;function YN(){this.buffer()}function XN(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function ZN(){this.buffer()}function QN(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function $N(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=JO(this.sliceSerialize(e)).toLowerCase(),n.label=t}function eP(e){this.exit(e)}function tP(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=JO(this.sliceSerialize(e)).toLowerCase(),n.label=t}function nP(e){this.exit(e)}function rP(){return`[`}function iP(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function aP(){return{enter:{gfmFootnoteCallString:YN,gfmFootnoteCall:XN,gfmFootnoteDefinitionLabelString:ZN,gfmFootnoteDefinition:QN},exit:{gfmFootnoteCallString:$N,gfmFootnoteCall:eP,gfmFootnoteDefinitionLabelString:tP,gfmFootnoteDefinition:nP}}}function oP(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:iP},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
|
|
73
|
+
`},i)),a}function PM(e,t){return e&&`run`in e?async function(n,r){let i=NM(n,{file:r,...t});await e.run(i,r)}:function(n,r){return NM(n,{file:r,...e||t})}}function FM(e){if(e)throw e}var IM=n(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function LM(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function RM(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a)r(a);else{for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?zM(s,i)(...o):r(null,...o)}}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function zM(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var BM={basename:VM,dirname:HM,extname:UM,join:WM,sep:`/`};function VM(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);qM(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function HM(e){if(qM(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function UM(e){qM(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function WM(...e){let t=-1,n;for(;++t<e.length;)qM(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:GM(n)}function GM(e){qM(e);let t=e.codePointAt(0)===47,n=KM(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function KM(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(i!==o-1&&a!==1){if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function qM(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var JM={cwd:YM};function YM(){return`/`}function XM(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function ZM(e){if(typeof e==`string`)e=new URL(e);else if(!XM(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return QM(e)}function QM(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var $M=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],eN=class{constructor(e){let t;t=e?XM(e)?{path:e}:typeof e==`string`||iN(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:JM.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<$M.length;){let e=$M[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)$M.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?BM.basename(this.path):void 0}set basename(e){nN(e,`basename`),tN(e,`basename`),this.path=BM.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?BM.dirname(this.path):void 0}set dirname(e){rN(this.basename,`dirname`),this.path=BM.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?BM.extname(this.path):void 0}set extname(e){if(tN(e,`extname`),rN(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=BM.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){XM(e)&&(e=ZM(e)),nN(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?BM.basename(this.path,this.extname):void 0}set stem(e){nN(e,`stem`),tN(e,`stem`),this.path=BM.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new iO(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function tN(e,t){if(e&&e.includes(BM.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+BM.sep+"`")}function nN(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function rN(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function iN(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var aN=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),oN=t(IM(),1),sN={}.hasOwnProperty,cN=new class e extends aN{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=RM()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,oN.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(dN(`data`,this.frozen),this.namespace[e]=t,this):sN.call(this.namespace,e)&&this.namespace[e]||void 0:e?(dN(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=mN(e),n=this.parser||this.Parser;return lN(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),lN(`process`,this.parser||this.Parser),uN(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=mN(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);gN(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),lN(`processSync`,this.parser||this.Parser),uN(`processSync`,this.compiler||this.Compiler),this.process(e,r),pN(`processSync`,`process`,t),n;function r(e,r){t=!0,FM(e),n=r}}run(e,t,n){fN(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=mN(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),pN(`runSync`,`run`,n),r;function i(e,t){FM(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=mN(t),r=this.compiler||this.Compiler;return uN(`stringify`,r),fN(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(dN(`use`,this.frozen),e!=null){if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`")}return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`){if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e)}else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,oN.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null){if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];LM(o)&&LM(r)&&(r=(0,oN.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function lN(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function uN(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function dN(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function fN(e){if(!LM(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function pN(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function mN(e){return hN(e)?e:new eN(e)}function hN(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function gN(e){return typeof e==`string`||_N(e)}function _N(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var vN=[],yN={allowDangerousHtml:!0},bN=/^(https?|ircs?|mailto|xmpp)$/i,xN=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function SN(e){let t=CN(e),n=wN(e);return TN(t.runSync(t.parse(n),n),e)}function CN(e){let t=e.rehypePlugins||vN,n=e.remarkPlugins||vN,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...yN}:yN;return cN().use(zee).use(n).use(PM,r).use(t)}function wN(e){let t=e.children||``,n=new eN;return typeof t==`string`?n.value=t:``+t,n}function TN(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||EN;for(let e of xN)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return wM(e,l),fO(e,{Fragment:G.Fragment,components:i,ignoreInvalidStyle:!0,jsx:G.jsx,jsxs:G.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in NO)if(Object.hasOwn(NO,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=NO[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function EN(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||bN.test(e.slice(0,t))?e:``}function DN(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function ON(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function kN(e,t,n){let r=pM((n||{}).ignore||[]),i=AN(t),a=-1;for(;++a<i.length;)SM(e,`text`,o);function o(e,t){let n=-1,i;for(;++n<t.length;){let e=t[n],a=i?i.children:void 0;if(r(e,a?a.indexOf(e):void 0,i))return;i=e}if(i)return s(e,t)}function s(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,c=n.children.indexOf(e),l=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if(typeof a==`string`&&(a=a.length>0?{type:`text`,value:a}:void 0),a===!1?r.lastIndex=n+1:(s!==n&&u.push({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,l=!0),!r.global)break;d=r.exec(e.value)}return l?(s<e.value.length&&u.push({type:`text`,value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length}}function AN(e){let t=[];if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([jN(e[0]),MN(e[1])])}return t}function jN(e){return typeof e==`string`?new RegExp(ON(e),`g`):e}function MN(e){return typeof e==`function`?e:function(){return e}}var NN=`phrasing`,PN=[`autolink`,`link`,`image`,`label`];function FN(){return{transforms:[UN],enter:{literalAutolink:LN,literalAutolinkEmail:RN,literalAutolinkHttp:RN,literalAutolinkWww:RN},exit:{literalAutolink:HN,literalAutolinkEmail:VN,literalAutolinkHttp:zN,literalAutolinkWww:BN}}}function IN(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:NN,notInConstruct:PN},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:NN,notInConstruct:PN},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:NN,notInConstruct:PN}]}}function LN(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function RN(e){this.config.enter.autolinkProtocol.call(this,e)}function zN(e){this.config.exit.autolinkProtocol.call(this,e)}function BN(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function VN(e){this.config.exit.autolinkEmail.call(this,e)}function HN(e){this.exit(e)}function UN(e){kN(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,WN],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,GN]],{ignore:[`link`,`linkReference`]})}function WN(e,t,n,r,i){let a=``;if(!JN(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!KN(n)))return!1;let o=qN(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function GN(e,t,n,r){return!JN(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function KN(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function qN(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=DN(e,`(`),a=DN(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function JN(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||ik(n)||rk(n))&&(!t||n!==47)}iP.peek=rP;function YN(){this.buffer()}function XN(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function ZN(){this.buffer()}function QN(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function $N(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=JO(this.sliceSerialize(e)).toLowerCase(),n.label=t}function eP(e){this.exit(e)}function tP(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=JO(this.sliceSerialize(e)).toLowerCase(),n.label=t}function nP(e){this.exit(e)}function rP(){return`[`}function iP(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function aP(){return{enter:{gfmFootnoteCallString:YN,gfmFootnoteCall:XN,gfmFootnoteDefinitionLabelString:ZN,gfmFootnoteDefinition:QN},exit:{gfmFootnoteCallString:$N,gfmFootnoteCall:eP,gfmFootnoteDefinitionLabelString:tP,gfmFootnoteDefinition:nP}}}function oP(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:iP},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
|
|
74
74
|
`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?cP:sP))),s(),o}}function sP(e,t,n){return t===0?e:cP(e,t,n)}function cP(e,t,n){return(n?``:` `)+e}var lP=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];mP.peek=hP;function uP(){return{canContainEols:[`delete`],enter:{strikethrough:fP},exit:{strikethrough:pP}}}function dP(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:lP}],handlers:{delete:mP}}}function fP(e){this.enter({type:`delete`,children:[]},e)}function pP(e){this.exit(e)}function mP(e,t,n,r){let i=n.createTracker(r),a=n.enter(`strikethrough`),o=i.move(`~~`);return o+=n.containerPhrasing(e,{...i.current(),before:o,after:`~`}),o+=i.move(`~~`),a(),o}function hP(){return`~`}function gP(e){return e.length}function _P(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||gP,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=vP(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=yP(r[d]);else{let e=yP(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding===!1||n.alignDelimiters===!1&&i===``||n.delimiterStart===!1&&!d||r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
|
|
75
75
|
`)}function vP(e){return e==null?``:String(e)}function yP(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function bP(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),xP);return i(),o}function xP(e,t,n){return`>`+(n?``:` `)+e}function SP(e,t){return CP(e,t.inConstruct,!0)&&!CP(e,t.notInConstruct,!1)}function CP(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function wP(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
76
76
|
`&&SP(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?``:` `;return`\\
|
|
@@ -91,7 +91,7 @@ Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}
|
|
|
91
91
|
`)&&(e=e.slice(0,-1)),t.endsWith(`
|
|
92
92
|
`)&&(t=t.slice(0,-1))),super.equals(e,t,n)}};function gL(e,t,n){return hL.diff(e,t,n)}function _L(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
93
93
|
`));let n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let e=0;e<r.length;e++){let i=r[e];e%2&&!t.newlineIsToken?n[n.length-1]+=i:n.push(i)}return n}function vL(e){return e==`.`||e==`!`||e==`?`}new class extends $I{tokenize(e){let t=[],n=0;for(let r=0;r<e.length;r++){if(r==e.length-1){t.push(e.slice(n));break}if(vL(e[r])&&e[r+1].match(/\s/)){for(t.push(e.slice(n,r+1)),r=n=r+1;e[r+1]?.match(/\s/);)r++;t.push(e.slice(n,r+1)),n=r+1}}return t}},new class extends $I{tokenize(e){return e.split(/([{}:;,]|\s+)/)}},new class extends $I{constructor(){super(...arguments),this.tokenize=_L}get useLongestToken(){return!0}castInput(e,t){let{undefinedReplacement:n,stringifyReplacer:r=(e,t)=>t===void 0?n:t}=t;return typeof e==`string`?e:JSON.stringify(yL(e,null,null,r),null,` `)}equals(e,t,n){return super.equals(e.replace(/,([\r\n])/g,`$1`),t.replace(/,([\r\n])/g,`$1`),n)}};function yL(e,t,n,r,i){t||=[],n||=[],r&&(e=r(i===void 0?``:i,e));let a=0;for(;a<t.length;a+=1)if(t[a]===e)return n[a];let o;if(Object.prototype.toString.call(e)===`[object Array]`){for(t.push(e),o=Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=yL(e[a],t,n,r,String(a));return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),typeof e==`object`&&e){t.push(e),o={},n.push(o);let i=[],s;for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&i.push(s);for(i.sort(),a=0;a<i.length;a+=1)s=i[a],o[s]=yL(e[s],t,n,r,s);t.pop(),n.pop()}else o=e;return o}new class extends $I{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};var bL={diffPre:`_diffPre_1gs1p_1`,added:`_added_1gs1p_15`,removed:`_removed_1gs1p_20`,context:`_context_1gs1p_25`};function xL({oldContent:e,newContent:t}){let n=(0,_.useMemo)(()=>gL(e,t),[e,t]),r=(0,_.useMemo)(()=>{let e=0,t=0;for(let r of n){let n=(r.value.match(/\n/g)||[]).length;r.added&&(e+=n||1),r.removed&&(t+=n||1)}return{added:e,removed:t}},[n]);return(0,G.jsxs)(`div`,{children:[(0,G.jsxs)(Rl,{gap:`sm`,mb:`xs`,children:[(0,G.jsxs)(Y,{size:`xs`,c:`green`,fw:600,children:[`+`,r.added,` added`]}),(0,G.jsxs)(Y,{size:`xs`,c:`red`,fw:600,children:[`-`,r.removed,` removed`]})]}),(0,G.jsx)(`pre`,{className:bL.diffPre,children:n.map((e,t)=>{let n=e.added?bL.added:e.removed?bL.removed:bL.context;return(0,G.jsx)(`span`,{className:n,children:e.value},t)})})]})}function SL(){let{data:e}=ux({queryKey:[`config`,`review_workflow_enabled`],queryFn:()=>GE(`review_workflow_enabled`),staleTime:6e4,retry:1});return(e??``).trim().toLowerCase()===`true`}var CL={wrap:`_wrap_816rm_4`,backBtn:`_backBtn_816rm_10`,docHeader:`_docHeader_816rm_16`,docTitle:`_docTitle_816rm_23`,docMeta:`_docMeta_816rm_32`,reviewPill:`_reviewPill_816rm_40`,dot:`_dot_816rm_54`,trashBanner:`_trashBanner_816rm_61`,docSplit:`_docSplit_816rm_75`,docRail:`_docRail_816rm_81`,contentHead:`_contentHead_816rm_90`,contentScroll:`_contentScroll_816rm_99`,docSource:`_docSource_816rm_103`,mdBody:`_mdBody_816rm_112`,chunkList:`_chunkList_816rm_117`,chunkItem:`_chunkItem_816rm_123`,chunkHead:`_chunkHead_816rm_129`,chunkBody:`_chunkBody_816rm_136`,railTitle:`_railTitle_816rm_146`,toc:`_toc_816rm_159`,tocLink:`_tocLink_816rm_166`,tocLvl2:`_tocLvl2_816rm_188`,tocLvl3:`_tocLvl3_816rm_192`,metaDl:`_metaDl_816rm_198`,metaTags:`_metaTags_816rm_214`,metaTag:`_metaTag_816rm_214`,verList:`_verList_816rm_237`,verRow:`_verRow_816rm_242`,verRowActive:`_verRowActive_816rm_250`,verRowTop:`_verRowTop_816rm_254`,verLink:`_verLink_816rm_259`,verMeta:`_verMeta_816rm_268`,verLock:`_verLock_816rm_274`,versionBanner:`_versionBanner_816rm_280`,actList:`_actList_816rm_285`,actRow:`_actRow_816rm_292`,actDot:`_actDot_816rm_297`,actAgent:`_actAgent_816rm_304`};function wL(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/(^-|-$)/g,``)}function TL(e){return typeof e==`string`||typeof e==`number`?String(e):Array.isArray(e)?e.map(TL).join(``):e&&typeof e==`object`&&`props`in e?TL(e.props.children):``}function EL(e){let t=[],n=!1;for(let r of e.split(`
|
|
94
|
-
`)){if(r.startsWith("```")){n=!n;continue}if(n)continue;let e=r.match(/^(#{1,3})\s+(.+?)\s*#*$/);e&&t.push({level:e[1].length,text:e[2],id:wL(e[2])})}return t}function DL(e){switch(e){case`create`:return`var(--green)`;case`update-content`:return`var(--blue)`;case`update-metadata`:return`var(--blue)`;case`delete`:return`var(--red)`;case`status-change`:return`var(--yellow)`;case`archive`:return`var(--violet)`;case`unarchive`:return`var(--primary)`;default:return`var(--text-faint)`}}function OL(e){let t=(e??`manual`).toLowerCase();return t===`agent`?{icon:HT,label:`agent`,agent:!0}:t===`cli`?{icon:GT,label:`cli`,agent:!1}:t===`url`?{icon:wT,label:`url`,agent:!1}:{icon:FT,label:t,agent:!1}}var kL=[{format:`md`,label:`Markdown (.md)`,icon:IT},{format:`docx`,label:`Word (.docx)`,icon:TT},{format:`pdf`,label:`PDF (.pdf)`,icon:ET}];function AL({busy:e,onPick:t}){return(0,G.jsxs)(Bh,{position:`bottom-end`,withinPortal:!0,children:[(0,G.jsx)(Bh.Target,{children:(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnGhost}`,disabled:e,children:[e?(0,G.jsx)(bl,{size:12}):(0,G.jsx)(ST,{size:14}),`Download`,(0,G.jsx)(fT,{size:12})]})}),(0,G.jsx)(Bh.Dropdown,{children:kL.map(({format:e,label:n,icon:r})=>(0,G.jsx)(Bh.Item,{leftSection:(0,G.jsx)(r,{size:14}),onClick:()=>t(e),children:n},e))})]})}function jL(){let{id:e}=YS(),[t]=pw(),n=t.get(`version`),r=GS(),i=Xy(),a=SL(),[o,s]=(0,_.useState)(!1),[c,l]=(0,_.useState)(!1),[u,d]=(0,_.useState)(`rendered`),{data:f,isLoading:p,error:m}=ux({queryKey:[`document`,e,n],queryFn:()=>uD(e,n??void 0),enabled:!!e});LE(f?.doc_title??null);let{data:h,isLoading:g}=ux({queryKey:[`document-chunks`,e],queryFn:()=>dD(e),enabled:!!e}),{data:v}=ux({queryKey:[`document-audit`,e],queryFn:()=>gE({document_id:e,limit:50}),enabled:!!e}),{data:y}=RI(),b=new Map(y?.map(e=>[e.id,e.name])??[]),x=()=>MI(i,e),S=dx({mutationFn:()=>pD(e),onSuccess:()=>{x(),BI(`Document moved to trash`),r(`/`)},onError:e=>HI(`Delete failed`,String(e))}),C=dx({mutationFn:()=>XI(e),onSuccess:()=>{x(),BI(`Document restored`)},onError:e=>HI(`Restore failed`,String(e))}),w=dx({mutationFn:()=>ZI(e),onSuccess:()=>{x(),BI(`Document permanently deleted`),r(`/trash`)},onError:e=>HI(`Purge failed`,String(e))}),T=dx({mutationFn:t=>_E(e,t),onSuccess:(e,t)=>{x(),BI(`Review status updated`,t===`approved`?`Approved`:`Pending review`)},onError:e=>HI(`Status update failed`,String(e))}),[E,D]=(0,_.useState)(!1),O=(t,n=`md`)=>{D(!0),_D(e,t,n,f?.doc_title||`document`).catch(e=>VI(`Download failed`,e)).finally(()=>D(!1))},k=dx({mutationFn:({versionId:t,archived:n})=>vE(e,t,n),onSuccess:(t,{archived:n})=>{i.invalidateQueries({queryKey:[`document`,e]}),BI(n?`Version archived`:`Protection removed`)},onError:e=>HI(`Archive update failed`,String(e))}),[A,j]=(0,_.useState)(null),[M,N]=(0,_.useState)(null),[P,F]=(0,_.useState)(``),I=async(t,n)=>{j(t),F(`v${n}`);try{let n=await gD(e,t);N(n.full_content)}catch{HI(`Failed to load version content`),j(null)}},L=(0,_.useMemo)(()=>f?EL(f.full_content):[],[f]),R=(0,_.useMemo)(()=>({a:e=>(0,G.jsx)(kI,{...e,fromDocId:f?.document_id}),h1:({children:e})=>(0,G.jsx)(`h1`,{id:wL(TL(e)),children:e}),h2:({children:e})=>(0,G.jsx)(`h2`,{id:wL(TL(e)),children:e}),h3:({children:e})=>(0,G.jsx)(`h3`,{id:wL(TL(e)),children:e})}),[f?.document_id]),z=e=>{d(`rendered`),setTimeout(()=>{document.getElementById(e)?.scrollIntoView({behavior:`smooth`,block:`start`})},50)};if(p)return(0,G.jsx)(`div`,{className:CL.wrap,children:(0,G.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`,marginTop:60},children:(0,G.jsx)(bl,{})})});if(m||!f)return(0,G.jsx)(`div`,{className:CL.wrap,children:(0,G.jsx)(`p`,{style:{color:`var(--red)`,marginTop:40},children:m?String(m):`Document not found.`})});let B=Object.entries(f.doc_metadata||{}),ee=f.review_status!==`pending_review`,te=OL(f.doc_source),ne=te.icon,re=n?f.versions.find(e=>e.version_id===n):void 0,ie=!!re,ae=ie&&u===`chunks`?`rendered`:u;return(0,G.jsxs)(`div`,{className:CL.wrap,children:[(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle} ${CL.backBtn}`,onClick:()=>r(-1),children:[(0,G.jsx)(sT,{size:15}),`Back`]}),(0,G.jsxs)(`div`,{className:`${CL.docHeader} ${X.rise}`,children:[(0,G.jsxs)(`div`,{style:{minWidth:0,flex:1},children:[(0,G.jsx)(`p`,{className:X.eyebrow,children:`Document`}),(0,G.jsx)(`div`,{className:X.row,style:{gap:8,marginBottom:8,flexWrap:`wrap`},children:f.project_ids.filter(e=>b.has(e)).map(e=>(0,G.jsx)(`button`,{type:`button`,className:`${X.badge} ${X.bNeutral}`,style:{cursor:`pointer`,border:`1px solid transparent`},title:`View documents in ${b.get(e)}`,onClick:()=>r(`/projects/${e}/documents`),children:b.get(e)},e))}),(0,G.jsx)(`h1`,{className:CL.docTitle,children:f.doc_title||`Untitled`}),(0,G.jsxs)(`div`,{className:CL.docMeta,children:[(0,G.jsx)(vv,{label:`Origin — how this document was added`,openDelay:120,withArrow:!0,position:`top`,children:(0,G.jsxs)(`span`,{className:`${X.srcChip} ${te.agent?X.srcChipAgent:``}`,children:[(0,G.jsx)(ne,{size:12}),te.label]})}),(0,G.jsxs)(`span`,{className:`${X.mono} ${X.faint}`,children:[f.chunk_count,` chunks`]}),(0,G.jsxs)(`span`,{className:`${X.mono} ${X.faint}`,children:[f.total_chars.toLocaleString(),` chars`]}),f.updated_at&&(0,G.jsxs)(`span`,{className:`${X.mono} ${X.faint}`,children:[`updated `,kE(f.updated_at)]}),a&&!f.deleted_at&&!ie&&(0,G.jsxs)(`button`,{type:`button`,className:CL.reviewPill,title:`Click to toggle review status`,onClick:()=>T.mutate(ee?`pending_review`:`approved`),disabled:T.isPending,children:[(0,G.jsx)(`span`,{className:`dot`,style:{width:7,height:7,borderRadius:`50%`,background:ee?`var(--green)`:`var(--yellow)`}}),ee?`Approved`:`Pending`]})]})]}),(0,G.jsx)(`div`,{className:X.row,style:{gap:8,flexShrink:0},children:ie?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(AL,{busy:E,onPick:e=>O(re.version_id,e)}),(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnGhost} ${re.archived?X.btnWarn:``}`,title:re.archived?`Remove protection — this version becomes eligible for cleanup`:`Protect this version from automatic cleanup`,onClick:()=>k.mutate({versionId:re.version_id,archived:!re.archived}),disabled:k.isPending,children:[re.archived?(0,G.jsx)(NT,{size:14}):(0,G.jsx)(PT,{size:14}),re.archived?`Unprotect`:`Protect`]})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(AL,{busy:E,onPick:e=>O(void 0,e)}),f.deleted_at?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnGhost} ${X.btnWarn}`,title:`Restore from trash`,onClick:()=>C.mutate(),children:[(0,G.jsx)(oT,{size:14}),`Restore`]}),c?(0,G.jsxs)(`div`,{className:X.row,style:{gap:6},children:[(0,G.jsx)(`button`,{type:`button`,className:X.btn,style:{background:`var(--red)`,color:`#fff`},onClick:()=>w.mutate(),children:`Confirm purge`}),(0,G.jsx)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,onClick:()=>l(!1),children:`Cancel`})]}):(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnGhost} ${X.btnDanger}`,title:`Permanently delete (cannot be undone)`,onClick:()=>l(!0),children:[(0,G.jsx)(qT,{size:14}),`Purge`]})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnGhost}`,onClick:()=>r(`/document/${e}/edit`),children:[(0,G.jsx)(CT,{size:14}),`Edit`]}),o?(0,G.jsxs)(`div`,{className:X.row,style:{gap:6},children:[(0,G.jsx)(`button`,{type:`button`,className:X.btn,style:{background:`var(--red)`,color:`#fff`},onClick:()=>S.mutate(),children:`Confirm`}),(0,G.jsx)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,onClick:()=>s(!1),children:`Cancel`})]}):(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnGhost} ${X.btnDanger}`,title:`Delete document`,onClick:()=>s(!0),children:[(0,G.jsx)(qT,{size:14}),`Delete`]})]})]})})]}),ie&&(0,G.jsxs)(`div`,{className:`${CL.trashBanner} ${CL.versionBanner}`,children:[(0,G.jsxs)(`div`,{className:X.row,style:{gap:8},children:[(0,G.jsxs)(`span`,{className:`${X.badge} ${X.bBlue}`,children:[(0,G.jsx)(kT,{size:12}),`This is a previous version: v`,re.version_number]}),(0,G.jsxs)(`span`,{style:{fontSize:13},children:[`Read-only snapshot from `,new Date(re.created_at).toLocaleDateString(),`.`,re.archived?` Protected from cleanup.`:``]})]}),(0,G.jsx)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,onClick:()=>r(`/document/${e}`),children:`View current version`})]}),f.deleted_at&&(0,G.jsx)(`div`,{className:CL.trashBanner,children:(0,G.jsxs)(`div`,{className:X.row,style:{gap:8},children:[(0,G.jsx)(`span`,{className:`${X.badge} ${X.bNeutral}`,style:{background:`var(--red)`,color:`#fff`},children:`In trash`}),(0,G.jsxs)(`span`,{style:{fontSize:13},children:[`Deleted `,f.deleted_at.slice(0,10),` — excluded from search until restored. Use Restore or Purge above.`]})]})}),(0,G.jsxs)(`div`,{className:CL.docSplit,children:[(0,G.jsx)(`div`,{className:X.rise,style:{minWidth:0},children:(0,G.jsxs)(`div`,{className:X.card,children:[(0,G.jsxs)(`div`,{className:CL.contentHead,children:[(0,G.jsxs)(`div`,{className:X.seg,children:[(0,G.jsxs)(`button`,{type:`button`,className:`${X.segBtn} ${ae===`rendered`?X.segBtnOn:``}`,onClick:()=>d(`rendered`),children:[(0,G.jsx)(wT,{size:14}),`Rendered`]}),(0,G.jsxs)(`button`,{type:`button`,className:`${X.segBtn} ${ae===`source`?X.segBtnOn:``}`,onClick:()=>d(`source`),children:[(0,G.jsx)(GT,{size:14}),`Source`]}),!ie&&(0,G.jsxs)(`button`,{type:`button`,className:`${X.segBtn} ${ae===`chunks`?X.segBtnOn:``}`,onClick:()=>d(`chunks`),children:[(0,G.jsx)(UT,{size:14}),`Chunks`]})]}),(0,G.jsxs)(`span`,{className:`${X.mono} ${X.faint}`,style:{fontSize:12},children:[f.total_chars.toLocaleString(),` chars`]})]}),(0,G.jsx)(`div`,{className:X.divider}),(0,G.jsxs)(`div`,{className:CL.contentScroll,children:[ae===`rendered`&&(0,G.jsx)(`div`,{className:CL.mdBody,children:(0,G.jsx)(`div`,{className:AI.markdown,children:(0,G.jsx)(SN,{remarkPlugins:[EI],components:R,children:f.full_content||`*(empty)*`})})}),ae===`source`&&(0,G.jsx)(`pre`,{className:CL.docSource,children:f.full_content}),ae===`chunks`&&(0,G.jsx)(`div`,{className:CL.chunkList,children:g?(0,G.jsx)(`div`,{style:{padding:18},children:(0,G.jsx)(bl,{size:`sm`})}):h?.map((e,t)=>(0,G.jsxs)(`div`,{className:CL.chunkItem,children:[(0,G.jsxs)(`div`,{className:`${CL.chunkHead} ${X.mono}`,children:[(0,G.jsxs)(`span`,{className:`${X.badge} ${X.bNeutral}`,children:[`chunk `,t+1]}),(0,G.jsx)(`span`,{className:X.faint,children:e.heading_path.length>0?e.heading_path.join(` › `):`(preamble)`})]}),(0,G.jsx)(`p`,{className:CL.chunkBody,children:e.content})]},e.chunk_id))})]})]})}),(0,G.jsxs)(`aside`,{className:CL.docRail,children:[L.length>0&&(0,G.jsxs)(`div`,{className:`${X.card} ${X.cardPad} ${X.rise}`,children:[(0,G.jsx)(`div`,{className:CL.railTitle,children:`Contents`}),(0,G.jsx)(`div`,{className:CL.toc,children:L.map((e,t)=>(0,G.jsx)(`button`,{type:`button`,className:`${CL.tocLink} ${e.level===2?CL.tocLvl2:``} ${e.level===3?CL.tocLvl3:``}`,onClick:()=>z(e.id),children:e.text},t))})]}),(0,G.jsxs)(`div`,{className:`${X.card} ${X.cardPad} ${X.rise}`,children:[(0,G.jsx)(`div`,{className:CL.railTitle,children:`Details`}),(0,G.jsxs)(`dl`,{className:CL.metaDl,children:[f.created_at&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`dt`,{children:`Created`}),(0,G.jsx)(`dd`,{children:new Date(f.created_at).toLocaleDateString()})]}),f.updated_at&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`dt`,{children:`Updated`}),(0,G.jsx)(`dd`,{children:new Date(f.updated_at).toLocaleDateString()})]}),(0,G.jsx)(`dt`,{children:`Origin`}),(0,G.jsx)(`dd`,{className:X.mono,children:f.doc_source??`manual`})]}),B.length>0&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{className:X.divider,style:{margin:`12px 0`}}),(0,G.jsx)(`div`,{className:CL.railTitle,style:{marginBottom:8},children:`Metadata`}),(0,G.jsx)(`div`,{className:CL.metaTags,children:B.map(([e,t])=>(0,G.jsxs)(`span`,{className:CL.metaTag,children:[(0,G.jsxs)(`b`,{children:[e,`:`]}),String(t)]},e))})]})]}),f.versions.length>0&&(0,G.jsxs)(`div`,{className:`${X.card} ${X.cardPad} ${X.rise}`,children:[(0,G.jsxs)(`div`,{className:CL.railTitle,children:[`Versions `,(0,G.jsx)(`span`,{className:X.countPill,children:f.versions.length}),(0,G.jsxs)(fl,{width:240,position:`bottom-end`,withArrow:!0,shadow:`md`,children:[(0,G.jsx)(fl.Target,{children:(0,G.jsx)(`button`,{type:`button`,className:X.whatis,style:{marginLeft:`auto`},children:`what's protection?`})}),(0,G.jsx)(fl.Dropdown,{children:(0,G.jsx)(Y,{size:`xs`,c:`dimmed`,children:`Archived (protected) versions are kept indefinitely and excluded from automatic cleanup. Unprotected older versions may be pruned by retention. Toggle protection from a version's ⋯ menu.`})})]})]}),(0,G.jsx)(`div`,{className:CL.verList,children:f.versions.map(t=>{let i=t.version_id===n;return(0,G.jsxs)(`div`,{className:`${CL.verRow} ${i?CL.verRowActive:``}`,children:[(0,G.jsxs)(`div`,{className:CL.verRowTop,children:[(0,G.jsxs)(`button`,{type:`button`,className:`${X.badge} ${i?X.bPrimary:X.bNeutral} ${X.mono} ${CL.verLink}`,title:i?`Currently viewing this version`:`View version v${t.version_number}`,onClick:()=>r(`/document/${e}?version=${t.version_id}`),children:[`v`,t.version_number]}),(0,G.jsx)(`span`,{className:`${X.faint} ${X.mono}`,style:{fontSize:11},children:new Date(t.created_at).toLocaleDateString()}),t.archived&&(0,G.jsx)(`span`,{className:CL.verLock,title:`Archived — protected from cleanup`,children:(0,G.jsx)(PT,{size:12})}),(0,G.jsxs)(Bh,{position:`bottom-end`,withinPortal:!0,shadow:`md`,width:180,children:[(0,G.jsx)(Bh.Target,{children:(0,G.jsx)(`button`,{type:`button`,className:X.iconBtn,style:{width:26,height:26,marginLeft:`auto`},"aria-label":`Version actions`,children:(0,G.jsx)(xT,{size:14})})}),(0,G.jsxs)(Bh.Dropdown,{children:[(0,G.jsx)(Bh.Item,{leftSection:(0,G.jsx)(kT,{size:14}),onClick:()=>r(`/document/${e}?version=${t.version_id}`),children:`Open this version`}),(0,G.jsx)(Bh.Item,{leftSection:(0,G.jsx)(lT,{size:14}),onClick:()=>I(t.version_id,t.version_number),children:`Diff vs current`}),kL.map(({format:e,label:n,icon:r})=>(0,G.jsxs)(Bh.Item,{leftSection:(0,G.jsx)(r,{size:14}),onClick:()=>O(t.version_id,e),children:[`Download `,n]},e)),(0,G.jsx)(Bh.Item,{leftSection:(0,G.jsx)(PT,{size:14}),color:t.archived?`yellow`:void 0,onClick:()=>k.mutate({versionId:t.version_id,archived:!t.archived}),children:t.archived?`Remove protection`:`Archive (protect)`})]})]})]}),(0,G.jsxs)(`span`,{className:CL.verMeta,children:[t.chunk_count,` chunks · `,t.total_chars.toLocaleString(),` chars`]})]},t.version_id)})})]}),(0,G.jsxs)(`div`,{className:`${X.card} ${X.cardPad} ${X.rise}`,children:[(0,G.jsx)(`div`,{className:CL.railTitle,children:`Activity`}),v?.length?(0,G.jsx)(`div`,{className:CL.actList,children:v.map(e=>{let t=e.size_before!=null&&e.size_after!=null?e.size_after-e.size_before:0;return(0,G.jsxs)(`div`,{className:CL.actRow,children:[(0,G.jsx)(`span`,{className:CL.actDot,style:{background:DL(e.operation)}}),(0,G.jsxs)(`div`,{className:X.col,style:{gap:2,minWidth:0},children:[(0,G.jsx)(`span`,{style:{fontSize:12.5},children:e.description||e.operation}),(0,G.jsxs)(`span`,{className:X.faint,style:{fontSize:11},children:[(0,G.jsx)(`span`,{className:e.author_type===`agent`?CL.actAgent:``,children:e.author}),` `,`· `,new Date(e.created_at).toLocaleDateString(),t>0&&(0,G.jsxs)(`span`,{className:X.mono,style:{color:`var(--green)`},children:[` `,`+`,t.toLocaleString()]})]})]})]},e.id)})}):(0,G.jsx)(`span`,{className:X.faint,style:{fontSize:12},children:`No recorded activity.`})]})]})]}),(0,G.jsx)(ng,{opened:A!==null&&M!==null,onClose:()=>{j(null),N(null)},title:`Diff: ${P} vs current`,size:`xl`,children:M!==null&&(0,G.jsx)(xL,{oldContent:M,newContent:f.full_content,oldLabel:P,newLabel:`Current`})})]})}var ML={readme:`Project overview`,"agent-guide":`Agent integration`,guide:`Guides`},NL=[`readme`,`agent-guide`,`guide`],PL={readme:(0,G.jsx)(wT,{size:16}),"agent-guide":(0,G.jsx)(BT,{size:16}),guide:(0,G.jsx)(uT,{size:16})};function FL(e){let t=URL.createObjectURL(new Blob([e],{type:`text/plain;charset=utf-8`}));window.open(t,`_blank`,`noopener`),setTimeout(()=>URL.revokeObjectURL(t),6e4)}function IL(){let e=GS(),{"*":t}=YS(),n=ux({queryKey:[`docs`,`index`],queryFn:aE,staleTime:1/0}),r=(0,_.useMemo)(()=>n.data??[],[n.data]),[i,a]=(0,_.useState)(``),o=(0,_.useMemo)(()=>{let e=i.trim().toLowerCase();return e?r.filter(t=>t.title.toLowerCase().includes(e)||t.path.toLowerCase().includes(e)):r},[r,i]),s=t&&t.length>0?t:r[0]?.path,c=r.find(e=>e.path===s)?.title;LE(c?`Help: ${c}`:`Help`);let l=ux({queryKey:[`docs`,`content`,s],queryFn:()=>oE(s),staleTime:1/0,enabled:!!s}),u=(0,_.useMemo)(()=>{let e={};for(let t of o)(e[t.category]??=[]).push(t);return e},[o]);return n.isLoading?(0,G.jsx)(Em,{py:`xl`,children:(0,G.jsx)(bl,{})}):n.isError?(0,G.jsx)(Em,{py:`xl`,children:(0,G.jsx)(Wd,{color:`red`,title:`Could not load documentation`,children:n.error.message})}):r.length===0?(0,G.jsx)(Em,{py:`xl`,children:(0,G.jsxs)(Wd,{color:`yellow`,title:`No bundled docs available`,children:[`This Cerefox install did not ship with bundled documentation. Check that the wheel was built with the`,` `,(0,G.jsx)(`code`,{children:`[tool.hatch.build.targets.wheel.force-include]`}),` block intact, or run from a repo checkout.`]})}):(0,G.jsxs)(Em,{fluid:!0,py:`xs`,children:[(0,G.jsx)(`p`,{className:X.eyebrow,children:`Reference`}),(0,G.jsxs)(Bm,{gap:`md`,children:[(0,G.jsx)(Bm.Col,{span:{base:12,md:3},children:(0,G.jsxs)(Mv,{gap:2,children:[(0,G.jsx)(Gv,{order:5,mb:`xs`,children:`Help`}),(0,G.jsx)(Bv,{placeholder:`Filter guides…`,value:i,onChange:e=>a(e.currentTarget.value),leftSection:(0,G.jsx)(VT,{size:14}),size:`xs`,mb:`sm`}),o.length===0&&(0,G.jsxs)(Y,{size:`xs`,c:`dimmed`,children:[`No guides match "`,i,`".`]}),NL.filter(e=>u[e]?.length).map(t=>(0,G.jsxs)(Mv,{gap:0,mb:`sm`,children:[(0,G.jsxs)(Rl,{gap:6,mb:4,mt:6,children:[PL[t],(0,G.jsx)(Y,{size:`xs`,c:`dimmed`,tt:`uppercase`,fw:600,children:ML[t]??t})]}),u[t].map(t=>(0,G.jsx)(wg,{label:t.title,description:t.path,active:t.path===s,onClick:()=>e(`/help/${t.path}`)},t.path))]},t))]})}),(0,G.jsxs)(Bm.Col,{span:{base:12,md:9},children:[l.isLoading&&(0,G.jsx)(bl,{}),l.isError&&(0,G.jsx)(Wd,{color:`red`,title:`Could not load ${s}`,children:l.error.message}),l.data&&(0,G.jsxs)(Mv,{gap:`sm`,children:[(0,G.jsxs)(Rl,{justify:`space-between`,align:`flex-end`,wrap:`nowrap`,children:[(0,G.jsx)(Gv,{order:3,children:r.find(e=>e.path===s)?.title??s}),(0,G.jsxs)(Rl,{gap:`sm`,wrap:`nowrap`,children:[(0,G.jsx)(yE,{cmd:`cerefox guides show`,args:s}),(0,G.jsx)(Zd,{size:`xs`,c:`dimmed`,component:`button`,type:`button`,onClick:()=>FL(l.data),children:`raw`})]})]}),(0,G.jsx)(jI,{content:l.data,showToggle:!1,maxHeight:`calc(100vh - 170px)`})]})]})]})]})}var LL={wrap:`_wrap_1arvn_4`,split:`_split_1arvn_10`,col:`_col_1arvn_16`,field:`_field_1arvn_23`,input:`_input_1arvn_30`,textarea:`_textarea_1arvn_49`,preview:`_preview_1arvn_56`,dropZone:`_dropZone_1arvn_61`,dropZoneOver:`_dropZoneOver_1arvn_75`,dropZoneHas:`_dropZoneHas_1arvn_79`,dropIco:`_dropIco_1arvn_83`,toggleRow:`_toggleRow_1arvn_94`,toggle:`_toggle_1arvn_94`,toggleOn:`_toggleOn_1arvn_119`,steps:`_steps_1arvn_128`,faint:`_faint_1arvn_149`,stepN:`_stepN_1arvn_154`,actions:`_actions_1arvn_168`},RL=[`--primary`,`--violet`,`--blue`,`--green`,`--yellow`,`--red`];function zL(){LE(`Ingest`);let e=GS(),t=Xy(),{data:n}=RI(),{data:r}=zI(),i=(0,_.useRef)(null),[a,o]=(0,_.useState)(`paste`),[s,c]=(0,_.useState)(``),[l,u]=(0,_.useState)([]),[d,f]=(0,_.useState)(``),[p,m]=(0,_.useState)([]),[h,g]=(0,_.useState)(!1),[v,y]=(0,_.useState)(``),[b,x]=(0,_.useState)(`edit`),[S,C]=(0,_.useState)(null),[w,T]=(0,_.useState)(!1),[E,D]=(0,_.useState)(null),[O,k]=(0,_.useState)(null),A=()=>{let e={};for(let t of p)t.key.trim()&&t.value.trim()&&(e[t.key.trim()]=t.value.trim());return e},j=e=>{k(e),e.success&&MI(t),e.skipped&&e.note&&HI(`Ingest skipped`,e.note)},M=e=>{WI(e)||HI(`Ingest failed`,e instanceof Error?e.message:String(e))},N=dx({mutationFn:()=>mD({title:s,content:v,update_existing:h,...h?{last_write_wins:!0}:{},project_ids:l,metadata:A()}),onSuccess:j,onError:M}),P=dx({mutationFn:async()=>{if(!S)throw Error(`No file selected`);let e=new FormData;e.append(`file`,S),s.trim()&&e.append(`title`,s.trim()),e.append(`update_existing`,String(h)),h&&e.append(`last_write_wins`,`true`),l.length>0&&e.append(`project_ids`,l.join(`,`));let t=A();Object.keys(t).length>0&&e.append(`metadata`,JSON.stringify(t));let n=await Gw(`/ingest/file`,{method:`POST`,body:e});if(!n.ok)throw await Qw(n)||Error(await $w(n));return n.json()},onSuccess:j,onError:M}),F=async e=>{if(C(e),D(null),e?.name)try{let t=await hD(e.name);D(t),t.exists&&g(!0)}catch{}},I=e=>u(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),L=()=>a===`file`?P.mutate():N.mutate(),R=N.isPending||P.isPending,z=a===`file`?!!S:s.trim().length>0&&v.trim().length>0,B=a===`paste`?Math.round(v.length/700):S?Math.round(S.size/700):0,ee=n?.find(e=>e.id===l[0])?.name??`core-platform`,te=n??[],ne=d?te.filter(e=>e.name.toLowerCase().includes(d.toLowerCase())):te;return(0,G.jsxs)(`div`,{className:LL.wrap,children:[(0,G.jsx)(`div`,{className:X.pageHead,children:(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`p`,{className:X.eyebrow,children:`Add to memory`}),(0,G.jsx)(`h1`,{className:X.pageTitle,"data-testid":`page-title`,children:`Ingest content`})]})}),O?.success&&(0,G.jsxs)(Wd,{icon:(0,G.jsx)(dT,{size:16}),title:O.updated?`Updated`:`Ingested`,color:`green`,mb:`md`,withCloseButton:!0,onClose:()=>k(null),children:[O.updated?`"${O.title}" updated and re-indexed.`:`"${O.title}" ingested successfully.`,` `,O.document_id&&(0,G.jsx)(`span`,{style:{cursor:`pointer`,textDecoration:`underline`,color:`var(--primary)`},onClick:()=>e(`/document/${O.document_id}`),children:`View document`})]}),O?.skipped&&!O.note&&(0,G.jsxs)(Wd,{icon:(0,G.jsx)(dT,{size:16}),title:`Already in memory`,color:`blue`,mb:`md`,withCloseButton:!0,onClose:()=>k(null),"data-testid":`ingest-skipped`,children:[`"${O.title}" already has exactly this content, so nothing was written.`,` `,O.document_id&&(0,G.jsx)(`span`,{style:{cursor:`pointer`,textDecoration:`underline`,color:`var(--primary)`},onClick:()=>e(`/document/${O.document_id}`),children:`View document`})]}),O&&!O.success&&O.error&&(0,G.jsx)(Wd,{icon:(0,G.jsx)(YT,{size:16}),title:`Error`,color:`red`,mb:`md`,withCloseButton:!0,onClose:()=>k(null),children:O.error}),(0,G.jsxs)(`div`,{className:X.seg,style:{marginBottom:20},children:[(0,G.jsxs)(`button`,{type:`button`,className:`${X.segBtn} ${a===`paste`?X.segBtnOn:``}`,onClick:()=>o(`paste`),children:[(0,G.jsx)(wT,{size:14}),`Paste content`]}),(0,G.jsxs)(`button`,{type:`button`,className:`${X.segBtn} ${a===`file`?X.segBtnOn:``}`,onClick:()=>o(`file`),children:[(0,G.jsx)(JT,{size:14}),`Upload file`]})]}),(0,G.jsxs)(`form`,{className:LL.split,onSubmit:e=>{e.preventDefault(),z&&L()},children:[(0,G.jsxs)(`div`,{className:LL.col,children:[(0,G.jsxs)(`div`,{className:LL.field,children:[(0,G.jsxs)(`label`,{children:[`Title`,a===`file`&&(0,G.jsx)(`span`,{className:X.faint,children:` (optional — defaults to filename)`})]}),(0,G.jsx)(`input`,{className:LL.input,value:s,onChange:e=>c(e.currentTarget.value),placeholder:`Document title`})]}),te.length>0&&(0,G.jsxs)(`div`,{className:LL.field,children:[(0,G.jsx)(`label`,{children:`Projects`}),te.length>8&&(0,G.jsxs)(`div`,{className:X.selectWrap,style:{width:`100%`,marginBottom:8,height:34},children:[(0,G.jsx)(VT,{size:14}),(0,G.jsx)(`input`,{className:X.selectEl,style:{maxWidth:`none`,flex:1},placeholder:`Filter ${te.length} projects…`,value:d,onChange:e=>f(e.currentTarget.value)})]}),(0,G.jsxs)(`div`,{className:X.row,style:{gap:7,flexWrap:`wrap`},children:[ne.map(e=>{let t=te.indexOf(e);return(0,G.jsxs)(`button`,{type:`button`,className:`${X.chip} ${l.includes(e.id)?X.chipOn:``}`,onClick:()=>I(e.id),children:[(0,G.jsx)(`span`,{style:{width:7,height:7,borderRadius:`50%`,background:`var(${RL[t%RL.length]})`}}),e.name]},e.id)}),ne.length===0&&(0,G.jsxs)(`span`,{className:X.faint,style:{fontSize:12.5},children:[`No projects match "`,d,`".`]})]})]}),(0,G.jsxs)(`div`,{className:LL.field,children:[(0,G.jsxs)(`label`,{children:[`Metadata `,(0,G.jsx)(`span`,{className:X.faint,children:`(optional)`})]}),(0,G.jsx)(`datalist`,{id:`cerefox-meta-keys`,children:r?.map(e=>(0,G.jsx)(`option`,{value:e.key},e.key))}),(0,G.jsxs)(`div`,{className:X.col,style:{gap:8},children:[p.map((e,t)=>(0,G.jsxs)(`div`,{className:X.row,style:{gap:8},children:[(0,G.jsx)(`input`,{className:LL.input,style:{flex:1},list:`cerefox-meta-keys`,placeholder:`key`,value:e.key,onChange:e=>{let n=e.currentTarget.value;m(e=>e.map((e,r)=>r===t?{...e,key:n}:e))}}),(0,G.jsx)(`input`,{className:LL.input,style:{flex:1},placeholder:`value`,value:e.value,onChange:e=>{let n=e.currentTarget.value;m(e=>e.map((e,r)=>r===t?{...e,value:n}:e))}}),(0,G.jsx)(`button`,{type:`button`,className:X.iconBtn,"aria-label":`Remove`,onClick:()=>m(e=>e.filter((e,n)=>n!==t)),children:(0,G.jsx)(YT,{size:15})})]},t)),(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,style:{alignSelf:`flex-start`},onClick:()=>m(e=>[...e,{key:``,value:``}]),children:[(0,G.jsx)(zT,{size:14}),`Add field`]})]})]}),a===`file`?(0,G.jsxs)(`div`,{className:LL.field,children:[(0,G.jsx)(`label`,{children:`File`}),(0,G.jsx)(`input`,{ref:i,type:`file`,accept:`.md,.txt,.docx`,style:{display:`none`},onChange:e=>F(e.currentTarget.files?.[0]??null)}),(0,G.jsxs)(`div`,{className:`${LL.dropZone} ${w?LL.dropZoneOver:``} ${S?LL.dropZoneHas:``}`,onClick:()=>i.current?.click(),onDragOver:e=>{e.preventDefault(),T(!0)},onDragLeave:()=>T(!1),onDrop:e=>{e.preventDefault(),T(!1);let t=e.dataTransfer.files?.[0];t&&F(t)},children:[(0,G.jsx)(`span`,{className:LL.dropIco,children:(0,G.jsx)(JT,{size:20})}),S?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{className:X.mono,style:{fontWeight:600,fontSize:14,marginTop:10},children:S.name}),(0,G.jsx)(`span`,{className:X.faint,style:{fontSize:12.5},children:`Ready to ingest · click to replace`})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{style:{fontWeight:600,fontSize:14,marginTop:10},children:`Drop a file or click to browse`}),(0,G.jsx)(`span`,{className:X.faint,style:{fontSize:12.5},children:`.md · .txt · .docx`})]})]}),E?.exists&&(0,G.jsxs)(Wd,{color:`blue`,variant:`light`,mt:`sm`,children:[`A document named "`,E.title,`" already exists (updated`,` `,E.updated_at?new Date(E.updated_at).toLocaleDateString():`unknown`,`). Enable "Update existing" to overwrite it.`]})]}):(0,G.jsxs)(`div`,{className:LL.field,children:[(0,G.jsxs)(`div`,{className:X.row,style:{justifyContent:`space-between`,marginBottom:8},children:[(0,G.jsx)(`label`,{style:{margin:0},children:`Content`}),(0,G.jsxs)(`div`,{className:X.seg,style:{padding:2},children:[(0,G.jsx)(`button`,{type:`button`,className:`${X.segBtn} ${b===`edit`?X.segBtnOn:``}`,style:{padding:`4px 10px`},onClick:()=>x(`edit`),children:`Edit`}),(0,G.jsx)(`button`,{type:`button`,className:`${X.segBtn} ${b===`preview`?X.segBtnOn:``}`,style:{padding:`4px 10px`},onClick:()=>x(`preview`),children:`Preview`})]})]}),b===`edit`?(0,G.jsx)(`textarea`,{className:`${LL.input} ${LL.textarea}`,value:v,onChange:e=>y(e.currentTarget.value),placeholder:`# Paste your Markdown here…`}):(0,G.jsx)(`div`,{className:`${X.card} ${X.cardPad} ${LL.preview}`,children:v.trim()?(0,G.jsx)(jI,{content:v,defaultView:`rendered`,maxHeight:400,showToggle:!1}):(0,G.jsx)(`span`,{className:X.faint,children:`Nothing to preview yet.`})})]}),(0,G.jsxs)(`div`,{className:LL.actions,children:[(0,G.jsxs)(`button`,{type:`submit`,className:`${X.btn} ${X.btnPrimary}`,disabled:!z||R,children:[(0,G.jsx)(dT,{size:16}),a===`file`?`Upload & ingest`:`Ingest`]}),(0,G.jsxs)(`label`,{className:LL.toggleRow,children:[(0,G.jsx)(`button`,{type:`button`,className:`${LL.toggle} ${h?LL.toggleOn:``}`,role:`switch`,"aria-checked":h,onClick:()=>g(e=>!e),children:(0,G.jsx)(`span`,{})}),(0,G.jsx)(`span`,{style:{fontSize:13},children:`Update existing if title matches (replaces its content)`})]})]})]}),(0,G.jsxs)(`aside`,{className:LL.col,children:[(0,G.jsxs)(`div`,{className:`${X.card} ${X.cardPad} ${X.rise}`,children:[(0,G.jsx)(`div`,{className:X.mono,style:{fontSize:10.5,letterSpacing:`0.1em`,textTransform:`uppercase`,color:`var(--text-faint)`,marginBottom:12},children:`Pipeline`}),(0,G.jsxs)(`ol`,{className:LL.steps,children:[(0,G.jsxs)(`li`,{children:[(0,G.jsx)(`span`,{className:LL.stepN,children:`1`}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`b`,{children:`Chunked`}),(0,G.jsxs)(`span`,{className:`faint`,children:[`Split on headings into ~`,B||`—`,` semantic chunks.`]})]})]}),(0,G.jsxs)(`li`,{children:[(0,G.jsx)(`span`,{className:LL.stepN,children:`2`}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`b`,{children:`Embedded`}),(0,G.jsx)(`span`,{className:`faint`,children:`Each chunk vectorized for semantic search.`})]})]}),(0,G.jsxs)(`li`,{children:[(0,G.jsx)(`span`,{className:LL.stepN,children:`3`}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`b`,{children:`Staged`}),(0,G.jsx)(`span`,{className:`faint`,children:`Indexed and discoverable by your agents.`})]})]})]})]}),(0,G.jsx)(JE,{title:`CLI equivalent`,commands:[{cmd:`cerefox document ingest`,args:`./${S?.name??`doc.md`} --project-name ${ee}`}]})]})]})]})}function BL(){let{id:e}=YS(),t=GS(),{data:n}=RI(),r=n?.find(t=>t.id===e);LE(r?.name??null);let i=new Map(n?.map(e=>[e.id,e.name])??[]),[a,o]=(0,_.useState)(1),[s,c]=wE(),l=(a-1)*s,{data:u,isLoading:d,isFetching:f}=ux({queryKey:[`project-documents`,e,a,s],queryFn:()=>Uw(`/projects/${e}/documents?limit=${s}&offset=${l}`),enabled:!!e,placeholderData:bb}),p=u?.documents??[],m=u?.total??0,h=Math.max(1,Math.ceil(m/s));return(0,G.jsxs)(`div`,{className:TE.wrap,children:[(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,style:{marginBottom:12,paddingLeft:6},onClick:()=>t(`/projects`),children:[(0,G.jsx)(sT,{size:15}),`Projects`]}),(0,G.jsxs)(`div`,{className:X.pageHead,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`p`,{className:X.eyebrow,children:`Memory space`}),(0,G.jsx)(`h1`,{className:X.pageTitle,children:r?.name||`Project`}),r?.description&&(0,G.jsx)(`p`,{className:X.pageSub,children:r.description})]}),(0,G.jsx)(yE,{cmd:`cerefox document list`,args:`--project "${r?.name??`<name>`}"`})]}),d?(0,G.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`,marginTop:40},children:(0,G.jsx)(bl,{})}):m===0?(0,G.jsx)(`div`,{className:`${X.card} ${TE.emptyRow}`,children:`No documents in this project.`}):(0,G.jsxs)(`div`,{className:`${X.card} ${X.rise}`,style:{overflow:`hidden`},children:[(0,G.jsxs)(`table`,{className:TE.tbl,children:[(0,G.jsx)(`thead`,{children:(0,G.jsxs)(`tr`,{children:[(0,G.jsx)(`th`,{children:`Document`}),(0,G.jsx)(`th`,{style:{width:90,textAlign:`right`},children:`Chunks`}),(0,G.jsx)(`th`,{style:{width:110,textAlign:`right`},children:`Size`}),(0,G.jsx)(`th`,{style:{width:120,textAlign:`right`},children:`Updated`})]})}),(0,G.jsx)(`tbody`,{children:p.map(n=>{let r=n.review_status===`pending_review`;return(0,G.jsxs)(`tr`,{style:{cursor:`pointer`},onClick:()=>t(`/document/${n.id}`),children:[(0,G.jsx)(`td`,{children:(0,G.jsxs)(`span`,{style:{display:`inline-flex`,alignItems:`center`,gap:8,flexWrap:`wrap`},children:[(0,G.jsx)(`span`,{className:X.link,style:{fontSize:13.5},children:n.title||`Untitled`}),n.project_ids.filter(t=>t!==e&&i.has(t)).map(e=>(0,G.jsx)(`span`,{className:`${X.badge} ${X.bNeutral}`,children:i.get(e)},e)),r&&(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:`${X.mono} ${X.dim}`,style:{textAlign:`right`},children:n.chunk_count}),(0,G.jsx)(`td`,{className:`${X.mono} ${X.dim}`,style:{textAlign:`right`},children:n.total_chars.toLocaleString()}),(0,G.jsx)(`td`,{className:`${X.faint}`,style:{textAlign:`right`},children:OE(n.updated_at)})]},n.id)})})]}),(0,G.jsx)(EE,{page:a,pageCount:h,total:m,pageSize:s,onPage:o,onPageSize:e=>{c(e),o(1)},loading:f&&!d})]})]})}var VL=[`--primary`,`--violet`,`--blue`,`--green`,`--yellow`,`--red`];function HL(){LE(`Projects`);let e=GS(),t=Xy(),{data:n,isLoading:r}=RI(),{data:i}=ux({queryKey:[`dashboard`],queryFn:()=>YE()}),a=i?.project_doc_counts??{},o=i?.project_deleted_doc_counts??{},s=Math.max(1,...Object.values(a)),c=new Map((n??[]).map((e,t)=>[e.id,VL[t%VL.length]])),[l,u]=(0,_.useState)(``),[d,f]=(0,_.useState)(!1),[p,m]=(0,_.useState)(``),[h,g]=(0,_.useState)(``),[v,y]=(0,_.useState)(null),[b,x]=(0,_.useState)(``),[S,C]=(0,_.useState)(``),[w,T]=(0,_.useState)(null),E=dx({mutationFn:()=>FI(p.trim(),h.trim()),onSuccess:()=>{t.invalidateQueries({queryKey:[`projects`]}),BI(`Project created`),m(``),g(``),f(!1)},onError:e=>HI(`Create failed`,String(e))}),D=dx({mutationFn:()=>II(v,b.trim(),S.trim()),onSuccess:()=>{t.invalidateQueries({queryKey:[`projects`]}),BI(`Project updated`),y(null)},onError:e=>HI(`Update failed`,String(e))}),O=dx({mutationFn:e=>LI(e),onSuccess:()=>{t.invalidateQueries({queryKey:[`projects`]}),t.invalidateQueries({queryKey:[`dashboard`]}),BI(`Project deleted`),T(null)},onError:e=>{e instanceof zw&&e.status===404?(t.invalidateQueries({queryKey:[`projects`]}),t.invalidateQueries({queryKey:[`dashboard`]}),T(null)):HI(`Delete failed`,String(e))}});return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(DE,{eyebrow:`Memory spaces`,title:`Projects`,subtitle:`Scoped collections your agents read from and write to.`,headerRight:(0,G.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,alignItems:`flex-end`,gap:8,width:400,maxWidth:`100%`},children:[(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnPrimary}`,style:{alignSelf:`flex-end`},onClick:()=>f(!0),children:[(0,G.jsx)(zT,{size:16}),`New project`]}),(0,G.jsx)(JE,{title:`CLI equivalent`,commands:[{cmd:`cerefox project list`},{cmd:`cerefox project create`,args:`<name>`}]})]}),searchValue:l,onSearchChange:u,searchPlaceholder:`Filter projects…`,searchText:e=>`${e.name} ${e.description??``}`,columns:[{key:`name`,label:`Project`,render:e=>(0,G.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:11},children:[(0,G.jsx)(`span`,{style:{width:9,height:9,borderRadius:`50%`,flexShrink:0,background:`var(${c.get(e.id)??`--border`})`}}),(0,G.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:2,minWidth:0},children:[(0,G.jsx)(`span`,{className:X.mono,style:{fontWeight:600,fontSize:13},children:e.name}),e.description&&(0,G.jsx)(`span`,{className:X.faint,style:{fontSize:12},children:e.description})]})]})},{key:`docs`,label:`Documents`,width:180,render:e=>{let t=a[e.id]??0;return(0,G.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:10},children:[(0,G.jsx)(`span`,{className:X.mono,style:{fontSize:13},children:t}),(0,G.jsx)(`span`,{style:{flex:1,maxWidth:90,height:5,borderRadius:3,background:`var(--surface-2)`,overflow:`hidden`},children:(0,G.jsx)(`span`,{style:{display:`block`,height:`100%`,width:`${t/s*100}%`,background:`var(${c.get(e.id)??`--border`})`}})})]})}},{key:`trash`,label:`In trash`,width:90,align:`right`,render:e=>{let t=o[e.id]??0;return t>0?(0,G.jsx)(`span`,{className:`${X.mono} ${X.faint}`,style:{fontSize:12},children:t}):(0,G.jsx)(`span`,{className:`${X.mono} ${X.faint}`,style:{fontSize:12},children:`—`})}}],rows:n??[],rowKey:e=>e.id,rowClick:t=>e(`/projects/${t.id}/documents`),loading:r,emptyText:`No projects yet. Create one to get started.`,actions:e=>w===e.id?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,style:{color:`var(--red)`},disabled:O.isPending,onClick:()=>O.mutate(e.id),children:`Delete`}),(0,G.jsx)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,onClick:()=>T(null),children:`Cancel`})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`button`,{type:`button`,className:X.iconBtnSm,title:`Edit`,onClick:()=>{y(e.id),x(e.name),C(e.description||``)},children:(0,G.jsx)(CT,{size:14})}),(0,G.jsx)(`button`,{type:`button`,className:`${X.iconBtnSm} ${X.iconBtnDanger}`,title:`Delete`,onClick:()=>T(e.id),children:(0,G.jsx)(qT,{size:14})})]})}),(0,G.jsx)(ng,{opened:d,onClose:()=>f(!1),title:`New project`,children:(0,G.jsx)(`form`,{onSubmit:e=>{e.preventDefault(),p.trim()&&E.mutate()},children:(0,G.jsxs)(Mv,{gap:`sm`,children:[(0,G.jsx)(Bv,{label:`Name`,value:p,onChange:e=>m(e.currentTarget.value),required:!0,placeholder:`Project name`,"data-autofocus":!0}),(0,G.jsx)(Bv,{label:`Description`,value:h,onChange:e=>g(e.currentTarget.value),placeholder:`Optional description`}),(0,G.jsx)(dm,{type:`submit`,loading:E.isPending,children:`Create`})]})})}),(0,G.jsx)(ng,{opened:v!==null,onClose:()=>y(null),title:`Edit project`,children:(0,G.jsx)(`form`,{onSubmit:e=>{e.preventDefault(),D.mutate()},children:(0,G.jsxs)(Mv,{gap:`sm`,children:[(0,G.jsx)(Bv,{label:`Name`,value:b,onChange:e=>x(e.currentTarget.value),required:!0}),(0,G.jsx)(Bv,{label:`Description`,value:S,onChange:e=>C(e.currentTarget.value)}),(0,G.jsxs)(Rl,{gap:`sm`,children:[(0,G.jsx)(dm,{type:`submit`,loading:D.isPending,children:`Save`}),(0,G.jsx)(dm,{variant:`subtle`,onClick:()=>y(null),children:`Cancel`})]})]})})})]})}var UL=[`remote-mcp`,`local-mcp`,`cli`,`webapp`,`edge-function`,`api`],WL=sR(),GL=e=>nR(e,WL),KL=sR();GL.write=e=>nR(e,KL);var qL=sR();GL.onStart=e=>nR(e,qL);var JL=sR();GL.onFrame=e=>nR(e,JL);var YL=sR();GL.onFinish=e=>nR(e,YL);var XL=[];GL.setTimeout=(e,t)=>{let n=GL.now()+t,r=()=>{let e=XL.findIndex(e=>e.cancel==r);~e&&XL.splice(e,1),eR-=+!!~e},i={time:n,handler:e,cancel:r};return XL.splice(ZL(n),0,i),eR+=1,rR(),i};var ZL=e=>~(~XL.findIndex(t=>t.time>e)||~XL.length);GL.cancel=e=>{qL.delete(e),JL.delete(e),WL.delete(e),KL.delete(e),YL.delete(e)},GL.sync=e=>{tR=!0,GL.batchedUpdates(e),tR=!1},GL.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,GL.onStart(n)}return r.handler=e,r.cancel=()=>{qL.delete(n),t=null},r};var QL=typeof window<`u`?window.requestAnimationFrame:()=>{};GL.use=e=>QL=e,GL.now=typeof performance<`u`?()=>performance.now():Date.now,GL.batchedUpdates=e=>e(),GL.catch=console.error,GL.frameLoop=`always`,GL.advance=()=>{GL.frameLoop===`demand`?oR():console.warn(`Cannot call the manual advancement of rafz whilst frameLoop is not set as demand`)};var $L=-1,eR=0,tR=!1;function nR(e,t){tR?(t.delete(e),e(0)):(t.add(e),rR())}function rR(){$L<0&&($L=0,GL.frameLoop!==`demand`&&QL(aR))}function iR(){$L=-1}function aR(){~$L&&(QL(aR),GL.batchedUpdates(oR))}function oR(){let e=$L;$L=GL.now();let t=ZL($L);t&&(cR(XL.splice(0,t),e=>e.handler()),eR-=t),qL.flush(),WL.flush(e?Math.min(64,$L-e):16.667),JL.flush(),KL.flush(),YL.flush(),eR||iR()}function sR(){let e=new Set,t=e;return{add(n){eR+=+(t==e&&!e.has(n)),e.add(n)},delete(n){return eR-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,eR-=t.size,cR(t,t=>t(n)&&e.add(t)),eR+=e.size,t=e)}}}function cR(e,t){e.forEach(e=>{try{t(e)}catch(e){GL.catch(e)}})}function lR(){}var uR=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Q={arr:Array.isArray,obj:e=>!!e&&e.constructor.name===`Object`,fun:e=>typeof e==`function`,str:e=>typeof e==`string`,num:e=>typeof e==`number`,und:e=>e===void 0};function dR(e,t){if(Q.arr(e)){if(!Q.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var fR=(e,t)=>e.forEach(t);function pR(e,t,n){if(Q.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(let r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var mR=e=>Q.und(e)?[]:Q.arr(e)?e:[e];function hR(e,t){if(e.size){let n=Array.from(e);e.clear(),fR(n,t)}}var gR=(e,...t)=>hR(e,e=>e(...t)),_R=()=>typeof window>`u`||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),vR,yR,bR=null,xR=!1,SR=lR,CR=Object.freeze({__proto__:null,get createStringInterpolator(){return vR},get to(){return yR},get colors(){return bR},get skipAnimation(){return xR},get willAdvance(){return SR},assign:e=>{e.to&&(yR=e.to),e.now&&(GL.now=e.now),e.colors!==void 0&&(bR=e.colors),e.skipAnimation!=null&&(xR=e.skipAnimation),e.createStringInterpolator&&(vR=e.createStringInterpolator),e.requestAnimationFrame&&GL.use(e.requestAnimationFrame),e.batchedUpdates&&(GL.batchedUpdates=e.batchedUpdates),e.willAdvance&&(SR=e.willAdvance),e.frameLoop&&(GL.frameLoop=e.frameLoop)}}),wR=new Set,TR=[],ER=[],DR=0,OR={get idle(){return!wR.size&&!TR.length},start(e){DR>e.priority?(wR.add(e),GL.onStart(kR)):(AR(e),GL(MR))},advance:MR,sort(e){if(DR)GL.onFrame(()=>OR.sort(e));else{let t=TR.indexOf(e);~t&&(TR.splice(t,1),jR(e))}},clear(){TR=[],wR.clear()}};function kR(){wR.forEach(AR),wR.clear(),GL(MR)}function AR(e){TR.includes(e)||jR(e)}function jR(e){TR.splice(NR(TR,t=>t.priority>e.priority),0,e)}function MR(e){let t=ER;for(let n=0;n<TR.length;n++){let r=TR[n];DR=r.priority,r.idle||(SR(r),r.advance(e),r.idle||t.push(r))}return DR=0,ER=TR,ER.length=0,TR=t,TR.length>0}function NR(e,t){let n=e.findIndex(t);return n<0?e.length:n}var PR={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},FR=`[-+]?\\d*\\.?\\d+`,IR=FR+`%`;function LR(...e){return`\\(\\s*(`+e.join(`)\\s*,\\s*(`)+`)\\s*\\)`}var Yee=RegExp(`rgb`+LR(FR,FR,FR)),Xee=RegExp(`rgba`+LR(FR,FR,FR,FR)),Zee=RegExp(`hsl`+LR(FR,IR,IR)),Qee=RegExp(`hsla`+LR(FR,IR,IR,FR)),$ee=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ete=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,tte=/^#([0-9a-fA-F]{6})$/,nte=/^#([0-9a-fA-F]{8})$/;function rte(e){let t;return typeof e==`number`?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=tte.exec(e))?parseInt(t[1]+`ff`,16)>>>0:bR&&bR[e]!==void 0?bR[e]:(t=Yee.exec(e))?(BR(t[1])<<24|BR(t[2])<<16|BR(t[3])<<8|255)>>>0:(t=Xee.exec(e))?(BR(t[1])<<24|BR(t[2])<<16|BR(t[3])<<8|HR(t[4]))>>>0:(t=$ee.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+`ff`,16)>>>0:(t=nte.exec(e))?parseInt(t[1],16)>>>0:(t=ete.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Zee.exec(e))?(zR(VR(t[1]),UR(t[2]),UR(t[3]))|255)>>>0:(t=Qee.exec(e))?(zR(VR(t[1]),UR(t[2]),UR(t[3]))|HR(t[4]))>>>0:null}function RR(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function zR(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=RR(i,r,e+1/3),o=RR(i,r,e),s=RR(i,r,e-1/3);return Math.round(a*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function BR(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function VR(e){return(parseFloat(e)%360+360)%360/360}function HR(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function UR(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function WR(e){let t=rte(e);return t===null?e:(t||=0,`rgba(${(t&4278190080)>>>24}, ${(t&16711680)>>>16}, ${(t&65280)>>>8}, ${(t&255)/255})`)}var GR=(e,t,n)=>{if(Q.fun(e))return e;if(Q.arr(e))return GR({range:e,output:t,extrapolate:n});if(Q.str(e.output[0]))return vR(e);let r=e,i=r.output,a=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||`extend`,s=r.extrapolateRight||r.extrapolate||`extend`,c=r.easing||(e=>e);return e=>{let t=ate(e,a);return ite(e,a[t],a[t+1],i[t],i[t+1],c,o,s,r.map)}};function ite(e,t,n,r,i,a,o,s,c){let l=c?c(e):e;if(l<t){if(o===`identity`)return l;o===`clamp`&&(l=t)}if(l>n){if(s===`identity`)return l;s===`clamp`&&(l=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t),l=a(l),r===-1/0?l=-l:i===1/0?l+=r:l=l*(i-r)+r,l)}function ate(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}function KR(){return KR=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KR.apply(this,arguments)}var qR=Symbol.for(`FluidValue.get`),JR=Symbol.for(`FluidValue.observers`),YR=e=>!!(e&&e[qR]),XR=e=>e&&e[qR]?e[qR]():e,ZR=e=>e[JR]||null;function ote(e,t){e.eventObserved?e.eventObserved(t):e(t)}function QR(e,t){let n=e[JR];n&&n.forEach(e=>{ote(e,t)})}var $R=class{constructor(e){if(this[qR]=void 0,this[JR]=void 0,!e&&!(e=this.get))throw Error(`Unknown getter`);ste(this,e)}},ste=(e,t)=>nz(e,qR,t);function ez(e,t){if(e[qR]){let n=e[JR];n||nz(e,JR,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function tz(e,t){let n=e[JR];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[JR]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var nz=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),rz=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,cte=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,iz=RegExp(`(${rz.source})(%|[a-z]+)`,`i`),lte=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,az=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,oz=e=>{let[t,n]=ute(e);if(!t||_R())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);return r?r.trim():n&&n.startsWith(`--`)?window.getComputedStyle(document.documentElement).getPropertyValue(n)||e:n&&az.test(n)?oz(n):n||e},ute=e=>{let t=az.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},sz,dte=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,cz=e=>{sz||=bR?RegExp(`(${Object.keys(bR).join(`|`)})(?!\\w)`,`g`):/^\b$/;let t=e.output.map(e=>XR(e).replace(az,oz).replace(cte,WR).replace(sz,WR)),n=t.map(e=>e.match(rz).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error(`The arity of each "output" value must be equal`);return e[t]})).map(t=>GR(KR({},e,{output:t})));return e=>{let n=!iz.test(t[0])&&t.find(e=>iz.test(e))?.replace(rz,``),i=0;return t[0].replace(rz,()=>`${r[i++](e)}${n||``}`).replace(lte,dte)}},lz=`react-spring: `,uz=e=>{let t=e,n=!1;if(typeof t!=`function`)throw TypeError(`${lz}once requires a function parameter`);return(...e)=>{n||=(t(...e),!0)}},fte=uz(console.warn);function pte(){fte(`${lz}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var dz=uz(console.warn);function fz(){dz(`${lz}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function pz(e){return Q.str(e)&&(e[0]==`#`||/\d/.test(e)||!_R()&&az.test(e)||e in(bR||{}))}var mz=typeof window<`u`&&window.document&&window.document.createElement?_.useLayoutEffect:_.useEffect,hz=()=>{let e=(0,_.useRef)(!1);return mz(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function gz(){let e=(0,_.useState)()[1],t=hz();return()=>{t.current&&e(Math.random())}}function _z(e,t){let[n]=(0,_.useState)(()=>({inputs:t,result:e()})),r=(0,_.useRef)(),i=r.current,a=i;return a?t&&a.inputs&&vz(t,a.inputs)||(a={inputs:t,result:e()}):a=n,(0,_.useEffect)(()=>{r.current=a,i==n&&(n.inputs=n.result=void 0)},[a]),a.result}function vz(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var yz=e=>(0,_.useEffect)(e,bz),bz=[];function xz(e){let t=(0,_.useRef)();return(0,_.useEffect)(()=>{t.current=e}),t.current}var Sz=Symbol.for(`Animated:node`),Cz=e=>!!e&&e[Sz]===e,wz=e=>e&&e[Sz],Tz=(e,t)=>uR(e,Sz,t),Ez=e=>e&&e[Sz]&&e[Sz].getPayload(),Dz=class{constructor(){this.payload=void 0,Tz(this,this)}getPayload(){return this.payload||[]}},Oz=class e extends Dz{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,Q.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new e(t)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Q.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,Q.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},kz=class e extends Oz{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=GR({output:[e,e]})}static create(t){return new e(t)}getValue(){return this._string??=this._toString(this._value)}setValue(e){if(Q.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=GR({output:[this.getValue(),e]})),this._value=0,super.reset()}},Az={dependencies:null},jz=class extends Dz{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return pR(this.source,(n,r)=>{Cz(n)?t[r]=n.getValue(e):YR(n)?t[r]=XR(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&fR(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return pR(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Az.dependencies&&YR(e)&&Az.dependencies.add(e);let t=Ez(e);t&&fR(t,e=>this.add(e))}},Mz=class e extends jz{constructor(e){super(e)}static create(t){return new e(t)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(Nz)),!0)}};function Nz(e){return(pz(e)?kz:Oz).create(e)}function Pz(e){let t=wz(e);return t?t.constructor:Q.arr(e)?Mz:pz(e)?kz:Oz}function Fz(){return Fz=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fz.apply(this,arguments)}var Iz=(e,t)=>{let n=!Q.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,_.forwardRef)((r,i)=>{let a=(0,_.useRef)(null),o=n&&(0,_.useCallback)(e=>{a.current=zz(i,e)},[i]),[s,c]=Rz(r,t),l=gz(),u=()=>{let e=a.current;(!n||e)&&(e?t.applyAnimatedValues(e,s.getValue(!0)):!1)===!1&&l()},d=new Lz(u,c),f=(0,_.useRef)();mz(()=>(f.current=d,fR(c,e=>ez(e,d)),()=>{f.current&&(fR(f.current.deps,e=>tz(e,f.current)),GL.cancel(f.current.update))})),(0,_.useEffect)(u,[]),yz(()=>()=>{let e=f.current;fR(e.deps,t=>tz(t,e))});let p=t.getComponentProps(s.getValue());return _.createElement(e,Fz({},p,{ref:o}))})},Lz=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type==`change`&&GL.write(this.update)}};function Rz(e,t){let n=new Set;return Az.dependencies=n,e.style&&(e=Fz({},e,{style:t.createAnimatedStyle(e.style)})),e=new jz(e),Az.dependencies=null,[e,n]}function zz(e,t){return e&&(Q.fun(e)?e(t):e.current=t),t}var Bz=Symbol.for(`AnimatedComponent`),Vz=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new jz(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=e=>{let t=Hz(e)||`Anonymous`;return e=Q.str(e)?a[e]||(a[e]=Iz(e,i)):e[Bz]||(e[Bz]=Iz(e,i)),e.displayName=`Animated(${t})`,e};return pR(e,(t,n)=>{Q.arr(e)&&(n=Hz(t)),a[n]=a(t)}),{animated:a}},Hz=e=>Q.str(e)?e:e&&Q.str(e.displayName)?e.displayName:Q.fun(e)&&e.name||null;function Uz(){return Uz=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uz.apply(this,arguments)}function Wz(e,...t){return Q.fun(e)?e(...t):e}var Gz=(e,t)=>e===!0||!!(t&&e&&(Q.fun(e)?e(t):mR(e).includes(t))),Kz=(e,t)=>Q.obj(e)?t&&e[t]:e,qz=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Jz=e=>e,Yz=(e,t=Jz)=>{let n=Xz;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));let r={};for(let i of n){let n=t(e[i],i);Q.und(n)||(r[i]=n)}return r},Xz=[`config`,`onProps`,`onStart`,`onChange`,`onPause`,`onResume`,`onRest`],Zz={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Qz(e){let t={},n=0;if(pR(e,(e,r)=>{Zz[r]||(t[r]=e,n++)}),n)return t}function $z(e){let t=Qz(e);if(t){let n={to:t};return pR(e,(e,r)=>r in t||(n[r]=e)),n}return Uz({},e)}function eB(e){return e=XR(e),Q.arr(e)?e.map(eB):pz(e)?CR.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function tB(e){for(let t in e)return!0;return!1}function nB(e){return Q.fun(e)||Q.arr(e)&&Q.obj(e[0])}function rB(e,t){var n;(n=e.ref)==null||n.delete(e),t?.delete(e)}function iB(e,t){if(t&&e.ref!==t){var n;(n=e.ref)==null||n.delete(e),t.add(e),e.ref=t}}var aB={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},oB=1.70158,sB=oB*1.525,cB=2.70158,lB=2*Math.PI/3,uB=2*Math.PI/4.5,dB=e=>{let t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},fB={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-(-2*e+2)**2/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-(1-e)**3,easeInOutCubic:e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-(1-e)**4,easeInOutQuart:e=>e<.5?8*e*e*e*e:1-(-2*e+2)**4/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-(1-e)**5,easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-(-2*e+2)**5/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:2**(10*e-10),easeOutExpo:e=>e===1?1:1-2**(-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?2**(20*e-10)/2:(2-2**(-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-e**2),easeOutCirc:e=>Math.sqrt(1-(e-1)**2),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-(2*e)**2))/2:(Math.sqrt(1-(-2*e+2)**2)+1)/2,easeInBack:e=>cB*e*e*e-oB*e*e,easeOutBack:e=>1+cB*(e-1)**3+oB*(e-1)**2,easeInOutBack:e=>e<.5?(2*e)**2*(7.189819*e-sB)/2:((2*e-2)**2*(3.5949095*(e*2-2)+sB)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-(2**(10*e-10))*Math.sin((e*10-10.75)*lB),easeOutElastic:e=>e===0?0:e===1?1:2**(-10*e)*Math.sin((e*10-.75)*lB)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(2**(20*e-10)*Math.sin((20*e-11.125)*uB))/2:2**(-20*e+10)*Math.sin((20*e-11.125)*uB)/2+1,easeInBounce:e=>1-dB(1-e),easeOutBounce:dB,easeInOutBounce:e=>e<.5?(1-dB(1-2*e))/2:(1+dB(2*e-1))/2},pB=Uz({},aB.default,{mass:1,damping:1,easing:fB.linear,clamp:!1}),mB=class{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,pB)}};function hB(e,t,n){n&&(n=Uz({},n),gB(n,t),t=Uz({},n,t)),gB(e,t),Object.assign(e,t);for(let t in pB)e[t]??(e[t]=pB[t]);let{mass:r,frequency:i,damping:a}=e;return Q.und(i)||(i<.01&&(i=.01),a<0&&(a=0),e.tension=(2*Math.PI/i)**2*r,e.friction=4*Math.PI*a*r/i),e}function gB(e,t){if(!Q.und(t.decay))e.duration=void 0;else{let n=!Q.und(t.tension)||!Q.und(t.friction);!n&&Q.und(t.frequency)&&Q.und(t.damping)&&Q.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var _B=[],vB=class{constructor(){this.changed=!1,this.values=_B,this.toValues=null,this.fromValues=_B,this.to=void 0,this.from=void 0,this.config=new mB,this.immediate=!1}};function yB(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,s)=>{let c,l,u=Gz(n.cancel??r?.cancel,t);if(u)p();else{Q.und(n.pause)||(i.paused=Gz(n.pause,t));let e=r?.pause;e!==!0&&(e=i.paused||Gz(e,t)),c=Wz(n.delay||0,t),e?(i.resumeQueue.add(f),a.pause()):(a.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(l),l.cancel(),c=l.time-GL.now()}function f(){c>0&&!CR.skipAnimation?(i.delayed=!0,l=GL.setTimeout(p,c),i.pauseQueue.add(d),i.timeouts.add(l)):p()}function p(){i.delayed&&=!1,i.pauseQueue.delete(d),i.timeouts.delete(l),e<=(i.cancelId||0)&&(u=!0);try{a.start(Uz({},n,{callId:e,cancel:u}),o)}catch(e){s(e)}}})}var bB=(e,t)=>t.length==1?t[0]:t.some(e=>e.cancelled)?CB(e.get()):t.every(e=>e.noop)?xB(e.get()):SB(e.get(),t.every(e=>e.finished)),xB=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),SB=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),CB=e=>({value:e,cancelled:!0,finished:!1});function wB(e,t,n,r){let{callId:i,parentId:a,onRest:o}=t,{asyncTo:s,promise:c}=n;return!a&&e===s&&!t.reset?c:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;let l=Yz(t,(e,t)=>t===`onRest`?void 0:e),u,d,f=new Promise((e,t)=>(u=e,d=t)),p=e=>{let t=i<=(n.cancelId||0)&&CB(r)||i!==n.asyncId&&SB(r,!1);if(t)throw e.result=t,d(e),e},m=(e,t)=>{let a=new EB,o=new DB;return(async()=>{if(CR.skipAnimation)throw TB(n),o.result=SB(r,!1),d(o),o;p(a);let s=Q.obj(e)?Uz({},e):Uz({},t,{to:e});s.parentId=i,pR(l,(e,t)=>{Q.und(s[t])&&(s[t]=e)});let c=await r.start(s);return p(a),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),c})()},h;if(CR.skipAnimation)return TB(n),SB(r,!1);try{let t;t=Q.arr(e)?(async e=>{for(let t of e)await m(t)})(e):Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([t.then(u),f]),h=SB(r.get(),!0,!1)}catch(e){if(e instanceof EB)h=e.result;else if(e instanceof DB)h=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?c:void 0)}return Q.fun(o)&&GL.batchedUpdates(()=>{o(h,r,r.item)}),h})()}function TB(e,t){hR(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var EB=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}},DB=class extends Error{constructor(){super(`SkipAnimationSignal`),this.result=void 0}},OB=e=>e instanceof AB,kB=1,AB=class extends $R{constructor(...e){super(...e),this.id=kB++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=wz(this);return e&&e.getValue()}to(...e){return CR.to(this,e)}interpolate(...e){return pte(),CR.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){QR(this,{type:`change`,parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||OR.sort(this),QR(this,{type:`priority`,parent:this,priority:e})}},jB=Symbol.for(`SpringPhase`),MB=1,NB=2,PB=4,FB=e=>(e[jB]&MB)>0,IB=e=>(e[jB]&NB)>0,LB=e=>(e[jB]&PB)>0,RB=(e,t)=>t?e[jB]|=3:e[jB]&=-3,zB=(e,t)=>t?e[jB]|=PB:e[jB]&=-5,BB=class extends AB{constructor(e,t){if(super(),this.key=void 0,this.animation=new vB,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Q.und(e)||!Q.und(t)){let n=Q.obj(e)?Uz({},e):Uz({},t,{from:e});Q.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(IB(this)||this._state.asyncTo)||LB(this)}get goal(){return XR(this.animation.to)}get velocity(){let e=wz(this);return e instanceof Oz?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return FB(this)}get isAnimating(){return IB(this)}get isPaused(){return LB(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{config:i,toValues:a}=r,o=Ez(r.to);!o&&YR(r.to)&&(a=mR(XR(r.to))),r.values.forEach((s,c)=>{if(s.done)return;let l=s.constructor==kz?1:o?o[c].lastPosition:a[c],u=r.immediate,d=l;if(!u){if(d=s.lastPosition,i.tension<=0){s.done=!0;return}let t=s.elapsedTime+=e,n=r.fromValues[c],a=s.v0==null?s.v0=Q.arr(i.velocity)?i.velocity[c]:i.velocity:s.v0,o;if(!Q.und(i.duration)){let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+i.easing(r)*(l-n),o=(d-s.lastPosition)/e,u=r==1}else if(i.decay){let e=i.decay===!0?.998:i.decay,r=Math.exp(-(1-e)*t);d=n+a/(1-e)*(1-r),u=Math.abs(s.lastPosition-d)<.1,o=a*r}else{o=s.lastVelocity==null?a:s.lastVelocity;let t=i.precision||(n==l?.005:Math.min(1,Math.abs(l-n)*.001)),r=i.restVelocity||t/10,c=i.clamp?0:i.bounce,f=!Q.und(c),p=n==l?s.v0>0:n<l,m,h=!1,g=Math.ceil(e/1);for(let e=0;e<g&&(m=Math.abs(o)>r,!(!m&&(u=Math.abs(l-d)<=t,u)));++e){f&&(h=d==l||d>l==p,h&&(o=-o*c,d=l));let e=(-i.tension*1e-6*(d-l)+-i.friction*.001*o)/i.mass;o+=e*1,d+=o*1}}s.lastVelocity=o,Number.isNaN(d)&&(console.warn(`Got NaN while animating:`,this),u=!0)}o&&!o[c].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,i.round)&&(n=!0)});let s=wz(this),c=s.getValue();if(t){let e=XR(r.to);(c!==e||n)&&!i.decay?(s.setValue(e),this._onChange(e)):n&&i.decay&&this._onChange(c),this._stop()}else n&&this._onChange(c)}set(e){return GL.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(IB(this)){let{to:e,config:t}=this.animation;GL.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||=[]).push(e),this}start(e,t){let n;return Q.und(e)?(n=this.queue||[],this.queue=[]):n=[Q.obj(e)?e:Uz({},t,{to:e})],Promise.all(n.map(e=>this._update(e))).then(e=>bB(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),TB(this._state,e&&this._lastCallId),GL.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type==`change`?this._start():e.type==`priority`&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||``,{to:n,from:r}=e;n=Q.obj(n)?n[t]:n,(n==null||nB(n))&&(n=void 0),r=Q.obj(r)?r[t]:r,r??=void 0;let i={to:n,from:r};return FB(this)||(e.reverse&&([n,r]=[r,n]),r=XR(r),Q.und(r)?wz(this)||this._set(n):this._set(r)),i}_update(e,t){let n=Uz({},e),{key:r,defaultProps:i}=this;n.default&&Object.assign(i,Yz(n,(e,t)=>/^on/.test(t)?Kz(e,r):e)),qB(this,n,`onProps`),JB(this,`onProps`,n,this);let a=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let o=this._state;return yB(++this._lastCallId,{key:r,props:n,defaultProps:i,state:o,actions:{pause:()=>{LB(this)||(zB(this,!0),gR(o.pauseQueue),JB(this,`onPause`,SB(this,VB(this,this.animation.to)),this))},resume:()=>{LB(this)&&(zB(this,!1),IB(this)&&this._resume(),gR(o.resumeQueue),JB(this,`onResume`,SB(this,VB(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(e=>{if(n.loop&&e.finished&&!(t&&e.noop)){let e=HB(n);if(e)return this._update(e,!0)}return e})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(CB(this));let r=!Q.und(e.to),i=!Q.und(e.from);if(r||i){if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(CB(this))}let{key:a,defaultProps:o,animation:s}=this,{to:c,from:l}=s,{to:u=c,from:d=l}=e;i&&!r&&(!t.default||Q.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);let f=!dR(d,l);f&&(s.from=d),d=XR(d);let p=!dR(u,c);p&&this._focus(u);let m=nB(t.to),{config:h}=s,{decay:g,velocity:_}=h;(r||i)&&(h.velocity=0),t.config&&!m&&hB(h,Wz(t.config,a),t.config===o.config?void 0:Wz(o.config,a));let v=wz(this);if(!v||Q.und(u))return n(SB(this,!0));let y=Q.und(t.reset)?i&&!t.default:!Q.und(d)&&Gz(t.reset,a),b=y?d:this.get(),x=eB(u),S=Q.num(x)||Q.arr(x)||pz(x),C=!m&&(!S||Gz(o.immediate||t.immediate,a));if(p){let e=Pz(u);if(e!==v.constructor){if(C)v=this._set(x);else throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let w=v.constructor,T=YR(u),E=!1;if(!T){let e=y||!FB(this)&&f;(p||e)&&(E=dR(eB(b),x),T=!E),(dR(s.immediate,C)||C)&&dR(h.decay,g)&&dR(h.velocity,_)||(T=!0)}if(E&&IB(this)&&(s.changed&&!y?T=!0:T||this._stop(c)),!m&&((T||YR(c))&&(s.values=v.getPayload(),s.toValues=YR(u)?null:w==kz?[1]:mR(x)),s.immediate!=C&&(s.immediate=C,!C&&!y&&this._set(c)),T)){let{onRest:e}=s;fR(KB,e=>qB(this,t,e));let r=SB(this,VB(this,c));gR(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&GL.batchedUpdates(()=>{s.changed=!y,e?.(r,this),y?Wz(o.onRest,r):s.onStart==null||s.onStart(r,this)})}y&&this._set(b),m?n(wB(t.to,t,this._state,this)):T?this._start():IB(this)&&!p?this._pendingCalls.add(n):n(xB(b))}_focus(e){let t=this.animation;e!==t.to&&(ZR(this)&&this._detach(),t.to=e,ZR(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;YR(t)&&(ez(t,this),OB(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;YR(e)&&tz(e,this)}_set(e,t=!0){let n=XR(e);if(!Q.und(n)){let e=wz(this);if(!e||!dR(n,e.getValue())){let r=Pz(n);!e||e.constructor!=r?Tz(this,r.create(n)):e.setValue(n),e&&GL.batchedUpdates(()=>{this._onChange(n,t)})}}return wz(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,JB(this,`onStart`,SB(this,VB(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Wz(this.animation.onChange,e,this)),Wz(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;wz(this).reset(XR(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),IB(this)||(RB(this,!0),LB(this)||this._resume())}_resume(){CR.skipAnimation?this.finish():OR.start(this)}_stop(e,t){if(IB(this)){RB(this,!1);let n=this.animation;fR(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),QR(this,{type:`idle`,parent:this});let r=t?CB(this.get()):SB(this.get(),VB(this,e??n.to));gR(this._pendingCalls,r),n.changed&&(n.changed=!1,JB(this,`onRest`,r,this))}}};function VB(e,t){let n=eB(t);return dR(eB(e.get()),n)}function HB(e,t=e.loop,n=e.to){let r=Wz(t);if(r){let i=r!==!0&&$z(r),a=(i||e).reverse,o=!i||i.reset;return UB(Uz({},e,{loop:t,default:!1,pause:void 0,to:!a||nB(n)?n:void 0,from:o?e.from:void 0,reset:o},i))}}function UB(e){let{to:t,from:n}=e=$z(e),r=new Set;return Q.obj(t)&&GB(t,r),Q.obj(n)&&GB(n,r),e.keys=r.size?Array.from(r):null,e}function WB(e){let t=UB(e);return Q.und(t.default)&&(t.default=Yz(t)),t}function GB(e,t){pR(e,(e,n)=>e!=null&&t.add(n))}var KB=[`onStart`,`onRest`,`onChange`,`onPause`,`onResume`];function qB(e,t,n){e.animation[n]=t[n]===qz(t,n)?void 0:Kz(t[n],e.key)}function JB(e,t,...n){var r,i,a,o;(r=(i=e.animation)[t])==null||r.call(i,...n),(a=(o=e.defaultProps)[t])==null||a.call(o,...n)}var YB=[`onStart`,`onChange`,`onRest`],XB=1,ZB=class{constructor(e,t){this.id=XB++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start(Uz({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];Q.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(UB(e)),this}start(e){let{queue:t}=this;return e?t=mR(e).map(UB):this.queue=[],this._flush?this._flush(this,t):(iV(this,t),QB(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){let n=this.springs;fR(mR(t),t=>n[t].stop(!!e))}else TB(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(Q.und(e))this.start({pause:!0});else{let t=this.springs;fR(mR(e),e=>t[e].pause())}return this}resume(e){if(Q.und(e))this.start({pause:!1});else{let t=this.springs;fR(mR(e),e=>t[e].resume())}return this}each(e){pR(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,hR(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let a=!r&&this._started,o=i||a&&n.size?this.get():null;i&&t.size&&hR(t,([e,t])=>{t.value=o,e(t,this,this._item)}),a&&(this._started=!1,hR(n,([e,t])=>{t.value=o,e(t,this,this._item)}))}eventObserved(e){if(e.type==`change`)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type==`idle`)this._active.delete(e.parent);else return;GL.onFrame(this._onFrame)}};function QB(e,t){return Promise.all(t.map(t=>$B(e,t))).then(t=>bB(e,t))}async function $B(e,t,n){let{keys:r,to:i,from:a,loop:o,onRest:s,onResolve:c}=t,l=Q.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),a===!1&&(t.from=null);let u=Q.arr(i)||Q.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):fR(YB,n=>{let r=t[n];if(Q.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},l&&(l[n]=t[n])}});let d=e._state;t.pause===!d.paused?(d.paused=t.pause,gR(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),p=t.cancel===!0||qz(t,`cancel`)===!0;(u||p&&d.asyncId)&&f.push(yB(++e._lastAsyncId,{props:t,state:d,actions:{pause:lR,resume:lR,start(t,n){p?(TB(d,e._lastAsyncId),n(CB(e))):(t.onRest=s,n(wB(u,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let m=bB(e,await Promise.all(f));if(o&&m.finished&&!(n&&m.noop)){let n=HB(t,o,i);if(n)return iV(e,[n]),$B(e,n,!0)}return c&&GL.batchedUpdates(()=>c(m,e,e.item)),m}function eV(e,t){let n=Uz({},e.springs);return t&&fR(mR(t),e=>{Q.und(e.keys)&&(e=UB(e)),Q.obj(e.to)||(e=Uz({},e,{to:void 0})),rV(n,e,e=>nV(e))}),tV(e,n),n}function tV(e,t){pR(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,ez(t,e))})}function nV(e,t){let n=new BB;return n.key=e,t&&ez(n,t),n}function rV(e,t,n){t.keys&&fR(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function iV(e,t){fR(t,t=>{rV(e.springs,t,t=>nV(t,e))})}function aV(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var oV=[`children`],sV=e=>{let{children:t}=e,n=aV(e,oV),r=(0,_.useContext)(cV),i=n.pause||!!r.pause,a=n.immediate||!!r.immediate;n=_z(()=>({pause:i,immediate:a}),[i,a]);let{Provider:o}=cV;return _.createElement(o,{value:n},t)},cV=lV(sV,{});sV.Provider=cV.Provider,sV.Consumer=cV.Consumer;function lV(e,t){return Object.assign(e,_.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var uV=()=>{let e=[],t=function(t){fz();let r=[];return fR(e,(e,i)=>{if(Q.und(t))r.push(e.start());else{let a=n(t,e,i);a&&r.push(e.start(a))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return fR(e,e=>e.pause(...arguments)),this},t.resume=function(){return fR(e,e=>e.resume(...arguments)),this},t.set=function(t){fR(e,e=>e.set(t))},t.start=function(t){let n=[];return fR(e,(e,r)=>{if(Q.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return fR(e,e=>e.stop(...arguments)),this},t.update=function(t){return fR(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return Q.fun(e)?e(n,t):e};return t._getProps=n,t};function dV(e,t,n){let r=Q.fun(t)&&t;r&&!n&&(n=[]);let i=(0,_.useMemo)(()=>r||arguments.length==3?uV():void 0,[]),a=(0,_.useRef)(0),o=gz(),s=(0,_.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=eV(e,t);return a.current>0&&!s.queue.length&&!Object.keys(n).some(t=>!e.springs[t])?QB(e,t):new Promise(r=>{tV(e,n),s.queue.push(()=>{r(QB(e,t))}),o()})}}),[]),c=(0,_.useRef)([...s.ctrls]),l=[],u=xz(e)||0;(0,_.useMemo)(()=>{fR(c.current.slice(e,u),e=>{rB(e,i),e.stop(!0)}),c.current.length=e,d(u,e)},[e]),(0,_.useMemo)(()=>{d(0,Math.min(u,e))},n);function d(e,n){for(let i=e;i<n;i++){let e=c.current[i]||(c.current[i]=new ZB(null,s.flush)),n=r?r(i,e):t[i];n&&(l[i]=WB(n))}}let f=c.current.map((e,t)=>eV(e,l[t])),p=(0,_.useContext)(sV),m=p!==xz(p)&&tB(p);mz(()=>{a.current++,s.ctrls=c.current;let{queue:e}=s;e.length&&(s.queue=[],fR(e,e=>e())),fR(c.current,(e,t)=>{i?.add(e),m&&e.start({default:p});let n=l[t];n&&(iB(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),yz(()=>()=>{fR(s.ctrls,e=>e.stop(!0))});let h=f.map(e=>Uz({},e));return i?[h,i]:h}function fV(e,t){let n=Q.fun(e),[[r],i]=dV(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,i]:r}var pV;(function(e){e.MOUNT=`mount`,e.ENTER=`enter`,e.UPDATE=`update`,e.LEAVE=`leave`})(pV||={});function mV(e,t,n){let r=Q.fun(t)&&t,{reset:i,sort:a,trail:o=0,expires:s=!0,exitBeforeEnter:c=!1,onDestroyed:l,ref:u,config:d}=r?r():t,f=(0,_.useMemo)(()=>r||arguments.length==3?uV():void 0,[]),p=mR(e),m=[],h=(0,_.useRef)(null),g=i?null:h.current;mz(()=>{h.current=m}),yz(()=>(fR(h.current,e=>{var t;(t=e.ctrl.ref)==null||t.add(e.ctrl);let n=w.get(e);n&&e.ctrl.start(n.payload)}),()=>{fR(h.current,e=>{e.expired&&clearTimeout(e.expirationId),rB(e.ctrl,f),e.ctrl.stop(!0)})}));let v=gV(p,r?r():t,g),y=i&&h.current||[];mz(()=>fR(y,({ctrl:e,item:t,key:n})=>{rB(e,f),Wz(l,t,n)}));let b=[];if(g&&fR(g,(e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):(t=b[t]=v.indexOf(e.key),~t&&(m[t]=e))}),fR(p,(e,t)=>{m[t]||(m[t]={key:v[t],item:e,phase:pV.MOUNT,ctrl:new ZB},m[t].ctrl.item=e)}),b.length){let e=-1,{leave:n}=r?r():t;fR(b,(t,r)=>{let i=g[r];~t?(e=m.indexOf(i),m[e]=Uz({},i,{item:p[t]})):n&&m.splice(++e,0,i)})}Q.fun(a)&&m.sort((e,t)=>a(e.item,t.item));let x=-o,S=gz(),C=Yz(t),w=new Map,T=(0,_.useRef)(new Map),E=(0,_.useRef)(!1);fR(m,(e,n)=>{let i=e.key,a=e.phase,l=r?r():t,f,p,m=Wz(l.delay||0,i);if(a==pV.MOUNT)f=l.enter,p=pV.ENTER;else{let e=v.indexOf(i)<0;if(a!=pV.LEAVE){if(e)f=l.leave,p=pV.LEAVE;else if(f=l.update)p=pV.UPDATE;else return}else if(!e)f=l.enter,p=pV.ENTER;else return}if(f=Wz(f,e.item,n),f=Q.obj(f)?$z(f):{to:f},!f.config){let t=d||C.config;f.config=Wz(t,e.item,n,p)}x+=o;let _=Uz({},C,{delay:m+x,ref:u,immediate:l.immediate,reset:!1},f);if(p==pV.ENTER&&Q.und(_.from)){let i=r?r():t;_.from=Wz(Q.und(i.initial)||g?i.from:i.initial,e.item,n)}let{onResolve:y}=_;_.onResolve=e=>{Wz(y,e);let t=h.current,n=t.find(e=>e.key===i);if(n&&!(e.cancelled&&n.phase!=pV.UPDATE)&&n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if(n.phase==pV.LEAVE){let t=Wz(s,n.item);if(t!==!1){let r=t===!0?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(S,r));return}}}e&&t.some(e=>e.expired)&&(T.current.delete(n),c&&(E.current=!0),S())}};let b=eV(e.ctrl,_);p===pV.LEAVE&&c?T.current.set(e,{phase:p,springs:b,payload:_}):w.set(e,{phase:p,springs:b,payload:_})});let D=(0,_.useContext)(sV),O=D!==xz(D)&&tB(D);mz(()=>{O&&fR(m,e=>{e.ctrl.start({default:D})})},[D]),fR(w,(e,t)=>{if(T.current.size){let e=m.findIndex(e=>e.key===t.key);m.splice(e,1)}}),mz(()=>{fR(T.current.size?T.current:w,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),O&&e==pV.ENTER&&r.start({default:D}),t&&(iB(r,t.ref),r.ref&&!E.current?r.update(t):(r.start(t),E.current&&=!1))})},i?void 0:n);let k=e=>_.createElement(_.Fragment,null,m.map((t,n)=>{let{springs:r}=w.get(t)||t.ctrl,i=e(Uz({},r),t.item,t,n);return i&&i.type?_.createElement(i.type,Uz({},i.props,{key:Q.str(t.key)||Q.num(t.key)?t.key:t.ctrl.id,ref:i.ref})):i}));return f?[k,f]:k}var hV=1;function gV(e,{key:t,keys:n=t},r){if(n===null){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&n.phase!==pV.LEAVE&&!t.has(n));return n?(t.add(n),n.key):hV++})}return Q.und(n)?e:Q.fun(n)?e.map(n):mR(n)}var _V=class extends AB{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=GR(...t);let n=this._get(),r=Pz(n);Tz(this,r.create(n))}advance(e){let t=this._get();dR(t,this.get())||(wz(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&yV(this._active)&&bV(this)}_get(){let e=Q.arr(this.source)?this.source.map(XR):mR(XR(this.source));return this.calc(...e)}_start(){this.idle&&!yV(this._active)&&(this.idle=!1,fR(Ez(this),e=>{e.done=!1}),CR.skipAnimation?(GL.batchedUpdates(()=>this.advance()),bV(this)):OR.start(this))}_attach(){let e=1;fR(mR(this.source),t=>{YR(t)&&ez(t,this),OB(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){fR(mR(this.source),e=>{YR(e)&&tz(e,this)}),this._active.clear(),bV(this)}eventObserved(e){e.type==`change`?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type==`idle`?this._active.delete(e.parent):e.type==`priority`&&(this.priority=mR(this.source).reduce((e,t)=>Math.max(e,(OB(t)?t.priority:0)+1),0))}};function vV(e){return e.idle!==!1}function yV(e){return!e.size||Array.from(e).every(vV)}function bV(e){e.idle||(e.idle=!0,fR(Ez(e),e=>{e.done=!0}),QR(e,{type:`idle`,parent:e}))}var xV=(e,...t)=>new _V(e,t);CR.assign({createStringInterpolator:cz,to:(e,t)=>new _V(e,t)}),OR.advance;function SV(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var CV=[`style`,`children`,`scrollTop`,`scrollLeft`],wV=/^--/;function TV(e,t){return t==null||typeof t==`boolean`||t===``?``:typeof t==`number`&&t!==0&&!wV.test(e)&&!(OV.hasOwnProperty(e)&&OV[e])?t+`px`:(``+t).trim()}var EV={};function DV(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n=e.nodeName===`filter`||e.parentNode&&e.parentNode.nodeName===`filter`,r=t,{style:i,children:a,scrollTop:o,scrollLeft:s}=r,c=SV(r,CV),l=Object.values(c),u=Object.keys(c).map(t=>n||e.hasAttribute(t)?t:EV[t]||(EV[t]=t.replace(/([A-Z])/g,e=>`-`+e.toLowerCase())));a!==void 0&&(e.textContent=a);for(let t in i)if(i.hasOwnProperty(t)){let n=TV(t,i[t]);wV.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach((t,n)=>{e.setAttribute(t,l[n])}),o!==void 0&&(e.scrollTop=o),s!==void 0&&(e.scrollLeft=s)}var OV={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},kV=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),AV=[`Webkit`,`Ms`,`Moz`,`O`];OV=Object.keys(OV).reduce((e,t)=>(AV.forEach(n=>e[kV(n,t)]=e[t]),e),OV);var jV=[`x`,`y`,`z`],MV=/^(matrix|translate|scale|rotate|skew)/,NV=/^(translate)/,PV=/^(rotate|skew)/,FV=(e,t)=>Q.num(e)&&e!==0?e+t:e,IV=(e,t)=>Q.arr(e)?e.every(e=>IV(e,t)):Q.num(e)?e===t:parseFloat(e)===t,LV=class extends jz{constructor(e){let{x:t,y:n,z:r}=e,i=SV(e,jV),a=[],o=[];(t||n||r)&&(a.push([t||0,n||0,r||0]),o.push(e=>[`translate3d(${e.map(e=>FV(e,`px`)).join(`,`)})`,IV(e,0)])),pR(i,(e,t)=>{if(t===`transform`)a.push([e||``]),o.push(e=>[e,e===``]);else if(MV.test(t)){if(delete i[t],Q.und(e))return;let n=NV.test(t)?`px`:PV.test(t)?`deg`:``;a.push(mR(e)),o.push(t===`rotate3d`?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${FV(i,n)})`,IV(i,0)]:e=>[`${t}(${e.map(e=>FV(e,n)).join(`,`)})`,IV(e,+!!t.startsWith(`scale`))])}}),a.length&&(i.transform=new RV(a,o)),super(i)}},RV=class extends $R{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||=this._get()}_get(){let e=``,t=!0;return fR(this.inputs,(n,r)=>{let i=XR(n[0]),[a,o]=this.transforms[r](Q.arr(i)?i:n.map(XR));e+=` `+a,t&&=o}),t?`none`:e}observerAdded(e){e==1&&fR(this.inputs,e=>fR(e,e=>YR(e)&&ez(e,this)))}observerRemoved(e){e==0&&fR(this.inputs,e=>fR(e,e=>YR(e)&&tz(e,this)))}eventObserved(e){e.type==`change`&&(this._value=null),QR(this,e)}},zV=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.big.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.foreignObject.g.image.line.linearGradient.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.text.tspan`.split(`.`),BV=[`scrollTop`,`scrollLeft`];CR.assign({batchedUpdates:nt.unstable_batchedUpdates,createStringInterpolator:cz,colors:PR});var VV=Vz(zV,{applyAnimatedValues:DV,createAnimatedStyle:e=>new LV(e),getComponentProps:e=>SV(e,BV)}).animated,HV=n(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),UV=n(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),WV=n(((e,t)=>{var n=UV();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),GV=n(((e,t)=>{var n=WV(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),KV=n(((e,t)=>{var n=WV();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),qV=n(((e,t)=>{var n=WV();function r(e){return n(this.__data__,e)>-1}t.exports=r})),JV=n(((e,t)=>{var n=WV();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),YV=n(((e,t)=>{var n=HV(),r=GV(),i=KV(),a=qV(),o=JV();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),XV=n(((e,t)=>{var n=YV();function r(){this.__data__=new n,this.size=0}t.exports=r})),ZV=n(((e,t)=>{function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=n})),QV=n(((e,t)=>{function n(e){return this.__data__.get(e)}t.exports=n})),$V=n(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),eH=n(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),tH=n(((e,t)=>{var n=eH(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),nH=n(((e,t)=>{t.exports=tH().Symbol})),rH=n(((e,t)=>{var n=nH(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),iH=n(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),aH=n(((e,t)=>{var n=nH(),r=rH(),i=iH(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),oH=n(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),sH=n(((e,t)=>{var n=aH(),r=oH(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),cH=n(((e,t)=>{t.exports=tH()[`__core-js_shared__`]})),lH=n(((e,t)=>{var n=cH(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),uH=n(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),dH=n(((e,t)=>{var n=sH(),r=lH(),i=oH(),a=uH(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),fH=n(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),pH=n(((e,t)=>{var n=dH(),r=fH();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),mH=n(((e,t)=>{t.exports=pH()(tH(),`Map`)})),hH=n(((e,t)=>{t.exports=pH()(Object,`create`)})),gH=n(((e,t)=>{var n=hH();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),_H=n(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}t.exports=n})),vH=n(((e,t)=>{var n=hH(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),yH=n(((e,t)=>{var n=hH(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),bH=n(((e,t)=>{var n=hH(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&t===void 0?r:t,this}t.exports=i})),xH=n(((e,t)=>{var n=gH(),r=_H(),i=vH(),a=yH(),o=bH();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),SH=n(((e,t)=>{var n=xH(),r=YV(),i=mH();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),CH=n(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),wH=n(((e,t)=>{var n=CH();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),TH=n(((e,t)=>{var n=wH();function r(e){var t=n(this,e).delete(e);return this.size-=+!!t,t}t.exports=r})),EH=n(((e,t)=>{var n=wH();function r(e){return n(this,e).get(e)}t.exports=r})),DH=n(((e,t)=>{var n=wH();function r(e){return n(this,e).has(e)}t.exports=r})),OH=n(((e,t)=>{var n=wH();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),kH=n(((e,t)=>{var n=SH(),r=TH(),i=EH(),a=DH(),o=OH();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),AH=n(((e,t)=>{var n=YV(),r=mH(),i=kH(),a=200;function o(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length<a-1)return s.push([e,t]),this.size=++o.size,this;o=this.__data__=new i(s)}return o.set(e,t),this.size=o.size,this}t.exports=o})),jH=n(((e,t)=>{var n=YV(),r=XV(),i=ZV(),a=QV(),o=$V(),s=AH();function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c})),MH=n(((e,t)=>{var n=pH();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),NH=n(((e,t)=>{var n=MH();function r(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.exports=r})),PH=n(((e,t)=>{var n=NH(),r=UV();function i(e,t,i){(i!==void 0&&!r(e[t],i)||i===void 0&&!(t in e))&&n(e,t,i)}t.exports=i})),FH=n(((e,t)=>{function n(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}t.exports=n})),IH=n(((e,t)=>{t.exports=FH()()})),LH=n(((e,t)=>{var n=tH(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r?n.Buffer:void 0,o=a?a.allocUnsafe:void 0;function s(e,t){if(t)return e.slice();var n=e.length,r=o?o(n):new e.constructor(n);return e.copy(r),r}t.exports=s})),RH=n(((e,t)=>{t.exports=tH().Uint8Array})),zH=n(((e,t)=>{var n=RH();function r(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}t.exports=r})),BH=n(((e,t)=>{var n=zH();function r(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}t.exports=r})),VH=n(((e,t)=>{function n(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}t.exports=n})),HH=n(((e,t)=>{var n=oH(),r=Object.create;t.exports=function(){function e(){}return function(t){if(!n(t))return{};if(r)return r(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}()})),UH=n(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),WH=n(((e,t)=>{t.exports=UH()(Object.getPrototypeOf,Object)})),GH=n(((e,t)=>{var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r})),KH=n(((e,t)=>{var n=HH(),r=WH(),i=GH();function a(e){return typeof e.constructor==`function`&&!i(e)?n(r(e)):{}}t.exports=a})),qH=n(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),JH=n(((e,t)=>{var n=aH(),r=qH(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),YH=n(((e,t)=>{var n=JH(),r=qH(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),XH=n(((e,t)=>{t.exports=Array.isArray})),ZH=n(((e,t)=>{function n(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=9007199254740991}t.exports=n})),QH=n(((e,t)=>{var n=sH(),r=ZH();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i})),$H=n(((e,t)=>{var n=QH(),r=qH();function i(e){return r(e)&&n(e)}t.exports=i})),eU=n(((e,t)=>{function n(){return!1}t.exports=n})),tU=n(((e,t)=>{var n=tH(),r=eU(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r})),nU=n(((e,t)=>{var n=aH(),r=WH(),i=qH(),a=`[object Object]`,o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,u=c.call(Object);function d(e){if(!i(e)||n(e)!=a)return!1;var t=r(e);if(t===null)return!0;var o=l.call(t,`constructor`)&&t.constructor;return typeof o==`function`&&o instanceof o&&c.call(o)==u}t.exports=d})),rU=n(((e,t)=>{var n=aH(),r=ZH(),i=qH(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,O=`[object Uint32Array]`,k={};k[b]=k[x]=k[S]=k[C]=k[w]=k[T]=k[E]=k[D]=k[O]=!0,k[a]=k[o]=k[v]=k[s]=k[y]=k[c]=k[l]=k[u]=k[d]=k[f]=k[p]=k[m]=k[h]=k[g]=k[_]=!1;function A(e){return i(e)&&r(e.length)&&!!k[n(e)]}t.exports=A})),iU=n(((e,t)=>{function n(e){return function(t){return e(t)}}t.exports=n})),aU=n(((e,t)=>{var n=eH(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch{}}()})),oU=n(((e,t)=>{var n=rU(),r=iU(),i=aU(),a=i&&i.isTypedArray;t.exports=a?r(a):n})),sU=n(((e,t)=>{function n(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}t.exports=n})),cU=n(((e,t)=>{var n=NH(),r=UV(),i=Object.prototype.hasOwnProperty;function a(e,t,a){var o=e[t];(!(i.call(e,t)&&r(o,a))||a===void 0&&!(t in e))&&n(e,t,a)}t.exports=a})),lU=n(((e,t)=>{var n=cU(),r=NH();function i(e,t,i,a){var o=!i;i||={};for(var s=-1,c=t.length;++s<c;){var l=t[s],u=a?a(i[l],e[l],l,i,e):void 0;u===void 0&&(u=e[l]),o?r(i,l,u):n(i,l,u)}return i}t.exports=i})),uU=n(((e,t)=>{function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=n})),dU=n(((e,t)=>{var n=/^(?:0|[1-9]\d*)$/;function r(e,t){var r=typeof e;return t??=9007199254740991,!!t&&(r==`number`||r!=`symbol`&&n.test(e))&&e>-1&&e%1==0&&e<t}t.exports=r})),fU=n(((e,t)=>{var n=uU(),r=YH(),i=XH(),a=tU(),o=dU(),s=oU(),c=Object.prototype.hasOwnProperty;function l(e,t){var l=i(e),u=!l&&r(e),d=!l&&!u&&a(e),f=!l&&!u&&!d&&s(e),p=l||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=l})),pU=n(((e,t)=>{function n(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}t.exports=n})),mU=n(((e,t)=>{var n=oH(),r=GH(),i=pU(),a=Object.prototype.hasOwnProperty;function o(e){if(!n(e))return i(e);var t=r(e),o=[];for(var s in e)(s!=`constructor`||!t&&a.call(e,s))&&o.push(s);return o}t.exports=o})),hU=n(((e,t)=>{var n=fU(),r=mU(),i=QH();function a(e){return i(e)?n(e,!0):r(e)}t.exports=a})),gU=n(((e,t)=>{var n=lU(),r=hU();function i(e){return n(e,r(e))}t.exports=i})),_U=n(((e,t)=>{var n=PH(),r=LH(),i=BH(),a=VH(),o=KH(),s=YH(),c=XH(),l=$H(),u=tU(),d=sH(),f=oH(),p=nU(),m=oU(),h=sU(),g=gU();function _(e,t,_,v,y,b,x){var S=h(e,_),C=h(t,_),w=x.get(C);if(w)n(e,_,w);else{var T=b?b(S,C,_+``,e,t,x):void 0,E=T===void 0;if(E){var D=c(C),O=!D&&u(C),k=!D&&!O&&m(C);T=C,D||O||k?c(S)?T=S:l(S)?T=a(S):O?(E=!1,T=r(C,!0)):k?(E=!1,T=i(C,!0)):T=[]:p(C)||s(C)?(T=S,s(S)?T=g(S):(!f(S)||d(S))&&(T=o(C))):E=!1}E&&(x.set(C,T),y(T,C,v,b,x),x.delete(C)),n(e,_,T)}}t.exports=_})),vU=n(((e,t)=>{var n=jH(),r=PH(),i=IH(),a=_U(),o=oH(),s=hU(),c=sU();function l(e,t,u,d,f){e!==t&&i(t,function(i,s){if(f||=new n,o(i))a(e,t,s,u,l,d,f);else{var p=d?d(c(e,s),i,s+``,e,t,f):void 0;p===void 0&&(p=i),r(e,s,p)}},s)}t.exports=l})),yU=n(((e,t)=>{function n(e){return e}t.exports=n})),bU=n(((e,t)=>{function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}t.exports=n})),xU=n(((e,t)=>{var n=bU(),r=Math.max;function i(e,t,i){return t=r(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=r(a.length-t,0),c=Array(s);++o<s;)c[o]=a[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=a[o];return l[t]=i(c),n(e,this,l)}}t.exports=i})),SU=n(((e,t)=>{function n(e){return function(){return e}}t.exports=n})),CU=n(((e,t)=>{var n=SU(),r=MH(),i=yU();t.exports=r?function(e,t){return r(e,`toString`,{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i})),wU=n(((e,t)=>{var n=Date.now;function r(e){var t=0,r=0;return function(){var i=n(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}t.exports=r})),TU=n(((e,t)=>{var n=CU();t.exports=wU()(n)})),EU=n(((e,t)=>{var n=yU(),r=xU(),i=TU();function a(e,t){return i(r(e,t,n),e+``)}t.exports=a})),DU=n(((e,t)=>{var n=UV(),r=QH(),i=dU(),a=oH();function o(e,t,o){if(!a(o))return!1;var s=typeof t;return(s==`number`?r(o)&&i(t,o.length):s==`string`&&t in o)?n(o[t],e):!1}t.exports=o})),OU=n(((e,t)=>{var n=EU(),r=DU();function i(e){return n(function(t,n){var i=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&typeof o==`function`?(a--,o):void 0,s&&r(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++i<a;){var c=n[i];c&&e(t,c,i,o)}return t})}t.exports=i})),kU=n(((e,t)=>{var n=vU();t.exports=OU()(function(e,t,r){n(e,t,r)})})),AU=n(((e,t)=>{var n=aH(),r=qH(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),jU=n(((e,t)=>{var n=XH(),r=AU(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(e,t){if(n(e))return!1;var o=typeof e;return o==`number`||o==`symbol`||o==`boolean`||e==null||r(e)?!0:a.test(e)||!i.test(e)||t!=null&&e in Object(t)}t.exports=o})),MU=n(((e,t)=>{var n=kH(),r=`Expected a function`;function i(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(r);var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=a.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return a.cache=i.set(r,o)||i,o};return a.cache=new(i.Cache||n),a}i.Cache=n,t.exports=i})),NU=n(((e,t)=>{var n=MU(),r=500;function i(e){var t=n(e,function(e){return i.size===r&&i.clear(),e}),i=t.cache;return t}t.exports=i})),PU=n(((e,t)=>{var n=NU(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(r,function(e,n,r,a){t.push(r?a.replace(i,`$1`):n||e)}),t})})),FU=n(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=n})),IU=n(((e,t)=>{var n=nH(),r=FU(),i=XH(),a=AU(),o=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;function l(e){if(typeof e==`string`)return e;if(i(e))return r(e,l)+``;if(a(e))return c?c.call(e):``;var t=e+``;return t==`0`&&1/e==-o?`-0`:t}t.exports=l})),LU=n(((e,t)=>{var n=IU();function r(e){return e==null?``:n(e)}t.exports=r})),RU=n(((e,t)=>{var n=XH(),r=jU(),i=PU(),a=LU();function o(e,t){return n(e)?e:r(e,t)?[e]:i(a(e))}t.exports=o})),zU=n(((e,t)=>{var n=AU(),r=1/0;function i(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-r?`-0`:t}t.exports=i})),BU=n(((e,t)=>{var n=RU(),r=zU();function i(e,t){t=n(t,e);for(var i=0,a=t.length;e!=null&&i<a;)e=e[r(t[i++])];return i&&i==a?e:void 0}t.exports=i})),VU=n(((e,t)=>{var n=BU();function r(e,t,r){var i=e==null?void 0:n(e,t);return i===void 0?r:i}t.exports=r})),HU=n(((e,t)=>{var n=cU(),r=RU(),i=dU(),a=oH(),o=zU();function s(e,t,s,c){if(!a(e))return e;t=r(t,e);for(var l=-1,u=t.length,d=u-1,f=e;f!=null&&++l<u;){var p=o(t[l]),m=s;if(p===`__proto__`||p===`constructor`||p===`prototype`)return e;if(l!=d){var h=f[p];m=c?c(h,p,f):void 0,m===void 0&&(m=a(h)?h:i(t[l+1])?[]:{})}n(f,p,m),f=f[p]}return e}t.exports=s})),UU=n(((e,t)=>{var n=HU();function r(e,t,r){return e==null?e:n(e,t,r)}t.exports=r})),WU=e(kU(),1),GU=e(VU(),1),KU=e(UU(),1);function qU(){return qU=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},qU.apply(null,arguments)}function JU(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 YU=[`outlineWidth`,`outlineColor`,`outlineOpacity`],XU=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,JU(e,YU)},ZU=[`axis.ticks.text`,`axis.legend.text`,`legends.title.text`,`legends.text`,`legends.ticks.text`,`legends.title.text`,`labels.text`,`dots.text`,`markers.text`,`annotations.text`],QU=function(e,t){return qU({},t,e)},$U=function(e,t){var n=(0,WU.default)({},e,t);return ZU.forEach((function(e){(0,KU.default)(n,e,QU((0,GU.default)(n,e),n.text))})),n},eW=function(e,t){return t?(0,WU.default)({},e,t):e},tW={background:`transparent`,text:{fontFamily:`sans-serif`,fontSize:11,fill:`#333333`,outlineWidth:0,outlineColor:`#ffffff`,outlineOpacity:1},axis:{domain:{line:{stroke:`transparent`,strokeWidth:1}},ticks:{line:{stroke:`#777777`,strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:`#dddddd`,strokeWidth:1}},legends:{hidden:{symbol:{fill:`#333333`,opacity:.6},text:{fill:`#333333`,opacity:.6}},text:{},ticks:{line:{stroke:`#777777`,strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:`#000000`,lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:`white`,color:`inherit`,fontSize:`inherit`,borderRadius:`2px`,boxShadow:`0 1px 2px rgba(0, 0, 0, 0.25)`,padding:`5px 9px`},basic:{whiteSpace:`pre`,display:`flex`,alignItems:`center`},chip:{marginRight:7},table:{},tableCell:{padding:`3px 5px`},tableCellValue:{fontWeight:`bold`}},crosshair:{line:{stroke:`#000000`,strokeWidth:1,strokeOpacity:.75,strokeDasharray:`6 6`}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:`#ffffff`,outlineOpacity:1},link:{stroke:`#000000`,strokeWidth:1,outlineWidth:2,outlineColor:`#ffffff`,outlineOpacity:1},outline:{fill:`none`,stroke:`#000000`,strokeWidth:2,outlineWidth:2,outlineColor:`#ffffff`,outlineOpacity:1},symbol:{fill:`#000000`,outlineWidth:2,outlineColor:`#ffffff`,outlineOpacity:1}}},nW=function(e){return(0,_.useMemo)((function(){return $U(tW,e)}),[e])},rW=function(e,t){return(0,_.useMemo)((function(){return eW(e,t)}),[e,t])},iW=(0,_.createContext)(null),aW={},oW=function(e){var t=e.theme,n=t===void 0?aW:t,r=e.children,i=nW(n);return(0,G.jsx)(iW.Provider,{value:i,children:r})},sW=function(){var e=(0,_.useContext)(iW);if(e===null)throw Error(`Unable to find the theme, did you forget to wrap your component with ThemeProvider?`);return e};function cW(){return cW=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},cW.apply(null,arguments)}var lW=[`basic`,`chip`,`container`,`table`,`tableCell`,`tableCellValue`],uW={pointerEvents:`none`,position:`absolute`,zIndex:10,top:0,left:0},dW=function(e,t){return`translate(`+e+`px, `+t+`px)`},fW=(0,_.memo)((function(e){var t=e.position,n=e.anchor,r=e.children,i=sW(),a=F2(),o=a.animate,s=a.config,c=v4(),l=c[0],u=c[1],d=(0,_.useRef)(!1),f=void 0,p=!1,m=u.width>0&&u.height>0,h=Math.round(t[0]),g=Math.round(t[1]);m&&(n===`top`?(h-=u.width/2,g-=u.height+14):n===`right`?(h+=14,g-=u.height/2):n===`bottom`?(h-=u.width/2,g+=14):n===`left`?(h-=u.width+14,g-=u.height/2):n===`center`&&(h-=u.width/2,g-=u.height/2),f={transform:dW(h,g)},d.current||(p=!0),d.current=[h,g]);var v=fV({to:f,config:s,immediate:!o||p}),y=i.tooltip;y.basic,y.chip,y.container,y.table,y.tableCell,y.tableCellValue;var b=function(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}(y,lW),x=cW({},uW,b,{transform:v.transform??dW(h,g),opacity:+!!v.transform});return(0,G.jsx)(VV.div,{ref:l,style:x,children:r})}));fW.displayName=`TooltipWrapper`;var pW=(0,_.memo)((function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return(0,G.jsx)(`span`,{style:cW({display:`block`,width:n,height:n,background:r},i===void 0?{}:i)})})),mW=(0,_.memo)((function(e){var t,n=e.id,r=e.value,i=e.format,a=e.enableChip,o=a!==void 0&&a,s=e.color,c=e.renderContent,l=sW(),u=b4(i);if(typeof c==`function`)t=c();else{var d=r;u!==void 0&&d!==void 0&&(d=u(d)),t=(0,G.jsxs)(`div`,{style:l.tooltip.basic,children:[o&&(0,G.jsx)(pW,{color:s,style:l.tooltip.chip}),d===void 0?n:(0,G.jsxs)(`span`,{children:[n,`: `,(0,G.jsx)(`strong`,{children:``+d})]})]})}return(0,G.jsx)(`div`,{style:l.tooltip.container,role:`tooltip`,children:t})})),hW={width:`100%`,borderCollapse:`collapse`},gW=(0,_.memo)((function(e){var t,n=e.title,r=e.rows,i=r===void 0?[]:r,a=e.renderContent,o=sW();return i.length?(t=typeof a==`function`?a():(0,G.jsxs)(`div`,{children:[n&&n,(0,G.jsx)(`table`,{style:cW({},hW,o.tooltip.table),children:(0,G.jsx)(`tbody`,{children:i.map((function(e,t){return(0,G.jsx)(`tr`,{children:e.map((function(e,t){return(0,G.jsx)(`td`,{style:o.tooltip.tableCell,children:e},t)}))},t)}))})})]}),(0,G.jsx)(`div`,{style:o.tooltip.container,children:t})):null}));gW.displayName=`TableTooltip`;var _W=(0,_.memo)((function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,a=sW(),o=F2(),s=o.animate,c=o.config,l=(0,_.useMemo)((function(){return cW({},a.crosshair.line,{pointerEvents:`none`})}),[a.crosshair.line]),u=fV({x1:t,x2:n,y1:r,y2:i,config:c,immediate:!s});return(0,G.jsx)(VV.line,cW({},u,{fill:`none`,style:l}))}));_W.displayName=`CrosshairLine`;var vW=(0,_.memo)((function(e){var t,n,r=e.width,i=e.height,a=e.type,o=e.x,s=e.y;return a===`cross`?(t={x0:o,x1:o,y0:0,y1:i},n={x0:0,x1:r,y0:s,y1:s}):a===`top-left`?(t={x0:o,x1:o,y0:0,y1:s},n={x0:0,x1:o,y0:s,y1:s}):a===`top`?t={x0:o,x1:o,y0:0,y1:s}:a===`top-right`?(t={x0:o,x1:o,y0:0,y1:s},n={x0:o,x1:r,y0:s,y1:s}):a===`right`?n={x0:o,x1:r,y0:s,y1:s}:a===`bottom-right`?(t={x0:o,x1:o,y0:s,y1:i},n={x0:o,x1:r,y0:s,y1:s}):a===`bottom`?t={x0:o,x1:o,y0:s,y1:i}:a===`bottom-left`?(t={x0:o,x1:o,y0:s,y1:i},n={x0:0,x1:o,y0:s,y1:s}):a===`left`?n={x0:0,x1:o,y0:s,y1:s}:a===`x`?t={x0:o,x1:o,y0:0,y1:i}:a===`y`&&(n={x0:0,x1:r,y0:s,y1:s}),(0,G.jsxs)(G.Fragment,{children:[t&&(0,G.jsx)(_W,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&(0,G.jsx)(_W,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})}));vW.displayName=`Crosshair`;var yW=(0,_.createContext)({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),bW={isVisible:!1,position:[null,null],content:null,anchor:null},xW=(0,_.createContext)(bW),SW=function(e){var t=(0,_.useState)(bW),n=t[0],r=t[1],i=(0,_.useCallback)((function(e,t,n){var i=t[0],a=t[1];n===void 0&&(n=`top`),r({isVisible:!0,position:[i,a],anchor:n,content:e})}),[r]),a=(0,_.useCallback)((function(t,n,i){i===void 0&&(i=`top`);var a=e.current.getBoundingClientRect(),o=e.current.offsetWidth,s=o===a.width?1:o/a.width,c=`touches`in n?n.touches[0]:n,l=c.clientX,u=c.clientY,d=(l-a.left)*s,f=(u-a.top)*s;i!==`left`&&i!==`right`||(i=d<a.width/2?`right`:`left`),r({isVisible:!0,position:[d,f],anchor:i,content:t})}),[e,r]),o=(0,_.useCallback)((function(){r(bW)}),[r]);return{actions:(0,_.useMemo)((function(){return{showTooltipAt:i,showTooltipFromEvent:a,hideTooltip:o}}),[i,a,o]),state:n}},CW=function(){var e=(0,_.useContext)(yW);if(e===void 0)throw Error(`useTooltip must be used within a TooltipProvider`);return e},wW=function(){var e=(0,_.useContext)(xW);if(e===void 0)throw Error(`useTooltipState must be used within a TooltipProvider`);return e},TW=function(e){return e.isVisible},EW=function(){var e=wW();return TW(e)?(0,G.jsx)(fW,{position:e.position,anchor:e.anchor,children:e.content}):null},DW=function(e){var t=e.container,n=e.children,r=SW(t),i=r.actions,a=r.state;return(0,G.jsx)(yW.Provider,{value:i,children:(0,G.jsx)(xW.Provider,{value:a,children:n})})},OW=e(n(((e,t)=>{var n=aH(),r=XH(),i=qH(),a=`[object String]`;function o(e){return typeof e==`string`||!r(e)&&i(e)&&n(e)==a}t.exports=o}))(),1),kW=typeof window<`u`?window:typeof self<`u`?self:global,AW=null,jW=null,MW=20,NW=kW.clearTimeout,PW=kW.setTimeout,FW=kW.cancelAnimationFrame||kW.mozCancelAnimationFrame||kW.webkitCancelAnimationFrame,IW=kW.requestAnimationFrame||kW.mozRequestAnimationFrame||kW.webkitRequestAnimationFrame;FW==null||IW==null?(AW=NW,jW=function(e){return PW(e,MW)}):(AW=function([e,t]){FW(e),NW(t)},jW=function(e){let t=IW(function(){NW(n),e()}),n=PW(function(){FW(t),e()},MW);return[t,n]});function LW(e){let t,n,r,i,a,o,s,c=typeof document<`u`&&document.attachEvent;if(!c){o=function(e){let t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+`px`,i.style.height=n.offsetHeight+1+`px`,n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},a=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&typeof e.target.className.indexOf==`function`&&e.target.className.indexOf(`contract-trigger`)<0&&e.target.className.indexOf(`expand-trigger`)<0)return;let t=this;o(this),this.__resizeRAF__&&AW(this.__resizeRAF__),this.__resizeRAF__=jW(function(){a(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})};let e=!1,c=``;r=`animationstart`;let l=`Webkit Moz O ms`.split(` `),u=`webkitAnimationStart animationstart oAnimationStart MSAnimationStart`.split(` `),d=``;{let t=document.createElement(`fakeelement`);if(t.style.animationName!==void 0&&(e=!0),e===!1){for(let n=0;n<l.length;n++)if(t.style[l[n]+`AnimationName`]!==void 0){d=l[n],c=`-`+d.toLowerCase()+`-`,r=u[n],e=!0;break}}}n=`resizeanim`,t=`@`+c+`keyframes `+n+` { from { opacity: 0; } to { opacity: 0; } } `,i=c+`animation: 1ms `+n+`; `}let l=function(n){if(!n.getElementById(`detectElementResize`)){let r=(t||``)+`.resize-triggers { `+(i||``)+`visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }`,a=n.head||n.getElementsByTagName(`head`)[0],o=n.createElement(`style`);o.id=`detectElementResize`,o.type=`text/css`,e!=null&&o.setAttribute(`nonce`,e),o.styleSheet?o.styleSheet.cssText=r:o.appendChild(n.createTextNode(r)),a.appendChild(o)}};return{addResizeListener:function(e,t){if(c)e.attachEvent(`onresize`,t);else{if(!e.__resizeTriggers__){let t=e.ownerDocument,i=kW.getComputedStyle(e);i&&i.position===`static`&&(e.style.position=`relative`),l(t),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=t.createElement(`div`)).className=`resize-triggers`;let a=t.createElement(`div`);a.className=`expand-trigger`,a.appendChild(t.createElement(`div`));let c=t.createElement(`div`);c.className=`contract-trigger`,e.__resizeTriggers__.appendChild(a),e.__resizeTriggers__.appendChild(c),e.appendChild(e.__resizeTriggers__),o(e),e.addEventListener(`scroll`,s,!0),r&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName===n&&o(e)},e.__resizeTriggers__.addEventListener(r,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(t)}},removeResizeListener:function(e,t){if(c)e.detachEvent(`onresize`,t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener(`scroll`,s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch{}}}}}var RW=class extends _.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;let{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){let r=window.getComputedStyle(this._parentNode)||{},i=parseFloat(r.paddingLeft||`0`),a=parseFloat(r.paddingRight||`0`),o=parseFloat(r.paddingTop||`0`),s=parseFloat(r.paddingBottom||`0`),c=this._parentNode.getBoundingClientRect(),l=c.height-o-s,u=c.width-i-a;if(!e&&this.state.height!==l||!t&&this.state.width!==u){this.setState({height:l,width:u});let e=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn(`scaledWidth and scaledHeight parameters have been deprecated; use width and height instead`))};typeof n==`function`&&n({height:l,width:u,get scaledHeight(){return e(),l},get scaledWidth(){return e(),u}})}}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){let{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(t!=null&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;let n=t.ownerDocument.defaultView.ResizeObserver;n==null?(this._detectElementResize=LW(e),this._detectElementResize.addResizeListener(t,this._onResize)):(this._resizeObserver=new n(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(t)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){let{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:i=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:o,onResize:s,style:c={},tagName:l=`div`,...u}=this.props,{height:d,width:f}=this.state,p={overflow:`visible`},m={},h=!1;return r||(d===0&&(h=!0),p.height=0,m.height=d,m.scaledHeight=d),i||(f===0&&(h=!0),p.width=0,m.width=f,m.scaledWidth=f),a&&(h=!1),(0,_.createElement)(l,{ref:this._setRef,style:{...p,...c},...u},!h&&e(m))}};function zW(e,t,n,r){var i=this,a=(0,_.useRef)(null),o=(0,_.useRef)(0),s=(0,_.useRef)(0),c=(0,_.useRef)(null),l=(0,_.useRef)([]),u=(0,_.useRef)(),d=(0,_.useRef)(),f=(0,_.useRef)(e),p=(0,_.useRef)(!0),m=(0,_.useRef)(),h=(0,_.useRef)();f.current=e;var g=typeof window<`u`,v=!t&&t!==0&&g;if(typeof e!=`function`)throw TypeError(`Expected a function`);t=+t||0;var y=!!(n||={}).leading,b=!(`trailing`in n)||!!n.trailing,x=!!n.flushOnExit&&b,S=`maxWait`in n,C=`debounceOnServer`in n&&!!n.debounceOnServer,w=S?Math.max(+n.maxWait||0,t):null,T=(0,_.useMemo)(function(){var e=function(e){var t=l.current,n=u.current;return l.current=u.current=null,o.current=e,s.current=s.current||e,d.current=f.current.apply(n,t)},n=function(e,t){v&&cancelAnimationFrame(c.current),c.current=v?requestAnimationFrame(e):setTimeout(e,t)},_=function(e){if(!p.current)return!1;var n=e-a.current;return!a.current||n>=t||n<0||S&&e-o.current>=w},T=function(t){return c.current=null,b&&l.current?e(t):(l.current=u.current=null,d.current)},E=function e(){var r=Date.now();if(y&&s.current===o.current&&D(),_(r))return T(r);if(p.current){var i=t-(r-a.current);n(e,S?Math.min(i,w-(r-o.current)):i)}},D=function(){r&&r({})},O=function(){if(g||C){var r,s=Date.now(),f=_(s);if(l.current=[].slice.call(arguments),u.current=i,a.current=s,x&&!m.current&&(m.current=function(){globalThis.document?.visibilityState===`hidden`&&h.current.flush()},(r=globalThis.document)==null||r.addEventListener==null||r.addEventListener(`visibilitychange`,m.current)),f){if(!c.current&&p.current)return o.current=a.current,n(E,t),y?e(a.current):d.current;if(S)return n(E,t),e(a.current)}return c.current||n(E,t),d.current}};return O.cancel=function(){var e=c.current;e&&(v?cancelAnimationFrame(c.current):clearTimeout(c.current)),o.current=0,l.current=a.current=u.current=c.current=null,e&&r&&r({})},O.isPending=function(){return!!c.current},O.flush=function(){return c.current?T(Date.now()):d.current},O},[y,S,t,w,b,x,v,g,C,r]);return h.current=T,(0,_.useEffect)(function(){return p.current=!0,function(){var e;x&&h.current.flush(),m.current&&=((e=globalThis.document)==null||e.removeEventListener==null||e.removeEventListener(`visibilitychange`,m.current),null),p.current=!1}},[x]),T}function BW(e,t){return e===t}function VW(e,t,n){var r=n&&n.equalityFn||BW,i=(0,_.useRef)(e),a=(0,_.useState)({})[1],o=zW((0,_.useCallback)(function(e){i.current=e,a({})},[a]),t,n,a),s=(0,_.useRef)(e);return r(s.current,e)||(o(e),s.current=e),[i.current,o]}function HW(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function UW(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function WW(){}var GW=.7,KW=1/GW,qW=`\\s*([+-]?\\d+)\\s*`,JW=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,YW=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,XW=/^#([0-9a-f]{3,8})$/,ZW=RegExp(`^rgb\\(${qW},${qW},${qW}\\)$`),QW=RegExp(`^rgb\\(${YW},${YW},${YW}\\)$`),$W=RegExp(`^rgba\\(${qW},${qW},${qW},${JW}\\)$`),eG=RegExp(`^rgba\\(${YW},${YW},${YW},${JW}\\)$`),tG=RegExp(`^hsl\\(${JW},${YW},${YW}\\)$`),nG=RegExp(`^hsla\\(${JW},${YW},${YW},${JW}\\)$`),rG={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};HW(WW,cG,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:iG,formatHex:iG,formatHex8:aG,formatHsl:oG,formatRgb:sG,toString:sG});function iG(){return this.rgb().formatHex()}function aG(){return this.rgb().formatHex8()}function oG(){return xG(this).formatHsl()}function sG(){return this.rgb().formatRgb()}function cG(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=XW.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?lG(t):n===3?new pG(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?uG(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?uG(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=ZW.exec(e))?new pG(t[1],t[2],t[3],1):(t=QW.exec(e))?new pG(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=$W.exec(e))?uG(t[1],t[2],t[3],t[4]):(t=eG.exec(e))?uG(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=tG.exec(e))?bG(t[1],t[2]/100,t[3]/100,1):(t=nG.exec(e))?bG(t[1],t[2]/100,t[3]/100,t[4]):rG.hasOwnProperty(e)?lG(rG[e]):e===`transparent`?new pG(NaN,NaN,NaN,0):null}function lG(e){return new pG(e>>16&255,e>>8&255,e&255,1)}function uG(e,t,n,r){return r<=0&&(e=t=n=NaN),new pG(e,t,n,r)}function dG(e){return e instanceof WW||(e=cG(e)),e?(e=e.rgb(),new pG(e.r,e.g,e.b,e.opacity)):new pG}function fG(e,t,n,r){return arguments.length===1?dG(e):new pG(e,t,n,r??1)}function pG(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}HW(pG,fG,UW(WW,{brighter(e){return e=e==null?KW:KW**+e,new pG(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?GW:GW**+e,new pG(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new pG(vG(this.r),vG(this.g),vG(this.b),_G(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:mG,formatHex:mG,formatHex8:hG,formatRgb:gG,toString:gG}));function mG(){return`#${yG(this.r)}${yG(this.g)}${yG(this.b)}`}function hG(){return`#${yG(this.r)}${yG(this.g)}${yG(this.b)}${yG((isNaN(this.opacity)?1:this.opacity)*255)}`}function gG(){let e=_G(this.opacity);return`${e===1?`rgb(`:`rgba(`}${vG(this.r)}, ${vG(this.g)}, ${vG(this.b)}${e===1?`)`:`, ${e})`}`}function _G(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function vG(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function yG(e){return e=vG(e),(e<16?`0`:``)+e.toString(16)}function bG(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new CG(e,t,n,r)}function xG(e){if(e instanceof CG)return new CG(e.h,e.s,e.l,e.opacity);if(e instanceof WW||(e=cG(e)),!e)return new CG;if(e instanceof CG)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new CG(o,s,c,e.opacity)}function SG(e,t,n,r){return arguments.length===1?xG(e):new CG(e,t,n,r??1)}function CG(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}HW(CG,SG,UW(WW,{brighter(e){return e=e==null?KW:KW**+e,new CG(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?GW:GW**+e,new CG(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new pG(EG(e>=240?e-240:e+120,i,r),EG(e,i,r),EG(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new CG(wG(this.h),TG(this.s),TG(this.l),_G(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=_G(this.opacity);return`${e===1?`hsl(`:`hsla(`}${wG(this.h)}, ${TG(this.s)*100}%, ${TG(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function wG(e){return e=(e||0)%360,e<0?e+360:e}function TG(e){return Math.max(0,Math.min(1,e||0))}function EG(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var DG=Math.PI/180,OG=180/Math.PI,kG=-.14861,AG=1.78277,jG=-.29227,MG=-.90649,NG=1.97294,PG=NG*MG,FG=NG*AG,IG=AG*jG-MG*kG;function LG(e){if(e instanceof zG)return new zG(e.h,e.s,e.l,e.opacity);e instanceof pG||(e=dG(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(IG*r+PG*t-FG*n)/(IG+PG-FG),a=r-i,o=(NG*(n-i)-jG*a)/MG,s=Math.sqrt(o*o+a*a)/(NG*i*(1-i)),c=s?Math.atan2(o,a)*OG-120:NaN;return new zG(c<0?c+360:c,s,i,e.opacity)}function RG(e,t,n,r){return arguments.length===1?LG(e):new zG(e,t,n,r??1)}function zG(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}HW(zG,RG,UW(WW,{brighter(e){return e=e==null?KW:KW**+e,new zG(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?GW:GW**+e,new zG(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*DG,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new pG(255*(t+n*(kG*r+AG*i)),255*(t+n*(jG*r+MG*i)),255*(t+NG*r*n),this.opacity)}}));function BG(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}function VG(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,s=r<t-1?e[r+2]:2*a-i;return BG((n-r/t)*t,o,i,a,s)}}var HG=e=>()=>e;function UG(e,t){return function(n){return e+n*t}}function WG(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function GG(e,t){var n=t-e;return n?UG(e,n>180||n<-180?n-360*Math.round(n/360):n):HG(isNaN(e)?t:e)}function KG(e){return(e=+e)==1?qG:function(t,n){return n-t?WG(t,n,e):HG(isNaN(t)?n:t)}}function qG(e,t){var n=t-e;return n?UG(e,n):HG(isNaN(e)?t:e)}var JG=(function e(t){var n=KG(t);function r(e,t){var r=n((e=fG(e)).r,(t=fG(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=qG(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function YG(e){return function(t){for(var n=t.length,r=Array(n),i=Array(n),a=Array(n),o=0,s;o<n;++o)s=fG(t[o]),r[o]=s.r||0,i[o]=s.g||0,a[o]=s.b||0;return r=e(r),i=e(i),a=e(a),s.opacity=1,function(e){return s.r=r(e),s.g=i(e),s.b=a(e),s+``}}}var XG=YG(VG);function ZG(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function QG(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function $G(e,t){for(var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o=0;o<r;++o)i[o]=cK(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function eK(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function tK(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function nK(e,t){var n={},r={},i;for(i in typeof e==`object`&&e||(e={}),typeof t==`object`&&t||(t={}),t)i in e?n[i]=cK(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var rK=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,iK=new RegExp(rK.source,`g`);function aK(e){return function(){return e}}function oK(e){return function(t){return e(t)+``}}function sK(e,t){var n=rK.lastIndex=iK.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=rK.exec(e))&&(i=iK.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:tK(r,i)})),n=iK.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?oK(c[0].x):aK(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function cK(e,t){var n=typeof t,r;return t==null||n===`boolean`?HG(t):(n===`number`?tK:n===`string`?(r=cG(t))?(t=r,JG):sK:t instanceof cG?JG:t instanceof Date?eK:QG(t)?ZG:Array.isArray(t)?$G:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?nK:tK)(e,t)}function lK(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var uK=180/Math.PI,dK={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function fK(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*uK,skewX:Math.atan(c)*uK,scaleX:o,scaleY:s}}var pK;function mK(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?dK:fK(t.a,t.b,t.c,t.d,t.e,t.f)}function hK(e){return e==null||(pK||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),pK.setAttribute(`transform`,e),!(e=pK.transform.baseVal.consolidate()))?dK:(e=e.matrix,fK(e.a,e.b,e.c,e.d,e.e,e.f))}function gK(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:tK(e,i)},{i:c-2,x:tK(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:tK(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:tK(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:tK(e,n)},{i:s-2,x:tK(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var _K=gK(mK,`px, `,`px)`,`deg)`),vK=gK(hK,`, `,`)`,`)`);function yK(e){return(function t(n){n=+n;function r(t,r){var i=e((t=RG(t)).h,(r=RG(r)).h),a=qG(t.s,r.s),o=qG(t.l,r.l),s=qG(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=a(e),t.l=o(e**+n),t.opacity=s(e),t+``}}return r.gamma=t,r})(1)}yK(GG);var bK=yK(qG),xK=n(((e,t)=>{function n(e){return this.__data__.set(e,`__lodash_hash_undefined__`),this}t.exports=n})),SK=n(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),CK=n(((e,t)=>{var n=kH(),r=xK(),i=SK();function a(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=r,a.prototype.has=i,t.exports=a})),wK=n(((e,t)=>{function n(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}t.exports=n})),TK=n(((e,t)=>{function n(e){return e!==e}t.exports=n})),EK=n(((e,t)=>{function n(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}t.exports=n})),DK=n(((e,t)=>{var n=wK(),r=TK(),i=EK();function a(e,t,a){return t===t?i(e,t,a):n(e,r,a)}t.exports=a})),OK=n(((e,t)=>{var n=DK();function r(e,t){return!!(e!=null&&e.length)&&n(e,t,0)>-1}t.exports=r})),kK=n(((e,t)=>{function n(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}t.exports=n})),AK=n(((e,t)=>{function n(e,t){return e.has(t)}t.exports=n})),jK=n(((e,t)=>{var n=CK(),r=OK(),i=kK(),a=FU(),o=iU(),s=AK(),c=200;function l(e,t,l,u){var d=-1,f=r,p=!0,m=e.length,h=[],g=t.length;if(!m)return h;l&&(t=a(t,o(l))),u?(f=i,p=!1):t.length>=c&&(f=s,p=!1,t=new n(t));outer:for(;++d<m;){var _=e[d],v=l==null?_:l(_);if(_=u||_!==0?_:0,p&&v===v){for(var y=g;y--;)if(t[y]===v)continue outer;h.push(_)}else f(t,v,u)||h.push(_)}return h}t.exports=l})),MK=n(((e,t)=>{var n=jK(),r=EU(),i=$H();t.exports=r(function(e,t){return i(e)?n(e,t):[]})}));function NK(e){return function(){return e}}var PK=Math.abs,FK=Math.atan2,IK=Math.cos,LK=Math.max,RK=Math.min,zK=Math.sin,BK=Math.sqrt,VK=Math.PI,HK=VK/2,UK=2*VK;function WK(e){return e>1?0:e<-1?VK:Math.acos(e)}function GK(e){return e>=1?HK:e<=-1?-HK:Math.asin(e)}var KK=Math.PI,qK=2*KK,JK=1e-6,YK=qK-JK;function XK(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function ZK(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return XK;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var QK=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?XK:ZK(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>JK){if(!(Math.abs(u*s-c*l)>JK)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((KK-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>JK&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>JK||Math.abs(this._y1-l)>JK)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%qK+qK),d>YK?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>JK&&this._append`A${n},${n},0,${+(d>=KK)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};QK.prototype;function $K(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new QK(t)}function eq(e){return e.innerRadius}function tq(e){return e.outerRadius}function nq(e){return e.startAngle}function rq(e){return e.endAngle}function iq(e){return e&&e.padAngle}function aq(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<1e-12))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function oq(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/BK(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*BK(LK(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x01:-u,y01:-d,x11:w*(i/x-1),y11:T*(i/x-1)}}function sq(){var e=eq,t=tq,n=NK(0),r=null,i=nq,a=rq,o=iq,s=null,c=$K(l);function l(){var l,u,d=+e.apply(this,arguments),f=+t.apply(this,arguments),p=i.apply(this,arguments)-HK,m=a.apply(this,arguments)-HK,h=PK(m-p),g=m>p;if(s||=l=c(),f<d&&(u=f,f=d,d=u),!(f>1e-12))s.moveTo(0,0);else if(h>UK-1e-12)s.moveTo(f*IK(p),f*zK(p)),s.arc(0,0,f,p,m,!g),d>1e-12&&(s.moveTo(d*IK(m),d*zK(m)),s.arc(0,0,d,m,p,g));else{var _=p,v=m,y=p,b=m,x=h,S=h,C=o.apply(this,arguments)/2,w=C>1e-12&&(r?+r.apply(this,arguments):BK(d*d+f*f)),T=RK(PK(f-d)/2,+n.apply(this,arguments)),E=T,D=T,O,k;if(w>1e-12){var A=GK(w/d*zK(C)),j=GK(w/f*zK(C));(x-=A*2)>1e-12?(A*=g?1:-1,y+=A,b-=A):(x=0,y=b=(p+m)/2),(S-=j*2)>1e-12?(j*=g?1:-1,_+=j,v-=j):(S=0,_=v=(p+m)/2)}var M=f*IK(_),N=f*zK(_),P=d*IK(b),F=d*zK(b);if(T>1e-12){var I=f*IK(v),L=f*zK(v),R=d*IK(y),z=d*zK(y),B;if(h<VK){if(B=aq(M,N,R,z,I,L,P,F)){var ee=M-B[0],te=N-B[1],ne=I-B[0],re=L-B[1],ie=1/zK(WK((ee*ne+te*re)/(BK(ee*ee+te*te)*BK(ne*ne+re*re)))/2),ae=BK(B[0]*B[0]+B[1]*B[1]);E=RK(T,(d-ae)/(ie-1)),D=RK(T,(f-ae)/(ie+1))}else E=D=0}}S>1e-12?D>1e-12?(O=oq(R,z,M,N,f,D,g),k=oq(I,L,P,F,f,D,g),s.moveTo(O.cx+O.x01,O.cy+O.y01),D<T?s.arc(O.cx,O.cy,D,FK(O.y01,O.x01),FK(k.y01,k.x01),!g):(s.arc(O.cx,O.cy,D,FK(O.y01,O.x01),FK(O.y11,O.x11),!g),s.arc(0,0,f,FK(O.cy+O.y11,O.cx+O.x11),FK(k.cy+k.y11,k.cx+k.x11),!g),s.arc(k.cx,k.cy,D,FK(k.y11,k.x11),FK(k.y01,k.x01),!g))):(s.moveTo(M,N),s.arc(0,0,f,_,v,!g)):s.moveTo(M,N),!(d>1e-12)||!(x>1e-12)?s.lineTo(P,F):E>1e-12?(O=oq(P,F,I,L,d,-E,g),k=oq(M,N,R,z,d,-E,g),s.lineTo(O.cx+O.x01,O.cy+O.y01),E<T?s.arc(O.cx,O.cy,E,FK(O.y01,O.x01),FK(k.y01,k.x01),!g):(s.arc(O.cx,O.cy,E,FK(O.y01,O.x01),FK(O.y11,O.x11),!g),s.arc(0,0,d,FK(O.cy+O.y11,O.cx+O.x11),FK(k.cy+k.y11,k.cx+k.x11),g),s.arc(k.cx,k.cy,E,FK(k.y11,k.x11),FK(k.y01,k.x01),!g))):s.arc(0,0,d,b,y,g)}if(s.closePath(),l)return s=null,l+``||null}return l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-VK/2;return[IK(r)*n,zK(r)*n]},l.innerRadius=function(t){return arguments.length?(e=typeof t==`function`?t:NK(+t),l):e},l.outerRadius=function(e){return arguments.length?(t=typeof e==`function`?e:NK(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n=typeof e==`function`?e:NK(+e),l):n},l.padRadius=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:NK(+e),l):r},l.startAngle=function(e){return arguments.length?(i=typeof e==`function`?e:NK(+e),l):i},l.endAngle=function(e){return arguments.length?(a=typeof e==`function`?e:NK(+e),l):a},l.padAngle=function(e){return arguments.length?(o=typeof e==`function`?e:NK(+e),l):o},l.context=function(e){return arguments.length?(s=e??null,l):s},l}Array.prototype.slice;function cq(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function lq(e){this._context=e}lq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};function uq(e){return new lq(e)}function dq(e){return e[0]}function fq(e){return e[1]}function pq(e,t){var n=NK(!0),r=null,i=uq,a=null,o=$K(s);e=typeof e==`function`?e:e===void 0?dq:NK(e),t=typeof t==`function`?t:t===void 0?fq:NK(t);function s(s){var c,l=(s=cq(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:NK(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:NK(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:NK(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function mq(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function hq(e){return e}function gq(){var e=hq,t=mq,n=null,r=NK(0),i=NK(UK),a=NK(0);function o(o){var s,c=(o=cq(o)).length,l,u,d=0,f=Array(c),p=Array(c),m=+r.apply(this,arguments),h=Math.min(UK,Math.max(-UK,i.apply(this,arguments)-m)),g,_=Math.min(Math.abs(h)/c,a.apply(this,arguments)),v=_*(h<0?-1:1),y;for(s=0;s<c;++s)(y=p[f[s]=s]=+e(o[s],s,o))>0&&(d+=y);for(t==null?n!=null&&f.sort(function(e,t){return n(o[e],o[t])}):f.sort(function(e,n){return t(p[e],p[n])}),s=0,u=d?(h-c*v)/d:0;s<c;++s,m=g)l=f[s],y=p[l],g=m+(y>0?y*u:0)+v,p[l]={data:o[l],index:s,value:y,startAngle:m,endAngle:g,padAngle:_};return p}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:NK(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:NK(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:NK(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:NK(+e),o):a},o}function _q(){}function vq(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function yq(e){this._context=e}yq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:vq(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:vq(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function bq(e){return new yq(e)}function xq(e){this._context=e}xq.prototype={areaStart:_q,areaEnd:_q,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:vq(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Sq(e){return new xq(e)}function Cq(e){this._context=e}Cq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:vq(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function wq(e){return new Cq(e)}function Tq(e,t){this._basis=new yq(e),this._beta=t}Tq.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var Eq=(function e(t){function n(e){return t===1?new yq(e):new Tq(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function Dq(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Oq(e,t){this._context=e,this._k=(1-t)/6}Oq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Dq(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Dq(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var kq=(function e(t){function n(e){return new Oq(e,t)}return n.tension=function(t){return e(+t)},n})(0);function Aq(e,t){this._context=e,this._k=(1-t)/6}Aq.prototype={areaStart:_q,areaEnd:_q,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Dq(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var jq=(function e(t){function n(e){return new Aq(e,t)}return n.tension=function(t){return e(+t)},n})(0);function Mq(e,t){this._context=e,this._k=(1-t)/6}Mq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Dq(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Nq=(function e(t){function n(e){return new Mq(e,t)}return n.tension=function(t){return e(+t)},n})(0);function Pq(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>1e-12){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function Fq(e,t){this._context=e,this._alpha=t}Fq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Pq(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Iq=(function e(t){function n(e){return t?new Fq(e,t):new Oq(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function Lq(e,t){this._context=e,this._alpha=t}Lq.prototype={areaStart:_q,areaEnd:_q,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Pq(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Rq=(function e(t){function n(e){return t?new Lq(e,t):new Aq(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function zq(e,t){this._context=e,this._alpha=t}zq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Pq(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Bq=(function e(t){function n(e){return t?new zq(e,t):new Mq(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function Vq(e){this._context=e}Vq.prototype={areaStart:_q,areaEnd:_q,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Hq(e){return new Vq(e)}function Uq(e){return e<0?-1:1}function Wq(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Uq(a)+Uq(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Gq(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Kq(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function qq(e){this._context=e}qq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Kq(this,this._t0,Gq(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Kq(this,Gq(this,n=Wq(this,e,t)),n);break;default:Kq(this,this._t0,n=Wq(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Jq(e){this._context=new Yq(e)}(Jq.prototype=Object.create(qq.prototype)).point=function(e,t){qq.prototype.point.call(this,t,e)};function Yq(e){this._context=e}Yq.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Xq(e){return new qq(e)}function Zq(e){return new Jq(e)}function Qq(e){this._context=e}Qq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=$q(e),i=$q(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o])}(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function $q(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function eJ(e){return new Qq(e)}function tJ(e,t){this._context=e,this._t=t}tJ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};function nJ(e){return new tJ(e,.5)}function rJ(e){return new tJ(e,0)}function iJ(e){return new tJ(e,1)}function aJ(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function oJ(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function sJ(e,t){return e[t]}function cJ(e){let t=[];return t.key=e,t}function lJ(){var e=NK([]),t=oJ,n=aJ,r=sJ;function i(i){var a=Array.from(e.apply(this,arguments),cJ),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o<s;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,l=cq(t(a));o<s;++o)a[l[o]].index=o;return n(a,l),a}return i.keys=function(t){return arguments.length?(e=typeof t==`function`?t:NK(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:NK(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?oJ:typeof e==`function`?e:NK(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??aJ,i):n},i}function uJ(e,t){if((c=e.length)>0)for(var n,r=0,i,a,o,s,c,l=e[t[0]].length;r<l;++r)for(o=s=0,n=0;n<c;++n)(a=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=o,i[1]=o+=a):a<0?(i[1]=s,i[0]=s+=a):(i[0]=0,i[1]=a)}function dJ(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function fJ(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function pJ(e){let t,n,r;e.length===2?(t=e===dJ||e===fJ?e:mJ,n=e,r=e):(t=dJ,n=(t,n)=>dJ(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function mJ(){return 0}function hJ(e){return e===null?NaN:+e}var gJ=pJ(dJ),_J=gJ.right;gJ.left,pJ(hJ).center;var vJ=class extends Map{constructor(e,t=SJ){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(yJ(this,e))}has(e){return super.has(yJ(this,e))}set(e,t){return super.set(bJ(this,e),t)}delete(e){return super.delete(xJ(this,e))}};function yJ({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function bJ({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function xJ({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function SJ(e){return typeof e==`object`&&e?e.valueOf():e}var CJ=Math.sqrt(50),wJ=Math.sqrt(10),TJ=Math.sqrt(2);function EJ(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=CJ?10:a>=wJ?5:a>=TJ?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?EJ(e,t,n*2):[s,c,l]}function DJ(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?EJ(t,e,n):EJ(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r){if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o}else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function OJ(e,t,n){return t=+t,e=+e,n=+n,EJ(e,t,n)[2]}function kJ(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?OJ(t,e,n):OJ(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function AJ(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}function jJ(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var MJ=Symbol(`implicit`);function NJ(){var e=new vJ,t=[],n=[],r=MJ;function i(i){let a=e.get(i);if(a===void 0){if(r!==MJ)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new vJ;for(let r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return NJ(t,n).unknown(r)},jJ.apply(i,arguments),i}function PJ(){var e=NJ().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var e=t().length,d=i<r,f=d?i:r,p=d?r:i;a=(p-f)/Math.max(1,e-c+l*2),s&&(a=Math.floor(a)),f+=(p-f-a*(e-c))*u,o=a*(1-c),s&&(f=Math.round(f),o=Math.round(o));var m=AJ(e).map(function(e){return f+a*e});return n(d?m.reverse():m)}return e.domain=function(e){return arguments.length?(t(e),d()):t()},e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,d()):s},e.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),d()):c},e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},e.paddingOuter=function(e){return arguments.length?(l=+e,d()):l},e.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},e.copy=function(){return PJ(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},jJ.apply(d(),arguments)}function FJ(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return FJ(t())},e}function IJ(){return FJ(PJ.apply(null,arguments).paddingInner(1))}function LJ(e){return function(){return e}}function RJ(e){return+e}var zJ=[0,1];function BJ(e){return e}function VJ(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:LJ(isNaN(t)?NaN:.5)}function HJ(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function UJ(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=VJ(i,r),a=n(o,a)):(r=VJ(r,i),a=n(a,o)),function(e){return a(r(e))}}function WJ(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=VJ(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=_J(e,t,1,r)-1;return a[n](i[n](t))}}function GJ(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function KJ(){var e=zJ,t=zJ,n=cK,r,i,a,o=BJ,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==BJ&&(o=HJ(e[0],e[n-1])),s=n>2?WJ:UJ,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),tK))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,RJ),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=lK,u()},d.clamp=function(e){return arguments.length?(o=e?!0:BJ,u()):o!==BJ},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function qJ(){return KJ()(BJ,BJ)}function JJ(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function YJ(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function XJ(e){return e=YJ(Math.abs(e)),e?e[1]:NaN}function ZJ(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function QJ(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var $J=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function eY(e){if(!(t=$J.exec(e)))throw Error(`invalid format: `+e);var t;return new tY({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}eY.prototype=tY.prototype;function tY(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}tY.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function nY(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0)}return r>0?e.slice(0,r)+e.slice(i+1):e}var rY;function iY(e,t){var n=YJ(e,t);if(!n)return rY=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(rY=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+YJ(e,Math.max(0,t+a-1))[0]}function aY(e,t){var n=YJ(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var oY={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:JJ,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>aY(e*100,t),r:aY,s:iY,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function sY(e){return e}var cY=Array.prototype.map,lY=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function uY(e){var t=e.grouping===void 0||e.thousands===void 0?sY:ZJ(cY.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?sY:QJ(cY.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=eY(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):oY[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=oY[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=nY(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&rY!==void 0?lY[8+rY/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++o<l;)if(p=e.charCodeAt(o),48>p||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<h?Array(h-T+1).join(u):``;switch(g&&m&&(e=t(E+e,E.length?h-r.length:1/0),E=``),d){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(XJ(t)/3)))*3,r=10**-n,i=l((e=eY(e),e.type=`f`,e),{suffix:lY[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var dY,fY,pY;mY({thousands:`,`,grouping:[3],currency:[`$`,``]});function mY(e){return dY=uY(e),fY=dY.format,pY=dY.formatPrefix,dY}function hY(e){return Math.max(0,-XJ(Math.abs(e)))}function gY(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(XJ(t)/3)))*3-XJ(Math.abs(e)))}function _Y(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,XJ(t)-XJ(e))+1}function vY(e,t,n,r){var i=kJ(e,t,n),a;switch(r=eY(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=gY(i,o))&&(r.precision=a),pY(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=_Y(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=hY(i))&&(r.precision=a-(r.type===`%`)*2)}return fY(r)}function yY(e){var t=e.domain;return e.ticks=function(e){var n=t();return DJ(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return vY(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-->0;){if(l=OJ(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function bY(){var e=qJ();return e.copy=function(){return GJ(e,bY())},jJ.apply(e,arguments),yY(e)}function xY(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function SY(e){return Math.log(e)}function CY(e){return Math.exp(e)}function wY(e){return-Math.log(-e)}function TY(e){return-Math.exp(-e)}function EY(e){return isFinite(e)?+(`1e`+e):e<0?0:e}function DY(e){return e===10?EY:e===Math.E?Math.exp:t=>e**+t}function OY(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function kY(e){return(t,n)=>-e(-t,n)}function AY(e){let t=e(SY,CY),n=t.domain,r=10,i,a;function o(){return i=OY(r),a=DY(r),n()[0]<0?(i=kY(i),a=kY(a),e(wY,TY)):e(SY,CY),t}return t.base=function(e){return arguments.length?(r=+e,o()):r},t.domain=function(e){return arguments.length?(n(e),o()):n()},t.ticks=e=>{let t=n(),o=t[0],s=t[t.length-1],c=s<o;c&&([o,s]=[s,o]);let l=i(o),u=i(s),d,f,p=e==null?10:+e,m=[];if(!(r%1)&&u-l<p){if(l=Math.floor(l),u=Math.ceil(u),o>0){for(;l<=u;++l)for(d=1;d<r;++d)if(f=l<0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}}else for(;l<=u;++l)for(d=r-1;d>=1;--d)if(f=l>0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}m.length*2<p&&(m=DJ(o,s,p))}else m=DJ(l,u,Math.min(u-l,p)).map(a);return c?m.reverse():m},t.tickFormat=(e,n)=>{if(e??=10,n??=r===10?`s`:`,`,typeof n!=`function`&&(!(r%1)&&(n=eY(n)).precision==null&&(n.trim=!0),n=fY(n)),e===1/0)return n;let o=Math.max(1,r*e/t.ticks().length);return e=>{let t=e/a(Math.round(i(e)));return t*r<r-.5&&(t*=r),t<=o?n(e):``}},t.nice=()=>n(xY(n(),{floor:e=>a(Math.floor(i(e))),ceil:e=>a(Math.ceil(i(e)))})),t}function jY(){let e=AY(KJ()).domain([1,10]);return e.copy=()=>GJ(e,jY()).base(e.base()),jJ.apply(e,arguments),e}function MY(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function NY(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function PY(e){var t=1,n=e(MY(t),NY(t));return n.constant=function(n){return arguments.length?e(MY(t=+n),NY(t)):t},yY(n)}function FY(){var e=PY(KJ());return e.copy=function(){return GJ(e,FY()).constant(e.constant())},jJ.apply(e,arguments)}var IY=new Date,LY=new Date;function RY(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>RY(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}}),n&&(i.count=(t,r)=>(IY.setTime(+t),LY.setTime(+r),e(IY),e(LY),Math.floor(n(IY,LY))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var zY=RY(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);zY.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?RY(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):zY),zY.range;var BY=1e3,VY=BY*60,HY=VY*60,UY=HY*24,WY=UY*7,GY=UY*30,KY=UY*365,qY=RY(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*BY)},(e,t)=>(t-e)/BY,e=>e.getUTCSeconds());qY.range;var JY=RY(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*BY)},(e,t)=>{e.setTime(+e+t*VY)},(e,t)=>(t-e)/VY,e=>e.getMinutes());JY.range;var YY=RY(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*VY)},(e,t)=>(t-e)/VY,e=>e.getUTCMinutes());YY.range;var XY=RY(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*BY-e.getMinutes()*VY)},(e,t)=>{e.setTime(+e+t*HY)},(e,t)=>(t-e)/HY,e=>e.getHours());XY.range;var ZY=RY(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*HY)},(e,t)=>(t-e)/HY,e=>e.getUTCHours());ZY.range;var QY=RY(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*VY)/UY,e=>e.getDate()-1);QY.range;var $Y=RY(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/UY,e=>e.getUTCDate()-1);$Y.range;var eX=RY(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/UY,e=>Math.floor(e/UY));eX.range;function tX(e){return RY(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*VY)/WY)}var nX=tX(0),rX=tX(1),iX=tX(2),aX=tX(3),oX=tX(4),sX=tX(5),cX=tX(6);nX.range,rX.range,iX.range,aX.range,oX.range,sX.range,cX.range;function lX(e){return RY(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/WY)}var uX=lX(0),dX=lX(1),fX=lX(2),pX=lX(3),mX=lX(4),hX=lX(5),gX=lX(6);uX.range,dX.range,fX.range,pX.range,mX.range,hX.range,gX.range;var _X=RY(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());_X.range;var vX=RY(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());vX.range;var yX=RY(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());yX.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:RY(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),yX.range;var bX=RY(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());bX.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:RY(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),bX.range;function xX(e,t,n,r,i,a){let o=[[qY,1,BY],[qY,5,5*BY],[qY,15,15*BY],[qY,30,30*BY],[a,1,VY],[a,5,5*VY],[a,15,15*VY],[a,30,30*VY],[i,1,HY],[i,3,3*HY],[i,6,6*HY],[i,12,12*HY],[r,1,UY],[r,2,2*UY],[n,1,WY],[t,1,GY],[t,3,3*GY],[e,1,KY]];function s(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:c(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function c(t,n,r){let i=Math.abs(n-t)/r,a=pJ(([,,e])=>e).right(o,i);if(a===o.length)return e.every(kJ(t/KY,n/KY,r));if(a===0)return zY.every(Math.max(kJ(t,n,r),1));let[s,c]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(c)}return[s,c]}var[SX,CX]=xX(bX,vX,uX,eX,ZY,YY),[wX,TX]=xX(yX,_X,nX,QY,XY,JY);function EX(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function DX(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function OX(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function kX(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=IX(i),u=LX(i),d=IX(a),f=LX(a),p=IX(o),m=LX(o),h=IX(s),g=LX(s),_=IX(c),v=LX(c),y={a:N,A:P,b:F,B:I,c:null,d:iZ,e:iZ,f:lZ,g:bZ,G:SZ,H:aZ,I:oZ,j:sZ,L:cZ,m:uZ,M:dZ,p:L,q:R,Q:GZ,s:KZ,S:fZ,u:pZ,U:mZ,V:gZ,w:_Z,W:vZ,x:null,X:null,y:yZ,Y:xZ,Z:CZ,"%":WZ},b={a:z,A:B,b:ee,B:te,c:null,d:wZ,e:wZ,f:kZ,g:BZ,G:HZ,H:TZ,I:EZ,j:DZ,L:OZ,m:AZ,M:jZ,p:ne,q:re,Q:GZ,s:KZ,S:MZ,u:NZ,U:PZ,V:IZ,w:LZ,W:RZ,x:null,X:null,y:zZ,Y:VZ,Z:UZ,"%":WZ},x={a:E,A:D,b:O,B:k,c:A,d:JX,e:JX,f:eZ,g:WX,G:UX,H:XX,I:XX,j:YX,L:$X,m:qX,M:ZX,p:T,q:KX,Q:nZ,s:rZ,S:QX,u:zX,U:BX,V:VX,w:RX,W:HX,x:j,X:M,y:WX,Y:UX,Z:GX,"%":tZ};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=AX[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=OX(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=DX(OX(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?dX.ceil(a):dX(a),a=$Y.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=EX(OX(r.y,0,1)),o=a.getDay(),a=o>4||o===0?rX.ceil(a):rX(a),a=QY.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else(`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?DX(OX(r.y,0,1)).getUTCDay():EX(OX(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,DX(r)):EX(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in AX?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,n,r){return w(e,t,n,r)}function j(e,t,r){return w(e,n,t,r)}function M(e,t,n){return w(e,r,t,n)}function N(e){return o[e.getDay()]}function P(e){return a[e.getDay()]}function F(e){return c[e.getMonth()]}function I(e){return s[e.getMonth()]}function L(e){return i[+(e.getHours()>=12)]}function R(e){return 1+~~(e.getMonth()/3)}function z(e){return o[e.getUTCDay()]}function B(e){return a[e.getUTCDay()]}function ee(e){return c[e.getUTCMonth()]}function te(e){return s[e.getUTCMonth()]}function ne(e){return i[+(e.getUTCHours()>=12)]}function re(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var AX={"-":``,_:` `,0:`0`},jX=/^\s*\d+/,MX=/^%/,NX=/[\\^$*+?|[\]().{}]/g;function PX(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function FX(e){return e.replace(NX,`\\$&`)}function IX(e){return RegExp(`^(?:`+e.map(FX).join(`|`)+`)`,`i`)}function LX(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function RX(e,t,n){var r=jX.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function zX(e,t,n){var r=jX.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function BX(e,t,n){var r=jX.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function VX(e,t,n){var r=jX.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function HX(e,t,n){var r=jX.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function UX(e,t,n){var r=jX.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function WX(e,t,n){var r=jX.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function GX(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function KX(e,t,n){var r=jX.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function qX(e,t,n){var r=jX.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function JX(e,t,n){var r=jX.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function YX(e,t,n){var r=jX.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function XX(e,t,n){var r=jX.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function ZX(e,t,n){var r=jX.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function QX(e,t,n){var r=jX.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function $X(e,t,n){var r=jX.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function eZ(e,t,n){var r=jX.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function tZ(e,t,n){var r=MX.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function nZ(e,t,n){var r=jX.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function rZ(e,t,n){var r=jX.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function iZ(e,t){return PX(e.getDate(),t,2)}function aZ(e,t){return PX(e.getHours(),t,2)}function oZ(e,t){return PX(e.getHours()%12||12,t,2)}function sZ(e,t){return PX(1+QY.count(yX(e),e),t,3)}function cZ(e,t){return PX(e.getMilliseconds(),t,3)}function lZ(e,t){return cZ(e,t)+`000`}function uZ(e,t){return PX(e.getMonth()+1,t,2)}function dZ(e,t){return PX(e.getMinutes(),t,2)}function fZ(e,t){return PX(e.getSeconds(),t,2)}function pZ(e){var t=e.getDay();return t===0?7:t}function mZ(e,t){return PX(nX.count(yX(e)-1,e),t,2)}function hZ(e){var t=e.getDay();return t>=4||t===0?oX(e):oX.ceil(e)}function gZ(e,t){return e=hZ(e),PX(oX.count(yX(e),e)+(yX(e).getDay()===4),t,2)}function _Z(e){return e.getDay()}function vZ(e,t){return PX(rX.count(yX(e)-1,e),t,2)}function yZ(e,t){return PX(e.getFullYear()%100,t,2)}function bZ(e,t){return e=hZ(e),PX(e.getFullYear()%100,t,2)}function xZ(e,t){return PX(e.getFullYear()%1e4,t,4)}function SZ(e,t){var n=e.getDay();return e=n>=4||n===0?oX(e):oX.ceil(e),PX(e.getFullYear()%1e4,t,4)}function CZ(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+PX(t/60|0,`0`,2)+PX(t%60,`0`,2)}function wZ(e,t){return PX(e.getUTCDate(),t,2)}function TZ(e,t){return PX(e.getUTCHours(),t,2)}function EZ(e,t){return PX(e.getUTCHours()%12||12,t,2)}function DZ(e,t){return PX(1+$Y.count(bX(e),e),t,3)}function OZ(e,t){return PX(e.getUTCMilliseconds(),t,3)}function kZ(e,t){return OZ(e,t)+`000`}function AZ(e,t){return PX(e.getUTCMonth()+1,t,2)}function jZ(e,t){return PX(e.getUTCMinutes(),t,2)}function MZ(e,t){return PX(e.getUTCSeconds(),t,2)}function NZ(e){var t=e.getUTCDay();return t===0?7:t}function PZ(e,t){return PX(uX.count(bX(e)-1,e),t,2)}function FZ(e){var t=e.getUTCDay();return t>=4||t===0?mX(e):mX.ceil(e)}function IZ(e,t){return e=FZ(e),PX(mX.count(bX(e),e)+(bX(e).getUTCDay()===4),t,2)}function LZ(e){return e.getUTCDay()}function RZ(e,t){return PX(dX.count(bX(e)-1,e),t,2)}function zZ(e,t){return PX(e.getUTCFullYear()%100,t,2)}function BZ(e,t){return e=FZ(e),PX(e.getUTCFullYear()%100,t,2)}function VZ(e,t){return PX(e.getUTCFullYear()%1e4,t,4)}function HZ(e,t){var n=e.getUTCDay();return e=n>=4||n===0?mX(e):mX.ceil(e),PX(e.getUTCFullYear()%1e4,t,4)}function UZ(){return`+0000`}function WZ(){return`%`}function GZ(e){return+e}function KZ(e){return Math.floor(e/1e3)}var qZ,JZ,YZ;XZ({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]});function XZ(e){return qZ=kX(e),JZ=qZ.format,qZ.parse,YZ=qZ.utcFormat,qZ.utcParse,qZ}function ZZ(e){return new Date(e)}function QZ(e){return e instanceof Date?+e:+new Date(+e)}function $Z(e,t,n,r,i,a,o,s,c,l){var u=qJ(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e)<e?p:s(e)<e?m:o(e)<e?h:a(e)<e?g:r(e)<e?i(e)<e?_:v:n(e)<e?y:b)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,QZ)):f().map(ZZ)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],t??10)},u.tickFormat=function(e,t){return t==null?x:l(t)},u.nice=function(e){var n=f();return e&&typeof e.range==`function`||(e=t(n[0],n[n.length-1],e??10)),e?f(xY(n,e)):u},u.copy=function(){return GJ(u,$Z(e,t,n,r,i,a,o,s,c,l))},u}function eQ(){return jJ.apply($Z(wX,TX,yX,_X,nX,QY,XY,JY,qY,JZ).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function tQ(){return jJ.apply($Z(SX,CX,bX,vX,uX,$Y,ZY,YY,qY,YZ).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function nQ(e){for(var t=e.length/6|0,n=Array(t),r=0;r<t;)n[r]=`#`+e.slice(r*6,++r*6);return n}var rQ=nQ(`1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf`),iQ=nQ(`7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666`),aQ=nQ(`1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666`),oQ=nQ(`a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928`),sQ=nQ(`fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2`),cQ=nQ(`b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc`),lQ=nQ(`e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999`),uQ=nQ(`66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3`),dQ=nQ(`8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f`),fQ=nQ(`4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab`),pQ=e=>XG(e[e.length-1]),mQ=[,,,`d8b365f5f5f55ab4ac`,`a6611adfc27d80cdc1018571`,`a6611adfc27df5f5f580cdc1018571`,`8c510ad8b365f6e8c3c7eae55ab4ac01665e`,`8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e`,`8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e`,`8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e`,`5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30`,`5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30`].map(nQ),hQ=pQ(mQ),gQ=[,,,`af8dc3f7f7f77fbf7b`,`7b3294c2a5cfa6dba0008837`,`7b3294c2a5cff7f7f7a6dba0008837`,`762a83af8dc3e7d4e8d9f0d37fbf7b1b7837`,`762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837`,`762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837`,`762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837`,`40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b`,`40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b`].map(nQ),_Q=pQ(gQ),vQ=[,,,`e9a3c9f7f7f7a1d76a`,`d01c8bf1b6dab8e1864dac26`,`d01c8bf1b6daf7f7f7b8e1864dac26`,`c51b7de9a3c9fde0efe6f5d0a1d76a4d9221`,`c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221`,`c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221`,`c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221`,`8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419`,`8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419`].map(nQ),yQ=pQ(vQ),bQ=[,,,`998ec3f7f7f7f1a340`,`5e3c99b2abd2fdb863e66101`,`5e3c99b2abd2f7f7f7fdb863e66101`,`542788998ec3d8daebfee0b6f1a340b35806`,`542788998ec3d8daebf7f7f7fee0b6f1a340b35806`,`5427888073acb2abd2d8daebfee0b6fdb863e08214b35806`,`5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806`,`2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08`,`2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08`].map(nQ),xQ=pQ(bQ),SQ=[,,,`ef8a62f7f7f767a9cf`,`ca0020f4a58292c5de0571b0`,`ca0020f4a582f7f7f792c5de0571b0`,`b2182bef8a62fddbc7d1e5f067a9cf2166ac`,`b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac`,`b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac`,`b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac`,`67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061`,`67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061`].map(nQ),CQ=pQ(SQ),wQ=[,,,`ef8a62ffffff999999`,`ca0020f4a582bababa404040`,`ca0020f4a582ffffffbababa404040`,`b2182bef8a62fddbc7e0e0e09999994d4d4d`,`b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d`,`b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d`,`b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d`,`67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a`,`67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a`].map(nQ),TQ=pQ(wQ),EQ=[,,,`fc8d59ffffbf91bfdb`,`d7191cfdae61abd9e92c7bb6`,`d7191cfdae61ffffbfabd9e92c7bb6`,`d73027fc8d59fee090e0f3f891bfdb4575b4`,`d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4`,`d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4`,`d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4`,`a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695`,`a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695`].map(nQ),DQ=pQ(EQ),OQ=[,,,`fc8d59ffffbf91cf60`,`d7191cfdae61a6d96a1a9641`,`d7191cfdae61ffffbfa6d96a1a9641`,`d73027fc8d59fee08bd9ef8b91cf601a9850`,`d73027fc8d59fee08bffffbfd9ef8b91cf601a9850`,`d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850`,`d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850`,`a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837`,`a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837`].map(nQ),kQ=pQ(OQ),AQ=[,,,`fc8d59ffffbf99d594`,`d7191cfdae61abdda42b83ba`,`d7191cfdae61ffffbfabdda42b83ba`,`d53e4ffc8d59fee08be6f59899d5943288bd`,`d53e4ffc8d59fee08bffffbfe6f59899d5943288bd`,`d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd`,`d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd`,`9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2`,`9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2`].map(nQ),jQ=pQ(AQ),MQ=[,,,`e5f5f999d8c92ca25f`,`edf8fbb2e2e266c2a4238b45`,`edf8fbb2e2e266c2a42ca25f006d2c`,`edf8fbccece699d8c966c2a42ca25f006d2c`,`edf8fbccece699d8c966c2a441ae76238b45005824`,`f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824`,`f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b`].map(nQ),NQ=pQ(MQ),PQ=[,,,`e0ecf49ebcda8856a7`,`edf8fbb3cde38c96c688419d`,`edf8fbb3cde38c96c68856a7810f7c`,`edf8fbbfd3e69ebcda8c96c68856a7810f7c`,`edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b`,`f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b`,`f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b`].map(nQ),FQ=pQ(PQ),IQ=[,,,`e0f3dba8ddb543a2ca`,`f0f9e8bae4bc7bccc42b8cbe`,`f0f9e8bae4bc7bccc443a2ca0868ac`,`f0f9e8ccebc5a8ddb57bccc443a2ca0868ac`,`f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e`,`f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e`,`f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081`].map(nQ),LQ=pQ(IQ),RQ=[,,,`fee8c8fdbb84e34a33`,`fef0d9fdcc8afc8d59d7301f`,`fef0d9fdcc8afc8d59e34a33b30000`,`fef0d9fdd49efdbb84fc8d59e34a33b30000`,`fef0d9fdd49efdbb84fc8d59ef6548d7301f990000`,`fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000`,`fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000`].map(nQ),zQ=pQ(RQ),BQ=[,,,`ece2f0a6bddb1c9099`,`f6eff7bdc9e167a9cf02818a`,`f6eff7bdc9e167a9cf1c9099016c59`,`f6eff7d0d1e6a6bddb67a9cf1c9099016c59`,`f6eff7d0d1e6a6bddb67a9cf3690c002818a016450`,`fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450`,`fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636`].map(nQ),VQ=pQ(BQ),HQ=[,,,`ece7f2a6bddb2b8cbe`,`f1eef6bdc9e174a9cf0570b0`,`f1eef6bdc9e174a9cf2b8cbe045a8d`,`f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d`,`f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b`,`fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b`,`fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858`].map(nQ),UQ=pQ(HQ),WQ=[,,,`e7e1efc994c7dd1c77`,`f1eef6d7b5d8df65b0ce1256`,`f1eef6d7b5d8df65b0dd1c77980043`,`f1eef6d4b9dac994c7df65b0dd1c77980043`,`f1eef6d4b9dac994c7df65b0e7298ace125691003f`,`f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f`,`f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f`].map(nQ),GQ=pQ(WQ),KQ=[,,,`fde0ddfa9fb5c51b8a`,`feebe2fbb4b9f768a1ae017e`,`feebe2fbb4b9f768a1c51b8a7a0177`,`feebe2fcc5c0fa9fb5f768a1c51b8a7a0177`,`feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177`,`fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177`,`fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a`].map(nQ),qQ=pQ(KQ),JQ=[,,,`edf8b17fcdbb2c7fb8`,`ffffcca1dab441b6c4225ea8`,`ffffcca1dab441b6c42c7fb8253494`,`ffffccc7e9b47fcdbb41b6c42c7fb8253494`,`ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84`,`ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84`,`ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58`].map(nQ),YQ=pQ(JQ),XQ=[,,,`f7fcb9addd8e31a354`,`ffffccc2e69978c679238443`,`ffffccc2e69978c67931a354006837`,`ffffccd9f0a3addd8e78c67931a354006837`,`ffffccd9f0a3addd8e78c67941ab5d238443005a32`,`ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32`,`ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529`].map(nQ),ZQ=pQ(XQ),QQ=[,,,`fff7bcfec44fd95f0e`,`ffffd4fed98efe9929cc4c02`,`ffffd4fed98efe9929d95f0e993404`,`ffffd4fee391fec44ffe9929d95f0e993404`,`ffffd4fee391fec44ffe9929ec7014cc4c028c2d04`,`ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04`,`ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506`].map(nQ),$Q=pQ(QQ),e$=[,,,`ffeda0feb24cf03b20`,`ffffb2fecc5cfd8d3ce31a1c`,`ffffb2fecc5cfd8d3cf03b20bd0026`,`ffffb2fed976feb24cfd8d3cf03b20bd0026`,`ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026`,`ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026`,`ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026`].map(nQ),t$=pQ(e$),n$=[,,,`deebf79ecae13182bd`,`eff3ffbdd7e76baed62171b5`,`eff3ffbdd7e76baed63182bd08519c`,`eff3ffc6dbef9ecae16baed63182bd08519c`,`eff3ffc6dbef9ecae16baed64292c62171b5084594`,`f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594`,`f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b`].map(nQ),r$=pQ(n$),i$=[,,,`e5f5e0a1d99b31a354`,`edf8e9bae4b374c476238b45`,`edf8e9bae4b374c47631a354006d2c`,`edf8e9c7e9c0a1d99b74c47631a354006d2c`,`edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32`,`f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32`,`f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b`].map(nQ),a$=pQ(i$),o$=[,,,`f0f0f0bdbdbd636363`,`f7f7f7cccccc969696525252`,`f7f7f7cccccc969696636363252525`,`f7f7f7d9d9d9bdbdbd969696636363252525`,`f7f7f7d9d9d9bdbdbd969696737373525252252525`,`fffffff0f0f0d9d9d9bdbdbd969696737373525252252525`,`fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000`].map(nQ),s$=pQ(o$),c$=[,,,`efedf5bcbddc756bb1`,`f2f0f7cbc9e29e9ac86a51a3`,`f2f0f7cbc9e29e9ac8756bb154278f`,`f2f0f7dadaebbcbddc9e9ac8756bb154278f`,`f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486`,`fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486`,`fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d`].map(nQ),l$=pQ(c$),u$=[,,,`fee0d2fc9272de2d26`,`fee5d9fcae91fb6a4acb181d`,`fee5d9fcae91fb6a4ade2d26a50f15`,`fee5d9fcbba1fc9272fb6a4ade2d26a50f15`,`fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d`,`fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d`,`fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d`].map(nQ),d$=pQ(u$),f$=[,,,`fee6cefdae6be6550d`,`feeddefdbe85fd8d3cd94701`,`feeddefdbe85fd8d3ce6550da63603`,`feeddefdd0a2fdae6bfd8d3ce6550da63603`,`feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04`,`fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04`,`fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704`].map(nQ),p$=pQ(f$);function m$(e){return e=Math.max(0,Math.min(1,e)),`rgb(`+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+`, `+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+`, `+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+`)`}var h$=bK(RG(300,.5,0),RG(-240,.5,1)),g$=bK(RG(-100,.75,.35),RG(80,1.5,.8)),_$=bK(RG(260,.75,.35),RG(80,1.5,.8)),v$=RG();function y$(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return v$.h=360*e-100,v$.s=1.5-1.5*t,v$.l=.8-.9*t,v$+``}var b$=fG(),x$=Math.PI/3,S$=Math.PI*2/3;function C$(e){var t;return e=(.5-e)*Math.PI,b$.r=255*(t=Math.sin(e))*t,b$.g=255*(t=Math.sin(e+x$))*t,b$.b=255*(t=Math.sin(e+S$))*t,b$+``}function w$(e){return e=Math.max(0,Math.min(1,e)),`rgb(`+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+`, `+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+`, `+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+`)`}function T$(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var E$=T$(nQ(`44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725`)),D$=T$(nQ(`00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf`)),O$=T$(nQ(`00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4`)),k$=T$(nQ(`0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921`)),A$=n(((e,t)=>{function n(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}t.exports=n}));function j$(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function M$(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function N$(e){return e=M$(Math.abs(e)),e?e[1]:NaN}function P$(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function F$(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var I$=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function L$(e){if(!(t=I$.exec(e)))throw Error(`invalid format: `+e);var t;return new R$({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}L$.prototype=R$.prototype;function R$(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}R$.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function z$(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0)}return r>0?e.slice(0,r)+e.slice(i+1):e}var B$;function V$(e,t){var n=M$(e,t);if(!n)return e+``;var r=n[0],i=n[1],a=i-(B$=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+M$(e,Math.max(0,t+a-1))[0]}function H$(e,t){var n=M$(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var U$={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+``},d:j$,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return H$(e*100,t)},r:H$,s:V$,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function W$(e){return e}var G$=Array.prototype.map,K$=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function q$(e){var t=e.grouping===void 0||e.thousands===void 0?W$:P$(G$.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?W$:F$(G$.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`-`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e){e=L$(e);var l=e.fill,u=e.align,d=e.sign,f=e.symbol,p=e.zero,m=e.width,h=e.comma,g=e.precision,_=e.trim,v=e.type;v===`n`?(h=!0,v=`g`):U$[v]||(g===void 0&&(g=12),_=!0,v=`g`),(p||l===`0`&&u===`=`)&&(p=!0,l=`0`,u=`=`);var y=f===`$`?n:f===`#`&&/[boxX]/.test(v)?`0`+v.toLowerCase():``,b=f===`$`?r:/[%p]/.test(v)?o:``,x=U$[v],S=/[defgprs%]/.test(v);g=g===void 0?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g));function C(e){var n=y,r=b,o,f,C;if(v===`c`)r=x(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:x(Math.abs(e),g),_&&(e=z$(e)),w&&+e==0&&d!==`+`&&(w=!1),n=(w?d===`(`?d:s:d===`-`||d===`(`?``:d)+n,r=(v===`s`?K$[8+B$/3]:``)+r+(w&&d===`(`?`)`:``),S){for(o=-1,f=e.length;++o<f;)if(C=e.charCodeAt(o),48>C||C>57){r=(C===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}h&&!p&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<m?Array(m-T+1).join(l):``;switch(h&&p&&(e=t(E+e,E.length?m-r.length:1/0),E=``),u){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r}return a(e)}return C.toString=function(){return e+``},C}function u(e,t){var n=l((e=L$(e),e.type=`f`,e)),r=Math.max(-8,Math.min(8,Math.floor(N$(t)/3)))*3,i=10**-r,a=K$[8+r/3];return function(e){return n(i*e)+a}}return{format:l,formatPrefix:u}}var J$,Y$;X$({decimal:`.`,thousands:`,`,grouping:[3],currency:[`$`,``],minus:`-`});function X$(e){return J$=q$(e),Y$=J$.format,J$.formatPrefix,J$}var Z$=new Date,Q$=new Date;function $$(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),n==null?1:Math.floor(n)),e},i.range=function(n,r,a){var o=[],s;if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=function(n){return $$(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}})},n&&(i.count=function(t,r){return Z$.setTime(+t),Q$.setTime(+r),e(Z$),e(Q$),Math.floor(n(Z$,Q$))},i.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?function(t){return r(t)%e===0}:function(t){return i.count(0,t)%e===0}):i}),i}var e1=6e4,t1=e1*60*24,n1=t1*7,r1=$$(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*e1)/t1,e=>e.getDate()-1);r1.range;function i1(e){return $$(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t*7)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*e1)/n1})}var a1=i1(0),o1=i1(1),s1=i1(2),c1=i1(3),l1=i1(4),u1=i1(5),d1=i1(6);a1.range,o1.range,s1.range,c1.range,l1.range,u1.range,d1.range;var f1=$$(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});f1.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:$$(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})},f1.range;var p1=$$(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/t1},function(e){return e.getUTCDate()-1});p1.range;function m1(e){return $$(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t*7)},function(e,t){return(t-e)/n1})}var h1=m1(0),g1=m1(1),_1=m1(2),v1=m1(3),y1=m1(4),b1=m1(5),x1=m1(6);h1.range,g1.range,_1.range,v1.range,y1.range,b1.range,x1.range;var S1=$$(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});S1.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:$$(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})},S1.range;function C1(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function w1(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function T1(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function E1(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=N1(i),u=P1(i),d=N1(a),f=P1(a),p=N1(o),m=P1(o),h=N1(s),g=P1(s),_=N1(c),v=P1(c),y={a:N,A:P,b:F,B:I,c:null,d:t0,e:t0,f:o0,g:_0,G:y0,H:n0,I:r0,j:i0,L:a0,m:s0,M:c0,p:L,q:R,Q:V0,s:H0,S:l0,u:u0,U:d0,V:p0,w:m0,W:h0,x:null,X:null,y:g0,Y:v0,Z:b0,"%":B0},b={a:z,A:B,b:ee,B:te,c:null,d:x0,e:x0,f:E0,g:I0,G:R0,H:S0,I:C0,j:w0,L:T0,m:D0,M:O0,p:ne,q:re,Q:V0,s:H0,S:k0,u:A0,U:j0,V:N0,w:P0,W:mte,x:null,X:null,y:F0,Y:L0,Z:z0,"%":B0},x={a:E,A:D,b:O,B:k,c:A,d:G1,e:G1,f:Z1,g:V1,G:B1,H:q1,I:q1,j:K1,L:X1,m:W1,M:J1,p:T,q:U1,Q:$1,s:e0,S:Y1,u:I1,U:L1,V:R1,w:F1,W:z1,x:j,X:M,y:V1,Y:B1,Z:H1,"%":Q1};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=D1[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=T1(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=w1(T1(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?g1.ceil(a):g1(a),a=p1.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=C1(T1(r.y,0,1)),o=a.getDay(),a=o>4||o===0?o1.ceil(a):o1(a),a=r1.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else(`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?w1(T1(r.y,0,1)).getUTCDay():C1(T1(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,w1(r)):C1(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in D1?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,n,r){return w(e,t,n,r)}function j(e,t,r){return w(e,n,t,r)}function M(e,t,n){return w(e,r,t,n)}function N(e){return o[e.getDay()]}function P(e){return a[e.getDay()]}function F(e){return c[e.getMonth()]}function I(e){return s[e.getMonth()]}function L(e){return i[+(e.getHours()>=12)]}function R(e){return 1+~~(e.getMonth()/3)}function z(e){return o[e.getUTCDay()]}function B(e){return a[e.getUTCDay()]}function ee(e){return c[e.getUTCMonth()]}function te(e){return s[e.getUTCMonth()]}function ne(e){return i[+(e.getUTCHours()>=12)]}function re(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var D1={"-":``,_:` `,0:`0`},O1=/^\s*\d+/,k1=/^%/,A1=/[\\^$*+?|[\]().{}]/g;function j1(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function M1(e){return e.replace(A1,`\\$&`)}function N1(e){return RegExp(`^(?:`+e.map(M1).join(`|`)+`)`,`i`)}function P1(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function F1(e,t,n){var r=O1.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function I1(e,t,n){var r=O1.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function L1(e,t,n){var r=O1.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function R1(e,t,n){var r=O1.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function z1(e,t,n){var r=O1.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function B1(e,t,n){var r=O1.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function V1(e,t,n){var r=O1.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function H1(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function U1(e,t,n){var r=O1.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function W1(e,t,n){var r=O1.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function G1(e,t,n){var r=O1.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function K1(e,t,n){var r=O1.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function q1(e,t,n){var r=O1.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function J1(e,t,n){var r=O1.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Y1(e,t,n){var r=O1.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function X1(e,t,n){var r=O1.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Z1(e,t,n){var r=O1.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Q1(e,t,n){var r=k1.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function $1(e,t,n){var r=O1.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function e0(e,t,n){var r=O1.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function t0(e,t){return j1(e.getDate(),t,2)}function n0(e,t){return j1(e.getHours(),t,2)}function r0(e,t){return j1(e.getHours()%12||12,t,2)}function i0(e,t){return j1(1+r1.count(f1(e),e),t,3)}function a0(e,t){return j1(e.getMilliseconds(),t,3)}function o0(e,t){return a0(e,t)+`000`}function s0(e,t){return j1(e.getMonth()+1,t,2)}function c0(e,t){return j1(e.getMinutes(),t,2)}function l0(e,t){return j1(e.getSeconds(),t,2)}function u0(e){var t=e.getDay();return t===0?7:t}function d0(e,t){return j1(a1.count(f1(e)-1,e),t,2)}function f0(e){var t=e.getDay();return t>=4||t===0?l1(e):l1.ceil(e)}function p0(e,t){return e=f0(e),j1(l1.count(f1(e),e)+(f1(e).getDay()===4),t,2)}function m0(e){return e.getDay()}function h0(e,t){return j1(o1.count(f1(e)-1,e),t,2)}function g0(e,t){return j1(e.getFullYear()%100,t,2)}function _0(e,t){return e=f0(e),j1(e.getFullYear()%100,t,2)}function v0(e,t){return j1(e.getFullYear()%1e4,t,4)}function y0(e,t){var n=e.getDay();return e=n>=4||n===0?l1(e):l1.ceil(e),j1(e.getFullYear()%1e4,t,4)}function b0(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+j1(t/60|0,`0`,2)+j1(t%60,`0`,2)}function x0(e,t){return j1(e.getUTCDate(),t,2)}function S0(e,t){return j1(e.getUTCHours(),t,2)}function C0(e,t){return j1(e.getUTCHours()%12||12,t,2)}function w0(e,t){return j1(1+p1.count(S1(e),e),t,3)}function T0(e,t){return j1(e.getUTCMilliseconds(),t,3)}function E0(e,t){return T0(e,t)+`000`}function D0(e,t){return j1(e.getUTCMonth()+1,t,2)}function O0(e,t){return j1(e.getUTCMinutes(),t,2)}function k0(e,t){return j1(e.getUTCSeconds(),t,2)}function A0(e){var t=e.getUTCDay();return t===0?7:t}function j0(e,t){return j1(h1.count(S1(e)-1,e),t,2)}function M0(e){var t=e.getUTCDay();return t>=4||t===0?y1(e):y1.ceil(e)}function N0(e,t){return e=M0(e),j1(y1.count(S1(e),e)+(S1(e).getUTCDay()===4),t,2)}function P0(e){return e.getUTCDay()}function mte(e,t){return j1(g1.count(S1(e)-1,e),t,2)}function F0(e,t){return j1(e.getUTCFullYear()%100,t,2)}function I0(e,t){return e=M0(e),j1(e.getUTCFullYear()%100,t,2)}function L0(e,t){return j1(e.getUTCFullYear()%1e4,t,4)}function R0(e,t){var n=e.getUTCDay();return e=n>=4||n===0?y1(e):y1.ceil(e),j1(e.getUTCFullYear()%1e4,t,4)}function z0(){return`+0000`}function B0(){return`%`}function V0(e){return+e}function H0(e){return Math.floor(e/1e3)}var U0,W0,G0,K0;q0({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]});function q0(e){return U0=E1(e),W0=U0.format,G0=U0.parse,U0.utcFormat,K0=U0.utcParse,U0}var J0=n(((e,t)=>{var n=BU(),r=HU(),i=RU();function a(e,t,a){for(var o=-1,s=t.length,c={};++o<s;){var l=t[o],u=n(e,l);a(u,l)&&r(c,i(l,e),u)}return c}t.exports=a})),Y0=n(((e,t)=>{function n(e,t){return e!=null&&t in Object(e)}t.exports=n})),X0=n(((e,t)=>{var n=RU(),r=YH(),i=XH(),a=dU(),o=ZH(),s=zU();function c(e,t,c){t=n(t,e);for(var l=-1,u=t.length,d=!1;++l<u;){var f=s(t[l]);if(!(d=e!=null&&c(e,f)))break;e=e[f]}return d||++l!=u?d:(u=e==null?0:e.length,!!u&&o(u)&&a(f,u)&&(i(e)||r(e)))}t.exports=c})),Z0=n(((e,t)=>{var n=Y0(),r=X0();function i(e,t){return e!=null&&r(e,t,n)}t.exports=i})),Q0=n(((e,t)=>{var n=J0(),r=Z0();function i(e,t){return n(e,t,function(t,n){return r(e,n)})}t.exports=i})),$0=n(((e,t)=>{function n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}t.exports=n})),e2=n(((e,t)=>{var n=nH(),r=YH(),i=XH(),a=n?n.isConcatSpreadable:void 0;function o(e){return i(e)||r(e)||!!(a&&e&&e[a])}t.exports=o})),t2=n(((e,t)=>{var n=$0(),r=e2();function i(e,t,a,o,s){var c=-1,l=e.length;for(a||=r,s||=[];++c<l;){var u=e[c];t>0&&a(u)?t>1?i(u,t-1,a,o,s):n(s,u):o||(s[s.length]=u)}return s}t.exports=i})),n2=n(((e,t)=>{var n=t2();function r(e){return e!=null&&e.length?n(e,1):[]}t.exports=r})),r2=n(((e,t)=>{var n=n2(),r=xU(),i=TU();function a(e){return i(r(e,void 0,n),e+``)}t.exports=a})),i2=n(((e,t)=>{var n=Q0();t.exports=r2()(function(e,t){return e==null?{}:n(e,t)})})),a2=n(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=n})),o2=n(((e,t)=>{var n=CK(),r=a2(),i=AK(),a=1,o=2;function s(e,t,s,c,l,u){var d=s&a,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var m=u.get(e),h=u.get(t);if(m&&h)return m==t&&h==e;var g=-1,_=!0,v=s&o?new n:void 0;for(u.set(e,t),u.set(t,e);++g<f;){var y=e[g],b=t[g];if(c)var x=d?c(b,y,g,t,e,u):c(y,b,g,e,t,u);if(x!==void 0){if(x)continue;_=!1;break}if(v){if(!r(t,function(e,t){if(!i(v,t)&&(y===e||l(y,e,s,c,u)))return v.push(t)})){_=!1;break}}else if(!(y===b||l(y,b,s,c,u))){_=!1;break}}return u.delete(e),u.delete(t),_}t.exports=s})),s2=n(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}t.exports=n})),c2=n(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=n})),l2=n(((e,t)=>{var n=nH(),r=RH(),i=UV(),a=o2(),o=s2(),s=c2(),c=1,l=2,u=`[object Boolean]`,d=`[object Date]`,f=`[object Error]`,p=`[object Map]`,m=`[object Number]`,h=`[object RegExp]`,g=`[object Set]`,_=`[object String]`,v=`[object Symbol]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=n?n.prototype:void 0,S=x?x.valueOf:void 0;function C(e,t,n,x,C,w,T){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!w(new r(e),new r(t)));case u:case d:case m:return i(+e,+t);case f:return e.name==t.name&&e.message==t.message;case h:case _:return e==t+``;case p:var E=o;case g:var D=x&c;if(E||=s,e.size!=t.size&&!D)return!1;var O=T.get(e);if(O)return O==t;x|=l,T.set(e,t);var k=a(E(e),E(t),x,C,w,T);return T.delete(e),k;case v:if(S)return S.call(e)==S.call(t)}return!1}t.exports=C})),u2=n(((e,t)=>{var n=$0(),r=XH();function i(e,t,i){var a=t(e);return r(e)?a:n(a,i(e))}t.exports=i})),d2=n(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}t.exports=n})),f2=n(((e,t)=>{function n(){return[]}t.exports=n})),p2=n(((e,t)=>{var n=d2(),r=f2(),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;t.exports=a?function(e){return e==null?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:r})),m2=n(((e,t)=>{t.exports=UH()(Object.keys,Object)})),h2=n(((e,t)=>{var n=GH(),r=m2(),i=Object.prototype.hasOwnProperty;function a(e){if(!n(e))return r(e);var t=[];for(var a in Object(e))i.call(e,a)&&a!=`constructor`&&t.push(a);return t}t.exports=a})),g2=n(((e,t)=>{var n=fU(),r=h2(),i=QH();function a(e){return i(e)?n(e):r(e)}t.exports=a})),_2=n(((e,t)=>{var n=u2(),r=p2(),i=g2();function a(e){return n(e,i,r)}t.exports=a})),v2=n(((e,t)=>{var n=_2(),r=1,i=Object.prototype.hasOwnProperty;function a(e,t,a,o,s,c){var l=a&r,u=n(e),d=u.length;if(d!=n(t).length&&!l)return!1;for(var f=d;f--;){var p=u[f];if(!(l?p in t:i.call(t,p)))return!1}var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var g=!0;c.set(e,t),c.set(t,e);for(var _=l;++f<d;){p=u[f];var v=e[p],y=t[p];if(o)var b=l?o(y,v,p,t,e,c):o(v,y,p,e,t,c);if(!(b===void 0?v===y||s(v,y,a,o,c):b)){g=!1;break}_||=p==`constructor`}if(g&&!_){var x=e.constructor,S=t.constructor;x!=S&&`constructor`in e&&`constructor`in t&&!(typeof x==`function`&&x instanceof x&&typeof S==`function`&&S instanceof S)&&(g=!1)}return c.delete(e),c.delete(t),g}t.exports=a})),y2=n(((e,t)=>{t.exports=pH()(tH(),`DataView`)})),b2=n(((e,t)=>{t.exports=pH()(tH(),`Promise`)})),x2=n(((e,t)=>{t.exports=pH()(tH(),`Set`)})),S2=n(((e,t)=>{t.exports=pH()(tH(),`WeakMap`)})),C2=n(((e,t)=>{var n=y2(),r=mH(),i=b2(),a=x2(),o=S2(),s=aH(),c=uH(),l=`[object Map]`,u=`[object Object]`,d=`[object Promise]`,f=`[object Set]`,p=`[object WeakMap]`,m=`[object DataView]`,h=c(n),g=c(r),_=c(i),v=c(a),y=c(o),b=s;(n&&b(new n(new ArrayBuffer(1)))!=m||r&&b(new r)!=l||i&&b(i.resolve())!=d||a&&b(new a)!=f||o&&b(new o)!=p)&&(b=function(e){var t=s(e),n=t==u?e.constructor:void 0,r=n?c(n):``;if(r)switch(r){case h:return m;case g:return l;case _:return d;case v:return f;case y:return p}return t}),t.exports=b})),w2=n(((e,t)=>{var n=jH(),r=o2(),i=l2(),a=v2(),o=C2(),s=XH(),c=tU(),l=oU(),u=1,d=`[object Arguments]`,f=`[object Array]`,p=`[object Object]`,m=Object.prototype.hasOwnProperty;function h(e,t,h,g,_,v){var y=s(e),b=s(t),x=y?f:o(e),S=b?f:o(t);x=x==d?p:x,S=S==d?p:S;var C=x==p,w=S==p,T=x==S;if(T&&c(e)){if(!c(t))return!1;y=!0,C=!1}if(T&&!C)return v||=new n,y||l(e)?r(e,t,h,g,_,v):i(e,t,x,h,g,_,v);if(!(h&u)){var E=C&&m.call(e,`__wrapped__`),D=w&&m.call(t,`__wrapped__`);if(E||D){var O=E?e.value():e,k=D?t.value():t;return v||=new n,_(O,k,h,g,v)}}return T?(v||=new n,a(e,t,h,g,_,v)):!1}t.exports=h})),T2=n(((e,t)=>{var n=w2(),r=qH();function i(e,t,a,o,s){return e===t?!0:e==null||t==null||!r(e)&&!r(t)?e!==e&&t!==t:n(e,t,a,o,i,s)}t.exports=i})),E2=n(((e,t)=>{var n=T2();function r(e,t){return n(e,t)}t.exports=r})),D2=e(MK(),1),O2=e(A$(),1);XH();var k2=e(sH(),1),A2=e(nU(),1),j2=e(i2(),1),M2=e(E2(),1),N2=(0,_.createContext)(),P2=function(e){var t=e.children,n=e.animate,r=n===void 0||n,i=e.config,a=i===void 0?`default`:i,o=(0,_.useMemo)((function(){return{animate:r,config:(0,OW.default)(a)?aB[a]:a}}),[r,a]);return(0,G.jsx)(N2.Provider,{value:o,children:t})},F2=function(){return(0,_.useContext)(N2)},I2=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?(0,_.cloneElement)(r,{},t):t},L2={position:`relative`},R2=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=r===void 0||r,a=e.isInteractive,o=a===void 0||a,s=e.animate,c=e.motionConfig,l=(0,_.useRef)(null);return(0,G.jsx)(oW,{theme:n,children:(0,G.jsx)(P2,{animate:s,config:c,children:(0,G.jsx)(DW,{container:l,children:(0,G.jsxs)(I2,{condition:i,wrapper:(0,G.jsx)(`div`,{style:L2,ref:l}),children:[t,o&&(0,G.jsx)(EW,{})]})})})})},z2=function(e,t){return e.width===t.width&&e.height===t.height},B2=function(e){var t=e.children,n=e.width,r=e.height,i=e.onResize,a=e.debounceResize,o=VW({width:n,height:r},a,{equalityFn:z2})[0];return(0,_.useEffect)((function(){i?.(o)}),[o,i]),(0,G.jsx)(G.Fragment,{children:t(o)})},V2=function(e){var t=e.children,n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=a===void 0?0:a;return(0,G.jsx)(RW,{defaultWidth:n,defaultHeight:r,children:function(e){var n=e.width,r=e.height;return(0,G.jsx)(B2,{width:n,height:r,onResize:i,debounceResize:o,children:t})}})};function H2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function U2(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if(typeof e==`string`)return H2(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H2(e,t):void 0}}(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
94
|
+
`)){if(r.startsWith("```")){n=!n;continue}if(n)continue;let e=r.match(/^(#{1,3})\s+(.+?)\s*#*$/);e&&t.push({level:e[1].length,text:e[2],id:wL(e[2])})}return t}function DL(e){switch(e){case`create`:return`var(--green)`;case`update-content`:return`var(--blue)`;case`update-metadata`:return`var(--blue)`;case`delete`:return`var(--red)`;case`status-change`:return`var(--yellow)`;case`archive`:return`var(--violet)`;case`unarchive`:return`var(--primary)`;default:return`var(--text-faint)`}}function OL(e){let t=(e??`manual`).toLowerCase();return t===`agent`?{icon:HT,label:`agent`,agent:!0}:t===`cli`?{icon:GT,label:`cli`,agent:!1}:t===`url`?{icon:wT,label:`url`,agent:!1}:{icon:FT,label:t,agent:!1}}var kL=[{format:`md`,label:`Markdown (.md)`,icon:IT},{format:`docx`,label:`Word (.docx)`,icon:TT},{format:`pdf`,label:`PDF (.pdf)`,icon:ET}];function AL({busy:e,onPick:t}){return(0,G.jsxs)(Bh,{position:`bottom-end`,withinPortal:!0,children:[(0,G.jsx)(Bh.Target,{children:(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnGhost}`,disabled:e,children:[e?(0,G.jsx)(bl,{size:12}):(0,G.jsx)(ST,{size:14}),`Download`,(0,G.jsx)(fT,{size:12})]})}),(0,G.jsx)(Bh.Dropdown,{children:kL.map(({format:e,label:n,icon:r})=>(0,G.jsx)(Bh.Item,{leftSection:(0,G.jsx)(r,{size:14}),onClick:()=>t(e),children:n},e))})]})}function jL(){let{id:e}=YS(),[t]=pw(),n=t.get(`version`),r=GS(),i=Xy(),a=SL(),[o,s]=(0,_.useState)(!1),[c,l]=(0,_.useState)(!1),[u,d]=(0,_.useState)(`rendered`),{data:f,isLoading:p,error:m}=ux({queryKey:[`document`,e,n],queryFn:()=>uD(e,n??void 0),enabled:!!e});LE(f?.doc_title??null);let{data:h,isLoading:g}=ux({queryKey:[`document-chunks`,e],queryFn:()=>dD(e),enabled:!!e}),{data:v}=ux({queryKey:[`document-audit`,e],queryFn:()=>gE({document_id:e,limit:50}),enabled:!!e}),{data:y}=RI(),b=new Map(y?.map(e=>[e.id,e.name])??[]),x=()=>MI(i,e),S=dx({mutationFn:()=>pD(e),onSuccess:()=>{x(),BI(`Document moved to trash`),r(`/`)},onError:e=>HI(`Delete failed`,String(e))}),C=dx({mutationFn:()=>XI(e),onSuccess:()=>{x(),BI(`Document restored`)},onError:e=>HI(`Restore failed`,String(e))}),w=dx({mutationFn:()=>ZI(e),onSuccess:()=>{x(),BI(`Document permanently deleted`),r(`/trash`)},onError:e=>HI(`Purge failed`,String(e))}),T=dx({mutationFn:t=>_E(e,t),onSuccess:(e,t)=>{x(),BI(`Review status updated`,t===`approved`?`Approved`:`Pending review`)},onError:e=>HI(`Status update failed`,String(e))}),[E,D]=(0,_.useState)(!1),O=(t,n=`md`)=>{D(!0),_D(e,t,n,f?.doc_title||`document`).catch(e=>VI(`Download failed`,e)).finally(()=>D(!1))},k=dx({mutationFn:({versionId:t,archived:n})=>vE(e,t,n),onSuccess:(t,{archived:n})=>{i.invalidateQueries({queryKey:[`document`,e]}),BI(n?`Version archived`:`Protection removed`)},onError:e=>HI(`Archive update failed`,String(e))}),[A,j]=(0,_.useState)(null),[M,N]=(0,_.useState)(null),[P,F]=(0,_.useState)(``),I=async(t,n)=>{j(t),F(`v${n}`);try{let n=await gD(e,t);N(n.full_content)}catch{HI(`Failed to load version content`),j(null)}},L=(0,_.useMemo)(()=>f?EL(f.full_content):[],[f]),R=(0,_.useMemo)(()=>({a:e=>(0,G.jsx)(kI,{...e,fromDocId:f?.document_id}),h1:({children:e})=>(0,G.jsx)(`h1`,{id:wL(TL(e)),children:e}),h2:({children:e})=>(0,G.jsx)(`h2`,{id:wL(TL(e)),children:e}),h3:({children:e})=>(0,G.jsx)(`h3`,{id:wL(TL(e)),children:e})}),[f?.document_id]),z=e=>{d(`rendered`),setTimeout(()=>{document.getElementById(e)?.scrollIntoView({behavior:`smooth`,block:`start`})},50)};if(p)return(0,G.jsx)(`div`,{className:CL.wrap,children:(0,G.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`,marginTop:60},children:(0,G.jsx)(bl,{})})});if(m||!f)return(0,G.jsx)(`div`,{className:CL.wrap,children:(0,G.jsx)(`p`,{style:{color:`var(--red)`,marginTop:40},children:m?String(m):`Document not found.`})});let B=Object.entries(f.doc_metadata||{}),ee=f.review_status!==`pending_review`,te=OL(f.doc_source),ne=te.icon,re=n?f.versions.find(e=>e.version_id===n):void 0,ie=!!re,ae=ie&&u===`chunks`?`rendered`:u;return(0,G.jsxs)(`div`,{className:CL.wrap,children:[(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle} ${CL.backBtn}`,onClick:()=>r(-1),children:[(0,G.jsx)(sT,{size:15}),`Back`]}),(0,G.jsxs)(`div`,{className:`${CL.docHeader} ${X.rise}`,children:[(0,G.jsxs)(`div`,{style:{minWidth:0,flex:1},children:[(0,G.jsx)(`p`,{className:X.eyebrow,children:`Document`}),(0,G.jsx)(`div`,{className:X.row,style:{gap:8,marginBottom:8,flexWrap:`wrap`},children:f.project_ids.filter(e=>b.has(e)).map(e=>(0,G.jsx)(`button`,{type:`button`,className:`${X.badge} ${X.bNeutral}`,style:{cursor:`pointer`,border:`1px solid transparent`},title:`View documents in ${b.get(e)}`,onClick:()=>r(`/projects/${e}/documents`),children:b.get(e)},e))}),(0,G.jsx)(`h1`,{className:CL.docTitle,children:f.doc_title||`Untitled`}),(0,G.jsxs)(`div`,{className:CL.docMeta,children:[(0,G.jsx)(vv,{label:`Origin — how this document was added`,openDelay:120,withArrow:!0,position:`top`,children:(0,G.jsxs)(`span`,{className:`${X.srcChip} ${te.agent?X.srcChipAgent:``}`,children:[(0,G.jsx)(ne,{size:12}),te.label]})}),(0,G.jsxs)(`span`,{className:`${X.mono} ${X.faint}`,children:[f.chunk_count,` chunks`]}),(0,G.jsxs)(`span`,{className:`${X.mono} ${X.faint}`,children:[f.total_chars.toLocaleString(),` chars`]}),f.updated_at&&(0,G.jsxs)(`span`,{className:`${X.mono} ${X.faint}`,children:[`updated `,kE(f.updated_at)]}),a&&!f.deleted_at&&!ie&&(0,G.jsxs)(`button`,{type:`button`,className:CL.reviewPill,title:`Click to toggle review status`,onClick:()=>T.mutate(ee?`pending_review`:`approved`),disabled:T.isPending,children:[(0,G.jsx)(`span`,{className:`dot`,style:{width:7,height:7,borderRadius:`50%`,background:ee?`var(--green)`:`var(--yellow)`}}),ee?`Approved`:`Pending`]})]})]}),(0,G.jsx)(`div`,{className:X.row,style:{gap:8,flexShrink:0},children:ie?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(AL,{busy:E,onPick:e=>O(re.version_id,e)}),(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnGhost} ${re.archived?X.btnWarn:``}`,title:re.archived?`Remove protection — this version becomes eligible for cleanup`:`Protect this version from automatic cleanup`,onClick:()=>k.mutate({versionId:re.version_id,archived:!re.archived}),disabled:k.isPending,children:[re.archived?(0,G.jsx)(NT,{size:14}):(0,G.jsx)(PT,{size:14}),re.archived?`Unprotect`:`Protect`]})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(AL,{busy:E,onPick:e=>O(void 0,e)}),f.deleted_at?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnGhost} ${X.btnWarn}`,title:`Restore from trash`,onClick:()=>C.mutate(),children:[(0,G.jsx)(oT,{size:14}),`Restore`]}),c?(0,G.jsxs)(`div`,{className:X.row,style:{gap:6},children:[(0,G.jsx)(`button`,{type:`button`,className:X.btn,style:{background:`var(--red)`,color:`#fff`},onClick:()=>w.mutate(),children:`Confirm purge`}),(0,G.jsx)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,onClick:()=>l(!1),children:`Cancel`})]}):(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnGhost} ${X.btnDanger}`,title:`Permanently delete (cannot be undone)`,onClick:()=>l(!0),children:[(0,G.jsx)(qT,{size:14}),`Purge`]})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnGhost}`,onClick:()=>r(`/document/${e}/edit`),children:[(0,G.jsx)(CT,{size:14}),`Edit`]}),o?(0,G.jsxs)(`div`,{className:X.row,style:{gap:6},children:[(0,G.jsx)(`button`,{type:`button`,className:X.btn,style:{background:`var(--red)`,color:`#fff`},onClick:()=>S.mutate(),children:`Confirm`}),(0,G.jsx)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,onClick:()=>s(!1),children:`Cancel`})]}):(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnGhost} ${X.btnDanger}`,title:`Delete document`,onClick:()=>s(!0),children:[(0,G.jsx)(qT,{size:14}),`Delete`]})]})]})})]}),ie&&(0,G.jsxs)(`div`,{className:`${CL.trashBanner} ${CL.versionBanner}`,children:[(0,G.jsxs)(`div`,{className:X.row,style:{gap:8},children:[(0,G.jsxs)(`span`,{className:`${X.badge} ${X.bBlue}`,children:[(0,G.jsx)(kT,{size:12}),`This is a previous version: v`,re.version_number]}),(0,G.jsxs)(`span`,{style:{fontSize:13},children:[`Read-only snapshot from `,new Date(re.created_at).toLocaleDateString(),`.`,re.archived?` Protected from cleanup.`:``]})]}),(0,G.jsx)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,onClick:()=>r(`/document/${e}`),children:`View current version`})]}),f.deleted_at&&(0,G.jsx)(`div`,{className:CL.trashBanner,children:(0,G.jsxs)(`div`,{className:X.row,style:{gap:8},children:[(0,G.jsx)(`span`,{className:`${X.badge} ${X.bNeutral}`,style:{background:`var(--red)`,color:`#fff`},children:`In trash`}),(0,G.jsxs)(`span`,{style:{fontSize:13},children:[`Deleted `,f.deleted_at.slice(0,10),` — excluded from search until restored. Use Restore or Purge above.`]})]})}),(0,G.jsxs)(`div`,{className:CL.docSplit,children:[(0,G.jsx)(`div`,{className:X.rise,style:{minWidth:0},children:(0,G.jsxs)(`div`,{className:X.card,children:[(0,G.jsxs)(`div`,{className:CL.contentHead,children:[(0,G.jsxs)(`div`,{className:X.seg,children:[(0,G.jsxs)(`button`,{type:`button`,className:`${X.segBtn} ${ae===`rendered`?X.segBtnOn:``}`,onClick:()=>d(`rendered`),children:[(0,G.jsx)(wT,{size:14}),`Rendered`]}),(0,G.jsxs)(`button`,{type:`button`,className:`${X.segBtn} ${ae===`source`?X.segBtnOn:``}`,onClick:()=>d(`source`),children:[(0,G.jsx)(GT,{size:14}),`Source`]}),!ie&&(0,G.jsxs)(`button`,{type:`button`,className:`${X.segBtn} ${ae===`chunks`?X.segBtnOn:``}`,onClick:()=>d(`chunks`),children:[(0,G.jsx)(UT,{size:14}),`Chunks`]})]}),(0,G.jsxs)(`span`,{className:`${X.mono} ${X.faint}`,style:{fontSize:12},children:[f.total_chars.toLocaleString(),` chars`]})]}),(0,G.jsx)(`div`,{className:X.divider}),(0,G.jsxs)(`div`,{className:CL.contentScroll,children:[ae===`rendered`&&(0,G.jsx)(`div`,{className:CL.mdBody,children:(0,G.jsx)(`div`,{className:AI.markdown,children:(0,G.jsx)(SN,{remarkPlugins:[EI],components:R,children:f.full_content||`*(empty)*`})})}),ae===`source`&&(0,G.jsx)(`pre`,{className:CL.docSource,children:f.full_content}),ae===`chunks`&&(0,G.jsx)(`div`,{className:CL.chunkList,children:g?(0,G.jsx)(`div`,{style:{padding:18},children:(0,G.jsx)(bl,{size:`sm`})}):h?.map((e,t)=>(0,G.jsxs)(`div`,{className:CL.chunkItem,children:[(0,G.jsxs)(`div`,{className:`${CL.chunkHead} ${X.mono}`,children:[(0,G.jsxs)(`span`,{className:`${X.badge} ${X.bNeutral}`,children:[`chunk `,t+1]}),(0,G.jsx)(`span`,{className:X.faint,children:e.heading_path.length>0?e.heading_path.join(` › `):`(preamble)`})]}),(0,G.jsx)(`p`,{className:CL.chunkBody,children:e.content})]},e.chunk_id))})]})]})}),(0,G.jsxs)(`aside`,{className:CL.docRail,children:[L.length>0&&(0,G.jsxs)(`div`,{className:`${X.card} ${X.cardPad} ${X.rise}`,children:[(0,G.jsx)(`div`,{className:CL.railTitle,children:`Contents`}),(0,G.jsx)(`div`,{className:CL.toc,children:L.map((e,t)=>(0,G.jsx)(`button`,{type:`button`,className:`${CL.tocLink} ${e.level===2?CL.tocLvl2:``} ${e.level===3?CL.tocLvl3:``}`,onClick:()=>z(e.id),children:e.text},t))})]}),(0,G.jsxs)(`div`,{className:`${X.card} ${X.cardPad} ${X.rise}`,children:[(0,G.jsx)(`div`,{className:CL.railTitle,children:`Details`}),(0,G.jsxs)(`dl`,{className:CL.metaDl,children:[f.created_at&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`dt`,{children:`Created`}),(0,G.jsx)(`dd`,{children:new Date(f.created_at).toLocaleDateString()})]}),f.updated_at&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`dt`,{children:`Updated`}),(0,G.jsx)(`dd`,{children:new Date(f.updated_at).toLocaleDateString()})]}),(0,G.jsx)(`dt`,{children:`Origin`}),(0,G.jsx)(`dd`,{className:X.mono,children:f.doc_source??`manual`})]}),B.length>0&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{className:X.divider,style:{margin:`12px 0`}}),(0,G.jsx)(`div`,{className:CL.railTitle,style:{marginBottom:8},children:`Metadata`}),(0,G.jsx)(`div`,{className:CL.metaTags,children:B.map(([e,t])=>(0,G.jsxs)(`span`,{className:CL.metaTag,children:[(0,G.jsxs)(`b`,{children:[e,`:`]}),String(t)]},e))})]})]}),f.versions.length>0&&(0,G.jsxs)(`div`,{className:`${X.card} ${X.cardPad} ${X.rise}`,children:[(0,G.jsxs)(`div`,{className:CL.railTitle,children:[`Versions `,(0,G.jsx)(`span`,{className:X.countPill,children:f.versions.length}),(0,G.jsxs)(fl,{width:240,position:`bottom-end`,withArrow:!0,shadow:`md`,children:[(0,G.jsx)(fl.Target,{children:(0,G.jsx)(`button`,{type:`button`,className:X.whatis,style:{marginLeft:`auto`},children:`what's protection?`})}),(0,G.jsx)(fl.Dropdown,{children:(0,G.jsx)(Y,{size:`xs`,c:`dimmed`,children:`Archived (protected) versions are kept indefinitely and excluded from automatic cleanup. Unprotected older versions may be pruned by retention. Toggle protection from a version's ⋯ menu.`})})]})]}),(0,G.jsx)(`div`,{className:CL.verList,children:f.versions.map(t=>{let i=t.version_id===n;return(0,G.jsxs)(`div`,{className:`${CL.verRow} ${i?CL.verRowActive:``}`,children:[(0,G.jsxs)(`div`,{className:CL.verRowTop,children:[(0,G.jsxs)(`button`,{type:`button`,className:`${X.badge} ${i?X.bPrimary:X.bNeutral} ${X.mono} ${CL.verLink}`,title:i?`Currently viewing this version`:`View version v${t.version_number}`,onClick:()=>r(`/document/${e}?version=${t.version_id}`),children:[`v`,t.version_number]}),(0,G.jsx)(`span`,{className:`${X.faint} ${X.mono}`,style:{fontSize:11},children:new Date(t.created_at).toLocaleDateString()}),t.archived&&(0,G.jsx)(`span`,{className:CL.verLock,title:`Archived — protected from cleanup`,children:(0,G.jsx)(PT,{size:12})}),(0,G.jsxs)(Bh,{position:`bottom-end`,withinPortal:!0,shadow:`md`,width:180,children:[(0,G.jsx)(Bh.Target,{children:(0,G.jsx)(`button`,{type:`button`,className:X.iconBtn,style:{width:26,height:26,marginLeft:`auto`},"aria-label":`Version actions`,children:(0,G.jsx)(xT,{size:14})})}),(0,G.jsxs)(Bh.Dropdown,{children:[(0,G.jsx)(Bh.Item,{leftSection:(0,G.jsx)(kT,{size:14}),onClick:()=>r(`/document/${e}?version=${t.version_id}`),children:`Open this version`}),(0,G.jsx)(Bh.Item,{leftSection:(0,G.jsx)(lT,{size:14}),onClick:()=>I(t.version_id,t.version_number),children:`Diff vs current`}),kL.map(({format:e,label:n,icon:r})=>(0,G.jsxs)(Bh.Item,{leftSection:(0,G.jsx)(r,{size:14}),onClick:()=>O(t.version_id,e),children:[`Download `,n]},e)),(0,G.jsx)(Bh.Item,{leftSection:(0,G.jsx)(PT,{size:14}),color:t.archived?`yellow`:void 0,onClick:()=>k.mutate({versionId:t.version_id,archived:!t.archived}),children:t.archived?`Remove protection`:`Archive (protect)`})]})]})]}),(0,G.jsxs)(`span`,{className:CL.verMeta,children:[t.chunk_count,` chunks · `,t.total_chars.toLocaleString(),` chars`]})]},t.version_id)})})]}),(0,G.jsxs)(`div`,{className:`${X.card} ${X.cardPad} ${X.rise}`,children:[(0,G.jsx)(`div`,{className:CL.railTitle,children:`Activity`}),v?.length?(0,G.jsx)(`div`,{className:CL.actList,children:v.map(e=>{let t=e.size_before!=null&&e.size_after!=null?e.size_after-e.size_before:0;return(0,G.jsxs)(`div`,{className:CL.actRow,children:[(0,G.jsx)(`span`,{className:CL.actDot,style:{background:DL(e.operation)}}),(0,G.jsxs)(`div`,{className:X.col,style:{gap:2,minWidth:0},children:[(0,G.jsx)(`span`,{style:{fontSize:12.5},children:e.description||e.operation}),(0,G.jsxs)(`span`,{className:X.faint,style:{fontSize:11},children:[(0,G.jsx)(`span`,{className:e.author_type===`agent`?CL.actAgent:``,children:e.author}),` `,`· `,new Date(e.created_at).toLocaleDateString(),t>0&&(0,G.jsxs)(`span`,{className:X.mono,style:{color:`var(--green)`},children:[` `,`+`,t.toLocaleString()]})]})]})]},e.id)})}):(0,G.jsx)(`span`,{className:X.faint,style:{fontSize:12},children:`No recorded activity.`})]})]})]}),(0,G.jsx)(ng,{opened:A!==null&&M!==null,onClose:()=>{j(null),N(null)},title:`Diff: ${P} vs current`,size:`xl`,children:M!==null&&(0,G.jsx)(xL,{oldContent:M,newContent:f.full_content,oldLabel:P,newLabel:`Current`})})]})}var ML={readme:`Project overview`,"agent-guide":`Agent integration`,guide:`Guides`},NL=[`readme`,`agent-guide`,`guide`],PL={readme:(0,G.jsx)(wT,{size:16}),"agent-guide":(0,G.jsx)(BT,{size:16}),guide:(0,G.jsx)(uT,{size:16})};function FL(e){let t=URL.createObjectURL(new Blob([e],{type:`text/plain;charset=utf-8`}));window.open(t,`_blank`,`noopener`),setTimeout(()=>URL.revokeObjectURL(t),6e4)}function IL(){let e=GS(),{"*":t}=YS(),n=ux({queryKey:[`docs`,`index`],queryFn:aE,staleTime:1/0}),r=(0,_.useMemo)(()=>n.data??[],[n.data]),[i,a]=(0,_.useState)(``),o=(0,_.useMemo)(()=>{let e=i.trim().toLowerCase();return e?r.filter(t=>t.title.toLowerCase().includes(e)||t.path.toLowerCase().includes(e)):r},[r,i]),s=t&&t.length>0?t:r[0]?.path,c=r.find(e=>e.path===s)?.title;LE(c?`Help: ${c}`:`Help`);let l=ux({queryKey:[`docs`,`content`,s],queryFn:()=>oE(s),staleTime:1/0,enabled:!!s}),u=(0,_.useMemo)(()=>{let e={};for(let t of o)(e[t.category]??=[]).push(t);return e},[o]);return n.isLoading?(0,G.jsx)(Em,{py:`xl`,children:(0,G.jsx)(bl,{})}):n.isError?(0,G.jsx)(Em,{py:`xl`,children:(0,G.jsx)(Wd,{color:`red`,title:`Could not load documentation`,children:n.error.message})}):r.length===0?(0,G.jsx)(Em,{py:`xl`,children:(0,G.jsxs)(Wd,{color:`yellow`,title:`No bundled docs available`,children:[`This Cerefox install did not ship with bundled documentation. Check that the wheel was built with the`,` `,(0,G.jsx)(`code`,{children:`[tool.hatch.build.targets.wheel.force-include]`}),` block intact, or run from a repo checkout.`]})}):(0,G.jsxs)(Em,{fluid:!0,py:`xs`,children:[(0,G.jsx)(`p`,{className:X.eyebrow,children:`Reference`}),(0,G.jsxs)(Bm,{gap:`md`,children:[(0,G.jsx)(Bm.Col,{span:{base:12,md:3},children:(0,G.jsxs)(Mv,{gap:2,children:[(0,G.jsx)(Gv,{order:5,mb:`xs`,children:`Help`}),(0,G.jsx)(Bv,{placeholder:`Filter guides…`,value:i,onChange:e=>a(e.currentTarget.value),leftSection:(0,G.jsx)(VT,{size:14}),size:`xs`,mb:`sm`}),o.length===0&&(0,G.jsxs)(Y,{size:`xs`,c:`dimmed`,children:[`No guides match "`,i,`".`]}),NL.filter(e=>u[e]?.length).map(t=>(0,G.jsxs)(Mv,{gap:0,mb:`sm`,children:[(0,G.jsxs)(Rl,{gap:6,mb:4,mt:6,children:[PL[t],(0,G.jsx)(Y,{size:`xs`,c:`dimmed`,tt:`uppercase`,fw:600,children:ML[t]??t})]}),u[t].map(t=>(0,G.jsx)(wg,{label:t.title,description:t.path,active:t.path===s,onClick:()=>e(`/help/${t.path}`)},t.path))]},t))]})}),(0,G.jsxs)(Bm.Col,{span:{base:12,md:9},children:[l.isLoading&&(0,G.jsx)(bl,{}),l.isError&&(0,G.jsx)(Wd,{color:`red`,title:`Could not load ${s}`,children:l.error.message}),l.data&&(0,G.jsxs)(Mv,{gap:`sm`,children:[(0,G.jsxs)(Rl,{justify:`space-between`,align:`flex-end`,wrap:`nowrap`,children:[(0,G.jsx)(Gv,{order:3,children:r.find(e=>e.path===s)?.title??s}),(0,G.jsxs)(Rl,{gap:`sm`,wrap:`nowrap`,children:[(0,G.jsx)(yE,{cmd:`cerefox guides show`,args:s}),(0,G.jsx)(Zd,{size:`xs`,c:`dimmed`,component:`button`,type:`button`,onClick:()=>FL(l.data),children:`raw`})]})]}),(0,G.jsx)(jI,{content:l.data,showToggle:!1,maxHeight:`calc(100vh - 170px)`})]})]})]})]})}var LL={wrap:`_wrap_1arvn_4`,split:`_split_1arvn_10`,col:`_col_1arvn_16`,field:`_field_1arvn_23`,input:`_input_1arvn_30`,textarea:`_textarea_1arvn_49`,preview:`_preview_1arvn_56`,dropZone:`_dropZone_1arvn_61`,dropZoneOver:`_dropZoneOver_1arvn_75`,dropZoneHas:`_dropZoneHas_1arvn_79`,dropIco:`_dropIco_1arvn_83`,toggleRow:`_toggleRow_1arvn_94`,toggle:`_toggle_1arvn_94`,toggleOn:`_toggleOn_1arvn_119`,steps:`_steps_1arvn_128`,faint:`_faint_1arvn_149`,stepN:`_stepN_1arvn_154`,actions:`_actions_1arvn_168`},RL=[`--primary`,`--violet`,`--blue`,`--green`,`--yellow`,`--red`];function zL(){LE(`Ingest`);let e=GS(),t=Xy(),{data:n}=RI(),{data:r}=zI(),i=(0,_.useRef)(null),[a,o]=(0,_.useState)(`paste`),[s,c]=(0,_.useState)(``),[l,u]=(0,_.useState)([]),[d,f]=(0,_.useState)(``),[p,m]=(0,_.useState)([]),[h,g]=(0,_.useState)(!1),[v,y]=(0,_.useState)(``),[b,x]=(0,_.useState)(`edit`),[S,C]=(0,_.useState)(null),[w,T]=(0,_.useState)(!1),[E,D]=(0,_.useState)(null),[O,k]=(0,_.useState)(null),A=()=>{let e={};for(let t of p)t.key.trim()&&t.value.trim()&&(e[t.key.trim()]=t.value.trim());return e},j=e=>{k(e),e.success&&MI(t),e.skipped&&e.note&&HI(`Ingest skipped`,e.note)},M=e=>{WI(e)||HI(`Ingest failed`,e instanceof Error?e.message:String(e))},N=dx({mutationFn:()=>mD({title:s,content:v,update_existing:h,...h?{last_write_wins:!0}:{},project_ids:l,metadata:A()}),onSuccess:j,onError:M}),P=dx({mutationFn:async()=>{if(!S)throw Error(`No file selected`);let e=new FormData;e.append(`file`,S),s.trim()&&e.append(`title`,s.trim()),e.append(`update_existing`,String(h)),h&&e.append(`last_write_wins`,`true`),l.length>0&&e.append(`project_ids`,l.join(`,`));let t=A();Object.keys(t).length>0&&e.append(`metadata`,JSON.stringify(t));let n=await Gw(`/ingest/file`,{method:`POST`,body:e});if(!n.ok)throw await Qw(n)||Error(await $w(n));return n.json()},onSuccess:j,onError:M}),F=async e=>{if(C(e),D(null),e?.name)try{let t=await hD(e.name);D(t),t.exists&&g(!0)}catch{}},I=e=>u(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),L=()=>a===`file`?P.mutate():N.mutate(),R=N.isPending||P.isPending,z=a===`file`?!!S:s.trim().length>0&&v.trim().length>0,B=a===`paste`?Math.round(v.length/700):S?Math.round(S.size/700):0,ee=n?.find(e=>e.id===l[0])?.name??`core-platform`,te=n??[],ne=d?te.filter(e=>e.name.toLowerCase().includes(d.toLowerCase())):te;return(0,G.jsxs)(`div`,{className:LL.wrap,children:[(0,G.jsx)(`div`,{className:X.pageHead,children:(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`p`,{className:X.eyebrow,children:`Add to memory`}),(0,G.jsx)(`h1`,{className:X.pageTitle,"data-testid":`page-title`,children:`Ingest content`})]})}),O?.success&&(0,G.jsxs)(Wd,{icon:(0,G.jsx)(dT,{size:16}),title:O.updated?`Updated`:`Ingested`,color:`green`,mb:`md`,withCloseButton:!0,onClose:()=>k(null),children:[O.updated?`"${O.title}" updated and re-indexed.`:`"${O.title}" ingested successfully.`,` `,O.document_id&&(0,G.jsx)(`span`,{style:{cursor:`pointer`,textDecoration:`underline`,color:`var(--primary)`},onClick:()=>e(`/document/${O.document_id}`),children:`View document`})]}),O?.skipped&&!O.note&&(0,G.jsxs)(Wd,{icon:(0,G.jsx)(dT,{size:16}),title:`Already in memory`,color:`blue`,mb:`md`,withCloseButton:!0,onClose:()=>k(null),"data-testid":`ingest-skipped`,children:[`"${O.title}" already has exactly this content, so nothing was written.`,` `,O.document_id&&(0,G.jsx)(`span`,{style:{cursor:`pointer`,textDecoration:`underline`,color:`var(--primary)`},onClick:()=>e(`/document/${O.document_id}`),children:`View document`})]}),O&&!O.success&&O.error&&(0,G.jsx)(Wd,{icon:(0,G.jsx)(YT,{size:16}),title:`Error`,color:`red`,mb:`md`,withCloseButton:!0,onClose:()=>k(null),children:O.error}),(0,G.jsxs)(`div`,{className:X.seg,style:{marginBottom:20},children:[(0,G.jsxs)(`button`,{type:`button`,className:`${X.segBtn} ${a===`paste`?X.segBtnOn:``}`,onClick:()=>o(`paste`),children:[(0,G.jsx)(wT,{size:14}),`Paste content`]}),(0,G.jsxs)(`button`,{type:`button`,className:`${X.segBtn} ${a===`file`?X.segBtnOn:``}`,onClick:()=>o(`file`),children:[(0,G.jsx)(JT,{size:14}),`Upload file`]})]}),(0,G.jsxs)(`form`,{className:LL.split,onSubmit:e=>{e.preventDefault(),z&&L()},children:[(0,G.jsxs)(`div`,{className:LL.col,children:[(0,G.jsxs)(`div`,{className:LL.field,children:[(0,G.jsxs)(`label`,{children:[`Title`,a===`file`&&(0,G.jsx)(`span`,{className:X.faint,children:` (optional — defaults to filename)`})]}),(0,G.jsx)(`input`,{className:LL.input,value:s,onChange:e=>c(e.currentTarget.value),placeholder:`Document title`})]}),te.length>0&&(0,G.jsxs)(`div`,{className:LL.field,children:[(0,G.jsx)(`label`,{children:`Projects`}),te.length>8&&(0,G.jsxs)(`div`,{className:X.selectWrap,style:{width:`100%`,marginBottom:8,height:34},children:[(0,G.jsx)(VT,{size:14}),(0,G.jsx)(`input`,{className:X.selectEl,style:{maxWidth:`none`,flex:1},placeholder:`Filter ${te.length} projects…`,value:d,onChange:e=>f(e.currentTarget.value)})]}),(0,G.jsxs)(`div`,{className:X.row,style:{gap:7,flexWrap:`wrap`},children:[ne.map(e=>{let t=te.indexOf(e);return(0,G.jsxs)(`button`,{type:`button`,className:`${X.chip} ${l.includes(e.id)?X.chipOn:``}`,onClick:()=>I(e.id),children:[(0,G.jsx)(`span`,{style:{width:7,height:7,borderRadius:`50%`,background:`var(${RL[t%RL.length]})`}}),e.name]},e.id)}),ne.length===0&&(0,G.jsxs)(`span`,{className:X.faint,style:{fontSize:12.5},children:[`No projects match "`,d,`".`]})]})]}),(0,G.jsxs)(`div`,{className:LL.field,children:[(0,G.jsxs)(`label`,{children:[`Metadata `,(0,G.jsx)(`span`,{className:X.faint,children:`(optional)`})]}),(0,G.jsx)(`datalist`,{id:`cerefox-meta-keys`,children:r?.map(e=>(0,G.jsx)(`option`,{value:e.key},e.key))}),(0,G.jsxs)(`div`,{className:X.col,style:{gap:8},children:[p.map((e,t)=>(0,G.jsxs)(`div`,{className:X.row,style:{gap:8},children:[(0,G.jsx)(`input`,{className:LL.input,style:{flex:1},list:`cerefox-meta-keys`,placeholder:`key`,value:e.key,onChange:e=>{let n=e.currentTarget.value;m(e=>e.map((e,r)=>r===t?{...e,key:n}:e))}}),(0,G.jsx)(`input`,{className:LL.input,style:{flex:1},placeholder:`value`,value:e.value,onChange:e=>{let n=e.currentTarget.value;m(e=>e.map((e,r)=>r===t?{...e,value:n}:e))}}),(0,G.jsx)(`button`,{type:`button`,className:X.iconBtn,"aria-label":`Remove`,onClick:()=>m(e=>e.filter((e,n)=>n!==t)),children:(0,G.jsx)(YT,{size:15})})]},t)),(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,style:{alignSelf:`flex-start`},onClick:()=>m(e=>[...e,{key:``,value:``}]),children:[(0,G.jsx)(zT,{size:14}),`Add field`]})]})]}),a===`file`?(0,G.jsxs)(`div`,{className:LL.field,children:[(0,G.jsx)(`label`,{children:`File`}),(0,G.jsx)(`input`,{ref:i,type:`file`,accept:`.md,.txt,.docx`,style:{display:`none`},onChange:e=>F(e.currentTarget.files?.[0]??null)}),(0,G.jsxs)(`div`,{className:`${LL.dropZone} ${w?LL.dropZoneOver:``} ${S?LL.dropZoneHas:``}`,onClick:()=>i.current?.click(),onDragOver:e=>{e.preventDefault(),T(!0)},onDragLeave:()=>T(!1),onDrop:e=>{e.preventDefault(),T(!1);let t=e.dataTransfer.files?.[0];t&&F(t)},children:[(0,G.jsx)(`span`,{className:LL.dropIco,children:(0,G.jsx)(JT,{size:20})}),S?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{className:X.mono,style:{fontWeight:600,fontSize:14,marginTop:10},children:S.name}),(0,G.jsx)(`span`,{className:X.faint,style:{fontSize:12.5},children:`Ready to ingest · click to replace`})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{style:{fontWeight:600,fontSize:14,marginTop:10},children:`Drop a file or click to browse`}),(0,G.jsx)(`span`,{className:X.faint,style:{fontSize:12.5},children:`.md · .txt · .docx`})]})]}),E?.exists&&(0,G.jsxs)(Wd,{color:`blue`,variant:`light`,mt:`sm`,children:[`A document named "`,E.title,`" already exists (updated`,` `,E.updated_at?new Date(E.updated_at).toLocaleDateString():`unknown`,`). Enable "Update existing" to overwrite it.`]})]}):(0,G.jsxs)(`div`,{className:LL.field,children:[(0,G.jsxs)(`div`,{className:X.row,style:{justifyContent:`space-between`,marginBottom:8},children:[(0,G.jsx)(`label`,{style:{margin:0},children:`Content`}),(0,G.jsxs)(`div`,{className:X.seg,style:{padding:2},children:[(0,G.jsx)(`button`,{type:`button`,className:`${X.segBtn} ${b===`edit`?X.segBtnOn:``}`,style:{padding:`4px 10px`},onClick:()=>x(`edit`),children:`Edit`}),(0,G.jsx)(`button`,{type:`button`,className:`${X.segBtn} ${b===`preview`?X.segBtnOn:``}`,style:{padding:`4px 10px`},onClick:()=>x(`preview`),children:`Preview`})]})]}),b===`edit`?(0,G.jsx)(`textarea`,{className:`${LL.input} ${LL.textarea}`,value:v,onChange:e=>y(e.currentTarget.value),placeholder:`# Paste your Markdown here…`}):(0,G.jsx)(`div`,{className:`${X.card} ${X.cardPad} ${LL.preview}`,children:v.trim()?(0,G.jsx)(jI,{content:v,defaultView:`rendered`,maxHeight:400,showToggle:!1}):(0,G.jsx)(`span`,{className:X.faint,children:`Nothing to preview yet.`})})]}),(0,G.jsxs)(`div`,{className:LL.actions,children:[(0,G.jsxs)(`button`,{type:`submit`,className:`${X.btn} ${X.btnPrimary}`,disabled:!z||R,children:[(0,G.jsx)(dT,{size:16}),a===`file`?`Upload & ingest`:`Ingest`]}),(0,G.jsxs)(`label`,{className:LL.toggleRow,children:[(0,G.jsx)(`button`,{type:`button`,className:`${LL.toggle} ${h?LL.toggleOn:``}`,role:`switch`,"aria-checked":h,onClick:()=>g(e=>!e),children:(0,G.jsx)(`span`,{})}),(0,G.jsx)(`span`,{style:{fontSize:13},children:`Update existing if title matches (replaces its content)`})]})]})]}),(0,G.jsxs)(`aside`,{className:LL.col,children:[(0,G.jsxs)(`div`,{className:`${X.card} ${X.cardPad} ${X.rise}`,children:[(0,G.jsx)(`div`,{className:X.mono,style:{fontSize:10.5,letterSpacing:`0.1em`,textTransform:`uppercase`,color:`var(--text-faint)`,marginBottom:12},children:`Pipeline`}),(0,G.jsxs)(`ol`,{className:LL.steps,children:[(0,G.jsxs)(`li`,{children:[(0,G.jsx)(`span`,{className:LL.stepN,children:`1`}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`b`,{children:`Chunked`}),(0,G.jsxs)(`span`,{className:`faint`,children:[`Split on headings into ~`,B||`—`,` semantic chunks.`]})]})]}),(0,G.jsxs)(`li`,{children:[(0,G.jsx)(`span`,{className:LL.stepN,children:`2`}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`b`,{children:`Embedded`}),(0,G.jsx)(`span`,{className:`faint`,children:`Each chunk vectorized for semantic search.`})]})]}),(0,G.jsxs)(`li`,{children:[(0,G.jsx)(`span`,{className:LL.stepN,children:`3`}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`b`,{children:`Staged`}),(0,G.jsx)(`span`,{className:`faint`,children:`Indexed and discoverable by your agents.`})]})]})]})]}),(0,G.jsx)(JE,{title:`CLI equivalent`,commands:[{cmd:`cerefox document ingest`,args:`./${S?.name??`doc.md`} --project-name ${ee}`}]})]})]})]})}function BL(){let{id:e}=YS(),t=GS(),{data:n}=RI(),r=n?.find(t=>t.id===e);LE(r?.name??null);let i=new Map(n?.map(e=>[e.id,e.name])??[]),[a,o]=(0,_.useState)(1),[s,c]=wE(),l=(a-1)*s,{data:u,isLoading:d,isFetching:f}=ux({queryKey:[`project-documents`,e,a,s],queryFn:()=>Uw(`/projects/${e}/documents?limit=${s}&offset=${l}`),enabled:!!e,placeholderData:bb}),p=u?.documents??[],m=u?.total??0,h=Math.max(1,Math.ceil(m/s));return(0,G.jsxs)(`div`,{className:TE.wrap,children:[(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,style:{marginBottom:12,paddingLeft:6},onClick:()=>t(`/projects`),children:[(0,G.jsx)(sT,{size:15}),`Projects`]}),(0,G.jsxs)(`div`,{className:X.pageHead,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`p`,{className:X.eyebrow,children:`Memory space`}),(0,G.jsx)(`h1`,{className:X.pageTitle,children:r?.name||`Project`}),r?.description&&(0,G.jsx)(`p`,{className:X.pageSub,children:r.description})]}),(0,G.jsx)(yE,{cmd:`cerefox document list`,args:`--project "${r?.name??`<name>`}"`})]}),d?(0,G.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`,marginTop:40},children:(0,G.jsx)(bl,{})}):m===0?(0,G.jsx)(`div`,{className:`${X.card} ${TE.emptyRow}`,children:`No documents in this project.`}):(0,G.jsxs)(`div`,{className:`${X.card} ${X.rise}`,style:{overflow:`hidden`},children:[(0,G.jsxs)(`table`,{className:TE.tbl,children:[(0,G.jsx)(`thead`,{children:(0,G.jsxs)(`tr`,{children:[(0,G.jsx)(`th`,{children:`Document`}),(0,G.jsx)(`th`,{style:{width:90,textAlign:`right`},children:`Chunks`}),(0,G.jsx)(`th`,{style:{width:110,textAlign:`right`},children:`Size`}),(0,G.jsx)(`th`,{style:{width:120,textAlign:`right`},children:`Updated`})]})}),(0,G.jsx)(`tbody`,{children:p.map(n=>{let r=n.review_status===`pending_review`;return(0,G.jsxs)(`tr`,{style:{cursor:`pointer`},onClick:()=>t(`/document/${n.id}`),children:[(0,G.jsx)(`td`,{children:(0,G.jsxs)(`span`,{style:{display:`inline-flex`,alignItems:`center`,gap:8,flexWrap:`wrap`},children:[(0,G.jsx)(`span`,{className:X.link,style:{fontSize:13.5},children:n.title||`Untitled`}),n.project_ids.filter(t=>t!==e&&i.has(t)).map(e=>(0,G.jsx)(`span`,{className:`${X.badge} ${X.bNeutral}`,children:i.get(e)},e)),r&&(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:`${X.mono} ${X.dim}`,style:{textAlign:`right`},children:n.chunk_count}),(0,G.jsx)(`td`,{className:`${X.mono} ${X.dim}`,style:{textAlign:`right`},children:n.total_chars.toLocaleString()}),(0,G.jsx)(`td`,{className:`${X.faint}`,style:{textAlign:`right`},children:OE(n.updated_at)})]},n.id)})})]}),(0,G.jsx)(EE,{page:a,pageCount:h,total:m,pageSize:s,onPage:o,onPageSize:e=>{c(e),o(1)},loading:f&&!d})]})]})}var VL=[`--primary`,`--violet`,`--blue`,`--green`,`--yellow`,`--red`];function HL(){LE(`Projects`);let e=GS(),t=Xy(),{data:n,isLoading:r}=RI(),{data:i}=ux({queryKey:[`dashboard`],queryFn:()=>YE()}),a=i?.project_doc_counts??{},o=i?.project_deleted_doc_counts??{},s=Math.max(1,...Object.values(a)),c=new Map((n??[]).map((e,t)=>[e.id,VL[t%VL.length]])),[l,u]=(0,_.useState)(``),[d,f]=(0,_.useState)(!1),[p,m]=(0,_.useState)(``),[h,g]=(0,_.useState)(``),[v,y]=(0,_.useState)(null),[b,x]=(0,_.useState)(``),[S,C]=(0,_.useState)(``),[w,T]=(0,_.useState)(null),E=dx({mutationFn:()=>FI(p.trim(),h.trim()),onSuccess:()=>{t.invalidateQueries({queryKey:[`projects`]}),BI(`Project created`),m(``),g(``),f(!1)},onError:e=>HI(`Create failed`,String(e))}),D=dx({mutationFn:()=>II(v,b.trim(),S.trim()),onSuccess:()=>{t.invalidateQueries({queryKey:[`projects`]}),BI(`Project updated`),y(null)},onError:e=>HI(`Update failed`,String(e))}),O=dx({mutationFn:e=>LI(e),onSuccess:()=>{t.invalidateQueries({queryKey:[`projects`]}),t.invalidateQueries({queryKey:[`dashboard`]}),BI(`Project deleted`),T(null)},onError:e=>{e instanceof zw&&e.status===404?(t.invalidateQueries({queryKey:[`projects`]}),t.invalidateQueries({queryKey:[`dashboard`]}),T(null)):HI(`Delete failed`,String(e))}});return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(DE,{eyebrow:`Memory spaces`,title:`Projects`,subtitle:`Scoped collections your agents read from and write to.`,headerRight:(0,G.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,alignItems:`flex-end`,gap:8,width:400,maxWidth:`100%`},children:[(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnPrimary}`,style:{alignSelf:`flex-end`},onClick:()=>f(!0),children:[(0,G.jsx)(zT,{size:16}),`New project`]}),(0,G.jsx)(JE,{title:`CLI equivalent`,commands:[{cmd:`cerefox project list`},{cmd:`cerefox project create`,args:`<name>`}]})]}),searchValue:l,onSearchChange:u,searchPlaceholder:`Filter projects…`,searchText:e=>`${e.name} ${e.description??``}`,columns:[{key:`name`,label:`Project`,render:e=>(0,G.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:11},children:[(0,G.jsx)(`span`,{style:{width:9,height:9,borderRadius:`50%`,flexShrink:0,background:`var(${c.get(e.id)??`--border`})`}}),(0,G.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:2,minWidth:0},children:[(0,G.jsx)(`span`,{className:X.mono,style:{fontWeight:600,fontSize:13},children:e.name}),e.description&&(0,G.jsx)(`span`,{className:X.faint,style:{fontSize:12},children:e.description})]})]})},{key:`docs`,label:`Documents`,width:180,render:e=>{let t=a[e.id]??0;return(0,G.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:10},children:[(0,G.jsx)(`span`,{className:X.mono,style:{fontSize:13},children:t}),(0,G.jsx)(`span`,{style:{flex:1,maxWidth:90,height:5,borderRadius:3,background:`var(--surface-2)`,overflow:`hidden`},children:(0,G.jsx)(`span`,{style:{display:`block`,height:`100%`,width:`${t/s*100}%`,background:`var(${c.get(e.id)??`--border`})`}})})]})}},{key:`trash`,label:`In trash`,width:90,align:`right`,render:e=>{let t=o[e.id]??0;return t>0?(0,G.jsx)(`span`,{className:`${X.mono} ${X.faint}`,style:{fontSize:12},children:t}):(0,G.jsx)(`span`,{className:`${X.mono} ${X.faint}`,style:{fontSize:12},children:`—`})}}],rows:n??[],rowKey:e=>e.id,rowClick:t=>e(`/projects/${t.id}/documents`),loading:r,emptyText:`No projects yet. Create one to get started.`,actions:e=>w===e.id?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,style:{color:`var(--red)`},disabled:O.isPending,onClick:()=>O.mutate(e.id),children:`Delete`}),(0,G.jsx)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,onClick:()=>T(null),children:`Cancel`})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`button`,{type:`button`,className:X.iconBtnSm,title:`Edit`,onClick:()=>{y(e.id),x(e.name),C(e.description||``)},children:(0,G.jsx)(CT,{size:14})}),(0,G.jsx)(`button`,{type:`button`,className:`${X.iconBtnSm} ${X.iconBtnDanger}`,title:`Delete`,onClick:()=>T(e.id),children:(0,G.jsx)(qT,{size:14})})]})}),(0,G.jsx)(ng,{opened:d,onClose:()=>f(!1),title:`New project`,children:(0,G.jsx)(`form`,{onSubmit:e=>{e.preventDefault(),p.trim()&&E.mutate()},children:(0,G.jsxs)(Mv,{gap:`sm`,children:[(0,G.jsx)(Bv,{label:`Name`,value:p,onChange:e=>m(e.currentTarget.value),required:!0,placeholder:`Project name`,"data-autofocus":!0}),(0,G.jsx)(Bv,{label:`Description`,value:h,onChange:e=>g(e.currentTarget.value),placeholder:`Optional description`}),(0,G.jsx)(dm,{type:`submit`,loading:E.isPending,children:`Create`})]})})}),(0,G.jsx)(ng,{opened:v!==null,onClose:()=>y(null),title:`Edit project`,children:(0,G.jsx)(`form`,{onSubmit:e=>{e.preventDefault(),D.mutate()},children:(0,G.jsxs)(Mv,{gap:`sm`,children:[(0,G.jsx)(Bv,{label:`Name`,value:b,onChange:e=>x(e.currentTarget.value),required:!0}),(0,G.jsx)(Bv,{label:`Description`,value:S,onChange:e=>C(e.currentTarget.value)}),(0,G.jsxs)(Rl,{gap:`sm`,children:[(0,G.jsx)(dm,{type:`submit`,loading:D.isPending,children:`Save`}),(0,G.jsx)(dm,{variant:`subtle`,onClick:()=>y(null),children:`Cancel`})]})]})})})]})}var UL=[`remote-mcp`,`local-mcp`,`cli`,`webapp`,`edge-function`,`api`],WL=sR(),GL=e=>nR(e,WL),KL=sR();GL.write=e=>nR(e,KL);var qL=sR();GL.onStart=e=>nR(e,qL);var JL=sR();GL.onFrame=e=>nR(e,JL);var YL=sR();GL.onFinish=e=>nR(e,YL);var XL=[];GL.setTimeout=(e,t)=>{let n=GL.now()+t,r=()=>{let e=XL.findIndex(e=>e.cancel==r);~e&&XL.splice(e,1),eR-=+!!~e},i={time:n,handler:e,cancel:r};return XL.splice(ZL(n),0,i),eR+=1,rR(),i};var ZL=e=>~(~XL.findIndex(t=>t.time>e)||~XL.length);GL.cancel=e=>{qL.delete(e),JL.delete(e),WL.delete(e),KL.delete(e),YL.delete(e)},GL.sync=e=>{tR=!0,GL.batchedUpdates(e),tR=!1},GL.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,GL.onStart(n)}return r.handler=e,r.cancel=()=>{qL.delete(n),t=null},r};var QL=typeof window<`u`?window.requestAnimationFrame:()=>{};GL.use=e=>QL=e,GL.now=typeof performance<`u`?()=>performance.now():Date.now,GL.batchedUpdates=e=>e(),GL.catch=console.error,GL.frameLoop=`always`,GL.advance=()=>{GL.frameLoop===`demand`?oR():console.warn(`Cannot call the manual advancement of rafz whilst frameLoop is not set as demand`)};var $L=-1,eR=0,tR=!1;function nR(e,t){tR?(t.delete(e),e(0)):(t.add(e),rR())}function rR(){$L<0&&($L=0,GL.frameLoop!==`demand`&&QL(aR))}function iR(){$L=-1}function aR(){~$L&&(QL(aR),GL.batchedUpdates(oR))}function oR(){let e=$L;$L=GL.now();let t=ZL($L);t&&(cR(XL.splice(0,t),e=>e.handler()),eR-=t),qL.flush(),WL.flush(e?Math.min(64,$L-e):16.667),JL.flush(),KL.flush(),YL.flush(),eR||iR()}function sR(){let e=new Set,t=e;return{add(n){eR+=+(t==e&&!e.has(n)),e.add(n)},delete(n){return eR-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,eR-=t.size,cR(t,t=>t(n)&&e.add(t)),eR+=e.size,t=e)}}}function cR(e,t){e.forEach(e=>{try{t(e)}catch(e){GL.catch(e)}})}function lR(){}var uR=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Q={arr:Array.isArray,obj:e=>!!e&&e.constructor.name===`Object`,fun:e=>typeof e==`function`,str:e=>typeof e==`string`,num:e=>typeof e==`number`,und:e=>e===void 0};function dR(e,t){if(Q.arr(e)){if(!Q.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var fR=(e,t)=>e.forEach(t);function pR(e,t,n){if(Q.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(let r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var mR=e=>Q.und(e)?[]:Q.arr(e)?e:[e];function hR(e,t){if(e.size){let n=Array.from(e);e.clear(),fR(n,t)}}var gR=(e,...t)=>hR(e,e=>e(...t)),_R=()=>typeof window>`u`||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),vR,yR,bR=null,xR=!1,SR=lR,CR=Object.freeze({__proto__:null,get createStringInterpolator(){return vR},get to(){return yR},get colors(){return bR},get skipAnimation(){return xR},get willAdvance(){return SR},assign:e=>{e.to&&(yR=e.to),e.now&&(GL.now=e.now),e.colors!==void 0&&(bR=e.colors),e.skipAnimation!=null&&(xR=e.skipAnimation),e.createStringInterpolator&&(vR=e.createStringInterpolator),e.requestAnimationFrame&&GL.use(e.requestAnimationFrame),e.batchedUpdates&&(GL.batchedUpdates=e.batchedUpdates),e.willAdvance&&(SR=e.willAdvance),e.frameLoop&&(GL.frameLoop=e.frameLoop)}}),wR=new Set,TR=[],ER=[],DR=0,OR={get idle(){return!wR.size&&!TR.length},start(e){DR>e.priority?(wR.add(e),GL.onStart(kR)):(AR(e),GL(MR))},advance:MR,sort(e){if(DR)GL.onFrame(()=>OR.sort(e));else{let t=TR.indexOf(e);~t&&(TR.splice(t,1),jR(e))}},clear(){TR=[],wR.clear()}};function kR(){wR.forEach(AR),wR.clear(),GL(MR)}function AR(e){TR.includes(e)||jR(e)}function jR(e){TR.splice(NR(TR,t=>t.priority>e.priority),0,e)}function MR(e){let t=ER;for(let n=0;n<TR.length;n++){let r=TR[n];DR=r.priority,r.idle||(SR(r),r.advance(e),r.idle||t.push(r))}return DR=0,ER=TR,ER.length=0,TR=t,TR.length>0}function NR(e,t){let n=e.findIndex(t);return n<0?e.length:n}var PR={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},FR=`[-+]?\\d*\\.?\\d+`,IR=FR+`%`;function LR(...e){return`\\(\\s*(`+e.join(`)\\s*,\\s*(`)+`)\\s*\\)`}var Yee=RegExp(`rgb`+LR(FR,FR,FR)),Xee=RegExp(`rgba`+LR(FR,FR,FR,FR)),Zee=RegExp(`hsl`+LR(FR,IR,IR)),Qee=RegExp(`hsla`+LR(FR,IR,IR,FR)),$ee=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ete=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,tte=/^#([0-9a-fA-F]{6})$/,nte=/^#([0-9a-fA-F]{8})$/;function rte(e){let t;return typeof e==`number`?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=tte.exec(e))?parseInt(t[1]+`ff`,16)>>>0:bR&&bR[e]!==void 0?bR[e]:(t=Yee.exec(e))?(BR(t[1])<<24|BR(t[2])<<16|BR(t[3])<<8|255)>>>0:(t=Xee.exec(e))?(BR(t[1])<<24|BR(t[2])<<16|BR(t[3])<<8|HR(t[4]))>>>0:(t=$ee.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+`ff`,16)>>>0:(t=nte.exec(e))?parseInt(t[1],16)>>>0:(t=ete.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Zee.exec(e))?(zR(VR(t[1]),UR(t[2]),UR(t[3]))|255)>>>0:(t=Qee.exec(e))?(zR(VR(t[1]),UR(t[2]),UR(t[3]))|HR(t[4]))>>>0:null}function RR(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function zR(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=RR(i,r,e+1/3),o=RR(i,r,e),s=RR(i,r,e-1/3);return Math.round(a*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function BR(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function VR(e){return(parseFloat(e)%360+360)%360/360}function HR(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function UR(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function WR(e){let t=rte(e);return t===null?e:(t||=0,`rgba(${(t&4278190080)>>>24}, ${(t&16711680)>>>16}, ${(t&65280)>>>8}, ${(t&255)/255})`)}var GR=(e,t,n)=>{if(Q.fun(e))return e;if(Q.arr(e))return GR({range:e,output:t,extrapolate:n});if(Q.str(e.output[0]))return vR(e);let r=e,i=r.output,a=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||`extend`,s=r.extrapolateRight||r.extrapolate||`extend`,c=r.easing||(e=>e);return e=>{let t=ate(e,a);return ite(e,a[t],a[t+1],i[t],i[t+1],c,o,s,r.map)}};function ite(e,t,n,r,i,a,o,s,c){let l=c?c(e):e;if(l<t){if(o===`identity`)return l;o===`clamp`&&(l=t)}if(l>n){if(s===`identity`)return l;s===`clamp`&&(l=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t),l=a(l),r===-1/0?l=-l:i===1/0?l+=r:l=l*(i-r)+r,l)}function ate(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}function KR(){return KR=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KR.apply(this,arguments)}var qR=Symbol.for(`FluidValue.get`),JR=Symbol.for(`FluidValue.observers`),YR=e=>!!(e&&e[qR]),XR=e=>e&&e[qR]?e[qR]():e,ZR=e=>e[JR]||null;function ote(e,t){e.eventObserved?e.eventObserved(t):e(t)}function QR(e,t){let n=e[JR];n&&n.forEach(e=>{ote(e,t)})}var $R=class{constructor(e){if(this[qR]=void 0,this[JR]=void 0,!e&&!(e=this.get))throw Error(`Unknown getter`);ste(this,e)}},ste=(e,t)=>nz(e,qR,t);function ez(e,t){if(e[qR]){let n=e[JR];n||nz(e,JR,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function tz(e,t){let n=e[JR];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[JR]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var nz=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),rz=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,cte=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,iz=RegExp(`(${rz.source})(%|[a-z]+)`,`i`),lte=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,az=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,oz=e=>{let[t,n]=ute(e);if(!t||_R())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);return r?r.trim():n&&n.startsWith(`--`)?window.getComputedStyle(document.documentElement).getPropertyValue(n)||e:n&&az.test(n)?oz(n):n||e},ute=e=>{let t=az.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},sz,dte=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,cz=e=>{sz||=bR?RegExp(`(${Object.keys(bR).join(`|`)})(?!\\w)`,`g`):/^\b$/;let t=e.output.map(e=>XR(e).replace(az,oz).replace(cte,WR).replace(sz,WR)),n=t.map(e=>e.match(rz).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error(`The arity of each "output" value must be equal`);return e[t]})).map(t=>GR(KR({},e,{output:t})));return e=>{let n=!iz.test(t[0])&&t.find(e=>iz.test(e))?.replace(rz,``),i=0;return t[0].replace(rz,()=>`${r[i++](e)}${n||``}`).replace(lte,dte)}},lz=`react-spring: `,uz=e=>{let t=e,n=!1;if(typeof t!=`function`)throw TypeError(`${lz}once requires a function parameter`);return(...e)=>{n||=(t(...e),!0)}},fte=uz(console.warn);function pte(){fte(`${lz}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var dz=uz(console.warn);function fz(){dz(`${lz}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function pz(e){return Q.str(e)&&(e[0]==`#`||/\d/.test(e)||!_R()&&az.test(e)||e in(bR||{}))}var mz=typeof window<`u`&&window.document&&window.document.createElement?_.useLayoutEffect:_.useEffect,hz=()=>{let e=(0,_.useRef)(!1);return mz(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function gz(){let e=(0,_.useState)()[1],t=hz();return()=>{t.current&&e(Math.random())}}function _z(e,t){let[n]=(0,_.useState)(()=>({inputs:t,result:e()})),r=(0,_.useRef)(),i=r.current,a=i;return a?t&&a.inputs&&vz(t,a.inputs)||(a={inputs:t,result:e()}):a=n,(0,_.useEffect)(()=>{r.current=a,i==n&&(n.inputs=n.result=void 0)},[a]),a.result}function vz(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var yz=e=>(0,_.useEffect)(e,bz),bz=[];function xz(e){let t=(0,_.useRef)();return(0,_.useEffect)(()=>{t.current=e}),t.current}var Sz=Symbol.for(`Animated:node`),Cz=e=>!!e&&e[Sz]===e,wz=e=>e&&e[Sz],Tz=(e,t)=>uR(e,Sz,t),Ez=e=>e&&e[Sz]&&e[Sz].getPayload(),Dz=class{constructor(){this.payload=void 0,Tz(this,this)}getPayload(){return this.payload||[]}},Oz=class e extends Dz{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,Q.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new e(t)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Q.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,Q.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},kz=class e extends Oz{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=GR({output:[e,e]})}static create(t){return new e(t)}getValue(){return this._string??=this._toString(this._value)}setValue(e){if(Q.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=GR({output:[this.getValue(),e]})),this._value=0,super.reset()}},Az={dependencies:null},jz=class extends Dz{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return pR(this.source,(n,r)=>{Cz(n)?t[r]=n.getValue(e):YR(n)?t[r]=XR(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&fR(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return pR(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Az.dependencies&&YR(e)&&Az.dependencies.add(e);let t=Ez(e);t&&fR(t,e=>this.add(e))}},Mz=class e extends jz{constructor(e){super(e)}static create(t){return new e(t)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(Nz)),!0)}};function Nz(e){return(pz(e)?kz:Oz).create(e)}function Pz(e){let t=wz(e);return t?t.constructor:Q.arr(e)?Mz:pz(e)?kz:Oz}function Fz(){return Fz=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fz.apply(this,arguments)}var Iz=(e,t)=>{let n=!Q.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,_.forwardRef)((r,i)=>{let a=(0,_.useRef)(null),o=n&&(0,_.useCallback)(e=>{a.current=zz(i,e)},[i]),[s,c]=Rz(r,t),l=gz(),u=()=>{let e=a.current;(!n||e)&&(e?t.applyAnimatedValues(e,s.getValue(!0)):!1)===!1&&l()},d=new Lz(u,c),f=(0,_.useRef)();mz(()=>(f.current=d,fR(c,e=>ez(e,d)),()=>{f.current&&(fR(f.current.deps,e=>tz(e,f.current)),GL.cancel(f.current.update))})),(0,_.useEffect)(u,[]),yz(()=>()=>{let e=f.current;fR(e.deps,t=>tz(t,e))});let p=t.getComponentProps(s.getValue());return _.createElement(e,Fz({},p,{ref:o}))})},Lz=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type==`change`&&GL.write(this.update)}};function Rz(e,t){let n=new Set;return Az.dependencies=n,e.style&&(e=Fz({},e,{style:t.createAnimatedStyle(e.style)})),e=new jz(e),Az.dependencies=null,[e,n]}function zz(e,t){return e&&(Q.fun(e)?e(t):e.current=t),t}var Bz=Symbol.for(`AnimatedComponent`),Vz=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new jz(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=e=>{let t=Hz(e)||`Anonymous`;return e=Q.str(e)?a[e]||(a[e]=Iz(e,i)):e[Bz]||(e[Bz]=Iz(e,i)),e.displayName=`Animated(${t})`,e};return pR(e,(t,n)=>{Q.arr(e)&&(n=Hz(t)),a[n]=a(t)}),{animated:a}},Hz=e=>Q.str(e)?e:e&&Q.str(e.displayName)?e.displayName:Q.fun(e)&&e.name||null;function Uz(){return Uz=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uz.apply(this,arguments)}function Wz(e,...t){return Q.fun(e)?e(...t):e}var Gz=(e,t)=>e===!0||!!(t&&e&&(Q.fun(e)?e(t):mR(e).includes(t))),Kz=(e,t)=>Q.obj(e)?t&&e[t]:e,qz=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Jz=e=>e,Yz=(e,t=Jz)=>{let n=Xz;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));let r={};for(let i of n){let n=t(e[i],i);Q.und(n)||(r[i]=n)}return r},Xz=[`config`,`onProps`,`onStart`,`onChange`,`onPause`,`onResume`,`onRest`],Zz={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Qz(e){let t={},n=0;if(pR(e,(e,r)=>{Zz[r]||(t[r]=e,n++)}),n)return t}function $z(e){let t=Qz(e);if(t){let n={to:t};return pR(e,(e,r)=>r in t||(n[r]=e)),n}return Uz({},e)}function eB(e){return e=XR(e),Q.arr(e)?e.map(eB):pz(e)?CR.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function tB(e){for(let t in e)return!0;return!1}function nB(e){return Q.fun(e)||Q.arr(e)&&Q.obj(e[0])}function rB(e,t){var n;(n=e.ref)==null||n.delete(e),t?.delete(e)}function iB(e,t){if(t&&e.ref!==t){var n;(n=e.ref)==null||n.delete(e),t.add(e),e.ref=t}}var aB={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},oB=1.70158,sB=oB*1.525,cB=2.70158,lB=2*Math.PI/3,uB=2*Math.PI/4.5,dB=e=>{let t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},fB={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-(-2*e+2)**2/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-(1-e)**3,easeInOutCubic:e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-(1-e)**4,easeInOutQuart:e=>e<.5?8*e*e*e*e:1-(-2*e+2)**4/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-(1-e)**5,easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-(-2*e+2)**5/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:2**(10*e-10),easeOutExpo:e=>e===1?1:1-2**(-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?2**(20*e-10)/2:(2-2**(-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-e**2),easeOutCirc:e=>Math.sqrt(1-(e-1)**2),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-(2*e)**2))/2:(Math.sqrt(1-(-2*e+2)**2)+1)/2,easeInBack:e=>cB*e*e*e-oB*e*e,easeOutBack:e=>1+cB*(e-1)**3+oB*(e-1)**2,easeInOutBack:e=>e<.5?(2*e)**2*(7.189819*e-sB)/2:((2*e-2)**2*(3.5949095*(e*2-2)+sB)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-(2**(10*e-10))*Math.sin((e*10-10.75)*lB),easeOutElastic:e=>e===0?0:e===1?1:2**(-10*e)*Math.sin((e*10-.75)*lB)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(2**(20*e-10)*Math.sin((20*e-11.125)*uB))/2:2**(-20*e+10)*Math.sin((20*e-11.125)*uB)/2+1,easeInBounce:e=>1-dB(1-e),easeOutBounce:dB,easeInOutBounce:e=>e<.5?(1-dB(1-2*e))/2:(1+dB(2*e-1))/2},pB=Uz({},aB.default,{mass:1,damping:1,easing:fB.linear,clamp:!1}),mB=class{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,pB)}};function hB(e,t,n){n&&(n=Uz({},n),gB(n,t),t=Uz({},n,t)),gB(e,t),Object.assign(e,t);for(let t in pB)e[t]??(e[t]=pB[t]);let{mass:r,frequency:i,damping:a}=e;return Q.und(i)||(i<.01&&(i=.01),a<0&&(a=0),e.tension=(2*Math.PI/i)**2*r,e.friction=4*Math.PI*a*r/i),e}function gB(e,t){if(!Q.und(t.decay))e.duration=void 0;else{let n=!Q.und(t.tension)||!Q.und(t.friction);!n&&Q.und(t.frequency)&&Q.und(t.damping)&&Q.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var _B=[],vB=class{constructor(){this.changed=!1,this.values=_B,this.toValues=null,this.fromValues=_B,this.to=void 0,this.from=void 0,this.config=new mB,this.immediate=!1}};function yB(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,s)=>{let c,l,u=Gz(n.cancel??r?.cancel,t);if(u)p();else{Q.und(n.pause)||(i.paused=Gz(n.pause,t));let e=r?.pause;e!==!0&&(e=i.paused||Gz(e,t)),c=Wz(n.delay||0,t),e?(i.resumeQueue.add(f),a.pause()):(a.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(l),l.cancel(),c=l.time-GL.now()}function f(){c>0&&!CR.skipAnimation?(i.delayed=!0,l=GL.setTimeout(p,c),i.pauseQueue.add(d),i.timeouts.add(l)):p()}function p(){i.delayed&&=!1,i.pauseQueue.delete(d),i.timeouts.delete(l),e<=(i.cancelId||0)&&(u=!0);try{a.start(Uz({},n,{callId:e,cancel:u}),o)}catch(e){s(e)}}})}var bB=(e,t)=>t.length==1?t[0]:t.some(e=>e.cancelled)?CB(e.get()):t.every(e=>e.noop)?xB(e.get()):SB(e.get(),t.every(e=>e.finished)),xB=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),SB=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),CB=e=>({value:e,cancelled:!0,finished:!1});function wB(e,t,n,r){let{callId:i,parentId:a,onRest:o}=t,{asyncTo:s,promise:c}=n;return!a&&e===s&&!t.reset?c:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;let l=Yz(t,(e,t)=>t===`onRest`?void 0:e),u,d,f=new Promise((e,t)=>(u=e,d=t)),p=e=>{let t=i<=(n.cancelId||0)&&CB(r)||i!==n.asyncId&&SB(r,!1);if(t)throw e.result=t,d(e),e},m=(e,t)=>{let a=new EB,o=new DB;return(async()=>{if(CR.skipAnimation)throw TB(n),o.result=SB(r,!1),d(o),o;p(a);let s=Q.obj(e)?Uz({},e):Uz({},t,{to:e});s.parentId=i,pR(l,(e,t)=>{Q.und(s[t])&&(s[t]=e)});let c=await r.start(s);return p(a),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),c})()},h;if(CR.skipAnimation)return TB(n),SB(r,!1);try{let t;t=Q.arr(e)?(async e=>{for(let t of e)await m(t)})(e):Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([t.then(u),f]),h=SB(r.get(),!0,!1)}catch(e){if(e instanceof EB)h=e.result;else if(e instanceof DB)h=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?c:void 0)}return Q.fun(o)&&GL.batchedUpdates(()=>{o(h,r,r.item)}),h})()}function TB(e,t){hR(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var EB=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}},DB=class extends Error{constructor(){super(`SkipAnimationSignal`),this.result=void 0}},OB=e=>e instanceof AB,kB=1,AB=class extends $R{constructor(...e){super(...e),this.id=kB++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=wz(this);return e&&e.getValue()}to(...e){return CR.to(this,e)}interpolate(...e){return pte(),CR.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){QR(this,{type:`change`,parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||OR.sort(this),QR(this,{type:`priority`,parent:this,priority:e})}},jB=Symbol.for(`SpringPhase`),MB=1,NB=2,PB=4,FB=e=>(e[jB]&MB)>0,IB=e=>(e[jB]&NB)>0,LB=e=>(e[jB]&PB)>0,RB=(e,t)=>t?e[jB]|=3:e[jB]&=-3,zB=(e,t)=>t?e[jB]|=PB:e[jB]&=-5,BB=class extends AB{constructor(e,t){if(super(),this.key=void 0,this.animation=new vB,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Q.und(e)||!Q.und(t)){let n=Q.obj(e)?Uz({},e):Uz({},t,{from:e});Q.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(IB(this)||this._state.asyncTo)||LB(this)}get goal(){return XR(this.animation.to)}get velocity(){let e=wz(this);return e instanceof Oz?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return FB(this)}get isAnimating(){return IB(this)}get isPaused(){return LB(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{config:i,toValues:a}=r,o=Ez(r.to);!o&&YR(r.to)&&(a=mR(XR(r.to))),r.values.forEach((s,c)=>{if(s.done)return;let l=s.constructor==kz?1:o?o[c].lastPosition:a[c],u=r.immediate,d=l;if(!u){if(d=s.lastPosition,i.tension<=0){s.done=!0;return}let t=s.elapsedTime+=e,n=r.fromValues[c],a=s.v0==null?s.v0=Q.arr(i.velocity)?i.velocity[c]:i.velocity:s.v0,o;if(!Q.und(i.duration)){let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+i.easing(r)*(l-n),o=(d-s.lastPosition)/e,u=r==1}else if(i.decay){let e=i.decay===!0?.998:i.decay,r=Math.exp(-(1-e)*t);d=n+a/(1-e)*(1-r),u=Math.abs(s.lastPosition-d)<.1,o=a*r}else{o=s.lastVelocity==null?a:s.lastVelocity;let t=i.precision||(n==l?.005:Math.min(1,Math.abs(l-n)*.001)),r=i.restVelocity||t/10,c=i.clamp?0:i.bounce,f=!Q.und(c),p=n==l?s.v0>0:n<l,m,h=!1,g=Math.ceil(e/1);for(let e=0;e<g&&(m=Math.abs(o)>r,!(!m&&(u=Math.abs(l-d)<=t,u)));++e){f&&(h=d==l||d>l==p,h&&(o=-o*c,d=l));let e=(-i.tension*1e-6*(d-l)+-i.friction*.001*o)/i.mass;o+=e*1,d+=o*1}}s.lastVelocity=o,Number.isNaN(d)&&(console.warn(`Got NaN while animating:`,this),u=!0)}o&&!o[c].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,i.round)&&(n=!0)});let s=wz(this),c=s.getValue();if(t){let e=XR(r.to);(c!==e||n)&&!i.decay?(s.setValue(e),this._onChange(e)):n&&i.decay&&this._onChange(c),this._stop()}else n&&this._onChange(c)}set(e){return GL.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(IB(this)){let{to:e,config:t}=this.animation;GL.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||=[]).push(e),this}start(e,t){let n;return Q.und(e)?(n=this.queue||[],this.queue=[]):n=[Q.obj(e)?e:Uz({},t,{to:e})],Promise.all(n.map(e=>this._update(e))).then(e=>bB(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),TB(this._state,e&&this._lastCallId),GL.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type==`change`?this._start():e.type==`priority`&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||``,{to:n,from:r}=e;n=Q.obj(n)?n[t]:n,(n==null||nB(n))&&(n=void 0),r=Q.obj(r)?r[t]:r,r??=void 0;let i={to:n,from:r};return FB(this)||(e.reverse&&([n,r]=[r,n]),r=XR(r),Q.und(r)?wz(this)||this._set(n):this._set(r)),i}_update(e,t){let n=Uz({},e),{key:r,defaultProps:i}=this;n.default&&Object.assign(i,Yz(n,(e,t)=>/^on/.test(t)?Kz(e,r):e)),qB(this,n,`onProps`),JB(this,`onProps`,n,this);let a=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let o=this._state;return yB(++this._lastCallId,{key:r,props:n,defaultProps:i,state:o,actions:{pause:()=>{LB(this)||(zB(this,!0),gR(o.pauseQueue),JB(this,`onPause`,SB(this,VB(this,this.animation.to)),this))},resume:()=>{LB(this)&&(zB(this,!1),IB(this)&&this._resume(),gR(o.resumeQueue),JB(this,`onResume`,SB(this,VB(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(e=>{if(n.loop&&e.finished&&!(t&&e.noop)){let e=HB(n);if(e)return this._update(e,!0)}return e})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(CB(this));let r=!Q.und(e.to),i=!Q.und(e.from);if(r||i){if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(CB(this))}let{key:a,defaultProps:o,animation:s}=this,{to:c,from:l}=s,{to:u=c,from:d=l}=e;i&&!r&&(!t.default||Q.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);let f=!dR(d,l);f&&(s.from=d),d=XR(d);let p=!dR(u,c);p&&this._focus(u);let m=nB(t.to),{config:h}=s,{decay:g,velocity:_}=h;(r||i)&&(h.velocity=0),t.config&&!m&&hB(h,Wz(t.config,a),t.config===o.config?void 0:Wz(o.config,a));let v=wz(this);if(!v||Q.und(u))return n(SB(this,!0));let y=Q.und(t.reset)?i&&!t.default:!Q.und(d)&&Gz(t.reset,a),b=y?d:this.get(),x=eB(u),S=Q.num(x)||Q.arr(x)||pz(x),C=!m&&(!S||Gz(o.immediate||t.immediate,a));if(p){let e=Pz(u);if(e!==v.constructor){if(C)v=this._set(x);else throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let w=v.constructor,T=YR(u),E=!1;if(!T){let e=y||!FB(this)&&f;(p||e)&&(E=dR(eB(b),x),T=!E),(dR(s.immediate,C)||C)&&dR(h.decay,g)&&dR(h.velocity,_)||(T=!0)}if(E&&IB(this)&&(s.changed&&!y?T=!0:T||this._stop(c)),!m&&((T||YR(c))&&(s.values=v.getPayload(),s.toValues=YR(u)?null:w==kz?[1]:mR(x)),s.immediate!=C&&(s.immediate=C,!C&&!y&&this._set(c)),T)){let{onRest:e}=s;fR(KB,e=>qB(this,t,e));let r=SB(this,VB(this,c));gR(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&GL.batchedUpdates(()=>{s.changed=!y,e?.(r,this),y?Wz(o.onRest,r):s.onStart==null||s.onStart(r,this)})}y&&this._set(b),m?n(wB(t.to,t,this._state,this)):T?this._start():IB(this)&&!p?this._pendingCalls.add(n):n(xB(b))}_focus(e){let t=this.animation;e!==t.to&&(ZR(this)&&this._detach(),t.to=e,ZR(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;YR(t)&&(ez(t,this),OB(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;YR(e)&&tz(e,this)}_set(e,t=!0){let n=XR(e);if(!Q.und(n)){let e=wz(this);if(!e||!dR(n,e.getValue())){let r=Pz(n);!e||e.constructor!=r?Tz(this,r.create(n)):e.setValue(n),e&&GL.batchedUpdates(()=>{this._onChange(n,t)})}}return wz(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,JB(this,`onStart`,SB(this,VB(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Wz(this.animation.onChange,e,this)),Wz(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;wz(this).reset(XR(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),IB(this)||(RB(this,!0),LB(this)||this._resume())}_resume(){CR.skipAnimation?this.finish():OR.start(this)}_stop(e,t){if(IB(this)){RB(this,!1);let n=this.animation;fR(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),QR(this,{type:`idle`,parent:this});let r=t?CB(this.get()):SB(this.get(),VB(this,e??n.to));gR(this._pendingCalls,r),n.changed&&(n.changed=!1,JB(this,`onRest`,r,this))}}};function VB(e,t){let n=eB(t);return dR(eB(e.get()),n)}function HB(e,t=e.loop,n=e.to){let r=Wz(t);if(r){let i=r!==!0&&$z(r),a=(i||e).reverse,o=!i||i.reset;return UB(Uz({},e,{loop:t,default:!1,pause:void 0,to:!a||nB(n)?n:void 0,from:o?e.from:void 0,reset:o},i))}}function UB(e){let{to:t,from:n}=e=$z(e),r=new Set;return Q.obj(t)&&GB(t,r),Q.obj(n)&&GB(n,r),e.keys=r.size?Array.from(r):null,e}function WB(e){let t=UB(e);return Q.und(t.default)&&(t.default=Yz(t)),t}function GB(e,t){pR(e,(e,n)=>e!=null&&t.add(n))}var KB=[`onStart`,`onRest`,`onChange`,`onPause`,`onResume`];function qB(e,t,n){e.animation[n]=t[n]===qz(t,n)?void 0:Kz(t[n],e.key)}function JB(e,t,...n){var r,i,a,o;(r=(i=e.animation)[t])==null||r.call(i,...n),(a=(o=e.defaultProps)[t])==null||a.call(o,...n)}var YB=[`onStart`,`onChange`,`onRest`],XB=1,ZB=class{constructor(e,t){this.id=XB++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start(Uz({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];Q.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(UB(e)),this}start(e){let{queue:t}=this;return e?t=mR(e).map(UB):this.queue=[],this._flush?this._flush(this,t):(iV(this,t),QB(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){let n=this.springs;fR(mR(t),t=>n[t].stop(!!e))}else TB(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(Q.und(e))this.start({pause:!0});else{let t=this.springs;fR(mR(e),e=>t[e].pause())}return this}resume(e){if(Q.und(e))this.start({pause:!1});else{let t=this.springs;fR(mR(e),e=>t[e].resume())}return this}each(e){pR(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,hR(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let a=!r&&this._started,o=i||a&&n.size?this.get():null;i&&t.size&&hR(t,([e,t])=>{t.value=o,e(t,this,this._item)}),a&&(this._started=!1,hR(n,([e,t])=>{t.value=o,e(t,this,this._item)}))}eventObserved(e){if(e.type==`change`)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type==`idle`)this._active.delete(e.parent);else return;GL.onFrame(this._onFrame)}};function QB(e,t){return Promise.all(t.map(t=>$B(e,t))).then(t=>bB(e,t))}async function $B(e,t,n){let{keys:r,to:i,from:a,loop:o,onRest:s,onResolve:c}=t,l=Q.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),a===!1&&(t.from=null);let u=Q.arr(i)||Q.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):fR(YB,n=>{let r=t[n];if(Q.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},l&&(l[n]=t[n])}});let d=e._state;t.pause===!d.paused?(d.paused=t.pause,gR(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),p=t.cancel===!0||qz(t,`cancel`)===!0;(u||p&&d.asyncId)&&f.push(yB(++e._lastAsyncId,{props:t,state:d,actions:{pause:lR,resume:lR,start(t,n){p?(TB(d,e._lastAsyncId),n(CB(e))):(t.onRest=s,n(wB(u,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let m=bB(e,await Promise.all(f));if(o&&m.finished&&!(n&&m.noop)){let n=HB(t,o,i);if(n)return iV(e,[n]),$B(e,n,!0)}return c&&GL.batchedUpdates(()=>c(m,e,e.item)),m}function eV(e,t){let n=Uz({},e.springs);return t&&fR(mR(t),e=>{Q.und(e.keys)&&(e=UB(e)),Q.obj(e.to)||(e=Uz({},e,{to:void 0})),rV(n,e,e=>nV(e))}),tV(e,n),n}function tV(e,t){pR(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,ez(t,e))})}function nV(e,t){let n=new BB;return n.key=e,t&&ez(n,t),n}function rV(e,t,n){t.keys&&fR(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function iV(e,t){fR(t,t=>{rV(e.springs,t,t=>nV(t,e))})}function aV(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var oV=[`children`],sV=e=>{let{children:t}=e,n=aV(e,oV),r=(0,_.useContext)(cV),i=n.pause||!!r.pause,a=n.immediate||!!r.immediate;n=_z(()=>({pause:i,immediate:a}),[i,a]);let{Provider:o}=cV;return _.createElement(o,{value:n},t)},cV=lV(sV,{});sV.Provider=cV.Provider,sV.Consumer=cV.Consumer;function lV(e,t){return Object.assign(e,_.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var uV=()=>{let e=[],t=function(t){fz();let r=[];return fR(e,(e,i)=>{if(Q.und(t))r.push(e.start());else{let a=n(t,e,i);a&&r.push(e.start(a))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return fR(e,e=>e.pause(...arguments)),this},t.resume=function(){return fR(e,e=>e.resume(...arguments)),this},t.set=function(t){fR(e,e=>e.set(t))},t.start=function(t){let n=[];return fR(e,(e,r)=>{if(Q.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return fR(e,e=>e.stop(...arguments)),this},t.update=function(t){return fR(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return Q.fun(e)?e(n,t):e};return t._getProps=n,t};function dV(e,t,n){let r=Q.fun(t)&&t;r&&!n&&(n=[]);let i=(0,_.useMemo)(()=>r||arguments.length==3?uV():void 0,[]),a=(0,_.useRef)(0),o=gz(),s=(0,_.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=eV(e,t);return a.current>0&&!s.queue.length&&!Object.keys(n).some(t=>!e.springs[t])?QB(e,t):new Promise(r=>{tV(e,n),s.queue.push(()=>{r(QB(e,t))}),o()})}}),[]),c=(0,_.useRef)([...s.ctrls]),l=[],u=xz(e)||0;(0,_.useMemo)(()=>{fR(c.current.slice(e,u),e=>{rB(e,i),e.stop(!0)}),c.current.length=e,d(u,e)},[e]),(0,_.useMemo)(()=>{d(0,Math.min(u,e))},n);function d(e,n){for(let i=e;i<n;i++){let e=c.current[i]||(c.current[i]=new ZB(null,s.flush)),n=r?r(i,e):t[i];n&&(l[i]=WB(n))}}let f=c.current.map((e,t)=>eV(e,l[t])),p=(0,_.useContext)(sV),m=p!==xz(p)&&tB(p);mz(()=>{a.current++,s.ctrls=c.current;let{queue:e}=s;e.length&&(s.queue=[],fR(e,e=>e())),fR(c.current,(e,t)=>{i?.add(e),m&&e.start({default:p});let n=l[t];n&&(iB(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),yz(()=>()=>{fR(s.ctrls,e=>e.stop(!0))});let h=f.map(e=>Uz({},e));return i?[h,i]:h}function fV(e,t){let n=Q.fun(e),[[r],i]=dV(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,i]:r}var pV;(function(e){e.MOUNT=`mount`,e.ENTER=`enter`,e.UPDATE=`update`,e.LEAVE=`leave`})(pV||={});function mV(e,t,n){let r=Q.fun(t)&&t,{reset:i,sort:a,trail:o=0,expires:s=!0,exitBeforeEnter:c=!1,onDestroyed:l,ref:u,config:d}=r?r():t,f=(0,_.useMemo)(()=>r||arguments.length==3?uV():void 0,[]),p=mR(e),m=[],h=(0,_.useRef)(null),g=i?null:h.current;mz(()=>{h.current=m}),yz(()=>(fR(h.current,e=>{var t;(t=e.ctrl.ref)==null||t.add(e.ctrl);let n=w.get(e);n&&e.ctrl.start(n.payload)}),()=>{fR(h.current,e=>{e.expired&&clearTimeout(e.expirationId),rB(e.ctrl,f),e.ctrl.stop(!0)})}));let v=gV(p,r?r():t,g),y=i&&h.current||[];mz(()=>fR(y,({ctrl:e,item:t,key:n})=>{rB(e,f),Wz(l,t,n)}));let b=[];if(g&&fR(g,(e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):(t=b[t]=v.indexOf(e.key),~t&&(m[t]=e))}),fR(p,(e,t)=>{m[t]||(m[t]={key:v[t],item:e,phase:pV.MOUNT,ctrl:new ZB},m[t].ctrl.item=e)}),b.length){let e=-1,{leave:n}=r?r():t;fR(b,(t,r)=>{let i=g[r];~t?(e=m.indexOf(i),m[e]=Uz({},i,{item:p[t]})):n&&m.splice(++e,0,i)})}Q.fun(a)&&m.sort((e,t)=>a(e.item,t.item));let x=-o,S=gz(),C=Yz(t),w=new Map,T=(0,_.useRef)(new Map),E=(0,_.useRef)(!1);fR(m,(e,n)=>{let i=e.key,a=e.phase,l=r?r():t,f,p,m=Wz(l.delay||0,i);if(a==pV.MOUNT)f=l.enter,p=pV.ENTER;else{let e=v.indexOf(i)<0;if(a!=pV.LEAVE){if(e)f=l.leave,p=pV.LEAVE;else if(f=l.update)p=pV.UPDATE;else return}else if(!e)f=l.enter,p=pV.ENTER;else return}if(f=Wz(f,e.item,n),f=Q.obj(f)?$z(f):{to:f},!f.config){let t=d||C.config;f.config=Wz(t,e.item,n,p)}x+=o;let _=Uz({},C,{delay:m+x,ref:u,immediate:l.immediate,reset:!1},f);if(p==pV.ENTER&&Q.und(_.from)){let i=r?r():t;_.from=Wz(Q.und(i.initial)||g?i.from:i.initial,e.item,n)}let{onResolve:y}=_;_.onResolve=e=>{Wz(y,e);let t=h.current,n=t.find(e=>e.key===i);if(n&&!(e.cancelled&&n.phase!=pV.UPDATE)&&n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if(n.phase==pV.LEAVE){let t=Wz(s,n.item);if(t!==!1){let r=t===!0?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(S,r));return}}}e&&t.some(e=>e.expired)&&(T.current.delete(n),c&&(E.current=!0),S())}};let b=eV(e.ctrl,_);p===pV.LEAVE&&c?T.current.set(e,{phase:p,springs:b,payload:_}):w.set(e,{phase:p,springs:b,payload:_})});let D=(0,_.useContext)(sV),O=D!==xz(D)&&tB(D);mz(()=>{O&&fR(m,e=>{e.ctrl.start({default:D})})},[D]),fR(w,(e,t)=>{if(T.current.size){let e=m.findIndex(e=>e.key===t.key);m.splice(e,1)}}),mz(()=>{fR(T.current.size?T.current:w,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),O&&e==pV.ENTER&&r.start({default:D}),t&&(iB(r,t.ref),r.ref&&!E.current?r.update(t):(r.start(t),E.current&&=!1))})},i?void 0:n);let k=e=>_.createElement(_.Fragment,null,m.map((t,n)=>{let{springs:r}=w.get(t)||t.ctrl,i=e(Uz({},r),t.item,t,n);return i&&i.type?_.createElement(i.type,Uz({},i.props,{key:Q.str(t.key)||Q.num(t.key)?t.key:t.ctrl.id,ref:i.ref})):i}));return f?[k,f]:k}var hV=1;function gV(e,{key:t,keys:n=t},r){if(n===null){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&n.phase!==pV.LEAVE&&!t.has(n));return n?(t.add(n),n.key):hV++})}return Q.und(n)?e:Q.fun(n)?e.map(n):mR(n)}var _V=class extends AB{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=GR(...t);let n=this._get(),r=Pz(n);Tz(this,r.create(n))}advance(e){let t=this._get();dR(t,this.get())||(wz(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&yV(this._active)&&bV(this)}_get(){let e=Q.arr(this.source)?this.source.map(XR):mR(XR(this.source));return this.calc(...e)}_start(){this.idle&&!yV(this._active)&&(this.idle=!1,fR(Ez(this),e=>{e.done=!1}),CR.skipAnimation?(GL.batchedUpdates(()=>this.advance()),bV(this)):OR.start(this))}_attach(){let e=1;fR(mR(this.source),t=>{YR(t)&&ez(t,this),OB(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){fR(mR(this.source),e=>{YR(e)&&tz(e,this)}),this._active.clear(),bV(this)}eventObserved(e){e.type==`change`?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type==`idle`?this._active.delete(e.parent):e.type==`priority`&&(this.priority=mR(this.source).reduce((e,t)=>Math.max(e,(OB(t)?t.priority:0)+1),0))}};function vV(e){return e.idle!==!1}function yV(e){return!e.size||Array.from(e).every(vV)}function bV(e){e.idle||(e.idle=!0,fR(Ez(e),e=>{e.done=!0}),QR(e,{type:`idle`,parent:e}))}var xV=(e,...t)=>new _V(e,t);CR.assign({createStringInterpolator:cz,to:(e,t)=>new _V(e,t)}),OR.advance;function SV(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var CV=[`style`,`children`,`scrollTop`,`scrollLeft`],wV=/^--/;function TV(e,t){return t==null||typeof t==`boolean`||t===``?``:typeof t==`number`&&t!==0&&!wV.test(e)&&!(OV.hasOwnProperty(e)&&OV[e])?t+`px`:(``+t).trim()}var EV={};function DV(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n=e.nodeName===`filter`||e.parentNode&&e.parentNode.nodeName===`filter`,r=t,{style:i,children:a,scrollTop:o,scrollLeft:s}=r,c=SV(r,CV),l=Object.values(c),u=Object.keys(c).map(t=>n||e.hasAttribute(t)?t:EV[t]||(EV[t]=t.replace(/([A-Z])/g,e=>`-`+e.toLowerCase())));a!==void 0&&(e.textContent=a);for(let t in i)if(i.hasOwnProperty(t)){let n=TV(t,i[t]);wV.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach((t,n)=>{e.setAttribute(t,l[n])}),o!==void 0&&(e.scrollTop=o),s!==void 0&&(e.scrollLeft=s)}var OV={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},kV=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),AV=[`Webkit`,`Ms`,`Moz`,`O`];OV=Object.keys(OV).reduce((e,t)=>(AV.forEach(n=>e[kV(n,t)]=e[t]),e),OV);var jV=[`x`,`y`,`z`],MV=/^(matrix|translate|scale|rotate|skew)/,NV=/^(translate)/,PV=/^(rotate|skew)/,FV=(e,t)=>Q.num(e)&&e!==0?e+t:e,IV=(e,t)=>Q.arr(e)?e.every(e=>IV(e,t)):Q.num(e)?e===t:parseFloat(e)===t,LV=class extends jz{constructor(e){let{x:t,y:n,z:r}=e,i=SV(e,jV),a=[],o=[];(t||n||r)&&(a.push([t||0,n||0,r||0]),o.push(e=>[`translate3d(${e.map(e=>FV(e,`px`)).join(`,`)})`,IV(e,0)])),pR(i,(e,t)=>{if(t===`transform`)a.push([e||``]),o.push(e=>[e,e===``]);else if(MV.test(t)){if(delete i[t],Q.und(e))return;let n=NV.test(t)?`px`:PV.test(t)?`deg`:``;a.push(mR(e)),o.push(t===`rotate3d`?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${FV(i,n)})`,IV(i,0)]:e=>[`${t}(${e.map(e=>FV(e,n)).join(`,`)})`,IV(e,+!!t.startsWith(`scale`))])}}),a.length&&(i.transform=new RV(a,o)),super(i)}},RV=class extends $R{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||=this._get()}_get(){let e=``,t=!0;return fR(this.inputs,(n,r)=>{let i=XR(n[0]),[a,o]=this.transforms[r](Q.arr(i)?i:n.map(XR));e+=` `+a,t&&=o}),t?`none`:e}observerAdded(e){e==1&&fR(this.inputs,e=>fR(e,e=>YR(e)&&ez(e,this)))}observerRemoved(e){e==0&&fR(this.inputs,e=>fR(e,e=>YR(e)&&tz(e,this)))}eventObserved(e){e.type==`change`&&(this._value=null),QR(this,e)}},zV=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.big.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.foreignObject.g.image.line.linearGradient.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.text.tspan`.split(`.`),BV=[`scrollTop`,`scrollLeft`];CR.assign({batchedUpdates:nt.unstable_batchedUpdates,createStringInterpolator:cz,colors:PR});var VV=Vz(zV,{applyAnimatedValues:DV,createAnimatedStyle:e=>new LV(e),getComponentProps:e=>SV(e,BV)}).animated,HV=n(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),UV=n(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),WV=n(((e,t)=>{var n=UV();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),GV=n(((e,t)=>{var n=WV(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),KV=n(((e,t)=>{var n=WV();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),qV=n(((e,t)=>{var n=WV();function r(e){return n(this.__data__,e)>-1}t.exports=r})),JV=n(((e,t)=>{var n=WV();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),YV=n(((e,t)=>{var n=HV(),r=GV(),i=KV(),a=qV(),o=JV();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),XV=n(((e,t)=>{var n=YV();function r(){this.__data__=new n,this.size=0}t.exports=r})),ZV=n(((e,t)=>{function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=n})),QV=n(((e,t)=>{function n(e){return this.__data__.get(e)}t.exports=n})),$V=n(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),eH=n(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),tH=n(((e,t)=>{var n=eH(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),nH=n(((e,t)=>{t.exports=tH().Symbol})),rH=n(((e,t)=>{var n=nH(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),iH=n(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),aH=n(((e,t)=>{var n=nH(),r=rH(),i=iH(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),oH=n(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),sH=n(((e,t)=>{var n=aH(),r=oH(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),cH=n(((e,t)=>{t.exports=tH()[`__core-js_shared__`]})),lH=n(((e,t)=>{var n=cH(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),uH=n(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),dH=n(((e,t)=>{var n=sH(),r=lH(),i=oH(),a=uH(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),fH=n(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),pH=n(((e,t)=>{var n=dH(),r=fH();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),mH=n(((e,t)=>{t.exports=pH()(tH(),`Map`)})),hH=n(((e,t)=>{t.exports=pH()(Object,`create`)})),gH=n(((e,t)=>{var n=hH();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),_H=n(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}t.exports=n})),vH=n(((e,t)=>{var n=hH(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),yH=n(((e,t)=>{var n=hH(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),bH=n(((e,t)=>{var n=hH(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&t===void 0?r:t,this}t.exports=i})),xH=n(((e,t)=>{var n=gH(),r=_H(),i=vH(),a=yH(),o=bH();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),SH=n(((e,t)=>{var n=xH(),r=YV(),i=mH();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),CH=n(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),wH=n(((e,t)=>{var n=CH();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),TH=n(((e,t)=>{var n=wH();function r(e){var t=n(this,e).delete(e);return this.size-=+!!t,t}t.exports=r})),EH=n(((e,t)=>{var n=wH();function r(e){return n(this,e).get(e)}t.exports=r})),DH=n(((e,t)=>{var n=wH();function r(e){return n(this,e).has(e)}t.exports=r})),OH=n(((e,t)=>{var n=wH();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),kH=n(((e,t)=>{var n=SH(),r=TH(),i=EH(),a=DH(),o=OH();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),AH=n(((e,t)=>{var n=YV(),r=mH(),i=kH(),a=200;function o(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length<a-1)return s.push([e,t]),this.size=++o.size,this;o=this.__data__=new i(s)}return o.set(e,t),this.size=o.size,this}t.exports=o})),jH=n(((e,t)=>{var n=YV(),r=XV(),i=ZV(),a=QV(),o=$V(),s=AH();function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c})),MH=n(((e,t)=>{var n=pH();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),NH=n(((e,t)=>{var n=MH();function r(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.exports=r})),PH=n(((e,t)=>{var n=NH(),r=UV();function i(e,t,i){(i!==void 0&&!r(e[t],i)||i===void 0&&!(t in e))&&n(e,t,i)}t.exports=i})),FH=n(((e,t)=>{function n(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}t.exports=n})),IH=n(((e,t)=>{t.exports=FH()()})),LH=n(((e,t)=>{var n=tH(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r?n.Buffer:void 0,o=a?a.allocUnsafe:void 0;function s(e,t){if(t)return e.slice();var n=e.length,r=o?o(n):new e.constructor(n);return e.copy(r),r}t.exports=s})),RH=n(((e,t)=>{t.exports=tH().Uint8Array})),zH=n(((e,t)=>{var n=RH();function r(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}t.exports=r})),BH=n(((e,t)=>{var n=zH();function r(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}t.exports=r})),VH=n(((e,t)=>{function n(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}t.exports=n})),HH=n(((e,t)=>{var n=oH(),r=Object.create;t.exports=function(){function e(){}return function(t){if(!n(t))return{};if(r)return r(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}()})),UH=n(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),WH=n(((e,t)=>{t.exports=UH()(Object.getPrototypeOf,Object)})),GH=n(((e,t)=>{var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r})),KH=n(((e,t)=>{var n=HH(),r=WH(),i=GH();function a(e){return typeof e.constructor==`function`&&!i(e)?n(r(e)):{}}t.exports=a})),qH=n(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),JH=n(((e,t)=>{var n=aH(),r=qH(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),YH=n(((e,t)=>{var n=JH(),r=qH(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),XH=n(((e,t)=>{t.exports=Array.isArray})),ZH=n(((e,t)=>{function n(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=9007199254740991}t.exports=n})),QH=n(((e,t)=>{var n=sH(),r=ZH();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i})),$H=n(((e,t)=>{var n=QH(),r=qH();function i(e){return r(e)&&n(e)}t.exports=i})),eU=n(((e,t)=>{function n(){return!1}t.exports=n})),tU=n(((e,t)=>{var n=tH(),r=eU(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r})),nU=n(((e,t)=>{var n=aH(),r=WH(),i=qH(),a=`[object Object]`,o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,u=c.call(Object);function d(e){if(!i(e)||n(e)!=a)return!1;var t=r(e);if(t===null)return!0;var o=l.call(t,`constructor`)&&t.constructor;return typeof o==`function`&&o instanceof o&&c.call(o)==u}t.exports=d})),rU=n(((e,t)=>{var n=aH(),r=ZH(),i=qH(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,O=`[object Uint32Array]`,k={};k[b]=k[x]=k[S]=k[C]=k[w]=k[T]=k[E]=k[D]=k[O]=!0,k[a]=k[o]=k[v]=k[s]=k[y]=k[c]=k[l]=k[u]=k[d]=k[f]=k[p]=k[m]=k[h]=k[g]=k[_]=!1;function A(e){return i(e)&&r(e.length)&&!!k[n(e)]}t.exports=A})),iU=n(((e,t)=>{function n(e){return function(t){return e(t)}}t.exports=n})),aU=n(((e,t)=>{var n=eH(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch{}}()})),oU=n(((e,t)=>{var n=rU(),r=iU(),i=aU(),a=i&&i.isTypedArray;t.exports=a?r(a):n})),sU=n(((e,t)=>{function n(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}t.exports=n})),cU=n(((e,t)=>{var n=NH(),r=UV(),i=Object.prototype.hasOwnProperty;function a(e,t,a){var o=e[t];(!(i.call(e,t)&&r(o,a))||a===void 0&&!(t in e))&&n(e,t,a)}t.exports=a})),lU=n(((e,t)=>{var n=cU(),r=NH();function i(e,t,i,a){var o=!i;i||={};for(var s=-1,c=t.length;++s<c;){var l=t[s],u=a?a(i[l],e[l],l,i,e):void 0;u===void 0&&(u=e[l]),o?r(i,l,u):n(i,l,u)}return i}t.exports=i})),uU=n(((e,t)=>{function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=n})),dU=n(((e,t)=>{var n=/^(?:0|[1-9]\d*)$/;function r(e,t){var r=typeof e;return t??=9007199254740991,!!t&&(r==`number`||r!=`symbol`&&n.test(e))&&e>-1&&e%1==0&&e<t}t.exports=r})),fU=n(((e,t)=>{var n=uU(),r=YH(),i=XH(),a=tU(),o=dU(),s=oU(),c=Object.prototype.hasOwnProperty;function l(e,t){var l=i(e),u=!l&&r(e),d=!l&&!u&&a(e),f=!l&&!u&&!d&&s(e),p=l||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=l})),pU=n(((e,t)=>{function n(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}t.exports=n})),mU=n(((e,t)=>{var n=oH(),r=GH(),i=pU(),a=Object.prototype.hasOwnProperty;function o(e){if(!n(e))return i(e);var t=r(e),o=[];for(var s in e)(s!=`constructor`||!t&&a.call(e,s))&&o.push(s);return o}t.exports=o})),hU=n(((e,t)=>{var n=fU(),r=mU(),i=QH();function a(e){return i(e)?n(e,!0):r(e)}t.exports=a})),gU=n(((e,t)=>{var n=lU(),r=hU();function i(e){return n(e,r(e))}t.exports=i})),_U=n(((e,t)=>{var n=PH(),r=LH(),i=BH(),a=VH(),o=KH(),s=YH(),c=XH(),l=$H(),u=tU(),d=sH(),f=oH(),p=nU(),m=oU(),h=sU(),g=gU();function _(e,t,_,v,y,b,x){var S=h(e,_),C=h(t,_),w=x.get(C);if(w)n(e,_,w);else{var T=b?b(S,C,_+``,e,t,x):void 0,E=T===void 0;if(E){var D=c(C),O=!D&&u(C),k=!D&&!O&&m(C);T=C,D||O||k?c(S)?T=S:l(S)?T=a(S):O?(E=!1,T=r(C,!0)):k?(E=!1,T=i(C,!0)):T=[]:p(C)||s(C)?(T=S,s(S)?T=g(S):(!f(S)||d(S))&&(T=o(C))):E=!1}E&&(x.set(C,T),y(T,C,v,b,x),x.delete(C)),n(e,_,T)}}t.exports=_})),vU=n(((e,t)=>{var n=jH(),r=PH(),i=IH(),a=_U(),o=oH(),s=hU(),c=sU();function l(e,t,u,d,f){e!==t&&i(t,function(i,s){if(f||=new n,o(i))a(e,t,s,u,l,d,f);else{var p=d?d(c(e,s),i,s+``,e,t,f):void 0;p===void 0&&(p=i),r(e,s,p)}},s)}t.exports=l})),yU=n(((e,t)=>{function n(e){return e}t.exports=n})),bU=n(((e,t)=>{function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}t.exports=n})),xU=n(((e,t)=>{var n=bU(),r=Math.max;function i(e,t,i){return t=r(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=r(a.length-t,0),c=Array(s);++o<s;)c[o]=a[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=a[o];return l[t]=i(c),n(e,this,l)}}t.exports=i})),SU=n(((e,t)=>{function n(e){return function(){return e}}t.exports=n})),CU=n(((e,t)=>{var n=SU(),r=MH(),i=yU();t.exports=r?function(e,t){return r(e,`toString`,{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i})),wU=n(((e,t)=>{var n=Date.now;function r(e){var t=0,r=0;return function(){var i=n(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}t.exports=r})),TU=n(((e,t)=>{var n=CU();t.exports=wU()(n)})),EU=n(((e,t)=>{var n=yU(),r=xU(),i=TU();function a(e,t){return i(r(e,t,n),e+``)}t.exports=a})),DU=n(((e,t)=>{var n=UV(),r=QH(),i=dU(),a=oH();function o(e,t,o){if(!a(o))return!1;var s=typeof t;return(s==`number`?r(o)&&i(t,o.length):s==`string`&&t in o)?n(o[t],e):!1}t.exports=o})),OU=n(((e,t)=>{var n=EU(),r=DU();function i(e){return n(function(t,n){var i=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&typeof o==`function`?(a--,o):void 0,s&&r(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++i<a;){var c=n[i];c&&e(t,c,i,o)}return t})}t.exports=i})),kU=n(((e,t)=>{var n=vU();t.exports=OU()(function(e,t,r){n(e,t,r)})})),AU=n(((e,t)=>{var n=aH(),r=qH(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),jU=n(((e,t)=>{var n=XH(),r=AU(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(e,t){if(n(e))return!1;var o=typeof e;return o==`number`||o==`symbol`||o==`boolean`||e==null||r(e)?!0:a.test(e)||!i.test(e)||t!=null&&e in Object(t)}t.exports=o})),MU=n(((e,t)=>{var n=kH(),r=`Expected a function`;function i(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(r);var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=a.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return a.cache=i.set(r,o)||i,o};return a.cache=new(i.Cache||n),a}i.Cache=n,t.exports=i})),NU=n(((e,t)=>{var n=MU(),r=500;function i(e){var t=n(e,function(e){return i.size===r&&i.clear(),e}),i=t.cache;return t}t.exports=i})),PU=n(((e,t)=>{var n=NU(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(r,function(e,n,r,a){t.push(r?a.replace(i,`$1`):n||e)}),t})})),FU=n(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=n})),IU=n(((e,t)=>{var n=nH(),r=FU(),i=XH(),a=AU(),o=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;function l(e){if(typeof e==`string`)return e;if(i(e))return r(e,l)+``;if(a(e))return c?c.call(e):``;var t=e+``;return t==`0`&&1/e==-o?`-0`:t}t.exports=l})),LU=n(((e,t)=>{var n=IU();function r(e){return e==null?``:n(e)}t.exports=r})),RU=n(((e,t)=>{var n=XH(),r=jU(),i=PU(),a=LU();function o(e,t){return n(e)?e:r(e,t)?[e]:i(a(e))}t.exports=o})),zU=n(((e,t)=>{var n=AU(),r=1/0;function i(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-r?`-0`:t}t.exports=i})),BU=n(((e,t)=>{var n=RU(),r=zU();function i(e,t){t=n(t,e);for(var i=0,a=t.length;e!=null&&i<a;)e=e[r(t[i++])];return i&&i==a?e:void 0}t.exports=i})),VU=n(((e,t)=>{var n=BU();function r(e,t,r){var i=e==null?void 0:n(e,t);return i===void 0?r:i}t.exports=r})),HU=n(((e,t)=>{var n=cU(),r=RU(),i=dU(),a=oH(),o=zU();function s(e,t,s,c){if(!a(e))return e;t=r(t,e);for(var l=-1,u=t.length,d=u-1,f=e;f!=null&&++l<u;){var p=o(t[l]),m=s;if(p===`__proto__`||p===`constructor`||p===`prototype`)return e;if(l!=d){var h=f[p];m=c?c(h,p,f):void 0,m===void 0&&(m=a(h)?h:i(t[l+1])?[]:{})}n(f,p,m),f=f[p]}return e}t.exports=s})),UU=n(((e,t)=>{var n=HU();function r(e,t,r){return e==null?e:n(e,t,r)}t.exports=r})),WU=t(kU(),1),GU=t(VU(),1),KU=t(UU(),1);function qU(){return qU=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},qU.apply(null,arguments)}function JU(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 YU=[`outlineWidth`,`outlineColor`,`outlineOpacity`],XU=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,JU(e,YU)},ZU=[`axis.ticks.text`,`axis.legend.text`,`legends.title.text`,`legends.text`,`legends.ticks.text`,`legends.title.text`,`labels.text`,`dots.text`,`markers.text`,`annotations.text`],QU=function(e,t){return qU({},t,e)},$U=function(e,t){var n=(0,WU.default)({},e,t);return ZU.forEach((function(e){(0,KU.default)(n,e,QU((0,GU.default)(n,e),n.text))})),n},eW=function(e,t){return t?(0,WU.default)({},e,t):e},tW={background:`transparent`,text:{fontFamily:`sans-serif`,fontSize:11,fill:`#333333`,outlineWidth:0,outlineColor:`#ffffff`,outlineOpacity:1},axis:{domain:{line:{stroke:`transparent`,strokeWidth:1}},ticks:{line:{stroke:`#777777`,strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:`#dddddd`,strokeWidth:1}},legends:{hidden:{symbol:{fill:`#333333`,opacity:.6},text:{fill:`#333333`,opacity:.6}},text:{},ticks:{line:{stroke:`#777777`,strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:`#000000`,lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:`white`,color:`inherit`,fontSize:`inherit`,borderRadius:`2px`,boxShadow:`0 1px 2px rgba(0, 0, 0, 0.25)`,padding:`5px 9px`},basic:{whiteSpace:`pre`,display:`flex`,alignItems:`center`},chip:{marginRight:7},table:{},tableCell:{padding:`3px 5px`},tableCellValue:{fontWeight:`bold`}},crosshair:{line:{stroke:`#000000`,strokeWidth:1,strokeOpacity:.75,strokeDasharray:`6 6`}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:`#ffffff`,outlineOpacity:1},link:{stroke:`#000000`,strokeWidth:1,outlineWidth:2,outlineColor:`#ffffff`,outlineOpacity:1},outline:{fill:`none`,stroke:`#000000`,strokeWidth:2,outlineWidth:2,outlineColor:`#ffffff`,outlineOpacity:1},symbol:{fill:`#000000`,outlineWidth:2,outlineColor:`#ffffff`,outlineOpacity:1}}},nW=function(e){return(0,_.useMemo)((function(){return $U(tW,e)}),[e])},rW=function(e,t){return(0,_.useMemo)((function(){return eW(e,t)}),[e,t])},iW=(0,_.createContext)(null),aW={},oW=function(e){var t=e.theme,n=t===void 0?aW:t,r=e.children,i=nW(n);return(0,G.jsx)(iW.Provider,{value:i,children:r})},sW=function(){var e=(0,_.useContext)(iW);if(e===null)throw Error(`Unable to find the theme, did you forget to wrap your component with ThemeProvider?`);return e};function cW(){return cW=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},cW.apply(null,arguments)}var lW=[`basic`,`chip`,`container`,`table`,`tableCell`,`tableCellValue`],uW={pointerEvents:`none`,position:`absolute`,zIndex:10,top:0,left:0},dW=function(e,t){return`translate(`+e+`px, `+t+`px)`},fW=(0,_.memo)((function(e){var t=e.position,n=e.anchor,r=e.children,i=sW(),a=F2(),o=a.animate,s=a.config,c=v4(),l=c[0],u=c[1],d=(0,_.useRef)(!1),f=void 0,p=!1,m=u.width>0&&u.height>0,h=Math.round(t[0]),g=Math.round(t[1]);m&&(n===`top`?(h-=u.width/2,g-=u.height+14):n===`right`?(h+=14,g-=u.height/2):n===`bottom`?(h-=u.width/2,g+=14):n===`left`?(h-=u.width+14,g-=u.height/2):n===`center`&&(h-=u.width/2,g-=u.height/2),f={transform:dW(h,g)},d.current||(p=!0),d.current=[h,g]);var v=fV({to:f,config:s,immediate:!o||p}),y=i.tooltip;y.basic,y.chip,y.container,y.table,y.tableCell,y.tableCellValue;var b=function(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}(y,lW),x=cW({},uW,b,{transform:v.transform??dW(h,g),opacity:+!!v.transform});return(0,G.jsx)(VV.div,{ref:l,style:x,children:r})}));fW.displayName=`TooltipWrapper`;var pW=(0,_.memo)((function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return(0,G.jsx)(`span`,{style:cW({display:`block`,width:n,height:n,background:r},i===void 0?{}:i)})})),mW=(0,_.memo)((function(e){var t,n=e.id,r=e.value,i=e.format,a=e.enableChip,o=a!==void 0&&a,s=e.color,c=e.renderContent,l=sW(),u=b4(i);if(typeof c==`function`)t=c();else{var d=r;u!==void 0&&d!==void 0&&(d=u(d)),t=(0,G.jsxs)(`div`,{style:l.tooltip.basic,children:[o&&(0,G.jsx)(pW,{color:s,style:l.tooltip.chip}),d===void 0?n:(0,G.jsxs)(`span`,{children:[n,`: `,(0,G.jsx)(`strong`,{children:``+d})]})]})}return(0,G.jsx)(`div`,{style:l.tooltip.container,role:`tooltip`,children:t})})),hW={width:`100%`,borderCollapse:`collapse`},gW=(0,_.memo)((function(e){var t,n=e.title,r=e.rows,i=r===void 0?[]:r,a=e.renderContent,o=sW();return i.length?(t=typeof a==`function`?a():(0,G.jsxs)(`div`,{children:[n&&n,(0,G.jsx)(`table`,{style:cW({},hW,o.tooltip.table),children:(0,G.jsx)(`tbody`,{children:i.map((function(e,t){return(0,G.jsx)(`tr`,{children:e.map((function(e,t){return(0,G.jsx)(`td`,{style:o.tooltip.tableCell,children:e},t)}))},t)}))})})]}),(0,G.jsx)(`div`,{style:o.tooltip.container,children:t})):null}));gW.displayName=`TableTooltip`;var _W=(0,_.memo)((function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,a=sW(),o=F2(),s=o.animate,c=o.config,l=(0,_.useMemo)((function(){return cW({},a.crosshair.line,{pointerEvents:`none`})}),[a.crosshair.line]),u=fV({x1:t,x2:n,y1:r,y2:i,config:c,immediate:!s});return(0,G.jsx)(VV.line,cW({},u,{fill:`none`,style:l}))}));_W.displayName=`CrosshairLine`;var vW=(0,_.memo)((function(e){var t,n,r=e.width,i=e.height,a=e.type,o=e.x,s=e.y;return a===`cross`?(t={x0:o,x1:o,y0:0,y1:i},n={x0:0,x1:r,y0:s,y1:s}):a===`top-left`?(t={x0:o,x1:o,y0:0,y1:s},n={x0:0,x1:o,y0:s,y1:s}):a===`top`?t={x0:o,x1:o,y0:0,y1:s}:a===`top-right`?(t={x0:o,x1:o,y0:0,y1:s},n={x0:o,x1:r,y0:s,y1:s}):a===`right`?n={x0:o,x1:r,y0:s,y1:s}:a===`bottom-right`?(t={x0:o,x1:o,y0:s,y1:i},n={x0:o,x1:r,y0:s,y1:s}):a===`bottom`?t={x0:o,x1:o,y0:s,y1:i}:a===`bottom-left`?(t={x0:o,x1:o,y0:s,y1:i},n={x0:0,x1:o,y0:s,y1:s}):a===`left`?n={x0:0,x1:o,y0:s,y1:s}:a===`x`?t={x0:o,x1:o,y0:0,y1:i}:a===`y`&&(n={x0:0,x1:r,y0:s,y1:s}),(0,G.jsxs)(G.Fragment,{children:[t&&(0,G.jsx)(_W,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&(0,G.jsx)(_W,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})}));vW.displayName=`Crosshair`;var yW=(0,_.createContext)({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),bW={isVisible:!1,position:[null,null],content:null,anchor:null},xW=(0,_.createContext)(bW),SW=function(e){var t=(0,_.useState)(bW),n=t[0],r=t[1],i=(0,_.useCallback)((function(e,t,n){var i=t[0],a=t[1];n===void 0&&(n=`top`),r({isVisible:!0,position:[i,a],anchor:n,content:e})}),[r]),a=(0,_.useCallback)((function(t,n,i){i===void 0&&(i=`top`);var a=e.current.getBoundingClientRect(),o=e.current.offsetWidth,s=o===a.width?1:o/a.width,c=`touches`in n?n.touches[0]:n,l=c.clientX,u=c.clientY,d=(l-a.left)*s,f=(u-a.top)*s;i!==`left`&&i!==`right`||(i=d<a.width/2?`right`:`left`),r({isVisible:!0,position:[d,f],anchor:i,content:t})}),[e,r]),o=(0,_.useCallback)((function(){r(bW)}),[r]);return{actions:(0,_.useMemo)((function(){return{showTooltipAt:i,showTooltipFromEvent:a,hideTooltip:o}}),[i,a,o]),state:n}},CW=function(){var e=(0,_.useContext)(yW);if(e===void 0)throw Error(`useTooltip must be used within a TooltipProvider`);return e},wW=function(){var e=(0,_.useContext)(xW);if(e===void 0)throw Error(`useTooltipState must be used within a TooltipProvider`);return e},TW=function(e){return e.isVisible},EW=function(){var e=wW();return TW(e)?(0,G.jsx)(fW,{position:e.position,anchor:e.anchor,children:e.content}):null},DW=function(e){var t=e.container,n=e.children,r=SW(t),i=r.actions,a=r.state;return(0,G.jsx)(yW.Provider,{value:i,children:(0,G.jsx)(xW.Provider,{value:a,children:n})})},OW=t(n(((e,t)=>{var n=aH(),r=XH(),i=qH(),a=`[object String]`;function o(e){return typeof e==`string`||!r(e)&&i(e)&&n(e)==a}t.exports=o}))(),1),kW=typeof window<`u`?window:typeof self<`u`?self:global,AW=null,jW=null,MW=20,NW=kW.clearTimeout,PW=kW.setTimeout,FW=kW.cancelAnimationFrame||kW.mozCancelAnimationFrame||kW.webkitCancelAnimationFrame,IW=kW.requestAnimationFrame||kW.mozRequestAnimationFrame||kW.webkitRequestAnimationFrame;FW==null||IW==null?(AW=NW,jW=function(e){return PW(e,MW)}):(AW=function([e,t]){FW(e),NW(t)},jW=function(e){let t=IW(function(){NW(n),e()}),n=PW(function(){FW(t),e()},MW);return[t,n]});function LW(e){let t,n,r,i,a,o,s,c=typeof document<`u`&&document.attachEvent;if(!c){o=function(e){let t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+`px`,i.style.height=n.offsetHeight+1+`px`,n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},a=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&typeof e.target.className.indexOf==`function`&&e.target.className.indexOf(`contract-trigger`)<0&&e.target.className.indexOf(`expand-trigger`)<0)return;let t=this;o(this),this.__resizeRAF__&&AW(this.__resizeRAF__),this.__resizeRAF__=jW(function(){a(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})};let e=!1,c=``;r=`animationstart`;let l=`Webkit Moz O ms`.split(` `),u=`webkitAnimationStart animationstart oAnimationStart MSAnimationStart`.split(` `),d=``;{let t=document.createElement(`fakeelement`);if(t.style.animationName!==void 0&&(e=!0),e===!1){for(let n=0;n<l.length;n++)if(t.style[l[n]+`AnimationName`]!==void 0){d=l[n],c=`-`+d.toLowerCase()+`-`,r=u[n],e=!0;break}}}n=`resizeanim`,t=`@`+c+`keyframes `+n+` { from { opacity: 0; } to { opacity: 0; } } `,i=c+`animation: 1ms `+n+`; `}let l=function(n){if(!n.getElementById(`detectElementResize`)){let r=(t||``)+`.resize-triggers { `+(i||``)+`visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }`,a=n.head||n.getElementsByTagName(`head`)[0],o=n.createElement(`style`);o.id=`detectElementResize`,o.type=`text/css`,e!=null&&o.setAttribute(`nonce`,e),o.styleSheet?o.styleSheet.cssText=r:o.appendChild(n.createTextNode(r)),a.appendChild(o)}};return{addResizeListener:function(e,t){if(c)e.attachEvent(`onresize`,t);else{if(!e.__resizeTriggers__){let t=e.ownerDocument,i=kW.getComputedStyle(e);i&&i.position===`static`&&(e.style.position=`relative`),l(t),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=t.createElement(`div`)).className=`resize-triggers`;let a=t.createElement(`div`);a.className=`expand-trigger`,a.appendChild(t.createElement(`div`));let c=t.createElement(`div`);c.className=`contract-trigger`,e.__resizeTriggers__.appendChild(a),e.__resizeTriggers__.appendChild(c),e.appendChild(e.__resizeTriggers__),o(e),e.addEventListener(`scroll`,s,!0),r&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName===n&&o(e)},e.__resizeTriggers__.addEventListener(r,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(t)}},removeResizeListener:function(e,t){if(c)e.detachEvent(`onresize`,t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener(`scroll`,s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch{}}}}}var RW=class extends _.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;let{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){let r=window.getComputedStyle(this._parentNode)||{},i=parseFloat(r.paddingLeft||`0`),a=parseFloat(r.paddingRight||`0`),o=parseFloat(r.paddingTop||`0`),s=parseFloat(r.paddingBottom||`0`),c=this._parentNode.getBoundingClientRect(),l=c.height-o-s,u=c.width-i-a;if(!e&&this.state.height!==l||!t&&this.state.width!==u){this.setState({height:l,width:u});let e=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn(`scaledWidth and scaledHeight parameters have been deprecated; use width and height instead`))};typeof n==`function`&&n({height:l,width:u,get scaledHeight(){return e(),l},get scaledWidth(){return e(),u}})}}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){let{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(t!=null&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;let n=t.ownerDocument.defaultView.ResizeObserver;n==null?(this._detectElementResize=LW(e),this._detectElementResize.addResizeListener(t,this._onResize)):(this._resizeObserver=new n(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(t)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){let{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:i=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:o,onResize:s,style:c={},tagName:l=`div`,...u}=this.props,{height:d,width:f}=this.state,p={overflow:`visible`},m={},h=!1;return r||(d===0&&(h=!0),p.height=0,m.height=d,m.scaledHeight=d),i||(f===0&&(h=!0),p.width=0,m.width=f,m.scaledWidth=f),a&&(h=!1),(0,_.createElement)(l,{ref:this._setRef,style:{...p,...c},...u},!h&&e(m))}};function zW(e,t,n,r){var i=this,a=(0,_.useRef)(null),o=(0,_.useRef)(0),s=(0,_.useRef)(0),c=(0,_.useRef)(null),l=(0,_.useRef)([]),u=(0,_.useRef)(),d=(0,_.useRef)(),f=(0,_.useRef)(e),p=(0,_.useRef)(!0),m=(0,_.useRef)(),h=(0,_.useRef)();f.current=e;var g=typeof window<`u`,v=!t&&t!==0&&g;if(typeof e!=`function`)throw TypeError(`Expected a function`);t=+t||0;var y=!!(n||={}).leading,b=!(`trailing`in n)||!!n.trailing,x=!!n.flushOnExit&&b,S=`maxWait`in n,C=`debounceOnServer`in n&&!!n.debounceOnServer,w=S?Math.max(+n.maxWait||0,t):null,T=(0,_.useMemo)(function(){var e=function(e){var t=l.current,n=u.current;return l.current=u.current=null,o.current=e,s.current=s.current||e,d.current=f.current.apply(n,t)},n=function(e,t){v&&cancelAnimationFrame(c.current),c.current=v?requestAnimationFrame(e):setTimeout(e,t)},_=function(e){if(!p.current)return!1;var n=e-a.current;return!a.current||n>=t||n<0||S&&e-o.current>=w},T=function(t){return c.current=null,b&&l.current?e(t):(l.current=u.current=null,d.current)},E=function e(){var r=Date.now();if(y&&s.current===o.current&&D(),_(r))return T(r);if(p.current){var i=t-(r-a.current);n(e,S?Math.min(i,w-(r-o.current)):i)}},D=function(){r&&r({})},O=function(){if(g||C){var r,s=Date.now(),f=_(s);if(l.current=[].slice.call(arguments),u.current=i,a.current=s,x&&!m.current&&(m.current=function(){globalThis.document?.visibilityState===`hidden`&&h.current.flush()},(r=globalThis.document)==null||r.addEventListener==null||r.addEventListener(`visibilitychange`,m.current)),f){if(!c.current&&p.current)return o.current=a.current,n(E,t),y?e(a.current):d.current;if(S)return n(E,t),e(a.current)}return c.current||n(E,t),d.current}};return O.cancel=function(){var e=c.current;e&&(v?cancelAnimationFrame(c.current):clearTimeout(c.current)),o.current=0,l.current=a.current=u.current=c.current=null,e&&r&&r({})},O.isPending=function(){return!!c.current},O.flush=function(){return c.current?T(Date.now()):d.current},O},[y,S,t,w,b,x,v,g,C,r]);return h.current=T,(0,_.useEffect)(function(){return p.current=!0,function(){var e;x&&h.current.flush(),m.current&&=((e=globalThis.document)==null||e.removeEventListener==null||e.removeEventListener(`visibilitychange`,m.current),null),p.current=!1}},[x]),T}function BW(e,t){return e===t}function VW(e,t,n){var r=n&&n.equalityFn||BW,i=(0,_.useRef)(e),a=(0,_.useState)({})[1],o=zW((0,_.useCallback)(function(e){i.current=e,a({})},[a]),t,n,a),s=(0,_.useRef)(e);return r(s.current,e)||(o(e),s.current=e),[i.current,o]}function HW(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function UW(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function WW(){}var GW=.7,KW=1/GW,qW=`\\s*([+-]?\\d+)\\s*`,JW=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,YW=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,XW=/^#([0-9a-f]{3,8})$/,ZW=RegExp(`^rgb\\(${qW},${qW},${qW}\\)$`),QW=RegExp(`^rgb\\(${YW},${YW},${YW}\\)$`),$W=RegExp(`^rgba\\(${qW},${qW},${qW},${JW}\\)$`),eG=RegExp(`^rgba\\(${YW},${YW},${YW},${JW}\\)$`),tG=RegExp(`^hsl\\(${JW},${YW},${YW}\\)$`),nG=RegExp(`^hsla\\(${JW},${YW},${YW},${JW}\\)$`),rG={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};HW(WW,cG,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:iG,formatHex:iG,formatHex8:aG,formatHsl:oG,formatRgb:sG,toString:sG});function iG(){return this.rgb().formatHex()}function aG(){return this.rgb().formatHex8()}function oG(){return xG(this).formatHsl()}function sG(){return this.rgb().formatRgb()}function cG(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=XW.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?lG(t):n===3?new pG(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?uG(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?uG(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=ZW.exec(e))?new pG(t[1],t[2],t[3],1):(t=QW.exec(e))?new pG(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=$W.exec(e))?uG(t[1],t[2],t[3],t[4]):(t=eG.exec(e))?uG(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=tG.exec(e))?bG(t[1],t[2]/100,t[3]/100,1):(t=nG.exec(e))?bG(t[1],t[2]/100,t[3]/100,t[4]):rG.hasOwnProperty(e)?lG(rG[e]):e===`transparent`?new pG(NaN,NaN,NaN,0):null}function lG(e){return new pG(e>>16&255,e>>8&255,e&255,1)}function uG(e,t,n,r){return r<=0&&(e=t=n=NaN),new pG(e,t,n,r)}function dG(e){return e instanceof WW||(e=cG(e)),e?(e=e.rgb(),new pG(e.r,e.g,e.b,e.opacity)):new pG}function fG(e,t,n,r){return arguments.length===1?dG(e):new pG(e,t,n,r??1)}function pG(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}HW(pG,fG,UW(WW,{brighter(e){return e=e==null?KW:KW**+e,new pG(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?GW:GW**+e,new pG(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new pG(vG(this.r),vG(this.g),vG(this.b),_G(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:mG,formatHex:mG,formatHex8:hG,formatRgb:gG,toString:gG}));function mG(){return`#${yG(this.r)}${yG(this.g)}${yG(this.b)}`}function hG(){return`#${yG(this.r)}${yG(this.g)}${yG(this.b)}${yG((isNaN(this.opacity)?1:this.opacity)*255)}`}function gG(){let e=_G(this.opacity);return`${e===1?`rgb(`:`rgba(`}${vG(this.r)}, ${vG(this.g)}, ${vG(this.b)}${e===1?`)`:`, ${e})`}`}function _G(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function vG(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function yG(e){return e=vG(e),(e<16?`0`:``)+e.toString(16)}function bG(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new CG(e,t,n,r)}function xG(e){if(e instanceof CG)return new CG(e.h,e.s,e.l,e.opacity);if(e instanceof WW||(e=cG(e)),!e)return new CG;if(e instanceof CG)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new CG(o,s,c,e.opacity)}function SG(e,t,n,r){return arguments.length===1?xG(e):new CG(e,t,n,r??1)}function CG(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}HW(CG,SG,UW(WW,{brighter(e){return e=e==null?KW:KW**+e,new CG(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?GW:GW**+e,new CG(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new pG(EG(e>=240?e-240:e+120,i,r),EG(e,i,r),EG(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new CG(wG(this.h),TG(this.s),TG(this.l),_G(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=_G(this.opacity);return`${e===1?`hsl(`:`hsla(`}${wG(this.h)}, ${TG(this.s)*100}%, ${TG(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function wG(e){return e=(e||0)%360,e<0?e+360:e}function TG(e){return Math.max(0,Math.min(1,e||0))}function EG(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var DG=Math.PI/180,OG=180/Math.PI,kG=-.14861,AG=1.78277,jG=-.29227,MG=-.90649,NG=1.97294,PG=NG*MG,FG=NG*AG,IG=AG*jG-MG*kG;function LG(e){if(e instanceof zG)return new zG(e.h,e.s,e.l,e.opacity);e instanceof pG||(e=dG(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(IG*r+PG*t-FG*n)/(IG+PG-FG),a=r-i,o=(NG*(n-i)-jG*a)/MG,s=Math.sqrt(o*o+a*a)/(NG*i*(1-i)),c=s?Math.atan2(o,a)*OG-120:NaN;return new zG(c<0?c+360:c,s,i,e.opacity)}function RG(e,t,n,r){return arguments.length===1?LG(e):new zG(e,t,n,r??1)}function zG(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}HW(zG,RG,UW(WW,{brighter(e){return e=e==null?KW:KW**+e,new zG(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?GW:GW**+e,new zG(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*DG,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new pG(255*(t+n*(kG*r+AG*i)),255*(t+n*(jG*r+MG*i)),255*(t+NG*r*n),this.opacity)}}));function BG(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}function VG(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,s=r<t-1?e[r+2]:2*a-i;return BG((n-r/t)*t,o,i,a,s)}}var HG=e=>()=>e;function UG(e,t){return function(n){return e+n*t}}function WG(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function GG(e,t){var n=t-e;return n?UG(e,n>180||n<-180?n-360*Math.round(n/360):n):HG(isNaN(e)?t:e)}function KG(e){return(e=+e)==1?qG:function(t,n){return n-t?WG(t,n,e):HG(isNaN(t)?n:t)}}function qG(e,t){var n=t-e;return n?UG(e,n):HG(isNaN(e)?t:e)}var JG=(function e(t){var n=KG(t);function r(e,t){var r=n((e=fG(e)).r,(t=fG(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=qG(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function YG(e){return function(t){for(var n=t.length,r=Array(n),i=Array(n),a=Array(n),o=0,s;o<n;++o)s=fG(t[o]),r[o]=s.r||0,i[o]=s.g||0,a[o]=s.b||0;return r=e(r),i=e(i),a=e(a),s.opacity=1,function(e){return s.r=r(e),s.g=i(e),s.b=a(e),s+``}}}var XG=YG(VG);function ZG(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function QG(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function $G(e,t){for(var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o=0;o<r;++o)i[o]=cK(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function eK(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function tK(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function nK(e,t){var n={},r={},i;for(i in typeof e==`object`&&e||(e={}),typeof t==`object`&&t||(t={}),t)i in e?n[i]=cK(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var rK=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,iK=new RegExp(rK.source,`g`);function aK(e){return function(){return e}}function oK(e){return function(t){return e(t)+``}}function sK(e,t){var n=rK.lastIndex=iK.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=rK.exec(e))&&(i=iK.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:tK(r,i)})),n=iK.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?oK(c[0].x):aK(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function cK(e,t){var n=typeof t,r;return t==null||n===`boolean`?HG(t):(n===`number`?tK:n===`string`?(r=cG(t))?(t=r,JG):sK:t instanceof cG?JG:t instanceof Date?eK:QG(t)?ZG:Array.isArray(t)?$G:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?nK:tK)(e,t)}function lK(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var uK=180/Math.PI,dK={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function fK(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*uK,skewX:Math.atan(c)*uK,scaleX:o,scaleY:s}}var pK;function mK(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?dK:fK(t.a,t.b,t.c,t.d,t.e,t.f)}function hK(e){return e==null||(pK||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),pK.setAttribute(`transform`,e),!(e=pK.transform.baseVal.consolidate()))?dK:(e=e.matrix,fK(e.a,e.b,e.c,e.d,e.e,e.f))}function gK(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:tK(e,i)},{i:c-2,x:tK(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:tK(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:tK(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:tK(e,n)},{i:s-2,x:tK(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var _K=gK(mK,`px, `,`px)`,`deg)`),vK=gK(hK,`, `,`)`,`)`);function yK(e){return(function t(n){n=+n;function r(t,r){var i=e((t=RG(t)).h,(r=RG(r)).h),a=qG(t.s,r.s),o=qG(t.l,r.l),s=qG(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=a(e),t.l=o(e**+n),t.opacity=s(e),t+``}}return r.gamma=t,r})(1)}yK(GG);var bK=yK(qG),xK=n(((e,t)=>{function n(e){return this.__data__.set(e,`__lodash_hash_undefined__`),this}t.exports=n})),SK=n(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),CK=n(((e,t)=>{var n=kH(),r=xK(),i=SK();function a(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=r,a.prototype.has=i,t.exports=a})),wK=n(((e,t)=>{function n(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}t.exports=n})),TK=n(((e,t)=>{function n(e){return e!==e}t.exports=n})),EK=n(((e,t)=>{function n(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}t.exports=n})),DK=n(((e,t)=>{var n=wK(),r=TK(),i=EK();function a(e,t,a){return t===t?i(e,t,a):n(e,r,a)}t.exports=a})),OK=n(((e,t)=>{var n=DK();function r(e,t){return!!(e!=null&&e.length)&&n(e,t,0)>-1}t.exports=r})),kK=n(((e,t)=>{function n(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}t.exports=n})),AK=n(((e,t)=>{function n(e,t){return e.has(t)}t.exports=n})),jK=n(((e,t)=>{var n=CK(),r=OK(),i=kK(),a=FU(),o=iU(),s=AK(),c=200;function l(e,t,l,u){var d=-1,f=r,p=!0,m=e.length,h=[],g=t.length;if(!m)return h;l&&(t=a(t,o(l))),u?(f=i,p=!1):t.length>=c&&(f=s,p=!1,t=new n(t));outer:for(;++d<m;){var _=e[d],v=l==null?_:l(_);if(_=u||_!==0?_:0,p&&v===v){for(var y=g;y--;)if(t[y]===v)continue outer;h.push(_)}else f(t,v,u)||h.push(_)}return h}t.exports=l})),MK=n(((e,t)=>{var n=jK(),r=EU(),i=$H();t.exports=r(function(e,t){return i(e)?n(e,t):[]})}));function NK(e){return function(){return e}}var PK=Math.abs,FK=Math.atan2,IK=Math.cos,LK=Math.max,RK=Math.min,zK=Math.sin,BK=Math.sqrt,VK=Math.PI,HK=VK/2,UK=2*VK;function WK(e){return e>1?0:e<-1?VK:Math.acos(e)}function GK(e){return e>=1?HK:e<=-1?-HK:Math.asin(e)}var KK=Math.PI,qK=2*KK,JK=1e-6,YK=qK-JK;function XK(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function ZK(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return XK;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var QK=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?XK:ZK(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>JK){if(!(Math.abs(u*s-c*l)>JK)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((KK-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>JK&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>JK||Math.abs(this._y1-l)>JK)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%qK+qK),d>YK?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>JK&&this._append`A${n},${n},0,${+(d>=KK)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};QK.prototype;function $K(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new QK(t)}function eq(e){return e.innerRadius}function tq(e){return e.outerRadius}function nq(e){return e.startAngle}function rq(e){return e.endAngle}function iq(e){return e&&e.padAngle}function aq(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<1e-12))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function oq(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/BK(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*BK(LK(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x01:-u,y01:-d,x11:w*(i/x-1),y11:T*(i/x-1)}}function sq(){var e=eq,t=tq,n=NK(0),r=null,i=nq,a=rq,o=iq,s=null,c=$K(l);function l(){var l,u,d=+e.apply(this,arguments),f=+t.apply(this,arguments),p=i.apply(this,arguments)-HK,m=a.apply(this,arguments)-HK,h=PK(m-p),g=m>p;if(s||=l=c(),f<d&&(u=f,f=d,d=u),!(f>1e-12))s.moveTo(0,0);else if(h>UK-1e-12)s.moveTo(f*IK(p),f*zK(p)),s.arc(0,0,f,p,m,!g),d>1e-12&&(s.moveTo(d*IK(m),d*zK(m)),s.arc(0,0,d,m,p,g));else{var _=p,v=m,y=p,b=m,x=h,S=h,C=o.apply(this,arguments)/2,w=C>1e-12&&(r?+r.apply(this,arguments):BK(d*d+f*f)),T=RK(PK(f-d)/2,+n.apply(this,arguments)),E=T,D=T,O,k;if(w>1e-12){var A=GK(w/d*zK(C)),j=GK(w/f*zK(C));(x-=A*2)>1e-12?(A*=g?1:-1,y+=A,b-=A):(x=0,y=b=(p+m)/2),(S-=j*2)>1e-12?(j*=g?1:-1,_+=j,v-=j):(S=0,_=v=(p+m)/2)}var M=f*IK(_),N=f*zK(_),P=d*IK(b),F=d*zK(b);if(T>1e-12){var I=f*IK(v),L=f*zK(v),R=d*IK(y),z=d*zK(y),B;if(h<VK){if(B=aq(M,N,R,z,I,L,P,F)){var ee=M-B[0],te=N-B[1],ne=I-B[0],re=L-B[1],ie=1/zK(WK((ee*ne+te*re)/(BK(ee*ee+te*te)*BK(ne*ne+re*re)))/2),ae=BK(B[0]*B[0]+B[1]*B[1]);E=RK(T,(d-ae)/(ie-1)),D=RK(T,(f-ae)/(ie+1))}else E=D=0}}S>1e-12?D>1e-12?(O=oq(R,z,M,N,f,D,g),k=oq(I,L,P,F,f,D,g),s.moveTo(O.cx+O.x01,O.cy+O.y01),D<T?s.arc(O.cx,O.cy,D,FK(O.y01,O.x01),FK(k.y01,k.x01),!g):(s.arc(O.cx,O.cy,D,FK(O.y01,O.x01),FK(O.y11,O.x11),!g),s.arc(0,0,f,FK(O.cy+O.y11,O.cx+O.x11),FK(k.cy+k.y11,k.cx+k.x11),!g),s.arc(k.cx,k.cy,D,FK(k.y11,k.x11),FK(k.y01,k.x01),!g))):(s.moveTo(M,N),s.arc(0,0,f,_,v,!g)):s.moveTo(M,N),!(d>1e-12)||!(x>1e-12)?s.lineTo(P,F):E>1e-12?(O=oq(P,F,I,L,d,-E,g),k=oq(M,N,R,z,d,-E,g),s.lineTo(O.cx+O.x01,O.cy+O.y01),E<T?s.arc(O.cx,O.cy,E,FK(O.y01,O.x01),FK(k.y01,k.x01),!g):(s.arc(O.cx,O.cy,E,FK(O.y01,O.x01),FK(O.y11,O.x11),!g),s.arc(0,0,d,FK(O.cy+O.y11,O.cx+O.x11),FK(k.cy+k.y11,k.cx+k.x11),g),s.arc(k.cx,k.cy,E,FK(k.y11,k.x11),FK(k.y01,k.x01),!g))):s.arc(0,0,d,b,y,g)}if(s.closePath(),l)return s=null,l+``||null}return l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-VK/2;return[IK(r)*n,zK(r)*n]},l.innerRadius=function(t){return arguments.length?(e=typeof t==`function`?t:NK(+t),l):e},l.outerRadius=function(e){return arguments.length?(t=typeof e==`function`?e:NK(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n=typeof e==`function`?e:NK(+e),l):n},l.padRadius=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:NK(+e),l):r},l.startAngle=function(e){return arguments.length?(i=typeof e==`function`?e:NK(+e),l):i},l.endAngle=function(e){return arguments.length?(a=typeof e==`function`?e:NK(+e),l):a},l.padAngle=function(e){return arguments.length?(o=typeof e==`function`?e:NK(+e),l):o},l.context=function(e){return arguments.length?(s=e??null,l):s},l}Array.prototype.slice;function cq(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function lq(e){this._context=e}lq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};function uq(e){return new lq(e)}function dq(e){return e[0]}function fq(e){return e[1]}function pq(e,t){var n=NK(!0),r=null,i=uq,a=null,o=$K(s);e=typeof e==`function`?e:e===void 0?dq:NK(e),t=typeof t==`function`?t:t===void 0?fq:NK(t);function s(s){var c,l=(s=cq(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:NK(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:NK(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:NK(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function mq(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function hq(e){return e}function gq(){var e=hq,t=mq,n=null,r=NK(0),i=NK(UK),a=NK(0);function o(o){var s,c=(o=cq(o)).length,l,u,d=0,f=Array(c),p=Array(c),m=+r.apply(this,arguments),h=Math.min(UK,Math.max(-UK,i.apply(this,arguments)-m)),g,_=Math.min(Math.abs(h)/c,a.apply(this,arguments)),v=_*(h<0?-1:1),y;for(s=0;s<c;++s)(y=p[f[s]=s]=+e(o[s],s,o))>0&&(d+=y);for(t==null?n!=null&&f.sort(function(e,t){return n(o[e],o[t])}):f.sort(function(e,n){return t(p[e],p[n])}),s=0,u=d?(h-c*v)/d:0;s<c;++s,m=g)l=f[s],y=p[l],g=m+(y>0?y*u:0)+v,p[l]={data:o[l],index:s,value:y,startAngle:m,endAngle:g,padAngle:_};return p}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:NK(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:NK(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:NK(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:NK(+e),o):a},o}function _q(){}function vq(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function yq(e){this._context=e}yq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:vq(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:vq(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function bq(e){return new yq(e)}function xq(e){this._context=e}xq.prototype={areaStart:_q,areaEnd:_q,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:vq(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Sq(e){return new xq(e)}function Cq(e){this._context=e}Cq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:vq(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function wq(e){return new Cq(e)}function Tq(e,t){this._basis=new yq(e),this._beta=t}Tq.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var Eq=(function e(t){function n(e){return t===1?new yq(e):new Tq(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function Dq(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Oq(e,t){this._context=e,this._k=(1-t)/6}Oq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Dq(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Dq(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var kq=(function e(t){function n(e){return new Oq(e,t)}return n.tension=function(t){return e(+t)},n})(0);function Aq(e,t){this._context=e,this._k=(1-t)/6}Aq.prototype={areaStart:_q,areaEnd:_q,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Dq(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var jq=(function e(t){function n(e){return new Aq(e,t)}return n.tension=function(t){return e(+t)},n})(0);function Mq(e,t){this._context=e,this._k=(1-t)/6}Mq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Dq(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Nq=(function e(t){function n(e){return new Mq(e,t)}return n.tension=function(t){return e(+t)},n})(0);function Pq(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>1e-12){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function Fq(e,t){this._context=e,this._alpha=t}Fq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Pq(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Iq=(function e(t){function n(e){return t?new Fq(e,t):new Oq(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function Lq(e,t){this._context=e,this._alpha=t}Lq.prototype={areaStart:_q,areaEnd:_q,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Pq(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Rq=(function e(t){function n(e){return t?new Lq(e,t):new Aq(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function zq(e,t){this._context=e,this._alpha=t}zq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Pq(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Bq=(function e(t){function n(e){return t?new zq(e,t):new Mq(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function Vq(e){this._context=e}Vq.prototype={areaStart:_q,areaEnd:_q,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Hq(e){return new Vq(e)}function Uq(e){return e<0?-1:1}function Wq(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Uq(a)+Uq(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Gq(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Kq(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function qq(e){this._context=e}qq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Kq(this,this._t0,Gq(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Kq(this,Gq(this,n=Wq(this,e,t)),n);break;default:Kq(this,this._t0,n=Wq(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Jq(e){this._context=new Yq(e)}(Jq.prototype=Object.create(qq.prototype)).point=function(e,t){qq.prototype.point.call(this,t,e)};function Yq(e){this._context=e}Yq.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Xq(e){return new qq(e)}function Zq(e){return new Jq(e)}function Qq(e){this._context=e}Qq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=$q(e),i=$q(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o])}(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function $q(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function eJ(e){return new Qq(e)}function tJ(e,t){this._context=e,this._t=t}tJ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};function nJ(e){return new tJ(e,.5)}function rJ(e){return new tJ(e,0)}function iJ(e){return new tJ(e,1)}function aJ(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function oJ(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function sJ(e,t){return e[t]}function cJ(e){let t=[];return t.key=e,t}function lJ(){var e=NK([]),t=oJ,n=aJ,r=sJ;function i(i){var a=Array.from(e.apply(this,arguments),cJ),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o<s;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,l=cq(t(a));o<s;++o)a[l[o]].index=o;return n(a,l),a}return i.keys=function(t){return arguments.length?(e=typeof t==`function`?t:NK(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:NK(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?oJ:typeof e==`function`?e:NK(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??aJ,i):n},i}function uJ(e,t){if((c=e.length)>0)for(var n,r=0,i,a,o,s,c,l=e[t[0]].length;r<l;++r)for(o=s=0,n=0;n<c;++n)(a=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=o,i[1]=o+=a):a<0?(i[1]=s,i[0]=s+=a):(i[0]=0,i[1]=a)}function dJ(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function fJ(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function pJ(e){let t,n,r;e.length===2?(t=e===dJ||e===fJ?e:mJ,n=e,r=e):(t=dJ,n=(t,n)=>dJ(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function mJ(){return 0}function hJ(e){return e===null?NaN:+e}var gJ=pJ(dJ),_J=gJ.right;gJ.left,pJ(hJ).center;var vJ=class extends Map{constructor(e,t=SJ){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(yJ(this,e))}has(e){return super.has(yJ(this,e))}set(e,t){return super.set(bJ(this,e),t)}delete(e){return super.delete(xJ(this,e))}};function yJ({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function bJ({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function xJ({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function SJ(e){return typeof e==`object`&&e?e.valueOf():e}var CJ=Math.sqrt(50),wJ=Math.sqrt(10),TJ=Math.sqrt(2);function EJ(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=CJ?10:a>=wJ?5:a>=TJ?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?EJ(e,t,n*2):[s,c,l]}function DJ(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?EJ(t,e,n):EJ(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r){if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o}else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function OJ(e,t,n){return t=+t,e=+e,n=+n,EJ(e,t,n)[2]}function kJ(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?OJ(t,e,n):OJ(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function AJ(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}function jJ(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var MJ=Symbol(`implicit`);function NJ(){var e=new vJ,t=[],n=[],r=MJ;function i(i){let a=e.get(i);if(a===void 0){if(r!==MJ)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new vJ;for(let r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return NJ(t,n).unknown(r)},jJ.apply(i,arguments),i}function PJ(){var e=NJ().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var e=t().length,d=i<r,f=d?i:r,p=d?r:i;a=(p-f)/Math.max(1,e-c+l*2),s&&(a=Math.floor(a)),f+=(p-f-a*(e-c))*u,o=a*(1-c),s&&(f=Math.round(f),o=Math.round(o));var m=AJ(e).map(function(e){return f+a*e});return n(d?m.reverse():m)}return e.domain=function(e){return arguments.length?(t(e),d()):t()},e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,d()):s},e.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),d()):c},e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},e.paddingOuter=function(e){return arguments.length?(l=+e,d()):l},e.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},e.copy=function(){return PJ(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},jJ.apply(d(),arguments)}function FJ(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return FJ(t())},e}function IJ(){return FJ(PJ.apply(null,arguments).paddingInner(1))}function LJ(e){return function(){return e}}function RJ(e){return+e}var zJ=[0,1];function BJ(e){return e}function VJ(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:LJ(isNaN(t)?NaN:.5)}function HJ(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function UJ(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=VJ(i,r),a=n(o,a)):(r=VJ(r,i),a=n(a,o)),function(e){return a(r(e))}}function WJ(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=VJ(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=_J(e,t,1,r)-1;return a[n](i[n](t))}}function GJ(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function KJ(){var e=zJ,t=zJ,n=cK,r,i,a,o=BJ,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==BJ&&(o=HJ(e[0],e[n-1])),s=n>2?WJ:UJ,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),tK))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,RJ),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=lK,u()},d.clamp=function(e){return arguments.length?(o=e?!0:BJ,u()):o!==BJ},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function qJ(){return KJ()(BJ,BJ)}function JJ(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function YJ(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function XJ(e){return e=YJ(Math.abs(e)),e?e[1]:NaN}function ZJ(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function QJ(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var $J=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function eY(e){if(!(t=$J.exec(e)))throw Error(`invalid format: `+e);var t;return new tY({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}eY.prototype=tY.prototype;function tY(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}tY.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function nY(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0)}return r>0?e.slice(0,r)+e.slice(i+1):e}var rY;function iY(e,t){var n=YJ(e,t);if(!n)return rY=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(rY=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+YJ(e,Math.max(0,t+a-1))[0]}function aY(e,t){var n=YJ(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var oY={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:JJ,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>aY(e*100,t),r:aY,s:iY,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function sY(e){return e}var cY=Array.prototype.map,lY=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function uY(e){var t=e.grouping===void 0||e.thousands===void 0?sY:ZJ(cY.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?sY:QJ(cY.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=eY(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):oY[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=oY[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=nY(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&rY!==void 0?lY[8+rY/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++o<l;)if(p=e.charCodeAt(o),48>p||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<h?Array(h-T+1).join(u):``;switch(g&&m&&(e=t(E+e,E.length?h-r.length:1/0),E=``),d){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(XJ(t)/3)))*3,r=10**-n,i=l((e=eY(e),e.type=`f`,e),{suffix:lY[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var dY,fY,pY;mY({thousands:`,`,grouping:[3],currency:[`$`,``]});function mY(e){return dY=uY(e),fY=dY.format,pY=dY.formatPrefix,dY}function hY(e){return Math.max(0,-XJ(Math.abs(e)))}function gY(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(XJ(t)/3)))*3-XJ(Math.abs(e)))}function _Y(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,XJ(t)-XJ(e))+1}function vY(e,t,n,r){var i=kJ(e,t,n),a;switch(r=eY(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=gY(i,o))&&(r.precision=a),pY(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=_Y(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=hY(i))&&(r.precision=a-(r.type===`%`)*2)}return fY(r)}function yY(e){var t=e.domain;return e.ticks=function(e){var n=t();return DJ(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return vY(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-->0;){if(l=OJ(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function bY(){var e=qJ();return e.copy=function(){return GJ(e,bY())},jJ.apply(e,arguments),yY(e)}function xY(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function SY(e){return Math.log(e)}function CY(e){return Math.exp(e)}function wY(e){return-Math.log(-e)}function TY(e){return-Math.exp(-e)}function EY(e){return isFinite(e)?+(`1e`+e):e<0?0:e}function DY(e){return e===10?EY:e===Math.E?Math.exp:t=>e**+t}function OY(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function kY(e){return(t,n)=>-e(-t,n)}function AY(e){let t=e(SY,CY),n=t.domain,r=10,i,a;function o(){return i=OY(r),a=DY(r),n()[0]<0?(i=kY(i),a=kY(a),e(wY,TY)):e(SY,CY),t}return t.base=function(e){return arguments.length?(r=+e,o()):r},t.domain=function(e){return arguments.length?(n(e),o()):n()},t.ticks=e=>{let t=n(),o=t[0],s=t[t.length-1],c=s<o;c&&([o,s]=[s,o]);let l=i(o),u=i(s),d,f,p=e==null?10:+e,m=[];if(!(r%1)&&u-l<p){if(l=Math.floor(l),u=Math.ceil(u),o>0){for(;l<=u;++l)for(d=1;d<r;++d)if(f=l<0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}}else for(;l<=u;++l)for(d=r-1;d>=1;--d)if(f=l>0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}m.length*2<p&&(m=DJ(o,s,p))}else m=DJ(l,u,Math.min(u-l,p)).map(a);return c?m.reverse():m},t.tickFormat=(e,n)=>{if(e??=10,n??=r===10?`s`:`,`,typeof n!=`function`&&(!(r%1)&&(n=eY(n)).precision==null&&(n.trim=!0),n=fY(n)),e===1/0)return n;let o=Math.max(1,r*e/t.ticks().length);return e=>{let t=e/a(Math.round(i(e)));return t*r<r-.5&&(t*=r),t<=o?n(e):``}},t.nice=()=>n(xY(n(),{floor:e=>a(Math.floor(i(e))),ceil:e=>a(Math.ceil(i(e)))})),t}function jY(){let e=AY(KJ()).domain([1,10]);return e.copy=()=>GJ(e,jY()).base(e.base()),jJ.apply(e,arguments),e}function MY(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function NY(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function PY(e){var t=1,n=e(MY(t),NY(t));return n.constant=function(n){return arguments.length?e(MY(t=+n),NY(t)):t},yY(n)}function FY(){var e=PY(KJ());return e.copy=function(){return GJ(e,FY()).constant(e.constant())},jJ.apply(e,arguments)}var IY=new Date,LY=new Date;function RY(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>RY(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}}),n&&(i.count=(t,r)=>(IY.setTime(+t),LY.setTime(+r),e(IY),e(LY),Math.floor(n(IY,LY))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var zY=RY(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);zY.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?RY(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):zY),zY.range;var BY=1e3,VY=BY*60,HY=VY*60,UY=HY*24,WY=UY*7,GY=UY*30,KY=UY*365,qY=RY(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*BY)},(e,t)=>(t-e)/BY,e=>e.getUTCSeconds());qY.range;var JY=RY(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*BY)},(e,t)=>{e.setTime(+e+t*VY)},(e,t)=>(t-e)/VY,e=>e.getMinutes());JY.range;var YY=RY(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*VY)},(e,t)=>(t-e)/VY,e=>e.getUTCMinutes());YY.range;var XY=RY(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*BY-e.getMinutes()*VY)},(e,t)=>{e.setTime(+e+t*HY)},(e,t)=>(t-e)/HY,e=>e.getHours());XY.range;var ZY=RY(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*HY)},(e,t)=>(t-e)/HY,e=>e.getUTCHours());ZY.range;var QY=RY(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*VY)/UY,e=>e.getDate()-1);QY.range;var $Y=RY(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/UY,e=>e.getUTCDate()-1);$Y.range;var eX=RY(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/UY,e=>Math.floor(e/UY));eX.range;function tX(e){return RY(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*VY)/WY)}var nX=tX(0),rX=tX(1),iX=tX(2),aX=tX(3),oX=tX(4),sX=tX(5),cX=tX(6);nX.range,rX.range,iX.range,aX.range,oX.range,sX.range,cX.range;function lX(e){return RY(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/WY)}var uX=lX(0),dX=lX(1),fX=lX(2),pX=lX(3),mX=lX(4),hX=lX(5),gX=lX(6);uX.range,dX.range,fX.range,pX.range,mX.range,hX.range,gX.range;var _X=RY(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());_X.range;var vX=RY(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());vX.range;var yX=RY(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());yX.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:RY(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),yX.range;var bX=RY(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());bX.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:RY(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),bX.range;function xX(e,t,n,r,i,a){let o=[[qY,1,BY],[qY,5,5*BY],[qY,15,15*BY],[qY,30,30*BY],[a,1,VY],[a,5,5*VY],[a,15,15*VY],[a,30,30*VY],[i,1,HY],[i,3,3*HY],[i,6,6*HY],[i,12,12*HY],[r,1,UY],[r,2,2*UY],[n,1,WY],[t,1,GY],[t,3,3*GY],[e,1,KY]];function s(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:c(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function c(t,n,r){let i=Math.abs(n-t)/r,a=pJ(([,,e])=>e).right(o,i);if(a===o.length)return e.every(kJ(t/KY,n/KY,r));if(a===0)return zY.every(Math.max(kJ(t,n,r),1));let[s,c]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(c)}return[s,c]}var[SX,CX]=xX(bX,vX,uX,eX,ZY,YY),[wX,TX]=xX(yX,_X,nX,QY,XY,JY);function EX(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function DX(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function OX(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function kX(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=IX(i),u=LX(i),d=IX(a),f=LX(a),p=IX(o),m=LX(o),h=IX(s),g=LX(s),_=IX(c),v=LX(c),y={a:N,A:P,b:F,B:I,c:null,d:iZ,e:iZ,f:lZ,g:bZ,G:SZ,H:aZ,I:oZ,j:sZ,L:cZ,m:uZ,M:dZ,p:L,q:R,Q:GZ,s:KZ,S:fZ,u:pZ,U:mZ,V:gZ,w:_Z,W:vZ,x:null,X:null,y:yZ,Y:xZ,Z:CZ,"%":WZ},b={a:z,A:B,b:ee,B:te,c:null,d:wZ,e:wZ,f:kZ,g:BZ,G:HZ,H:TZ,I:EZ,j:DZ,L:OZ,m:AZ,M:jZ,p:ne,q:re,Q:GZ,s:KZ,S:MZ,u:NZ,U:PZ,V:IZ,w:LZ,W:RZ,x:null,X:null,y:zZ,Y:VZ,Z:UZ,"%":WZ},x={a:E,A:D,b:O,B:k,c:A,d:JX,e:JX,f:eZ,g:WX,G:UX,H:XX,I:XX,j:YX,L:$X,m:qX,M:ZX,p:T,q:KX,Q:nZ,s:rZ,S:QX,u:zX,U:BX,V:VX,w:RX,W:HX,x:j,X:M,y:WX,Y:UX,Z:GX,"%":tZ};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=AX[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=OX(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=DX(OX(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?dX.ceil(a):dX(a),a=$Y.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=EX(OX(r.y,0,1)),o=a.getDay(),a=o>4||o===0?rX.ceil(a):rX(a),a=QY.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else(`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?DX(OX(r.y,0,1)).getUTCDay():EX(OX(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,DX(r)):EX(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in AX?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,n,r){return w(e,t,n,r)}function j(e,t,r){return w(e,n,t,r)}function M(e,t,n){return w(e,r,t,n)}function N(e){return o[e.getDay()]}function P(e){return a[e.getDay()]}function F(e){return c[e.getMonth()]}function I(e){return s[e.getMonth()]}function L(e){return i[+(e.getHours()>=12)]}function R(e){return 1+~~(e.getMonth()/3)}function z(e){return o[e.getUTCDay()]}function B(e){return a[e.getUTCDay()]}function ee(e){return c[e.getUTCMonth()]}function te(e){return s[e.getUTCMonth()]}function ne(e){return i[+(e.getUTCHours()>=12)]}function re(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var AX={"-":``,_:` `,0:`0`},jX=/^\s*\d+/,MX=/^%/,NX=/[\\^$*+?|[\]().{}]/g;function PX(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function FX(e){return e.replace(NX,`\\$&`)}function IX(e){return RegExp(`^(?:`+e.map(FX).join(`|`)+`)`,`i`)}function LX(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function RX(e,t,n){var r=jX.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function zX(e,t,n){var r=jX.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function BX(e,t,n){var r=jX.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function VX(e,t,n){var r=jX.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function HX(e,t,n){var r=jX.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function UX(e,t,n){var r=jX.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function WX(e,t,n){var r=jX.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function GX(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function KX(e,t,n){var r=jX.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function qX(e,t,n){var r=jX.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function JX(e,t,n){var r=jX.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function YX(e,t,n){var r=jX.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function XX(e,t,n){var r=jX.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function ZX(e,t,n){var r=jX.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function QX(e,t,n){var r=jX.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function $X(e,t,n){var r=jX.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function eZ(e,t,n){var r=jX.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function tZ(e,t,n){var r=MX.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function nZ(e,t,n){var r=jX.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function rZ(e,t,n){var r=jX.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function iZ(e,t){return PX(e.getDate(),t,2)}function aZ(e,t){return PX(e.getHours(),t,2)}function oZ(e,t){return PX(e.getHours()%12||12,t,2)}function sZ(e,t){return PX(1+QY.count(yX(e),e),t,3)}function cZ(e,t){return PX(e.getMilliseconds(),t,3)}function lZ(e,t){return cZ(e,t)+`000`}function uZ(e,t){return PX(e.getMonth()+1,t,2)}function dZ(e,t){return PX(e.getMinutes(),t,2)}function fZ(e,t){return PX(e.getSeconds(),t,2)}function pZ(e){var t=e.getDay();return t===0?7:t}function mZ(e,t){return PX(nX.count(yX(e)-1,e),t,2)}function hZ(e){var t=e.getDay();return t>=4||t===0?oX(e):oX.ceil(e)}function gZ(e,t){return e=hZ(e),PX(oX.count(yX(e),e)+(yX(e).getDay()===4),t,2)}function _Z(e){return e.getDay()}function vZ(e,t){return PX(rX.count(yX(e)-1,e),t,2)}function yZ(e,t){return PX(e.getFullYear()%100,t,2)}function bZ(e,t){return e=hZ(e),PX(e.getFullYear()%100,t,2)}function xZ(e,t){return PX(e.getFullYear()%1e4,t,4)}function SZ(e,t){var n=e.getDay();return e=n>=4||n===0?oX(e):oX.ceil(e),PX(e.getFullYear()%1e4,t,4)}function CZ(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+PX(t/60|0,`0`,2)+PX(t%60,`0`,2)}function wZ(e,t){return PX(e.getUTCDate(),t,2)}function TZ(e,t){return PX(e.getUTCHours(),t,2)}function EZ(e,t){return PX(e.getUTCHours()%12||12,t,2)}function DZ(e,t){return PX(1+$Y.count(bX(e),e),t,3)}function OZ(e,t){return PX(e.getUTCMilliseconds(),t,3)}function kZ(e,t){return OZ(e,t)+`000`}function AZ(e,t){return PX(e.getUTCMonth()+1,t,2)}function jZ(e,t){return PX(e.getUTCMinutes(),t,2)}function MZ(e,t){return PX(e.getUTCSeconds(),t,2)}function NZ(e){var t=e.getUTCDay();return t===0?7:t}function PZ(e,t){return PX(uX.count(bX(e)-1,e),t,2)}function FZ(e){var t=e.getUTCDay();return t>=4||t===0?mX(e):mX.ceil(e)}function IZ(e,t){return e=FZ(e),PX(mX.count(bX(e),e)+(bX(e).getUTCDay()===4),t,2)}function LZ(e){return e.getUTCDay()}function RZ(e,t){return PX(dX.count(bX(e)-1,e),t,2)}function zZ(e,t){return PX(e.getUTCFullYear()%100,t,2)}function BZ(e,t){return e=FZ(e),PX(e.getUTCFullYear()%100,t,2)}function VZ(e,t){return PX(e.getUTCFullYear()%1e4,t,4)}function HZ(e,t){var n=e.getUTCDay();return e=n>=4||n===0?mX(e):mX.ceil(e),PX(e.getUTCFullYear()%1e4,t,4)}function UZ(){return`+0000`}function WZ(){return`%`}function GZ(e){return+e}function KZ(e){return Math.floor(e/1e3)}var qZ,JZ,YZ;XZ({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]});function XZ(e){return qZ=kX(e),JZ=qZ.format,qZ.parse,YZ=qZ.utcFormat,qZ.utcParse,qZ}function ZZ(e){return new Date(e)}function QZ(e){return e instanceof Date?+e:+new Date(+e)}function $Z(e,t,n,r,i,a,o,s,c,l){var u=qJ(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e)<e?p:s(e)<e?m:o(e)<e?h:a(e)<e?g:r(e)<e?i(e)<e?_:v:n(e)<e?y:b)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,QZ)):f().map(ZZ)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],t??10)},u.tickFormat=function(e,t){return t==null?x:l(t)},u.nice=function(e){var n=f();return e&&typeof e.range==`function`||(e=t(n[0],n[n.length-1],e??10)),e?f(xY(n,e)):u},u.copy=function(){return GJ(u,$Z(e,t,n,r,i,a,o,s,c,l))},u}function eQ(){return jJ.apply($Z(wX,TX,yX,_X,nX,QY,XY,JY,qY,JZ).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function tQ(){return jJ.apply($Z(SX,CX,bX,vX,uX,$Y,ZY,YY,qY,YZ).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function nQ(e){for(var t=e.length/6|0,n=Array(t),r=0;r<t;)n[r]=`#`+e.slice(r*6,++r*6);return n}var rQ=nQ(`1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf`),iQ=nQ(`7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666`),aQ=nQ(`1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666`),oQ=nQ(`a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928`),sQ=nQ(`fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2`),cQ=nQ(`b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc`),lQ=nQ(`e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999`),uQ=nQ(`66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3`),dQ=nQ(`8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f`),fQ=nQ(`4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab`),pQ=e=>XG(e[e.length-1]),mQ=[,,,`d8b365f5f5f55ab4ac`,`a6611adfc27d80cdc1018571`,`a6611adfc27df5f5f580cdc1018571`,`8c510ad8b365f6e8c3c7eae55ab4ac01665e`,`8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e`,`8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e`,`8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e`,`5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30`,`5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30`].map(nQ),hQ=pQ(mQ),gQ=[,,,`af8dc3f7f7f77fbf7b`,`7b3294c2a5cfa6dba0008837`,`7b3294c2a5cff7f7f7a6dba0008837`,`762a83af8dc3e7d4e8d9f0d37fbf7b1b7837`,`762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837`,`762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837`,`762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837`,`40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b`,`40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b`].map(nQ),_Q=pQ(gQ),vQ=[,,,`e9a3c9f7f7f7a1d76a`,`d01c8bf1b6dab8e1864dac26`,`d01c8bf1b6daf7f7f7b8e1864dac26`,`c51b7de9a3c9fde0efe6f5d0a1d76a4d9221`,`c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221`,`c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221`,`c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221`,`8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419`,`8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419`].map(nQ),yQ=pQ(vQ),bQ=[,,,`998ec3f7f7f7f1a340`,`5e3c99b2abd2fdb863e66101`,`5e3c99b2abd2f7f7f7fdb863e66101`,`542788998ec3d8daebfee0b6f1a340b35806`,`542788998ec3d8daebf7f7f7fee0b6f1a340b35806`,`5427888073acb2abd2d8daebfee0b6fdb863e08214b35806`,`5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806`,`2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08`,`2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08`].map(nQ),xQ=pQ(bQ),SQ=[,,,`ef8a62f7f7f767a9cf`,`ca0020f4a58292c5de0571b0`,`ca0020f4a582f7f7f792c5de0571b0`,`b2182bef8a62fddbc7d1e5f067a9cf2166ac`,`b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac`,`b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac`,`b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac`,`67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061`,`67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061`].map(nQ),CQ=pQ(SQ),wQ=[,,,`ef8a62ffffff999999`,`ca0020f4a582bababa404040`,`ca0020f4a582ffffffbababa404040`,`b2182bef8a62fddbc7e0e0e09999994d4d4d`,`b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d`,`b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d`,`b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d`,`67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a`,`67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a`].map(nQ),TQ=pQ(wQ),EQ=[,,,`fc8d59ffffbf91bfdb`,`d7191cfdae61abd9e92c7bb6`,`d7191cfdae61ffffbfabd9e92c7bb6`,`d73027fc8d59fee090e0f3f891bfdb4575b4`,`d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4`,`d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4`,`d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4`,`a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695`,`a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695`].map(nQ),DQ=pQ(EQ),OQ=[,,,`fc8d59ffffbf91cf60`,`d7191cfdae61a6d96a1a9641`,`d7191cfdae61ffffbfa6d96a1a9641`,`d73027fc8d59fee08bd9ef8b91cf601a9850`,`d73027fc8d59fee08bffffbfd9ef8b91cf601a9850`,`d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850`,`d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850`,`a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837`,`a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837`].map(nQ),kQ=pQ(OQ),AQ=[,,,`fc8d59ffffbf99d594`,`d7191cfdae61abdda42b83ba`,`d7191cfdae61ffffbfabdda42b83ba`,`d53e4ffc8d59fee08be6f59899d5943288bd`,`d53e4ffc8d59fee08bffffbfe6f59899d5943288bd`,`d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd`,`d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd`,`9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2`,`9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2`].map(nQ),jQ=pQ(AQ),MQ=[,,,`e5f5f999d8c92ca25f`,`edf8fbb2e2e266c2a4238b45`,`edf8fbb2e2e266c2a42ca25f006d2c`,`edf8fbccece699d8c966c2a42ca25f006d2c`,`edf8fbccece699d8c966c2a441ae76238b45005824`,`f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824`,`f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b`].map(nQ),NQ=pQ(MQ),PQ=[,,,`e0ecf49ebcda8856a7`,`edf8fbb3cde38c96c688419d`,`edf8fbb3cde38c96c68856a7810f7c`,`edf8fbbfd3e69ebcda8c96c68856a7810f7c`,`edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b`,`f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b`,`f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b`].map(nQ),FQ=pQ(PQ),IQ=[,,,`e0f3dba8ddb543a2ca`,`f0f9e8bae4bc7bccc42b8cbe`,`f0f9e8bae4bc7bccc443a2ca0868ac`,`f0f9e8ccebc5a8ddb57bccc443a2ca0868ac`,`f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e`,`f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e`,`f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081`].map(nQ),LQ=pQ(IQ),RQ=[,,,`fee8c8fdbb84e34a33`,`fef0d9fdcc8afc8d59d7301f`,`fef0d9fdcc8afc8d59e34a33b30000`,`fef0d9fdd49efdbb84fc8d59e34a33b30000`,`fef0d9fdd49efdbb84fc8d59ef6548d7301f990000`,`fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000`,`fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000`].map(nQ),zQ=pQ(RQ),BQ=[,,,`ece2f0a6bddb1c9099`,`f6eff7bdc9e167a9cf02818a`,`f6eff7bdc9e167a9cf1c9099016c59`,`f6eff7d0d1e6a6bddb67a9cf1c9099016c59`,`f6eff7d0d1e6a6bddb67a9cf3690c002818a016450`,`fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450`,`fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636`].map(nQ),VQ=pQ(BQ),HQ=[,,,`ece7f2a6bddb2b8cbe`,`f1eef6bdc9e174a9cf0570b0`,`f1eef6bdc9e174a9cf2b8cbe045a8d`,`f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d`,`f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b`,`fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b`,`fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858`].map(nQ),UQ=pQ(HQ),WQ=[,,,`e7e1efc994c7dd1c77`,`f1eef6d7b5d8df65b0ce1256`,`f1eef6d7b5d8df65b0dd1c77980043`,`f1eef6d4b9dac994c7df65b0dd1c77980043`,`f1eef6d4b9dac994c7df65b0e7298ace125691003f`,`f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f`,`f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f`].map(nQ),GQ=pQ(WQ),KQ=[,,,`fde0ddfa9fb5c51b8a`,`feebe2fbb4b9f768a1ae017e`,`feebe2fbb4b9f768a1c51b8a7a0177`,`feebe2fcc5c0fa9fb5f768a1c51b8a7a0177`,`feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177`,`fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177`,`fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a`].map(nQ),qQ=pQ(KQ),JQ=[,,,`edf8b17fcdbb2c7fb8`,`ffffcca1dab441b6c4225ea8`,`ffffcca1dab441b6c42c7fb8253494`,`ffffccc7e9b47fcdbb41b6c42c7fb8253494`,`ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84`,`ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84`,`ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58`].map(nQ),YQ=pQ(JQ),XQ=[,,,`f7fcb9addd8e31a354`,`ffffccc2e69978c679238443`,`ffffccc2e69978c67931a354006837`,`ffffccd9f0a3addd8e78c67931a354006837`,`ffffccd9f0a3addd8e78c67941ab5d238443005a32`,`ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32`,`ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529`].map(nQ),ZQ=pQ(XQ),QQ=[,,,`fff7bcfec44fd95f0e`,`ffffd4fed98efe9929cc4c02`,`ffffd4fed98efe9929d95f0e993404`,`ffffd4fee391fec44ffe9929d95f0e993404`,`ffffd4fee391fec44ffe9929ec7014cc4c028c2d04`,`ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04`,`ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506`].map(nQ),$Q=pQ(QQ),e$=[,,,`ffeda0feb24cf03b20`,`ffffb2fecc5cfd8d3ce31a1c`,`ffffb2fecc5cfd8d3cf03b20bd0026`,`ffffb2fed976feb24cfd8d3cf03b20bd0026`,`ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026`,`ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026`,`ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026`].map(nQ),t$=pQ(e$),n$=[,,,`deebf79ecae13182bd`,`eff3ffbdd7e76baed62171b5`,`eff3ffbdd7e76baed63182bd08519c`,`eff3ffc6dbef9ecae16baed63182bd08519c`,`eff3ffc6dbef9ecae16baed64292c62171b5084594`,`f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594`,`f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b`].map(nQ),r$=pQ(n$),i$=[,,,`e5f5e0a1d99b31a354`,`edf8e9bae4b374c476238b45`,`edf8e9bae4b374c47631a354006d2c`,`edf8e9c7e9c0a1d99b74c47631a354006d2c`,`edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32`,`f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32`,`f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b`].map(nQ),a$=pQ(i$),o$=[,,,`f0f0f0bdbdbd636363`,`f7f7f7cccccc969696525252`,`f7f7f7cccccc969696636363252525`,`f7f7f7d9d9d9bdbdbd969696636363252525`,`f7f7f7d9d9d9bdbdbd969696737373525252252525`,`fffffff0f0f0d9d9d9bdbdbd969696737373525252252525`,`fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000`].map(nQ),s$=pQ(o$),c$=[,,,`efedf5bcbddc756bb1`,`f2f0f7cbc9e29e9ac86a51a3`,`f2f0f7cbc9e29e9ac8756bb154278f`,`f2f0f7dadaebbcbddc9e9ac8756bb154278f`,`f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486`,`fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486`,`fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d`].map(nQ),l$=pQ(c$),u$=[,,,`fee0d2fc9272de2d26`,`fee5d9fcae91fb6a4acb181d`,`fee5d9fcae91fb6a4ade2d26a50f15`,`fee5d9fcbba1fc9272fb6a4ade2d26a50f15`,`fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d`,`fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d`,`fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d`].map(nQ),d$=pQ(u$),f$=[,,,`fee6cefdae6be6550d`,`feeddefdbe85fd8d3cd94701`,`feeddefdbe85fd8d3ce6550da63603`,`feeddefdd0a2fdae6bfd8d3ce6550da63603`,`feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04`,`fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04`,`fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704`].map(nQ),p$=pQ(f$);function m$(e){return e=Math.max(0,Math.min(1,e)),`rgb(`+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+`, `+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+`, `+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+`)`}var h$=bK(RG(300,.5,0),RG(-240,.5,1)),g$=bK(RG(-100,.75,.35),RG(80,1.5,.8)),_$=bK(RG(260,.75,.35),RG(80,1.5,.8)),v$=RG();function y$(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return v$.h=360*e-100,v$.s=1.5-1.5*t,v$.l=.8-.9*t,v$+``}var b$=fG(),x$=Math.PI/3,S$=Math.PI*2/3;function C$(e){var t;return e=(.5-e)*Math.PI,b$.r=255*(t=Math.sin(e))*t,b$.g=255*(t=Math.sin(e+x$))*t,b$.b=255*(t=Math.sin(e+S$))*t,b$+``}function w$(e){return e=Math.max(0,Math.min(1,e)),`rgb(`+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+`, `+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+`, `+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+`)`}function T$(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var E$=T$(nQ(`44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725`)),D$=T$(nQ(`00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf`)),O$=T$(nQ(`00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4`)),k$=T$(nQ(`0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921`)),A$=n(((e,t)=>{function n(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}t.exports=n}));function j$(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function M$(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function N$(e){return e=M$(Math.abs(e)),e?e[1]:NaN}function P$(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function F$(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var I$=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function L$(e){if(!(t=I$.exec(e)))throw Error(`invalid format: `+e);var t;return new R$({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}L$.prototype=R$.prototype;function R$(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}R$.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function z$(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0)}return r>0?e.slice(0,r)+e.slice(i+1):e}var B$;function V$(e,t){var n=M$(e,t);if(!n)return e+``;var r=n[0],i=n[1],a=i-(B$=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+M$(e,Math.max(0,t+a-1))[0]}function H$(e,t){var n=M$(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var U$={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+``},d:j$,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return H$(e*100,t)},r:H$,s:V$,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function W$(e){return e}var G$=Array.prototype.map,K$=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function q$(e){var t=e.grouping===void 0||e.thousands===void 0?W$:P$(G$.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?W$:F$(G$.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`-`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e){e=L$(e);var l=e.fill,u=e.align,d=e.sign,f=e.symbol,p=e.zero,m=e.width,h=e.comma,g=e.precision,_=e.trim,v=e.type;v===`n`?(h=!0,v=`g`):U$[v]||(g===void 0&&(g=12),_=!0,v=`g`),(p||l===`0`&&u===`=`)&&(p=!0,l=`0`,u=`=`);var y=f===`$`?n:f===`#`&&/[boxX]/.test(v)?`0`+v.toLowerCase():``,b=f===`$`?r:/[%p]/.test(v)?o:``,x=U$[v],S=/[defgprs%]/.test(v);g=g===void 0?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g));function C(e){var n=y,r=b,o,f,C;if(v===`c`)r=x(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:x(Math.abs(e),g),_&&(e=z$(e)),w&&+e==0&&d!==`+`&&(w=!1),n=(w?d===`(`?d:s:d===`-`||d===`(`?``:d)+n,r=(v===`s`?K$[8+B$/3]:``)+r+(w&&d===`(`?`)`:``),S){for(o=-1,f=e.length;++o<f;)if(C=e.charCodeAt(o),48>C||C>57){r=(C===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}h&&!p&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<m?Array(m-T+1).join(l):``;switch(h&&p&&(e=t(E+e,E.length?m-r.length:1/0),E=``),u){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r}return a(e)}return C.toString=function(){return e+``},C}function u(e,t){var n=l((e=L$(e),e.type=`f`,e)),r=Math.max(-8,Math.min(8,Math.floor(N$(t)/3)))*3,i=10**-r,a=K$[8+r/3];return function(e){return n(i*e)+a}}return{format:l,formatPrefix:u}}var J$,Y$;X$({decimal:`.`,thousands:`,`,grouping:[3],currency:[`$`,``],minus:`-`});function X$(e){return J$=q$(e),Y$=J$.format,J$.formatPrefix,J$}var Z$=new Date,Q$=new Date;function $$(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),n==null?1:Math.floor(n)),e},i.range=function(n,r,a){var o=[],s;if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=function(n){return $$(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}})},n&&(i.count=function(t,r){return Z$.setTime(+t),Q$.setTime(+r),e(Z$),e(Q$),Math.floor(n(Z$,Q$))},i.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?function(t){return r(t)%e===0}:function(t){return i.count(0,t)%e===0}):i}),i}var e1=6e4,t1=e1*60*24,n1=t1*7,r1=$$(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*e1)/t1,e=>e.getDate()-1);r1.range;function i1(e){return $$(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t*7)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*e1)/n1})}var a1=i1(0),o1=i1(1),s1=i1(2),c1=i1(3),l1=i1(4),u1=i1(5),d1=i1(6);a1.range,o1.range,s1.range,c1.range,l1.range,u1.range,d1.range;var f1=$$(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});f1.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:$$(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})},f1.range;var p1=$$(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/t1},function(e){return e.getUTCDate()-1});p1.range;function m1(e){return $$(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t*7)},function(e,t){return(t-e)/n1})}var h1=m1(0),g1=m1(1),_1=m1(2),v1=m1(3),y1=m1(4),b1=m1(5),x1=m1(6);h1.range,g1.range,_1.range,v1.range,y1.range,b1.range,x1.range;var S1=$$(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});S1.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:$$(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})},S1.range;function C1(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function w1(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function T1(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function E1(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=N1(i),u=P1(i),d=N1(a),f=P1(a),p=N1(o),m=P1(o),h=N1(s),g=P1(s),_=N1(c),v=P1(c),y={a:N,A:P,b:F,B:I,c:null,d:t0,e:t0,f:o0,g:_0,G:y0,H:n0,I:r0,j:i0,L:a0,m:s0,M:c0,p:L,q:R,Q:V0,s:H0,S:l0,u:u0,U:d0,V:p0,w:m0,W:h0,x:null,X:null,y:g0,Y:v0,Z:b0,"%":B0},b={a:z,A:B,b:ee,B:te,c:null,d:x0,e:x0,f:E0,g:I0,G:R0,H:S0,I:C0,j:w0,L:T0,m:D0,M:O0,p:ne,q:re,Q:V0,s:H0,S:k0,u:A0,U:j0,V:N0,w:P0,W:mte,x:null,X:null,y:F0,Y:L0,Z:z0,"%":B0},x={a:E,A:D,b:O,B:k,c:A,d:G1,e:G1,f:Z1,g:V1,G:B1,H:q1,I:q1,j:K1,L:X1,m:W1,M:J1,p:T,q:U1,Q:$1,s:e0,S:Y1,u:I1,U:L1,V:R1,w:F1,W:z1,x:j,X:M,y:V1,Y:B1,Z:H1,"%":Q1};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=D1[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=T1(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=w1(T1(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?g1.ceil(a):g1(a),a=p1.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=C1(T1(r.y,0,1)),o=a.getDay(),a=o>4||o===0?o1.ceil(a):o1(a),a=r1.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else(`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?w1(T1(r.y,0,1)).getUTCDay():C1(T1(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,w1(r)):C1(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in D1?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,n,r){return w(e,t,n,r)}function j(e,t,r){return w(e,n,t,r)}function M(e,t,n){return w(e,r,t,n)}function N(e){return o[e.getDay()]}function P(e){return a[e.getDay()]}function F(e){return c[e.getMonth()]}function I(e){return s[e.getMonth()]}function L(e){return i[+(e.getHours()>=12)]}function R(e){return 1+~~(e.getMonth()/3)}function z(e){return o[e.getUTCDay()]}function B(e){return a[e.getUTCDay()]}function ee(e){return c[e.getUTCMonth()]}function te(e){return s[e.getUTCMonth()]}function ne(e){return i[+(e.getUTCHours()>=12)]}function re(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var D1={"-":``,_:` `,0:`0`},O1=/^\s*\d+/,k1=/^%/,A1=/[\\^$*+?|[\]().{}]/g;function j1(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function M1(e){return e.replace(A1,`\\$&`)}function N1(e){return RegExp(`^(?:`+e.map(M1).join(`|`)+`)`,`i`)}function P1(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function F1(e,t,n){var r=O1.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function I1(e,t,n){var r=O1.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function L1(e,t,n){var r=O1.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function R1(e,t,n){var r=O1.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function z1(e,t,n){var r=O1.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function B1(e,t,n){var r=O1.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function V1(e,t,n){var r=O1.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function H1(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function U1(e,t,n){var r=O1.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function W1(e,t,n){var r=O1.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function G1(e,t,n){var r=O1.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function K1(e,t,n){var r=O1.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function q1(e,t,n){var r=O1.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function J1(e,t,n){var r=O1.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Y1(e,t,n){var r=O1.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function X1(e,t,n){var r=O1.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Z1(e,t,n){var r=O1.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Q1(e,t,n){var r=k1.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function $1(e,t,n){var r=O1.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function e0(e,t,n){var r=O1.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function t0(e,t){return j1(e.getDate(),t,2)}function n0(e,t){return j1(e.getHours(),t,2)}function r0(e,t){return j1(e.getHours()%12||12,t,2)}function i0(e,t){return j1(1+r1.count(f1(e),e),t,3)}function a0(e,t){return j1(e.getMilliseconds(),t,3)}function o0(e,t){return a0(e,t)+`000`}function s0(e,t){return j1(e.getMonth()+1,t,2)}function c0(e,t){return j1(e.getMinutes(),t,2)}function l0(e,t){return j1(e.getSeconds(),t,2)}function u0(e){var t=e.getDay();return t===0?7:t}function d0(e,t){return j1(a1.count(f1(e)-1,e),t,2)}function f0(e){var t=e.getDay();return t>=4||t===0?l1(e):l1.ceil(e)}function p0(e,t){return e=f0(e),j1(l1.count(f1(e),e)+(f1(e).getDay()===4),t,2)}function m0(e){return e.getDay()}function h0(e,t){return j1(o1.count(f1(e)-1,e),t,2)}function g0(e,t){return j1(e.getFullYear()%100,t,2)}function _0(e,t){return e=f0(e),j1(e.getFullYear()%100,t,2)}function v0(e,t){return j1(e.getFullYear()%1e4,t,4)}function y0(e,t){var n=e.getDay();return e=n>=4||n===0?l1(e):l1.ceil(e),j1(e.getFullYear()%1e4,t,4)}function b0(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+j1(t/60|0,`0`,2)+j1(t%60,`0`,2)}function x0(e,t){return j1(e.getUTCDate(),t,2)}function S0(e,t){return j1(e.getUTCHours(),t,2)}function C0(e,t){return j1(e.getUTCHours()%12||12,t,2)}function w0(e,t){return j1(1+p1.count(S1(e),e),t,3)}function T0(e,t){return j1(e.getUTCMilliseconds(),t,3)}function E0(e,t){return T0(e,t)+`000`}function D0(e,t){return j1(e.getUTCMonth()+1,t,2)}function O0(e,t){return j1(e.getUTCMinutes(),t,2)}function k0(e,t){return j1(e.getUTCSeconds(),t,2)}function A0(e){var t=e.getUTCDay();return t===0?7:t}function j0(e,t){return j1(h1.count(S1(e)-1,e),t,2)}function M0(e){var t=e.getUTCDay();return t>=4||t===0?y1(e):y1.ceil(e)}function N0(e,t){return e=M0(e),j1(y1.count(S1(e),e)+(S1(e).getUTCDay()===4),t,2)}function P0(e){return e.getUTCDay()}function mte(e,t){return j1(g1.count(S1(e)-1,e),t,2)}function F0(e,t){return j1(e.getUTCFullYear()%100,t,2)}function I0(e,t){return e=M0(e),j1(e.getUTCFullYear()%100,t,2)}function L0(e,t){return j1(e.getUTCFullYear()%1e4,t,4)}function R0(e,t){var n=e.getUTCDay();return e=n>=4||n===0?y1(e):y1.ceil(e),j1(e.getUTCFullYear()%1e4,t,4)}function z0(){return`+0000`}function B0(){return`%`}function V0(e){return+e}function H0(e){return Math.floor(e/1e3)}var U0,W0,G0,K0;q0({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]});function q0(e){return U0=E1(e),W0=U0.format,G0=U0.parse,U0.utcFormat,K0=U0.utcParse,U0}var J0=n(((e,t)=>{var n=BU(),r=HU(),i=RU();function a(e,t,a){for(var o=-1,s=t.length,c={};++o<s;){var l=t[o],u=n(e,l);a(u,l)&&r(c,i(l,e),u)}return c}t.exports=a})),Y0=n(((e,t)=>{function n(e,t){return e!=null&&t in Object(e)}t.exports=n})),X0=n(((e,t)=>{var n=RU(),r=YH(),i=XH(),a=dU(),o=ZH(),s=zU();function c(e,t,c){t=n(t,e);for(var l=-1,u=t.length,d=!1;++l<u;){var f=s(t[l]);if(!(d=e!=null&&c(e,f)))break;e=e[f]}return d||++l!=u?d:(u=e==null?0:e.length,!!u&&o(u)&&a(f,u)&&(i(e)||r(e)))}t.exports=c})),Z0=n(((e,t)=>{var n=Y0(),r=X0();function i(e,t){return e!=null&&r(e,t,n)}t.exports=i})),Q0=n(((e,t)=>{var n=J0(),r=Z0();function i(e,t){return n(e,t,function(t,n){return r(e,n)})}t.exports=i})),$0=n(((e,t)=>{function n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}t.exports=n})),e2=n(((e,t)=>{var n=nH(),r=YH(),i=XH(),a=n?n.isConcatSpreadable:void 0;function o(e){return i(e)||r(e)||!!(a&&e&&e[a])}t.exports=o})),t2=n(((e,t)=>{var n=$0(),r=e2();function i(e,t,a,o,s){var c=-1,l=e.length;for(a||=r,s||=[];++c<l;){var u=e[c];t>0&&a(u)?t>1?i(u,t-1,a,o,s):n(s,u):o||(s[s.length]=u)}return s}t.exports=i})),n2=n(((e,t)=>{var n=t2();function r(e){return e!=null&&e.length?n(e,1):[]}t.exports=r})),r2=n(((e,t)=>{var n=n2(),r=xU(),i=TU();function a(e){return i(r(e,void 0,n),e+``)}t.exports=a})),i2=n(((e,t)=>{var n=Q0();t.exports=r2()(function(e,t){return e==null?{}:n(e,t)})})),a2=n(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=n})),o2=n(((e,t)=>{var n=CK(),r=a2(),i=AK(),a=1,o=2;function s(e,t,s,c,l,u){var d=s&a,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var m=u.get(e),h=u.get(t);if(m&&h)return m==t&&h==e;var g=-1,_=!0,v=s&o?new n:void 0;for(u.set(e,t),u.set(t,e);++g<f;){var y=e[g],b=t[g];if(c)var x=d?c(b,y,g,t,e,u):c(y,b,g,e,t,u);if(x!==void 0){if(x)continue;_=!1;break}if(v){if(!r(t,function(e,t){if(!i(v,t)&&(y===e||l(y,e,s,c,u)))return v.push(t)})){_=!1;break}}else if(!(y===b||l(y,b,s,c,u))){_=!1;break}}return u.delete(e),u.delete(t),_}t.exports=s})),s2=n(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}t.exports=n})),c2=n(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=n})),l2=n(((e,t)=>{var n=nH(),r=RH(),i=UV(),a=o2(),o=s2(),s=c2(),c=1,l=2,u=`[object Boolean]`,d=`[object Date]`,f=`[object Error]`,p=`[object Map]`,m=`[object Number]`,h=`[object RegExp]`,g=`[object Set]`,_=`[object String]`,v=`[object Symbol]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=n?n.prototype:void 0,S=x?x.valueOf:void 0;function C(e,t,n,x,C,w,T){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!w(new r(e),new r(t)));case u:case d:case m:return i(+e,+t);case f:return e.name==t.name&&e.message==t.message;case h:case _:return e==t+``;case p:var E=o;case g:var D=x&c;if(E||=s,e.size!=t.size&&!D)return!1;var O=T.get(e);if(O)return O==t;x|=l,T.set(e,t);var k=a(E(e),E(t),x,C,w,T);return T.delete(e),k;case v:if(S)return S.call(e)==S.call(t)}return!1}t.exports=C})),u2=n(((e,t)=>{var n=$0(),r=XH();function i(e,t,i){var a=t(e);return r(e)?a:n(a,i(e))}t.exports=i})),d2=n(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}t.exports=n})),f2=n(((e,t)=>{function n(){return[]}t.exports=n})),p2=n(((e,t)=>{var n=d2(),r=f2(),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;t.exports=a?function(e){return e==null?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:r})),m2=n(((e,t)=>{t.exports=UH()(Object.keys,Object)})),h2=n(((e,t)=>{var n=GH(),r=m2(),i=Object.prototype.hasOwnProperty;function a(e){if(!n(e))return r(e);var t=[];for(var a in Object(e))i.call(e,a)&&a!=`constructor`&&t.push(a);return t}t.exports=a})),g2=n(((e,t)=>{var n=fU(),r=h2(),i=QH();function a(e){return i(e)?n(e):r(e)}t.exports=a})),_2=n(((e,t)=>{var n=u2(),r=p2(),i=g2();function a(e){return n(e,i,r)}t.exports=a})),v2=n(((e,t)=>{var n=_2(),r=1,i=Object.prototype.hasOwnProperty;function a(e,t,a,o,s,c){var l=a&r,u=n(e),d=u.length;if(d!=n(t).length&&!l)return!1;for(var f=d;f--;){var p=u[f];if(!(l?p in t:i.call(t,p)))return!1}var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var g=!0;c.set(e,t),c.set(t,e);for(var _=l;++f<d;){p=u[f];var v=e[p],y=t[p];if(o)var b=l?o(y,v,p,t,e,c):o(v,y,p,e,t,c);if(!(b===void 0?v===y||s(v,y,a,o,c):b)){g=!1;break}_||=p==`constructor`}if(g&&!_){var x=e.constructor,S=t.constructor;x!=S&&`constructor`in e&&`constructor`in t&&!(typeof x==`function`&&x instanceof x&&typeof S==`function`&&S instanceof S)&&(g=!1)}return c.delete(e),c.delete(t),g}t.exports=a})),y2=n(((e,t)=>{t.exports=pH()(tH(),`DataView`)})),b2=n(((e,t)=>{t.exports=pH()(tH(),`Promise`)})),x2=n(((e,t)=>{t.exports=pH()(tH(),`Set`)})),S2=n(((e,t)=>{t.exports=pH()(tH(),`WeakMap`)})),C2=n(((e,t)=>{var n=y2(),r=mH(),i=b2(),a=x2(),o=S2(),s=aH(),c=uH(),l=`[object Map]`,u=`[object Object]`,d=`[object Promise]`,f=`[object Set]`,p=`[object WeakMap]`,m=`[object DataView]`,h=c(n),g=c(r),_=c(i),v=c(a),y=c(o),b=s;(n&&b(new n(new ArrayBuffer(1)))!=m||r&&b(new r)!=l||i&&b(i.resolve())!=d||a&&b(new a)!=f||o&&b(new o)!=p)&&(b=function(e){var t=s(e),n=t==u?e.constructor:void 0,r=n?c(n):``;if(r)switch(r){case h:return m;case g:return l;case _:return d;case v:return f;case y:return p}return t}),t.exports=b})),w2=n(((e,t)=>{var n=jH(),r=o2(),i=l2(),a=v2(),o=C2(),s=XH(),c=tU(),l=oU(),u=1,d=`[object Arguments]`,f=`[object Array]`,p=`[object Object]`,m=Object.prototype.hasOwnProperty;function h(e,t,h,g,_,v){var y=s(e),b=s(t),x=y?f:o(e),S=b?f:o(t);x=x==d?p:x,S=S==d?p:S;var C=x==p,w=S==p,T=x==S;if(T&&c(e)){if(!c(t))return!1;y=!0,C=!1}if(T&&!C)return v||=new n,y||l(e)?r(e,t,h,g,_,v):i(e,t,x,h,g,_,v);if(!(h&u)){var E=C&&m.call(e,`__wrapped__`),D=w&&m.call(t,`__wrapped__`);if(E||D){var O=E?e.value():e,k=D?t.value():t;return v||=new n,_(O,k,h,g,v)}}return T?(v||=new n,a(e,t,h,g,_,v)):!1}t.exports=h})),T2=n(((e,t)=>{var n=w2(),r=qH();function i(e,t,a,o,s){return e===t?!0:e==null||t==null||!r(e)&&!r(t)?e!==e&&t!==t:n(e,t,a,o,i,s)}t.exports=i})),E2=n(((e,t)=>{var n=T2();function r(e,t){return n(e,t)}t.exports=r})),D2=t(MK(),1),O2=t(A$(),1);XH();var k2=t(sH(),1),A2=t(nU(),1),j2=t(i2(),1),M2=t(E2(),1),N2=(0,_.createContext)(),P2=function(e){var t=e.children,n=e.animate,r=n===void 0||n,i=e.config,a=i===void 0?`default`:i,o=(0,_.useMemo)((function(){return{animate:r,config:(0,OW.default)(a)?aB[a]:a}}),[r,a]);return(0,G.jsx)(N2.Provider,{value:o,children:t})},F2=function(){return(0,_.useContext)(N2)},I2=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?(0,_.cloneElement)(r,{},t):t},L2={position:`relative`},R2=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=r===void 0||r,a=e.isInteractive,o=a===void 0||a,s=e.animate,c=e.motionConfig,l=(0,_.useRef)(null);return(0,G.jsx)(oW,{theme:n,children:(0,G.jsx)(P2,{animate:s,config:c,children:(0,G.jsx)(DW,{container:l,children:(0,G.jsxs)(I2,{condition:i,wrapper:(0,G.jsx)(`div`,{style:L2,ref:l}),children:[t,o&&(0,G.jsx)(EW,{})]})})})})},z2=function(e,t){return e.width===t.width&&e.height===t.height},B2=function(e){var t=e.children,n=e.width,r=e.height,i=e.onResize,a=e.debounceResize,o=VW({width:n,height:r},a,{equalityFn:z2})[0];return(0,_.useEffect)((function(){i?.(o)}),[o,i]),(0,G.jsx)(G.Fragment,{children:t(o)})},V2=function(e){var t=e.children,n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=a===void 0?0:a;return(0,G.jsx)(RW,{defaultWidth:n,defaultHeight:r,children:function(e){var n=e.width,r=e.height;return(0,G.jsx)(B2,{width:n,height:r,onResize:i,debounceResize:o,children:t})}})};function H2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function U2(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if(typeof e==`string`)return H2(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H2(e,t):void 0}}(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
95
95
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W2(){return W2=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},W2.apply(null,arguments)}function G2(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 K2=[`id`,`colors`],q2={linearGradient:function(e){var t=e.id,n=e.colors,r=G2(e,K2);return(0,G.jsx)(`linearGradient`,W2({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map((function(e){var t=e.offset,n=e.color,r=e.opacity;return(0,G.jsx)(`stop`,{offset:t+`%`,stopColor:n,stopOpacity:r===void 0?1:r},t)}))}))}},J2={color:`#000000`,background:`#ffffff`,size:4,padding:4,stagger:!1},Y2=(0,_.memo)((function(e){var t=e.id,n=e.background,r=n===void 0?J2.background:n,i=e.color,a=i===void 0?J2.color:i,o=e.size,s=o===void 0?J2.size:o,c=e.padding,l=c===void 0?J2.padding:c,u=e.stagger,d=u===void 0?J2.stagger:u,f=s+l,p=s/2,m=l/2;return!0===d&&(f=2*s+2*l),(0,G.jsxs)(`pattern`,{id:t,width:f,height:f,patternUnits:`userSpaceOnUse`,children:[(0,G.jsx)(`rect`,{width:f,height:f,fill:r}),(0,G.jsx)(`circle`,{cx:m+p,cy:m+p,r:p,fill:a}),d&&(0,G.jsx)(`circle`,{cx:1.5*l+s+p,cy:1.5*l+s+p,r:p,fill:a})]})})),X2=function(e){return e*Math.PI/180},Z2=function(e){return 180*e/Math.PI},Q2=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},$2=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},e4=function(e){var t=e%360;return t<0&&(t+=360),t},t4={svg:{align:{left:`start`,center:`middle`,right:`end`,start:`start`,middle:`middle`,end:`end`},baseline:{top:`text-before-edge`,center:`central`,bottom:`alphabetic`}},canvas:{align:{left:`left`,center:`center`,right:`right`,start:`left`,middle:`center`,end:`right`},baseline:{top:`top`,center:`middle`,bottom:`bottom`}}},n4={spacing:5,rotation:0,background:`#000000`,color:`#ffffff`,lineWidth:2},r4=(0,_.memo)((function(e){var t=e.id,n=e.spacing,r=n===void 0?n4.spacing:n,i=e.rotation,a=i===void 0?n4.rotation:i,o=e.background,s=o===void 0?n4.background:o,c=e.color,l=c===void 0?n4.color:c,u=e.lineWidth,d=u===void 0?n4.lineWidth:u,f=Math.round(a)%360,p=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var m,h=p,g=p;return f===0?m=`
|
|
96
96
|
M 0 0 L `+h+` 0
|
|
97
97
|
M 0 `+g+` L `+h+` `+g+`
|
|
@@ -106,7 +106,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
106
106
|
M `+-h+` `+g+` L `+h+` `+-g+`
|
|
107
107
|
M `+-h+` `+2*g+` L `+2*h+` `+-g+`
|
|
108
108
|
M 0 `+2*g+` L `+2*h+` 0
|
|
109
|
-
`),(0,G.jsxs)(`pattern`,{id:t,width:h,height:g,patternUnits:`userSpaceOnUse`,children:[(0,G.jsx)(`rect`,{width:h,height:g,fill:s,stroke:`rgba(255, 0, 0, 0.1)`,strokeWidth:0}),(0,G.jsx)(`path`,{d:m,strokeWidth:d,stroke:l,strokeLinecap:`square`})]})})),i4={color:`#000000`,background:`#ffffff`,size:4,padding:4,stagger:!1},a4={patternDots:Y2,patternLines:r4,patternSquares:(0,_.memo)((function(e){var t=e.id,n=e.color,r=n===void 0?i4.color:n,i=e.background,a=i===void 0?i4.background:i,o=e.size,s=o===void 0?i4.size:o,c=e.padding,l=c===void 0?i4.padding:c,u=e.stagger,d=u===void 0?i4.stagger:u,f=s+l,p=l/2;return!0===d&&(f=2*s+2*l),(0,G.jsxs)(`pattern`,{id:t,width:f,height:f,patternUnits:`userSpaceOnUse`,children:[(0,G.jsx)(`rect`,{width:f,height:f,fill:a}),(0,G.jsx)(`rect`,{x:p,y:p,width:s,height:s,fill:r}),d&&(0,G.jsx)(`rect`,{x:1.5*l+s,y:1.5*l+s,width:s,height:s,fill:r})]})}))},o4=[`type`],s4=W2({},q2,a4),c4=(0,_.memo)((function(e){var t=e.defs;return!t||t.length<1?null:(0,G.jsx)(`defs`,{"aria-hidden":!0,children:t.map((function(e){var t=e.type,n=G2(e,o4);return s4[t]?(0,_.createElement)(s4[t],W2({key:n.id},n)):null}))})})),l4=(0,_.forwardRef)((function(e,t){var n=e.width,r=e.height,i=e.margin,a=e.defs,o=e.children,s=e.role,c=e.ariaLabel,l=e.ariaLabelledBy,u=e.ariaDescribedBy,d=e.isFocusable,f=sW();return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:n,height:r,role:s,"aria-label":c,"aria-labelledby":l,"aria-describedby":u,focusable:d,tabIndex:d?0:void 0,ref:t,children:[(0,G.jsx)(c4,{defs:a}),(0,G.jsx)(`rect`,{width:n,height:r,fill:f.background}),(0,G.jsx)(`g`,{transform:`translate(`+i.left+`,`+i.top+`)`,children:o})]})})),u4=(0,_.memo)((function(e){var t=e.size,n=e.color,r=e.borderWidth,i=e.borderColor;return(0,G.jsx)(`circle`,{r:t/2,fill:n,stroke:i,strokeWidth:r,style:{pointerEvents:`none`}})}));(0,_.memo)((function(e){var t=e.x,n=e.y,r=e.symbol,i=r===void 0?u4:r,a=e.size,o=e.datum,s=e.color,c=e.borderWidth,l=e.borderColor,u=e.label,d=e.labelTextAnchor,f=d===void 0?`middle`:d,p=e.labelYOffset,m=p===void 0?-12:p,h=e.ariaLabel,g=e.ariaLabelledBy,v=e.ariaDescribedBy,y=e.ariaHidden,b=e.ariaDisabled,x=e.isFocusable,S=x!==void 0&&x,C=e.tabIndex,w=C===void 0?0:C,T=e.onFocus,E=e.onBlur,D=e.testId,O=sW(),k=F2(),A=k.animate,j=k.config,M=fV({transform:`translate(`+t+`, `+n+`)`,config:j,immediate:!A}),N=(0,_.useCallback)((function(e){T?.(o,e)}),[T,o]),P=(0,_.useCallback)((function(e){E?.(o,e)}),[E,o]);return(0,G.jsxs)(VV.g,{transform:M.transform,style:{pointerEvents:`none`},focusable:S,tabIndex:S?w:void 0,"aria-label":h,"aria-labelledby":g,"aria-describedby":v,"aria-disabled":b,"aria-hidden":y,onFocus:S&&T?N:void 0,onBlur:S&&E?P:void 0,"data-testid":D,children:[(0,_.createElement)(i,{size:a,color:s,datum:o,borderWidth:c,borderColor:l}),u&&(0,G.jsx)(`text`,{textAnchor:f,y:m,style:XU(O.dots.text),children:u})]})}));var d4=(0,_.memo)((function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,a=e.value,o=e.lineStyle,s=e.textStyle,c=e.legend,l=e.legendNode,u=e.legendPosition,d=u===void 0?`top-right`:u,f=e.legendOffsetX,p=f===void 0?14:f,m=e.legendOffsetY,h=m===void 0?14:m,g=e.legendOrientation,_=g===void 0?`horizontal`:g,v=sW(),y=0,b=0,x=0,S=0;if(r===`y`?(x=i(a),b=t):(y=i(a),S=n),c&&!l){var C=function(e){var t=e.axis,n=e.width,r=e.height,i=e.position,a=e.offsetX,o=e.offsetY,s=e.orientation,c=0,l=0,u=s===`vertical`?-90:0,d=`start`;if(t===`x`)switch(i){case`top-left`:c=-a,l=o,d=`end`;break;case`top`:l=-o,d=s===`horizontal`?`middle`:`start`;break;case`top-right`:c=a,l=o,d=s===`horizontal`?`start`:`end`;break;case`right`:c=a,l=r/2,d=s===`horizontal`?`start`:`middle`;break;case`bottom-right`:c=a,l=r-o,d=`start`;break;case`bottom`:l=r+o,d=s===`horizontal`?`middle`:`end`;break;case`bottom-left`:l=r-o,c=-a,d=s===`horizontal`?`end`:`start`;break;case`left`:c=-a,l=r/2,d=s===`horizontal`?`end`:`middle`}else switch(i){case`top-left`:c=a,l=-o,d=`start`;break;case`top`:c=n/2,l=-o,d=s===`horizontal`?`middle`:`start`;break;case`top-right`:c=n-a,l=-o,d=s===`horizontal`?`end`:`start`;break;case`right`:c=n+a,d=s===`horizontal`?`start`:`middle`;break;case`bottom-right`:c=n-a,l=o,d=`end`;break;case`bottom`:c=n/2,l=o,d=s===`horizontal`?`middle`:`end`;break;case`bottom-left`:c=a,l=o,d=s===`horizontal`?`start`:`end`;break;case`left`:c=-a,d=s===`horizontal`?`end`:`middle`}return{x:c,y:l,rotation:u,textAnchor:d}}({axis:r,width:t,height:n,position:d,offsetX:p,offsetY:h,orientation:_});l=(0,G.jsx)(`text`,{transform:`translate(`+C.x+`, `+C.y+`) rotate(`+C.rotation+`)`,textAnchor:C.textAnchor,dominantBaseline:`central`,style:s,children:c})}return(0,G.jsxs)(`g`,{transform:`translate(`+y+`, `+x+`)`,children:[(0,G.jsx)(`line`,{x1:0,x2:b,y1:0,y2:S,stroke:v.markers.lineColor,strokeWidth:v.markers.lineStrokeWidth,style:o}),l]})})),f4=(0,_.memo)((function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,a=e.yScale;return t&&t.length!==0?t.map((function(e,t){return(0,G.jsx)(d4,W2({},e,{width:n,height:r,scale:e.axis===`y`?a:i}),t)})):null})),p4=function(e){var t=F2(),n=t.animate,r=t.config,i=function(e){var t=(0,_.useRef)();return(0,_.useEffect)((function(){t.current=e}),[e]),t.current}(e),a=(0,_.useMemo)((function(){return sK(i,e)}),[i,e]),o=fV({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return xV(o,a)};(0,_.createContext)(void 0);var m4=Object.keys({basis:bq,basisClosed:Sq,basisOpen:wq,bundle:Eq,cardinal:kq,cardinalClosed:jq,cardinalOpen:Nq,catmullRom:Iq,catmullRomClosed:Rq,catmullRomOpen:Bq,linear:uq,linearClosed:Hq,monotoneX:Xq,monotoneY:Zq,natural:eJ,step:nJ,stepAfter:iJ,stepBefore:rJ});m4.filter((function(e){return e.endsWith(`Closed`)})),(0,D2.default)(m4,`bundle`,`basisClosed`,`basisOpen`,`cardinalClosed`,`cardinalOpen`,`catmullRomClosed`,`catmullRomOpen`,`linearClosed`),(0,D2.default)(m4,`bundle`,`basisClosed`,`basisOpen`,`cardinalClosed`,`cardinalOpen`,`catmullRomClosed`,`catmullRomOpen`,`linearClosed`);var h4={nivo:[`#d76445`,`#f47560`,`#e8c1a0`,`#97e3d5`,`#61cdbb`,`#00b0a7`],BrBG:(0,O2.default)(mQ),PRGn:(0,O2.default)(gQ),PiYG:(0,O2.default)(vQ),PuOr:(0,O2.default)(bQ),RdBu:(0,O2.default)(SQ),RdGy:(0,O2.default)(wQ),RdYlBu:(0,O2.default)(EQ),RdYlGn:(0,O2.default)(OQ),spectral:(0,O2.default)(AQ),blues:(0,O2.default)(n$),greens:(0,O2.default)(i$),greys:(0,O2.default)(o$),oranges:(0,O2.default)(f$),purples:(0,O2.default)(c$),reds:(0,O2.default)(u$),BuGn:(0,O2.default)(MQ),BuPu:(0,O2.default)(PQ),GnBu:(0,O2.default)(IQ),OrRd:(0,O2.default)(RQ),PuBuGn:(0,O2.default)(BQ),PuBu:(0,O2.default)(HQ),PuRd:(0,O2.default)(WQ),RdPu:(0,O2.default)(KQ),YlGnBu:(0,O2.default)(JQ),YlGn:(0,O2.default)(XQ),YlOrBr:(0,O2.default)(QQ),YlOrRd:(0,O2.default)(e$)};Object.keys(h4),(0,O2.default)(mQ),(0,O2.default)(gQ),(0,O2.default)(vQ),(0,O2.default)(bQ),(0,O2.default)(SQ),(0,O2.default)(wQ),(0,O2.default)(EQ),(0,O2.default)(OQ),(0,O2.default)(AQ),(0,O2.default)(n$),(0,O2.default)(i$),(0,O2.default)(o$),(0,O2.default)(f$),(0,O2.default)(c$),(0,O2.default)(u$),(0,O2.default)(MQ),(0,O2.default)(PQ),(0,O2.default)(IQ),(0,O2.default)(RQ),(0,O2.default)(BQ),(0,O2.default)(HQ),(0,O2.default)(WQ),(0,O2.default)(KQ),(0,O2.default)(JQ),(0,O2.default)(XQ),(0,O2.default)(QQ),(0,O2.default)(e$),NJ(dQ);var g4={top:0,right:0,bottom:0,left:0},_4=function(e,t,n){return n===void 0&&(n={}),(0,_.useMemo)((function(){var r=W2({},g4,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}}),[e,t,n])},v4=function(){var e=(0,_.useRef)(null),t=(0,_.useState)({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=(0,_.useState)((function(){return typeof ResizeObserver>`u`?null:new ResizeObserver((function(e){var t=e[0];return r(t.contentRect)}))}))[0];return(0,_.useEffect)((function(){return e.current&&i!==null&&i.observe(e.current),function(){i!==null&&i.disconnect()}}),[i]),[e,n]},y4=function(e){return typeof e==`function`?e:typeof e==`string`?e.indexOf(`time:`)===0?W0(e.slice(`5`)):Y$(e):function(e){return``+e}},b4=function(e){return(0,_.useMemo)((function(){return y4(e)}),[e])},x4=function(e){return(0,k2.default)(e)?e:function(t){return(0,GU.default)(t,e)}},S4=function(e){return(0,_.useMemo)((function(){return x4(e)}),[e])},C4=function(e,t,n,r){return Math.sqrt((n-e)**2+(r-t)**2)},w4=function(e,t,n,r){var i=Math.atan2(r-t,n-e)-Math.PI/2;return i>0?i:2*Math.PI+i},T4=function(e,t,n,r,i,a){return e<=i&&i<=e+n&&t<=a&&a<=t+r},E4=function(e,t){var n,r=`touches`in t?t.touches[0]:t,i=r.clientX,a=r.clientY,o=e.getBoundingClientRect(),s=(n=e.getBBox===void 0?{width:e.offsetWidth||0,height:e.offsetHeight||0}:e.getBBox()).width===o.width?1:n.width/o.width;return[(i-o.left)*s,(a-o.top)*s]},D4=Object.keys(q2),O4=Object.keys(a4),k4=function(e,t,n){if(e===`*`)return!0;if((0,k2.default)(e))return e(t);if((0,A2.default)(e)){var r=n?(0,GU.default)(t,n):t;return(0,M2.default)((0,j2.default)(r,Object.keys(e)),e)}return!1},A4=function(e,t,n,r){var i=r===void 0?{}:r,a=i.dataKey,o=i.colorKey,s=o===void 0?`color`:o,c=i.targetKey,l=c===void 0?`fill`:c,u=[],d={};return e.length&&t.length&&(u=[].concat(e),t.forEach((function(t){for(var r,i=function(){var n=r.value,i=n.id,o=n.match;if(k4(o,t,a)){var c=e.find((function(e){return e.id===i}));if(c){if(O4.includes(c.type)){if(c.background===`inherit`||c.color===`inherit`){var f=(0,GU.default)(t,s),p=c.background,m=c.color,h=i;c.background===`inherit`&&(h=h+`.bg.`+f,p=f),c.color===`inherit`&&(h=h+`.fg.`+f,m=f),(0,KU.default)(t,l,`url(#`+h+`)`),d[h]||(u.push(W2({},c,{id:h,background:p,color:m})),d[h]=1)}else(0,KU.default)(t,l,`url(#`+i+`)`)}else if(D4.includes(c.type)){if(c.colors.map((function(e){return e.color})).includes(`inherit`)){var g=(0,GU.default)(t,s),_=i,v=W2({},c,{colors:c.colors.map((function(e,t){return e.color===`inherit`?(_=_+`.`+t+`.`+g,W2({},e,{color:e.color===`inherit`?g:e.color})):e}))});v.id=_,(0,KU.default)(t,l,`url(#`+_+`)`),d[_]||(u.push(v),d[_]=1)}else(0,KU.default)(t,l,`url(#`+i+`)`)}}return 1}},o=U2(n);!(r=o()).done&&!i(););}))),u};function j4(){var e=[...arguments];return function(t){for(var n=0,r=e;n<r.length;n++){var i=r[n];typeof i==`function`?i(t):i!=null&&(i.current=t)}}}var M4=function(e,t){e.font=(t.fontWeight?t.fontWeight+` `:``)+t.fontSize+`px `+t.fontFamily},N4=function(e,t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=0),t.outlineWidth>0&&(e.strokeStyle=t.outlineColor,e.lineWidth=2*t.outlineWidth,e.lineJoin=`round`,e.strokeText(n,r,i)),e.fillStyle=t.fill,e.fillText(n,r,i)};function P4(){return P4=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},P4.apply(null,arguments)}function F4(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 I4=[`style`,`children`],L4=[`outlineWidth`,`outlineColor`,`outlineOpacity`],R4=function(e){var t=e.style,n=e.children,r=F4(e,I4),i=t.outlineWidth,a=t.outlineColor,o=t.outlineOpacity,s=F4(t,L4);return(0,G.jsxs)(G.Fragment,{children:[i>0&&(0,G.jsx)(VV.text,P4({},r,{style:P4({},s,{strokeWidth:2*i,stroke:a,strokeOpacity:o,strokeLinejoin:`round`}),children:n})),(0,G.jsx)(VV.text,P4({},r,{style:s,children:n}))]})},z4=n(((e,t)=>{function n(){}t.exports=n})),B4=n(((e,t)=>{var n=x2(),r=z4(),i=c2();t.exports=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:r})),V4=n(((e,t)=>{var n=CK(),r=OK(),i=kK(),a=AK(),o=B4(),s=c2(),c=200;function l(e,t,l){var u=-1,d=r,f=e.length,p=!0,m=[],h=m;if(l)p=!1,d=i;else if(f>=c){var g=t?null:o(e);if(g)return s(g);p=!1,d=a,h=new n}else h=t?[]:m;outer:for(;++u<f;){var _=e[u],v=t?t(_):_;if(_=l||_!==0?_:0,p&&v===v){for(var y=h.length;y--;)if(h[y]===v)continue outer;t&&h.push(v),m.push(_)}else d(h,v,l)||(h!==m&&h.push(v),m.push(_))}return m}t.exports=l})),H4=n(((e,t)=>{var n=V4();function r(e){return e&&e.length?n(e):[]}t.exports=r})),U4=n(((e,t)=>{var n=jH(),r=T2(),i=1,a=2;function o(e,t,o,s){var c=o.length,l=c,u=!s;if(e==null)return!l;for(e=Object(e);c--;){var d=o[c];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++c<l;){d=o[c];var f=d[0],p=e[f],m=d[1];if(u&&d[2]){if(p===void 0&&!(f in e))return!1}else{var h=new n;if(s)var g=s(p,m,f,e,t,h);if(!(g===void 0?r(m,p,i|a,s,h):g))return!1}}return!0}t.exports=o})),W4=n(((e,t)=>{var n=oH();function r(e){return e===e&&!n(e)}t.exports=r})),G4=n(((e,t)=>{var n=W4(),r=g2();function i(e){for(var t=r(e),i=t.length;i--;){var a=t[i],o=e[a];t[i]=[a,o,n(o)]}return t}t.exports=i})),K4=n(((e,t)=>{function n(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}t.exports=n})),q4=n(((e,t)=>{var n=U4(),r=G4(),i=K4();function a(e){var t=r(e);return t.length==1&&t[0][2]?i(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}t.exports=a})),J4=n(((e,t)=>{var n=T2(),r=VU(),i=Z0(),a=jU(),o=W4(),s=K4(),c=zU(),l=1,u=2;function d(e,t){return a(e)&&o(t)?s(c(e),t):function(a){var o=r(a,e);return o===void 0&&o===t?i(a,e):n(t,o,l|u)}}t.exports=d})),Y4=n(((e,t)=>{function n(e){return function(t){return t?.[e]}}t.exports=n})),X4=n(((e,t)=>{var n=BU();function r(e){return function(t){return n(t,e)}}t.exports=r})),Z4=n(((e,t)=>{var n=Y4(),r=X4(),i=jU(),a=zU();function o(e){return i(e)?n(a(e)):r(e)}t.exports=o})),Q4=n(((e,t)=>{var n=q4(),r=J4(),i=yU(),a=XH(),o=Z4();function s(e){return typeof e==`function`?e:e==null?i:typeof e==`object`?a(e)?r(e[0],e[1]):n(e):o(e)}t.exports=s})),$4=n(((e,t)=>{var n=Q4(),r=V4();function i(e,t){return e&&e.length?r(e,n(t,2)):[]}t.exports=i})),e3=n(((e,t)=>{var n=IH(),r=g2();function i(e,t){return e&&n(e,t,r)}t.exports=i})),t3=n(((e,t)=>{var n=QH();function r(e,t){return function(r,i){if(r==null)return r;if(!n(r))return e(r,i);for(var a=r.length,o=t?a:-1,s=Object(r);(t?o--:++o<a)&&i(s[o],o,s)!==!1;);return r}}t.exports=r})),n3=n(((e,t)=>{var n=e3();t.exports=t3()(n)})),r3=n(((e,t)=>{var n=n3(),r=QH();function i(e,t){var i=-1,a=r(e)?Array(e.length):[];return n(e,function(e,n,r){a[++i]=t(e,n,r)}),a}t.exports=i})),i3=n(((e,t)=>{function n(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}t.exports=n})),a3=n(((e,t)=>{var n=AU();function r(e,t){if(e!==t){var r=e!==void 0,i=e===null,a=e===e,o=n(e),s=t!==void 0,c=t===null,l=t===t,u=n(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}t.exports=r})),o3=n(((e,t)=>{var n=a3();function r(e,t,r){for(var i=-1,a=e.criteria,o=t.criteria,s=a.length,c=r.length;++i<s;){var l=n(a[i],o[i]);if(l)return i>=c?l:l*(r[i]==`desc`?-1:1)}return e.index-t.index}t.exports=r})),s3=n(((e,t)=>{var n=FU(),r=BU(),i=Q4(),a=r3(),o=i3(),s=iU(),c=o3(),l=yU(),u=XH();function d(e,t,d){t=t.length?n(t,function(e){return u(e)?function(t){return r(t,e.length===1?e[0]:e)}:e}):[l];var f=-1;return t=n(t,s(i)),o(a(e,function(e,r,i){return{criteria:n(t,function(t){return t(e)}),index:++f,value:e}}),function(e,t){return c(e,t,d)})}t.exports=d})),c3=n(((e,t)=>{var n=t2(),r=s3(),i=EU(),a=DU();t.exports=i(function(e,t){if(e==null)return[];var i=t.length;return i>1&&a(e,t[0],t[1])?t=[]:i>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),r(e,n(t,1),[])})})),l3=n(((e,t)=>{var n=aH(),r=qH(),i=`[object Date]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),u3=n(((e,t)=>{var n=l3(),r=iU(),i=aU(),a=i&&i.isDate;t.exports=a?r(a):n})),d3=new Date,f3=new Date;function p3(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),n==null?1:Math.floor(n)),e},i.range=function(n,r,a){var o=[],s;if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=function(n){return p3(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}})},n&&(i.count=function(t,r){return d3.setTime(+t),f3.setTime(+r),e(d3),e(f3),Math.floor(n(d3,f3))},i.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?function(t){return r(t)%e===0}:function(t){return i.count(0,t)%e===0}):i}),i}var m3=p3(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});m3.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?p3(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):m3},m3.range;var h3=1e3,g3=6e4,_3=36e5,v3=6048e5,y3=p3(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*h3)},function(e,t){return(t-e)/h3},function(e){return e.getUTCSeconds()});y3.range;var b3=p3(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*h3)},function(e,t){e.setTime(+e+t*g3)},function(e,t){return(t-e)/g3},function(e){return e.getMinutes()});b3.range;var x3=p3(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*h3-e.getMinutes()*g3)},function(e,t){e.setTime(+e+t*_3)},function(e,t){return(t-e)/_3},function(e){return e.getHours()});x3.range;function S3(e){return p3(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t*7)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*g3)/v3})}var C3=S3(0),w3=S3(1),T3=S3(2),E3=S3(3),D3=S3(4),O3=S3(5),k3=S3(6);C3.range,w3.range,T3.range,E3.range,D3.range,O3.range,k3.range;var A3=p3(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});A3.range;var j3=p3(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});j3.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:p3(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})},j3.range;var M3=p3(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*g3)},function(e,t){return(t-e)/g3},function(e){return e.getUTCMinutes()});M3.range;var N3=p3(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*_3)},function(e,t){return(t-e)/_3},function(e){return e.getUTCHours()});N3.range;function P3(e){return p3(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t*7)},function(e,t){return(t-e)/v3})}var F3=P3(0),I3=P3(1),L3=P3(2),R3=P3(3),z3=P3(4),B3=P3(5),V3=P3(6);F3.range,I3.range,L3.range,R3.range,z3.range,B3.range,V3.range;var H3=p3(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});H3.range;var U3=p3(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});U3.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:p3(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})},U3.range,H4();var W3=e($4(),1);c3(),u3();var G3=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],K3={millisecond:[],second:G3.slice(0,1),minute:G3.slice(0,2),hour:G3.slice(0,3),day:G3.slice(0,4),month:G3.slice(0,5),year:G3.slice(0,6)},q3=function(e){return function(t){return K3[e].forEach((function(e){e(t)})),t}},J3=function(e){var t=e.format,n=t===void 0?`native`:t,r=e.precision,i=r===void 0?`millisecond`:r,a=e.useUTC,o=a===void 0||a,s=q3(i);return function(e){return e===void 0?e:n===`native`||e instanceof Date?s(e):s((o?K0(n):G0(n))(e))}},Y3={type:`linear`,min:0,max:`auto`,stacked:!1,reverse:!1,clamp:!1,nice:!0,round:!1},X3=function(e,t,n,r){var i,a,o=e.min,s=o===void 0?Y3.min:o,c=e.max,l=c===void 0?Y3.max:c,u=e.stacked,d=u===void 0?Y3.stacked:u,f=e.reverse,p=f===void 0?Y3.reverse:f,m=e.clamp,h=m===void 0?Y3.clamp:m,g=e.nice,_=g===void 0?Y3.nice:g,v=e.round,y=v===void 0?Y3.round:v;i=s===`auto`?!0===d?t.minStacked??0:t.min:s,a=l===`auto`?!0===d?t.maxStacked??0:t.max:l;var b=bY().range(r===`x`?[0,n]:[n,0]).interpolate(y?lK:tK).domain(p?[a,i]:[i,a]).clamp(h);return!0===_?b.nice():typeof _==`number`&&b.nice(_),Z3(b,d)},Z3=function(e,t){t===void 0&&(t=!1);var n=e;return n.type=`linear`,n.stacked=t,n},Q3=function(e,t,n){var r=IJ().range([0,n]).domain(t.all);return r.type=`point`,r},$3={type:`band`,round:!1},e6=function(e,t,n,r){var i=e.round,a=i===void 0?$3.round:i;return t6(PJ().range(r===`x`?[0,n]:[n,0]).domain(t.all).round(a))},t6=function(e){var t=e;return t.type=`band`,t},n6={type:`time`,format:`native`,precision:`millisecond`,min:`auto`,max:`auto`,useUTC:!0,nice:!1},r6=function(e,t,n){var r,i,a=e.format,o=a===void 0?n6.format:a,s=e.precision,c=s===void 0?n6.precision:s,l=e.min,u=l===void 0?n6.min:l,d=e.max,f=d===void 0?n6.max:d,p=e.useUTC,m=p===void 0?n6.useUTC:p,h=e.nice,g=h===void 0?n6.nice:h,_=J3({format:o,precision:c,useUTC:m});r=u===`auto`?_(t.min):o===`native`?u:_(u),i=f===`auto`?_(t.max):o===`native`?f:_(f);var v=m?tQ():eQ();v.range([0,n]),r&&i&&v.domain([r,i]),!0===g?v.nice():typeof g!=`object`&&typeof g!=`number`||v.nice(g);var y=v;return y.type=`time`,y.useUTC=m,y},i6={type:`log`,base:10,min:`auto`,max:`auto`,round:!1,reverse:!1,nice:!0},a6=function(e,t,n,r){var i,a=e.base,o=a===void 0?i6.base:a,s=e.min,c=s===void 0?i6.min:s,l=e.max,u=l===void 0?i6.max:l,d=e.round,f=d===void 0?i6.round:d,p=e.reverse,m=p===void 0?i6.reverse:p,h=e.nice,g=h===void 0?i6.nice:h;if(t.all.some((function(e){return e===0})))throw Error(`a log scale domain must not include or cross zero`);var _,v,y=!1;if(t.all.filter((function(e){return e!=null})).forEach((function(e){y||(i===void 0?i=Math.sign(e):Math.sign(e)!==i&&(y=!0))})),y)throw Error(`a log scale domain must be strictly-positive or strictly-negative`);_=c===`auto`?t.min:c,v=u===`auto`?t.max:u;var b=jY().base(o),x=r===`x`?[0,n]:[n,0];!0===f?b.rangeRound(x):b.range(x),!0===m?b.domain([v,_]):b.domain([_,v]),!0===g?b.nice():typeof g==`number`&&b.nice(g);var S=b;return S.type=`log`,S},o6={type:`symlog`,constant:1,min:`auto`,max:`auto`,round:!1,reverse:!1,nice:!0},s6=function(e,t,n,r){var i,a,o=e.constant,s=o===void 0?o6.constant:o,c=e.min,l=c===void 0?o6.min:c,u=e.max,d=u===void 0?o6.max:u,f=e.round,p=f===void 0?o6.round:f,m=e.reverse,h=m===void 0?o6.reverse:m,g=e.nice,_=g===void 0?o6.nice:g;i=l===`auto`?t.min:l,a=d===`auto`?t.max:d;var v=FY().constant(s),y=r===`x`?[0,n]:[n,0];!0===p?v.rangeRound(y):v.range(y),!0===h?v.domain([a,i]):v.domain([i,a]),!0===_?v.nice():typeof _==`number`&&v.nice(_);var b=v;return b.type=`symlog`,b};function c6(e,t,n,r){switch(e.type){case`linear`:return X3(e,t,n,r);case`point`:return Q3(0,t,n);case`band`:return e6(e,t,n,r);case`time`:return r6(e,t,n);case`log`:return a6(e,t,n,r);case`symlog`:return s6(e,t,n,r);default:throw Error(`invalid scale spec`)}}var l6=function(e){var t=e.bandwidth();if(t===0)return e;var n=t/2;return e.round()&&(n=Math.round(n)),function(t){return(e(t)??0)+n}},u6={millisecond:[m3,m3],second:[y3,y3],minute:[b3,M3],hour:[x3,N3],day:[p3((function(e){return e.setHours(0,0,0,0)}),(function(e,t){return e.setDate(e.getDate()+t)}),(function(e,t){return(t.getTime()-e.getTime())/864e5}),(function(e){return Math.floor(e.getTime()/864e5)})),p3((function(e){return e.setUTCHours(0,0,0,0)}),(function(e,t){return e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t.getTime()-e.getTime())/864e5}),(function(e){return Math.floor(e.getTime()/864e5)}))],week:[C3,F3],sunday:[C3,F3],monday:[w3,I3],tuesday:[T3,L3],wednesday:[E3,R3],thursday:[D3,z3],friday:[O3,B3],saturday:[k3,V3],month:[A3,H3],year:[j3,U3]},d6=Object.keys(u6),f6=RegExp(`^every\\s*(\\d+)?\\s*(`+d6.join(`|`)+`)s?$`,`i`),p6=function(e,t){if(Array.isArray(t))return t;if(typeof t==`string`&&`useUTC`in e){var n=t.match(f6);if(n){var r=n[1],i=n[2],a=u6[i][+!!e.useUTC];if(i===`day`){var o=e.domain(),s=o[0],c=o[1],l=new Date(c);return l.setDate(l.getDate()+1),a.every(Number(r??1))?.range(s,l)??[]}if(r===void 0)return e.ticks(a);var u=a.every(Number(r));if(u)return e.ticks(u)}throw Error(`Invalid tickValues: `+t)}if(`ticks`in e){if(t===void 0)return e.ticks();if(typeof(d=t)==`number`&&isFinite(d)&&Math.floor(d)===d)return e.ticks(t)}var d;return e.domain()};function m6(){return m6=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},m6.apply(null,arguments)}var h6=function(e){var t,n=e.axis,r=e.scale,i=e.ticksPosition,a=e.tickValues,o=e.tickSize,s=e.tickPadding,c=e.tickRotation,l=e.truncateTickAt,u=e.engine,d=u===void 0?`svg`:u,f=p6(r,a),p=t4[d],m=`bandwidth`in r?l6(r):r,h={lineX:0,lineY:0},g={textX:0,textY:0},_=typeof document==`object`&&document.dir===`rtl`,v=p.align.center,y=p.baseline.center;return n===`x`?(t=function(e){return{x:m(e)??0,y:0}},h.lineY=o*(i===`after`?1:-1),g.textY=(o+s)*(i===`after`?1:-1),y=i===`after`?p.baseline.top:p.baseline.bottom,c===0?v=p.align.center:i===`after`&&c<0||i===`before`&&c>0?(v=p.align[_?`left`:`right`],y=p.baseline.center):(i===`after`&&c>0||i===`before`&&c<0)&&(v=p.align[_?`right`:`left`],y=p.baseline.center)):(t=function(e){return{x:0,y:m(e)??0}},h.lineX=o*(i===`after`?1:-1),g.textX=(o+s)*(i===`after`?1:-1),v=i===`after`?p.align.left:p.align.right),{ticks:f.map((function(e){var n=typeof e==`string`?function(e){var t=String(e).length;return l&&l>0&&t>l?``+String(e).slice(0,l).concat(`...`):``+e}(e):e;return m6({key:e instanceof Date?``+e.valueOf():``+e,value:n},t(e),h,g)})),textAlign:v,textBaseline:y}},g6=function(e,t){if(e===void 0||typeof e==`function`)return e;if(t.type===`time`){var n=W0(e);return function(e){return n(e instanceof Date?e:new Date(e))}}return Y$(e)},_6=function(e){var t,n=e.width,r=e.height,i=e.scale,a=e.axis,o=e.values,s=(t=o,(Array.isArray(t)?o:void 0)||p6(i,o)),c=`bandwidth`in i?l6(i):i;return a===`x`?s.map((function(e){return{key:e instanceof Date?``+e.valueOf():``+e,x1:c(e)??0,x2:c(e)??0,y1:0,y2:r}})):s.map((function(e){return{key:e instanceof Date?``+e.valueOf():``+e,x1:0,x2:n,y1:c(e)??0,y2:c(e)??0}}))},v6=(0,_.memo)((function(e){var t=e.value,n=e.format,r=e.lineX,i=e.lineY,a=e.onClick,o=e.textBaseline,s=e.textAnchor,c=e.theme,l=e.animatedProps,u=n?.(t)??t,d=(0,_.useMemo)((function(){var e={opacity:l.opacity};return a?{style:m6({},e,{cursor:`pointer`}),onClick:function(e){return a(e,u)}}:{style:e}}),[l.opacity,a,u]);return(0,G.jsxs)(VV.g,m6({transform:l.transform},d,{children:[(0,G.jsx)(`line`,{x1:0,x2:r,y1:0,y2:i,style:c.line}),(0,G.jsx)(R4,{dominantBaseline:o,textAnchor:s,transform:l.textTransform,style:c.text,children:``+u})]}))})),y6={tickSize:5,tickPadding:5,tickRotation:0,legendPosition:`middle`,legendOffset:0},b6=(0,_.memo)(function(e){var t=e.axis,n=e.scale,r=e.x,i=r===void 0?0:r,a=e.y,o=a===void 0?0:a,s=e.length,c=e.ticksPosition,l=e.tickValues,u=e.tickSize,d=u===void 0?y6.tickSize:u,f=e.tickPadding,p=f===void 0?y6.tickPadding:f,m=e.tickRotation,h=m===void 0?y6.tickRotation:m,g=e.format,v=e.renderTick,y=v===void 0?v6:v,b=e.truncateTickAt,x=e.legend,S=e.legendPosition,C=S===void 0?y6.legendPosition:S,w=e.legendOffset,T=w===void 0?y6.legendOffset:w,E=e.style,D=e.onClick,O=e.ariaHidden,k=rW(sW().axis,E),A=(0,_.useMemo)((function(){return g6(g,n)}),[g,n]),j=h6({axis:t,scale:n,ticksPosition:c,tickValues:l,tickSize:d,tickPadding:p,tickRotation:h,truncateTickAt:b}),M=j.ticks,N=j.textAlign,P=j.textBaseline,F=null;if(x!==void 0){var I,L=0,R=0,z=0;t===`y`?(z=-90,L=T,C===`start`?(I=`start`,R=s):C===`middle`?(I=`middle`,R=s/2):C===`end`&&(I=`end`)):(R=T,C===`start`?I=`start`:C===`middle`?(I=`middle`,L=s/2):C===`end`&&(I=`end`,L=s)),F=(0,G.jsx)(G.Fragment,{children:(0,G.jsx)(R4,{transform:`translate(`+L+`, `+R+`) rotate(`+z+`)`,textAnchor:I,style:m6({},k.legend.text,{dominantBaseline:`central`}),children:x})})}var B=F2(),ee=B.animate,te=B.config,ne=fV({transform:`translate(`+i+`,`+o+`)`,lineX2:t===`x`?s:0,lineY2:t===`x`?0:s,config:te,immediate:!ee}),re=(0,_.useCallback)((function(e){return{opacity:1,transform:`translate(`+e.x+`,`+e.y+`)`,textTransform:`translate(`+e.textX+`,`+e.textY+`) rotate(`+h+`)`}}),[h]),ie=mV(M,{keys:function(e){return e.key},initial:re,from:(0,_.useCallback)((function(e){return{opacity:0,transform:`translate(`+e.x+`,`+e.y+`)`,textTransform:`translate(`+e.textX+`,`+e.textY+`) rotate(`+h+`)`}}),[h]),enter:re,update:re,leave:{opacity:0},config:te,immediate:!ee});return(0,G.jsxs)(VV.g,{transform:ne.transform,"aria-hidden":O,children:[ie((function(e,t,n,r){return _.createElement(y,m6({tickIndex:r,format:A,rotate:h,textBaseline:P,textAnchor:N,truncateTickAt:b,animatedProps:e,theme:k.ticks},t,D?{onClick:D}:{}))})),(0,G.jsx)(VV.line,{style:k.domain.line,x1:0,x2:ne.lineX2,y1:0,y2:ne.lineY2}),F]})}),x6=[`top`,`right`,`bottom`,`left`],S6=(0,_.memo)((function(e){var t=e.xScale,n=e.yScale,r=e.width,i=e.height,a={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return(0,G.jsx)(G.Fragment,{children:x6.map((function(e){var o=a[e];if(!o)return null;var s=e===`top`||e===`bottom`;return(0,G.jsx)(b6,m6({},o,{axis:s?`x`:`y`,x:e===`right`?r:0,y:e===`bottom`?i:0,scale:s?t:n,length:s?r:i,ticksPosition:e===`top`||e===`left`?`before`:`after`,truncateTickAt:o.truncateTickAt}),e)}))})})),C6=(0,_.memo)((function(e){var t=e.animatedProps,n=sW();return(0,G.jsx)(VV.line,m6({},t,n.grid.line))})),w6=(0,_.memo)((function(e){var t=e.lines,n=F2(),r=n.animate,i=n.config,a=mV(t,{keys:function(e){return e.key},initial:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},from:function(e){return{opacity:0,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},enter:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},update:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},leave:{opacity:0},config:i,immediate:!r});return(0,G.jsx)(`g`,{children:a((function(e,t){return(0,_.createElement)(C6,m6({},t,{key:t.key,animatedProps:e}))}))})})),T6=(0,_.memo)((function(e){var t=e.width,n=e.height,r=e.xScale,i=e.yScale,a=e.xValues,o=e.yValues,s=(0,_.useMemo)((function(){return!!r&&_6({width:t,height:n,scale:r,axis:`x`,values:a})}),[r,a,t,n]),c=(0,_.useMemo)((function(){return!!i&&_6({width:t,height:n,scale:i,axis:`y`,values:o})}),[n,t,i,o]);return(0,G.jsxs)(G.Fragment,{children:[s&&(0,G.jsx)(w6,{lines:s}),c&&(0,G.jsx)(w6,{lines:c})]})})),E6=function(e,t){var n=t.axis,r=t.scale,i=t.x,a=i===void 0?0:i,o=t.y,s=o===void 0?0:o,c=t.length,l=t.ticksPosition,u=t.tickValues,d=t.tickSize,f=d===void 0?y6.tickSize:d,p=t.tickPadding,m=p===void 0?y6.tickPadding:p,h=t.tickRotation,g=h===void 0?y6.tickRotation:h,_=t.format,v=t.legend,y=t.legendPosition,b=y===void 0?y6.legendPosition:y,x=t.legendOffset,S=x===void 0?y6.legendOffset:x,C=t.theme,w=t.style,T=h6({axis:n,scale:r,ticksPosition:l,tickValues:u,tickSize:f,tickPadding:m,tickRotation:g,engine:`canvas`}),E=T.ticks,D=T.textAlign,O=T.textBaseline;e.save(),e.translate(a,s);var k=eW(C.axis,w);e.textAlign=D,e.textBaseline=O,M4(e,k.ticks.text);var A=k.domain.line.strokeWidth??0;typeof A!=`string`&&A>0&&(e.lineWidth=A,e.lineCap=`square`,k.domain.line.stroke&&(e.strokeStyle=k.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(n===`x`?c:0,n===`x`?0:c),e.stroke());var j=typeof _==`function`?_:function(e){return``+e},M=k.ticks.line.strokeWidth??0,N=typeof M!=`string`&&M>0;if(E.forEach((function(t){N&&(e.lineWidth=M,e.lineCap=`square`,k.ticks.line.stroke&&(e.strokeStyle=k.ticks.line.stroke),e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(t.x+t.lineX,t.y+t.lineY),e.stroke());var n=j(t.value);e.save(),e.translate(t.x+t.textX,t.y+t.textY),e.rotate(X2(g)),N4(e,k.ticks.text,``+n),e.fillText(``+n,0,0),e.restore()})),v!==void 0){var P=0,F=0,I=0,L=`center`;n===`y`?(I=-90,P=S,b===`start`?(L=`start`,F=c):b===`middle`?(L=`center`,F=c/2):b===`end`&&(L=`end`)):(F=S,b===`start`?L=`start`:b===`middle`?(L=`center`,P=c/2):b===`end`&&(L=`end`,P=c)),e.translate(P,F),e.rotate(X2(I)),M4(e,k.legend.text),k.legend.text.fill&&(e.fillStyle=k.legend.text.fill),e.textAlign=L,e.textBaseline=`middle`,N4(e,k.legend.text,v)}e.restore()},D6=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,a=t.height,o=t.top,s=t.right,c=t.bottom,l=t.left,u=t.theme,d={top:o,right:s,bottom:c,left:l};x6.forEach((function(t){var o=d[t];if(!o)return null;var s=t===`top`||t===`bottom`,c=t===`top`||t===`left`?`before`:`after`,l=s?n:r,f=g6(o.format,l);E6(e,m6({},o,{axis:s?`x`:`y`,x:t===`right`?i:0,y:t===`bottom`?a:0,scale:l,format:f,length:s?i:a,ticksPosition:c,theme:u}))}))},O6=function(e,t){var n=t.width,r=t.height,i=t.scale,a=t.axis,o=t.values;_6({width:n,height:r,scale:i,axis:a,values:o}).forEach((function(t){e.beginPath(),e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.stroke()}))},k6=n(((e,t)=>{var n=n3();function r(e,t){var r=[];return n(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}t.exports=r})),A6=n(((e,t)=>{var n=d2(),r=k6(),i=Q4(),a=XH();function o(e,t){return(a(e)?n:r)(e,i(t,3))}t.exports=o})),j6=n(((e,t)=>{var n=aH(),r=qH(),i=`[object Number]`;function a(e){return typeof e==`number`||r(e)&&n(e)==i}t.exports=a})),M6=n(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}t.exports=n})),N6=n(((e,t)=>{var n=lU(),r=g2();function i(e,t){return e&&n(t,r(t),e)}t.exports=i})),P6=n(((e,t)=>{var n=lU(),r=hU();function i(e,t){return e&&n(t,r(t),e)}t.exports=i})),F6=n(((e,t)=>{var n=lU(),r=p2();function i(e,t){return n(e,r(e),t)}t.exports=i})),I6=n(((e,t)=>{var n=$0(),r=WH(),i=p2(),a=f2();t.exports=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,i(e)),e=r(e);return t}:a})),L6=n(((e,t)=>{var n=lU(),r=I6();function i(e,t){return n(e,r(e),t)}t.exports=i})),R6=n(((e,t)=>{var n=u2(),r=I6(),i=hU();function a(e){return n(e,i,r)}t.exports=a})),z6=n(((e,t)=>{var n=Object.prototype.hasOwnProperty;function r(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]==`string`&&n.call(e,`index`)&&(r.index=e.index,r.input=e.input),r}t.exports=r})),B6=n(((e,t)=>{var n=zH();function r(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}t.exports=r})),V6=n(((e,t)=>{var n=/\w*$/;function r(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}t.exports=r})),H6=n(((e,t)=>{var n=nH(),r=n?n.prototype:void 0,i=r?r.valueOf:void 0;function a(e){return i?Object(i.call(e)):{}}t.exports=a})),U6=n(((e,t)=>{var n=zH(),r=B6(),i=V6(),a=H6(),o=BH(),s=`[object Boolean]`,c=`[object Date]`,l=`[object Map]`,u=`[object Number]`,d=`[object RegExp]`,f=`[object Set]`,p=`[object String]`,m=`[object Symbol]`,h=`[object ArrayBuffer]`,g=`[object DataView]`,_=`[object Float32Array]`,v=`[object Float64Array]`,y=`[object Int8Array]`,b=`[object Int16Array]`,x=`[object Int32Array]`,S=`[object Uint8Array]`,C=`[object Uint8ClampedArray]`,w=`[object Uint16Array]`,T=`[object Uint32Array]`;function E(e,t,E){var D=e.constructor;switch(t){case h:return n(e);case s:case c:return new D(+e);case g:return r(e,E);case _:case v:case y:case b:case x:case S:case C:case w:case T:return o(e,E);case l:return new D;case u:case p:return new D(e);case d:return i(e);case f:return new D;case m:return a(e)}}t.exports=E})),W6=n(((e,t)=>{var n=C2(),r=qH(),i=`[object Map]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),G6=n(((e,t)=>{var n=W6(),r=iU(),i=aU(),a=i&&i.isMap;t.exports=a?r(a):n})),K6=n(((e,t)=>{var n=C2(),r=qH(),i=`[object Set]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),q6=n(((e,t)=>{var n=K6(),r=iU(),i=aU(),a=i&&i.isSet;t.exports=a?r(a):n})),J6=n(((e,t)=>{var n=jH(),r=M6(),i=cU(),a=N6(),o=P6(),s=LH(),c=VH(),l=F6(),u=L6(),d=_2(),f=R6(),p=C2(),m=z6(),h=U6(),g=KH(),_=XH(),v=tU(),y=G6(),b=oH(),x=q6(),S=g2(),C=hU(),w=1,T=2,E=4,D=`[object Arguments]`,O=`[object Array]`,k=`[object Boolean]`,A=`[object Date]`,j=`[object Error]`,M=`[object Function]`,N=`[object GeneratorFunction]`,P=`[object Map]`,F=`[object Number]`,I=`[object Object]`,L=`[object RegExp]`,R=`[object Set]`,z=`[object String]`,B=`[object Symbol]`,ee=`[object WeakMap]`,te=`[object ArrayBuffer]`,ne=`[object DataView]`,re=`[object Float32Array]`,ie=`[object Float64Array]`,ae=`[object Int8Array]`,oe=`[object Int16Array]`,se=`[object Int32Array]`,V=`[object Uint8Array]`,H=`[object Uint8ClampedArray]`,ce=`[object Uint16Array]`,le=`[object Uint32Array]`,U={};U[D]=U[O]=U[te]=U[ne]=U[k]=U[A]=U[re]=U[ie]=U[ae]=U[oe]=U[se]=U[P]=U[F]=U[I]=U[L]=U[R]=U[z]=U[B]=U[V]=U[H]=U[ce]=U[le]=!0,U[j]=U[M]=U[ee]=!1;function W(e,t,O,k,A,j){var P,F=t&w,L=t&T,R=t&E;if(O&&(P=A?O(e,k,A,j):O(e)),P!==void 0)return P;if(!b(e))return e;var z=_(e);if(z){if(P=m(e),!F)return c(e,P)}else{var B=p(e),ee=B==M||B==N;if(v(e))return s(e,F);if(B==I||B==D||ee&&!A){if(P=L||ee?{}:g(e),!F)return L?u(e,o(P,e)):l(e,a(P,e))}else{if(!U[B])return A?e:{};P=h(e,B,F)}}j||=new n;var te=j.get(e);if(te)return te;j.set(e,P),x(e)?e.forEach(function(n){P.add(W(n,t,O,n,e,j))}):y(e)&&e.forEach(function(n,r){P.set(r,W(n,t,O,r,e,j))});var ne=z?void 0:(R?L?f:d:L?C:S)(e);return r(ne||e,function(n,r){ne&&(r=n,n=e[r]),i(P,r,W(n,t,O,r,e,j))}),P}t.exports=W})),Y6=n(((e,t)=>{function n(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}t.exports=n})),X6=n(((e,t)=>{var n=BU(),r=Y6();function i(e,t){return t.length<2?e:n(e,r(t,0,-1))}t.exports=i})),Z6=n(((e,t)=>{var n=RU(),r=A$(),i=X6(),a=zU(),o=Object.prototype.hasOwnProperty;function s(e,t){t=n(t,e);var s=-1,c=t.length;if(!c)return!0;for(;++s<c;){var l=a(t[s]);if(l===`__proto__`&&!o.call(e,`__proto__`)||(l===`constructor`||l===`prototype`)&&s<c-1)return!1}var u=i(e,t);return u==null||delete u[a(r(t))]}t.exports=s})),Q6=n(((e,t)=>{var n=nU();function r(e){return n(e)?void 0:e}t.exports=r})),$6=n(((e,t)=>{var n=FU(),r=J6(),i=Z6(),a=RU(),o=lU(),s=Q6(),c=r2(),l=R6(),u=1,d=2,f=4;t.exports=c(function(e,t){var c={};if(e==null)return c;var p=!1;t=n(t,function(t){return t=a(t,e),p||=t.length>1,t}),o(e,l(e),c),p&&(c=r(c,u|d|f,s));for(var m=t.length;m--;)i(c,t[m]);return c})})),e8=e(A6(),1),t8=e(j6(),1),n8=e($6(),1);function r8(){return r8=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},r8.apply(null,arguments)}var i8={dotSize:4,noteWidth:120,noteTextOffset:8,animate:!0},a8=function(e){var t=typeof e;return(0,_.isValidElement)(e)||t===`string`||t===`function`||t===`object`},o8=function(e){var t=typeof e;return t===`string`||t===`function`},s8=function(e){return e.type===`circle`},c8=function(e){return e.type===`dot`},l8=function(e){return e.type===`rect`},u8=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return n.reduce((function(e,n){var a=n.offset||0;return[].concat(e,(0,e8.default)(t,n.match).map((function(e){var t=r(e),o=i(e);return(s8(n)||l8(n))&&(o.size+=2*a,o.width+=2*a,o.height+=2*a),r8({},(0,n8.default)(n,[`match`,`offset`]),t,o,{size:n.size||o.size,datum:e})})))}),[])},d8=function(e,t,n,r){return e4(Z2(Math.atan2(r-t,n-e)))},f8=function(e){var t,n,r=e.x,i=e.y,a=e.noteX,o=e.noteY,s=e.noteWidth,c=s===void 0?i8.noteWidth:s,l=e.noteTextOffset,u=l===void 0?i8.noteTextOffset:l;if((0,t8.default)(a))t=r+a;else{if(a.abs===void 0)throw Error(`noteX should be either a number or an object containing an 'abs' property`);t=a.abs}if((0,t8.default)(o))n=i+o;else{if(o.abs===void 0)throw Error(`noteY should be either a number or an object containing an 'abs' property`);n=o.abs}var d=r,f=i,p=d8(r,i,t,n);if(s8(e)){var m=$2(X2(p),e.size/2);d+=m.x,f+=m.y}if(l8(e)){var h=Math.round((p+90)/45)%8;h===0&&(f-=e.height/2),h===1&&(d+=e.width/2,f-=e.height/2),h===2&&(d+=e.width/2),h===3&&(d+=e.width/2,f+=e.height/2),h===4&&(f+=e.height/2),h===5&&(d-=e.width/2,f+=e.height/2),h===6&&(d-=e.width/2),h===7&&(d-=e.width/2,f-=e.height/2)}var g=t,_=t;return(p+90)%360>180?(g-=c,_-=c):_+=c,{points:[[d,f],[t,n],[_,n]],text:[g,n-u],angle:p+90}},p8=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return(0,_.useMemo)((function(){return u8({data:t,annotations:n,getPosition:r,getDimensions:i})}),[t,n,r,i])},m8=function(e){var t=e.annotations;return(0,_.useMemo)((function(){return t.map((function(e){return r8({},e,{computed:f8(r8({},e))})}))}),[t])},h8=function(e){return(0,_.useMemo)((function(){return f8(e)}),[e])},g8=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,a=sW(),o=F2(),s=o.animate,c=o.config,l=fV({x:n,y:r,config:c,immediate:!s});return typeof i==`function`?(0,_.createElement)(i,{x:n,y:r,datum:t}):(0,G.jsxs)(G.Fragment,{children:[a.annotations.text.outlineWidth>0&&(0,G.jsx)(VV.text,{x:l.x,y:l.y,style:r8({},a.annotations.text,{strokeLinejoin:`round`,strokeWidth:2*a.annotations.text.outlineWidth,stroke:a.annotations.text.outlineColor}),children:i}),(0,G.jsx)(VV.text,{x:l.x,y:l.y,style:(0,n8.default)(a.annotations.text,[`outlineWidth`,`outlineColor`]),children:i})]})},_8=function(e){var t=e.points,n=e.isOutline,r=n!==void 0&&n,i=sW(),a=p4((0,_.useMemo)((function(){var e=t[0];return t.slice(1).reduce((function(e,t){return e+` L`+t[0]+`,`+t[1]}),`M`+e[0]+`,`+e[1])}),[t]));if(r&&i.annotations.link.outlineWidth<=0)return null;var o=r8({},i.annotations.link);return r&&(o.strokeLinecap=`square`,o.strokeWidth=i.annotations.link.strokeWidth+2*i.annotations.link.outlineWidth,o.stroke=i.annotations.link.outlineColor,o.opacity=i.annotations.link.outlineOpacity),(0,G.jsx)(VV.path,{fill:`none`,d:a,style:o})},v8=function(e){var t=e.x,n=e.y,r=e.size,i=sW(),a=F2(),o=a.animate,s=a.config,c=fV({x:t,y:n,radius:r/2,config:s,immediate:!o});return(0,G.jsxs)(G.Fragment,{children:[i.annotations.outline.outlineWidth>0&&(0,G.jsx)(VV.circle,{cx:c.x,cy:c.y,r:c.radius,style:r8({},i.annotations.outline,{fill:`none`,strokeWidth:i.annotations.outline.strokeWidth+2*i.annotations.outline.outlineWidth,stroke:i.annotations.outline.outlineColor,opacity:i.annotations.outline.outlineOpacity})}),(0,G.jsx)(VV.circle,{cx:c.x,cy:c.y,r:c.radius,style:i.annotations.outline})]})},y8=function(e){var t=e.x,n=e.y,r=e.size,i=r===void 0?i8.dotSize:r,a=sW(),o=F2(),s=o.animate,c=o.config,l=fV({x:t,y:n,radius:i/2,config:c,immediate:!s});return(0,G.jsxs)(G.Fragment,{children:[a.annotations.outline.outlineWidth>0&&(0,G.jsx)(VV.circle,{cx:l.x,cy:l.y,r:l.radius,style:r8({},a.annotations.outline,{fill:`none`,strokeWidth:2*a.annotations.outline.outlineWidth,stroke:a.annotations.outline.outlineColor,opacity:a.annotations.outline.outlineOpacity})}),(0,G.jsx)(VV.circle,{cx:l.x,cy:l.y,r:l.radius,style:a.annotations.symbol})]})},b8=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.borderRadius,o=a===void 0?6:a,s=sW(),c=F2(),l=c.animate,u=c.config,d=fV({x:t-r/2,y:n-i/2,width:r,height:i,config:u,immediate:!l});return(0,G.jsxs)(G.Fragment,{children:[s.annotations.outline.outlineWidth>0&&(0,G.jsx)(VV.rect,{x:d.x,y:d.y,rx:o,ry:o,width:d.width,height:d.height,style:r8({},s.annotations.outline,{fill:`none`,strokeWidth:s.annotations.outline.strokeWidth+2*s.annotations.outline.outlineWidth,stroke:s.annotations.outline.outlineColor,opacity:s.annotations.outline.outlineOpacity})}),(0,G.jsx)(VV.rect,{x:d.x,y:d.y,rx:o,ry:o,width:d.width,height:d.height,style:s.annotations.outline})]})},x8=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,a=h8(e);if(!a8(i))throw Error(`note should be a valid react element`);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(_8,{points:a.points,isOutline:!0}),s8(e)&&(0,G.jsx)(v8,{x:n,y:r,size:e.size}),c8(e)&&(0,G.jsx)(y8,{x:n,y:r,size:e.size}),l8(e)&&(0,G.jsx)(b8,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),(0,G.jsx)(_8,{points:a.points}),(0,G.jsx)(g8,{datum:t,x:a.text[0],y:a.text[1],note:i})]})},S8=function(e,t){t.forEach((function(t,n){var r=t[0],i=t[1];n===0?e.moveTo(r,i):e.lineTo(r,i)}))},C8=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach((function(t){if(!o8(t.note))throw Error(`note is invalid for canvas implementation`);r.annotations.link.outlineWidth>0&&(e.lineCap=`square`,e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),S8(e,t.computed.points),e.stroke(),e.lineCap=`butt`),s8(t)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),c8(t)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),l8(t)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(t.x-t.width/2,t.y-t.height/2,t.width,t.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),S8(e,t.computed.points),e.stroke(),s8(t)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),c8(t)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.fill()),l8(t)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(t.x-t.width/2,t.y-t.height/2,t.width,t.height),e.stroke()),typeof t.note==`function`?t.note(e,{datum:t.datum,x:t.computed.text[0],y:t.computed.text[1],theme:r}):(e.font=r.annotations.text.fontSize+`px `+r.annotations.text.fontFamily,e.textAlign=`left`,e.textBaseline=`alphabetic`,e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin=`round`,e.strokeText(t.note,t.computed.text[0],t.computed.text[1]),e.lineJoin=`miter`),e.fillText(t.note,t.computed.text[0],t.computed.text[1]))})),e.restore())};function w8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function T8(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if(typeof e==`string`)return w8(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w8(e,t):void 0}}(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
109
|
+
`),(0,G.jsxs)(`pattern`,{id:t,width:h,height:g,patternUnits:`userSpaceOnUse`,children:[(0,G.jsx)(`rect`,{width:h,height:g,fill:s,stroke:`rgba(255, 0, 0, 0.1)`,strokeWidth:0}),(0,G.jsx)(`path`,{d:m,strokeWidth:d,stroke:l,strokeLinecap:`square`})]})})),i4={color:`#000000`,background:`#ffffff`,size:4,padding:4,stagger:!1},a4={patternDots:Y2,patternLines:r4,patternSquares:(0,_.memo)((function(e){var t=e.id,n=e.color,r=n===void 0?i4.color:n,i=e.background,a=i===void 0?i4.background:i,o=e.size,s=o===void 0?i4.size:o,c=e.padding,l=c===void 0?i4.padding:c,u=e.stagger,d=u===void 0?i4.stagger:u,f=s+l,p=l/2;return!0===d&&(f=2*s+2*l),(0,G.jsxs)(`pattern`,{id:t,width:f,height:f,patternUnits:`userSpaceOnUse`,children:[(0,G.jsx)(`rect`,{width:f,height:f,fill:a}),(0,G.jsx)(`rect`,{x:p,y:p,width:s,height:s,fill:r}),d&&(0,G.jsx)(`rect`,{x:1.5*l+s,y:1.5*l+s,width:s,height:s,fill:r})]})}))},o4=[`type`],s4=W2({},q2,a4),c4=(0,_.memo)((function(e){var t=e.defs;return!t||t.length<1?null:(0,G.jsx)(`defs`,{"aria-hidden":!0,children:t.map((function(e){var t=e.type,n=G2(e,o4);return s4[t]?(0,_.createElement)(s4[t],W2({key:n.id},n)):null}))})})),l4=(0,_.forwardRef)((function(e,t){var n=e.width,r=e.height,i=e.margin,a=e.defs,o=e.children,s=e.role,c=e.ariaLabel,l=e.ariaLabelledBy,u=e.ariaDescribedBy,d=e.isFocusable,f=sW();return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:n,height:r,role:s,"aria-label":c,"aria-labelledby":l,"aria-describedby":u,focusable:d,tabIndex:d?0:void 0,ref:t,children:[(0,G.jsx)(c4,{defs:a}),(0,G.jsx)(`rect`,{width:n,height:r,fill:f.background}),(0,G.jsx)(`g`,{transform:`translate(`+i.left+`,`+i.top+`)`,children:o})]})})),u4=(0,_.memo)((function(e){var t=e.size,n=e.color,r=e.borderWidth,i=e.borderColor;return(0,G.jsx)(`circle`,{r:t/2,fill:n,stroke:i,strokeWidth:r,style:{pointerEvents:`none`}})}));(0,_.memo)((function(e){var t=e.x,n=e.y,r=e.symbol,i=r===void 0?u4:r,a=e.size,o=e.datum,s=e.color,c=e.borderWidth,l=e.borderColor,u=e.label,d=e.labelTextAnchor,f=d===void 0?`middle`:d,p=e.labelYOffset,m=p===void 0?-12:p,h=e.ariaLabel,g=e.ariaLabelledBy,v=e.ariaDescribedBy,y=e.ariaHidden,b=e.ariaDisabled,x=e.isFocusable,S=x!==void 0&&x,C=e.tabIndex,w=C===void 0?0:C,T=e.onFocus,E=e.onBlur,D=e.testId,O=sW(),k=F2(),A=k.animate,j=k.config,M=fV({transform:`translate(`+t+`, `+n+`)`,config:j,immediate:!A}),N=(0,_.useCallback)((function(e){T?.(o,e)}),[T,o]),P=(0,_.useCallback)((function(e){E?.(o,e)}),[E,o]);return(0,G.jsxs)(VV.g,{transform:M.transform,style:{pointerEvents:`none`},focusable:S,tabIndex:S?w:void 0,"aria-label":h,"aria-labelledby":g,"aria-describedby":v,"aria-disabled":b,"aria-hidden":y,onFocus:S&&T?N:void 0,onBlur:S&&E?P:void 0,"data-testid":D,children:[(0,_.createElement)(i,{size:a,color:s,datum:o,borderWidth:c,borderColor:l}),u&&(0,G.jsx)(`text`,{textAnchor:f,y:m,style:XU(O.dots.text),children:u})]})}));var d4=(0,_.memo)((function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,a=e.value,o=e.lineStyle,s=e.textStyle,c=e.legend,l=e.legendNode,u=e.legendPosition,d=u===void 0?`top-right`:u,f=e.legendOffsetX,p=f===void 0?14:f,m=e.legendOffsetY,h=m===void 0?14:m,g=e.legendOrientation,_=g===void 0?`horizontal`:g,v=sW(),y=0,b=0,x=0,S=0;if(r===`y`?(x=i(a),b=t):(y=i(a),S=n),c&&!l){var C=function(e){var t=e.axis,n=e.width,r=e.height,i=e.position,a=e.offsetX,o=e.offsetY,s=e.orientation,c=0,l=0,u=s===`vertical`?-90:0,d=`start`;if(t===`x`)switch(i){case`top-left`:c=-a,l=o,d=`end`;break;case`top`:l=-o,d=s===`horizontal`?`middle`:`start`;break;case`top-right`:c=a,l=o,d=s===`horizontal`?`start`:`end`;break;case`right`:c=a,l=r/2,d=s===`horizontal`?`start`:`middle`;break;case`bottom-right`:c=a,l=r-o,d=`start`;break;case`bottom`:l=r+o,d=s===`horizontal`?`middle`:`end`;break;case`bottom-left`:l=r-o,c=-a,d=s===`horizontal`?`end`:`start`;break;case`left`:c=-a,l=r/2,d=s===`horizontal`?`end`:`middle`}else switch(i){case`top-left`:c=a,l=-o,d=`start`;break;case`top`:c=n/2,l=-o,d=s===`horizontal`?`middle`:`start`;break;case`top-right`:c=n-a,l=-o,d=s===`horizontal`?`end`:`start`;break;case`right`:c=n+a,d=s===`horizontal`?`start`:`middle`;break;case`bottom-right`:c=n-a,l=o,d=`end`;break;case`bottom`:c=n/2,l=o,d=s===`horizontal`?`middle`:`end`;break;case`bottom-left`:c=a,l=o,d=s===`horizontal`?`start`:`end`;break;case`left`:c=-a,d=s===`horizontal`?`end`:`middle`}return{x:c,y:l,rotation:u,textAnchor:d}}({axis:r,width:t,height:n,position:d,offsetX:p,offsetY:h,orientation:_});l=(0,G.jsx)(`text`,{transform:`translate(`+C.x+`, `+C.y+`) rotate(`+C.rotation+`)`,textAnchor:C.textAnchor,dominantBaseline:`central`,style:s,children:c})}return(0,G.jsxs)(`g`,{transform:`translate(`+y+`, `+x+`)`,children:[(0,G.jsx)(`line`,{x1:0,x2:b,y1:0,y2:S,stroke:v.markers.lineColor,strokeWidth:v.markers.lineStrokeWidth,style:o}),l]})})),f4=(0,_.memo)((function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,a=e.yScale;return t&&t.length!==0?t.map((function(e,t){return(0,G.jsx)(d4,W2({},e,{width:n,height:r,scale:e.axis===`y`?a:i}),t)})):null})),p4=function(e){var t=F2(),n=t.animate,r=t.config,i=function(e){var t=(0,_.useRef)();return(0,_.useEffect)((function(){t.current=e}),[e]),t.current}(e),a=(0,_.useMemo)((function(){return sK(i,e)}),[i,e]),o=fV({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return xV(o,a)};(0,_.createContext)(void 0);var m4=Object.keys({basis:bq,basisClosed:Sq,basisOpen:wq,bundle:Eq,cardinal:kq,cardinalClosed:jq,cardinalOpen:Nq,catmullRom:Iq,catmullRomClosed:Rq,catmullRomOpen:Bq,linear:uq,linearClosed:Hq,monotoneX:Xq,monotoneY:Zq,natural:eJ,step:nJ,stepAfter:iJ,stepBefore:rJ});m4.filter((function(e){return e.endsWith(`Closed`)})),(0,D2.default)(m4,`bundle`,`basisClosed`,`basisOpen`,`cardinalClosed`,`cardinalOpen`,`catmullRomClosed`,`catmullRomOpen`,`linearClosed`),(0,D2.default)(m4,`bundle`,`basisClosed`,`basisOpen`,`cardinalClosed`,`cardinalOpen`,`catmullRomClosed`,`catmullRomOpen`,`linearClosed`);var h4={nivo:[`#d76445`,`#f47560`,`#e8c1a0`,`#97e3d5`,`#61cdbb`,`#00b0a7`],BrBG:(0,O2.default)(mQ),PRGn:(0,O2.default)(gQ),PiYG:(0,O2.default)(vQ),PuOr:(0,O2.default)(bQ),RdBu:(0,O2.default)(SQ),RdGy:(0,O2.default)(wQ),RdYlBu:(0,O2.default)(EQ),RdYlGn:(0,O2.default)(OQ),spectral:(0,O2.default)(AQ),blues:(0,O2.default)(n$),greens:(0,O2.default)(i$),greys:(0,O2.default)(o$),oranges:(0,O2.default)(f$),purples:(0,O2.default)(c$),reds:(0,O2.default)(u$),BuGn:(0,O2.default)(MQ),BuPu:(0,O2.default)(PQ),GnBu:(0,O2.default)(IQ),OrRd:(0,O2.default)(RQ),PuBuGn:(0,O2.default)(BQ),PuBu:(0,O2.default)(HQ),PuRd:(0,O2.default)(WQ),RdPu:(0,O2.default)(KQ),YlGnBu:(0,O2.default)(JQ),YlGn:(0,O2.default)(XQ),YlOrBr:(0,O2.default)(QQ),YlOrRd:(0,O2.default)(e$)};Object.keys(h4),(0,O2.default)(mQ),(0,O2.default)(gQ),(0,O2.default)(vQ),(0,O2.default)(bQ),(0,O2.default)(SQ),(0,O2.default)(wQ),(0,O2.default)(EQ),(0,O2.default)(OQ),(0,O2.default)(AQ),(0,O2.default)(n$),(0,O2.default)(i$),(0,O2.default)(o$),(0,O2.default)(f$),(0,O2.default)(c$),(0,O2.default)(u$),(0,O2.default)(MQ),(0,O2.default)(PQ),(0,O2.default)(IQ),(0,O2.default)(RQ),(0,O2.default)(BQ),(0,O2.default)(HQ),(0,O2.default)(WQ),(0,O2.default)(KQ),(0,O2.default)(JQ),(0,O2.default)(XQ),(0,O2.default)(QQ),(0,O2.default)(e$),NJ(dQ);var g4={top:0,right:0,bottom:0,left:0},_4=function(e,t,n){return n===void 0&&(n={}),(0,_.useMemo)((function(){var r=W2({},g4,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}}),[e,t,n])},v4=function(){var e=(0,_.useRef)(null),t=(0,_.useState)({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=(0,_.useState)((function(){return typeof ResizeObserver>`u`?null:new ResizeObserver((function(e){var t=e[0];return r(t.contentRect)}))}))[0];return(0,_.useEffect)((function(){return e.current&&i!==null&&i.observe(e.current),function(){i!==null&&i.disconnect()}}),[i]),[e,n]},y4=function(e){return typeof e==`function`?e:typeof e==`string`?e.indexOf(`time:`)===0?W0(e.slice(`5`)):Y$(e):function(e){return``+e}},b4=function(e){return(0,_.useMemo)((function(){return y4(e)}),[e])},x4=function(e){return(0,k2.default)(e)?e:function(t){return(0,GU.default)(t,e)}},S4=function(e){return(0,_.useMemo)((function(){return x4(e)}),[e])},C4=function(e,t,n,r){return Math.sqrt((n-e)**2+(r-t)**2)},w4=function(e,t,n,r){var i=Math.atan2(r-t,n-e)-Math.PI/2;return i>0?i:2*Math.PI+i},T4=function(e,t,n,r,i,a){return e<=i&&i<=e+n&&t<=a&&a<=t+r},E4=function(e,t){var n,r=`touches`in t?t.touches[0]:t,i=r.clientX,a=r.clientY,o=e.getBoundingClientRect(),s=(n=e.getBBox===void 0?{width:e.offsetWidth||0,height:e.offsetHeight||0}:e.getBBox()).width===o.width?1:n.width/o.width;return[(i-o.left)*s,(a-o.top)*s]},D4=Object.keys(q2),O4=Object.keys(a4),k4=function(e,t,n){if(e===`*`)return!0;if((0,k2.default)(e))return e(t);if((0,A2.default)(e)){var r=n?(0,GU.default)(t,n):t;return(0,M2.default)((0,j2.default)(r,Object.keys(e)),e)}return!1},A4=function(e,t,n,r){var i=r===void 0?{}:r,a=i.dataKey,o=i.colorKey,s=o===void 0?`color`:o,c=i.targetKey,l=c===void 0?`fill`:c,u=[],d={};return e.length&&t.length&&(u=[].concat(e),t.forEach((function(t){for(var r,i=function(){var n=r.value,i=n.id,o=n.match;if(k4(o,t,a)){var c=e.find((function(e){return e.id===i}));if(c){if(O4.includes(c.type)){if(c.background===`inherit`||c.color===`inherit`){var f=(0,GU.default)(t,s),p=c.background,m=c.color,h=i;c.background===`inherit`&&(h=h+`.bg.`+f,p=f),c.color===`inherit`&&(h=h+`.fg.`+f,m=f),(0,KU.default)(t,l,`url(#`+h+`)`),d[h]||(u.push(W2({},c,{id:h,background:p,color:m})),d[h]=1)}else(0,KU.default)(t,l,`url(#`+i+`)`)}else if(D4.includes(c.type)){if(c.colors.map((function(e){return e.color})).includes(`inherit`)){var g=(0,GU.default)(t,s),_=i,v=W2({},c,{colors:c.colors.map((function(e,t){return e.color===`inherit`?(_=_+`.`+t+`.`+g,W2({},e,{color:e.color===`inherit`?g:e.color})):e}))});v.id=_,(0,KU.default)(t,l,`url(#`+_+`)`),d[_]||(u.push(v),d[_]=1)}else(0,KU.default)(t,l,`url(#`+i+`)`)}}return 1}},o=U2(n);!(r=o()).done&&!i(););}))),u};function j4(){var e=[...arguments];return function(t){for(var n=0,r=e;n<r.length;n++){var i=r[n];typeof i==`function`?i(t):i!=null&&(i.current=t)}}}var M4=function(e,t){e.font=(t.fontWeight?t.fontWeight+` `:``)+t.fontSize+`px `+t.fontFamily},N4=function(e,t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=0),t.outlineWidth>0&&(e.strokeStyle=t.outlineColor,e.lineWidth=2*t.outlineWidth,e.lineJoin=`round`,e.strokeText(n,r,i)),e.fillStyle=t.fill,e.fillText(n,r,i)};function P4(){return P4=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},P4.apply(null,arguments)}function F4(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 I4=[`style`,`children`],L4=[`outlineWidth`,`outlineColor`,`outlineOpacity`],R4=function(e){var t=e.style,n=e.children,r=F4(e,I4),i=t.outlineWidth,a=t.outlineColor,o=t.outlineOpacity,s=F4(t,L4);return(0,G.jsxs)(G.Fragment,{children:[i>0&&(0,G.jsx)(VV.text,P4({},r,{style:P4({},s,{strokeWidth:2*i,stroke:a,strokeOpacity:o,strokeLinejoin:`round`}),children:n})),(0,G.jsx)(VV.text,P4({},r,{style:s,children:n}))]})},z4=n(((e,t)=>{function n(){}t.exports=n})),B4=n(((e,t)=>{var n=x2(),r=z4(),i=c2();t.exports=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:r})),V4=n(((e,t)=>{var n=CK(),r=OK(),i=kK(),a=AK(),o=B4(),s=c2(),c=200;function l(e,t,l){var u=-1,d=r,f=e.length,p=!0,m=[],h=m;if(l)p=!1,d=i;else if(f>=c){var g=t?null:o(e);if(g)return s(g);p=!1,d=a,h=new n}else h=t?[]:m;outer:for(;++u<f;){var _=e[u],v=t?t(_):_;if(_=l||_!==0?_:0,p&&v===v){for(var y=h.length;y--;)if(h[y]===v)continue outer;t&&h.push(v),m.push(_)}else d(h,v,l)||(h!==m&&h.push(v),m.push(_))}return m}t.exports=l})),H4=n(((e,t)=>{var n=V4();function r(e){return e&&e.length?n(e):[]}t.exports=r})),U4=n(((e,t)=>{var n=jH(),r=T2(),i=1,a=2;function o(e,t,o,s){var c=o.length,l=c,u=!s;if(e==null)return!l;for(e=Object(e);c--;){var d=o[c];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++c<l;){d=o[c];var f=d[0],p=e[f],m=d[1];if(u&&d[2]){if(p===void 0&&!(f in e))return!1}else{var h=new n;if(s)var g=s(p,m,f,e,t,h);if(!(g===void 0?r(m,p,i|a,s,h):g))return!1}}return!0}t.exports=o})),W4=n(((e,t)=>{var n=oH();function r(e){return e===e&&!n(e)}t.exports=r})),G4=n(((e,t)=>{var n=W4(),r=g2();function i(e){for(var t=r(e),i=t.length;i--;){var a=t[i],o=e[a];t[i]=[a,o,n(o)]}return t}t.exports=i})),K4=n(((e,t)=>{function n(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}t.exports=n})),q4=n(((e,t)=>{var n=U4(),r=G4(),i=K4();function a(e){var t=r(e);return t.length==1&&t[0][2]?i(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}t.exports=a})),J4=n(((e,t)=>{var n=T2(),r=VU(),i=Z0(),a=jU(),o=W4(),s=K4(),c=zU(),l=1,u=2;function d(e,t){return a(e)&&o(t)?s(c(e),t):function(a){var o=r(a,e);return o===void 0&&o===t?i(a,e):n(t,o,l|u)}}t.exports=d})),Y4=n(((e,t)=>{function n(e){return function(t){return t?.[e]}}t.exports=n})),X4=n(((e,t)=>{var n=BU();function r(e){return function(t){return n(t,e)}}t.exports=r})),Z4=n(((e,t)=>{var n=Y4(),r=X4(),i=jU(),a=zU();function o(e){return i(e)?n(a(e)):r(e)}t.exports=o})),Q4=n(((e,t)=>{var n=q4(),r=J4(),i=yU(),a=XH(),o=Z4();function s(e){return typeof e==`function`?e:e==null?i:typeof e==`object`?a(e)?r(e[0],e[1]):n(e):o(e)}t.exports=s})),$4=n(((e,t)=>{var n=Q4(),r=V4();function i(e,t){return e&&e.length?r(e,n(t,2)):[]}t.exports=i})),e3=n(((e,t)=>{var n=IH(),r=g2();function i(e,t){return e&&n(e,t,r)}t.exports=i})),t3=n(((e,t)=>{var n=QH();function r(e,t){return function(r,i){if(r==null)return r;if(!n(r))return e(r,i);for(var a=r.length,o=t?a:-1,s=Object(r);(t?o--:++o<a)&&i(s[o],o,s)!==!1;);return r}}t.exports=r})),n3=n(((e,t)=>{var n=e3();t.exports=t3()(n)})),r3=n(((e,t)=>{var n=n3(),r=QH();function i(e,t){var i=-1,a=r(e)?Array(e.length):[];return n(e,function(e,n,r){a[++i]=t(e,n,r)}),a}t.exports=i})),i3=n(((e,t)=>{function n(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}t.exports=n})),a3=n(((e,t)=>{var n=AU();function r(e,t){if(e!==t){var r=e!==void 0,i=e===null,a=e===e,o=n(e),s=t!==void 0,c=t===null,l=t===t,u=n(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}t.exports=r})),o3=n(((e,t)=>{var n=a3();function r(e,t,r){for(var i=-1,a=e.criteria,o=t.criteria,s=a.length,c=r.length;++i<s;){var l=n(a[i],o[i]);if(l)return i>=c?l:l*(r[i]==`desc`?-1:1)}return e.index-t.index}t.exports=r})),s3=n(((e,t)=>{var n=FU(),r=BU(),i=Q4(),a=r3(),o=i3(),s=iU(),c=o3(),l=yU(),u=XH();function d(e,t,d){t=t.length?n(t,function(e){return u(e)?function(t){return r(t,e.length===1?e[0]:e)}:e}):[l];var f=-1;return t=n(t,s(i)),o(a(e,function(e,r,i){return{criteria:n(t,function(t){return t(e)}),index:++f,value:e}}),function(e,t){return c(e,t,d)})}t.exports=d})),c3=n(((e,t)=>{var n=t2(),r=s3(),i=EU(),a=DU();t.exports=i(function(e,t){if(e==null)return[];var i=t.length;return i>1&&a(e,t[0],t[1])?t=[]:i>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),r(e,n(t,1),[])})})),l3=n(((e,t)=>{var n=aH(),r=qH(),i=`[object Date]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),u3=n(((e,t)=>{var n=l3(),r=iU(),i=aU(),a=i&&i.isDate;t.exports=a?r(a):n})),d3=new Date,f3=new Date;function p3(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),n==null?1:Math.floor(n)),e},i.range=function(n,r,a){var o=[],s;if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=function(n){return p3(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}})},n&&(i.count=function(t,r){return d3.setTime(+t),f3.setTime(+r),e(d3),e(f3),Math.floor(n(d3,f3))},i.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?function(t){return r(t)%e===0}:function(t){return i.count(0,t)%e===0}):i}),i}var m3=p3(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});m3.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?p3(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):m3},m3.range;var h3=1e3,g3=6e4,_3=36e5,v3=6048e5,y3=p3(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*h3)},function(e,t){return(t-e)/h3},function(e){return e.getUTCSeconds()});y3.range;var b3=p3(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*h3)},function(e,t){e.setTime(+e+t*g3)},function(e,t){return(t-e)/g3},function(e){return e.getMinutes()});b3.range;var x3=p3(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*h3-e.getMinutes()*g3)},function(e,t){e.setTime(+e+t*_3)},function(e,t){return(t-e)/_3},function(e){return e.getHours()});x3.range;function S3(e){return p3(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t*7)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*g3)/v3})}var C3=S3(0),w3=S3(1),T3=S3(2),E3=S3(3),D3=S3(4),O3=S3(5),k3=S3(6);C3.range,w3.range,T3.range,E3.range,D3.range,O3.range,k3.range;var A3=p3(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});A3.range;var j3=p3(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});j3.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:p3(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})},j3.range;var M3=p3(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*g3)},function(e,t){return(t-e)/g3},function(e){return e.getUTCMinutes()});M3.range;var N3=p3(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*_3)},function(e,t){return(t-e)/_3},function(e){return e.getUTCHours()});N3.range;function P3(e){return p3(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t*7)},function(e,t){return(t-e)/v3})}var F3=P3(0),I3=P3(1),L3=P3(2),R3=P3(3),z3=P3(4),B3=P3(5),V3=P3(6);F3.range,I3.range,L3.range,R3.range,z3.range,B3.range,V3.range;var H3=p3(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});H3.range;var U3=p3(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});U3.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:p3(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})},U3.range,H4();var W3=t($4(),1);c3(),u3();var G3=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],K3={millisecond:[],second:G3.slice(0,1),minute:G3.slice(0,2),hour:G3.slice(0,3),day:G3.slice(0,4),month:G3.slice(0,5),year:G3.slice(0,6)},q3=function(e){return function(t){return K3[e].forEach((function(e){e(t)})),t}},J3=function(e){var t=e.format,n=t===void 0?`native`:t,r=e.precision,i=r===void 0?`millisecond`:r,a=e.useUTC,o=a===void 0||a,s=q3(i);return function(e){return e===void 0?e:n===`native`||e instanceof Date?s(e):s((o?K0(n):G0(n))(e))}},Y3={type:`linear`,min:0,max:`auto`,stacked:!1,reverse:!1,clamp:!1,nice:!0,round:!1},X3=function(e,t,n,r){var i,a,o=e.min,s=o===void 0?Y3.min:o,c=e.max,l=c===void 0?Y3.max:c,u=e.stacked,d=u===void 0?Y3.stacked:u,f=e.reverse,p=f===void 0?Y3.reverse:f,m=e.clamp,h=m===void 0?Y3.clamp:m,g=e.nice,_=g===void 0?Y3.nice:g,v=e.round,y=v===void 0?Y3.round:v;i=s===`auto`?!0===d?t.minStacked??0:t.min:s,a=l===`auto`?!0===d?t.maxStacked??0:t.max:l;var b=bY().range(r===`x`?[0,n]:[n,0]).interpolate(y?lK:tK).domain(p?[a,i]:[i,a]).clamp(h);return!0===_?b.nice():typeof _==`number`&&b.nice(_),Z3(b,d)},Z3=function(e,t){t===void 0&&(t=!1);var n=e;return n.type=`linear`,n.stacked=t,n},Q3=function(e,t,n){var r=IJ().range([0,n]).domain(t.all);return r.type=`point`,r},$3={type:`band`,round:!1},e6=function(e,t,n,r){var i=e.round,a=i===void 0?$3.round:i;return t6(PJ().range(r===`x`?[0,n]:[n,0]).domain(t.all).round(a))},t6=function(e){var t=e;return t.type=`band`,t},n6={type:`time`,format:`native`,precision:`millisecond`,min:`auto`,max:`auto`,useUTC:!0,nice:!1},r6=function(e,t,n){var r,i,a=e.format,o=a===void 0?n6.format:a,s=e.precision,c=s===void 0?n6.precision:s,l=e.min,u=l===void 0?n6.min:l,d=e.max,f=d===void 0?n6.max:d,p=e.useUTC,m=p===void 0?n6.useUTC:p,h=e.nice,g=h===void 0?n6.nice:h,_=J3({format:o,precision:c,useUTC:m});r=u===`auto`?_(t.min):o===`native`?u:_(u),i=f===`auto`?_(t.max):o===`native`?f:_(f);var v=m?tQ():eQ();v.range([0,n]),r&&i&&v.domain([r,i]),!0===g?v.nice():typeof g!=`object`&&typeof g!=`number`||v.nice(g);var y=v;return y.type=`time`,y.useUTC=m,y},i6={type:`log`,base:10,min:`auto`,max:`auto`,round:!1,reverse:!1,nice:!0},a6=function(e,t,n,r){var i,a=e.base,o=a===void 0?i6.base:a,s=e.min,c=s===void 0?i6.min:s,l=e.max,u=l===void 0?i6.max:l,d=e.round,f=d===void 0?i6.round:d,p=e.reverse,m=p===void 0?i6.reverse:p,h=e.nice,g=h===void 0?i6.nice:h;if(t.all.some((function(e){return e===0})))throw Error(`a log scale domain must not include or cross zero`);var _,v,y=!1;if(t.all.filter((function(e){return e!=null})).forEach((function(e){y||(i===void 0?i=Math.sign(e):Math.sign(e)!==i&&(y=!0))})),y)throw Error(`a log scale domain must be strictly-positive or strictly-negative`);_=c===`auto`?t.min:c,v=u===`auto`?t.max:u;var b=jY().base(o),x=r===`x`?[0,n]:[n,0];!0===f?b.rangeRound(x):b.range(x),!0===m?b.domain([v,_]):b.domain([_,v]),!0===g?b.nice():typeof g==`number`&&b.nice(g);var S=b;return S.type=`log`,S},o6={type:`symlog`,constant:1,min:`auto`,max:`auto`,round:!1,reverse:!1,nice:!0},s6=function(e,t,n,r){var i,a,o=e.constant,s=o===void 0?o6.constant:o,c=e.min,l=c===void 0?o6.min:c,u=e.max,d=u===void 0?o6.max:u,f=e.round,p=f===void 0?o6.round:f,m=e.reverse,h=m===void 0?o6.reverse:m,g=e.nice,_=g===void 0?o6.nice:g;i=l===`auto`?t.min:l,a=d===`auto`?t.max:d;var v=FY().constant(s),y=r===`x`?[0,n]:[n,0];!0===p?v.rangeRound(y):v.range(y),!0===h?v.domain([a,i]):v.domain([i,a]),!0===_?v.nice():typeof _==`number`&&v.nice(_);var b=v;return b.type=`symlog`,b};function c6(e,t,n,r){switch(e.type){case`linear`:return X3(e,t,n,r);case`point`:return Q3(0,t,n);case`band`:return e6(e,t,n,r);case`time`:return r6(e,t,n);case`log`:return a6(e,t,n,r);case`symlog`:return s6(e,t,n,r);default:throw Error(`invalid scale spec`)}}var l6=function(e){var t=e.bandwidth();if(t===0)return e;var n=t/2;return e.round()&&(n=Math.round(n)),function(t){return(e(t)??0)+n}},u6={millisecond:[m3,m3],second:[y3,y3],minute:[b3,M3],hour:[x3,N3],day:[p3((function(e){return e.setHours(0,0,0,0)}),(function(e,t){return e.setDate(e.getDate()+t)}),(function(e,t){return(t.getTime()-e.getTime())/864e5}),(function(e){return Math.floor(e.getTime()/864e5)})),p3((function(e){return e.setUTCHours(0,0,0,0)}),(function(e,t){return e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t.getTime()-e.getTime())/864e5}),(function(e){return Math.floor(e.getTime()/864e5)}))],week:[C3,F3],sunday:[C3,F3],monday:[w3,I3],tuesday:[T3,L3],wednesday:[E3,R3],thursday:[D3,z3],friday:[O3,B3],saturday:[k3,V3],month:[A3,H3],year:[j3,U3]},d6=Object.keys(u6),f6=RegExp(`^every\\s*(\\d+)?\\s*(`+d6.join(`|`)+`)s?$`,`i`),p6=function(e,t){if(Array.isArray(t))return t;if(typeof t==`string`&&`useUTC`in e){var n=t.match(f6);if(n){var r=n[1],i=n[2],a=u6[i][+!!e.useUTC];if(i===`day`){var o=e.domain(),s=o[0],c=o[1],l=new Date(c);return l.setDate(l.getDate()+1),a.every(Number(r??1))?.range(s,l)??[]}if(r===void 0)return e.ticks(a);var u=a.every(Number(r));if(u)return e.ticks(u)}throw Error(`Invalid tickValues: `+t)}if(`ticks`in e){if(t===void 0)return e.ticks();if(typeof(d=t)==`number`&&isFinite(d)&&Math.floor(d)===d)return e.ticks(t)}var d;return e.domain()};function m6(){return m6=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},m6.apply(null,arguments)}var h6=function(e){var t,n=e.axis,r=e.scale,i=e.ticksPosition,a=e.tickValues,o=e.tickSize,s=e.tickPadding,c=e.tickRotation,l=e.truncateTickAt,u=e.engine,d=u===void 0?`svg`:u,f=p6(r,a),p=t4[d],m=`bandwidth`in r?l6(r):r,h={lineX:0,lineY:0},g={textX:0,textY:0},_=typeof document==`object`&&document.dir===`rtl`,v=p.align.center,y=p.baseline.center;return n===`x`?(t=function(e){return{x:m(e)??0,y:0}},h.lineY=o*(i===`after`?1:-1),g.textY=(o+s)*(i===`after`?1:-1),y=i===`after`?p.baseline.top:p.baseline.bottom,c===0?v=p.align.center:i===`after`&&c<0||i===`before`&&c>0?(v=p.align[_?`left`:`right`],y=p.baseline.center):(i===`after`&&c>0||i===`before`&&c<0)&&(v=p.align[_?`right`:`left`],y=p.baseline.center)):(t=function(e){return{x:0,y:m(e)??0}},h.lineX=o*(i===`after`?1:-1),g.textX=(o+s)*(i===`after`?1:-1),v=i===`after`?p.align.left:p.align.right),{ticks:f.map((function(e){var n=typeof e==`string`?function(e){var t=String(e).length;return l&&l>0&&t>l?``+String(e).slice(0,l).concat(`...`):``+e}(e):e;return m6({key:e instanceof Date?``+e.valueOf():``+e,value:n},t(e),h,g)})),textAlign:v,textBaseline:y}},g6=function(e,t){if(e===void 0||typeof e==`function`)return e;if(t.type===`time`){var n=W0(e);return function(e){return n(e instanceof Date?e:new Date(e))}}return Y$(e)},_6=function(e){var t,n=e.width,r=e.height,i=e.scale,a=e.axis,o=e.values,s=(t=o,(Array.isArray(t)?o:void 0)||p6(i,o)),c=`bandwidth`in i?l6(i):i;return a===`x`?s.map((function(e){return{key:e instanceof Date?``+e.valueOf():``+e,x1:c(e)??0,x2:c(e)??0,y1:0,y2:r}})):s.map((function(e){return{key:e instanceof Date?``+e.valueOf():``+e,x1:0,x2:n,y1:c(e)??0,y2:c(e)??0}}))},v6=(0,_.memo)((function(e){var t=e.value,n=e.format,r=e.lineX,i=e.lineY,a=e.onClick,o=e.textBaseline,s=e.textAnchor,c=e.theme,l=e.animatedProps,u=n?.(t)??t,d=(0,_.useMemo)((function(){var e={opacity:l.opacity};return a?{style:m6({},e,{cursor:`pointer`}),onClick:function(e){return a(e,u)}}:{style:e}}),[l.opacity,a,u]);return(0,G.jsxs)(VV.g,m6({transform:l.transform},d,{children:[(0,G.jsx)(`line`,{x1:0,x2:r,y1:0,y2:i,style:c.line}),(0,G.jsx)(R4,{dominantBaseline:o,textAnchor:s,transform:l.textTransform,style:c.text,children:``+u})]}))})),y6={tickSize:5,tickPadding:5,tickRotation:0,legendPosition:`middle`,legendOffset:0},b6=(0,_.memo)(function(e){var t=e.axis,n=e.scale,r=e.x,i=r===void 0?0:r,a=e.y,o=a===void 0?0:a,s=e.length,c=e.ticksPosition,l=e.tickValues,u=e.tickSize,d=u===void 0?y6.tickSize:u,f=e.tickPadding,p=f===void 0?y6.tickPadding:f,m=e.tickRotation,h=m===void 0?y6.tickRotation:m,g=e.format,v=e.renderTick,y=v===void 0?v6:v,b=e.truncateTickAt,x=e.legend,S=e.legendPosition,C=S===void 0?y6.legendPosition:S,w=e.legendOffset,T=w===void 0?y6.legendOffset:w,E=e.style,D=e.onClick,O=e.ariaHidden,k=rW(sW().axis,E),A=(0,_.useMemo)((function(){return g6(g,n)}),[g,n]),j=h6({axis:t,scale:n,ticksPosition:c,tickValues:l,tickSize:d,tickPadding:p,tickRotation:h,truncateTickAt:b}),M=j.ticks,N=j.textAlign,P=j.textBaseline,F=null;if(x!==void 0){var I,L=0,R=0,z=0;t===`y`?(z=-90,L=T,C===`start`?(I=`start`,R=s):C===`middle`?(I=`middle`,R=s/2):C===`end`&&(I=`end`)):(R=T,C===`start`?I=`start`:C===`middle`?(I=`middle`,L=s/2):C===`end`&&(I=`end`,L=s)),F=(0,G.jsx)(G.Fragment,{children:(0,G.jsx)(R4,{transform:`translate(`+L+`, `+R+`) rotate(`+z+`)`,textAnchor:I,style:m6({},k.legend.text,{dominantBaseline:`central`}),children:x})})}var B=F2(),ee=B.animate,te=B.config,ne=fV({transform:`translate(`+i+`,`+o+`)`,lineX2:t===`x`?s:0,lineY2:t===`x`?0:s,config:te,immediate:!ee}),re=(0,_.useCallback)((function(e){return{opacity:1,transform:`translate(`+e.x+`,`+e.y+`)`,textTransform:`translate(`+e.textX+`,`+e.textY+`) rotate(`+h+`)`}}),[h]),ie=mV(M,{keys:function(e){return e.key},initial:re,from:(0,_.useCallback)((function(e){return{opacity:0,transform:`translate(`+e.x+`,`+e.y+`)`,textTransform:`translate(`+e.textX+`,`+e.textY+`) rotate(`+h+`)`}}),[h]),enter:re,update:re,leave:{opacity:0},config:te,immediate:!ee});return(0,G.jsxs)(VV.g,{transform:ne.transform,"aria-hidden":O,children:[ie((function(e,t,n,r){return _.createElement(y,m6({tickIndex:r,format:A,rotate:h,textBaseline:P,textAnchor:N,truncateTickAt:b,animatedProps:e,theme:k.ticks},t,D?{onClick:D}:{}))})),(0,G.jsx)(VV.line,{style:k.domain.line,x1:0,x2:ne.lineX2,y1:0,y2:ne.lineY2}),F]})}),x6=[`top`,`right`,`bottom`,`left`],S6=(0,_.memo)((function(e){var t=e.xScale,n=e.yScale,r=e.width,i=e.height,a={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return(0,G.jsx)(G.Fragment,{children:x6.map((function(e){var o=a[e];if(!o)return null;var s=e===`top`||e===`bottom`;return(0,G.jsx)(b6,m6({},o,{axis:s?`x`:`y`,x:e===`right`?r:0,y:e===`bottom`?i:0,scale:s?t:n,length:s?r:i,ticksPosition:e===`top`||e===`left`?`before`:`after`,truncateTickAt:o.truncateTickAt}),e)}))})})),C6=(0,_.memo)((function(e){var t=e.animatedProps,n=sW();return(0,G.jsx)(VV.line,m6({},t,n.grid.line))})),w6=(0,_.memo)((function(e){var t=e.lines,n=F2(),r=n.animate,i=n.config,a=mV(t,{keys:function(e){return e.key},initial:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},from:function(e){return{opacity:0,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},enter:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},update:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},leave:{opacity:0},config:i,immediate:!r});return(0,G.jsx)(`g`,{children:a((function(e,t){return(0,_.createElement)(C6,m6({},t,{key:t.key,animatedProps:e}))}))})})),T6=(0,_.memo)((function(e){var t=e.width,n=e.height,r=e.xScale,i=e.yScale,a=e.xValues,o=e.yValues,s=(0,_.useMemo)((function(){return!!r&&_6({width:t,height:n,scale:r,axis:`x`,values:a})}),[r,a,t,n]),c=(0,_.useMemo)((function(){return!!i&&_6({width:t,height:n,scale:i,axis:`y`,values:o})}),[n,t,i,o]);return(0,G.jsxs)(G.Fragment,{children:[s&&(0,G.jsx)(w6,{lines:s}),c&&(0,G.jsx)(w6,{lines:c})]})})),E6=function(e,t){var n=t.axis,r=t.scale,i=t.x,a=i===void 0?0:i,o=t.y,s=o===void 0?0:o,c=t.length,l=t.ticksPosition,u=t.tickValues,d=t.tickSize,f=d===void 0?y6.tickSize:d,p=t.tickPadding,m=p===void 0?y6.tickPadding:p,h=t.tickRotation,g=h===void 0?y6.tickRotation:h,_=t.format,v=t.legend,y=t.legendPosition,b=y===void 0?y6.legendPosition:y,x=t.legendOffset,S=x===void 0?y6.legendOffset:x,C=t.theme,w=t.style,T=h6({axis:n,scale:r,ticksPosition:l,tickValues:u,tickSize:f,tickPadding:m,tickRotation:g,engine:`canvas`}),E=T.ticks,D=T.textAlign,O=T.textBaseline;e.save(),e.translate(a,s);var k=eW(C.axis,w);e.textAlign=D,e.textBaseline=O,M4(e,k.ticks.text);var A=k.domain.line.strokeWidth??0;typeof A!=`string`&&A>0&&(e.lineWidth=A,e.lineCap=`square`,k.domain.line.stroke&&(e.strokeStyle=k.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(n===`x`?c:0,n===`x`?0:c),e.stroke());var j=typeof _==`function`?_:function(e){return``+e},M=k.ticks.line.strokeWidth??0,N=typeof M!=`string`&&M>0;if(E.forEach((function(t){N&&(e.lineWidth=M,e.lineCap=`square`,k.ticks.line.stroke&&(e.strokeStyle=k.ticks.line.stroke),e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(t.x+t.lineX,t.y+t.lineY),e.stroke());var n=j(t.value);e.save(),e.translate(t.x+t.textX,t.y+t.textY),e.rotate(X2(g)),N4(e,k.ticks.text,``+n),e.fillText(``+n,0,0),e.restore()})),v!==void 0){var P=0,F=0,I=0,L=`center`;n===`y`?(I=-90,P=S,b===`start`?(L=`start`,F=c):b===`middle`?(L=`center`,F=c/2):b===`end`&&(L=`end`)):(F=S,b===`start`?L=`start`:b===`middle`?(L=`center`,P=c/2):b===`end`&&(L=`end`,P=c)),e.translate(P,F),e.rotate(X2(I)),M4(e,k.legend.text),k.legend.text.fill&&(e.fillStyle=k.legend.text.fill),e.textAlign=L,e.textBaseline=`middle`,N4(e,k.legend.text,v)}e.restore()},D6=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,a=t.height,o=t.top,s=t.right,c=t.bottom,l=t.left,u=t.theme,d={top:o,right:s,bottom:c,left:l};x6.forEach((function(t){var o=d[t];if(!o)return null;var s=t===`top`||t===`bottom`,c=t===`top`||t===`left`?`before`:`after`,l=s?n:r,f=g6(o.format,l);E6(e,m6({},o,{axis:s?`x`:`y`,x:t===`right`?i:0,y:t===`bottom`?a:0,scale:l,format:f,length:s?i:a,ticksPosition:c,theme:u}))}))},O6=function(e,t){var n=t.width,r=t.height,i=t.scale,a=t.axis,o=t.values;_6({width:n,height:r,scale:i,axis:a,values:o}).forEach((function(t){e.beginPath(),e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.stroke()}))},k6=n(((e,t)=>{var n=n3();function r(e,t){var r=[];return n(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}t.exports=r})),A6=n(((e,t)=>{var n=d2(),r=k6(),i=Q4(),a=XH();function o(e,t){return(a(e)?n:r)(e,i(t,3))}t.exports=o})),j6=n(((e,t)=>{var n=aH(),r=qH(),i=`[object Number]`;function a(e){return typeof e==`number`||r(e)&&n(e)==i}t.exports=a})),M6=n(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}t.exports=n})),N6=n(((e,t)=>{var n=lU(),r=g2();function i(e,t){return e&&n(t,r(t),e)}t.exports=i})),P6=n(((e,t)=>{var n=lU(),r=hU();function i(e,t){return e&&n(t,r(t),e)}t.exports=i})),F6=n(((e,t)=>{var n=lU(),r=p2();function i(e,t){return n(e,r(e),t)}t.exports=i})),I6=n(((e,t)=>{var n=$0(),r=WH(),i=p2(),a=f2();t.exports=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,i(e)),e=r(e);return t}:a})),L6=n(((e,t)=>{var n=lU(),r=I6();function i(e,t){return n(e,r(e),t)}t.exports=i})),R6=n(((e,t)=>{var n=u2(),r=I6(),i=hU();function a(e){return n(e,i,r)}t.exports=a})),z6=n(((e,t)=>{var n=Object.prototype.hasOwnProperty;function r(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]==`string`&&n.call(e,`index`)&&(r.index=e.index,r.input=e.input),r}t.exports=r})),B6=n(((e,t)=>{var n=zH();function r(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}t.exports=r})),V6=n(((e,t)=>{var n=/\w*$/;function r(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}t.exports=r})),H6=n(((e,t)=>{var n=nH(),r=n?n.prototype:void 0,i=r?r.valueOf:void 0;function a(e){return i?Object(i.call(e)):{}}t.exports=a})),U6=n(((e,t)=>{var n=zH(),r=B6(),i=V6(),a=H6(),o=BH(),s=`[object Boolean]`,c=`[object Date]`,l=`[object Map]`,u=`[object Number]`,d=`[object RegExp]`,f=`[object Set]`,p=`[object String]`,m=`[object Symbol]`,h=`[object ArrayBuffer]`,g=`[object DataView]`,_=`[object Float32Array]`,v=`[object Float64Array]`,y=`[object Int8Array]`,b=`[object Int16Array]`,x=`[object Int32Array]`,S=`[object Uint8Array]`,C=`[object Uint8ClampedArray]`,w=`[object Uint16Array]`,T=`[object Uint32Array]`;function E(e,t,E){var D=e.constructor;switch(t){case h:return n(e);case s:case c:return new D(+e);case g:return r(e,E);case _:case v:case y:case b:case x:case S:case C:case w:case T:return o(e,E);case l:return new D;case u:case p:return new D(e);case d:return i(e);case f:return new D;case m:return a(e)}}t.exports=E})),W6=n(((e,t)=>{var n=C2(),r=qH(),i=`[object Map]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),G6=n(((e,t)=>{var n=W6(),r=iU(),i=aU(),a=i&&i.isMap;t.exports=a?r(a):n})),K6=n(((e,t)=>{var n=C2(),r=qH(),i=`[object Set]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),q6=n(((e,t)=>{var n=K6(),r=iU(),i=aU(),a=i&&i.isSet;t.exports=a?r(a):n})),J6=n(((e,t)=>{var n=jH(),r=M6(),i=cU(),a=N6(),o=P6(),s=LH(),c=VH(),l=F6(),u=L6(),d=_2(),f=R6(),p=C2(),m=z6(),h=U6(),g=KH(),_=XH(),v=tU(),y=G6(),b=oH(),x=q6(),S=g2(),C=hU(),w=1,T=2,E=4,D=`[object Arguments]`,O=`[object Array]`,k=`[object Boolean]`,A=`[object Date]`,j=`[object Error]`,M=`[object Function]`,N=`[object GeneratorFunction]`,P=`[object Map]`,F=`[object Number]`,I=`[object Object]`,L=`[object RegExp]`,R=`[object Set]`,z=`[object String]`,B=`[object Symbol]`,ee=`[object WeakMap]`,te=`[object ArrayBuffer]`,ne=`[object DataView]`,re=`[object Float32Array]`,ie=`[object Float64Array]`,ae=`[object Int8Array]`,oe=`[object Int16Array]`,se=`[object Int32Array]`,V=`[object Uint8Array]`,H=`[object Uint8ClampedArray]`,ce=`[object Uint16Array]`,le=`[object Uint32Array]`,U={};U[D]=U[O]=U[te]=U[ne]=U[k]=U[A]=U[re]=U[ie]=U[ae]=U[oe]=U[se]=U[P]=U[F]=U[I]=U[L]=U[R]=U[z]=U[B]=U[V]=U[H]=U[ce]=U[le]=!0,U[j]=U[M]=U[ee]=!1;function W(e,t,O,k,A,j){var P,F=t&w,L=t&T,R=t&E;if(O&&(P=A?O(e,k,A,j):O(e)),P!==void 0)return P;if(!b(e))return e;var z=_(e);if(z){if(P=m(e),!F)return c(e,P)}else{var B=p(e),ee=B==M||B==N;if(v(e))return s(e,F);if(B==I||B==D||ee&&!A){if(P=L||ee?{}:g(e),!F)return L?u(e,o(P,e)):l(e,a(P,e))}else{if(!U[B])return A?e:{};P=h(e,B,F)}}j||=new n;var te=j.get(e);if(te)return te;j.set(e,P),x(e)?e.forEach(function(n){P.add(W(n,t,O,n,e,j))}):y(e)&&e.forEach(function(n,r){P.set(r,W(n,t,O,r,e,j))});var ne=z?void 0:(R?L?f:d:L?C:S)(e);return r(ne||e,function(n,r){ne&&(r=n,n=e[r]),i(P,r,W(n,t,O,r,e,j))}),P}t.exports=W})),Y6=n(((e,t)=>{function n(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}t.exports=n})),X6=n(((e,t)=>{var n=BU(),r=Y6();function i(e,t){return t.length<2?e:n(e,r(t,0,-1))}t.exports=i})),Z6=n(((e,t)=>{var n=RU(),r=A$(),i=X6(),a=zU(),o=Object.prototype.hasOwnProperty;function s(e,t){t=n(t,e);var s=-1,c=t.length;if(!c)return!0;for(;++s<c;){var l=a(t[s]);if(l===`__proto__`&&!o.call(e,`__proto__`)||(l===`constructor`||l===`prototype`)&&s<c-1)return!1}var u=i(e,t);return u==null||delete u[a(r(t))]}t.exports=s})),Q6=n(((e,t)=>{var n=nU();function r(e){return n(e)?void 0:e}t.exports=r})),$6=n(((e,t)=>{var n=FU(),r=J6(),i=Z6(),a=RU(),o=lU(),s=Q6(),c=r2(),l=R6(),u=1,d=2,f=4;t.exports=c(function(e,t){var c={};if(e==null)return c;var p=!1;t=n(t,function(t){return t=a(t,e),p||=t.length>1,t}),o(e,l(e),c),p&&(c=r(c,u|d|f,s));for(var m=t.length;m--;)i(c,t[m]);return c})})),e8=t(A6(),1),t8=t(j6(),1),n8=t($6(),1);function r8(){return r8=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},r8.apply(null,arguments)}var i8={dotSize:4,noteWidth:120,noteTextOffset:8,animate:!0},a8=function(e){var t=typeof e;return(0,_.isValidElement)(e)||t===`string`||t===`function`||t===`object`},o8=function(e){var t=typeof e;return t===`string`||t===`function`},s8=function(e){return e.type===`circle`},c8=function(e){return e.type===`dot`},l8=function(e){return e.type===`rect`},u8=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return n.reduce((function(e,n){var a=n.offset||0;return[].concat(e,(0,e8.default)(t,n.match).map((function(e){var t=r(e),o=i(e);return(s8(n)||l8(n))&&(o.size+=2*a,o.width+=2*a,o.height+=2*a),r8({},(0,n8.default)(n,[`match`,`offset`]),t,o,{size:n.size||o.size,datum:e})})))}),[])},d8=function(e,t,n,r){return e4(Z2(Math.atan2(r-t,n-e)))},f8=function(e){var t,n,r=e.x,i=e.y,a=e.noteX,o=e.noteY,s=e.noteWidth,c=s===void 0?i8.noteWidth:s,l=e.noteTextOffset,u=l===void 0?i8.noteTextOffset:l;if((0,t8.default)(a))t=r+a;else{if(a.abs===void 0)throw Error(`noteX should be either a number or an object containing an 'abs' property`);t=a.abs}if((0,t8.default)(o))n=i+o;else{if(o.abs===void 0)throw Error(`noteY should be either a number or an object containing an 'abs' property`);n=o.abs}var d=r,f=i,p=d8(r,i,t,n);if(s8(e)){var m=$2(X2(p),e.size/2);d+=m.x,f+=m.y}if(l8(e)){var h=Math.round((p+90)/45)%8;h===0&&(f-=e.height/2),h===1&&(d+=e.width/2,f-=e.height/2),h===2&&(d+=e.width/2),h===3&&(d+=e.width/2,f+=e.height/2),h===4&&(f+=e.height/2),h===5&&(d-=e.width/2,f+=e.height/2),h===6&&(d-=e.width/2),h===7&&(d-=e.width/2,f-=e.height/2)}var g=t,_=t;return(p+90)%360>180?(g-=c,_-=c):_+=c,{points:[[d,f],[t,n],[_,n]],text:[g,n-u],angle:p+90}},p8=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return(0,_.useMemo)((function(){return u8({data:t,annotations:n,getPosition:r,getDimensions:i})}),[t,n,r,i])},m8=function(e){var t=e.annotations;return(0,_.useMemo)((function(){return t.map((function(e){return r8({},e,{computed:f8(r8({},e))})}))}),[t])},h8=function(e){return(0,_.useMemo)((function(){return f8(e)}),[e])},g8=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,a=sW(),o=F2(),s=o.animate,c=o.config,l=fV({x:n,y:r,config:c,immediate:!s});return typeof i==`function`?(0,_.createElement)(i,{x:n,y:r,datum:t}):(0,G.jsxs)(G.Fragment,{children:[a.annotations.text.outlineWidth>0&&(0,G.jsx)(VV.text,{x:l.x,y:l.y,style:r8({},a.annotations.text,{strokeLinejoin:`round`,strokeWidth:2*a.annotations.text.outlineWidth,stroke:a.annotations.text.outlineColor}),children:i}),(0,G.jsx)(VV.text,{x:l.x,y:l.y,style:(0,n8.default)(a.annotations.text,[`outlineWidth`,`outlineColor`]),children:i})]})},_8=function(e){var t=e.points,n=e.isOutline,r=n!==void 0&&n,i=sW(),a=p4((0,_.useMemo)((function(){var e=t[0];return t.slice(1).reduce((function(e,t){return e+` L`+t[0]+`,`+t[1]}),`M`+e[0]+`,`+e[1])}),[t]));if(r&&i.annotations.link.outlineWidth<=0)return null;var o=r8({},i.annotations.link);return r&&(o.strokeLinecap=`square`,o.strokeWidth=i.annotations.link.strokeWidth+2*i.annotations.link.outlineWidth,o.stroke=i.annotations.link.outlineColor,o.opacity=i.annotations.link.outlineOpacity),(0,G.jsx)(VV.path,{fill:`none`,d:a,style:o})},v8=function(e){var t=e.x,n=e.y,r=e.size,i=sW(),a=F2(),o=a.animate,s=a.config,c=fV({x:t,y:n,radius:r/2,config:s,immediate:!o});return(0,G.jsxs)(G.Fragment,{children:[i.annotations.outline.outlineWidth>0&&(0,G.jsx)(VV.circle,{cx:c.x,cy:c.y,r:c.radius,style:r8({},i.annotations.outline,{fill:`none`,strokeWidth:i.annotations.outline.strokeWidth+2*i.annotations.outline.outlineWidth,stroke:i.annotations.outline.outlineColor,opacity:i.annotations.outline.outlineOpacity})}),(0,G.jsx)(VV.circle,{cx:c.x,cy:c.y,r:c.radius,style:i.annotations.outline})]})},y8=function(e){var t=e.x,n=e.y,r=e.size,i=r===void 0?i8.dotSize:r,a=sW(),o=F2(),s=o.animate,c=o.config,l=fV({x:t,y:n,radius:i/2,config:c,immediate:!s});return(0,G.jsxs)(G.Fragment,{children:[a.annotations.outline.outlineWidth>0&&(0,G.jsx)(VV.circle,{cx:l.x,cy:l.y,r:l.radius,style:r8({},a.annotations.outline,{fill:`none`,strokeWidth:2*a.annotations.outline.outlineWidth,stroke:a.annotations.outline.outlineColor,opacity:a.annotations.outline.outlineOpacity})}),(0,G.jsx)(VV.circle,{cx:l.x,cy:l.y,r:l.radius,style:a.annotations.symbol})]})},b8=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.borderRadius,o=a===void 0?6:a,s=sW(),c=F2(),l=c.animate,u=c.config,d=fV({x:t-r/2,y:n-i/2,width:r,height:i,config:u,immediate:!l});return(0,G.jsxs)(G.Fragment,{children:[s.annotations.outline.outlineWidth>0&&(0,G.jsx)(VV.rect,{x:d.x,y:d.y,rx:o,ry:o,width:d.width,height:d.height,style:r8({},s.annotations.outline,{fill:`none`,strokeWidth:s.annotations.outline.strokeWidth+2*s.annotations.outline.outlineWidth,stroke:s.annotations.outline.outlineColor,opacity:s.annotations.outline.outlineOpacity})}),(0,G.jsx)(VV.rect,{x:d.x,y:d.y,rx:o,ry:o,width:d.width,height:d.height,style:s.annotations.outline})]})},x8=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,a=h8(e);if(!a8(i))throw Error(`note should be a valid react element`);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(_8,{points:a.points,isOutline:!0}),s8(e)&&(0,G.jsx)(v8,{x:n,y:r,size:e.size}),c8(e)&&(0,G.jsx)(y8,{x:n,y:r,size:e.size}),l8(e)&&(0,G.jsx)(b8,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),(0,G.jsx)(_8,{points:a.points}),(0,G.jsx)(g8,{datum:t,x:a.text[0],y:a.text[1],note:i})]})},S8=function(e,t){t.forEach((function(t,n){var r=t[0],i=t[1];n===0?e.moveTo(r,i):e.lineTo(r,i)}))},C8=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach((function(t){if(!o8(t.note))throw Error(`note is invalid for canvas implementation`);r.annotations.link.outlineWidth>0&&(e.lineCap=`square`,e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),S8(e,t.computed.points),e.stroke(),e.lineCap=`butt`),s8(t)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),c8(t)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),l8(t)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(t.x-t.width/2,t.y-t.height/2,t.width,t.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),S8(e,t.computed.points),e.stroke(),s8(t)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),c8(t)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.fill()),l8(t)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(t.x-t.width/2,t.y-t.height/2,t.width,t.height),e.stroke()),typeof t.note==`function`?t.note(e,{datum:t.datum,x:t.computed.text[0],y:t.computed.text[1],theme:r}):(e.font=r.annotations.text.fontSize+`px `+r.annotations.text.fontFamily,e.textAlign=`left`,e.textBaseline=`alphabetic`,e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin=`round`,e.strokeText(t.note,t.computed.text[0],t.computed.text[1]),e.lineJoin=`miter`),e.fillText(t.note,t.computed.text[0],t.computed.text[1]))})),e.restore())};function w8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function T8(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if(typeof e==`string`)return w8(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w8(e,t):void 0}}(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
110
110
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E8(){return E8=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},E8.apply(null,arguments)}var D8={nivo:[`#e8c1a0`,`#f47560`,`#f1e15b`,`#e8a838`,`#61cdbb`,`#97e3d5`],category10:rQ,accent:iQ,dark2:aQ,paired:oQ,pastel1:sQ,pastel2:cQ,set1:lQ,set2:uQ,set3:dQ,tableau10:fQ},O8=Object.keys(D8),k8={brown_blueGreen:mQ,purpleRed_green:gQ,pink_yellowGreen:vQ,purple_orange:bQ,red_blue:SQ,red_grey:wQ,red_yellow_blue:EQ,red_yellow_green:OQ,spectral:AQ},A8=Object.keys(k8),j8={brown_blueGreen:hQ,purpleRed_green:_Q,pink_yellowGreen:yQ,purple_orange:xQ,red_blue:CQ,red_grey:TQ,red_yellow_blue:DQ,red_yellow_green:kQ,spectral:jQ},M8={blues:n$,greens:i$,greys:o$,oranges:f$,purples:c$,reds:u$,blue_green:MQ,blue_purple:PQ,green_blue:IQ,orange_red:RQ,purple_blue_green:BQ,purple_blue:HQ,purple_red:WQ,red_purple:KQ,yellow_green_blue:JQ,yellow_green:XQ,yellow_orange_brown:QQ,yellow_orange_red:e$},N8=Object.keys(M8),P8={blues:r$,greens:a$,greys:s$,oranges:p$,purples:l$,reds:d$,turbo:w$,viridis:E$,inferno:O$,magma:D$,plasma:k$,cividis:m$,warm:g$,cool:_$,cubehelixDefault:h$,blue_green:NQ,blue_purple:FQ,green_blue:LQ,orange_red:zQ,purple_blue_green:VQ,purple_blue:UQ,purple_red:GQ,red_purple:qQ,yellow_green_blue:YQ,yellow_green:ZQ,yellow_orange_brown:$Q,yellow_orange_red:t$},F8=E8({},D8,k8,M8);Object.keys(F8);var I8=function(e){return O8.includes(e)},L8=function(e){return A8.includes(e)},R8=function(e){return N8.includes(e)},z8=E8({},j8,P8,{rainbow:y$,sinebow:C$});Object.keys(z8);var B8=function(e){return e.theme!==void 0},V8=function(e){return e.from!==void 0},H8=function(e,t){if(typeof e==`function`)return e;if((0,A2.default)(e)){if(B8(e)){if(t===void 0)throw Error(`Unable to use color from theme as no theme was provided`);var n=(0,GU.default)(t,e.theme);if(n===void 0)throw Error(`Color from theme is undefined at path: '`+e.theme+`'`);return function(){return n}}if(V8(e)){var r=function(t){return(0,GU.default)(t,e.from)};if(Array.isArray(e.modifiers)){for(var i,a=[],o=function(){var e=i.value,t=e[0],n=e[1];if(t===`brighter`)a.push((function(e){return e.brighter(n)}));else if(t===`darker`)a.push((function(e){return e.darker(n)}));else{if(t!==`opacity`)throw Error(`Invalid color modifier: '`+t+`', must be one of: 'brighter', 'darker', 'opacity'`);a.push((function(e){return e.opacity=n,e}))}},s=T8(e.modifiers);!(i=s()).done;)o();return a.length===0?r:function(e){return a.reduce((function(e,t){return t(e)}),fG(r(e))).toString()}}return r}throw Error(`Invalid color spec, you should either specify 'theme' or 'from' when using a config object`)}return function(){return e}},U8=function(e,t){return(0,_.useMemo)((function(){return H8(e,t)}),[e,t])},W8=function(e,t){if(typeof e==`function`)return e;var n=typeof t==`function`?t:function(e){return(0,GU.default)(e,t)};if(Array.isArray(e)){var r=NJ(e),i=function(e){return r(n(e))};return i.scale=r,i}if((0,A2.default)(e)){if(function(e){return e.datum!==void 0}(e))return function(t){return(0,GU.default)(t,e.datum)};if(function(e){return e.scheme!==void 0}(e)){if(I8(e.scheme)){var a=NJ(F8[e.scheme]),o=function(e){return a(n(e))};return o.scale=a,o}if(L8(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>11))throw Error(`Invalid size '`+e.size+`' for diverging color scheme '`+e.scheme+`', must be between 3~11`);var s=NJ(F8[e.scheme][e.size||11]),c=function(e){return s(n(e))};return c.scale=s,c}if(R8(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>9))throw Error(`Invalid size '`+e.size+`' for sequential color scheme '`+e.scheme+`', must be between 3~9`);var l=NJ(F8[e.scheme][e.size||9]),u=function(e){return l(n(e))};return u.scale=l,u}}throw Error(`Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property`)}return function(){return e}},G8=function(e,t){return(0,_.useMemo)((function(){return W8(e,t)}),[e,t])},K8=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,c=s===void 0?0:s,l=e.borderColor;return(0,G.jsx)(`circle`,{r:r/2,cx:t+r/2,cy:n+r/2,fill:i,opacity:o,strokeWidth:c,stroke:l===void 0?`transparent`:l,style:{pointerEvents:`none`}})},q8=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,c=s===void 0?0:s,l=e.borderColor;return(0,G.jsx)(`g`,{transform:`translate(`+t+`,`+n+`)`,children:(0,G.jsx)(`path`,{d:`
|
|
111
111
|
M`+r/2+` 0
|
|
112
112
|
L`+.8*r+` `+r/2+`
|
|
@@ -119,4 +119,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
119
119
|
L0 `+r+`
|
|
120
120
|
L`+r/2+` 0
|
|
121
121
|
`,fill:i,opacity:o,strokeWidth:c,stroke:l===void 0?`transparent`:l,style:{pointerEvents:`none`}})})};function X8(){return X8=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},X8.apply(null,arguments)}var Z8={translateX:0,translateY:0,padding:0,itemsSpacing:0,itemDirection:`left-to-right`,justify:!1,symbolShape:`square`,symbolSize:16,symbolSpacing:8},Q8={top:0,right:0,bottom:0,left:0},$8=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}:X8({},Q8,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}},e5=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}},t5=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}},n5={circle:K8,diamond:q8,square:J8,triangle:Y8},r5=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?Z8.itemDirection:o,c=e.justify,l=c===void 0?Z8.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?Z8.symbolShape:h,v=e.symbolSize,y=v===void 0?Z8.symbolSize:v,b=e.symbolSpacing,x=b===void 0?Z8.symbolSpacing:b,S=e.symbolBorderWidth,C=S===void 0?0:S,w=e.symbolBorderColor,T=w===void 0?`transparent`:w,E=e.onClick,D=e.onMouseEnter,O=e.onMouseLeave,k=e.toggleSerie,A=e.effects,j=(0,_.useState)({}),M=j[0],N=j[1],P=sW(),F=(0,_.useCallback)((function(e){A&&N(A.filter((function(e){return e.on===`hover`})).reduce((function(e,t){return X8({},e,t.style)}),{})),D?.(a,e)}),[D,a,A]),I=(0,_.useCallback)((function(e){A&&N(A.filter((function(e){return e.on!==`hover`})).reduce((function(e,t){return X8({},e,t.style)}),{})),O?.(a,e)}),[O,a,A]),L=t5({direction:s,justify:l,symbolSize:M.symbolSize??y,symbolSpacing:x,width:r,height:i}),R=L.symbolX,z=L.symbolY,B=L.labelX,ee=L.labelY,te=L.labelAnchor,ne=L.labelAlignment,re=[E,D,O,k].some((function(e){return e!==void 0})),ie=typeof g==`function`?g:n5[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:re?`pointer`:`auto`},onClick:function(e){E?.(a,e),k?.(a.id)},onMouseEnter:F,onMouseLeave:I}),_.createElement(ie,X8({id:a.id,x:R,y:z,size:M.symbolSize??y,fill:a.fill??a.color??`black`,borderWidth:M.symbolBorderWidth??C,borderColor:M.symbolBorderColor??T},a.hidden?P.legends.hidden.symbol:void 0)),(0,G.jsx)(R4,{textAnchor:te,style:X8({},P.legends.text,{fill:M.itemTextColor??u??P.legends.text.fill??`black`,dominantBaseline:ne,pointerEvents:`none`,userSelect:`none`},a.hidden?P.legends.hidden.text:void 0),x:B,y:ee,children:a.label})]})},i5=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,a=e.padding,o=a===void 0?Z8.padding:a,s=e.justify,c=e.effects,l=e.itemWidth,u=e.itemHeight,d=e.itemDirection,f=d===void 0?Z8.itemDirection:d,p=e.itemsSpacing,m=p===void 0?Z8.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=$8({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)(r5,{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)}))})},a5=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,i=e.translateX,a=i===void 0?Z8.translateX:i,o=e.translateY,s=o===void 0?Z8.translateY:o,c=e.anchor,l=e.direction,u=e.padding,d=u===void 0?Z8.padding:u,f=e.justify,p=e.itemsSpacing,m=p===void 0?Z8.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=$8({itemCount:t.length,itemsSpacing:m,itemWidth:h,itemHeight:g,direction:l,padding:d}),M=j.width,N=j.height,P=e5({anchor:c,translateX:a,translateY:s,containerWidth:n,containerHeight:r,width:M,height:N}),F=P.x,I=P.y;return(0,G.jsx)(i5,{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})},o5={start:`left`,middle:`center`,end:`right`},s5=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=$8({itemCount:n.length,itemWidth:_,itemHeight:v,itemsSpacing:g,direction:u,padding:f}),O=D.width,k=D.height,A=D.padding,j=e5({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),M4(e,E.legends.text),n.forEach((function(t,n){var r=n*P+A.left,i=n*F+A.top,a=t5({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=o5[u],d===`central`&&(e.textBaseline=`middle`),N4(e,X8({},E.legends.text,{fill:x??E.legends.text.fill}),String(t.label),r+c,i+l)})),e.restore()},c5=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 l5(){return l5=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},l5.apply(null,arguments)}function u5(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 d5,f5=function(e){var t=e.bars,n=e.annotations,r=p8({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)(x8,l5({},e),t)}))})},p5=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)(a5,l5({},a,{containerWidth:t,containerHeight:n,data:a.data??o,toggleSerie:a.toggleSerie&&a.dataFrom===`keys`?i:void 0}),r)}))})},m5=[`data`],h5=function(e){var t=e.bar,n=t.data,r=u5(t,m5),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,v=e.label,y=e.shouldRenderLabel,b=e.isInteractive,x=e.onClick,S=e.onMouseEnter,C=e.onMouseLeave,w=e.tooltip,T=e.isFocusable,E=e.ariaLabel,D=e.ariaLabelledBy,O=e.ariaDescribedBy,k=e.ariaDisabled,A=e.ariaHidden,j=sW(),M=CW(),N=M.showTooltipFromEvent,P=M.showTooltipAt,F=M.hideTooltip,I=(0,_.useMemo)((function(){return function(){return(0,_.createElement)(w,l5({},r,n))}}),[w,r,n]),L=(0,_.useCallback)((function(e){x?.(l5({color:r.color},n),e)}),[r,n,x]),R=(0,_.useCallback)((function(e){return N(I(),e)}),[N,I]),z=(0,_.useCallback)((function(e){S?.(n,e),N(I(),e)}),[n,S,N,I]),B=(0,_.useCallback)((function(e){C?.(n,e),F()}),[n,F,C]),ee=(0,_.useCallback)((function(){P(I(),[r.absX+r.width/2,r.absY])}),[P,I,r]),te=(0,_.useCallback)((function(){F()}),[F]);return(0,G.jsxs)(VV.g,{transform:f,children:[(0,G.jsx)(VV.rect,{width:xV(p,(function(e){return Math.max(e,0)})),height:xV(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:b?z:void 0,onMouseMove:b?R:void 0,onMouseLeave:b?B:void 0,onClick:b?L:void 0,onFocus:b&&T?ee:void 0,onBlur:b&&T?te:void 0,"data-testid":`bar.item.`+n.id+`.`+n.index}),y&&(0,G.jsx)(R4,{x:u,y:d,textAnchor:m,dominantBaseline:`central`,fillOpacity:l,style:l5({},j.labels.text,{pointerEvents:`none`,fill:c}),children:v})]})},g5=[`color`,`label`],_5={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=u5(e,g5);return(0,G.jsx)(mW,{id:n,value:r.formattedValue,enableChip:!0,color:t})},tooltipLabel:function(e){return e.id+` - `+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],enableTotals:!1,totalsOffset:10},v5=l5({},_5,{layers:[`grid`,`axes`,`bars`,`totals`,`markers`,`legends`,`annotations`],axisTop:null,axisRight:null,axisBottom:{},axisLeft:{},barComponent:h5,defs:[],fill:[],markers:[],animate:!0,animateOnMount:!1,motionConfig:`default`,role:`img`,isFocusable:!1}),y5=l5({},_5,{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(),c5(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,N4(e,p,d,o+m,s+h))},pixelRatio:typeof window<`u`&&(d5=window.devicePixelRatio)!=null?d5:1}),b5=function(e,t,n,r,i,a){return c6(r,{all:e.map(t),min:0,max:0},i,a).padding(n)},x5=function(e,t){return e.map((function(e){return l5({},t.reduce((function(e,t){return e[t]=null,e}),{}),e)}))},S5=function(e){return Object.keys(e).reduce((function(t,n){return e[n]&&(t[n]=e[n]),t}),{})},C5=function(e){return[e,Number(e)]};function w5(e,t,n,r){return e===void 0&&(e=_5.layout),n===void 0&&(n=_5.labelPosition),r===void 0&&(r=_5.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 T5=[`layout`,`width`,`height`,`padding`,`innerPadding`,`valueScale`,`indexScale`,`hiddenIds`],E5=function(e,t){return e>t},D5=function(e,t){return e<t},O5=function(e,t){return Array.from(` `.repeat(t-e),(function(t,n){return e+n}))},k5=function(e){return E5(e,0)?0:e},A5=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?D5:E5,g=i.map(S5),_=[];return d.forEach((function(e,n){return O5(0,f.domain().length).forEach((function(l){var d,v=C5(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)})}))})),_},j5=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?D5:E5,g=i.map(S5),_=[];return l.forEach((function(e,n){return O5(0,p.domain().length).forEach((function(l){var u,v=C5(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)})}))})),_},M5=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=u5(e,T5),h=m.keys.filter((function(e){return!p.includes(e)})),g=x5(m.data,h),_=r===`vertical`?[`y`,`x`,i]:[`x`,`y`,a],v=_[0],y=_[1],b=_[2],x=b5(g,m.getIndex,s,d,b,y),S=u.min===`auto`?k5:function(e){return e},C=g.reduce((function(e,t){return[].concat(e,h.map((function(e){return t[e]})))}),[]).filter(Boolean),w=c6(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=[l5({},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`?A5.apply(void 0,k):j5.apply(void 0,k):[]}},N5=[`data`,`layout`,`width`,`height`,`padding`,`valueScale`,`indexScale`,`hiddenIds`],P5=function(e){var t;return e.some(Array.isArray)?P5((t=[]).concat.apply(t,e)):e},F5=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=C5(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:S5(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},I5=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=C5(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:S5(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},L5=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=u5(e,N5),m=p.keys.filter((function(e){return!f.includes(e)})),h=lJ().keys(m).offset(uJ)(x5(r,m)),g=i===`vertical`?[`y`,`x`,a]:[`x`,`y`,o],_=g[0],v=g[1],y=g[2],b=b5(r,p.getIndex,c,u,y,v),x=(n=P5(h),l.type===`log`?n.filter((function(e){return e!==0})):n),S=c6(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=[l5({},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`?F5.apply(void 0,O):I5.apply(void 0,O):[]}},R5=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=x4(o??(r===`indexes`?`indexValue`:`id`));return r===`indexes`?function(e,t,n){var r=(0,W3.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,W3.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)},z5=function(e,t,n){var r=e.get(t)||0;e.set(t,r+n)},B5=function(e,t,n){var r=e.get(t)||0;e.set(t,r+(n>0?n:0))},V5=function(e,t,n){var r=e.get(t)||0;e.set(t,Math.max(r,Number(n)))},H5=function(e,t){var n=e.get(t)||0;e.set(t,n+1)},U5=function(e){var t,n=e.indexBy,r=n===void 0?_5.indexBy:n,i=e.keys,a=i===void 0?_5.keys:i,o=e.label,s=o===void 0?_5.label:o,c=e.tooltipLabel,l=c===void 0?_5.tooltipLabel:c,u=e.valueFormat,d=e.colors,f=d===void 0?_5.colors:d,p=e.colorBy,m=p===void 0?_5.colorBy:p,h=e.borderColor,g=h===void 0?_5.borderColor:h,v=e.labelTextColor,y=v===void 0?_5.labelTextColor:v,b=e.groupMode,x=b===void 0?_5.groupMode:b,S=e.layout,C=S===void 0?_5.layout:S,w=e.data,T=e.margin,E=e.width,D=e.height,O=e.padding,k=O===void 0?_5.padding:O,A=e.innerPadding,j=A===void 0?_5.innerPadding:A,M=e.valueScale,N=M===void 0?_5.valueScale:M,P=e.indexScale,F=P===void 0?_5.indexScale:P,I=e.initialHiddenIds,L=I===void 0?_5.initialHiddenIds:I,R=e.enableLabel,z=R===void 0?_5.enableLabel:R,B=e.labelSkipWidth,ee=B===void 0?_5.labelSkipWidth:B,te=e.labelSkipHeight,ne=te===void 0?_5.labelSkipHeight:te,re=e.legends,ie=re===void 0?_5.legends:re,ae=e.legendLabel,oe=e.totalsOffset,se=oe===void 0?_5.totalsOffset:oe,V=(0,_.useState)(L??[]),H=V[0],ce=V[1],le=(0,_.useCallback)((function(e){ce((function(t){return t.indexOf(e)>-1?t.filter((function(t){return t!==e})):[].concat(t,[e])}))}),[]),U=S4(r),W=S4(s),ue=S4(l),de=b4(u),fe=sW(),pe=G8(f,m),me=U8(g,fe),he=U8(y,fe),ge=(x===`grouped`?M5:L5)({layout:C,data:w,getIndex:U,keys:a,width:E,height:D,getColor:pe,padding:k,innerPadding:j,valueScale:N,indexScale:F,hiddenIds:H,formatValue:de,getTooltipLabel:ue,margin:T}),_e=ge.bars,ve=ge.xScale,ye=ge.yScale,be=(0,_.useMemo)((function(){return _e.filter((function(e){return e.data.value!==null})).map((function(e,t){return l5({},e,{index:t})}))}),[_e]),xe=(0,_.useCallback)((function(e){var t=e.width,n=e.height;return!!z&&!(ee>0&&t<ee)&&!(ne>0&&n<ne)}),[z,ee,ne]),Se=(0,_.useMemo)((function(){return a.map((function(e){var t=_e.find((function(t){return t.data.id===e}));return l5({},t,{data:l5({id:e},t?.data,{hidden:H.includes(e)})})}))}),[H,a,_e]),Ce=(t=N.reverse)!=null&&t;return{bars:_e,barsWithValue:be,xScale:ve,yScale:ye,getIndex:U,getLabel:W,getTooltipLabel:ue,formatValue:de,getColor:pe,getBorderColor:me,getLabelColor:he,shouldRenderBarLabel:xe,hiddenIds:H,toggleSerie:le,legendsWithData:(0,_.useMemo)((function(){return ie.map((function(e){return[e,R5({bars:e.dataFrom===`keys`?Se:_e,direction:e.direction,from:e.dataFrom,groupMode:x,layout:C,legendLabel:ae,reverse:Ce})]}))}),[ie,Se,_e,x,C,ae,Ce]),barTotals:(0,_.useMemo)((function(){return function(e,t,n,r,i,a,o){r===void 0&&(r=_5.layout),i===void 0&&(i=_5.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;z5(c,n,Number(r)),B5(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;z5(c,n,Number(r)),V5(f,n,Number(r)),H5(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,C,x,se,de)}),[_e,ve,ye,C,x,se,de])}},W5=function(e){var t=e.data,n=e.springConfig,r=e.animate,i=e.layout,a=i===void 0?v5.layout:i,o=sW();return mV(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)(VV.text,{x:e.x,y:e.y,fillOpacity:e.labelOpacity,style:l5({},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)}))},G5=[`isInteractive`,`animate`,`motionConfig`,`theme`,`renderWrapper`],K5=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,v=g===void 0?v5.axisBottom:g,y=e.axisLeft,b=y===void 0?v5.axisLeft:y,x=e.enableGridX,S=x===void 0?v5.enableGridX:x,C=e.enableGridY,w=C===void 0?v5.enableGridY:C,T=e.gridXValues,E=e.gridYValues,D=e.layers,O=D===void 0?v5.layers:D,k=e.barComponent,A=k===void 0?v5.barComponent:k,j=e.enableLabel,M=j===void 0?v5.enableLabel:j,N=e.label,P=e.labelSkipWidth,F=P===void 0?v5.labelSkipWidth:P,I=e.labelSkipHeight,L=I===void 0?v5.labelSkipHeight:I,R=e.labelTextColor,z=e.labelPosition,B=z===void 0?v5.labelPosition:z,ee=e.labelOffset,te=ee===void 0?v5.labelOffset:ee,ne=e.markers,re=ne===void 0?v5.markers:ne,ie=e.colorBy,ae=e.colors,oe=e.defs,se=oe===void 0?v5.defs:oe,V=e.fill,H=V===void 0?v5.fill:V,ce=e.borderRadius,le=ce===void 0?v5.borderRadius:ce,U=e.borderWidth,W=U===void 0?v5.borderWidth:U,ue=e.borderColor,de=e.annotations,fe=de===void 0?v5.annotations:de,pe=e.legendLabel,me=e.tooltipLabel,he=e.valueFormat,ge=e.isInteractive,_e=ge===void 0?v5.isInteractive:ge,ve=e.tooltip,ye=ve===void 0?v5.tooltip:ve,be=e.onClick,xe=e.onMouseEnter,Se=e.onMouseLeave,Ce=e.legends,we=e.role,Te=we===void 0?v5.role:we,Ee=e.ariaLabel,De=e.ariaLabelledBy,Oe=e.ariaDescribedBy,ke=e.isFocusable,Ae=ke===void 0?v5.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?v5.enableTotals:Le,ze=e.totalsOffset,Be=ze===void 0?v5.totalsOffset:ze,Ve=e.forwardedRef,He=F2(),Ue=He.animate,We=He.config,Ge=_4(o,s,a),Ke=Ge.outerWidth,qe=Ge.outerHeight,Je=Ge.margin,Ye=Ge.innerWidth,Xe=Ge.innerHeight,Ze=U5({indexBy:r,label:N,tooltipLabel:me,valueFormat:he,colors:ae,colorBy:ie,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=w5(l,(t=u?.reverse)!=null&&t,B,te),ft=mV($e,{keys:function(e){return e.key},from:function(e){return l5({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 l5({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 l5({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 l5({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`?{}:l5({},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,_.useMemo)((function(){return{borderRadius:le,borderWidth:W,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}}),[le,W,M,rt,_e,L,F,be,xe,Se,ye,Ae,je,Me,Ne,Pe,Fe]),mt=A4(se,Qe,H,{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)(f5,{bars:Qe,annotations:fe},`annotations`)),O.includes(`axes`)&&(ht.axes=(0,G.jsx)(S6,{xScale:et,yScale:tt,width:Ye,height:Xe,top:m,right:h,bottom:v,left:b},`axes`)),O.includes(`bars`)&&(ht.bars=(0,G.jsx)(_.Fragment,{children:ft((function(e,t){return(0,_.createElement)(A,l5({},pt,{bar:t,style:e,shouldRenderLabel:ot(t),label:nt(t.data)}))}))},`bars`)),O.includes(`grid`)&&(ht.grid=(0,G.jsx)(T6,{width:Ye,height:Xe,xScale:S?et:null,yScale:w?tt:null,xValues:T,yValues:E},`grid`)),O.includes(`legends`)&&(ht.legends=(0,G.jsx)(p5,{width:Ye,height:Xe,legends:ct,toggleSerie:st},`legends`)),O.includes(`markers`)&&(ht.markers=(0,G.jsx)(f4,{markers:re,width:Ye,height:Xe,xScale:et,yScale:tt},`markers`)),O.includes(`totals`)&&Re&&(ht.totals=(0,G.jsx)(W5,{data:lt,springConfig:We,animate:Ue,layout:l},`totals`));var gt=l5({},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)(l4,{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)(_.Fragment,{children:(0,_.createElement)(e,gt)},t):ht?.[e]??null}))})},q5=(0,_.forwardRef)((function(e,t){var n=e.isInteractive,r=n===void 0?v5.isInteractive:n,i=e.animate,a=i===void 0?v5.animate:i,o=e.motionConfig,s=o===void 0?v5.motionConfig:o,c=e.theme,l=e.renderWrapper,u=u5(e,G5);return(0,G.jsx)(R2,{animate:a,isInteractive:r,motionConfig:s,renderWrapper:l,theme:c,children:(0,G.jsx)(K5,l5({},u,{isInteractive:r,forwardedRef:t}))})})),J5=[`isInteractive`,`renderWrapper`,`theme`],Y5=function(e,t,n,r){return e.find((function(e){return T4(e.x+t.left,e.y+t.top,e.width,e.height,n,r)}))},X5=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,v=g===void 0?y5.axisBottom:g,y=e.axisLeft,b=y===void 0?y5.axisLeft:y,x=e.enableGridX,S=x===void 0?y5.enableGridX:x,C=e.enableGridY,w=C===void 0?y5.enableGridY:C,T=e.gridXValues,E=e.gridYValues,D=e.labelPosition,O=D===void 0?y5.labelPosition:D,k=e.labelOffset,A=k===void 0?y5.labelOffset:k,j=e.layers,M=j===void 0?y5.layers:j,N=e.renderBar,P=N===void 0?y5.renderBar:N,F=e.enableLabel,I=F===void 0?y5.enableLabel:F,L=e.label,R=e.labelSkipWidth,z=R===void 0?y5.labelSkipWidth:R,B=e.labelSkipHeight,ee=B===void 0?y5.labelSkipHeight:B,te=e.labelTextColor,ne=e.colorBy,re=e.colors,ie=e.borderRadius,ae=ie===void 0?y5.borderRadius:ie,oe=e.borderWidth,se=oe===void 0?y5.borderWidth:oe,V=e.borderColor,H=e.annotations,ce=H===void 0?y5.annotations:H,le=e.legendLabel,U=e.tooltipLabel,W=e.valueFormat,ue=e.isInteractive,de=ue===void 0?y5.isInteractive:ue,fe=e.tooltip,pe=fe===void 0?y5.tooltip:fe,me=e.onClick,he=e.onMouseEnter,ge=e.onMouseLeave,_e=e.legends,ve=e.pixelRatio,ye=ve===void 0?y5.pixelRatio:ve,be=e.role,xe=e.forwardedRef,Se=e.enableTotals,Ce=Se===void 0?y5.enableTotals:Se,we=e.totalsOffset,Te=we===void 0?y5.totalsOffset:we,Ee=(0,_.useRef)(null),De=sW(),Oe=_4(o,s,a),ke=Oe.margin,Ae=Oe.innerWidth,je=Oe.innerHeight,Me=Oe.outerWidth,Ne=Oe.outerHeight,Pe=U5({indexBy:r,label:L,tooltipLabel:U,valueFormat:W,colors:re,colorBy:ne,borderColor:V,labelTextColor:te,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:ee,legends:_e,legendLabel:le,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=CW(),Je=qe.showTooltipFromEvent,Ye=qe.hideTooltip,Xe=m8({annotations:p8({data:Fe,annotations:ce,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,_.useMemo)((function(){return{borderRadius:ae,borderWidth:se,isInteractive:de,isFocusable:!1,labelSkipWidth:z,labelSkipHeight:ee,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}}),[ae,se,de,z,ee,ke,o,s,Ae,je,Fe,We,I,Le,Re,pe,Be,me,he,ge,Ke]),Qe=b4(W),$e=w5(l,(t=u?.reverse)!=null&&t,O,A);(0,_.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,S&&O6(e,{width:Ae,height:je,scale:Le,axis:`x`,values:T}),w&&O6(e,{width:Ae,height:je,scale:Re,axis:`y`,values:E})):t===`axes`?D6(e,{xScale:Le,yScale:Re,width:Ae,height:je,top:m,right:h,bottom:v,left:b,theme:De}):t===`bars`?(M4(e,De.text),Ie.forEach((function(t){P(e,l5({bar:t,borderColor:Ve(t),borderRadius:ae,borderWidth:se,label:ze(t.data),shouldRenderLabel:Ue(t),labelStyle:l5({},De.labels.text,{fill:He(t)})},$e(t.width,t.height)))}))):t===`legends`?We.forEach((function(t){var n=t[0],r=t[1];s5(e,l5({},n,{data:r,containerWidth:Ae,containerHeight:je,theme:De}))})):t===`annotations`?C8(e,{annotations:Xe,theme:De}):t===`totals`&&Ce?function(e,t,n,r){r===void 0&&(r=y5.layout),M4(e,n.labels.text),e.textBaseline=r===`vertical`?`alphabetic`:`middle`,e.textAlign=r===`vertical`?`center`:`start`,t.forEach((function(t){N4(e,n.labels.text,t.formattedValue,t.x,t.y)}))}(e,Ge,De,l):typeof t==`function`&&t(e,Ze)})),e.save()}}),[v,b,h,m,Ie,ae,se,Xe,S,w,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,_.useCallback)((function(e){if(Fe&&Ee.current){var t=E4(Ee.current,e),n=t[0],r=t[1],i=Y5(Fe,ke,n,r);i===void 0?Ye():(Je((0,_.createElement)(pe,l5({},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,_.useCallback)((function(e){if(Fe&&Ee.current){Ye();var t=E4(Ee.current,e),n=t[0],r=t[1],i=Y5(Fe,ke,n,r);i&&ge?.(i.data,e)}}),[Ye,ke,ge,Fe]),nt=(0,_.useCallback)((function(e){if(Fe&&Ee.current){var t=E4(Ee.current,e),n=t[0],r=t[1],i=Y5(Fe,ke,n,r);i!==void 0&&me?.(l5({},i.data,{color:i.color}),e)}}),[ke,me,Fe]);return(0,G.jsx)(`canvas`,{ref:j4(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})},Z5=(0,_.forwardRef)((function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,a=u5(e,J5);return(0,G.jsx)(R2,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:(0,G.jsx)(X5,l5({},a,{isInteractive:n,forwardedRef:t}))})})),Q5=[`defaultWidth`,`defaultHeight`,`onResize`,`debounceResize`],$5=(0,_.forwardRef)((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=u5(e,Q5);return(0,G.jsx)(V2,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(e){var n=e.width,r=e.height;return(0,G.jsx)(q5,l5({},o,{width:n,height:r,ref:t}))}})})),e7=[`defaultWidth`,`defaultHeight`,`onResize`,`debounceResize`];(0,_.forwardRef)((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=u5(e,e7);return(0,G.jsx)(V2,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(e){var n=e.width,r=e.height;return(0,G.jsx)(Z5,l5({},o,{width:n,height:r,ref:t}))}})}));function t7(){return t7=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},t7.apply(null,arguments)}var n7={pointerEvents:`none`},r7=function(e){var t=e.label,n=e.style,r=sW();return(0,G.jsx)(VV.g,{transform:n.transform,opacity:n.progress,style:n7,children:(0,G.jsx)(R4,{textAnchor:`middle`,dominantBaseline:`central`,style:t7({},r.labels.text,{fill:n.textColor}),children:t})})},i7=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},a7=function(e,t){return e.filter((function(e){return Math.abs(Z2(e.arc.endAngle-e.arc.startAngle))>=t}))},o7={startAngle:{enter:function(e){return t7({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return t7({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return t7({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return t7({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return t7({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return t7({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return t7({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return t7({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return t7({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return t7({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return t7({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return t7({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return t7({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return t7({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return t7({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return t7({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},s7=function(e,t){return(0,_.useMemo)((function(){var n=o7[e];return{enter:function(e){return t7({progress:0},n.enter(e.arc),t?t.enter(e):{})},update:function(e){return t7({progress:1},n.update(e.arc),t?t.update(e):{})},leave:function(e){return t7({progress:0},n.leave(e.arc),t?t.leave(e):{})}}}),[e,t])},c7=function(e,t){return $2(Q2(e)-Math.PI/2,e.innerRadius+(e.outerRadius-e.innerRadius)*t)},l7=function(e){return function(t,n,r,i){return xV([t,n,r,i],(function(t,n,r,i){var a=c7({startAngle:t,endAngle:n,innerRadius:r,outerRadius:i},e);return`translate(`+a.x+`,`+a.y+`)`}))}},u7=function(e,t,n,r){t===void 0&&(t=.5),n===void 0&&(n=`innerRadius`);var i=F2(),a=i.animate,o=i.config,s=s7(n,r);return{transition:mV(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:l7(t)}},d7=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,_.useMemo)((function(){return a7(t,a).map((function(e){var t=c7(e.arc,r);return t7({},s(e),{x:t.x,y:t.y,data:e})}))}),[t,r,a,s])},f7=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?r7:l,d=S4(i),f=U8(c,sW()),p=u7((0,_.useMemo)((function(){return n.filter((function(e){var t=Math.abs(Z2(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,_.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)}})}))})},p7=function(e,t,n){M4(e,n.labels.text),e.textAlign=`center`,e.textBaseline=`middle`,t.forEach((function(t){N4(e,t7({},n.labels.text,{fill:t.textColor}),String(t.label),t.x,t.y)}))},m7=function(e){var t=e.data,n=e.offset,r=e.skipAngle,i=e.label,a=e.textColor,o=S4(i),s=U8(a,sW());return d7({data:t,offset:n,skipAngle:r,computeExtraProps:(0,_.useCallback)((function(e){return{label:o(e),textColor:s(e)}}),[o,s])})},h7=function(e){var t=e.label,n=e.style,r=sW();return(0,G.jsxs)(VV.g,{opacity:n.opacity,children:[(0,G.jsx)(VV.path,{fill:`none`,stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),(0,G.jsx)(R4,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:`central`,style:t7({},r.labels.text,{fill:n.textColor}),children:t})]})},g7=function(e){var t=i7(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?`start`:`end`},_7=function(e,t,n,r){var i,a,o=i7(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),s=$2(o,e.outerRadius+t),c=$2(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]}},v7=pq().x((function(e){return e.x})).y((function(e){return e.y})),y7=function(e,t,n,r,i,a,o){return xV([e,t,n,r,i,a,o],(function(e,t,n,r,i,a,o){var s=_7({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r},i,a,o).points;return v7(s)}))},b7=function(e,t,n,r){return xV([e,t,n,r],(function(e,t,n,r){return g7({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r})}))},x7=function(e,t,n,r,i,a,o,s){return xV([e,t,n,r,i,a,o,s],(function(e,t,n,r,i,a,o,s){var c=_7({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+`)`}))},S7=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=F2(),f=d.animate,p=d.config,m=sW(),h=U8(l,m),g=U8(u,m),v=function(e,t){return(0,_.useMemo)((function(){return a7(e,t)}),[e,t])}(t,s),y=function(e){var t=e.offset,n=e.diagonalLength,r=e.straightLength,i=e.textOffset,a=e.getLinkColor,o=e.getTextColor;return(0,_.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:mV(v,{keys:function(e){return e.id},initial:y.update,from:y.enter,enter:y.update,update:y.update,leave:y.leave,config:p,immediate:!f}),interpolateLink:y7,interpolateTextAnchor:b7,interpolateTextPosition:x7}},C7=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?h7:f,m=S4(r),h=S7({data:n,skipAngle:i,offset:a,diagonalLength:o,straightLength:s,textOffset:l,linkColor:d,textColor:u}),g=h.transition,v=h.interpolateLink,y=h.interpolateTextAnchor,b=h.interpolateTextPosition,x=p;return(0,G.jsx)(`g`,{transform:`translate(`+t[0]+`,`+t[1]+`)`,children:g((function(e,t){return(0,_.createElement)(x,{key:t.id,datum:t,label:m(t),style:t7({},e,{thickness:c,path:v(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,e.offset,e.diagonalLength,e.straightLength),textAnchor:y(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius),textPosition:b(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,e.offset,e.diagonalLength,e.straightLength,e.textOffset)})})}))})},w7=function(e,t,n,r){e.textBaseline=`middle`,M4(e,n.labels.text),t.forEach((function(t){e.textAlign=t4.canvas.align[t.textAnchor],N4(e,t7({},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()}))},T7=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,_.useMemo)((function(){return t.filter((function(e){return Math.abs(Z2(e.arc.endAngle-e.arc.startAngle))>=r})).map((function(e){return t7({},_7(e.arc,a,o,s),{data:e})}))}),[t,r,a,o,s]);return(0,_.useMemo)((function(){return u.map((function(e){return t7({},l(e),e)}))}),[u,l])},E7=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=S4(c),f=sW(),p=U8(l,f),m=U8(u,f);return T7({data:t,skipAngle:n,offset:r,diagonalLength:i,straightLength:a,computeExtraProps:(0,_.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`),t7({},n,{label:d(e.data),linkColor:p(e.data),textAnchor:t,textColor:m(e.data)})}),[d,p,m,s])})},D7=function(e){var t=e.datum,n=e.style,r=e.onClick,i=e.onMouseEnter,a=e.onMouseMove,o=e.onMouseLeave,s=(0,_.useCallback)((function(e){return r?.(t,e)}),[r,t]),c=(0,_.useCallback)((function(e){return i?.(t,e)}),[i,t]),l=(0,_.useCallback)((function(e){return a?.(t,e)}),[a,t]),u=(0,_.useCallback)((function(e){return o?.(t,e)}),[o,t]);return(0,G.jsx)(VV.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})},O7=function(e,t,n,r,i){return xV([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)})}))},k7=function(e,t,n){t===void 0&&(t=`innerRadius`);var r=F2(),i=r.animate,a=r.config,o=s7(t,n);return{transition:mV(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:O7}},A7=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?D7:d,p=U8(a,sW()),m=k7(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,v=f;return(0,G.jsx)(`g`,{transform:`translate(`+t[0]+`,`+t[1]+`)`,children:h((function(e,t){return(0,_.createElement)(v,{key:t.id,datum:t,style:t7({},e,{borderWidth:i,path:g(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,r)}),onClick:o,onMouseEnter:s,onMouseMove:c,onMouseLeave:l})}))})},j7=function(e,t,n,r,i,a){a===void 0&&(a=!0);var o=[],s=$2(X2(r),n);o.push([s.x,s.y]);var c=$2(X2(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=$2(X2(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}},M7=function(e,t,n,r,i,a){var o=C4(i,a,e,t);return o<n&&o>r},N7=function(e,t,n,r,i,a,o){if(M7(e,t,n,r,a,o)){var s=w4(a,o,e,t);return i.find((function(e){var t=e.startAngle,n=e.endAngle;return s>=t&&s<n}))}},P7=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,_.useMemo)((function(){return sq().innerRadius((function(e){return e.innerRadius})).outerRadius((function(e){return e.outerRadius})).cornerRadius(r).padAngle(a)}),[r,a])};function F7(){return F7=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},F7.apply(null,arguments)}function I7(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 L7,R7=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)(a5,F7({},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)(mW,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:`img`,pixelRatio:typeof window<`u`&&(L7=window.devicePixelRatio)!=null?L7:1},z7=[`points`],B7=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=S4(r),u=S4(a),d=b4(o),f=G8(c,`id`);return(0,_.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 F7({},r,{color:f(r)})}))}),[t,l,u,d,f])},hte=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,_.useMemo)((function(){var e=gq().value((function(e){return e.value})).startAngle(X2(n)).endAngle(X2(r)).padAngle(X2(o));return s||e.sortValues(null),e}),[n,r,o,s]),m=(0,_.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 F7({},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:Z2(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,_.useRef)(f);return(0,_.useEffect)((function(){typeof g.current==`function`&&g.current(h)}),[g,h]),m},gte=function(e){var t=e.activeId,n=e.onActiveIdChange,r=e.defaultActiveId,i=t!==void 0,a=(0,_.useState)(i||r===void 0?null:r),o=a[0],s=a[1];return{activeId:i?t:o,setActiveId:(0,_.useCallback)((function(e){n&&n(e),i||s(e)}),[i,n,s])}},V7=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,v=g===void 0?$.fit:g,y=e.activeInnerRadiusOffset,b=y===void 0?$.activeInnerRadiusOffset:y,x=e.activeOuterRadiusOffset,S=x===void 0?$.activeOuterRadiusOffset:x,C=e.activeId,w=e.onActiveIdChange,T=e.defaultActiveId,E=e.forwardLegendData,D=gte({activeId:C,onActiveIdChange:w,defaultActiveId:T}),O=D.activeId,k=D.setActiveId,A=(0,_.useState)([]),j=A[0],M=A[1],N=(0,_.useMemo)((function(){var e,t=Math.min(n,r)/2,i=t*Math.min(a,1),o=n/2,c=r/2;if(v){var u=j7(o,c,t,s-90,l-90),d=u.points,f=I7(u,z7),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,v]),P=hte({data:t,startAngle:s,endAngle:l,innerRadius:N.innerRadius,outerRadius:N.radius,padAngle:d,sortByValue:p,activeId:O,activeInnerRadiusOffset:b,activeOuterRadiusOffset:S,hiddenIds:j,forwardLegendData:E}),F=(0,_.useCallback)((function(e){M((function(t){return t.indexOf(e)>-1?t.filter((function(t){return t!==e})):[].concat(t,[e])}))}),[]);return F7({arcGenerator:P7({cornerRadius:h,padAngle:X2(d)}),activeId:O,setActiveId:k,toggleSerie:F},P,N)},_te=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,i=e.centerY,a=e.radius,o=e.innerRadius;return(0,_.useMemo)((function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:i,radius:a,innerRadius:o}}),[t,n,r,i,a,o])},vte=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=CW(),h=m.showTooltipFromEvent,g=m.hideTooltip,v=(0,_.useMemo)((function(){if(o)return function(e,t){s?.(e,t)}}),[o,s]),y=(0,_.useMemo)((function(){if(o)return function(e,t){h((0,_.createElement)(f,{datum:e}),t),d(e.id),c?.(e,t)}}),[o,h,d,c,f]),b=(0,_.useMemo)((function(){if(o)return function(e,t){h((0,_.createElement)(f,{datum:e}),t),l?.(e,t)}}),[o,h,l,f]),x=(0,_.useMemo)((function(){if(o)return function(e,t){g(),d(null),u?.(e,t)}}),[o,g,d,u]);return(0,G.jsx)(A7,{center:t,data:n,arcGenerator:r,borderWidth:i,borderColor:a,transitionMode:p,onClick:v,onMouseEnter:y,onMouseMove:b,onMouseLeave:x})},yte=[`isInteractive`,`animate`,`motionConfig`,`theme`,`renderWrapper`],bte=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,v=e.fit,y=v===void 0?$.fit:v,b=e.innerRadius,x=b===void 0?$.innerRadius:b,S=e.cornerRadius,C=S===void 0?$.cornerRadius:S,w=e.activeInnerRadiusOffset,T=w===void 0?$.activeInnerRadiusOffset:w,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,B=z===void 0?$.arcLabel:z,ee=e.arcLabelsSkipAngle,te=ee===void 0?$.arcLabelsSkipAngle:ee,ne=e.arcLabelsSkipRadius,re=ne===void 0?$.arcLabelsSkipRadius:ne,ie=e.arcLabelsTextColor,ae=ie===void 0?$.arcLabelsTextColor:ie,oe=e.arcLabelsRadiusOffset,se=oe===void 0?$.arcLabelsRadiusOffset:oe,V=e.arcLabelsComponent,H=e.enableArcLinkLabels,ce=H===void 0?$.enableArcLinkLabels:H,le=e.arcLinkLabel,U=le===void 0?$.arcLinkLabel:le,W=e.arcLinkLabelsSkipAngle,ue=W===void 0?$.arcLinkLabelsSkipAngle:W,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=_4(O,k,A),Xe=Ye.outerWidth,Ze=Ye.outerHeight,Qe=Ye.margin,$e=Ye.innerWidth,et=Ye.innerHeight,tt=V7({data:B7({data:t,id:r,value:a,valueFormat:o,colors:M}),width:$e,height:et,fit:y,innerRadius:x,startAngle:f,endAngle:m,padAngle:g,sortByValue:c,cornerRadius:C,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=A4(De,nt,ke),ft={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};u.includes(`arcs`)&&(ft.arcs=(0,G.jsx)(vte,{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`)),ce&&u.includes(`arcLinkLabels`)&&(ft.arcLinkLabels=(0,G.jsx)(C7,{center:[at,ot],data:nt,label:U,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)(f7,{center:[at,ot],data:nt,label:B,radiusOffset:se,skipAngle:te,skipRadius:re,textColor:ae,transitionMode:He,component:V},`arcLabels`)),We.length>0&&u.includes(`legends`)&&(ft.legends=(0,G.jsx)(R7,{width:$e,height:et,data:rt,legends:We,toggleSerie:ut},`legends`));var pt=_te({dataWithArc:nt,arcGenerator:it,centerX:at,centerY:ot,radius:st,innerRadius:ct});return(0,G.jsx)(l4,{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)(_.Fragment,{children:(0,_.createElement)(e,pt)},t):null:ft[e]}))})},xte=(0,_.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=I7(e,yte);return(0,G.jsx)(R2,{animate:a,isInteractive:r,motionConfig:s,renderWrapper:l,theme:c,children:(0,G.jsx)(bte,F7({isInteractive:r},u,{forwardedRef:t}))})})),Ste=[`defaultWidth`,`defaultHeight`,`onResize`,`debounceResize`],Cte=(0,_.forwardRef)((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=I7(e,Ste);return(0,G.jsx)(V2,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(e){var n=e.width,r=e.height;return(0,G.jsx)(xte,F7({width:n,height:r},o,{ref:t}))}})})),wte=[`isInteractive`,`theme`,`renderWrapper`],Tte=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,v=e.innerRadius,y=v===void 0?$.innerRadius:v,b=e.cornerRadius,x=b===void 0?$.cornerRadius:b,S=e.activeInnerRadiusOffset,C=S===void 0?$.activeInnerRadiusOffset:S,w=e.activeOuterRadiusOffset,T=w===void 0?$.activeOuterRadiusOffset:w,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,B=z===void 0?$.arcLabel:z,ee=e.arcLabelsSkipAngle,te=ee===void 0?$.arcLabelsSkipAngle:ee,ne=e.arcLabelsTextColor,re=ne===void 0?$.arcLabelsTextColor:ne,ie=e.arcLabelsRadiusOffset,ae=ie===void 0?$.arcLabelsRadiusOffset:ie,oe=e.enableArcLinkLabels,se=oe===void 0?$.enableArcLinkLabels:oe,V=e.arcLinkLabel,H=V===void 0?$.arcLinkLabel:V,ce=e.arcLinkLabelsSkipAngle,le=ce===void 0?$.arcLinkLabelsSkipAngle:ce,U=e.arcLinkLabelsOffset,W=U===void 0?$.arcLinkLabelsOffset:U,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,_.useRef)(null),Le=sW(),Re=_4(E,D,O),ze=Re.margin,Be=Re.innerWidth,Ve=Re.innerHeight,He=Re.outerWidth,Ue=Re.outerHeight,We=V7({data:B7({data:t,id:r,value:a,valueFormat:o,colors:M}),width:Be,height:Ve,fit:g,innerRadius:y,startAngle:u,endAngle:f,padAngle:m,sortByValue:c,cornerRadius:x,activeInnerRadiusOffset:C,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=U8(I,Le),$e=m7({data:Ge,label:B,skipAngle:te,offset:ae,textColor:re}),et=E7({data:Ge,skipAngle:le,offset:W,diagonalLength:de,straightLength:pe,label:H,linkColor:xe,textOffset:_e,textColor:ye});(0,_.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===se&&w7(e,et,Le,he),!0===R&&p7(e,$e,Le),e.restore(),Me.forEach((function(t){s5(e,F7({},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,se,et,he,Me,Le]);var tt=(0,_.useMemo)((function(){return Ge.map((function(e){return F7({id:e.id},e.arc)}))}),[Ge]),nt=function(e){if(!Ie.current)return null;var t=E4(Ie.current,e),n=t[0],r=t[1],i=N7(ze.left+qe,ze.top+Je,Ye,Xe,tt,n,r);return i?Ge.find((function(e){return e.id===i.id})):null},rt=CW(),it=rt.showTooltipFromEvent,at=rt.hideTooltip,ot=function(e){var t=nt(e);t?(Te?.(t,e),Ze(t.id),it((0,_.createElement)(De,{datum:t}),e)):(Ze(null),at())};return(0,G.jsx)(`canvas`,{ref:j4(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})},Ete=(0,_.forwardRef)((function(e,t){var n=e.isInteractive,r=n===void 0?$.isInteractive:n,i=e.theme,a=e.renderWrapper,o=I7(e,wte);return(0,G.jsx)(R2,{isInteractive:r,renderWrapper:a,theme:i,children:(0,G.jsx)(Tte,F7({isInteractive:r},o,{forwardedRef:t}))})})),Dte=[`defaultWidth`,`defaultHeight`,`onResize`,`debounceResize`];(0,_.forwardRef)((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=I7(e,Dte);return(0,G.jsx)(V2,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(e){var n=e.width,r=e.height;return(0,G.jsx)(Ete,F7({width:n,height:r},o,{ref:t}))}})}));function Ote({data:e}){let{colorScheme:t}=fn(),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 kte={value:()=>{}};function H7(){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 U7(n)}function U7(e){this._=e}function Ate(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}})}U7.prototype=H7.prototype={constructor:U7,on:function(e,t){var n=this._,r=Ate(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=jte(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]=W7(n[i],e.name,t);else if(t==null)for(i in n)n[i]=W7(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 U7(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 jte(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function W7(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=kte,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var G7={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 K7(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),G7.hasOwnProperty(t)?{space:G7[t],local:e}:e}function Mte(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 Nte(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function q7(e){var t=K7(e);return(t.local?Nte:Mte)(t)}function Pte(){}function J7(e){return e==null?Pte:function(){return this.querySelector(e)}}function Fte(e){typeof e!=`function`&&(e=J7(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 Ite(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Lte(){return[]}function Y7(e){return e==null?Lte:function(){return this.querySelectorAll(e)}}function Rte(e){return function(){return Ite(e.apply(this,arguments))}}function zte(e){e=typeof e==`function`?Rte(e):Y7(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 Z7(e){return function(t){return t.matches(e)}}var Bte=Array.prototype.find;function Vte(e){return function(){return Bte.call(this.children,e)}}function Hte(){return this.firstElementChild}function Ute(e){return this.select(e==null?Hte:Vte(typeof e==`function`?e:Z7(e)))}var Wte=Array.prototype.filter;function Gte(){return Array.from(this.children)}function Kte(e){return function(){return Wte.call(this.children,e)}}function qte(e){return this.selectAll(e==null?Gte:Kte(typeof e==`function`?e:Z7(e)))}function Jte(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 Q7(e){return Array(e.length)}function Yte(){return new l9(this._enter||this._groups.map(Q7),this._parents)}function $7(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}$7.prototype={constructor:$7,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 Xte(e){return function(){return e}}function Zte(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 $7(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function Qte(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 $7(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function $te(e){return e.__data__}function ene(e,t){if(!arguments.length)return Array.from(this,$te);var n=t?Qte:Zte,r=this._parents,i=this._groups;typeof e!=`function`&&(e=Xte(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=tne(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 tne(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function nne(){return new l9(this._exit||this._groups.map(Q7),this._parents)}function rne(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 ine(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 ane(){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 one(e){e||=sne;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 sne(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function cne(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function lne(){return Array.from(this)}function une(){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 dne(){let e=0;for(let t of this)++e;return e}function fne(){return!this.node()}function pne(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 mne(e){return function(){this.removeAttribute(e)}}function hne(e){return function(){this.removeAttributeNS(e.space,e.local)}}function gne(e,t){return function(){this.setAttribute(e,t)}}function _ne(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function vne(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function yne(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 bne(e,t){var n=K7(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?hne:mne:typeof t==`function`?n.local?yne:vne:n.local?_ne:gne)(n,t))}function e9(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function xne(e){return function(){this.style.removeProperty(e)}}function Sne(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Cne(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function wne(e,t,n){return arguments.length>1?this.each((t==null?xne:typeof t==`function`?Cne:Sne)(e,t,n??``)):t9(this.node(),e)}function t9(e,t){return e.style.getPropertyValue(t)||e9(e).getComputedStyle(e,null).getPropertyValue(t)}function Tne(e){return function(){delete this[e]}}function Ene(e,t){return function(){this[e]=t}}function Dne(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function One(e,t){return arguments.length>1?this.each((t==null?Tne:typeof t==`function`?Dne:Ene)(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 kne(e){return function(){a9(this,e)}}function Ane(e){return function(){o9(this,e)}}function jne(e,t){return function(){(t.apply(this,arguments)?a9:o9)(this,e)}}function Mne(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`?jne:t?kne:Ane)(n,t))}function Nne(){this.textContent=``}function Pne(e){return function(){this.textContent=e}}function Fne(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function Ine(e){return arguments.length?this.each(e==null?Nne:(typeof e==`function`?Fne:Pne)(e)):this.node().textContent}function Lne(){this.innerHTML=``}function Rne(e){return function(){this.innerHTML=e}}function zne(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function Bne(e){return arguments.length?this.each(e==null?Lne:(typeof e==`function`?zne:Rne)(e)):this.node().innerHTML}function Vne(){this.nextSibling&&this.parentNode.appendChild(this)}function Hne(){return this.each(Vne)}function Une(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Wne(){return this.each(Une)}function Gne(e){var t=typeof e==`function`?e:q7(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Kne(){return null}function qne(e,t){var n=typeof e==`function`?e:q7(e),r=t==null?Kne:typeof t==`function`?t:J7(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Jne(){var e=this.parentNode;e&&e.removeChild(this)}function Yne(){return this.each(Jne)}function Xne(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Zne(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Qne(e){return this.select(e?Zne:Xne)}function $ne(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function ere(e){return function(t){e.call(this,t,this.__data__)}}function tre(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 nre(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 rre(e,t,n){return function(){var r=this.__on,i,a=ere(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 ire(e,t,n){var r=tre(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?rre:nre,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 are(e,t){return function(){return s9(this,e,t)}}function ore(e,t){return function(){return s9(this,e,t.apply(this,arguments))}}function sre(e,t){return this.each((typeof t==`function`?ore:are)(e,t))}function*cre(){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 lre(){return this}l9.prototype=u9.prototype={constructor:l9,select:Fte,selectAll:zte,selectChild:Ute,selectChildren:qte,filter:Jte,data:ene,enter:Yte,exit:nne,join:rne,merge:ine,selection:lre,order:ane,sort:one,call:cne,nodes:lne,node:une,size:dne,empty:fne,each:pne,attr:bne,style:wne,property:One,classed:Mne,text:Ine,html:Bne,raise:Hne,lower:Wne,append:Gne,insert:qne,remove:Yne,clone:Qne,datum:$ne,on:ire,dispatch:sre,[Symbol.iterator]:cre};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(ure),x9.now()+b9)}function ure(){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 dre(){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{dre()}finally{f9=0,pre(),y9=0}}function fre(){var e=x9.now(),t=e-v9;t>h9&&(b9-=t,v9=e)}function pre(){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(fre,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 mre=H7(`start`,`end`,`cancel`,`interrupt`),hre=[];function k9(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;gre(e,n,{name:t,index:r,group:i,on:mre,tween:hre,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 gre(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 _re(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 vre(e){return this.each(function(){_re(this,e)})}function yre(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 bre(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 xre(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?yre:bre)(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`?tK:t instanceof cG?JG:(n=cG(t))?(t=n,JG):sK)(e,t)}function Sre(e){return function(){this.removeAttribute(e)}}function Cre(e){return function(){this.removeAttributeNS(e.space,e.local)}}function wre(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 Tre(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 Ere(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 Dre(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 Ore(e,t){var n=K7(e),r=n===`transform`?vK:P9;return this.attrTween(e,typeof t==`function`?(n.local?Dre:Ere)(n,r,N9(this,`attr.`+e,t)):t==null?(n.local?Cre:Sre)(n):(n.local?Tre:wre)(n,r,t))}function kre(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Are(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function jre(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Are(e,i)),n}return i._value=t,i}function Mre(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&kre(e,i)),n}return i._value=t,i}function Nre(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=K7(e);return this.tween(n,(r.local?jre:Mre)(r,t))}function Pre(e,t){return function(){A9(this,e).delay=+t.apply(this,arguments)}}function Fre(e,t){return t=+t,function(){A9(this,e).delay=t}}function Ire(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Pre:Fre)(t,e)):M9(this.node(),t).delay}function Lre(e,t){return function(){j9(this,e).duration=+t.apply(this,arguments)}}function Rre(e,t){return t=+t,function(){j9(this,e).duration=t}}function zre(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Lre:Rre)(t,e)):M9(this.node(),t).duration}function Bre(e,t){if(typeof t!=`function`)throw Error();return function(){j9(this,e).ease=t}}function Vre(e){var t=this._id;return arguments.length?this.each(Bre(t,e)):M9(this.node(),t).ease}function Hre(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();j9(this,e).ease=n}}function Ure(e){if(typeof e!=`function`)throw Error();return this.each(Hre(this._id,e))}function Wre(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 Gre(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 Kre(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 qre(e,t,n){var r,i,a=Kre(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 Jre(e,t){var n=this._id;return arguments.length<2?M9(this.node(),n).on.on(e):this.each(qre(n,e,t))}function Yre(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Xre(){return this.on(`end.remove`,Yre(this._id))}function Zre(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=J7(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 Qre(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Y7(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 $re=u9.prototype.constructor;function eie(){return new $re(this._groups,this._parents)}function tie(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 nie(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 rie(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 iie(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 aie(e,t,n){var r=(e+=``)==`transform`?_K:P9;return t==null?this.styleTween(e,tie(e,r)).on(`end.style.`+e,F9(e)):typeof t==`function`?this.styleTween(e,rie(e,r,N9(this,`style.`+e,t))).each(iie(this._id,e)):this.styleTween(e,nie(e,r,t),n).on(`end.style.`+e,null)}function oie(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function sie(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&oie(e,a,n)),r}return a._value=t,a}function cie(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,sie(e,t,n??``))}function lie(e){return function(){this.textContent=e}}function uie(e){return function(){var t=e(this);this.textContent=t??``}}function die(e){return this.tween(`text`,typeof e==`function`?uie(N9(this,`text`,e)):lie(e==null?``:e+``))}function fie(e){return function(t){this.textContent=e.call(this,t)}}function pie(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&fie(r)),t}return r._value=e,r}function mie(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,pie(e))}function hie(){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 gie(){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 _ie=0;function I9(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function L9(){return++_ie}var R9=u9.prototype;I9.prototype={constructor:I9,select:Zre,selectAll:Qre,selectChild:R9.selectChild,selectChildren:R9.selectChildren,filter:Wre,merge:Gre,selection:eie,transition:hie,call:R9.call,nodes:R9.nodes,node:R9.node,size:R9.size,empty:R9.empty,each:R9.each,on:Jre,attr:Ore,attrTween:Nre,style:aie,styleTween:cie,text:die,textTween:mie,remove:Xre,tween:xre,delay:Ire,duration:zre,ease:Vre,easeVarying:Ure,end:gie,[Symbol.iterator]:R9[Symbol.iterator]};function vie(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var yie={time:null,delay:0,duration:250,ease:vie};function bie(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function xie(e){var t,n;e instanceof I9?(t=e._id,e=e._name):(t=L9(),(n=yie).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||bie(c,t));return new I9(r,this._parents,e,t)}u9.prototype.interrupt=vre,u9.prototype.transition=xie;var{abs:Sie,max:Cie,min:wie}=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 Tie=new B9(1,0,0);Eie.prototype=B9.prototype;function Eie(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Tie;return e.__zoom}function Die({usageLog:e,width:t=400,height:n=400}){let r=(0,_.useRef)(null),{colorScheme:i}=fn(),a=i===`dark`,{links:o,readers:s,docs:c}=(0,_.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,_.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 Oie({usageLog:e,width:t=400,height:n=400}){let r=(0,_.useRef)(null),{colorScheme:i}=fn(),a=i===`dark`,{links:o,requestors:s,operations:c}=(0,_.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,_.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 kie=[{value:`7`,label:`Last 7 days`},{value:`30`,label:`Last 30 days`},{value:`90`,label:`Last 90 days`},{value:`all`,label:`All time`}],Aie={"remote-mcp":`Remote MCP`,"local-mcp":`Local MCP`,"edge-function":`Edge Function`,webapp:`Web App`,cli:`CLI`,api:`API (identified)`},jie=[{value:``,label:`All paths`},...UL.map(e=>({value:e,label:Aie[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 Mie(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=Mie(Number(e))),t&&(a.start=t),n&&(a.end=n),r&&(a.project_id=r),i&&(a.access_path=i),a}function Nie(){LE(`Analytics`);let e=Xy(),[t,n]=(0,_.useState)(`30`),[r,i]=(0,_.useState)(``),[a,o]=(0,_.useState)(``),[s,c]=(0,_.useState)(``),[l,u]=(0,_.useState)(``),[d,f]=(0,_.useState)(null),{data:p}=ux({queryKey:[`projects`],queryFn:NI,staleTime:6e4,retry:1}),{data:m}=ux({queryKey:[`config`,`usage_tracking_enabled`],queryFn:()=>GE(`usage_tracking_enabled`),staleTime:1e4,retry:1}),{data:h,isLoading:g,error:v}=ux({queryKey:[`usageSummary`,d],queryFn:()=>HE(d),enabled:d!==null,staleTime:6e4,retry:0}),{data:y,isLoading:b}=ux({queryKey:[`usageLog`,d],queryFn:()=>UE({...d,limit:200}),enabled:d!==null&&h!==void 0,staleTime:6e4,retry:0}),x=dx({mutationFn:e=>KE(`usage_tracking_enabled`,e?`true`:`false`),onSuccess:(t,n)=>{e.invalidateQueries({queryKey:[`config`]}),BI(`Usage tracking ${n?`enabled`:`disabled`}`,n?`Reads and writes will now be recorded in the usage log.`:`Operations will no longer be recorded.`)}}),S=[{value:``,label:`All projects`},...(p??[]).map(e=>({value:e.id,label:e.name}))],C=m===`true`,w=g||b,T=v,E=(0,_.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)(Em,{size:`xl`,children:[(0,G.jsx)(`p`,{className:X.eyebrow,children:`Usage`}),(0,G.jsxs)(Rl,{justify:`space-between`,mb:`md`,children:[(0,G.jsx)(Gv,{order:2,children:`Analytics`}),(0,G.jsxs)(Rl,{gap:`md`,children:[(0,G.jsx)(vv,{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)(zv,{label:`Usage tracking`,checked:C,onChange:e=>x.mutate(e.currentTarget.checked),size:`sm`,color:`green`,disabled:x.isPending})}),(0,G.jsx)(dm,{variant:`subtle`,leftSection:(0,G.jsx)(ST,{size:16}),onClick:()=>WE(D).catch(e=>VI(`Export failed`,e)),size:`sm`,children:`Export CSV`})]})]}),(0,G.jsx)(vm,{withBorder:!0,mb:`md`,p:`sm`,children:(0,G.jsxs)(Rl,{gap:`sm`,wrap:`wrap`,children:[(0,G.jsx)(wv,{label:`Period`,data:kie,value:t,onChange:e=>{n(e??`30`),c(``),u(``)},size:`xs`,w:140}),(0,G.jsx)(Bv,{label:`Custom start`,placeholder:`YYYY-MM-DD`,value:s,onChange:e=>{c(e.currentTarget.value),n(`all`)},size:`xs`,w:130}),(0,G.jsx)(Bv,{label:`Custom end`,placeholder:`YYYY-MM-DD`,value:l,onChange:e=>{u(e.currentTarget.value),n(`all`)},size:`xs`,w:130}),(0,G.jsx)(wv,{label:`Project`,data:S,value:r,onChange:e=>i(e??``),size:`xs`,w:160,clearable:!0}),(0,G.jsx)(wv,{label:`Access path`,data:jie,value:a,onChange:e=>o(e??``),size:`xs`,w:150,clearable:!0}),(0,G.jsx)(Mv,{gap:2,justify:`flex-end`,style:{paddingTop:20},children:(0,G.jsx)(dm,{leftSection:(0,G.jsx)(RT,{size:16}),onClick:E,loading:w,size:`sm`,children:`Run Analysis`})})]})}),w&&(0,G.jsx)(Rl,{justify:`center`,mt:`xl`,children:(0,G.jsx)(bl,{})}),T&&(0,G.jsxs)(Y,{c:`red`,mt:`md`,children:[`Error loading analytics: `,T.message]}),!d&&!w&&(0,G.jsx)(vm,{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)(Pie,{summary:h,usageLog:y??[]})]})}function Pie({summary:e,usageLog:t}){let n=e.ops_by_operation[0];return(0,G.jsxs)(Mv,{gap:`md`,children:[(0,G.jsxs)(Ov,{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)(vm,{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)(vm,{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)($5,{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)(Bm,{children:[(0,G.jsx)(Bm.Col,{span:{base:12,md:6},children:(0,G.jsxs)(vm,{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)($5,{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)(Bm.Col,{span:{base:12,md:6},children:(0,G.jsxs)(vm,{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)(Cte,{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)(Bm,{children:[(0,G.jsx)(Bm.Col,{span:{base:12,md:6},children:(0,G.jsxs)(vm,{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)($5,{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)(Bm.Col,{span:{base:12,md:6},children:(0,G.jsxs)(vm,{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)($5,{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)(Bm,{children:[(0,G.jsx)(Bm.Col,{span:{base:12,md:6},children:(0,G.jsxs)(vm,{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)(Ote,{data:e.top_requestors.map(e=>({text:e.requestor,value:e.count}))})]})}),(0,G.jsx)(Bm.Col,{span:{base:12,md:6},children:(0,G.jsxs)(vm,{withBorder:!0,p:`md`,h:`100%`,children:[(0,G.jsx)(Y,{fw:500,mb:`sm`,children:`Requestor → Document Access Patterns`}),(0,G.jsx)(Die,{usageLog:t})]})})]}),(0,G.jsxs)(vm,{withBorder:!0,p:`md`,children:[(0,G.jsx)(Y,{fw:500,mb:`sm`,children:`Requestor → Operation Patterns`}),(0,G.jsx)(Oie,{usageLog:t})]})]})]})}function W9({label:e,value:t,sub:n}){return(0,G.jsxs)(vm,{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 Fie(e){return Uw(`/documents/metadata-search`,{method:`POST`,body:JSON.stringify(e)})}function Iie(){LE(`Metadata search`);let e=GS(),[t,n]=(0,_.useState)([{key:``,value:``}]),[r,i]=(0,_.useState)(``),[a,o]=(0,_.useState)(``),[s,c]=(0,_.useState)(``),[l,u]=(0,_.useState)(25),{data:d}=ux({queryKey:[`metadataKeys`],queryFn:PI,staleTime:6e4}),{data:f}=ux({queryKey:[`projects`],queryFn:NI,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)),v=(e,t,r)=>n(n=>n.map((n,i)=>i===e?{...n,[t]:r}:n)),{mutate:y,data:b,isPending:x,error:S,reset:C}=dx({mutationFn:e=>Fie(e)}),w=(0,_.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,_.useCallback)(()=>{let e=w();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),C(),y(t)},[w,r,a,s,l,y,C]),E=t.filter(e=>e.key.trim()&&e.value.trim()).length,D=w(),O=`-f '${JSON.stringify(Object.keys(D).length?D:{key:`value`})}'`;return(0,G.jsxs)(`div`,{className:TE.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)(yE,{cmd:`cerefox metadata search`,args:O})]}),(0,G.jsx)(vm,{withBorder:!0,mb:`md`,p:`md`,radius:`lg`,children:(0,G.jsxs)(Mv,{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)(Rl,{gap:`xs`,align:`flex-end`,children:[(0,G.jsx)(wv,{placeholder:`Key`,data:p,value:e.key||null,onChange:e=>v(n,`key`,e??``),searchable:!0,allowDeselect:!0,style:{flex:1},size:`sm`}),(0,G.jsx)(Bv,{placeholder:`Value`,value:e.value,onChange:e=>v(n,`value`,e.currentTarget.value),style:{flex:1},size:`sm`}),t.length>1&&(0,G.jsx)(Ol,{variant:`subtle`,color:`red`,onClick:()=>g(n),size:`md`,children:(0,G.jsx)(qT,{size:16})})]},n)),(0,G.jsx)(dm,{variant:`subtle`,size:`xs`,leftSection:(0,G.jsx)(zT,{size:14}),onClick:h,style:{alignSelf:`flex-start`},children:`Add filter`}),(0,G.jsxs)(Rl,{gap:`sm`,grow:!0,children:[(0,G.jsx)(wv,{label:`Project`,data:m,value:r,onChange:e=>i(e??``),size:`sm`,clearable:!0}),(0,G.jsx)(U_,{label:`Limit`,value:l,onChange:e=>u(Number(e)||25),min:1,max:100,size:`sm`})]}),(0,G.jsxs)(Rl,{gap:`sm`,grow:!0,children:[(0,G.jsx)(Bv,{label:`Updated since`,type:`date`,value:a,onChange:e=>o(e.currentTarget.value),size:`sm`}),(0,G.jsx)(Bv,{label:`Created since`,type:`date`,value:s,onChange:e=>c(e.currentTarget.value),size:`sm`})]}),(0,G.jsx)(dm,{"data-testid":`metadata-search-submit`,leftSection:(0,G.jsx)(VT,{size:16}),onClick:T,disabled:E===0,loading:x,style:{alignSelf:`flex-start`},children:`Search`})]})}),S&&(0,G.jsxs)(Y,{c:`red`,mt:`md`,children:[`Error: `,S.message]}),b&&(0,G.jsxs)(`div`,{className:`${X.card} ${X.rise}`,style:{overflow:`hidden`},children:[(0,G.jsxs)(`table`,{className:TE.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:b.length===0?(0,G.jsx)(`tr`,{children:(0,G.jsx)(`td`,{colSpan:4,className:TE.emptyRow,children:`No documents match the metadata filter.`})}):b.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:TE.foot,children:(0,G.jsxs)(`span`,{className:TE.faint,children:[b.length,` document`,b.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`},Lie=[{v:`hybrid`,label:`Hybrid`,icon:UT,desc:`BM25 + embeddings`},{v:`fts`,label:`Keyword`,icon:VT,desc:`Exact full-text`},{v:`semantic`,label:`Semantic`,icon:HT,desc:`Meaning-based`}],Rie=[5,10,20];function zie({query:e,mode:t,projectId:n,count:r,reviewStatus:i,metadataFilter:a,onSearch:o}){let[s,c]=(0,_.useState)(e),[l,u]=(0,_.useState)(t===`docs`?`documents`:`chunks`),[d,f]=(0,_.useState)(t===`docs`?`hybrid`:t),[p,m]=(0,_.useState)(n),[h,g]=(0,_.useState)(r),[v,y]=(0,_.useState)(i),[b,x]=(0,_.useState)(()=>Object.entries(a).map(([e,t])=>({key:e,value:t}))),[S,C]=(0,_.useState)(b.length>0),{data:w}=RI(),{data:T}=zI(),E=SL(),D=(0,_.useCallback)(()=>{let e={};for(let t of b)t.key.trim()&&t.value.trim()&&(e[t.key.trim()]=t.value.trim());return e},[b]),O=(0,_.useCallback)(e=>{o({q:s,mode:l===`documents`?`docs`:d,projectId:p,count:h,reviewStatus:v,metadataFilter:D(),...e})},[s,l,d,p,h,v,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=v===`pending_review`?``:`pending_review`;y(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)(VT,{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)(YT,{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)(wT,{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)(MT,{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:Lie.map(e=>(0,G.jsx)(`option`,{value:e.v,children:e.label},e.v))}),(0,G.jsx)(fT,{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)(OT,{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 (`,w?.length??0,`)`]}),w?.map(e=>(0,G.jsx)(`option`,{value:e.id,children:e.name},e.id))]}),(0,G.jsx)(fT,{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:Rie.map(e=>(0,G.jsxs)(`option`,{value:e,children:[e,` results`]},e))}),(0,G.jsx)(fT,{size:14})]}),E&&(0,G.jsxs)(`button`,{type:`button`,className:`${X.chip} ${v===`pending_review`?X.chipOn:``}`,onClick:N,children:[(0,G.jsx)(dT,{size:13}),`Pending review`]}),(0,G.jsxs)(`button`,{type:`button`,className:`${X.chip} ${S?X.chipOn:``}`,onClick:()=>C(e=>!e),children:[(0,G.jsx)(rT,{size:13}),`Filters`,b.length>0?` (${b.length})`:``]})]})]}),S&&(0,G.jsxs)(`div`,{className:G9.filterRow,children:[b.map((e,t)=>(0,G.jsxs)(`div`,{style:{display:`flex`,gap:8,alignItems:`center`},children:[(0,G.jsx)(wv,{placeholder:`Key`,data:P,value:e.key||null,onChange:e=>x(n=>n.map((n,r)=>r===t?{...n,key:e||``}:n)),searchable:!0,size:`xs`,w:190}),(0,G.jsx)(Bv,{placeholder:`Value`,value:e.value,onChange:e=>{let n=e.currentTarget.value;x(e=>e.map((e,r)=>r===t?{...e,value:n}:e))},size:`xs`,w:190}),(0,G.jsx)(Ol,{variant:`subtle`,color:`red`,size:`sm`,onClick:()=>x(e=>e.filter((e,n)=>n!==t)),children:(0,G.jsx)(YT,{size:14})})]},t)),(0,G.jsx)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,onClick:()=>x(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 Bie={strong:`var(--green)`,typical:`var(--yellow)`,weak:`var(--text-faint)`,dim:`var(--text-faint)`};function Vie({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=Bie[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 Hie(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 Uie(e){return Math.max(0,...e.filter(e=>!e.belowConfidence).map(e=>e.score))}function Wie(e,t,n){return n&&t>0?Math.max(0,Math.min(1,e/t)):Math.max(0,Math.min(1,e))}function Gie(e,t){return e===`fts`||t>1}var J9=[`--primary`,`--violet`,`--blue`,`--green`,`--yellow`,`--red`];function Kie(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 qie={docs:`documents`,hybrid:`chunks`,fts:`chunks`,semantic:`chunks`},Jie={docs:`hybrid`,hybrid:`hybrid`,fts:`keyword`,semantic:`semantic`};function Yie({data:e,isLoading:t,error:n,hasQuery:r}){let i=GS(),[a,o]=(0,_.useState)(null),[s,c]=(0,_.useState)(null),l=(0,_.useRef)(null);(0,_.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)(VT,{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)(bl,{size:`sm`}),(0,G.jsx)(`span`,{className:X.dim,children:`Searching…`})]});if(n)return(0,G.jsx)(Wd,{icon:(0,G.jsx)(iT,{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)(VT,{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=Gie(e.mode,p),h=Uie(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:qie[e.mode]}),` `,`ranked by`,` `,(0,G.jsx)(`span`,{className:X.mono,style:{color:`var(--primary)`},children:Jie[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)(Vie,{score:Wie(c,p,m),tone:Hie(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)(mT,{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:Kie(e),width:6,height:6}}),e]},e)),(0,G.jsx)(`span`,{className:`${G9.chev} ${_?G9.chevOpen:``}`,children:(0,G.jsx)(fT,{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)(wT,{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)(GT,{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)(dT,{size:13,style:{color:`var(--green)`}}):(0,G.jsx)(vT,{size:13})]})]})]})]},n)})})]})}async function Xie(e){let t=e.metadata_filter&&Object.keys(e.metadata_filter).length>0?JSON.stringify(e.metadata_filter):void 0;return Uw(`/search${eT({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 Zie(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 Qie(e){return Object.entries(e).filter(([e,t])=>e&&t).map(([e,t])=>`${e}:${t}`).join(`,`)}function $ie(){let[e]=pw();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:Zie(e.get(`mf`)||``)}}function eae(e){let t=!!e.q,n=SL(),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 ux({queryKey:[`search`,r],queryFn:()=>Xie(r),enabled:t})}function tae(){let[,e]=pw(),t=$ie(),{data:n,isLoading:r,error:i}=eae(t);LE(t.q?`Search: ${t.q}`:`Search`);let{data:a}=ux({queryKey:[`dashboard`],queryFn:()=>YE()}),o=(0,_.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=Qie(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)(yE,{cmd:`cerefox search`,args:`"${t.q||`query`}"${t.mode===`docs`?``:` --mode ${t.mode}`}`})]})]}),(0,G.jsx)(zie,{query:t.q,mode:t.mode,projectId:t.projectId,count:t.count,reviewStatus:t.reviewStatus,metadataFilter:t.metadataFilter,onSearch:o}),(0,G.jsx)(Yie,{data:n,isLoading:r,error:i,hasQuery:!!t.q})]})}async function nae(){return Uw(`/config`)}async function rae(e,t){return Uw(`/config/${encodeURIComponent(e)}`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify({value:t})})}var iae=[`trash_auto_purge_enabled`,`trash_retention_days`];function aae(e){if(!iae.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 oae(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 sae=[`Retrieval`,`Retention`,`Governance`,`Features`],cae={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 lae(){LE(`Settings`);let e=Xy(),{data:t,isLoading:n}=ux({queryKey:[`config`],queryFn:nae}),[r,i]=(0,_.useState)(null),[a,o]=(0,_.useState)({}),s=dx({mutationFn:({key:e,value:t})=>rae(e,t),onSuccess:(t,n)=>{BI(`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=>{HI(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?aae({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=ux({queryKey:[`trash-purge-preview`,d?.toISOString()??null],queryFn:()=>QI(d),enabled:d!==null,staleTime:0});return n?(0,G.jsx)(Y,{children:`Loading settings…`}):(0,G.jsxs)(Mv,{gap:`lg`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(Gv,{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.`})]}),sae.map(e=>{let t=l.filter(t=>t.group===e);return t.length===0?null:(0,G.jsx)(vm,{withBorder:!0,padding:`md`,"data-testid":`config-group-${e}`,children:(0,G.jsxs)(Mv,{gap:`xs`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(Gv,{order:4,children:e}),(0,G.jsx)(Y,{size:`xs`,c:`dimmed`,children:cae[e]})]}),t.map(e=>(0,G.jsx)(uae,{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)(JE,{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)(ng,{opened:r!==null,onClose:()=>i(null),title:`Confirm this change`,"data-testid":`config-confirm-modal`,children:r&&(0,G.jsxs)(Mv,{gap:`sm`,"data-testid":`config-confirm-body`,children:[(0,G.jsxs)(Y,{size:`sm`,children:[`Set `,(0,G.jsx)(Sm,{children:r.entry.key}),` to `,(0,G.jsx)(Sm,{children:r.value}),`?`]}),r.entry.impact_note&&(0,G.jsx)(Wd,{icon:(0,G.jsx)(aT,{size:16}),color:`yellow`,children:(0,G.jsx)(Y,{size:`sm`,children:r.entry.impact_note})}),d!==null&&(0,G.jsx)(Wd,{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.`:oae(p.data??0,f)})}),(0,G.jsxs)(Rl,{justify:`flex-end`,children:[(0,G.jsx)(dm,{variant:`default`,onClick:()=>i(null),children:`Cancel`}),(0,G.jsx)(dm,{"data-testid":`config-confirm-apply`,loading:s.isPending,onClick:()=>{s.mutate({key:r.entry.key,value:r.value}),i(null)},children:`Apply`})]})]})})]})}function uae({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)(vm,{withBorder:!0,padding:`sm`,radius:`sm`,"data-testid":`config-row-${e.key}`,children:(0,G.jsxs)(Rl,{justify:`space-between`,align:`flex-start`,wrap:`nowrap`,children:[(0,G.jsxs)(`div`,{style:{flex:1,minWidth:0},children:[(0,G.jsxs)(Rl,{gap:`xs`,wrap:`nowrap`,align:`baseline`,children:[(0,G.jsx)(Y,{size:`sm`,fw:500,children:e.description}),e.value===null&&(0,G.jsx)(nm,{size:`xs`,variant:`light`,color:`gray`,children:`using default`}),e.high_impact&&(0,G.jsx)(nm,{size:`xs`,variant:`light`,color:`yellow`,children:`affects agents`})]}),(0,G.jsx)(Sm,{style:{fontSize:`0.72rem`},children:e.key}),e.retired_env_set&&(0,G.jsx)(Wd,{icon:(0,G.jsx)(aT,{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)(Sm,{children:e.retired_env_set.name}),` is still set in this server's environment (to `,(0,G.jsx)(Sm,{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)(Sm,{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)(zv,{checked:a===`true`,disabled:i,onChange:e=>r(e.currentTarget.checked?`true`:`false`),label:a===`true`?`true`:`false`}):e.kind===`number`?(0,G.jsxs)(Rl,{gap:`xs`,wrap:`nowrap`,children:[(0,G.jsx)(U_,{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)(dm,{size:`xs`,disabled:!s||i,onClick:()=>r(a),children:`Save`})]}):(0,G.jsxs)(Rl,{gap:`xs`,wrap:`nowrap`,children:[(0,G.jsx)(Bv,{value:a,size:`xs`,style:{width:120},placeholder:e.default||`(unset)`,onChange:e=>n(e.currentTarget.value)}),(0,G.jsx)(dm,{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 dae(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,fae=e=>e instanceof zw&&[401,403,503].includes(e.status)||e instanceof TypeError,Q9=(e,t)=>`${e} ${t}${e===1?``:`s`}`;function pae({onClose:e,onFinished:t}){let[n,r]=(0,_.useState)({kind:`confirm`}),i=(0,_.useRef)(!1),[a,o]=(0,_.useState)(!1),[s,c]=(0,_.useState)(!1),l=ux({queryKey:[`trash`,`count`],queryFn:()=>YI(500),enabled:n.kind===`confirm`,staleTime:0,gcTime:0,refetchOnWindowFocus:!1}),u=l.data?.rows,d=l.data?.total,f=n.kind===`running`;(0,_.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 dae({confirmed:u,listTrash:async()=>(await YI(500)).rows,purge:ZI,onProgress:e=>r({kind:`running`,progress:e}),shouldStop:()=>i.current,isFatal:fae,totalHint:d});r({kind:`done`,result:e}),t(e)}finally{Z9=!1}}}};return(0,G.jsxs)(ng,{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)(Mv,{gap:`sm`,"data-testid":`empty-trash-confirm`,children:[l.isError?(0,G.jsx)(Wd,{icon:(0,G.jsx)(aT,{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)(Wd,{icon:(0,G.jsx)(aT,{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)(Rl,{justify:`flex-end`,children:[(0,G.jsx)(dm,{variant:`default`,onClick:e,children:d===0||l.isError?`Close`:`Cancel`}),d!==void 0&&d>0&&(0,G.jsxs)(dm,{color:`red`,"data-testid":`empty-trash-start`,onClick:()=>void p(),children:[`Purge `,Q9(d,`document`)]})]})]}),n.kind===`running`&&(0,G.jsxs)(Mv,{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)(iv,{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)(Rl,{justify:`flex-end`,children:(0,G.jsx)(dm,{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)(Mv,{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)(Wd,{icon:(0,G.jsx)(aT,{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)(Wd,{icon:(0,G.jsx)(aT,{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)(Rl,{justify:`flex-end`,children:(0,G.jsx)(dm,{"data-testid":`empty-trash-close`,onClick:e,children:`Close`})})]})]})}var $9=[`--primary`,`--violet`,`--blue`,`--green`,`--yellow`,`--red`];function mae(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 hae(){LE(`Trash`);let e=GS(),t=Xy(),{data:n}=RI(),r=new Map(n?.map(e=>[e.id,e.name])??[]),[i,a]=(0,_.useState)(``),[o,s]=(0,_.useState)(null),[c,l]=(0,_.useState)(!1),{data:u,isLoading:d}=ux({queryKey:[`trash`,`page`],queryFn:()=>YI(500),staleTime:1e4}),f=u?.rows,p=u?.total??0,m=()=>MI(t),h=dx({mutationFn:XI,onSuccess:()=>{m(),BI(`Document restored`)},onError:e=>HI(`Restore failed`,String(e))}),g=dx({mutationFn:ZI,onSuccess:({purged:e})=>{m(),e?BI(`Permanently deleted`):UI(`Not purged`,`The document was restored in the meantime and is live again.`)},onError:e=>HI(`Purge failed`,String(e))});return(0,G.jsx)(DE,{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)(JE,{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)(KT,{size:14}),`Empty trash`]}),c&&(0,G.jsx)(pae,{onClose:()=>l(!1),onFinished:e=>{m(),e.failures.length===0&&!e.stopped&&!e.aborted?BI(`Trash emptied`,`${e.purged} permanently deleted`):HI(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?mae(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)(oT,{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)(qT,{size:14}),`Purge`]})]})})}function gae(){return(0,G.jsx)(bC,{children:(0,G.jsxs)(vC,{element:(0,G.jsx)(hE,{}),children:[(0,G.jsx)(vC,{path:`/`,element:(0,G.jsx)(rD,{})}),(0,G.jsx)(vC,{path:`/search`,element:(0,G.jsx)(tae,{})}),(0,G.jsx)(vC,{path:`/metadata-search`,element:(0,G.jsx)(Iie,{})}),(0,G.jsx)(vC,{path:`/document/:id`,element:(0,G.jsx)(jL,{})}),(0,G.jsx)(vC,{path:`/document/:id/edit`,element:(0,G.jsx)(JI,{})}),(0,G.jsx)(vC,{path:`/ingest`,element:(0,G.jsx)(zL,{})}),(0,G.jsx)(vC,{path:`/projects`,element:(0,G.jsx)(HL,{})}),(0,G.jsx)(vC,{path:`/projects/:id/documents`,element:(0,G.jsx)(BL,{})}),(0,G.jsx)(vC,{path:`/audit-log`,element:(0,G.jsx)(VE,{})}),(0,G.jsx)(vC,{path:`/trash`,element:(0,G.jsx)(hae,{})}),(0,G.jsx)(vC,{path:`/analytics`,element:(0,G.jsx)(Nie,{})}),(0,G.jsx)(vC,{path:`/settings`,element:(0,G.jsx)(lae,{})}),(0,G.jsx)(vC,{path:`/help`,element:(0,G.jsx)(IL,{})}),(0,G.jsx)(vC,{path:`/help/*`,element:(0,G.jsx)(IL,{})})]})})}var _ae=class extends _.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}},vae=Hn({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`}}),yae=new hee({defaultOptions:{queries:{staleTime:3e4,retry:(e,t)=>!(t instanceof Bw)&&e<1}}});(0,yw.createRoot)(document.getElementById(`root`)).render((0,G.jsx)(_.StrictMode,{children:(0,G.jsx)(Zy,{client:yae,children:(0,G.jsxs)(Vn,{theme:vae,defaultColorScheme:`auto`,children:[(0,G.jsx)(Jy,{position:`top-right`}),(0,G.jsx)(_ae,{children:(0,G.jsx)(ow,{basename:`/app`,children:(0,G.jsx)(gae,{})})})]})})}));export{lD as i,kF as n,Tj as r,wI as t};
|
|
122
|
-
//# sourceMappingURL=index-
|
|
122
|
+
//# sourceMappingURL=index-BI4vv_74.js.map
|